[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:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]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:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:07]accept exits with 7 [04:08:07]New connection [04:08:07]New thread 3066764644 created [04:08:07]Thread 3066908004 joined [04:08:07]Waiting for new connection... [04:08:07] Sock 7.Parse request [04:08:07]Sock 7.Check first char [04:08:07]Sock 7.First char is OK [04:08:07]request: POST /json_proto HTTP/1.0 [04:08:07]Method: POST [04:08:07]URL: /json_proto [04:08:07]Method is POST - this is cgi request [04:08:07]url: /json_proto [04:08:07]query_string will be loaded in cgi processing [04:08:07]execute_cgi json_proto POST (null) [04:08:07]execute_cgi path=json_proto method=POST [04:08:07]POST find Content-Length [04:08:07]Host: 172.17.45.67:8080 [04:08:07]Content-Length: 677 [04:08:07]Content-Type: application/json [04:08:07] [04:08:07]POST finish read [04:08:07]Found Content-Length = 677 [04:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [04:08:07]execute_script... [04: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)593847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [04:08:07]POST & json_proto [04:08:07]process_json_proto [04:08:07]json parsed OK: [04:08:07]protocol is kg_v1.0 [04:08:07]action value=close_receipt [04:08:07]process_action close_receipt [04:08:07]cmd_close_receipt [04:08:07]MH_GetDate [04:08:07]Write to MH i2c: F0 00 00 FF 19 07 [04:08:07]Write i2c OK [04:08:07]MH_I2C_Read... [04:08:07]Read from MH i2c: F0 [04:08:07]MH_I2C_Read... [04:08:07]Read from MH i2c: F0 09 00 [04:08:07]MH_I2C_Read... [04:08:07]Read from MH i2c: F0 09 00 FF 19 00 29 68 C5 66 5F 7F 2B 66 3B [04:08:07]GetLastDocTimeStamp 1724209485 [04:08:07]current date 1724213289 [04:08:07]FM_GetShiftState [04:08:07]SAM_PROTO_GetShiftState [04:08:07]wFMCommunicate request_size=4 [04:08:07]MH_SAM_APDU [04:08:07]CAPDU: 80 13 01 00 [04:08:07]Write to MH i2c: E2 08 00 00 1A 80 13 01 00 00 00 00 00 97 [04:08:07]Write i2c OK [04:08:07]MH_I2C_Read... [04:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:07]Read from MH i2c: E2 [04:08:07]MH_I2C_Read... [04:08:07]Read from MH i2c: E2 0E 00 [04:08:07]MH_I2C_Read... [04:08:07]Read from MH i2c: E2 0E 00 00 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 17 [04:08:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [04:08:07]wFMCommunicate OK [04:08:07]SAM_PROTO_GetShiftState done [04:08:07]FM_GetShiftState done [04:08:07]opened in 1724200467 [04:08:07]opened+sec_in_day 1724286867 [04:08:07]quantity*price = 60003 [04:08:07]sum+1 = 60004 [04:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 10 21.08.2024 04:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139993 ФПД: 155574389411636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T040809&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139993&fm=155574389411636&tin=02508201610067®Number=0000000000092569&sum=60000 [04:08:08]StoreToDocumentArchive [04:08:08]shift 454 fd 139993 [04:08:08]save to /storage/0454/doc_00139993 [04:08:08]save last doc name /storage/0454/doc_00139993 to /storage/kkm_last_doc_name [04:08:08]save OK [04:08:08]Clear old archive folders... [04:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:08:08]tlvbuf is 00A34780 [04:08:08]SAM_PROTO_ClearQueue [04:08:08]wFMCommunicate request_size=4 [04:08:08]MH_SAM_APDU [04:08:08]CAPDU: 80 09 00 00 [04:08:08]Write to MH i2c: E2 08 00 0D 1A 80 09 00 00 00 00 00 00 99 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 0D 1A 00 90 00 9B [04:08:08]RAPDU: 90 00 [04:08:08]wFMCommunicate OK [04:08:08]SAM_PROTO_ClearQueue done [04:08:08]KKMCreateOFDPacket [04:08:08]OFDProtocolAddRootSTLVToBuf [04:08:08]FM_MakeSignedData [04:08:08]FM_MakeSignedData [04:08:08]SAM_PROTO_SignData [04:08:08]wFMCommunicate request_size=4 [04:08:08]MH_SAM_APDU [04:08:08]CAPDU: 80 0D 01 02 [04:08:08]Write to MH i2c: E2 08 00 0E 1A 80 0D 01 02 00 00 00 00 A1 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 0E 1A 00 90 00 9C [04:08:08]RAPDU: 90 00 [04:08:08]wFMCommunicate OK [04:08:08]wFMCommunicate request_size=255 [04:08:08]MH_SAM_APDU [04:08: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0A 00 00 00 F4 03 04 00 29 68 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 22 02 00 35 04 06 00 8D [04:08:08]Write to MH i2c: E2 02 01 0F 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0A 00 00 00 F4 03 04 00 29 68 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 22 02 00 35 04 06 00 8D 00 00 08 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 0F 1A 00 90 00 9D [04:08:08]RAPDU: 90 00 [04:08:08]wFMCommunicate OK [04:08:08]wFMCommunicate request_size=10 [04:08:08]MH_SAM_APDU [04:08:08]CAPDU: 80 0D 02 02 05 7E 7C 37 8F 34 [04:08:08]Write to MH i2c: E2 0D 00 10 1A 80 0D 02 02 05 00 7E 7C 37 8F 34 00 00 A2 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [04:08:08]RAPDU: 90 00 [04:08:08]wFMCommunicate OK [04:08:08]wFMCommunicate request_size=4 [04:08:08]MH_SAM_APDU [04:08:08]CAPDU: 80 0D 03 02 [04:08:08]Write to MH i2c: E2 08 00 11 1A 80 0D 03 02 00 00 00 00 A6 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 0B 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 0B 00 11 1A 00 21 3B F8 E6 5F 64 39 41 90 00 1E [04:08:08]RAPDU: 21 3B F8 E6 5F 64 39 41 90 00 [04:08:08]wFMCommunicate OK [04:08:08]SAM_PROTO_SignData done [04:08:08]FM_MakeSignedData done [04:08:08]CreateOFDProtocolMessage [04:08:08]wFMCommunicate request_size=4 [04:08:08]MH_SAM_APDU [04:08:08]CAPDU: 80 11 00 00 [04:08:08]Write to MH i2c: E2 08 00 12 1A 80 11 00 00 00 00 00 00 A6 [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:08]Read from MH i2c: E2 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 17 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: E2 17 00 12 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [04:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [04:08:08]wFMCommunicate OK [04:08:08]CreateOFDProtocolMessage done [04:08:08]OFDSenderStorePacket 139993 [04:08:08]StoreOFDPacket docnum=139993 [04:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 DE 07 01 EE 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0A 00 00 00 F4 03 04 00 29 68 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 22 02 00 35 04 06 00 8D 7E 7C 37 8F 34 21 3B F8 E6 5F 64 39 41 [04:08:08]CheckFolder [04:08:08]dirname=/storage/ofd_packets [04:08:08]CheckFolder done [04:08:08]ProducePacketName [04:08:08]name=ofd_packets/00139993 [04:08:08]NVStorageSaveData ofd_packets/00139993 [04:08:08]File name is /storage/ofd_packets/00139993 [04:08:08]Write 301 bytes [04:08:08]NVStorageSaveData done [04:08:08]OFDSenderStorePacket done [04:08:08]KKMCreateOFDPacket done [04:08:08]NVStorageSaveData kkm_last_timestamp [04:08:08]File name is /storage/kkm_last_timestamp [04:08:08]Write 4 bytes [04:08:08]NVStorageSaveData done [04:08:08]ExternCall_PrintAddStr [04:08:08]wPrintStart [04:08:08]Write to MH i2c: 01 00 00 13 1A 2D [04:08:08]Write i2c OK [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: 01 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: 01 07 00 [04:08:08]MH_I2C_Read... [04:08:08]Read from MH i2c: 01 07 00 13 1A 00 00 00 00 00 FF 0F 42 [04:08:08]RasterBufferAndPrint [04:08:08]line Счет N : (1)593847 [04:08:08]line ИНН: 02508201610067 [04:08:08]line Контрольно-Кассовый Чек [04:08:08]line ПРОДАЖА [04:08:08]line ТРК (МРК, ГНК) : 32 [04:08:08]line Товар: 2710124130 [04:08:08]line Аи-92-К-5 [04:08:08]line 8.850 * 67.80 [04:08:08]line = 600.03 [04:08:08]line НДС 12% НСП 1% [04:08:08]line > о реализуемом товаре [04:08:08]line ОКРУГЛЕНИЕ: -0.03 [04:08:08]line ИТОГО: 600.00 [04:08:08]line Внесено: 600.00 [04:08:08]line СДАЧА: 0.00 [04:08:08]line НСП 1% : 5.31 [04:08:08]line НДС 12% : 63.72 [04:08:08]line Наличными: 600.00 [04:08:08]line Безнал.: 0.00 [04:08:08]line Место: АЗС № 136 "Партнер Нефть" [04:08:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [04:08:08]line СНО: Общий режим [04:08:08]line Чек 10 21.08.2024 04:08 [04:08:08]line Смена: 454 ФФД: 1.0 [04:08:08]line ЗНМ: 0300000067 [04:08:08]line РНМ: 0000000000092569 [04:08:08]line Версия ККМ: 001 [04:08:08]line ФМ: 0000000000871776 [04:08:08]line ФД: 139993 [04:08:08]line ФПД: 155574389411636 [04:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T040809&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139993&fm=155574389411636&tin=02508201610067®Number=0000000000092569&sum=60000 [04:08:09]written 0, free lines is 4095 [04:08:09]OFD Sender: Processing packet 139993 [packets to send 137, broken 136] [04:08:09]ProducePacketName [04:08:09]name=ofd_packets/00139993 [04:08:09]OFD Sender: To server: pG, [04:08:09]CommunicateWithHost lk.salyk.kg:30040 [04:08:09]ConnectInit lk.salyk.kg [04:08:09]Connected sock=10 [04: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 37 36 0F 01 00 00 34 DE 07 01 EE 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0A 00 00 00 F4 03 04 00 29 68 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 22 02 00 35 04 06 00 8D 7E 7C 37 8F 34 21 3B F8 E6 5F 64 39 41 [04: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 37 36 4F 00 00 00 78 C4 47 00 6A 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 37 36 10 04 04 00 D9 22 02 00 F4 03 04 00 BA 0E C5 66 B6 04 01 00 00 47 BB F5 1E 0D 2E 39 7A [04:08:09]CommunicateWithHost err = 0 [04:08:09]CheckOFDResponse [04:08:09]1017 (14) - 77093643461234 [04:08:09]1041 (16) - 0000000000871776 [04:08:09]1040 (4) - 139993 [04:08:09]1012 (4) - 20.08.2024 21:46 [04:08:09]1206 (1) - 0 [04:08:09]OFD Sender: Remove packet 139993 [04:08:09]ProducePacketName [04:08:09]name=ofd_packets/00139993 [04:08:09]NVStorageDeleteData [04:08:09]Write to MH i2c: 01 00 00 3E 1A 58 [04:08:09]Write i2c OK [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: 01 [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: 01 07 00 [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 D0 0C 3B [04:08:09]RasterBufferAndPrint [04:08:09]line [04:08:09]line [04:08:09]line [04:08:09]line [04:08:09]line [04:08:09]written 0, free lines is 3283 [04:08:09]MH_Cut [04:08:09]Write to MH i2c: D1 01 00 45 1A 01 31 [04:08:09]Write i2c OK [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: D1 [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: D1 01 00 [04:08:09]MH_I2C_Read... [04:08:09]Read from MH i2c: D1 01 00 45 1A 00 30 [04:08:09]Write to MH i2c: 01 00 00 46 1A 60 [04:08:09]Write i2c OK [04:08:09]MH_I2C_Read... [04:08:10]OFD Sender: No OFD packet to send [04:08:10]*** Cut start [04:08:10]*** Partial cut [04:08:10]*** CUTSNS_PIN = 1 [04:08:10]*** CUTSNS_PIN = 0 [04:08:10]*** Brake cut motor [04:08:10]Read from MH i2c: 01 [04:08:10]MH_I2C_Read... [04:08:10]*** Stop cut motor [04:08:10]*** Cut end [04:08:10]Read from MH i2c: 01 07 00 [04:08:10]MH_I2C_Read... [04:08:10]Read from MH i2c: 01 07 00 46 1A 00 00 00 00 00 FF 0F 75 [04:08:10]process_action close_receipt done [04:08:10]requested_data is exist [04:08:10]produce_requested_data [04:08:10]requested_item fm.sn is exist - process it [04:08:10]wFMCommunicate request_size=4 [04:08:10]MH_SAM_APDU [04:08:10]CAPDU: 80 11 00 00 [04:08:10]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [04:08:10]Write i2c OK [04:08:10]MH_I2C_Read... [04:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:11]Read from MH i2c: E2 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 17 00 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 32 [04:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [04:08:11]wFMCommunicate OK [04:08:11]requested_item fd.num is exist - process it [04:08:11]SAM_PROTO_GetFieldsCounters [04:08:11]wFMCommunicate request_size=4 [04:08:11]MH_SAM_APDU [04:08:11]CAPDU: 80 13 00 00 [04:08:11]Write to MH i2c: E2 08 00 48 1A 80 13 00 00 00 00 00 00 DE [04:08:11]Write i2c OK [04:08:11]MH_I2C_Read... [04:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:08:11]Read from MH i2c: E2 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 62 00 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 62 00 48 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:08:11]wFMCommunicate OK [04:08:11]SAM_PROTO_GetFieldsCounters done [04:08:11]requested_item shift.num is exist - process it [04:08:11]requested_item shift.opened is exist - process it [04:08:11]req_shift_opened [04:08:11]FM_GetShiftState [04:08:11]SAM_PROTO_GetShiftState [04:08:11]wFMCommunicate request_size=4 [04:08:11]MH_SAM_APDU [04:08:11]CAPDU: 80 13 01 00 [04:08:11]Write to MH i2c: E2 08 00 49 1A 80 13 01 00 00 00 00 00 E0 [04:08:11]Write i2c OK [04:08:11]MH_I2C_Read... [04:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:11]Read from MH i2c: E2 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 0E 00 [04:08:11]MH_I2C_Read... [04:08:11]Read from MH i2c: E2 0E 00 49 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 60 [04:08:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [04:08:11]wFMCommunicate OK [04:08:11]SAM_PROTO_GetShiftState done [04:08:11]FM_GetShiftState done [04:08:11]req_shift_opened done [04:08:11]requested_item shift.open_date is exist - process it [04:08:11]req_shift_open_date [04:08:11]req_shift_open_date done [04:08:11]produce_requested_data done [04:08:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139993,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [04:08:11]process_action_free close_receipt [04:08:11]json_value_free [04:08:11]json_value_free done [04:08:11]process_json_proto returns [04:08:11]Send response to host [04:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139993,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [04:08:11]free response buf [04:08:11]execute_script done [04:08:11]execute_script returns [04:08:11]free content buf [04:08:11]Sock 7.Close socket [04:08:11]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19: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:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47: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:48]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23: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]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:17]accept exits with 9 [06:38:17]New connection [06:38:17]New thread 3066908004 created [06:38:17]Thread 3066764644 joined [06:38:17]Waiting for new connection... [06:38:17] Sock 9.Parse request [06:38:17]Sock 9.Check first char [06:38:17]Sock 9.First char is OK [06:38:17]request: POST /json_proto HTTP/1.0 [06:38:17]Method: POST [06:38:17]URL: /json_proto [06:38:17]Method is POST - this is cgi request [06:38:17]url: /json_proto [06:38:17]query_string will be loaded in cgi processing [06:38:17]execute_cgi json_proto POST (null) [06:38:17]execute_cgi path=json_proto method=POST [06:38:17]POST find Content-Length [06:38:17]Host: 172.17.45.67:8080 [06:38:17]Content-Length: 677 [06:38:17]Content-Type: application/json [06:38:17] [06:38:17]POST finish read [06:38:17]Found Content-Length = 677 [06:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:17]execute_script... [06:38: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)593848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:17]POST & json_proto [06:38:17]process_json_proto [06:38:17]json parsed OK: [06:38:17]protocol is kg_v1.0 [06:38:17]action value=close_receipt [06:38:17]process_action close_receipt [06:38:17]cmd_close_receipt [06:38:17]MH_GetDate [06:38:17]Write to MH i2c: F0 00 00 4A 1A 53 [06:38:17]Write i2c OK [06:38:17]MH_I2C_Read... [06:38:17]Read from MH i2c: F0 [06:38:17]MH_I2C_Read... [06:38:17]Read from MH i2c: F0 09 00 [06:38:17]MH_I2C_Read... [06:38:17]Read from MH i2c: F0 09 00 4A 1A 00 5B 8B C5 66 5F 7F 2B 66 DC [06:38:17]GetLastDocTimeStamp 1724213289 [06:38:17]current date 1724222299 [06:38:17]FM_GetShiftState [06:38:17]SAM_PROTO_GetShiftState [06:38:17]wFMCommunicate request_size=4 [06:38:17]MH_SAM_APDU [06:38:17]CAPDU: 80 13 01 00 [06:38:17]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [06:38:17]Write i2c OK [06:38:17]MH_I2C_Read... [06:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:17]Read from MH i2c: E2 [06:38:17]MH_I2C_Read... [06:38:17]Read from MH i2c: E2 0E 00 [06:38:17]MH_I2C_Read... [06:38:17]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 62 [06:38:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:38:17]wFMCommunicate OK [06:38:17]SAM_PROTO_GetShiftState done [06:38:17]FM_GetShiftState done [06:38:17]opened in 1724200467 [06:38:17]opened+sec_in_day 1724286867 [06:38:17]quantity*price = 30051 [06:38:17]sum+1 = 30052 [06:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 11 21.08.2024 06:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139994 ФПД: 237553221451313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T063819&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139994&fm=237553221451313&tin=02508201610067®Number=0000000000092569&sum=30000 [06:38:18]StoreToDocumentArchive [06:38:18]shift 454 fd 139994 [06:38:18]save to /storage/0454/doc_00139994 [06:38:18]save last doc name /storage/0454/doc_00139994 to /storage/kkm_last_doc_name [06:38:18]save OK [06:38:18]Clear old archive folders... [06:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:18]tlvbuf is B6ECFAB0 [06:38:18]SAM_PROTO_ClearQueue [06:38:18]wFMCommunicate request_size=4 [06:38:18]MH_SAM_APDU [06:38:18]CAPDU: 80 09 00 00 [06:38:18]Write to MH i2c: E2 08 00 58 1A 80 09 00 00 00 00 00 00 E4 [06:38:18]Write i2c OK [06:38:18]MH_I2C_Read... [06:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:18]Read from MH i2c: E2 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 03 00 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 03 00 58 1A 00 90 00 E6 [06:38:18]RAPDU: 90 00 [06:38:18]wFMCommunicate OK [06:38:18]SAM_PROTO_ClearQueue done [06:38:18]KKMCreateOFDPacket [06:38:18]OFDProtocolAddRootSTLVToBuf [06:38:18]FM_MakeSignedData [06:38:18]FM_MakeSignedData [06:38:18]SAM_PROTO_SignData [06:38:18]wFMCommunicate request_size=4 [06:38:18]MH_SAM_APDU [06:38:18]CAPDU: 80 0D 01 02 [06:38:18]Write to MH i2c: E2 08 00 59 1A 80 0D 01 02 00 00 00 00 EC [06:38:18]Write i2c OK [06:38:18]MH_I2C_Read... [06:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:18]Read from MH i2c: E2 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 03 00 [06:38:18]MH_I2C_Read... [06:38:18]Read from MH i2c: E2 03 00 59 1A 00 90 00 E7 [06:38:18]RAPDU: 90 00 [06:38:18]wFMCommunicate OK [06:38:18]wFMCommunicate request_size=255 [06:38:18]MH_SAM_APDU [06:38:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B 8B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 22 02 00 35 04 06 00 D8 [06:38:18]Write to MH i2c: E2 02 01 5A 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B 8B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 22 02 00 35 04 06 00 D8 00 00 66 [06:38:18]Write i2c OK [06:38:18]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 03 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [06:38:19]RAPDU: 90 00 [06:38:19]wFMCommunicate OK [06:38:19]wFMCommunicate request_size=10 [06:38:19]MH_SAM_APDU [06:38:19]CAPDU: 80 0D 02 02 05 0D AB 61 3E 31 [06:38:19]Write to MH i2c: E2 0D 00 5B 1A 80 0D 02 02 05 00 0D AB 61 3E 31 00 00 81 [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 03 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [06:38:19]RAPDU: 90 00 [06:38:19]wFMCommunicate OK [06:38:19]wFMCommunicate request_size=4 [06:38:19]MH_SAM_APDU [06:38:19]CAPDU: 80 0D 03 02 [06:38:19]Write to MH i2c: E2 08 00 5C 1A 80 0D 03 02 00 00 00 00 F1 [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0B 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0B 00 5C 1A 00 AA BD D7 1E AC 08 22 C8 90 00 EC [06:38:19]RAPDU: AA BD D7 1E AC 08 22 C8 90 00 [06:38:19]wFMCommunicate OK [06:38:19]SAM_PROTO_SignData done [06:38:19]FM_MakeSignedData done [06:38:19]CreateOFDProtocolMessage [06:38:19]wFMCommunicate request_size=4 [06:38:19]MH_SAM_APDU [06:38:19]CAPDU: 80 11 00 00 [06:38:19]Write to MH i2c: E2 08 00 5D 1A 80 11 00 00 00 00 00 00 F1 [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 17 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 17 00 5D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [06:38:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:38:19]wFMCommunicate OK [06:38:19]CreateOFDProtocolMessage done [06:38:19]OFDSenderStorePacket 139994 [06:38:19]StoreOFDPacket docnum=139994 [06:38:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 31 96 07 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B 8B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 22 02 00 35 04 06 00 D8 0D AB 61 3E 31 AA BD D7 1E AC 08 22 C8 [06:38:19]CheckFolder [06:38:19]dirname=/storage/ofd_packets [06:38:19]CheckFolder done [06:38:19]ProducePacketName [06:38:19]name=ofd_packets/00139994 [06:38:19]NVStorageSaveData ofd_packets/00139994 [06:38:19]File name is /storage/ofd_packets/00139994 [06:38:19]Write 301 bytes [06:38:19]NVStorageSaveData done [06:38:19]OFDSenderStorePacket done [06:38:19]KKMCreateOFDPacket done [06:38:19]NVStorageSaveData kkm_last_timestamp [06:38:19]File name is /storage/kkm_last_timestamp [06:38:19]Write 4 bytes [06:38:19]NVStorageSaveData done [06:38:19]ExternCall_PrintAddStr [06:38:19]wPrintStart [06:38:19]Write to MH i2c: 01 00 00 5E 1A 78 [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: 01 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: 01 07 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: 01 07 00 5E 1A 00 00 00 00 00 FF 0F 8D [06:38:19]RasterBufferAndPrint [06:38:19]line Счет N : (1)593848 [06:38:19]line ИНН: 02508201610067 [06:38:19]line Контрольно-Кассовый Чек [06:38:19]line ПРОДАЖА [06:38:19]line ТРК (МРК, ГНК) : 41 [06:38:19]line Товар: 2710124500 [06:38:19]line Аи-95-К-5 [06:38:19]line 4.050 * 74.20 [06:38:19]line = 300.51 [06:38:19]line НДС 12% НСП 1% [06:38:19]line > о реализуемом товаре [06:38:19]line ОКРУГЛЕНИЕ: -0.51 [06:38:19]line ИТОГО: 300.00 [06:38:19]line Внесено: 300.00 [06:38:19]line СДАЧА: 0.00 [06:38:19]line НСП 1% : 2.66 [06:38:19]line НДС 12% : 31.91 [06:38:19]line Наличными: 300.00 [06:38:19]line Безнал.: 0.00 [06:38:19]line Место: АЗС № 136 "Партнер Нефть" [06:38:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:38:19]line СНО: Общий режим [06:38:19]line Чек 11 21.08.2024 06:38 [06:38:19]line Смена: 454 ФФД: 1.0 [06:38:19]line ЗНМ: 0300000067 [06:38:19]line РНМ: 0000000000092569 [06:38:19]line Версия ККМ: 001 [06:38:19]line ФМ: 0000000000871776 [06:38:19]line ФД: 139994 [06:38:19]line ФПД: 237553221451313 [06:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T063819&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139994&fm=237553221451313&tin=02508201610067®Number=0000000000092569&sum=30000 [06:38:19]written 0, free lines is 4095 [06:38:19]OFD Sender: Processing packet 139994 [packets to send 137, broken 136] [06:38:19]ProducePacketName [06:38:19]name=ofd_packets/00139994 [06:38:19]OFD Sender: To server: pG, [06:38:19]CommunicateWithHost lk.salyk.kg:30040 [06:38:19]ConnectInit lk.salyk.kg [06:38:19]Connected sock=10 [06:38: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 37 36 0F 01 00 00 31 96 07 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5B 8B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 22 02 00 35 04 06 00 D8 0D AB 61 3E 31 AA BD D7 1E AC 08 22 C8 [06:38: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 37 36 4F 00 00 00 1E EC 47 00 A0 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 37 36 10 04 04 00 DA 22 02 00 F4 03 04 00 ED 31 C5 66 B6 04 01 00 00 5F 56 A0 8A A3 E1 7E 29 [06:38:20]CommunicateWithHost err = 0 [06:38:20]CheckOFDResponse [06:38:20]1017 (14) - 77093643461234 [06:38:20]1041 (16) - 0000000000871776 [06:38:20]1040 (4) - 139994 [06:38:20]1012 (4) - 21.08.2024 00:16 [06:38:20]1206 (1) - 0 [06:38:20]OFD Sender: Remove packet 139994 [06:38:20]ProducePacketName [06:38:20]name=ofd_packets/00139994 [06:38:20]NVStorageDeleteData [06:38:20]Write to MH i2c: 01 00 00 89 1A A3 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 07 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 CD 0C 83 [06:38:20]RasterBufferAndPrint [06:38:20]line [06:38:20]line [06:38:20]line [06:38:20]line [06:38:20]line [06:38:20]written 0, free lines is 3284 [06:38:20]MH_Cut [06:38:20]Write to MH i2c: D1 01 00 90 1A 01 7C [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: D1 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: D1 01 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: D1 01 00 90 1A 00 7B [06:38:20]Write to MH i2c: 01 00 00 91 1A AB [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]OFD Sender: No OFD packet to send [06:38:20]*** Cut start [06:38:20]*** Partial cut [06:38:20]*** CUTSNS_PIN = 1 [06:38:20]*** CUTSNS_PIN = 0 [06:38:21]*** Brake cut motor [06:38:21]Read from MH i2c: 01 [06:38:21]MH_I2C_Read... [06:38:21]*** Stop cut motor [06:38:21]*** Cut end [06:38:21]Read from MH i2c: 01 07 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 FF 0F C0 [06:38:21]process_action close_receipt done [06:38:21]requested_data is exist [06:38:21]produce_requested_data [06:38:21]requested_item fm.sn is exist - process it [06:38:21]wFMCommunicate request_size=4 [06:38:21]MH_SAM_APDU [06:38:21]CAPDU: 80 11 00 00 [06:38:21]Write to MH i2c: E2 08 00 92 1A 80 11 00 00 00 00 00 00 26 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:21]Read from MH i2c: E2 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 17 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 17 00 92 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [06:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:38:21]wFMCommunicate OK [06:38:21]requested_item fd.num is exist - process it [06:38:21]SAM_PROTO_GetFieldsCounters [06:38:21]wFMCommunicate request_size=4 [06:38:21]MH_SAM_APDU [06:38:21]CAPDU: 80 13 00 00 [06:38:21]Write to MH i2c: E2 08 00 93 1A 80 13 00 00 00 00 00 00 29 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:21]Read from MH i2c: E2 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 62 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 62 00 93 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [06:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:21]wFMCommunicate OK [06:38:21]SAM_PROTO_GetFieldsCounters done [06:38:21]requested_item shift.num is exist - process it [06:38:21]requested_item shift.opened is exist - process it [06:38:21]req_shift_opened [06:38:21]FM_GetShiftState [06:38:21]SAM_PROTO_GetShiftState [06:38:21]wFMCommunicate request_size=4 [06:38:21]MH_SAM_APDU [06:38:21]CAPDU: 80 13 01 00 [06:38:21]Write to MH i2c: E2 08 00 94 1A 80 13 01 00 00 00 00 00 2B [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:21]Read from MH i2c: E2 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 0E 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 0E 00 94 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AB [06:38:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:38:21]wFMCommunicate OK [06:38:21]SAM_PROTO_GetShiftState done [06:38:21]FM_GetShiftState done [06:38:21]req_shift_opened done [06:38:21]requested_item shift.open_date is exist - process it [06:38:21]req_shift_open_date [06:38:21]req_shift_open_date done [06:38:21]produce_requested_data done [06:38:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139994,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [06:38:21]process_action_free close_receipt [06:38:21]json_value_free [06:38:21]json_value_free done [06:38:21]process_json_proto returns [06:38:21]Send response to host [06:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139994,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [06:38:21]free response buf [06:38:21]execute_script done [06:38:21]execute_script returns [06:38:21]free content buf [06:38:21]Sock 9.Close socket [06:38:21]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49: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:42]accept exits with 7 [06:49:42]New connection [06:49:42]New thread 3066764644 created [06:49:42]Thread 3066908004 joined [06:49:42]Waiting for new connection... [06:49:42] Sock 7.Parse request [06:49:42]Sock 7.Check first char [06:49:42]Sock 7.First char is OK [06:49:42]request: POST /json_proto HTTP/1.0 [06:49:42]Method: POST [06:49:42]URL: /json_proto [06:49:42]Method is POST - this is cgi request [06:49:42]url: /json_proto [06:49:42]query_string will be loaded in cgi processing [06:49:42]execute_cgi json_proto POST (null) [06:49:42]execute_cgi path=json_proto method=POST [06:49:42]POST find Content-Length [06:49:42]Host: 172.17.45.67:8080 [06:49:42]Content-Length: 677 [06:49:42]Content-Type: application/json [06:49:42] [06:49:42]POST finish read [06:49:42]Found Content-Length = 677 [06:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:49:42]execute_script... [06:49: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)593849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:49:42]POST & json_proto [06:49:42]process_json_proto [06:49:42]json parsed OK: [06:49:42]protocol is kg_v1.0 [06:49:42]action value=close_receipt [06:49:42]process_action close_receipt [06:49:42]cmd_close_receipt [06:49:42]MH_GetDate [06:49:42]Write to MH i2c: F0 00 00 95 1A 9E [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: F0 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: F0 09 00 [06:49:42]MH_I2C_Read... [06:49:42]Read from MH i2c: F0 09 00 95 1A 00 09 8E C5 66 5F 7F 2B 66 D8 [06:49:42]GetLastDocTimeStamp 1724222299 [06:49:42]current date 1724222985 [06:49:42]FM_GetShiftState [06:49:42]SAM_PROTO_GetShiftState [06:49:42]wFMCommunicate request_size=4 [06:49:42]MH_SAM_APDU [06:49:42]CAPDU: 80 13 01 00 [06:49:42]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [06:49:42]Write i2c OK [06:49:42]MH_I2C_Read... [06:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:43]Read from MH i2c: E2 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 0E 00 [06:49:43]MH_I2C_Read... [06:49:43]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AD [06:49:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:49:43]wFMCommunicate OK [06:49:43]SAM_PROTO_GetShiftState done [06:49:43]FM_GetShiftState done [06:49:43]opened in 1724200467 [06:49:43]opened+sec_in_day 1724286867 [06:49:43]quantity*price = 20001 [06:49:43]sum+1 = 20002 [06:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 12 21.08.2024 06:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139995 ФПД: 94745484853901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T064945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139995&fm=94745484853901&tin=02508201610067®Number=0000000000092569&sum=20000 [06:49:44]StoreToDocumentArchive [06:49:44]shift 454 fd 139995 [06:49:44]save to /storage/0454/doc_00139995 [06:49:44]save last doc name /storage/0454/doc_00139995 to /storage/kkm_last_doc_name [06:49:44]save OK [06:49:44]Clear old archive folders... [06:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:44]tlvbuf is 00A52210 [06:49:44]SAM_PROTO_ClearQueue [06:49:44]wFMCommunicate request_size=4 [06:49:44]MH_SAM_APDU [06:49:44]CAPDU: 80 09 00 00 [06:49:44]Write to MH i2c: E2 08 00 A3 1A 80 09 00 00 00 00 00 00 2F [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 A3 1A 00 90 00 31 [06:49:44]RAPDU: 90 00 [06:49:44]wFMCommunicate OK [06:49:44]SAM_PROTO_ClearQueue done [06:49:44]KKMCreateOFDPacket [06:49:44]OFDProtocolAddRootSTLVToBuf [06:49:44]FM_MakeSignedData [06:49:44]FM_MakeSignedData [06:49:44]SAM_PROTO_SignData [06:49:44]wFMCommunicate request_size=4 [06:49:44]MH_SAM_APDU [06:49:44]CAPDU: 80 0D 01 02 [06:49:44]Write to MH i2c: E2 08 00 A4 1A 80 0D 01 02 00 00 00 00 37 [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 A4 1A 00 90 00 32 [06:49:44]RAPDU: 90 00 [06:49:44]wFMCommunicate OK [06:49:44]wFMCommunicate request_size=255 [06:49:44]MH_SAM_APDU [06:49: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0C 00 00 00 F4 03 04 00 09 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 22 02 00 35 04 06 00 56 [06:49:44]Write to MH i2c: E2 02 01 A5 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0C 00 00 00 F4 03 04 00 09 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 22 02 00 35 04 06 00 56 00 00 AC [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 A5 1A 00 90 00 33 [06:49:44]RAPDU: 90 00 [06:49:44]wFMCommunicate OK [06:49:44]wFMCommunicate request_size=10 [06:49:44]MH_SAM_APDU [06:49:44]CAPDU: 80 0D 02 02 05 2B A6 F8 02 8D [06:49:44]Write to MH i2c: E2 0D 00 A6 1A 80 0D 02 02 05 00 2B A6 F8 02 8D 00 00 9C [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [06:49:44]RAPDU: 90 00 [06:49:44]wFMCommunicate OK [06:49:44]wFMCommunicate request_size=4 [06:49:44]MH_SAM_APDU [06:49:44]CAPDU: 80 0D 03 02 [06:49:44]Write to MH i2c: E2 08 00 A7 1A 80 0D 03 02 00 00 00 00 3C [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 0B 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 0B 00 A7 1A 00 4D E0 B5 46 69 AB 4F 48 90 00 10 [06:49:44]RAPDU: 4D E0 B5 46 69 AB 4F 48 90 00 [06:49:44]wFMCommunicate OK [06:49:44]SAM_PROTO_SignData done [06:49:44]FM_MakeSignedData done [06:49:44]CreateOFDProtocolMessage [06:49:44]wFMCommunicate request_size=4 [06:49:44]MH_SAM_APDU [06:49:44]CAPDU: 80 11 00 00 [06:49:44]Write to MH i2c: E2 08 00 A8 1A 80 11 00 00 00 00 00 00 3C [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:44]Read from MH i2c: E2 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 17 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: E2 17 00 A8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [06:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:49:44]wFMCommunicate OK [06:49:44]CreateOFDProtocolMessage done [06:49:44]OFDSenderStorePacket 139995 [06:49:44]StoreOFDPacket docnum=139995 [06:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D3 C5 07 01 BC 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0C 00 00 00 F4 03 04 00 09 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 22 02 00 35 04 06 00 56 2B A6 F8 02 8D 4D E0 B5 46 69 AB 4F 48 [06:49:44]CheckFolder [06:49:44]dirname=/storage/ofd_packets [06:49:44]CheckFolder done [06:49:44]ProducePacketName [06:49:44]name=ofd_packets/00139995 [06:49:44]NVStorageSaveData ofd_packets/00139995 [06:49:44]File name is /storage/ofd_packets/00139995 [06:49:44]Write 301 bytes [06:49:44]NVStorageSaveData done [06:49:44]OFDSenderStorePacket done [06:49:44]KKMCreateOFDPacket done [06:49:44]NVStorageSaveData kkm_last_timestamp [06:49:44]File name is /storage/kkm_last_timestamp [06:49:44]Write 4 bytes [06:49:44]NVStorageSaveData done [06:49:44]ExternCall_PrintAddStr [06:49:44]wPrintStart [06:49:44]Write to MH i2c: 01 00 00 A9 1A C3 [06:49:44]Write i2c OK [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: 01 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: 01 07 00 [06:49:44]MH_I2C_Read... [06:49:44]Read from MH i2c: 01 07 00 A9 1A 00 00 00 00 00 FF 0F D8 [06:49:44]RasterBufferAndPrint [06:49:44]line Счет N : (1)593849 [06:49:44]line ИНН: 02508201610067 [06:49:44]line Контрольно-Кассовый Чек [06:49:44]line ПРОДАЖА [06:49:44]line ТРК (МРК, ГНК) : 32 [06:49:44]line Товар: 2710124130 [06:49:44]line Аи-92-К-5 [06:49:44]line 2.950 * 67.80 [06:49:44]line = 200.01 [06:49:44]line НДС 12% НСП 1% [06:49:44]line > о реализуемом товаре [06:49:44]line ОКРУГЛЕНИЕ: -0.01 [06:49:44]line ИТОГО: 200.00 [06:49:44]line Внесено: 200.00 [06:49:44]line СДАЧА: 0.00 [06:49:44]line НСП 1% : 1.77 [06:49:44]line НДС 12% : 21.24 [06:49:44]line Наличными: 200.00 [06:49:44]line Безнал.: 0.00 [06:49:44]line Место: АЗС № 136 "Партнер Нефть" [06:49:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:49:44]line СНО: Общий режим [06:49:44]line Чек 12 21.08.2024 06:49 [06:49:44]line Смена: 454 ФФД: 1.0 [06:49:44]line ЗНМ: 0300000067 [06:49:44]line РНМ: 0000000000092569 [06:49:44]line Версия ККМ: 001 [06:49:44]line ФМ: 0000000000871776 [06:49:44]line ФД: 139995 [06:49:44]line ФПД: 94745484853901 [06:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T064945&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139995&fm=94745484853901&tin=02508201610067®Number=0000000000092569&sum=20000 [06:49:45]written 0, free lines is 4095 [06:49:45]OFD Sender: Processing packet 139995 [packets to send 137, broken 136] [06:49:45]ProducePacketName [06:49:45]name=ofd_packets/00139995 [06:49:45]OFD Sender: To server: pG, [06:49:45]CommunicateWithHost lk.salyk.kg:30040 [06:49:45]ConnectInit lk.salyk.kg [06:49:45]Connected sock=10 [06:49: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 37 36 0F 01 00 00 D3 C5 07 01 BC 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0C 00 00 00 F4 03 04 00 09 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 22 02 00 35 04 06 00 56 2B A6 F8 02 8D 4D E0 B5 46 69 AB 4F 48 [06:49:45]Write to MH i2c: 01 00 00 D4 1A EE [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: 01 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: 01 07 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 C8 0C C9 [06:49:45]RasterBufferAndPrint [06:49:45]line [06:49:45]line [06:49:45]line [06:49:45]line [06:49:45]line [06:49:45]written 0, free lines is 3279 [06:49:45]MH_Cut [06:49:45]Write to MH i2c: D1 01 00 DB 1A 01 C7 [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: D1 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: D1 01 00 [06:49:45]MH_I2C_Read... [06:49:45]Read from MH i2c: D1 01 00 DB 1A 00 C6 [06:49:45]Write to MH i2c: 01 00 00 DC 1A F6 [06:49: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 37 36 4F 00 00 00 91 CF 47 00 00 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 37 36 10 04 04 00 DB 22 02 00 F4 03 04 00 9A 34 C5 66 B6 04 01 00 00 E2 A5 78 E3 1A 7F 3B 9B [06:49:45]CommunicateWithHost err = 0 [06:49:45]CheckOFDResponse [06:49:45]1017 (14) - 77093643461234 [06:49:45]1041 (16) - 0000000000871776 [06:49:45]1040 (4) - 139995 [06:49:45]1012 (4) - 21.08.2024 00:28 [06:49:45]1206 (1) - 0 [06:49:45]OFD Sender: Remove packet 139995 [06:49:45]ProducePacketName [06:49:45]name=ofd_packets/00139995 [06:49:45]NVStorageDeleteData [06:49:45]Write i2c OK [06:49:45]MH_I2C_Read... [06:49:46]OFD Sender: No OFD packet to send [06:49:46]*** Cut start [06:49:46]*** Partial cut [06:49:46]*** CUTSNS_PIN = 1 [06:49:46]*** CUTSNS_PIN = 0 [06:49:46]*** Brake cut motor [06:49:46]Read from MH i2c: 01 [06:49:46]MH_I2C_Read... [06:49:46]*** Stop cut motor [06:49:46]*** Cut end [06:49:46]Read from MH i2c: 01 07 00 [06:49:46]MH_I2C_Read... [06:49:46]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 FF 0F 0B [06:49:46]process_action close_receipt done [06:49:46]requested_data is exist [06:49:46]produce_requested_data [06:49:46]requested_item fm.sn is exist - process it [06:49:46]wFMCommunicate request_size=4 [06:49:46]MH_SAM_APDU [06:49:46]CAPDU: 80 11 00 00 [06:49:46]Write to MH i2c: E2 08 00 DD 1A 80 11 00 00 00 00 00 00 71 [06:49:46]Write i2c OK [06:49:46]MH_I2C_Read... [06:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:46]Read from MH i2c: E2 [06:49:46]MH_I2C_Read... [06:49:46]Read from MH i2c: E2 17 00 [06:49:46]MH_I2C_Read... [06:49:46]Read from MH i2c: E2 17 00 DD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [06:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:49:46]wFMCommunicate OK [06:49:46]requested_item fd.num is exist - process it [06:49:46]SAM_PROTO_GetFieldsCounters [06:49:46]wFMCommunicate request_size=4 [06:49:46]MH_SAM_APDU [06:49:46]CAPDU: 80 13 00 00 [06:49:46]Write to MH i2c: E2 08 00 DE 1A 80 13 00 00 00 00 00 00 74 [06:49:46]Write i2c OK [06:49:46]MH_I2C_Read... [06:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:46]Read from MH i2c: E2 [06:49:46]MH_I2C_Read... [06:49:46]Read from MH i2c: E2 62 00 [06:49:46]MH_I2C_Read... [06:49:46]Read from MH i2c: E2 62 00 DE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [06:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:49:46]wFMCommunicate OK [06:49:46]SAM_PROTO_GetFieldsCounters done [06:49:46]requested_item shift.num is exist - process it [06:49:46]requested_item shift.opened is exist - process it [06:49:46]req_shift_opened [06:49:46]FM_GetShiftState [06:49:46]SAM_PROTO_GetShiftState [06:49:46]wFMCommunicate request_size=4 [06:49:46]MH_SAM_APDU [06:49:46]CAPDU: 80 13 01 00 [06:49:47]Write to MH i2c: E2 08 00 DF 1A 80 13 01 00 00 00 00 00 76 [06:49:47]Write i2c OK [06:49:47]MH_I2C_Read... [06:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:47]Read from MH i2c: E2 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: E2 0E 00 [06:49:47]MH_I2C_Read... [06:49:47]Read from MH i2c: E2 0E 00 DF 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F6 [06:49:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:49:47]wFMCommunicate OK [06:49:47]SAM_PROTO_GetShiftState done [06:49:47]FM_GetShiftState done [06:49:47]req_shift_opened done [06:49:47]requested_item shift.open_date is exist - process it [06:49:47]req_shift_open_date [06:49:47]req_shift_open_date done [06:49:47]produce_requested_data done [06:49:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139995,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [06:49:47]process_action_free close_receipt [06:49:47]json_value_free [06:49:47]json_value_free done [06:49:47]process_json_proto returns [06:49:47]Send response to host [06:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139995,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [06:49:47]free response buf [06:49:47]execute_script done [06:49:47]execute_script returns [06:49:47]free content buf [06:49:47]Sock 7.Close socket [06:49:47]Sock 7.Thread stoped [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:31]accept exits with 9 [06:51:31]New connection [06:51:31]New thread 3066908004 created [06:51:31]Thread 3066764644 joined [06:51:31]Waiting for new connection... [06:51:31] Sock 9.Parse request [06:51:31]Sock 9.Check first char [06:51:31]Sock 9.First char is OK [06:51:31]request: POST /json_proto HTTP/1.0 [06:51:31]Method: POST [06:51:31]URL: /json_proto [06:51:31]Method is POST - this is cgi request [06:51:31]url: /json_proto [06:51:31]query_string will be loaded in cgi processing [06:51:31]execute_cgi json_proto POST (null) [06:51:31]execute_cgi path=json_proto method=POST [06:51:31]POST find Content-Length [06:51:31]Host: 172.17.45.67:8080 [06:51:31]Content-Length: 678 [06:51:31]Content-Type: application/json [06:51:31] [06:51:31]POST finish read [06:51:31]Found Content-Length = 678 [06:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:31]execute_script... [06:51: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)593850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:31]POST & json_proto [06:51:31]process_json_proto [06:51:31]json parsed OK: [06:51:31]protocol is kg_v1.0 [06:51:31]action value=close_receipt [06:51:31]process_action close_receipt [06:51:31]cmd_close_receipt [06:51:31]MH_GetDate [06:51:31]Write to MH i2c: F0 00 00 E0 1A E9 [06:51:31]Write i2c OK [06:51:31]MH_I2C_Read... [06:51:31]Read from MH i2c: F0 [06:51:31]MH_I2C_Read... [06:51:31]Read from MH i2c: F0 09 00 [06:51:31]MH_I2C_Read... [06:51:31]Read from MH i2c: F0 09 00 E0 1A 00 76 8E C5 66 5F 7F 2B 66 90 [06:51:31]GetLastDocTimeStamp 1724222985 [06:51:31]current date 1724223094 [06:51:31]FM_GetShiftState [06:51:31]SAM_PROTO_GetShiftState [06:51:31]wFMCommunicate request_size=4 [06:51:31]MH_SAM_APDU [06:51:31]CAPDU: 80 13 01 00 [06:51:31]Write to MH i2c: E2 08 00 E1 1A 80 13 01 00 00 00 00 00 78 [06:51:31]Write i2c OK [06:51:31]MH_I2C_Read... [06:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:31]Read from MH i2c: E2 [06:51:31]MH_I2C_Read... [06:51:31]Read from MH i2c: E2 0E 00 [06:51:31]MH_I2C_Read... [06:51:31]Read from MH i2c: E2 0E 00 E1 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F8 [06:51:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:51:31]wFMCommunicate OK [06:51:31]SAM_PROTO_GetShiftState done [06:51:31]FM_GetShiftState done [06:51:31]opened in 1724200467 [06:51:31]opened+sec_in_day 1724286867 [06:51:31]quantity*price = 70037 [06:51:31]sum+1 = 70038 [06:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 13 21.08.2024 06:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139996 ФПД: 58568075384521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T065134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139996&fm=58568075384521&tin=02508201610067®Number=0000000000092569&sum=70000 [06:51:33]StoreToDocumentArchive [06:51:33]shift 454 fd 139996 [06:51:33]save to /storage/0454/doc_00139996 [06:51:33]save last doc name /storage/0454/doc_00139996 to /storage/kkm_last_doc_name [06:51:33]save OK [06:51:33]Clear old archive folders... [06:51:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:51:33]tlvbuf is B6ECFBE0 [06:51:33]SAM_PROTO_ClearQueue [06:51:33]wFMCommunicate request_size=4 [06:51:33]MH_SAM_APDU [06:51:33]CAPDU: 80 09 00 00 [06:51:33]Write to MH i2c: E2 08 00 EE 1A 80 09 00 00 00 00 00 00 7A [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 EE 1A 00 90 00 7C [06:51:33]RAPDU: 90 00 [06:51:33]wFMCommunicate OK [06:51:33]SAM_PROTO_ClearQueue done [06:51:33]KKMCreateOFDPacket [06:51:33]OFDProtocolAddRootSTLVToBuf [06:51:33]FM_MakeSignedData [06:51:33]FM_MakeSignedData [06:51:33]SAM_PROTO_SignData [06:51:33]wFMCommunicate request_size=4 [06:51:33]MH_SAM_APDU [06:51:33]CAPDU: 80 0D 01 02 [06:51:33]Write to MH i2c: E2 08 00 EF 1A 80 0D 01 02 00 00 00 00 82 [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 EF 1A 00 90 00 7D [06:51:33]RAPDU: 90 00 [06:51:33]wFMCommunicate OK [06:51:33]wFMCommunicate request_size=255 [06:51:33]MH_SAM_APDU [06:51: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 76 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 22 02 00 35 04 06 00 35 [06:51:33]Write to MH i2c: E2 02 01 F0 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 76 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 22 02 00 35 04 06 00 35 00 00 2A [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 F0 1A 00 90 00 7E [06:51:33]RAPDU: 90 00 [06:51:33]wFMCommunicate OK [06:51:33]wFMCommunicate request_size=10 [06:51:33]MH_SAM_APDU [06:51:33]CAPDU: 80 0D 02 02 05 44 71 54 16 C9 [06:51:33]Write to MH i2c: E2 0D 00 F1 1A 80 0D 02 02 05 00 44 71 54 16 C9 00 00 77 [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [06:51:33]RAPDU: 90 00 [06:51:33]wFMCommunicate OK [06:51:33]wFMCommunicate request_size=4 [06:51:33]MH_SAM_APDU [06:51:33]CAPDU: 80 0D 03 02 [06:51:33]Write to MH i2c: E2 08 00 F2 1A 80 0D 03 02 00 00 00 00 87 [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 0B 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 0B 00 F2 1A 00 24 6D 82 94 A3 30 1B 2B 90 00 48 [06:51:33]RAPDU: 24 6D 82 94 A3 30 1B 2B 90 00 [06:51:33]wFMCommunicate OK [06:51:33]SAM_PROTO_SignData done [06:51:33]FM_MakeSignedData done [06:51:33]CreateOFDProtocolMessage [06:51:33]wFMCommunicate request_size=4 [06:51:33]MH_SAM_APDU [06:51:33]CAPDU: 80 11 00 00 [06:51:33]Write to MH i2c: E2 08 00 F3 1A 80 11 00 00 00 00 00 00 87 [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:33]Read from MH i2c: E2 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 17 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: E2 17 00 F3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [06:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:51:33]wFMCommunicate OK [06:51:33]CreateOFDProtocolMessage done [06:51:33]OFDSenderStorePacket 139996 [06:51:33]StoreOFDPacket docnum=139996 [06:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 12 97 07 01 70 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 76 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 22 02 00 35 04 06 00 35 44 71 54 16 C9 24 6D 82 94 A3 30 1B 2B [06:51:33]CheckFolder [06:51:33]dirname=/storage/ofd_packets [06:51:33]CheckFolder done [06:51:33]ProducePacketName [06:51:33]name=ofd_packets/00139996 [06:51:33]NVStorageSaveData ofd_packets/00139996 [06:51:33]File name is /storage/ofd_packets/00139996 [06:51:33]Write 301 bytes [06:51:33]NVStorageSaveData done [06:51:33]OFDSenderStorePacket done [06:51:33]KKMCreateOFDPacket done [06:51:33]NVStorageSaveData kkm_last_timestamp [06:51:33]File name is /storage/kkm_last_timestamp [06:51:33]Write 4 bytes [06:51:33]NVStorageSaveData done [06:51:33]ExternCall_PrintAddStr [06:51:33]wPrintStart [06:51:33]Write to MH i2c: 01 00 00 F4 1A 0E [06:51:33]Write i2c OK [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: 01 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: 01 07 00 [06:51:33]MH_I2C_Read... [06:51:33]Read from MH i2c: 01 07 00 F4 1A 00 00 00 00 00 FF 0F 23 [06:51:33]RasterBufferAndPrint [06:51:33]line Счет N : (1)593850 [06:51:33]line ИНН: 02508201610067 [06:51:33]line Контрольно-Кассовый Чек [06:51:33]line ПРОДАЖА [06:51:33]line ТРК (МРК, ГНК) : 42 [06:51:33]line Товар: 2710124130 [06:51:33]line Аи-92-К-5 [06:51:33]line 10.330 * 67.80 [06:51:33]line = 700.37 [06:51:33]line НДС 12% НСП 1% [06:51:33]line > о реализуемом товаре [06:51:33]line ОКРУГЛЕНИЕ: -0.37 [06:51:33]line ИТОГО: 700.00 [06:51:33]line Внесено: 700.00 [06:51:33]line СДАЧА: 0.00 [06:51:33]line НСП 1% : 6.20 [06:51:33]line НДС 12% : 74.38 [06:51:33]line Наличными: 700.00 [06:51:33]line Безнал.: 0.00 [06:51:33]line Место: АЗС № 136 "Партнер Нефть" [06:51:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:51:33]line СНО: Общий режим [06:51:33]line Чек 13 21.08.2024 06:51 [06:51:33]line Смена: 454 ФФД: 1.0 [06:51:33]line ЗНМ: 0300000067 [06:51:33]line РНМ: 0000000000092569 [06:51:33]line Версия ККМ: 001 [06:51:33]line ФМ: 0000000000871776 [06:51:33]line ФД: 139996 [06:51:33]line ФПД: 58568075384521 [06:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T065134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139996&fm=58568075384521&tin=02508201610067®Number=0000000000092569&sum=70000 [06:51:33]written 0, free lines is 4095 [06:51:33]OFD Sender: Processing packet 139996 [packets to send 137, broken 136] [06:51:33]ProducePacketName [06:51:33]name=ofd_packets/00139996 [06:51:33]OFD Sender: To server: pG, [06:51:33]CommunicateWithHost lk.salyk.kg:30040 [06:51:33]ConnectInit lk.salyk.kg [06:51:34]Connected sock=10 [06:51: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 37 36 0F 01 00 00 12 97 07 01 70 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 76 8E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 22 02 00 35 04 06 00 35 44 71 54 16 C9 24 6D 82 94 A3 30 1B 2B [06:51: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 37 36 4F 00 00 00 0A 1C 47 00 27 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 22 02 00 F4 03 04 00 07 35 C5 66 B6 04 01 00 00 61 86 87 D1 AE 98 20 72 [06:51:34]CommunicateWithHost err = 0 [06:51:34]CheckOFDResponse [06:51:34]1017 (14) - 77093643461234 [06:51:34]1041 (16) - 0000000000871776 [06:51:34]1040 (4) - 139996 [06:51:34]1012 (4) - 21.08.2024 00:29 [06:51:34]1206 (1) - 0 [06:51:34]OFD Sender: Remove packet 139996 [06:51:34]ProducePacketName [06:51:34]name=ofd_packets/00139996 [06:51:34]NVStorageDeleteData [06:51:34]Write to MH i2c: 01 00 00 1F 1B 3A [06:51:34]Write i2c OK [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: 01 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: 01 07 00 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 CC 0C 19 [06:51:34]RasterBufferAndPrint [06:51:34]line [06:51:34]line [06:51:34]line [06:51:34]line [06:51:34]line [06:51:34]written 0, free lines is 3282 [06:51:34]MH_Cut [06:51:34]Write to MH i2c: D1 01 00 26 1B 01 13 [06:51:34]Write i2c OK [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: D1 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: D1 01 00 [06:51:34]MH_I2C_Read... [06:51:34]Read from MH i2c: D1 01 00 26 1B 00 12 [06:51:34]Write to MH i2c: 01 00 00 27 1B 42 [06:51:34]Write i2c OK [06:51:34]MH_I2C_Read... [06:51:34]OFD Sender: No OFD packet to send [06:51:35]*** Cut start [06:51:35]*** Partial cut [06:51:35]*** CUTSNS_PIN = 1 [06:51:35]*** CUTSNS_PIN = 0 [06:51:35]*** Brake cut motor [06:51:35]Read from MH i2c: 01 [06:51:35]MH_I2C_Read... [06:51:35]*** Stop cut motor [06:51:35]*** Cut end [06:51:35]Read from MH i2c: 01 07 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: 01 07 00 27 1B 00 00 00 00 00 FF 0F 57 [06:51:35]process_action close_receipt done [06:51:35]requested_data is exist [06:51:35]produce_requested_data [06:51:35]requested_item fm.sn is exist - process it [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 11 00 00 [06:51:35]Write to MH i2c: E2 08 00 28 1B 80 11 00 00 00 00 00 00 BD [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 17 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 17 00 28 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [06:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:51:35]wFMCommunicate OK [06:51:35]requested_item fd.num is exist - process it [06:51:35]SAM_PROTO_GetFieldsCounters [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 13 00 00 [06:51:35]Write to MH i2c: E2 08 00 29 1B 80 13 00 00 00 00 00 00 C0 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:35]Read from MH i2c: E2 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 62 00 [06:51:35]MH_I2C_Read... [06:51:35]Read from MH i2c: E2 62 00 29 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [06:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:35]wFMCommunicate OK [06:51:35]SAM_PROTO_GetFieldsCounters done [06:51:35]requested_item shift.num is exist - process it [06:51:35]requested_item shift.opened is exist - process it [06:51:35]req_shift_opened [06:51:35]FM_GetShiftState [06:51:35]SAM_PROTO_GetShiftState [06:51:35]wFMCommunicate request_size=4 [06:51:35]MH_SAM_APDU [06:51:35]CAPDU: 80 13 01 00 [06:51:35]Write to MH i2c: E2 08 00 2A 1B 80 13 01 00 00 00 00 00 C2 [06:51:35]Write i2c OK [06:51:35]MH_I2C_Read... [06:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:36]Read from MH i2c: E2 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: E2 0E 00 [06:51:36]MH_I2C_Read... [06:51:36]Read from MH i2c: E2 0E 00 2A 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 42 [06:51:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:51:36]wFMCommunicate OK [06:51:36]SAM_PROTO_GetShiftState done [06:51:36]FM_GetShiftState done [06:51:36]req_shift_opened done [06:51:36]requested_item shift.open_date is exist - process it [06:51:36]req_shift_open_date [06:51:36]req_shift_open_date done [06:51:36]produce_requested_data done [06:51:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139996,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [06:51:36]process_action_free close_receipt [06:51:36]json_value_free [06:51:36]json_value_free done [06:51:36]process_json_proto returns [06:51:36]Send response to host [06:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139996,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [06:51:36]free response buf [06:51:36]execute_script done [06:51:36]execute_script returns [06:51:36]free content buf [06:51:36]Sock 9.Close socket [06:51:36]Sock 9.Thread stoped [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:03]accept exits with 7 [06:57:03]New connection [06:57:03]New thread 3066764644 created [06:57:03]Thread 3066908004 joined [06:57:03]Waiting for new connection... [06:57:03] Sock 7.Parse request [06:57:03]Sock 7.Check first char [06:57:03]Sock 7.First char is OK [06:57:03]request: POST /json_proto HTTP/1.0 [06:57:03]Method: POST [06:57:03]URL: /json_proto [06:57:03]Method is POST - this is cgi request [06:57:03]url: /json_proto [06:57:03]query_string will be loaded in cgi processing [06:57:03]execute_cgi json_proto POST (null) [06:57:03]execute_cgi path=json_proto method=POST [06:57:03]POST find Content-Length [06:57:03]Host: 172.17.45.67:8080 [06:57:03]Content-Length: 682 [06:57:03]Content-Type: application/json [06:57:03] [06:57:03]POST finish read [06:57:03]Found Content-Length = 682 [06:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [06:57:03]execute_script... [06:57:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [06:57:03]POST & json_proto [06:57:03]process_json_proto [06:57:03]json parsed OK: [06:57:03]protocol is kg_v1.0 [06:57:03]action value=close_receipt [06:57:03]process_action close_receipt [06:57:03]cmd_close_receipt [06:57:03]MH_GetDate [06:57:03]Write to MH i2c: F0 00 00 2B 1B 35 [06:57:03]Write i2c OK [06:57:03]MH_I2C_Read... [06:57:03]Read from MH i2c: F0 [06:57:03]MH_I2C_Read... [06:57:03]Read from MH i2c: F0 09 00 [06:57:03]MH_I2C_Read... [06:57:03]Read from MH i2c: F0 09 00 2B 1B 00 C1 8F C5 66 5F 7F 2B 66 28 [06:57:03]GetLastDocTimeStamp 1724223094 [06:57:03]current date 1724223425 [06:57:03]FM_GetShiftState [06:57:03]SAM_PROTO_GetShiftState [06:57:03]wFMCommunicate request_size=4 [06:57:03]MH_SAM_APDU [06:57:03]CAPDU: 80 13 01 00 [06:57:03]Write to MH i2c: E2 08 00 2C 1B 80 13 01 00 00 00 00 00 C4 [06:57:03]Write i2c OK [06:57:03]MH_I2C_Read... [06:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:03]Read from MH i2c: E2 [06:57:03]MH_I2C_Read... [06:57:03]Read from MH i2c: E2 0E 00 [06:57:03]MH_I2C_Read... [06:57:03]Read from MH i2c: E2 0E 00 2C 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 44 [06:57:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:57:03]wFMCommunicate OK [06:57:03]SAM_PROTO_GetShiftState done [06:57:03]FM_GetShiftState done [06:57:03]opened in 1724200467 [06:57:03]opened+sec_in_day 1724286867 [06:57:03]quantity*price = 150041 [06:57:03]sum+1 = 150042 [06:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 14 21.08.2024 06:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139997 ФПД: 67189630164992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T065705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139997&fm=67189630164992&tin=02508201610067®Number=0000000000092569&sum=150000 [06:57:04]StoreToDocumentArchive [06:57:04]shift 454 fd 139997 [06:57:04]save to /storage/0454/doc_00139997 [06:57:04]save last doc name /storage/0454/doc_00139997 to /storage/kkm_last_doc_name [06:57:04]save OK [06:57:04]Clear old archive folders... [06:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:04]tlvbuf is B6EB6B70 [06:57:04]SAM_PROTO_ClearQueue [06:57:04]wFMCommunicate request_size=4 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 09 00 00 [06:57:04]Write to MH i2c: E2 08 00 39 1B 80 09 00 00 00 00 00 00 C6 [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 39 1B 00 90 00 C8 [06:57:04]RAPDU: 90 00 [06:57:04]wFMCommunicate OK [06:57:04]SAM_PROTO_ClearQueue done [06:57:04]KKMCreateOFDPacket [06:57:04]OFDProtocolAddRootSTLVToBuf [06:57:04]FM_MakeSignedData [06:57:04]FM_MakeSignedData [06:57:04]SAM_PROTO_SignData [06:57:04]wFMCommunicate request_size=4 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 0D 01 02 [06:57:04]Write to MH i2c: E2 08 00 3A 1B 80 0D 01 02 00 00 00 00 CE [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 3A 1B 00 90 00 C9 [06:57:04]RAPDU: 90 00 [06:57:04]wFMCommunicate OK [06:57:04]wFMCommunicate request_size=255 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 00 00 00 F4 03 04 00 C1 8F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 22 02 00 35 04 06 00 3D [06:57:04]Write to MH i2c: E2 02 01 3B 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 00 00 00 F4 03 04 00 C1 8F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 22 02 00 35 04 06 00 3D 00 00 5A [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 3B 1B 00 90 00 CA [06:57:04]RAPDU: 90 00 [06:57:04]wFMCommunicate OK [06:57:04]wFMCommunicate request_size=10 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 0D 02 02 05 1B CE 09 E0 00 [06:57:04]Write to MH i2c: E2 0D 00 3C 1B 80 0D 02 02 05 00 1B CE 09 E0 00 00 00 AD [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [06:57:04]RAPDU: 90 00 [06:57:04]wFMCommunicate OK [06:57:04]wFMCommunicate request_size=4 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 0D 03 02 [06:57:04]Write to MH i2c: E2 08 00 3D 1B 80 0D 03 02 00 00 00 00 D3 [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 0B 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 0B 00 3D 1B 00 0B 3A AC 39 88 3D 6F B5 90 00 E7 [06:57:04]RAPDU: 0B 3A AC 39 88 3D 6F B5 90 00 [06:57:04]wFMCommunicate OK [06:57:04]SAM_PROTO_SignData done [06:57:04]FM_MakeSignedData done [06:57:04]CreateOFDProtocolMessage [06:57:04]wFMCommunicate request_size=4 [06:57:04]MH_SAM_APDU [06:57:04]CAPDU: 80 11 00 00 [06:57:04]Write to MH i2c: E2 08 00 3E 1B 80 11 00 00 00 00 00 00 D3 [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:04]Read from MH i2c: E2 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 17 00 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: E2 17 00 3E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [06:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:57:04]wFMCommunicate OK [06:57:04]CreateOFDProtocolMessage done [06:57:04]OFDSenderStorePacket 139997 [06:57:04]StoreOFDPacket docnum=139997 [06:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 2B 07 01 AB 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 00 00 00 F4 03 04 00 C1 8F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 22 02 00 35 04 06 00 3D 1B CE 09 E0 00 0B 3A AC 39 88 3D 6F B5 [06:57:04]CheckFolder [06:57:04]dirname=/storage/ofd_packets [06:57:04]CheckFolder done [06:57:04]ProducePacketName [06:57:04]name=ofd_packets/00139997 [06:57:04]NVStorageSaveData ofd_packets/00139997 [06:57:04]File name is /storage/ofd_packets/00139997 [06:57:04]Write 301 bytes [06:57:04]NVStorageSaveData done [06:57:04]OFDSenderStorePacket done [06:57:04]KKMCreateOFDPacket done [06:57:04]NVStorageSaveData kkm_last_timestamp [06:57:04]File name is /storage/kkm_last_timestamp [06:57:04]Write 4 bytes [06:57:04]NVStorageSaveData done [06:57:04]ExternCall_PrintAddStr [06:57:04]wPrintStart [06:57:04]Write to MH i2c: 01 00 00 3F 1B 5A [06:57:04]Write i2c OK [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: 01 [06:57:04]MH_I2C_Read... [06:57:04]Read from MH i2c: 01 07 00 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: 01 07 00 3F 1B 00 00 00 00 00 FF 0F 6F [06:57:05]RasterBufferAndPrint [06:57:05]line Счет N : (1)593851 [06:57:05]line ИНН: 02508201610067 [06:57:05]line Контрольно-Кассовый Чек [06:57:05]line ПРОДАЖА [06:57:05]line ТРК (МРК, ГНК) : 42 [06:57:05]line Товар: 2710124130 [06:57:05]line Аи-92-К-5 [06:57:05]line 22.130 * 67.80 [06:57:05]line = 1500.41 [06:57:05]line НДС 12% НСП 1% [06:57:05]line > о реализуемом товаре [06:57:05]line ОКРУГЛЕНИЕ: -0.41 [06:57:05]line ИТОГО: 1500.00 [06:57:05]line Внесено: 1500.00 [06:57:05]line СДАЧА: 0.00 [06:57:05]line НСП 1% : 13.28 [06:57:05]line НДС 12% : 159.34 [06:57:05]line Наличными: 1500.00 [06:57:05]line Безнал.: 0.00 [06:57:05]line Место: АЗС № 136 "Партнер Нефть" [06:57:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [06:57:05]line СНО: Общий режим [06:57:05]line Чек 14 21.08.2024 06:57 [06:57:05]line Смена: 454 ФФД: 1.0 [06:57:05]line ЗНМ: 0300000067 [06:57:05]line РНМ: 0000000000092569 [06:57:05]line Версия ККМ: 001 [06:57:05]line ФМ: 0000000000871776 [06:57:05]line ФД: 139997 [06:57:05]line ФПД: 67189630164992 [06:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T065705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139997&fm=67189630164992&tin=02508201610067®Number=0000000000092569&sum=150000 [06:57:05]written 0, free lines is 4095 [06:57:05]OFD Sender: Processing packet 139997 [packets to send 137, broken 136] [06:57:05]ProducePacketName [06:57:05]name=ofd_packets/00139997 [06:57:05]OFD Sender: To server: pG, [06:57:05]CommunicateWithHost lk.salyk.kg:30040 [06:57:05]ConnectInit lk.salyk.kg [06:57:05]Connected sock=10 [06:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 2B 07 01 AB 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 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 0E 00 00 00 F4 03 04 00 C1 8F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 22 02 00 35 04 06 00 3D 1B CE 09 E0 00 0B 3A AC 39 88 3D 6F B5 [06:57: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 37 36 4F 00 00 00 C3 34 47 00 7B 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 37 36 10 04 04 00 DD 22 02 00 F4 03 04 00 53 36 C5 66 B6 04 01 00 00 6B F2 3B 6A 8C B1 57 F8 [06:57:05]CommunicateWithHost err = 0 [06:57:05]CheckOFDResponse [06:57:05]1017 (14) - 77093643461234 [06:57:05]1041 (16) - 0000000000871776 [06:57:05]1040 (4) - 139997 [06:57:05]1012 (4) - 21.08.2024 00:35 [06:57:05]1206 (1) - 0 [06:57:05]OFD Sender: Remove packet 139997 [06:57:05]ProducePacketName [06:57:05]name=ofd_packets/00139997 [06:57:05]NVStorageDeleteData [06:57:05]Write to MH i2c: 01 00 00 6A 1B 85 [06:57:05]Write i2c OK [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: 01 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: 01 07 00 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 CE 0C 66 [06:57:05]RasterBufferAndPrint [06:57:05]line [06:57:05]line [06:57:05]line [06:57:05]line [06:57:05]line [06:57:05]written 0, free lines is 3286 [06:57:05]MH_Cut [06:57:05]Write to MH i2c: D1 01 00 71 1B 01 5E [06:57:05]Write i2c OK [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: D1 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: D1 01 00 [06:57:05]MH_I2C_Read... [06:57:05]Read from MH i2c: D1 01 00 71 1B 00 5D [06:57:05]Write to MH i2c: 01 00 00 72 1B 8D [06:57:05]Write i2c OK [06:57:05]MH_I2C_Read... [06:57:06]OFD Sender: No OFD packet to send [06:57:06]*** Cut start [06:57:06]*** Partial cut [06:57:06]*** CUTSNS_PIN = 1 [06:57:06]*** CUTSNS_PIN = 0 [06:57:06]*** Brake cut motor [06:57:07]Read from MH i2c: 01 [06:57:07]MH_I2C_Read... [06:57:07]*** Stop cut motor [06:57:07]*** Cut end [06:57:07]Read from MH i2c: 01 07 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [06:57:07]process_action close_receipt done [06:57:07]requested_data is exist [06:57:07]produce_requested_data [06:57:07]requested_item fm.sn is exist - process it [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 11 00 00 [06:57:07]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 17 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [06:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [06:57:07]wFMCommunicate OK [06:57:07]requested_item fd.num is exist - process it [06:57:07]SAM_PROTO_GetFieldsCounters [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 13 00 00 [06:57:07]Write to MH i2c: E2 08 00 74 1B 80 13 00 00 00 00 00 00 0B [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 62 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 62 00 74 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [06:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:57:07]wFMCommunicate OK [06:57:07]SAM_PROTO_GetFieldsCounters done [06:57:07]requested_item shift.num is exist - process it [06:57:07]requested_item shift.opened is exist - process it [06:57:07]req_shift_opened [06:57:07]FM_GetShiftState [06:57:07]SAM_PROTO_GetShiftState [06:57:07]wFMCommunicate request_size=4 [06:57:07]MH_SAM_APDU [06:57:07]CAPDU: 80 13 01 00 [06:57:07]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [06:57:07]Write i2c OK [06:57:07]MH_I2C_Read... [06:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:07]Read from MH i2c: E2 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 0E 00 [06:57:07]MH_I2C_Read... [06:57:07]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8D [06:57:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [06:57:07]wFMCommunicate OK [06:57:07]SAM_PROTO_GetShiftState done [06:57:07]FM_GetShiftState done [06:57:07]req_shift_opened done [06:57:07]requested_item shift.open_date is exist - process it [06:57:07]req_shift_open_date [06:57:07]req_shift_open_date done [06:57:07]produce_requested_data done [06:57:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139997,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [06:57:07]process_action_free close_receipt [06:57:07]json_value_free [06:57:07]json_value_free done [06:57:07]process_json_proto returns [06:57:07]Send response to host [06:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139997,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [06:57:07]free response buf [06:57:07]execute_script done [06:57:07]execute_script returns [06:57:07]free content buf [06:57:07]Sock 7.Close socket [06:57:07]Sock 7.Thread stoped [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:07]int [07:00:07]Write to MH i2c: 01 00 00 76 1B 91 [07:00:07]*** FLAG_PRN_KEY set [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 76 1B 00 08 00 00 00 FF 0F AE [07:00:07]state=0 [07:00:07]Key pressed [07:00:07]Feed [07:00:07]Write to MH i2c: D8 00 00 77 1B 69 [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: D8 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: D8 01 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: D8 01 00 77 1B 00 6A [07:00:07]int [07:00:07]Write to MH i2c: 01 00 00 78 1B 93 [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 78 1B 00 48 00 00 00 3C 00 1E [07:00:07]state=2 [07:00:07]Key pressed [07:00:07]int [07:00:07]Write to MH i2c: 01 00 00 79 1B 94 [07:00:07]*** FLAG_PRN_KEY reset [07:00:07]Write i2c OK [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 [07:00:07]MH_I2C_Read... [07:00:07]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 F6 0F A0 [07:00:07]state=2 [07:00:07]Stop feed [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:14]accept exits with 9 [07:16:14]New connection [07:16:14]New thread 3066908004 created [07:16:14]Thread 3066764644 joined [07:16:14]Waiting for new connection... [07:16:14] Sock 9.Parse request [07:16:14]Sock 9.Check first char [07:16:14]Sock 9.First char is OK [07:16:14]request: POST /json_proto HTTP/1.0 [07:16:14]Method: POST [07:16:14]URL: /json_proto [07:16:14]Method is POST - this is cgi request [07:16:14]url: /json_proto [07:16:14]query_string will be loaded in cgi processing [07:16:14]execute_cgi json_proto POST (null) [07:16:14]execute_cgi path=json_proto method=POST [07:16:14]POST find Content-Length [07:16:14]Host: 172.17.45.67:8080 [07:16:14]Content-Length: 682 [07:16:14]Content-Type: application/json [07:16:14] [07:16:14]POST finish read [07:16:14]Found Content-Length = 682 [07:16:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:14]execute_script... [07:16:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:14]POST & json_proto [07:16:14]process_json_proto [07:16:14]json parsed OK: [07:16:14]protocol is kg_v1.0 [07:16:14]action value=close_receipt [07:16:14]process_action close_receipt [07:16:14]cmd_close_receipt [07:16:14]MH_GetDate [07:16:14]Write to MH i2c: F0 00 00 7A 1B 84 [07:16:14]Write i2c OK [07:16:14]MH_I2C_Read... [07:16:14]Read from MH i2c: F0 [07:16:14]MH_I2C_Read... [07:16:14]Read from MH i2c: F0 09 00 [07:16:14]MH_I2C_Read... [07:16:14]Read from MH i2c: F0 09 00 7A 1B 00 41 94 C5 66 5F 7F 2B 66 FC [07:16:14]GetLastDocTimeStamp 1724223425 [07:16:14]current date 1724224577 [07:16:14]FM_GetShiftState [07:16:14]SAM_PROTO_GetShiftState [07:16:14]wFMCommunicate request_size=4 [07:16:14]MH_SAM_APDU [07:16:14]CAPDU: 80 13 01 00 [07:16:14]Write to MH i2c: E2 08 00 7B 1B 80 13 01 00 00 00 00 00 13 [07:16:14]Write i2c OK [07:16:14]MH_I2C_Read... [07:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:14]Read from MH i2c: E2 [07:16:14]MH_I2C_Read... [07:16:14]Read from MH i2c: E2 0E 00 [07:16:14]MH_I2C_Read... [07:16:14]Read from MH i2c: E2 0E 00 7B 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 93 [07:16:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:16:14]wFMCommunicate OK [07:16:14]SAM_PROTO_GetShiftState done [07:16:14]FM_GetShiftState done [07:16:14]opened in 1724200467 [07:16:14]opened+sec_in_day 1724286867 [07:16:14]quantity*price = 100005 [07:16:14]sum+1 = 100006 [07:16:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 15 21.08.2024 07:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139998 ФПД: 258937470799547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T071617&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139998&fm=258937470799547&tin=02508201610067®Number=0000000000092569&sum=100000 [07:16:15]StoreToDocumentArchive [07:16:15]shift 454 fd 139998 [07:16:15]save to /storage/0454/doc_00139998 [07:16:15]save last doc name /storage/0454/doc_00139998 to /storage/kkm_last_doc_name [07:16:15]save OK [07:16:15]Clear old archive folders... [07:16:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:15]tlvbuf is 00A070B0 [07:16:15]SAM_PROTO_ClearQueue [07:16:15]wFMCommunicate request_size=4 [07:16:15]MH_SAM_APDU [07:16:15]CAPDU: 80 09 00 00 [07:16:15]Write to MH i2c: E2 08 00 88 1B 80 09 00 00 00 00 00 00 15 [07:16:15]Write i2c OK [07:16:15]MH_I2C_Read... [07:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:15]Read from MH i2c: E2 [07:16:15]MH_I2C_Read... [07:16:15]Read from MH i2c: E2 03 00 [07:16:15]MH_I2C_Read... [07:16:15]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [07:16:15]RAPDU: 90 00 [07:16:15]wFMCommunicate OK [07:16:15]SAM_PROTO_ClearQueue done [07:16:15]KKMCreateOFDPacket [07:16:15]OFDProtocolAddRootSTLVToBuf [07:16:15]FM_MakeSignedData [07:16:15]FM_MakeSignedData [07:16:15]SAM_PROTO_SignData [07:16:15]wFMCommunicate request_size=4 [07:16:15]MH_SAM_APDU [07:16:15]CAPDU: 80 0D 01 02 [07:16:15]Write to MH i2c: E2 08 00 89 1B 80 0D 01 02 00 00 00 00 1D [07:16:15]Write i2c OK [07:16:15]MH_I2C_Read... [07:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:15]Read from MH i2c: E2 [07:16:15]MH_I2C_Read... [07:16:15]Read from MH i2c: E2 03 00 [07:16:15]MH_I2C_Read... [07:16:15]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [07:16:15]RAPDU: 90 00 [07:16:15]wFMCommunicate OK [07:16:15]wFMCommunicate request_size=255 [07:16:15]MH_SAM_APDU [07:16:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 41 94 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 22 02 00 35 04 06 00 EB [07:16:15]Write to MH i2c: E2 02 01 8A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 41 94 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 22 02 00 35 04 06 00 EB 00 00 F8 [07:16:15]Write i2c OK [07:16:15]MH_I2C_Read... [07:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:16]Read from MH i2c: E2 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 03 00 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [07:16:16]RAPDU: 90 00 [07:16:16]wFMCommunicate OK [07:16:16]wFMCommunicate request_size=10 [07:16:16]MH_SAM_APDU [07:16:16]CAPDU: 80 0D 02 02 05 80 93 F7 4E BB [07:16:16]Write to MH i2c: E2 0D 00 8B 1B 80 0D 02 02 05 00 80 93 F7 4E BB 00 00 3D [07:16:16]Write i2c OK [07:16:16]MH_I2C_Read... [07:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:16]Read from MH i2c: E2 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 03 00 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [07:16:16]RAPDU: 90 00 [07:16:16]wFMCommunicate OK [07:16:16]wFMCommunicate request_size=4 [07:16:16]MH_SAM_APDU [07:16:16]CAPDU: 80 0D 03 02 [07:16:16]Write to MH i2c: E2 08 00 8C 1B 80 0D 03 02 00 00 00 00 22 [07:16:16]Write i2c OK [07:16:16]MH_I2C_Read... [07:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:16]Read from MH i2c: E2 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 0B 00 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 0B 00 8C 1B 00 C8 27 D7 66 77 7A C1 A4 90 00 A5 [07:16:16]RAPDU: C8 27 D7 66 77 7A C1 A4 90 00 [07:16:16]wFMCommunicate OK [07:16:16]SAM_PROTO_SignData done [07:16:16]FM_MakeSignedData done [07:16:16]CreateOFDProtocolMessage [07:16:16]wFMCommunicate request_size=4 [07:16:16]MH_SAM_APDU [07:16:16]CAPDU: 80 11 00 00 [07:16:16]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [07:16:16]Write i2c OK [07:16:16]MH_I2C_Read... [07:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:16]Read from MH i2c: E2 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 17 00 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: E2 17 00 8D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [07:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:16:16]wFMCommunicate OK [07:16:16]CreateOFDProtocolMessage done [07:16:16]OFDSenderStorePacket 139998 [07:16:16]StoreOFDPacket docnum=139998 [07:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 EB 07 01 03 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 41 94 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 22 02 00 35 04 06 00 EB 80 93 F7 4E BB C8 27 D7 66 77 7A C1 A4 [07:16:16]CheckFolder [07:16:16]dirname=/storage/ofd_packets [07:16:16]CheckFolder done [07:16:16]ProducePacketName [07:16:16]name=ofd_packets/00139998 [07:16:16]NVStorageSaveData ofd_packets/00139998 [07:16:16]File name is /storage/ofd_packets/00139998 [07:16:16]Write 301 bytes [07:16:16]NVStorageSaveData done [07:16:16]OFDSenderStorePacket done [07:16:16]KKMCreateOFDPacket done [07:16:16]NVStorageSaveData kkm_last_timestamp [07:16:16]File name is /storage/kkm_last_timestamp [07:16:16]Write 4 bytes [07:16:16]NVStorageSaveData done [07:16:16]OFD Sender: Processing packet 139998 [packets to send 137, broken 136] [07:16:16]ProducePacketName [07:16:16]name=ofd_packets/00139998 [07:16:16]OFD Sender: To server: pG, [07:16:16]CommunicateWithHost lk.salyk.kg:30040 [07:16:16]ConnectInit lk.salyk.kg [07:16:16]ExternCall_PrintAddStr [07:16:16]wPrintStart [07:16:16]Write to MH i2c: 01 00 00 8E 1B A9 [07:16:16]Write i2c OK [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: 01 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: 01 07 00 [07:16:16]MH_I2C_Read... [07:16:16]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [07:16:16]RasterBufferAndPrint [07:16:16]line Счет N : (1)593852 [07:16:16]line ИНН: 02508201610067 [07:16:16]line Контрольно-Кассовый Чек [07:16:16]line ПРОДАЖА [07:16:16]line ТРК (МРК, ГНК) : 42 [07:16:16]line Товар: 2710124130 [07:16:16]line Аи-92-К-5 [07:16:16]line 14.750 * 67.80 [07:16:16]line = 1000.05 [07:16:16]line НДС 12% НСП 1% [07:16:16]line > о реализуемом товаре [07:16:16]line ОКРУГЛЕНИЕ: -0.05 [07:16:16]line ИТОГО: 1000.00 [07:16:16]line Внесено: 1000.00 [07:16:16]line СДАЧА: 0.00 [07:16:16]line НСП 1% : 8.85 [07:16:16]line НДС 12% : 106.20 [07:16:16]line Наличными: 1000.00 [07:16:16]line Безнал.: 0.00 [07:16:16]line Место: АЗС № 136 "Партнер Нефть" [07:16:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:16:16]line СНО: Общий режим [07:16:16]line Чек 15 21.08.2024 07:16 [07:16:16]line Смена: 454 ФФД: 1.0 [07:16:16]line ЗНМ: 0300000067 [07:16:16]line РНМ: 0000000000092569 [07:16:16]line Версия ККМ: 001 [07:16:16]line ФМ: 0000000000871776 [07:16:16]line ФД: 139998 [07:16:16]line ФПД: 258937470799547 [07:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T071617&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139998&fm=258937470799547&tin=02508201610067®Number=0000000000092569&sum=100000 [07:16:16]Connected sock=11 [07:16:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A4 EB 07 01 03 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 41 94 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 22 02 00 35 04 06 00 EB 80 93 F7 4E BB C8 27 D7 66 77 7A C1 A4 [07:16:16]written 0, free lines is 4095 [07:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 94 BE 47 00 43 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 37 36 10 04 04 00 DE 22 02 00 F4 03 04 00 D2 3A C5 66 B6 04 01 00 00 7B D4 38 87 82 7C BE 4D [07:16:16]CommunicateWithHost err = 0 [07:16:16]CheckOFDResponse [07:16:16]1017 (14) - 77093643461234 [07:16:16]1041 (16) - 0000000000871776 [07:16:16]1040 (4) - 139998 [07:16:16]1012 (4) - 21.08.2024 00:54 [07:16:16]1206 (1) - 0 [07:16:16]OFD Sender: Remove packet 139998 [07:16:16]ProducePacketName [07:16:16]name=ofd_packets/00139998 [07:16:16]NVStorageDeleteData [07:16:17]Write to MH i2c: 01 00 00 B9 1B D4 [07:16:17]Write i2c OK [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: 01 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: 01 07 00 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: 01 07 00 B9 1B 00 00 00 00 00 CC 0C B3 [07:16:17]RasterBufferAndPrint [07:16:17]line [07:16:17]line [07:16:17]line [07:16:17]line [07:16:17]line [07:16:17]written 0, free lines is 3282 [07:16:17]MH_Cut [07:16:17]Write to MH i2c: D1 01 00 C0 1B 01 AD [07:16:17]Write i2c OK [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: D1 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: D1 01 00 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: D1 01 00 C0 1B 00 AC [07:16:17]Write to MH i2c: 01 00 00 C1 1B DC [07:16:17]Write i2c OK [07:16:17]MH_I2C_Read... [07:16:17]OFD Sender: No OFD packet to send [07:16:17]*** Cut start [07:16:17]*** Partial cut [07:16:17]*** CUTSNS_PIN = 1 [07:16:17]*** CUTSNS_PIN = 0 [07:16:18]*** Brake cut motor [07:16:18]Read from MH i2c: 01 [07:16:18]MH_I2C_Read... [07:16:18]*** Stop cut motor [07:16:18]*** Cut end [07:16:18]Read from MH i2c: 01 07 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: 01 07 00 C1 1B 00 00 00 00 00 FF 0F F1 [07:16:18]process_action close_receipt done [07:16:18]requested_data is exist [07:16:18]produce_requested_data [07:16:18]requested_item fm.sn is exist - process it [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 11 00 00 [07:16:18]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 17 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [07:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:16:18]wFMCommunicate OK [07:16:18]requested_item fd.num is exist - process it [07:16:18]SAM_PROTO_GetFieldsCounters [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 13 00 00 [07:16:18]Write to MH i2c: E2 08 00 C3 1B 80 13 00 00 00 00 00 00 5A [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 62 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 62 00 C3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [07:16:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:18]wFMCommunicate OK [07:16:18]SAM_PROTO_GetFieldsCounters done [07:16:18]requested_item shift.num is exist - process it [07:16:18]requested_item shift.opened is exist - process it [07:16:18]req_shift_opened [07:16:18]FM_GetShiftState [07:16:18]SAM_PROTO_GetShiftState [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 13 01 00 [07:16:18]Write to MH i2c: E2 08 00 C4 1B 80 13 01 00 00 00 00 00 5C [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:18]Read from MH i2c: E2 0E 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 0E 00 C4 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DC [07:16:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:16:18]wFMCommunicate OK [07:16:18]SAM_PROTO_GetShiftState done [07:16:18]FM_GetShiftState done [07:16:18]req_shift_opened done [07:16:18]requested_item shift.open_date is exist - process it [07:16:18]req_shift_open_date [07:16:18]req_shift_open_date done [07:16:18]produce_requested_data done [07:16:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139998,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:16:18]process_action_free close_receipt [07:16:18]json_value_free [07:16:18]json_value_free done [07:16:18]process_json_proto returns [07:16:18]Send response to host [07:16:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139998,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:16:18]free response buf [07:16:18]execute_script done [07:16:18]execute_script returns [07:16:18]free content buf [07:16:18]Sock 9.Close socket [07:16:18]Sock 9.Thread stoped [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:18]accept exits with 7 [07:20:18]New connection [07:20:18]New thread 3066764644 created [07:20:18]Thread 3066908004 joined [07:20:18]Waiting for new connection... [07:20:18] Sock 7.Parse request [07:20:18]Sock 7.Check first char [07:20:18]Sock 7.First char is OK [07:20:18]request: POST /json_proto HTTP/1.0 [07:20:18]Method: POST [07:20:18]URL: /json_proto [07:20:18]Method is POST - this is cgi request [07:20:18]url: /json_proto [07:20:18]query_string will be loaded in cgi processing [07:20:18]execute_cgi json_proto POST (null) [07:20:18]execute_cgi path=json_proto method=POST [07:20:18]POST find Content-Length [07:20:18]Host: 172.17.45.67:8080 [07:20:18]Content-Length: 682 [07:20:18]Content-Type: application/json [07:20:18] [07:20:18]POST finish read [07:20:18]Found Content-Length = 682 [07:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:18]execute_script... [07:20: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)593853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:18]POST & json_proto [07:20:18]process_json_proto [07:20:18]json parsed OK: [07:20:18]protocol is kg_v1.0 [07:20:18]action value=close_receipt [07:20:18]process_action close_receipt [07:20:18]cmd_close_receipt [07:20:18]MH_GetDate [07:20:18]Write to MH i2c: F0 00 00 C5 1B CF [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 C5 1B 00 35 95 C5 66 5F 7F 2B 66 3C [07:20:18]GetLastDocTimeStamp 1724224577 [07:20:18]current date 1724224821 [07:20:18]FM_GetShiftState [07:20:18]SAM_PROTO_GetShiftState [07:20:18]wFMCommunicate request_size=4 [07:20:18]MH_SAM_APDU [07:20:18]CAPDU: 80 13 01 00 [07:20:18]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:18]Read from MH i2c: E2 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DE [07:20:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:20:18]wFMCommunicate OK [07:20:18]SAM_PROTO_GetShiftState done [07:20:18]FM_GetShiftState done [07:20:18]opened in 1724200467 [07:20:18]opened+sec_in_day 1724286867 [07:20:18]quantity*price = 100021 [07:20:18]sum+1 = 100023 [07:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 16 21.08.2024 07:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 139999 ФПД: 203250254843151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072021&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139999&fm=203250254843151&tin=02508201610067®Number=0000000000092569&sum=100000 [07:20:19]StoreToDocumentArchive [07:20:19]shift 454 fd 139999 [07:20:19]save to /storage/0454/doc_00139999 [07:20:19]save last doc name /storage/0454/doc_00139999 to /storage/kkm_last_doc_name [07:20:19]save OK [07:20:19]Clear old archive folders... [07:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:19]tlvbuf is B6E9DCC0 [07:20:19]SAM_PROTO_ClearQueue [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 09 00 00 [07:20:19]Write to MH i2c: E2 08 00 D3 1B 80 09 00 00 00 00 00 00 60 [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 D3 1B 00 90 00 62 [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]SAM_PROTO_ClearQueue done [07:20:20]KKMCreateOFDPacket [07:20:20]OFDProtocolAddRootSTLVToBuf [07:20:20]FM_MakeSignedData [07:20:20]FM_MakeSignedData [07:20:20]SAM_PROTO_SignData [07:20:20]wFMCommunicate request_size=4 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 01 02 [07:20:20]Write to MH i2c: E2 08 00 D4 1B 80 0D 01 02 00 00 00 00 68 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 D4 1B 00 90 00 63 [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]wFMCommunicate request_size=255 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 95 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 22 02 00 35 04 06 00 B8 [07:20:20]Write to MH i2c: E2 02 01 D5 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 95 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 22 02 00 35 04 06 00 B8 00 00 A5 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]wFMCommunicate request_size=10 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 02 02 05 DA E3 3D 8D 0F [07:20:20]Write to MH i2c: E2 0D 00 D6 1B 80 0D 02 02 05 00 DA E3 3D 8D 0F 00 00 0B [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [07:20:20]RAPDU: 90 00 [07:20:20]wFMCommunicate OK [07:20:20]wFMCommunicate request_size=4 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 0D 03 02 [07:20:20]Write to MH i2c: E2 08 00 D7 1B 80 0D 03 02 00 00 00 00 6D [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 0B 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 0B 00 D7 1B 00 F1 C0 67 F8 B9 9A 0B DF 90 00 BB [07:20:20]RAPDU: F1 C0 67 F8 B9 9A 0B DF 90 00 [07:20:20]wFMCommunicate OK [07:20:20]SAM_PROTO_SignData done [07:20:20]FM_MakeSignedData done [07:20:20]CreateOFDProtocolMessage [07:20:20]wFMCommunicate request_size=4 [07:20:20]MH_SAM_APDU [07:20:20]CAPDU: 80 11 00 00 [07:20:20]Write to MH i2c: E2 08 00 D8 1B 80 11 00 00 00 00 00 00 6D [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:20]Read from MH i2c: E2 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 17 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: E2 17 00 D8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [07:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:20:20]wFMCommunicate OK [07:20:20]CreateOFDProtocolMessage done [07:20:20]OFDSenderStorePacket 139999 [07:20:20]StoreOFDPacket docnum=139999 [07:20:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 84 07 01 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 95 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 22 02 00 35 04 06 00 B8 DA E3 3D 8D 0F F1 C0 67 F8 B9 9A 0B DF [07:20:20]CheckFolder [07:20:20]dirname=/storage/ofd_packets [07:20:20]CheckFolder done [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00139999 [07:20:20]NVStorageSaveData ofd_packets/00139999 [07:20:20]File name is /storage/ofd_packets/00139999 [07:20:20]Write 301 bytes [07:20:20]NVStorageSaveData done [07:20:20]OFDSenderStorePacket done [07:20:20]KKMCreateOFDPacket done [07:20:20]NVStorageSaveData kkm_last_timestamp [07:20:20]File name is /storage/kkm_last_timestamp [07:20:20]Write 4 bytes [07:20:20]NVStorageSaveData done [07:20:20]ExternCall_PrintAddStr [07:20:20]wPrintStart [07:20:20]Write to MH i2c: 01 00 00 D9 1B F4 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 D9 1B 00 00 00 00 00 FF 0F 09 [07:20:20]RasterBufferAndPrint [07:20:20]line Счет N : (1)593853 [07:20:20]line ИНН: 02508201610067 [07:20:20]line Контрольно-Кассовый Чек [07:20:20]line ПРОДАЖА [07:20:20]line ТРК (МРК, ГНК) : 51 [07:20:20]line Товар: 2710124500 [07:20:20]line Аи-95-К-5 [07:20:20]line 13.480 * 74.20 [07:20:20]line = 1000.22 [07:20:20]line НДС 12% НСП 1% [07:20:20]line > о реализуемом товаре [07:20:20]line ОКРУГЛЕНИЕ: -0.22 [07:20:20]line ИТОГО: 1000.00 [07:20:20]line Внесено: 1000.00 [07:20:20]line СДАЧА: 0.00 [07:20:20]line НСП 1% : 8.85 [07:20:20]line НДС 12% : 106.22 [07:20:20]line Наличными: 1000.00 [07:20:20]line Безнал.: 0.00 [07:20:20]line Место: АЗС № 136 "Партнер Нефть" [07:20:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:20:20]line СНО: Общий режим [07:20:20]line Чек 16 21.08.2024 07:20 [07:20:20]line Смена: 454 ФФД: 1.0 [07:20:20]line ЗНМ: 0300000067 [07:20:20]line РНМ: 0000000000092569 [07:20:20]line Версия ККМ: 001 [07:20:20]line ФМ: 0000000000871776 [07:20:20]line ФД: 139999 [07:20:20]line ФПД: 203250254843151 [07:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072021&type=1&operation_type=1&fn_number=0000000000871776&fd_number=139999&fm=203250254843151&tin=02508201610067®Number=0000000000092569&sum=100000 [07:20:20]OFD Sender: Processing packet 139999 [packets to send 137, broken 136] [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00139999 [07:20:20]OFD Sender: To server: pG, [07:20:20]CommunicateWithHost lk.salyk.kg:30040 [07:20:20]ConnectInit lk.salyk.kg [07:20:20]written 0, free lines is 4095 [07:20:20]Connected sock=10 [07:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 75 84 07 01 DC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 35 95 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 22 02 00 35 04 06 00 B8 DA E3 3D 8D 0F F1 C0 67 F8 B9 9A 0B DF [07:20: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 37 36 4F 00 00 00 4E 25 47 00 F4 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 37 36 10 04 04 00 DF 22 02 00 F4 03 04 00 C6 3B C5 66 B6 04 01 00 00 2D 19 AD 4B E4 5E 9A 4A [07:20:21]CommunicateWithHost err = 0 [07:20:21]CheckOFDResponse [07:20:21]1017 (14) - 77093643461234 [07:20:21]1041 (16) - 0000000000871776 [07:20:21]1040 (4) - 139999 [07:20:21]1012 (4) - 21.08.2024 00:58 [07:20:21]1206 (1) - 0 [07:20:21]OFD Sender: Remove packet 139999 [07:20:21]ProducePacketName [07:20:21]name=ofd_packets/00139999 [07:20:21]NVStorageDeleteData [07:20:21]Write to MH i2c: 01 00 00 04 1C 20 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 07 00 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: 01 07 00 04 1C 00 00 00 00 00 CE 0C 01 [07:20:21]RasterBufferAndPrint [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]line [07:20:21]written 0, free lines is 3284 [07:20:21]MH_Cut [07:20:21]Write to MH i2c: D1 01 00 0B 1C 01 F9 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 01 00 [07:20:21]MH_I2C_Read... [07:20:21]Read from MH i2c: D1 01 00 0B 1C 00 F8 [07:20:21]Write to MH i2c: 01 00 00 0C 1C 28 [07:20:21]Write i2c OK [07:20:21]MH_I2C_Read... [07:20:21]OFD Sender: No OFD packet to send [07:20:22]*** Cut start [07:20:22]*** Partial cut [07:20:22]*** CUTSNS_PIN = 1 [07:20:22]*** CUTSNS_PIN = 0 [07:20:22]*** Brake cut motor [07:20:22]Read from MH i2c: 01 [07:20:22]MH_I2C_Read... [07:20:22]*** Stop cut motor [07:20:22]*** Cut end [07:20:22]Read from MH i2c: 01 07 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [07:20:22]process_action close_receipt done [07:20:22]requested_data is exist [07:20:22]produce_requested_data [07:20:22]requested_item fm.sn is exist - process it [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 11 00 00 [07:20:22]Write to MH i2c: E2 08 00 0D 1C 80 11 00 00 00 00 00 00 A3 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [07:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:20:22]wFMCommunicate OK [07:20:22]requested_item fd.num is exist - process it [07:20:22]SAM_PROTO_GetFieldsCounters [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 00 00 [07:20:22]Write to MH i2c: E2 08 00 0E 1C 80 13 00 00 00 00 00 00 A6 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 0E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [07:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetFieldsCounters done [07:20:22]requested_item shift.num is exist - process it [07:20:22]requested_item shift.opened is exist - process it [07:20:22]req_shift_opened [07:20:22]FM_GetShiftState [07:20:22]SAM_PROTO_GetShiftState [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 01 00 [07:20:22]Write to MH i2c: E2 08 00 0F 1C 80 13 01 00 00 00 00 00 A8 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 0F 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 28 [07:20:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetShiftState done [07:20:22]FM_GetShiftState done [07:20:22]req_shift_opened done [07:20:22]requested_item shift.open_date is exist - process it [07:20:22]req_shift_open_date [07:20:22]req_shift_open_date done [07:20:22]produce_requested_data done [07:20:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":139999,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:20:22]process_action_free close_receipt [07:20:22]json_value_free [07:20:22]json_value_free done [07:20:22]process_json_proto returns [07:20:22]Send response to host [07:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":139999,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:20:22]free response buf [07:20:22]execute_script done [07:20:22]execute_script returns [07:20:22]free content buf [07:20:22]Sock 7.Close socket [07:20:22]Sock 7.Thread stoped [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]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:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]accept exits with 9 [07:27:07]New connection [07:27:07]New thread 3066908004 created [07:27:07]Thread 3066764644 joined [07:27:07]Waiting for new connection... [07:27:07] Sock 9.Parse request [07:27:07]Sock 9.Check first char [07:27:07]Sock 9.First char is OK [07:27:07]request: POST /json_proto HTTP/1.0 [07:27:07]Method: POST [07:27:07]URL: /json_proto [07:27:07]Method is POST - this is cgi request [07:27:07]url: /json_proto [07:27:07]query_string will be loaded in cgi processing [07:27:07]execute_cgi json_proto POST (null) [07:27:07]execute_cgi path=json_proto method=POST [07:27:07]POST find Content-Length [07:27:07]Host: 172.17.45.67:8080 [07:27:07]Content-Length: 677 [07:27:07]Content-Type: application/json [07:27:07] [07:27:07]POST finish read [07:27:07]Found Content-Length = 677 [07:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:07]execute_script... [07:27: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)593854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:07]POST & json_proto [07:27:07]process_json_proto [07:27:07]json parsed OK: [07:27:07]protocol is kg_v1.0 [07:27:07]action value=close_receipt [07:27:07]process_action close_receipt [07:27:07]cmd_close_receipt [07:27:07]MH_GetDate [07:27:07]Write to MH i2c: F0 00 00 10 1C 1B [07:27:07]Write i2c OK [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 09 00 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: F0 09 00 10 1C 00 CD 96 C5 66 5F 7F 2B 66 21 [07:27:07]GetLastDocTimeStamp 1724224821 [07:27:07]current date 1724225229 [07:27:07]FM_GetShiftState [07:27:07]SAM_PROTO_GetShiftState [07:27:07]wFMCommunicate request_size=4 [07:27:07]MH_SAM_APDU [07:27:07]CAPDU: 80 13 01 00 [07:27:07]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [07:27:07]Write i2c OK [07:27:07]MH_I2C_Read... [07:27:07]OFD Sender: No OFD packet to send [07:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:07]Read from MH i2c: E2 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: E2 0E 00 [07:27:07]MH_I2C_Read... [07:27:07]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2A [07:27:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:27:07]wFMCommunicate OK [07:27:07]SAM_PROTO_GetShiftState done [07:27:07]FM_GetShiftState done [07:27:07]opened in 1724200467 [07:27:07]opened+sec_in_day 1724286867 [07:27:07]quantity*price = 40002 [07:27:07]sum+1 = 40003 [07:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 17 21.08.2024 07:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140000 ФПД: 22865655374403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140000&fm=22865655374403&tin=02508201610067®Number=0000000000092569&sum=40000 [07:27:08]StoreToDocumentArchive [07:27:08]shift 454 fd 140000 [07:27:08]save to /storage/0454/doc_00140000 [07:27:08]save last doc name /storage/0454/doc_00140000 to /storage/kkm_last_doc_name [07:27:08]save OK [07:27:08]Clear old archive folders... [07:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:27:08]tlvbuf is B6F4DB70 [07:27:08]SAM_PROTO_ClearQueue [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 09 00 00 [07:27:08]Write to MH i2c: E2 08 00 1E 1C 80 09 00 00 00 00 00 00 AC [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]SAM_PROTO_ClearQueue done [07:27:08]KKMCreateOFDPacket [07:27:08]OFDProtocolAddRootSTLVToBuf [07:27:08]FM_MakeSignedData [07:27:08]FM_MakeSignedData [07:27:08]SAM_PROTO_SignData [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 01 02 [07:27:08]Write to MH i2c: E2 08 00 1F 1C 80 0D 01 02 00 00 00 00 B4 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]wFMCommunicate request_size=255 [07:27:08]MH_SAM_APDU [07:27: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD 96 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 22 02 00 35 04 06 00 14 [07:27:08]Write to MH i2c: E2 02 01 20 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD 96 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 22 02 00 35 04 06 00 14 00 00 A0 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]wFMCommunicate request_size=10 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 02 02 05 CB D3 44 22 43 [07:27:08]Write to MH i2c: E2 0D 00 21 1C 80 0D 02 02 05 00 CB D3 44 22 43 00 00 08 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [07:27:08]RAPDU: 90 00 [07:27:08]wFMCommunicate OK [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 0D 03 02 [07:27:08]Write to MH i2c: E2 08 00 22 1C 80 0D 03 02 00 00 00 00 B9 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 0B 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 0B 00 22 1C 00 A2 49 9B 64 6E F4 11 4D 90 00 64 [07:27:08]RAPDU: A2 49 9B 64 6E F4 11 4D 90 00 [07:27:08]wFMCommunicate OK [07:27:08]SAM_PROTO_SignData done [07:27:08]FM_MakeSignedData done [07:27:08]CreateOFDProtocolMessage [07:27:08]wFMCommunicate request_size=4 [07:27:08]MH_SAM_APDU [07:27:08]CAPDU: 80 11 00 00 [07:27:08]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:08]Read from MH i2c: E2 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 17 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [07:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:27:08]wFMCommunicate OK [07:27:08]CreateOFDProtocolMessage done [07:27:08]OFDSenderStorePacket 140000 [07:27:08]StoreOFDPacket docnum=140000 [07:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 5E 07 01 A3 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD 96 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 22 02 00 35 04 06 00 14 CB D3 44 22 43 A2 49 9B 64 6E F4 11 4D [07:27:08]CheckFolder [07:27:08]dirname=/storage/ofd_packets [07:27:08]CheckFolder done [07:27:08]ProducePacketName [07:27:08]name=ofd_packets/00140000 [07:27:08]NVStorageSaveData ofd_packets/00140000 [07:27:08]File name is /storage/ofd_packets/00140000 [07:27:08]Write 301 bytes [07:27:08]NVStorageSaveData done [07:27:08]OFDSenderStorePacket done [07:27:08]KKMCreateOFDPacket done [07:27:08]NVStorageSaveData kkm_last_timestamp [07:27:08]File name is /storage/kkm_last_timestamp [07:27:08]Write 4 bytes [07:27:08]NVStorageSaveData done [07:27:08]ExternCall_PrintAddStr [07:27:08]wPrintStart [07:27:08]Write to MH i2c: 01 00 00 24 1C 40 [07:27:08]Write i2c OK [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 07 00 [07:27:08]MH_I2C_Read... [07:27:08]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 FF 0F 55 [07:27:08]RasterBufferAndPrint [07:27:08]line Счет N : (1)593854 [07:27:08]line ИНН: 02508201610067 [07:27:08]line Контрольно-Кассовый Чек [07:27:08]line ПРОДАЖА [07:27:08]line ТРК (МРК, ГНК) : 42 [07:27:08]line Товар: 2710124130 [07:27:08]line Аи-92-К-5 [07:27:08]line 5.900 * 67.80 [07:27:08]line = 400.02 [07:27:08]line НДС 12% НСП 1% [07:27:08]line > о реализуемом товаре [07:27:08]line ОКРУГЛЕНИЕ: -0.02 [07:27:08]line ИТОГО: 400.00 [07:27:08]line Внесено: 400.00 [07:27:08]line СДАЧА: 0.00 [07:27:08]line НСП 1% : 3.54 [07:27:08]line НДС 12% : 42.48 [07:27:08]line Наличными: 400.00 [07:27:08]line Безнал.: 0.00 [07:27:08]line Место: АЗС № 136 "Партнер Нефть" [07:27:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:27:08]line СНО: Общий режим [07:27:08]line Чек 17 21.08.2024 07:27 [07:27:08]line Смена: 454 ФФД: 1.0 [07:27:08]line ЗНМ: 0300000067 [07:27:08]line РНМ: 0000000000092569 [07:27:08]line Версия ККМ: 001 [07:27:08]line ФМ: 0000000000871776 [07:27:08]line ФД: 140000 [07:27:08]line ФПД: 22865655374403 [07:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140000&fm=22865655374403&tin=02508201610067®Number=0000000000092569&sum=40000 [07:27:09]OFD Sender: Processing packet 140000 [packets to send 137, broken 136] [07:27:09]ProducePacketName [07:27:09]name=ofd_packets/00140000 [07:27:09]OFD Sender: To server: pG, [07:27:09]CommunicateWithHost lk.salyk.kg:30040 [07:27:09]ConnectInit lk.salyk.kg [07:27:09]written 0, free lines is 4095 [07:27:09]Connected sock=11 [07:27: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 37 36 0F 01 00 00 44 5E 07 01 A3 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CD 96 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 22 02 00 35 04 06 00 14 CB D3 44 22 43 A2 49 9B 64 6E F4 11 4D [07:27:09]Write to MH i2c: 01 00 00 4F 1C 6B [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 07 00 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: 01 07 00 4F 1C 00 00 00 00 00 BF 0C 3D [07:27:09]RasterBufferAndPrint [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]line [07:27:09]written 0, free lines is 3267 [07:27:09]MH_Cut [07:27:09]Write to MH i2c: D1 01 00 56 1C 01 44 [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 01 00 [07:27:09]MH_I2C_Read... [07:27:09]Read from MH i2c: D1 01 00 56 1C 00 43 [07:27:09]Write to MH i2c: 01 00 00 57 1C 73 [07:27:09]Write i2c OK [07:27:09]MH_I2C_Read... [07:27: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 37 36 4F 00 00 00 76 B4 47 00 E3 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 37 36 10 04 04 00 E0 22 02 00 F4 03 04 00 5F 3D C5 66 B6 04 01 00 00 3C A8 77 1E BA C1 1C 2E [07:27:09]CommunicateWithHost err = 0 [07:27:09]CheckOFDResponse [07:27:09]1017 (14) - 77093643461234 [07:27:09]1041 (16) - 0000000000871776 [07:27:09]1040 (4) - 140000 [07:27:09]1012 (4) - 21.08.2024 01:05 [07:27:09]1206 (1) - 0 [07:27:09]OFD Sender: Remove packet 140000 [07:27:09]ProducePacketName [07:27:09]name=ofd_packets/00140000 [07:27:09]NVStorageDeleteData [07:27:10]OFD Sender: No OFD packet to send [07:27:10]*** Cut start [07:27:10]*** Partial cut [07:27:10]*** CUTSNS_PIN = 1 [07:27:10]*** CUTSNS_PIN = 0 [07:27:10]*** Brake cut motor [07:27:11]Read from MH i2c: 01 [07:27:11]MH_I2C_Read... [07:27:11]*** Stop cut motor [07:27:11]*** Cut end [07:27:11]Read from MH i2c: 01 07 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: 01 07 00 57 1C 00 00 00 00 00 FF 0F 88 [07:27:11]process_action close_receipt done [07:27:11]requested_data is exist [07:27:11]produce_requested_data [07:27:11]requested_item fm.sn is exist - process it [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 11 00 00 [07:27:11]Write to MH i2c: E2 08 00 58 1C 80 11 00 00 00 00 00 00 EE [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 17 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 17 00 58 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [07:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:27:11]wFMCommunicate OK [07:27:11]requested_item fd.num is exist - process it [07:27:11]SAM_PROTO_GetFieldsCounters [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 13 00 00 [07:27:11]Write to MH i2c: E2 08 00 59 1C 80 13 00 00 00 00 00 00 F1 [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 62 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 62 00 59 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [07:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:27:11]wFMCommunicate OK [07:27:11]SAM_PROTO_GetFieldsCounters done [07:27:11]requested_item shift.num is exist - process it [07:27:11]requested_item shift.opened is exist - process it [07:27:11]req_shift_opened [07:27:11]FM_GetShiftState [07:27:11]SAM_PROTO_GetShiftState [07:27:11]wFMCommunicate request_size=4 [07:27:11]MH_SAM_APDU [07:27:11]CAPDU: 80 13 01 00 [07:27:11]Write to MH i2c: E2 08 00 5A 1C 80 13 01 00 00 00 00 00 F3 [07:27:11]Write i2c OK [07:27:11]MH_I2C_Read... [07:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:11]Read from MH i2c: E2 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 0E 00 [07:27:11]MH_I2C_Read... [07:27:11]Read from MH i2c: E2 0E 00 5A 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 73 [07:27:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:27:11]wFMCommunicate OK [07:27:11]SAM_PROTO_GetShiftState done [07:27:11]FM_GetShiftState done [07:27:11]req_shift_opened done [07:27:11]requested_item shift.open_date is exist - process it [07:27:11]req_shift_open_date [07:27:11]req_shift_open_date done [07:27:11]produce_requested_data done [07:27:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140000,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:27:11]process_action_free close_receipt [07:27:11]json_value_free [07:27:11]json_value_free done [07:27:11]process_json_proto returns [07:27:11]Send response to host [07:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140000,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:27:11]free response buf [07:27:11]execute_script done [07:27:11]execute_script returns [07:27:11]free content buf [07:27:11]Sock 9.Close socket [07:27:11]Sock 9.Thread stoped [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:06]accept exits with 7 [07:29:06]New connection [07:29:06]New thread 3066764644 created [07:29:06] Sock 7.Parse request [07:29:06]Thread 3066908004 joined [07:29:06]Sock 7.Check first char [07:29:06]Waiting for new connection... [07:29:06]Sock 7.First char is OK [07:29:06]request: POST /json_proto HTTP/1.0 [07:29:06]Method: POST [07:29:06]URL: /json_proto [07:29:06]Method is POST - this is cgi request [07:29:06]url: /json_proto [07:29:06]query_string will be loaded in cgi processing [07:29:06]execute_cgi json_proto POST (null) [07:29:06]execute_cgi path=json_proto method=POST [07:29:06]POST find Content-Length [07:29:06]Host: 172.17.45.67:8080 [07:29:06]Content-Length: 677 [07:29:06]Content-Type: application/json [07:29:06] [07:29:06]POST finish read [07:29:06]Found Content-Length = 677 [07:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:06]execute_script... [07:29: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)593855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:06]POST & json_proto [07:29:06]process_json_proto [07:29:06]json parsed OK: [07:29:06]protocol is kg_v1.0 [07:29:06]action value=close_receipt [07:29:06]process_action close_receipt [07:29:06]cmd_close_receipt [07:29:06]MH_GetDate [07:29:06]Write to MH i2c: F0 00 00 5B 1C 66 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: F0 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: F0 09 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: F0 09 00 5B 1C 00 44 97 C5 66 5F 7F 2B 66 E4 [07:29:06]GetLastDocTimeStamp 1724225229 [07:29:06]current date 1724225348 [07:29:06]FM_GetShiftState [07:29:06]SAM_PROTO_GetShiftState [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 13 01 00 [07:29:06]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0E 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 75 [07:29:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_GetShiftState done [07:29:06]FM_GetShiftState done [07:29:06]opened in 1724200467 [07:29:06]opened+sec_in_day 1724286867 [07:29:06]quantity*price = 40002 [07:29:06]sum+1 = 40003 [07:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 18 21.08.2024 07:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140001 ФПД: 170791998317624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072908&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140001&fm=170791998317624&tin=02508201610067®Number=0000000000092569&sum=40000 [07:29:07]StoreToDocumentArchive [07:29:07]shift 454 fd 140001 [07:29:07]save to /storage/0454/doc_00140001 [07:29:07]save last doc name /storage/0454/doc_00140001 to /storage/kkm_last_doc_name [07:29:07]save OK [07:29:07]Clear old archive folders... [07:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:07]tlvbuf is B6E9D770 [07:29:07]SAM_PROTO_ClearQueue [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 09 00 00 [07:29:07]Write to MH i2c: E2 08 00 69 1C 80 09 00 00 00 00 00 00 F7 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]SAM_PROTO_ClearQueue done [07:29:07]KKMCreateOFDPacket [07:29:07]OFDProtocolAddRootSTLVToBuf [07:29:07]FM_MakeSignedData [07:29:07]FM_MakeSignedData [07:29:07]SAM_PROTO_SignData [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 0D 01 02 [07:29:07]Write to MH i2c: E2 08 00 6A 1C 80 0D 01 02 00 00 00 00 FF [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]wFMCommunicate request_size=255 [07:29:07]MH_SAM_APDU [07:29: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 44 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 22 02 00 35 04 06 00 9B [07:29:07]Write to MH i2c: E2 02 01 6B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 44 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 22 02 00 35 04 06 00 9B 00 00 EC [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]wFMCommunicate request_size=10 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 0D 02 02 05 55 9C 63 E4 38 [07:29:07]Write to MH i2c: E2 0D 00 6C 1C 80 0D 02 02 05 00 55 9C 63 E4 38 00 00 7C [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [07:29:07]RAPDU: 90 00 [07:29:07]wFMCommunicate OK [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 0D 03 02 [07:29:07]Write to MH i2c: E2 08 00 6D 1C 80 0D 03 02 00 00 00 00 04 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 0B 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 0B 00 6D 1C 00 CB F8 F1 09 8E FE 7D 87 90 00 52 [07:29:07]RAPDU: CB F8 F1 09 8E FE 7D 87 90 00 [07:29:07]wFMCommunicate OK [07:29:07]SAM_PROTO_SignData done [07:29:07]FM_MakeSignedData done [07:29:07]CreateOFDProtocolMessage [07:29:07]wFMCommunicate request_size=4 [07:29:07]MH_SAM_APDU [07:29:07]CAPDU: 80 11 00 00 [07:29:07]Write to MH i2c: E2 08 00 6E 1C 80 11 00 00 00 00 00 00 04 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:07]Read from MH i2c: E2 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 17 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: E2 17 00 6E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [07:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:29:07]wFMCommunicate OK [07:29:07]CreateOFDProtocolMessage done [07:29:07]OFDSenderStorePacket 140001 [07:29:07]StoreOFDPacket docnum=140001 [07:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6E 30 07 01 53 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 44 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 22 02 00 35 04 06 00 9B 55 9C 63 E4 38 CB F8 F1 09 8E FE 7D 87 [07:29:07]CheckFolder [07:29:07]dirname=/storage/ofd_packets [07:29:07]CheckFolder done [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00140001 [07:29:07]NVStorageSaveData ofd_packets/00140001 [07:29:07]File name is /storage/ofd_packets/00140001 [07:29:07]Write 301 bytes [07:29:07]NVStorageSaveData done [07:29:07]OFDSenderStorePacket done [07:29:07]KKMCreateOFDPacket done [07:29:07]NVStorageSaveData kkm_last_timestamp [07:29:07]File name is /storage/kkm_last_timestamp [07:29:07]Write 4 bytes [07:29:07]NVStorageSaveData done [07:29:07]ExternCall_PrintAddStr [07:29:07]wPrintStart [07:29:07]Write to MH i2c: 01 00 00 6F 1C 8B [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [07:29:07]RasterBufferAndPrint [07:29:07]line Счет N : (1)593855 [07:29:07]line ИНН: 02508201610067 [07:29:07]line Контрольно-Кассовый Чек [07:29:07]line ПРОДАЖА [07:29:07]line ТРК (МРК, ГНК) : 62 [07:29:07]line Товар: 2710124130 [07:29:07]line Аи-92-К-5 [07:29:07]line 5.900 * 67.80 [07:29:07]line = 400.02 [07:29:07]line НДС 12% НСП 1% [07:29:07]line > о реализуемом товаре [07:29:07]line ОКРУГЛЕНИЕ: -0.02 [07:29:07]line ИТОГО: 400.00 [07:29:07]line Внесено: 400.00 [07:29:07]line СДАЧА: 0.00 [07:29:07]line НСП 1% : 3.54 [07:29:07]line НДС 12% : 42.48 [07:29:07]line Наличными: 400.00 [07:29:07]line Безнал.: 0.00 [07:29:07]line Место: АЗС № 136 "Партнер Нефть" [07:29:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:29:07]line СНО: Общий режим [07:29:07]line Чек 18 21.08.2024 07:29 [07:29:07]line Смена: 454 ФФД: 1.0 [07:29:07]line ЗНМ: 0300000067 [07:29:07]line РНМ: 0000000000092569 [07:29:07]line Версия ККМ: 001 [07:29:07]line ФМ: 0000000000871776 [07:29:07]line ФД: 140001 [07:29:08]line ФПД: 170791998317624 [07:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072908&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140001&fm=170791998317624&tin=02508201610067®Number=0000000000092569&sum=40000 [07:29:08]OFD Sender: Processing packet 140001 [packets to send 137, broken 136] [07:29:08]ProducePacketName [07:29:08]name=ofd_packets/00140001 [07:29:08]OFD Sender: To server: pG, [07:29:08]CommunicateWithHost lk.salyk.kg:30040 [07:29:08]ConnectInit lk.salyk.kg [07:29:08]written 0, free lines is 4095 [07:29:08]Connected sock=10 [07:29: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 37 36 0F 01 00 00 6E 30 07 01 53 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 44 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 22 02 00 35 04 06 00 9B 55 9C 63 E4 38 CB F8 F1 09 8E FE 7D 87 [07:29: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 37 36 4F 00 00 00 4A A3 47 00 B3 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 37 36 10 04 04 00 E1 22 02 00 F4 03 04 00 D5 3D C5 66 B6 04 01 00 00 96 73 FB FD 5A CE B3 06 [07:29:08]CommunicateWithHost err = 0 [07:29:08]CheckOFDResponse [07:29:08]1017 (14) - 77093643461234 [07:29:08]1041 (16) - 0000000000871776 [07:29:08]1040 (4) - 140001 [07:29:08]1012 (4) - 21.08.2024 01:07 [07:29:08]1206 (1) - 0 [07:29:08]OFD Sender: Remove packet 140001 [07:29:08]ProducePacketName [07:29:08]name=ofd_packets/00140001 [07:29:08]NVStorageDeleteData [07:29:08]Write to MH i2c: 01 00 00 9A 1C B6 [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: 01 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: 01 07 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 CF 0C 98 [07:29:08]RasterBufferAndPrint [07:29:08]line [07:29:08]line [07:29:08]line [07:29:08]line [07:29:08]line [07:29:08]written 0, free lines is 3282 [07:29:08]MH_Cut [07:29:08]Write to MH i2c: D1 01 00 A1 1C 01 8F [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: D1 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: D1 01 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: D1 01 00 A1 1C 00 8E [07:29:08]Write to MH i2c: 01 00 00 A2 1C BE [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]OFD Sender: No OFD packet to send [07:29:09]*** Cut start [07:29:09]*** Partial cut [07:29:09]*** CUTSNS_PIN = 1 [07:29:09]*** CUTSNS_PIN = 0 [07:29:09]*** Brake cut motor [07:29:09]Read from MH i2c: 01 [07:29:09]MH_I2C_Read... [07:29:09]*** Stop cut motor [07:29:09]*** Cut end [07:29:09]Read from MH i2c: 01 07 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: 01 07 00 A2 1C 00 00 00 00 00 FF 0F D3 [07:29:09]process_action close_receipt done [07:29:09]requested_data is exist [07:29:09]produce_requested_data [07:29:09]requested_item fm.sn is exist - process it [07:29:09]wFMCommunicate request_size=4 [07:29:09]MH_SAM_APDU [07:29:09]CAPDU: 80 11 00 00 [07:29:09]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [07:29:09]Write i2c OK [07:29:09]MH_I2C_Read... [07:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:09]Read from MH i2c: E2 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 17 00 [07:29:09]MH_I2C_Read... [07:29:09]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [07:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:29:09]wFMCommunicate OK [07:29:09]requested_item fd.num is exist - process it [07:29:09]SAM_PROTO_GetFieldsCounters [07:29:09]wFMCommunicate request_size=4 [07:29:09]MH_SAM_APDU [07:29:09]CAPDU: 80 13 00 00 [07:29:09]Write to MH i2c: E2 08 00 A4 1C 80 13 00 00 00 00 00 00 3C [07:29:09]Write i2c OK [07:29:09]MH_I2C_Read... [07:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:10]Read from MH i2c: E2 [07:29:10]MH_I2C_Read... [07:29:10]Read from MH i2c: E2 62 00 [07:29:10]MH_I2C_Read... [07:29:10]Read from MH i2c: E2 62 00 A4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [07:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:29:10]wFMCommunicate OK [07:29:10]SAM_PROTO_GetFieldsCounters done [07:29:10]requested_item shift.num is exist - process it [07:29:10]requested_item shift.opened is exist - process it [07:29:10]req_shift_opened [07:29:10]FM_GetShiftState [07:29:10]SAM_PROTO_GetShiftState [07:29:10]wFMCommunicate request_size=4 [07:29:10]MH_SAM_APDU [07:29:10]CAPDU: 80 13 01 00 [07:29:10]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [07:29:10]Write i2c OK [07:29:10]MH_I2C_Read... [07:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:10]Read from MH i2c: E2 [07:29:10]MH_I2C_Read... [07:29:10]Read from MH i2c: E2 0E 00 [07:29:10]MH_I2C_Read... [07:29:10]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BE [07:29:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:29:10]wFMCommunicate OK [07:29:10]SAM_PROTO_GetShiftState done [07:29:10]FM_GetShiftState done [07:29:10]req_shift_opened done [07:29:10]requested_item shift.open_date is exist - process it [07:29:10]req_shift_open_date [07:29:10]req_shift_open_date done [07:29:10]produce_requested_data done [07:29:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140001,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:29:10]process_action_free close_receipt [07:29:10]json_value_free [07:29:10]json_value_free done [07:29:10]process_json_proto returns [07:29:10]Send response to host [07:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140001,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:29:10]free response buf [07:29:10]execute_script done [07:29:10]execute_script returns [07:29:10]free content buf [07:29:10]Sock 7.Close socket [07:29:10]Sock 7.Thread stoped [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:33]accept exits with 9 [07:29:33]New connection [07:29:33]New thread 3066908004 created [07:29:33]Thread 3066764644 joined [07:29:33]Waiting for new connection... [07:29:33] Sock 9.Parse request [07:29:33]Sock 9.Check first char [07:29:33]Sock 9.First char is OK [07:29:33]request: POST /json_proto HTTP/1.0 [07:29:33]Method: POST [07:29:33]URL: /json_proto [07:29:33]Method is POST - this is cgi request [07:29:33]url: /json_proto [07:29:33]query_string will be loaded in cgi processing [07:29:33]execute_cgi json_proto POST (null) [07:29:33]execute_cgi path=json_proto method=POST [07:29:33]POST find Content-Length [07:29:33]Host: 172.17.45.67:8080 [07:29:33]Content-Length: 677 [07:29:33]Content-Type: application/json [07:29:33] [07:29:33]POST finish read [07:29:33]Found Content-Length = 677 [07:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:33]execute_script... [07:29: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)593856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:33]POST & json_proto [07:29:33]process_json_proto [07:29:33]json parsed OK: [07:29:33]protocol is kg_v1.0 [07:29:33]action value=close_receipt [07:29:33]process_action close_receipt [07:29:33]cmd_close_receipt [07:29:33]MH_GetDate [07:29:33]Write to MH i2c: F0 00 00 A6 1C B1 [07:29:33]Write i2c OK [07:29:33]MH_I2C_Read... [07:29:33]Read from MH i2c: F0 [07:29:33]MH_I2C_Read... [07:29:33]Read from MH i2c: F0 09 00 [07:29:33]MH_I2C_Read... [07:29:33]Read from MH i2c: F0 09 00 A6 1C 00 60 97 C5 66 5F 7F 2B 66 4B [07:29:33]GetLastDocTimeStamp 1724225348 [07:29:33]current date 1724225376 [07:29:33]FM_GetShiftState [07:29:33]SAM_PROTO_GetShiftState [07:29:33]wFMCommunicate request_size=4 [07:29:33]MH_SAM_APDU [07:29:33]CAPDU: 80 13 01 00 [07:29:33]Write to MH i2c: E2 08 00 A7 1C 80 13 01 00 00 00 00 00 40 [07:29:33]Write i2c OK [07:29:33]MH_I2C_Read... [07:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:33]Read from MH i2c: E2 [07:29:33]MH_I2C_Read... [07:29:33]Read from MH i2c: E2 0E 00 [07:29:33]MH_I2C_Read... [07:29:33]Read from MH i2c: E2 0E 00 A7 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C0 [07:29:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:29:33]wFMCommunicate OK [07:29:33]SAM_PROTO_GetShiftState done [07:29:33]FM_GetShiftState done [07:29:33]opened in 1724200467 [07:29:33]opened+sec_in_day 1724286867 [07:29:33]quantity*price = 40002 [07:29:33]sum+1 = 40003 [07:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 19 21.08.2024 07:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140002 ФПД: 148661127090008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140002&fm=148661127090008&tin=02508201610067®Number=0000000000092569&sum=40000 [07:29:34]StoreToDocumentArchive [07:29:34]shift 454 fd 140002 [07:29:34]save to /storage/0454/doc_00140002 [07:29:34]save last doc name /storage/0454/doc_00140002 to /storage/kkm_last_doc_name [07:29:34]save OK [07:29:34]Clear old archive folders... [07:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:34]tlvbuf is B6F4A390 [07:29:34]SAM_PROTO_ClearQueue [07:29:34]wFMCommunicate request_size=4 [07:29:34]MH_SAM_APDU [07:29:34]CAPDU: 80 09 00 00 [07:29:34]Write to MH i2c: E2 08 00 B4 1C 80 09 00 00 00 00 00 00 42 [07:29:34]Write i2c OK [07:29:34]MH_I2C_Read... [07:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:34]Read from MH i2c: E2 [07:29:34]MH_I2C_Read... [07:29:34]Read from MH i2c: E2 03 00 [07:29:34]MH_I2C_Read... [07:29:34]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [07:29:34]RAPDU: 90 00 [07:29:34]wFMCommunicate OK [07:29:34]SAM_PROTO_ClearQueue done [07:29:34]KKMCreateOFDPacket [07:29:34]OFDProtocolAddRootSTLVToBuf [07:29:34]FM_MakeSignedData [07:29:34]FM_MakeSignedData [07:29:34]SAM_PROTO_SignData [07:29:34]wFMCommunicate request_size=4 [07:29:34]MH_SAM_APDU [07:29:34]CAPDU: 80 0D 01 02 [07:29:34]Write to MH i2c: E2 08 00 B5 1C 80 0D 01 02 00 00 00 00 4A [07:29:34]Write i2c OK [07:29:34]MH_I2C_Read... [07:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:35]Read from MH i2c: E2 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [07:29:35]RAPDU: 90 00 [07:29:35]wFMCommunicate OK [07:29:35]wFMCommunicate request_size=255 [07:29:35]MH_SAM_APDU [07:29: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 22 02 00 35 04 06 00 87 [07:29:35]Write to MH i2c: E2 02 01 B6 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 22 02 00 35 04 06 00 87 00 00 41 [07:29:35]Write i2c OK [07:29:35]MH_I2C_Read... [07:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:35]Read from MH i2c: E2 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [07:29:35]RAPDU: 90 00 [07:29:35]wFMCommunicate OK [07:29:35]wFMCommunicate request_size=10 [07:29:35]MH_SAM_APDU [07:29:35]CAPDU: 80 0D 02 02 05 34 DD AC 0F 58 [07:29:35]Write to MH i2c: E2 0D 00 B7 1C 80 0D 02 02 05 00 34 DD AC 0F 58 00 00 7B [07:29:35]Write i2c OK [07:29:35]MH_I2C_Read... [07:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:35]Read from MH i2c: E2 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [07:29:35]RAPDU: 90 00 [07:29:35]wFMCommunicate OK [07:29:35]wFMCommunicate request_size=4 [07:29:35]MH_SAM_APDU [07:29:35]CAPDU: 80 0D 03 02 [07:29:35]Write to MH i2c: E2 08 00 B8 1C 80 0D 03 02 00 00 00 00 4F [07:29:35]Write i2c OK [07:29:35]MH_I2C_Read... [07:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:35]Read from MH i2c: E2 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 0B 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 0B 00 B8 1C 00 3F 33 78 71 AE 25 04 AD 90 00 2F [07:29:35]RAPDU: 3F 33 78 71 AE 25 04 AD 90 00 [07:29:35]wFMCommunicate OK [07:29:35]SAM_PROTO_SignData done [07:29:35]FM_MakeSignedData done [07:29:35]CreateOFDProtocolMessage [07:29:35]wFMCommunicate request_size=4 [07:29:35]MH_SAM_APDU [07:29:35]CAPDU: 80 11 00 00 [07:29:35]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [07:29:35]Write i2c OK [07:29:35]MH_I2C_Read... [07:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:35]Read from MH i2c: E2 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 17 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [07:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:29:35]wFMCommunicate OK [07:29:35]CreateOFDProtocolMessage done [07:29:35]OFDSenderStorePacket 140002 [07:29:35]StoreOFDPacket docnum=140002 [07:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 34 07 01 42 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 22 02 00 35 04 06 00 87 34 DD AC 0F 58 3F 33 78 71 AE 25 04 AD [07:29:35]CheckFolder [07:29:35]dirname=/storage/ofd_packets [07:29:35]CheckFolder done [07:29:35]ProducePacketName [07:29:35]name=ofd_packets/00140002 [07:29:35]NVStorageSaveData ofd_packets/00140002 [07:29:35]File name is /storage/ofd_packets/00140002 [07:29:35]Write 301 bytes [07:29:35]NVStorageSaveData done [07:29:35]OFDSenderStorePacket done [07:29:35]KKMCreateOFDPacket done [07:29:35]NVStorageSaveData kkm_last_timestamp [07:29:35]File name is /storage/kkm_last_timestamp [07:29:35]Write 4 bytes [07:29:35]NVStorageSaveData done [07:29:35]ExternCall_PrintAddStr [07:29:35]wPrintStart [07:29:35]Write to MH i2c: 01 00 00 BA 1C D6 [07:29:35]Write i2c OK [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: 01 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: 01 07 00 [07:29:35]MH_I2C_Read... [07:29:35]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 FF 0F EB [07:29:35]RasterBufferAndPrint [07:29:35]line Счет N : (1)593856 [07:29:35]line ИНН: 02508201610067 [07:29:35]line Контрольно-Кассовый Чек [07:29:35]line ПРОДАЖА [07:29:35]line ТРК (МРК, ГНК) : 42 [07:29:35]line Товар: 2710124130 [07:29:35]line Аи-92-К-5 [07:29:35]line 5.900 * 67.80 [07:29:35]line = 400.02 [07:29:35]line НДС 12% НСП 1% [07:29:35]line > о реализуемом товаре [07:29:35]line ОКРУГЛЕНИЕ: -0.02 [07:29:35]line ИТОГО: 400.00 [07:29:35]line Внесено: 400.00 [07:29:35]line СДАЧА: 0.00 [07:29:35]line НСП 1% : 3.54 [07:29:35]line НДС 12% : 42.48 [07:29:35]line Наличными: 400.00 [07:29:35]line Безнал.: 0.00 [07:29:35]line Место: АЗС № 136 "Партнер Нефть" [07:29:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:29:35]line СНО: Общий режим [07:29:35]line Чек 19 21.08.2024 07:29 [07:29:35]line Смена: 454 ФФД: 1.0 [07:29:35]line ЗНМ: 0300000067 [07:29:35]line РНМ: 0000000000092569 [07:29:35]line Версия ККМ: 001 [07:29:35]line ФМ: 0000000000871776 [07:29:35]line ФД: 140002 [07:29:35]line ФПД: 148661127090008 [07:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T072936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140002&fm=148661127090008&tin=02508201610067®Number=0000000000092569&sum=40000 [07:29:35]OFD Sender: Processing packet 140002 [packets to send 137, broken 136] [07:29:35]ProducePacketName [07:29:35]name=ofd_packets/00140002 [07:29:35]OFD Sender: To server: pG, [07:29:35]CommunicateWithHost lk.salyk.kg:30040 [07:29:35]ConnectInit lk.salyk.kg [07:29:35]written 0, free lines is 4095 [07:29:35]Connected sock=10 [07:29: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 37 36 0F 01 00 00 74 34 07 01 42 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 97 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 22 02 00 35 04 06 00 87 34 DD AC 0F 58 3F 33 78 71 AE 25 04 AD [07:29:36]Write to MH i2c: 01 00 00 E5 1C 01 [07:29:36]Write i2c OK [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: 01 [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: 01 07 00 [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: 01 07 00 E5 1C 00 00 00 00 00 C2 0C D6 [07:29:36]RasterBufferAndPrint [07:29:36]line [07:29:36]line [07:29:36]line [07:29:36]line [07:29:36]line [07:29:36]written 0, free lines is 3272 [07:29:36]MH_Cut [07:29:36]Write to MH i2c: D1 01 00 EC 1C 01 DA [07:29:36]Write i2c OK [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: D1 [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: D1 01 00 [07:29:36]MH_I2C_Read... [07:29:36]Read from MH i2c: D1 01 00 EC 1C 00 D9 [07:29:36]Write to MH i2c: 01 00 00 ED 1C 09 [07:29:36]Write i2c OK [07:29:36]MH_I2C_Read... [07:29: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 37 36 4F 00 00 00 40 9C 47 00 8C 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 37 36 10 04 04 00 E2 22 02 00 F4 03 04 00 F1 3D C5 66 B6 04 01 00 00 58 5E 62 A9 A9 C4 CC 9F [07:29:36]CommunicateWithHost err = 0 [07:29:36]CheckOFDResponse [07:29:36]1017 (14) - 77093643461234 [07:29:36]1041 (16) - 0000000000871776 [07:29:36]1040 (4) - 140002 [07:29:36]1012 (4) - 21.08.2024 01:08 [07:29:36]1206 (1) - 0 [07:29:36]OFD Sender: Remove packet 140002 [07:29:36]ProducePacketName [07:29:36]name=ofd_packets/00140002 [07:29:36]NVStorageDeleteData [07:29:36]OFD Sender: No OFD packet to send [07:29:36]*** Cut start [07:29:36]*** Partial cut [07:29:36]*** CUTSNS_PIN = 1 [07:29:36]*** CUTSNS_PIN = 0 [07:29:37]*** Brake cut motor [07:29:37]Read from MH i2c: 01 [07:29:37]MH_I2C_Read... [07:29:37]*** Stop cut motor [07:29:37]*** Cut end [07:29:37]Read from MH i2c: 01 07 00 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: 01 07 00 ED 1C 00 00 00 00 00 FF 0F 1E [07:29:37]process_action close_receipt done [07:29:37]requested_data is exist [07:29:37]produce_requested_data [07:29:37]requested_item fm.sn is exist - process it [07:29:37]wFMCommunicate request_size=4 [07:29:37]MH_SAM_APDU [07:29:37]CAPDU: 80 11 00 00 [07:29:37]Write to MH i2c: E2 08 00 EE 1C 80 11 00 00 00 00 00 00 84 [07:29:37]Write i2c OK [07:29:37]MH_I2C_Read... [07:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:37]Read from MH i2c: E2 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 17 00 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 17 00 EE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [07:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:29:37]wFMCommunicate OK [07:29:37]requested_item fd.num is exist - process it [07:29:37]SAM_PROTO_GetFieldsCounters [07:29:37]wFMCommunicate request_size=4 [07:29:37]MH_SAM_APDU [07:29:37]CAPDU: 80 13 00 00 [07:29:37]Write to MH i2c: E2 08 00 EF 1C 80 13 00 00 00 00 00 00 87 [07:29:37]Write i2c OK [07:29:37]MH_I2C_Read... [07:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:37]Read from MH i2c: E2 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 62 00 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 62 00 EF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [07:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:29:37]wFMCommunicate OK [07:29:37]SAM_PROTO_GetFieldsCounters done [07:29:37]requested_item shift.num is exist - process it [07:29:37]requested_item shift.opened is exist - process it [07:29:37]req_shift_opened [07:29:37]FM_GetShiftState [07:29:37]SAM_PROTO_GetShiftState [07:29:37]wFMCommunicate request_size=4 [07:29:37]MH_SAM_APDU [07:29:37]CAPDU: 80 13 01 00 [07:29:37]Write to MH i2c: E2 08 00 F0 1C 80 13 01 00 00 00 00 00 89 [07:29:37]Write i2c OK [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 [07:29:37]MH_I2C_Read... [07:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:37]Read from MH i2c: E2 0E 00 [07:29:37]MH_I2C_Read... [07:29:37]Read from MH i2c: E2 0E 00 F0 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 09 [07:29:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:29:37]wFMCommunicate OK [07:29:37]SAM_PROTO_GetShiftState done [07:29:37]FM_GetShiftState done [07:29:37]req_shift_opened done [07:29:37]requested_item shift.open_date is exist - process it [07:29:37]req_shift_open_date [07:29:37]req_shift_open_date done [07:29:37]produce_requested_data done [07:29:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140002,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:29:37]process_action_free close_receipt [07:29:37]json_value_free [07:29:37]json_value_free done [07:29:37]process_json_proto returns [07:29:37]Send response to host [07:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140002,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:29:37]free response buf [07:29:37]execute_script done [07:29:37]execute_script returns [07:29:37]free content buf [07:29:37]Sock 9.Close socket [07:29:37]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:07]OFD Sender: No OFD packet to send [07:46:12]OFD Sender: No OFD packet to send [07:46:17]OFD Sender: No OFD packet to send [07:46:22]OFD Sender: No OFD packet to send [07:46:27]OFD Sender: No OFD packet to send [07:46:32]OFD Sender: No OFD packet to send [07:46:37]OFD Sender: No OFD packet to send [07:46:42]OFD Sender: No OFD packet to send [07:46:47]OFD Sender: No OFD packet to send [07:46:52]OFD Sender: No OFD packet to send [07:46:57]OFD Sender: No OFD packet to send [07:47:02]OFD Sender: No OFD packet to send [07:47:07]OFD Sender: No OFD packet to send [07:47:12]OFD Sender: No OFD packet to send [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:43]accept exits with 7 [07:47:43]New connection [07:47:43]New thread 3066764644 created [07:47:43]Thread 3066908004 joined [07:47:43]Waiting for new connection... [07:47:43] Sock 7.Parse request [07:47:43]Sock 7.Check first char [07:47:43]Sock 7.First char is OK [07:47:43]request: POST /json_proto HTTP/1.0 [07:47:43]Method: POST [07:47:43]URL: /json_proto [07:47:43]Method is POST - this is cgi request [07:47:43]url: /json_proto [07:47:43]query_string will be loaded in cgi processing [07:47:43]execute_cgi json_proto POST (null) [07:47:43]execute_cgi path=json_proto method=POST [07:47:43]POST find Content-Length [07:47:43]Host: 172.17.45.67:8080 [07:47:43]Content-Length: 678 [07:47:43]Content-Type: application/json [07:47:43] [07:47:43]POST finish read [07:47:43]Found Content-Length = 678 [07:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:43]execute_script... [07:47: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)593857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:43]POST & json_proto [07:47:43]process_json_proto [07:47:43]json parsed OK: [07:47:43]protocol is kg_v1.0 [07:47:43]action value=close_receipt [07:47:43]process_action close_receipt [07:47:43]cmd_close_receipt [07:47:43]MH_GetDate [07:47:43]Write to MH i2c: F0 00 00 F1 1C FC [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: F0 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: F0 09 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: F0 09 00 F1 1C 00 A2 9B C5 66 5F 7F 2B 66 DC [07:47:43]GetLastDocTimeStamp 1724225376 [07:47:43]current date 1724226466 [07:47:43]FM_GetShiftState [07:47:43]SAM_PROTO_GetShiftState [07:47:43]wFMCommunicate request_size=4 [07:47:43]MH_SAM_APDU [07:47:43]CAPDU: 80 13 01 00 [07:47:43]Write to MH i2c: E2 08 00 F2 1C 80 13 01 00 00 00 00 00 8B [07:47:43]Write i2c OK [07:47:43]MH_I2C_Read... [07:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:43]Read from MH i2c: E2 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 0E 00 [07:47:43]MH_I2C_Read... [07:47:43]Read from MH i2c: E2 0E 00 F2 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [07:47:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:47:43]wFMCommunicate OK [07:47:43]SAM_PROTO_GetShiftState done [07:47:43]FM_GetShiftState done [07:47:43]opened in 1724200467 [07:47:43]opened+sec_in_day 1724286867 [07:47:43]quantity*price = 80004 [07:47:43]sum+1 = 80005 [07:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 20 21.08.2024 07:47 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140003 ФПД: 239173791426786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T074746&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140003&fm=239173791426786&tin=02508201610067®Number=0000000000092569&sum=80000 [07:47:44]StoreToDocumentArchive [07:47:44]shift 454 fd 140003 [07:47:44]save to /storage/0454/doc_00140003 [07:47:44]save last doc name /storage/0454/doc_00140003 to /storage/kkm_last_doc_name [07:47:44]save OK [07:47:44]Clear old archive folders... [07:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:44]tlvbuf is 00A10610 [07:47:44]SAM_PROTO_ClearQueue [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 09 00 00 [07:47:44]Write to MH i2c: E2 08 00 FF 1C 80 09 00 00 00 00 00 00 8D [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 03 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [07:47:44]RAPDU: 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_ClearQueue done [07:47:44]KKMCreateOFDPacket [07:47:44]OFDProtocolAddRootSTLVToBuf [07:47:44]FM_MakeSignedData [07:47:44]FM_MakeSignedData [07:47:44]SAM_PROTO_SignData [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 0D 01 02 [07:47:44]Write to MH i2c: E2 08 00 00 1D 80 0D 01 02 00 00 00 00 96 [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 03 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [07:47:44]RAPDU: 90 00 [07:47:44]wFMCommunicate OK [07:47:44]wFMCommunicate request_size=255 [07:47:44]MH_SAM_APDU [07:47: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 9B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 22 02 00 35 04 06 00 D9 [07:47:44]Write to MH i2c: E2 02 01 01 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 9B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 22 02 00 35 04 06 00 D9 00 00 EF [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:45]Read from MH i2c: E2 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 03 00 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [07:47:45]RAPDU: 90 00 [07:47:45]wFMCommunicate OK [07:47:45]wFMCommunicate request_size=10 [07:47:45]MH_SAM_APDU [07:47:45]CAPDU: 80 0D 02 02 05 86 FC E0 A8 E2 [07:47:45]Write to MH i2c: E2 0D 00 02 1D 80 0D 02 02 05 00 86 FC E0 A8 E2 00 00 8F [07:47:45]Write i2c OK [07:47:45]MH_I2C_Read... [07:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:45]Read from MH i2c: E2 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 03 00 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [07:47:45]RAPDU: 90 00 [07:47:45]wFMCommunicate OK [07:47:45]wFMCommunicate request_size=4 [07:47:45]MH_SAM_APDU [07:47:45]CAPDU: 80 0D 03 02 [07:47:45]Write to MH i2c: E2 08 00 03 1D 80 0D 03 02 00 00 00 00 9B [07:47:45]Write i2c OK [07:47:45]MH_I2C_Read... [07:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:45]Read from MH i2c: E2 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 0B 00 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 0B 00 03 1D 00 B5 52 4D 72 4D 59 11 12 90 00 2B [07:47:45]RAPDU: B5 52 4D 72 4D 59 11 12 90 00 [07:47:45]wFMCommunicate OK [07:47:45]SAM_PROTO_SignData done [07:47:45]FM_MakeSignedData done [07:47:45]CreateOFDProtocolMessage [07:47:45]wFMCommunicate request_size=4 [07:47:45]MH_SAM_APDU [07:47:45]CAPDU: 80 11 00 00 [07:47:45]Write to MH i2c: E2 08 00 04 1D 80 11 00 00 00 00 00 00 9B [07:47:45]Write i2c OK [07:47:45]MH_I2C_Read... [07:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:45]Read from MH i2c: E2 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 17 00 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: E2 17 00 04 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [07:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:47:45]wFMCommunicate OK [07:47:45]CreateOFDProtocolMessage done [07:47:45]OFDSenderStorePacket 140003 [07:47:45]StoreOFDPacket docnum=140003 [07:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE D7 07 01 23 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 9B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 22 02 00 35 04 06 00 D9 86 FC E0 A8 E2 B5 52 4D 72 4D 59 11 12 [07:47:45]CheckFolder [07:47:45]dirname=/storage/ofd_packets [07:47:45]CheckFolder done [07:47:45]ProducePacketName [07:47:45]name=ofd_packets/00140003 [07:47:45]NVStorageSaveData ofd_packets/00140003 [07:47:45]File name is /storage/ofd_packets/00140003 [07:47:45]Write 301 bytes [07:47:45]NVStorageSaveData done [07:47:45]OFDSenderStorePacket done [07:47:45]KKMCreateOFDPacket done [07:47:45]NVStorageSaveData kkm_last_timestamp [07:47:45]File name is /storage/kkm_last_timestamp [07:47:45]Write 4 bytes [07:47:45]NVStorageSaveData done [07:47:45]ExternCall_PrintAddStr [07:47:45]wPrintStart [07:47:45]Write to MH i2c: 01 00 00 05 1D 22 [07:47:45]Write i2c OK [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: 01 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: 01 07 00 [07:47:45]MH_I2C_Read... [07:47:45]Read from MH i2c: 01 07 00 05 1D 00 00 00 00 00 FF 0F 37 [07:47:45]RasterBufferAndPrint [07:47:45]line Счет N : (1)593857 [07:47:45]line ИНН: 02508201610067 [07:47:45]line Контрольно-Кассовый Чек [07:47:45]line ПРОДАЖА [07:47:45]line ТРК (МРК, ГНК) : 52 [07:47:45]line Товар: 2710124130 [07:47:45]line Аи-92-К-5 [07:47:45]line 11.800 * 67.80 [07:47:45]line = 800.04 [07:47:45]line НДС 12% НСП 1% [07:47:45]line > о реализуемом товаре [07:47:45]line ОКРУГЛЕНИЕ: -0.04 [07:47:45]line ИТОГО: 800.00 [07:47:45]line Внесено: 800.00 [07:47:45]line СДАЧА: 0.00 [07:47:45]line НСП 1% : 7.08 [07:47:45]line НДС 12% : 84.96 [07:47:45]line Наличными: 800.00 [07:47:45]line Безнал.: 0.00 [07:47:45]line Место: АЗС № 136 "Партнер Нефть" [07:47:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:47:45]line СНО: Общий режим [07:47:45]line Чек 20 21.08.2024 07:47 [07:47:45]line Смена: 454 ФФД: 1.0 [07:47:45]line ЗНМ: 0300000067 [07:47:45]line РНМ: 0000000000092569 [07:47:45]line Версия ККМ: 001 [07:47:45]line ФМ: 0000000000871776 [07:47:45]line ФД: 140003 [07:47:45]line ФПД: 239173791426786 [07:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T074746&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140003&fm=239173791426786&tin=02508201610067®Number=0000000000092569&sum=80000 [07:47:45]OFD Sender: Processing packet 140003 [packets to send 137, broken 136] [07:47:45]ProducePacketName [07:47:45]name=ofd_packets/00140003 [07:47:45]OFD Sender: To server: pG, [07:47:45]CommunicateWithHost lk.salyk.kg:30040 [07:47:45]ConnectInit lk.salyk.kg [07:47:45]written 0, free lines is 4095 [07:47:45]Connected sock=10 [07:47: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 37 36 0F 01 00 00 AE D7 07 01 23 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 A2 9B C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 22 02 00 35 04 06 00 D9 86 FC E0 A8 E2 B5 52 4D 72 4D 59 11 12 [07:47: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 37 36 4F 00 00 00 C1 0A 47 00 6C 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 37 36 10 04 04 00 E3 22 02 00 F4 03 04 00 33 42 C5 66 B6 04 01 00 00 19 43 B1 C9 ED B9 6F AF [07:47:46]CommunicateWithHost err = 0 [07:47:46]CheckOFDResponse [07:47:46]1017 (14) - 77093643461234 [07:47:46]1041 (16) - 0000000000871776 [07:47:46]1040 (4) - 140003 [07:47:46]1012 (4) - 21.08.2024 01:26 [07:47:46]1206 (1) - 0 [07:47:46]OFD Sender: Remove packet 140003 [07:47:46]ProducePacketName [07:47:46]name=ofd_packets/00140003 [07:47:46]NVStorageDeleteData [07:47:46]Write to MH i2c: 01 00 00 30 1D 4D [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: 01 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: 01 07 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: 01 07 00 30 1D 00 00 00 00 00 D6 0C 36 [07:47:46]RasterBufferAndPrint [07:47:46]line [07:47:46]line [07:47:46]line [07:47:46]line [07:47:46]line [07:47:46]written 0, free lines is 3293 [07:47:46]MH_Cut [07:47:46]Write to MH i2c: D1 01 00 37 1D 01 26 [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: D1 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: D1 01 00 [07:47:46]MH_I2C_Read... [07:47:46]Read from MH i2c: D1 01 00 37 1D 00 25 [07:47:46]Write to MH i2c: 01 00 00 38 1D 55 [07:47:46]Write i2c OK [07:47:46]MH_I2C_Read... [07:47:46]OFD Sender: No OFD packet to send [07:47:46]*** Cut start [07:47:46]*** Partial cut [07:47:46]*** CUTSNS_PIN = 1 [07:47:46]*** CUTSNS_PIN = 0 [07:47:47]*** Brake cut motor [07:47:47]Read from MH i2c: 01 [07:47:47]MH_I2C_Read... [07:47:47]*** Stop cut motor [07:47:47]*** Cut end [07:47:47]Read from MH i2c: 01 07 00 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: 01 07 00 38 1D 00 00 00 00 00 FF 0F 6A [07:47:47]process_action close_receipt done [07:47:47]requested_data is exist [07:47:47]produce_requested_data [07:47:47]requested_item fm.sn is exist - process it [07:47:47]wFMCommunicate request_size=4 [07:47:47]MH_SAM_APDU [07:47:47]CAPDU: 80 11 00 00 [07:47:47]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [07:47:47]Write i2c OK [07:47:47]MH_I2C_Read... [07:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:47]Read from MH i2c: E2 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 17 00 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [07:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:47:47]wFMCommunicate OK [07:47:47]requested_item fd.num is exist - process it [07:47:47]SAM_PROTO_GetFieldsCounters [07:47:47]wFMCommunicate request_size=4 [07:47:47]MH_SAM_APDU [07:47:47]CAPDU: 80 13 00 00 [07:47:47]Write to MH i2c: E2 08 00 3A 1D 80 13 00 00 00 00 00 00 D3 [07:47:47]Write i2c OK [07:47:47]MH_I2C_Read... [07:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:47]Read from MH i2c: E2 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 62 00 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 62 00 3A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [07:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:47]wFMCommunicate OK [07:47:47]SAM_PROTO_GetFieldsCounters done [07:47:47]requested_item shift.num is exist - process it [07:47:47]requested_item shift.opened is exist - process it [07:47:47]req_shift_opened [07:47:47]FM_GetShiftState [07:47:47]SAM_PROTO_GetShiftState [07:47:47]wFMCommunicate request_size=4 [07:47:47]MH_SAM_APDU [07:47:47]CAPDU: 80 13 01 00 [07:47:47]Write to MH i2c: E2 08 00 3B 1D 80 13 01 00 00 00 00 00 D5 [07:47:47]Write i2c OK [07:47:47]MH_I2C_Read... [07:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:47]Read from MH i2c: E2 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 0E 00 [07:47:47]MH_I2C_Read... [07:47:47]Read from MH i2c: E2 0E 00 3B 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 55 [07:47:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:47:47]wFMCommunicate OK [07:47:47]SAM_PROTO_GetShiftState done [07:47:47]FM_GetShiftState done [07:47:47]req_shift_opened done [07:47:47]requested_item shift.open_date is exist - process it [07:47:47]req_shift_open_date [07:47:47]req_shift_open_date done [07:47:47]produce_requested_data done [07:47:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140003,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:47:47]process_action_free close_receipt [07:47:47]json_value_free [07:47:47]json_value_free done [07:47:47]process_json_proto returns [07:47:47]Send response to host [07:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140003,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:47:47]free response buf [07:47:47]execute_script done [07:47:47]execute_script returns [07:47:47]free content buf [07:47:47]Sock 7.Close socket [07:47:47]Sock 7.Thread stoped [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:13]int [07:53:13]Write to MH i2c: 01 00 00 3C 1D 59 [07:53:13]*** FLAG_PRN_KEY set [07:53:13]Write i2c OK [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 3C 1D 00 08 00 00 00 FF 0F 76 [07:53:13]state=0 [07:53:13]Key pressed [07:53:13]Feed [07:53:13]Write to MH i2c: D8 00 00 3D 1D 31 [07:53:13]Write i2c OK [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: D8 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: D8 01 00 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: D8 01 00 3D 1D 00 32 [07:53:13]int [07:53:13]Write to MH i2c: 01 00 00 3E 1D 5B [07:53:13]Write i2c OK [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 3E 1D 00 48 00 00 00 3C 00 E6 [07:53:13]state=2 [07:53:13]Key pressed [07:53:13]int [07:53:13]Write to MH i2c: 01 00 00 3F 1D 5C [07:53:13]*** FLAG_PRN_KEY reset [07:53:13]Write i2c OK [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 [07:53:13]MH_I2C_Read... [07:53:13]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 F5 0F 67 [07:53:13]state=2 [07:53:13]Stop feed [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:42]accept exits with 9 [07:53:42]New connection [07:53:42]New thread 3066908004 created [07:53:42]Thread 3066764644 joined [07:53:42]Waiting for new connection... [07:53:42] Sock 9.Parse request [07:53:42]Sock 9.Check first char [07:53:42]Sock 9.First char is OK [07:53:42]request: POST /json_proto HTTP/1.0 [07:53:42]Method: POST [07:53:42]URL: /json_proto [07:53:42]Method is POST - this is cgi request [07:53:42]url: /json_proto [07:53:42]query_string will be loaded in cgi processing [07:53:42]execute_cgi json_proto POST (null) [07:53:42]execute_cgi path=json_proto method=POST [07:53:42]POST find Content-Length [07:53:42]Host: 172.17.45.67:8080 [07:53:42]Content-Length: 678 [07:53:42]Content-Type: application/json [07:53:42] [07:53:42]POST finish read [07:53:42]Found Content-Length = 678 [07:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:42]execute_script... [07: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)593858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:42]POST & json_proto [07:53:42]process_json_proto [07:53:42]json parsed OK: [07:53:42]protocol is kg_v1.0 [07:53:42]action value=close_receipt [07:53:42]process_action close_receipt [07:53:42]cmd_close_receipt [07:53:42]MH_GetDate [07:53:42]Write to MH i2c: F0 00 00 40 1D 4C [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: F0 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: F0 09 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: F0 09 00 40 1D 00 08 9D C5 66 5F 7F 2B 66 94 [07:53:42]GetLastDocTimeStamp 1724226466 [07:53:42]current date 1724226824 [07:53:42]FM_GetShiftState [07:53:42]SAM_PROTO_GetShiftState [07:53:42]wFMCommunicate request_size=4 [07:53:42]MH_SAM_APDU [07:53:42]CAPDU: 80 13 01 00 [07:53:42]Write to MH i2c: E2 08 00 41 1D 80 13 01 00 00 00 00 00 DB [07:53:42]Write i2c OK [07:53:42]MH_I2C_Read... [07:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:42]Read from MH i2c: E2 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 0E 00 [07:53:42]MH_I2C_Read... [07:53:42]Read from MH i2c: E2 0E 00 41 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5B [07:53:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:53:42]wFMCommunicate OK [07:53:42]SAM_PROTO_GetShiftState done [07:53:42]FM_GetShiftState done [07:53:42]opened in 1724200467 [07:53:42]opened+sec_in_day 1724286867 [07:53:42]quantity*price = 70037 [07:53:42]sum+1 = 70038 [07:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 21 21.08.2024 07:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140004 ФПД: 136631402902665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T075344&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140004&fm=136631402902665&tin=02508201610067®Number=0000000000092569&sum=70000 [07:53:43]StoreToDocumentArchive [07:53:43]shift 454 fd 140004 [07:53:43]save to /storage/0454/doc_00140004 [07:53:43]save last doc name /storage/0454/doc_00140004 to /storage/kkm_last_doc_name [07:53:43]save OK [07:53:43]Clear old archive folders... [07:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:43]tlvbuf is 00A51F90 [07:53:43]SAM_PROTO_ClearQueue [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 09 00 00 [07:53:43]Write to MH i2c: E2 08 00 4E 1D 80 09 00 00 00 00 00 00 DD [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 4E 1D 00 90 00 DF [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]SAM_PROTO_ClearQueue done [07:53:43]KKMCreateOFDPacket [07:53:43]OFDProtocolAddRootSTLVToBuf [07:53:43]FM_MakeSignedData [07:53:43]FM_MakeSignedData [07:53:43]SAM_PROTO_SignData [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 0D 01 02 [07:53:43]Write to MH i2c: E2 08 00 4F 1D 80 0D 01 02 00 00 00 00 E5 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 4F 1D 00 90 00 E0 [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]wFMCommunicate request_size=255 [07:53:43]MH_SAM_APDU [07: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 08 9D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 22 02 00 35 04 06 00 7C [07:53:43]Write to MH i2c: E2 02 01 50 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 08 9D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 22 02 00 35 04 06 00 7C 00 00 85 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 50 1D 00 90 00 E1 [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]wFMCommunicate request_size=10 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 0D 02 02 05 43 FA 3C 34 89 [07:53:43]Write to MH i2c: E2 0D 00 51 1D 80 0D 02 02 05 00 43 FA 3C 34 89 00 00 28 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [07:53:43]RAPDU: 90 00 [07:53:43]wFMCommunicate OK [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 0D 03 02 [07:53:43]Write to MH i2c: E2 08 00 52 1D 80 0D 03 02 00 00 00 00 EA [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 0B 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 0B 00 52 1D 00 2C 4D D9 91 51 C1 ED 64 90 00 31 [07:53:43]RAPDU: 2C 4D D9 91 51 C1 ED 64 90 00 [07:53:43]wFMCommunicate OK [07:53:43]SAM_PROTO_SignData done [07:53:43]FM_MakeSignedData done [07:53:43]CreateOFDProtocolMessage [07:53:43]wFMCommunicate request_size=4 [07:53:43]MH_SAM_APDU [07:53:43]CAPDU: 80 11 00 00 [07:53:43]Write to MH i2c: E2 08 00 53 1D 80 11 00 00 00 00 00 00 EA [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:43]Read from MH i2c: E2 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 17 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: E2 17 00 53 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [07:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:53:43]wFMCommunicate OK [07:53:43]CreateOFDProtocolMessage done [07:53:43]OFDSenderStorePacket 140004 [07:53:43]StoreOFDPacket docnum=140004 [07:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A8 B4 07 01 8A B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 08 9D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 22 02 00 35 04 06 00 7C 43 FA 3C 34 89 2C 4D D9 91 51 C1 ED 64 [07:53:43]CheckFolder [07:53:43]dirname=/storage/ofd_packets [07:53:43]CheckFolder done [07:53:43]ProducePacketName [07:53:43]name=ofd_packets/00140004 [07:53:43]NVStorageSaveData ofd_packets/00140004 [07:53:43]File name is /storage/ofd_packets/00140004 [07:53:43]Write 301 bytes [07:53:43]NVStorageSaveData done [07:53:43]OFDSenderStorePacket done [07:53:43]KKMCreateOFDPacket done [07:53:43]NVStorageSaveData kkm_last_timestamp [07:53:43]File name is /storage/kkm_last_timestamp [07:53:43]Write 4 bytes [07:53:43]NVStorageSaveData done [07:53:43]ExternCall_PrintAddStr [07:53:43]wPrintStart [07:53:43]Write to MH i2c: 01 00 00 54 1D 71 [07:53:43]Write i2c OK [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 07 00 [07:53:43]MH_I2C_Read... [07:53:43]Read from MH i2c: 01 07 00 54 1D 00 00 00 00 00 FF 0F 86 [07:53:43]RasterBufferAndPrint [07:53:43]line Счет N : (1)593858 [07:53:43]line ИНН: 02508201610067 [07:53:43]line Контрольно-Кассовый Чек [07:53:43]line ПРОДАЖА [07:53:43]line ТРК (МРК, ГНК) : 32 [07:53:43]line Товар: 2710124130 [07:53:43]line Аи-92-К-5 [07:53:43]line 10.330 * 67.80 [07:53:43]line = 700.37 [07:53:43]line НДС 12% НСП 1% [07:53:43]line > о реализуемом товаре [07:53:43]line ОКРУГЛЕНИЕ: -0.37 [07:53:43]line ИТОГО: 700.00 [07:53:43]line Внесено: 700.00 [07:53:43]line СДАЧА: 0.00 [07:53:43]line НСП 1% : 6.20 [07:53:43]line НДС 12% : 74.38 [07:53:43]line Наличными: 700.00 [07:53:43]line Безнал.: 0.00 [07:53:43]line Место: АЗС № 136 "Партнер Нефть" [07:53:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:53:43]line СНО: Общий режим [07:53:43]line Чек 21 21.08.2024 07:53 [07:53:43]line Смена: 454 ФФД: 1.0 [07:53:43]line ЗНМ: 0300000067 [07:53:43]line РНМ: 0000000000092569 [07:53:43]line Версия ККМ: 001 [07:53:43]line ФМ: 0000000000871776 [07:53:43]line ФД: 140004 [07:53:43]line ФПД: 136631402902665 [07:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T075344&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140004&fm=136631402902665&tin=02508201610067®Number=0000000000092569&sum=70000 [07:53:44]OFD Sender: Processing packet 140004 [packets to send 137, broken 136] [07:53:44]ProducePacketName [07:53:44]name=ofd_packets/00140004 [07:53:44]OFD Sender: To server: pG, [07:53:44]CommunicateWithHost lk.salyk.kg:30040 [07:53:44]ConnectInit lk.salyk.kg [07:53:44]written 0, free lines is 4095 [07:53:44]Connected sock=10 [07: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 37 36 0F 01 00 00 A8 B4 07 01 8A B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 08 9D C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 22 02 00 35 04 06 00 7C 43 FA 3C 34 89 2C 4D D9 91 51 C1 ED 64 [07:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BA 0C 47 00 11 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 37 36 10 04 04 00 E4 22 02 00 F4 03 04 00 9A 43 C5 66 B6 04 01 00 00 63 BC 09 75 BE 36 EB CF [07:53:44]CommunicateWithHost err = 0 [07:53:44]CheckOFDResponse [07:53:44]1017 (14) - 77093643461234 [07:53:44]1041 (16) - 0000000000871776 [07:53:44]1040 (4) - 140004 [07:53:44]1012 (4) - 21.08.2024 01:32 [07:53:44]1206 (1) - 0 [07:53:44]OFD Sender: Remove packet 140004 [07:53:44]ProducePacketName [07:53:44]name=ofd_packets/00140004 [07:53:44]NVStorageDeleteData [07:53:44]Write to MH i2c: 01 00 00 7F 1D 9C [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 07 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: 01 07 00 7F 1D 00 00 00 00 00 CD 0C 7C [07:53:44]RasterBufferAndPrint [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]line [07:53:44]written 0, free lines is 3283 [07:53:44]MH_Cut [07:53:44]Write to MH i2c: D1 01 00 86 1D 01 75 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 01 00 [07:53:44]MH_I2C_Read... [07:53:44]Read from MH i2c: D1 01 00 86 1D 00 74 [07:53:44]Write to MH i2c: 01 00 00 87 1D A4 [07:53:44]Write i2c OK [07:53:44]MH_I2C_Read... [07:53:45]OFD Sender: No OFD packet to send [07:53:45]*** Cut start [07:53:45]*** Partial cut [07:53:45]*** CUTSNS_PIN = 1 [07:53:45]*** CUTSNS_PIN = 0 [07:53:45]*** Brake cut motor [07:53:46]Read from MH i2c: 01 [07:53:46]MH_I2C_Read... [07:53:46]*** Stop cut motor [07:53:46]*** Cut end [07:53:46]Read from MH i2c: 01 07 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: 01 07 00 87 1D 00 00 00 00 00 FF 0F B9 [07:53:46]process_action close_receipt done [07:53:46]requested_data is exist [07:53:46]produce_requested_data [07:53:46]requested_item fm.sn is exist - process it [07:53:46]wFMCommunicate request_size=4 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 11 00 00 [07:53:46]Write to MH i2c: E2 08 00 88 1D 80 11 00 00 00 00 00 00 1F [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:46]Read from MH i2c: E2 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 17 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 17 00 88 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [07:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:53:46]wFMCommunicate OK [07:53:46]requested_item fd.num is exist - process it [07:53:46]SAM_PROTO_GetFieldsCounters [07:53:46]wFMCommunicate request_size=4 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 13 00 00 [07:53:46]Write to MH i2c: E2 08 00 89 1D 80 13 00 00 00 00 00 00 22 [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:46]Read from MH i2c: E2 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 62 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 62 00 89 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:46]wFMCommunicate OK [07:53:46]SAM_PROTO_GetFieldsCounters done [07:53:46]requested_item shift.num is exist - process it [07:53:46]requested_item shift.opened is exist - process it [07:53:46]req_shift_opened [07:53:46]FM_GetShiftState [07:53:46]SAM_PROTO_GetShiftState [07:53:46]wFMCommunicate request_size=4 [07:53:46]MH_SAM_APDU [07:53:46]CAPDU: 80 13 01 00 [07:53:46]Write to MH i2c: E2 08 00 8A 1D 80 13 01 00 00 00 00 00 24 [07:53:46]Write i2c OK [07:53:46]MH_I2C_Read... [07:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:46]Read from MH i2c: E2 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 0E 00 [07:53:46]MH_I2C_Read... [07:53:46]Read from MH i2c: E2 0E 00 8A 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A4 [07:53:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:53:46]wFMCommunicate OK [07:53:46]SAM_PROTO_GetShiftState done [07:53:46]FM_GetShiftState done [07:53:46]req_shift_opened done [07:53:46]requested_item shift.open_date is exist - process it [07:53:46]req_shift_open_date [07:53:46]req_shift_open_date done [07:53:46]produce_requested_data done [07:53:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140004,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:53:46]process_action_free close_receipt [07:53:46]json_value_free [07:53:46]json_value_free done [07:53:46]process_json_proto returns [07:53:46]Send response to host [07:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140004,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:53:46]free response buf [07:53:46]execute_script done [07:53:46]execute_script returns [07:53:46]free content buf [07:53:46]Sock 9.Close socket [07:53:46]Sock 9.Thread stoped [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:02]accept exits with 7 [07:59:02]New connection [07:59:02]New thread 3066764644 created [07:59:02]Thread 3066908004 joined [07:59:02]Waiting for new connection... [07:59:02] Sock 7.Parse request [07:59:02]Sock 7.Check first char [07:59:02]Sock 7.First char is OK [07:59:02]request: POST /json_proto HTTP/1.0 [07:59:02]Method: POST [07:59:02]URL: /json_proto [07:59:02]Method is POST - this is cgi request [07:59:02]url: /json_proto [07:59:02]query_string will be loaded in cgi processing [07:59:02]execute_cgi json_proto POST (null) [07:59:02]execute_cgi path=json_proto method=POST [07:59:02]POST find Content-Length [07:59:02]Host: 172.17.45.67:8080 [07:59:02]Content-Length: 677 [07:59:02]Content-Type: application/json [07:59:02] [07:59:02]POST finish read [07:59:02]Found Content-Length = 677 [07:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:02]execute_script... [07:59:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:02]POST & json_proto [07:59:02]process_json_proto [07:59:02]json parsed OK: [07:59:02]protocol is kg_v1.0 [07:59:02]action value=close_receipt [07:59:02]process_action close_receipt [07:59:02]cmd_close_receipt [07:59:02]MH_GetDate [07:59:02]Write to MH i2c: F0 00 00 8B 1D 97 [07:59:02]Write i2c OK [07:59:02]MH_I2C_Read... [07:59:02]Read from MH i2c: F0 [07:59:02]MH_I2C_Read... [07:59:02]Read from MH i2c: F0 09 00 [07:59:02]MH_I2C_Read... [07:59:02]Read from MH i2c: F0 09 00 8B 1D 00 48 9E C5 66 5F 7F 2B 66 20 [07:59:02]GetLastDocTimeStamp 1724226824 [07:59:02]current date 1724227144 [07:59:02]FM_GetShiftState [07:59:02]SAM_PROTO_GetShiftState [07:59:02]wFMCommunicate request_size=4 [07:59:02]MH_SAM_APDU [07:59:02]CAPDU: 80 13 01 00 [07:59:02]Write to MH i2c: E2 08 00 8C 1D 80 13 01 00 00 00 00 00 26 [07:59:02]Write i2c OK [07:59:02]MH_I2C_Read... [07:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:02]Read from MH i2c: E2 [07:59:02]MH_I2C_Read... [07:59:02]Read from MH i2c: E2 0E 00 [07:59:02]MH_I2C_Read... [07:59:02]Read from MH i2c: E2 0E 00 8C 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A6 [07:59:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:59:02]wFMCommunicate OK [07:59:02]SAM_PROTO_GetShiftState done [07:59:02]FM_GetShiftState done [07:59:02]opened in 1724200467 [07:59:02]opened+sec_in_day 1724286867 [07:59:02]quantity*price = 60003 [07:59:02]sum+1 = 60004 [07:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 22 21.08.2024 07:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140005 ФПД: 60546792801488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T075904&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140005&fm=60546792801488&tin=02508201610067®Number=0000000000092569&sum=60000 [07:59:03]StoreToDocumentArchive [07:59:03]shift 454 fd 140005 [07:59:03]save to /storage/0454/doc_00140005 [07:59:03]save last doc name /storage/0454/doc_00140005 to /storage/kkm_last_doc_name [07:59:03]save OK [07:59:03]Clear old archive folders... [07:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:03]tlvbuf is B6EB6AB0 [07:59:03]SAM_PROTO_ClearQueue [07:59:03]wFMCommunicate request_size=4 [07:59:03]MH_SAM_APDU [07:59:03]CAPDU: 80 09 00 00 [07:59:03]Write to MH i2c: E2 08 00 99 1D 80 09 00 00 00 00 00 00 28 [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 99 1D 00 90 00 2A [07:59:03]RAPDU: 90 00 [07:59:03]wFMCommunicate OK [07:59:03]SAM_PROTO_ClearQueue done [07:59:03]KKMCreateOFDPacket [07:59:03]OFDProtocolAddRootSTLVToBuf [07:59:03]FM_MakeSignedData [07:59:03]FM_MakeSignedData [07:59:03]SAM_PROTO_SignData [07:59:03]wFMCommunicate request_size=4 [07:59:03]MH_SAM_APDU [07:59:03]CAPDU: 80 0D 01 02 [07:59:03]Write to MH i2c: E2 08 00 9A 1D 80 0D 01 02 00 00 00 00 30 [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 9A 1D 00 90 00 2B [07:59:03]RAPDU: 90 00 [07:59:03]wFMCommunicate OK [07:59:03]wFMCommunicate request_size=255 [07:59:03]MH_SAM_APDU [07:59: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 48 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 22 02 00 35 04 06 00 37 [07:59:03]Write to MH i2c: E2 02 01 9B 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 48 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 22 02 00 35 04 06 00 37 00 00 AE [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 9B 1D 00 90 00 2C [07:59:03]RAPDU: 90 00 [07:59:03]wFMCommunicate OK [07:59:03]wFMCommunicate request_size=10 [07:59:03]MH_SAM_APDU [07:59:03]CAPDU: 80 0D 02 02 05 11 26 13 C4 D0 [07:59:03]Write to MH i2c: E2 0D 00 9C 1D 80 0D 02 02 05 00 11 26 13 C4 D0 00 00 1B [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 03 00 9C 1D 00 90 00 2D [07:59:03]RAPDU: 90 00 [07:59:03]wFMCommunicate OK [07:59:03]wFMCommunicate request_size=4 [07:59:03]MH_SAM_APDU [07:59:03]CAPDU: 80 0D 03 02 [07:59:03]Write to MH i2c: E2 08 00 9D 1D 80 0D 03 02 00 00 00 00 35 [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 0B 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 0B 00 9D 1D 00 10 44 94 94 FE 49 AD 51 90 00 F7 [07:59:03]RAPDU: 10 44 94 94 FE 49 AD 51 90 00 [07:59:03]wFMCommunicate OK [07:59:03]SAM_PROTO_SignData done [07:59:03]FM_MakeSignedData done [07:59:03]CreateOFDProtocolMessage [07:59:03]wFMCommunicate request_size=4 [07:59:03]MH_SAM_APDU [07:59:03]CAPDU: 80 11 00 00 [07:59:03]Write to MH i2c: E2 08 00 9E 1D 80 11 00 00 00 00 00 00 35 [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:03]Read from MH i2c: E2 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 17 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: E2 17 00 9E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [07:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:59:03]wFMCommunicate OK [07:59:03]CreateOFDProtocolMessage done [07:59:03]OFDSenderStorePacket 140005 [07:59:03]StoreOFDPacket docnum=140005 [07:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 85 07 01 63 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 48 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 22 02 00 35 04 06 00 37 11 26 13 C4 D0 10 44 94 94 FE 49 AD 51 [07:59:03]CheckFolder [07:59:03]dirname=/storage/ofd_packets [07:59:03]CheckFolder done [07:59:03]ProducePacketName [07:59:03]name=ofd_packets/00140005 [07:59:03]NVStorageSaveData ofd_packets/00140005 [07:59:03]File name is /storage/ofd_packets/00140005 [07:59:03]Write 301 bytes [07:59:03]NVStorageSaveData done [07:59:03]OFDSenderStorePacket done [07:59:03]KKMCreateOFDPacket done [07:59:03]NVStorageSaveData kkm_last_timestamp [07:59:03]File name is /storage/kkm_last_timestamp [07:59:03]Write 4 bytes [07:59:03]NVStorageSaveData done [07:59:03]ExternCall_PrintAddStr [07:59:03]wPrintStart [07:59:03]Write to MH i2c: 01 00 00 9F 1D BC [07:59:03]Write i2c OK [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: 01 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: 01 07 00 [07:59:03]MH_I2C_Read... [07:59:03]Read from MH i2c: 01 07 00 9F 1D 00 00 00 00 00 FF 0F D1 [07:59:03]RasterBufferAndPrint [07:59:03]line Счет N : (1)593859 [07:59:03]line ИНН: 02508201610067 [07:59:03]line Контрольно-Кассовый Чек [07:59:03]line ПРОДАЖА [07:59:03]line ТРК (МРК, ГНК) : 52 [07:59:03]line Товар: 2710124130 [07:59:03]line Аи-92-К-5 [07:59:03]line 8.850 * 67.80 [07:59:03]line = 600.03 [07:59:03]line НДС 12% НСП 1% [07:59:03]line > о реализуемом товаре [07:59:03]line ОКРУГЛЕНИЕ: -0.03 [07:59:03]line ИТОГО: 600.00 [07:59:03]line Внесено: 600.00 [07:59:03]line СДАЧА: 0.00 [07:59:03]line НСП 1% : 5.31 [07:59:03]line НДС 12% : 63.72 [07:59:03]line Наличными: 600.00 [07:59:03]line Безнал.: 0.00 [07:59:03]line Место: АЗС № 136 "Партнер Нефть" [07:59:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [07:59:03]line СНО: Общий режим [07:59:03]line Чек 22 21.08.2024 07:59 [07:59:03]line Смена: 454 ФФД: 1.0 [07:59:03]line ЗНМ: 0300000067 [07:59:03]line РНМ: 0000000000092569 [07:59:03]line Версия ККМ: 001 [07:59:03]line ФМ: 0000000000871776 [07:59:03]line ФД: 140005 [07:59:03]line ФПД: 60546792801488 [07:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T075904&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140005&fm=60546792801488&tin=02508201610067®Number=0000000000092569&sum=60000 [07:59:04]written 0, free lines is 4095 [07:59:04]OFD Sender: Processing packet 140005 [packets to send 137, broken 136] [07:59:04]ProducePacketName [07:59:04]name=ofd_packets/00140005 [07:59:04]OFD Sender: To server: pG, [07:59:04]CommunicateWithHost lk.salyk.kg:30040 [07:59:04]ConnectInit lk.salyk.kg [07:59:04]Connected sock=10 [07:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D8 85 07 01 63 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 16 00 00 00 F4 03 04 00 48 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 22 02 00 35 04 06 00 37 11 26 13 C4 D0 10 44 94 94 FE 49 AD 51 [07:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A5 F2 47 00 B3 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 37 36 10 04 04 00 E5 22 02 00 F4 03 04 00 D9 44 C5 66 B6 04 01 00 00 93 FD D8 B2 B8 AD DD 57 [07:59:04]CommunicateWithHost err = 0 [07:59:04]CheckOFDResponse [07:59:04]1017 (14) - 77093643461234 [07:59:04]1041 (16) - 0000000000871776 [07:59:04]1040 (4) - 140005 [07:59:04]1012 (4) - 21.08.2024 01:37 [07:59:04]1206 (1) - 0 [07:59:04]OFD Sender: Remove packet 140005 [07:59:04]ProducePacketName [07:59:04]name=ofd_packets/00140005 [07:59:04]NVStorageDeleteData [07:59:04]Write to MH i2c: 01 00 00 CA 1D E7 [07:59:04]Write i2c OK [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: 01 [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: 01 07 00 [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: 01 07 00 CA 1D 00 00 00 00 00 D1 0C CB [07:59:04]RasterBufferAndPrint [07:59:04]line [07:59:04]line [07:59:04]line [07:59:04]line [07:59:04]line [07:59:04]written 0, free lines is 3284 [07:59:04]MH_Cut [07:59:04]Write to MH i2c: D1 01 00 D1 1D 01 C0 [07:59:04]Write i2c OK [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: D1 [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: D1 01 00 [07:59:04]MH_I2C_Read... [07:59:04]Read from MH i2c: D1 01 00 D1 1D 00 BF [07:59:04]Write to MH i2c: 01 00 00 D2 1D EF [07:59:04]Write i2c OK [07:59:04]MH_I2C_Read... [07:59:04]OFD Sender: No OFD packet to send [07:59:05]*** Cut start [07:59:05]*** Partial cut [07:59:05]*** CUTSNS_PIN = 1 [07:59:05]*** CUTSNS_PIN = 0 [07:59:05]*** Brake cut motor [07:59:05]Read from MH i2c: 01 [07:59:05]MH_I2C_Read... [07:59:05]*** Stop cut motor [07:59:05]*** Cut end [07:59:05]Read from MH i2c: 01 07 00 [07:59:05]MH_I2C_Read... [07:59:05]Read from MH i2c: 01 07 00 D2 1D 00 00 00 00 00 FF 0F 04 [07:59:05]process_action close_receipt done [07:59:05]requested_data is exist [07:59:05]produce_requested_data [07:59:05]requested_item fm.sn is exist - process it [07:59:05]wFMCommunicate request_size=4 [07:59:05]MH_SAM_APDU [07:59:05]CAPDU: 80 11 00 00 [07:59:05]Write to MH i2c: E2 08 00 D3 1D 80 11 00 00 00 00 00 00 6A [07:59:05]Write i2c OK [07:59:05]MH_I2C_Read... [07:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:05]Read from MH i2c: E2 [07:59:05]MH_I2C_Read... [07:59:05]Read from MH i2c: E2 17 00 [07:59:05]MH_I2C_Read... [07:59:05]Read from MH i2c: E2 17 00 D3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [07:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [07:59:05]wFMCommunicate OK [07:59:05]requested_item fd.num is exist - process it [07:59:05]SAM_PROTO_GetFieldsCounters [07:59:05]wFMCommunicate request_size=4 [07:59:05]MH_SAM_APDU [07:59:05]CAPDU: 80 13 00 00 [07:59:05]Write to MH i2c: E2 08 00 D4 1D 80 13 00 00 00 00 00 00 6D [07:59:05]Write i2c OK [07:59:05]MH_I2C_Read... [07:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:06]Read from MH i2c: E2 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 62 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 62 00 D4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [07:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:59:06]wFMCommunicate OK [07:59:06]SAM_PROTO_GetFieldsCounters done [07:59:06]requested_item shift.num is exist - process it [07:59:06]requested_item shift.opened is exist - process it [07:59:06]req_shift_opened [07:59:06]FM_GetShiftState [07:59:06]SAM_PROTO_GetShiftState [07:59:06]wFMCommunicate request_size=4 [07:59:06]MH_SAM_APDU [07:59:06]CAPDU: 80 13 01 00 [07:59:06]Write to MH i2c: E2 08 00 D5 1D 80 13 01 00 00 00 00 00 6F [07:59:06]Write i2c OK [07:59:06]MH_I2C_Read... [07:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:06]Read from MH i2c: E2 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 [07:59:06]MH_I2C_Read... [07:59:06]Read from MH i2c: E2 0E 00 D5 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EF [07:59:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [07:59:06]wFMCommunicate OK [07:59:06]SAM_PROTO_GetShiftState done [07:59:06]FM_GetShiftState done [07:59:06]req_shift_opened done [07:59:06]requested_item shift.open_date is exist - process it [07:59:06]req_shift_open_date [07:59:06]req_shift_open_date done [07:59:06]produce_requested_data done [07:59:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140005,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [07:59:06]process_action_free close_receipt [07:59:06]json_value_free [07:59:06]json_value_free done [07:59:06]process_json_proto returns [07:59:06]Send response to host [07:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140005,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [07:59:06]free response buf [07:59:06]execute_script done [07:59:06]execute_script returns [07:59:06]free content buf [07:59:06]Sock 7.Close socket [07:59:06]Sock 7.Thread stoped [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:05]accept exits with 9 [08:00:05]New connection [08:00:05]New thread 3066908004 created [08:00:05]Thread 3066764644 joined [08:00:05]Waiting for new connection... [08:00:05] Sock 9.Parse request [08:00:05]Sock 9.Check first char [08:00:05]Sock 9.First char is OK [08:00:05]request: POST /json_proto HTTP/1.0 [08:00:05]Method: POST [08:00:05]URL: /json_proto [08:00:05]Method is POST - this is cgi request [08:00:05]url: /json_proto [08:00:05]query_string will be loaded in cgi processing [08:00:05]execute_cgi json_proto POST (null) [08:00:05]execute_cgi path=json_proto method=POST [08:00:05]POST find Content-Length [08:00:05]Host: 172.17.45.67:8080 [08:00:05]Content-Length: 682 [08:00:05]Content-Type: application/json [08:00:05] [08:00:05]POST finish read [08:00:05]Found Content-Length = 682 [08:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:00:05]execute_script... [08:00: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)593860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:00:05]POST & json_proto [08:00:05]process_json_proto [08:00:05]json parsed OK: [08:00:05]protocol is kg_v1.0 [08:00:05]action value=close_receipt [08:00:05]process_action close_receipt [08:00:05]cmd_close_receipt [08:00:05]MH_GetDate [08:00:05]Write to MH i2c: F0 00 00 D6 1D E2 [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: F0 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: F0 09 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: F0 09 00 D6 1D 00 88 9E C5 66 5F 7F 2B 66 AB [08:00:05]GetLastDocTimeStamp 1724227144 [08:00:05]current date 1724227208 [08:00:05]FM_GetShiftState [08:00:05]SAM_PROTO_GetShiftState [08:00:05]wFMCommunicate request_size=4 [08:00:05]MH_SAM_APDU [08:00:05]CAPDU: 80 13 01 00 [08:00:05]Write to MH i2c: E2 08 00 D7 1D 80 13 01 00 00 00 00 00 71 [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:05]Read from MH i2c: E2 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: E2 0E 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: E2 0E 00 D7 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F1 [08:00:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:00:05]wFMCommunicate OK [08:00:05]SAM_PROTO_GetShiftState done [08:00:05]FM_GetShiftState done [08:00:05]opened in 1724200467 [08:00:05]opened+sec_in_day 1724286867 [08:00:05]quantity*price = 70027 [08:00:05]sum+1 = 70029 [08:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 23 21.08.2024 08:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140006 ФПД: 163977627750736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080008&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140006&fm=163977627750736&tin=02508201610067®Number=0000000000092569&sum=70000 [08:00:06]StoreToDocumentArchive [08:00:06]shift 454 fd 140006 [08:00:06]save to /storage/0454/doc_00140006 [08:00:06]save last doc name /storage/0454/doc_00140006 to /storage/kkm_last_doc_name [08:00:06]save OK [08:00:06]Clear old archive folders... [08:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:00:06]tlvbuf is 00A51E20 [08:00:06]SAM_PROTO_ClearQueue [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 09 00 00 [08:00:06]Write to MH i2c: E2 08 00 E4 1D 80 09 00 00 00 00 00 00 73 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 03 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 03 00 E4 1D 00 90 00 75 [08:00:06]RAPDU: 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_ClearQueue done [08:00:06]KKMCreateOFDPacket [08:00:06]OFDProtocolAddRootSTLVToBuf [08:00:06]FM_MakeSignedData [08:00:06]FM_MakeSignedData [08:00:06]SAM_PROTO_SignData [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 0D 01 02 [08:00:06]Write to MH i2c: E2 08 00 E5 1D 80 0D 01 02 00 00 00 00 7B [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 03 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 03 00 E5 1D 00 90 00 76 [08:00:06]RAPDU: 90 00 [08:00:06]wFMCommunicate OK [08:00:06]wFMCommunicate request_size=255 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 00 00 00 F4 03 04 00 88 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 22 02 00 35 04 06 00 [08:00:06]Write to MH i2c: E2 02 01 E6 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 00 00 00 F4 03 04 00 88 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 22 02 00 35 04 06 00 00 00 27 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:07]Read from MH i2c: E2 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 03 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [08:00:07]RAPDU: 90 00 [08:00:07]wFMCommunicate OK [08:00:07]wFMCommunicate request_size=11 [08:00:07]MH_SAM_APDU [08:00:07]CAPDU: 80 0D 02 02 06 95 23 04 40 D1 50 [08:00:07]Write to MH i2c: E2 0E 00 E7 1D 80 0D 02 02 06 00 95 23 04 40 D1 50 00 00 A7 [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:07]Read from MH i2c: E2 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 03 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [08:00:07]RAPDU: 90 00 [08:00:07]wFMCommunicate OK [08:00:07]wFMCommunicate request_size=4 [08:00:07]MH_SAM_APDU [08:00:07]CAPDU: 80 0D 03 02 [08:00:07]Write to MH i2c: E2 08 00 E8 1D 80 0D 03 02 00 00 00 00 80 [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:07]Read from MH i2c: E2 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 0B 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 0B 00 E8 1D 00 B6 0F 24 8E 5F 57 82 08 90 00 38 [08:00:07]RAPDU: B6 0F 24 8E 5F 57 82 08 90 00 [08:00:07]wFMCommunicate OK [08:00:07]SAM_PROTO_SignData done [08:00:07]FM_MakeSignedData done [08:00:07]CreateOFDProtocolMessage [08:00:07]wFMCommunicate request_size=4 [08:00:07]MH_SAM_APDU [08:00:07]CAPDU: 80 11 00 00 [08:00:07]Write to MH i2c: E2 08 00 E9 1D 80 11 00 00 00 00 00 00 80 [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:07]Read from MH i2c: E2 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 17 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: E2 17 00 E9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [08:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:07]wFMCommunicate OK [08:00:07]CreateOFDProtocolMessage done [08:00:07]OFDSenderStorePacket 140006 [08:00:07]StoreOFDPacket docnum=140006 [08:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 34 19 08 01 94 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 00 00 00 F4 03 04 00 88 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 22 02 00 35 04 06 00 95 23 04 40 D1 50 B6 0F 24 8E 5F 57 82 08 [08:00:07]CheckFolder [08:00:07]dirname=/storage/ofd_packets [08:00:07]CheckFolder done [08:00:07]ProducePacketName [08:00:07]name=ofd_packets/00140006 [08:00:07]NVStorageSaveData ofd_packets/00140006 [08:00:07]File name is /storage/ofd_packets/00140006 [08:00:07]Write 302 bytes [08:00:07]NVStorageSaveData done [08:00:07]OFDSenderStorePacket done [08:00:07]KKMCreateOFDPacket done [08:00:07]NVStorageSaveData kkm_last_timestamp [08:00:07]File name is /storage/kkm_last_timestamp [08:00:07]Write 4 bytes [08:00:07]NVStorageSaveData done [08:00:07]ExternCall_PrintAddStr [08:00:07]wPrintStart [08:00:07]Write to MH i2c: 01 00 00 EA 1D 07 [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 07 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 07 00 EA 1D 00 00 00 00 00 FF 0F 1C [08:00:07]RasterBufferAndPrint [08:00:07]line Счет N : (1)593860 [08:00:07]line ИНН: 02508201610067 [08:00:07]line Контрольно-Кассовый Чек [08:00:07]line ПРОДАЖА [08:00:07]line ТРК (МРК, ГНК) : 34 [08:00:07]line Товар: 2710194210 [08:00:07]line ДТ(л)-К-5 [08:00:07]line 9.190 * 76.20 [08:00:07]line = 700.28 [08:00:07]line НДС 12% НСП 1% [08:00:07]line > о реализуемом товаре [08:00:07]line ОКРУГЛЕНИЕ: -0.28 [08:00:07]line ИТОГО: 700.00 [08:00:07]line Внесено: 700.00 [08:00:07]line СДАЧА: 0.00 [08:00:07]line НСП 1% : 6.20 [08:00:07]line НДС 12% : 74.37 [08:00:07]line Наличными: 700.00 [08:00:07]line Безнал.: 0.00 [08:00:07]line Место: АЗС № 136 "Партнер Нефть" [08:00:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:00:07]line СНО: Общий режим [08:00:07]line Чек 23 21.08.2024 08:00 [08:00:07]line Смена: 454 ФФД: 1.0 [08:00:07]line ЗНМ: 0300000067 [08:00:07]line РНМ: 0000000000092569 [08:00:07]line Версия ККМ: 001 [08:00:07]line ФМ: 0000000000871776 [08:00:07]line ФД: 140006 [08:00:07]line ФПД: 163977627750736 [08:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080008&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140006&fm=163977627750736&tin=02508201610067®Number=0000000000092569&sum=70000 [08:00:07]written 0, free lines is 4095 [08:00:07]OFD Sender: Processing packet 140006 [packets to send 137, broken 136] [08:00:07]ProducePacketName [08:00:07]name=ofd_packets/00140006 [08:00:07]OFD Sender: To server: pG, [08:00:07]CommunicateWithHost lk.salyk.kg:30040 [08:00:07]ConnectInit lk.salyk.kg [08:00:07]Connected sock=10 [08:00: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 37 36 10 01 00 00 34 19 08 01 94 08 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 00 00 00 F4 03 04 00 88 9E C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 22 02 00 35 04 06 00 95 23 04 40 D1 50 B6 0F 24 8E 5F 57 82 08 [08:00: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 37 36 4F 00 00 00 B9 D2 47 00 9D 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 37 36 10 04 04 00 E6 22 02 00 F4 03 04 00 19 45 C5 66 B6 04 01 00 00 E1 B8 C0 9F F8 84 A2 2F [08:00:07]CommunicateWithHost err = 0 [08:00:07]CheckOFDResponse [08:00:07]1017 (14) - 77093643461234 [08:00:07]1041 (16) - 0000000000871776 [08:00:07]1040 (4) - 140006 [08:00:07]1012 (4) - 21.08.2024 01:38 [08:00:07]1206 (1) - 0 [08:00:07]OFD Sender: Remove packet 140006 [08:00:07]ProducePacketName [08:00:07]name=ofd_packets/00140006 [08:00:07]NVStorageDeleteData [08:00:07]Write to MH i2c: 01 00 00 15 1E 33 [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 07 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: 01 07 00 15 1E 00 00 00 00 00 CB 0C 11 [08:00:07]RasterBufferAndPrint [08:00:07]line [08:00:07]line [08:00:07]line [08:00:07]line [08:00:07]line [08:00:07]written 0, free lines is 3281 [08:00:07]MH_Cut [08:00:07]Write to MH i2c: D1 01 00 1C 1E 01 0C [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: D1 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: D1 01 00 [08:00:07]MH_I2C_Read... [08:00:07]Read from MH i2c: D1 01 00 1C 1E 00 0B [08:00:07]Write to MH i2c: 01 00 00 1D 1E 3B [08:00:07]Write i2c OK [08:00:07]MH_I2C_Read... [08:00:08]OFD Sender: No OFD packet to send [08:00:08]*** Cut start [08:00:08]*** Partial cut [08:00:08]*** CUTSNS_PIN = 1 [08:00:08]*** CUTSNS_PIN = 0 [08:00:08]*** Brake cut motor [08:00:09]Read from MH i2c: 01 [08:00:09]MH_I2C_Read... [08:00:09]*** Stop cut motor [08:00:09]*** Cut end [08:00:09]Read from MH i2c: 01 07 00 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: 01 07 00 1D 1E 00 00 00 00 00 FF 0F 50 [08:00:09]process_action close_receipt done [08:00:09]requested_data is exist [08:00:09]produce_requested_data [08:00:09]requested_item fm.sn is exist - process it [08:00:09]wFMCommunicate request_size=4 [08:00:09]MH_SAM_APDU [08:00:09]CAPDU: 80 11 00 00 [08:00:09]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [08:00:09]Write i2c OK [08:00:09]MH_I2C_Read... [08:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:09]Read from MH i2c: E2 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 17 00 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [08:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:00:09]wFMCommunicate OK [08:00:09]requested_item fd.num is exist - process it [08:00:09]SAM_PROTO_GetFieldsCounters [08:00:09]wFMCommunicate request_size=4 [08:00:09]MH_SAM_APDU [08:00:09]CAPDU: 80 13 00 00 [08:00:09]Write to MH i2c: E2 08 00 1F 1E 80 13 00 00 00 00 00 00 B9 [08:00:09]Write i2c OK [08:00:09]MH_I2C_Read... [08:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:09]Read from MH i2c: E2 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 62 00 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 62 00 1F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [08:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:09]wFMCommunicate OK [08:00:09]SAM_PROTO_GetFieldsCounters done [08:00:09]requested_item shift.num is exist - process it [08:00:09]requested_item shift.opened is exist - process it [08:00:09]req_shift_opened [08:00:09]FM_GetShiftState [08:00:09]SAM_PROTO_GetShiftState [08:00:09]wFMCommunicate request_size=4 [08:00:09]MH_SAM_APDU [08:00:09]CAPDU: 80 13 01 00 [08:00:09]Write to MH i2c: E2 08 00 20 1E 80 13 01 00 00 00 00 00 BB [08:00:09]Write i2c OK [08:00:09]MH_I2C_Read... [08:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:09]Read from MH i2c: E2 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 0E 00 [08:00:09]MH_I2C_Read... [08:00:09]Read from MH i2c: E2 0E 00 20 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3B [08:00:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:00:09]wFMCommunicate OK [08:00:09]SAM_PROTO_GetShiftState done [08:00:09]FM_GetShiftState done [08:00:09]req_shift_opened done [08:00:09]requested_item shift.open_date is exist - process it [08:00:09]req_shift_open_date [08:00:09]req_shift_open_date done [08:00:09]produce_requested_data done [08:00:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140006,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:00:09]process_action_free close_receipt [08:00:09]json_value_free [08:00:09]json_value_free done [08:00:09]process_json_proto returns [08:00:09]Send response to host [08:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140006,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:00:09]free response buf [08:00:09]execute_script done [08:00:09]execute_script returns [08:00:09]free content buf [08:00:09]Sock 9.Close socket [08:00:09]Sock 9.Thread stoped [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]accept exits with 7 [08:02:13]New connection [08:02:13]New thread 3066764644 created [08:02:13]Thread 3066908004 joined [08:02:13]Waiting for new connection... [08:02:13] Sock 7.Parse request [08:02:13]Sock 7.Check first char [08:02:13]Sock 7.First char is OK [08:02:13]request: POST /json_proto HTTP/1.0 [08:02:13]Method: POST [08:02:13]URL: /json_proto [08:02:13]Method is POST - this is cgi request [08:02:13]url: /json_proto [08:02:13]query_string will be loaded in cgi processing [08:02:13]execute_cgi json_proto POST (null) [08:02:13]execute_cgi path=json_proto method=POST [08:02:13]POST find Content-Length [08:02:13]Host: 172.17.45.67:8080 [08:02:13]Content-Length: 682 [08:02:13]Content-Type: application/json [08:02:13] [08:02:13]POST finish read [08:02:13]Found Content-Length = 682 [08:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.200, "sum" : 1647.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1647.00, "payments": [ { "type": 0, "sum" : 1647.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:13]execute_script... [08:02: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)593861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 22.200, "sum" : 1647.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1647.00, "payments": [ { "type": 0, "sum" : 1647.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:13]POST & json_proto [08:02:13]process_json_proto [08:02:13]json parsed OK: [08:02:13]protocol is kg_v1.0 [08:02:13]action value=close_receipt [08:02:13]process_action close_receipt [08:02:13]cmd_close_receipt [08:02:13]MH_GetDate [08:02:13]Write to MH i2c: F0 00 00 21 1E 2E [08:02:13]Write i2c OK [08:02:13]MH_I2C_Read... [08:02:13]Read from MH i2c: F0 [08:02:13]MH_I2C_Read... [08:02:13]Read from MH i2c: F0 09 00 [08:02:13]MH_I2C_Read... [08:02:13]Read from MH i2c: F0 09 00 21 1E 00 07 9F C5 66 5F 7F 2B 66 77 [08:02:13]GetLastDocTimeStamp 1724227208 [08:02:13]current date 1724227335 [08:02:13]FM_GetShiftState [08:02:13]SAM_PROTO_GetShiftState [08:02:13]wFMCommunicate request_size=4 [08:02:13]MH_SAM_APDU [08:02:13]CAPDU: 80 13 01 00 [08:02:13]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [08:02:13]Write i2c OK [08:02:13]MH_I2C_Read... [08:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:13]Read from MH i2c: E2 [08:02:13]MH_I2C_Read... [08:02:13]Read from MH i2c: E2 0E 00 [08:02:13]MH_I2C_Read... [08:02:13]Read from MH i2c: E2 0E 00 22 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3D [08:02:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:02:13]wFMCommunicate OK [08:02:13]SAM_PROTO_GetShiftState done [08:02:13]FM_GetShiftState done [08:02:13]opened in 1724200467 [08:02:13]opened+sec_in_day 1724286867 [08:02:13]quantity*price = 164724 [08:02:13]sum+1 = 164725 [08:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1647.00 Внесено: 2000.00 СДАЧА: 353.00 НСП 1% : 14.58 НДС 12% : 174.93 Наличными: 1647.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 24 21.08.2024 08:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140007 ФПД: 66457339937153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080215&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140007&fm=66457339937153&tin=02508201610067®Number=0000000000092569&sum=164700 [08:02:14]StoreToDocumentArchive [08:02:14]shift 454 fd 140007 [08:02:14]save to /storage/0454/doc_00140007 [08:02:14]save last doc name /storage/0454/doc_00140007 to /storage/kkm_last_doc_name [08:02:14]save OK [08:02:14]Clear old archive folders... [08:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:02:14]tlvbuf is 00A103F0 [08:02:14]SAM_PROTO_ClearQueue [08:02:14]wFMCommunicate request_size=4 [08:02:14]MH_SAM_APDU [08:02:14]CAPDU: 80 09 00 00 [08:02:14]Write to MH i2c: E2 08 00 2F 1E 80 09 00 00 00 00 00 00 BF [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:14]Read from MH i2c: E2 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 2F 1E 00 90 00 C1 [08:02:14]RAPDU: 90 00 [08:02:14]wFMCommunicate OK [08:02:14]SAM_PROTO_ClearQueue done [08:02:14]KKMCreateOFDPacket [08:02:14]OFDProtocolAddRootSTLVToBuf [08:02:14]FM_MakeSignedData [08:02:14]FM_MakeSignedData [08:02:14]SAM_PROTO_SignData [08:02:14]wFMCommunicate request_size=4 [08:02:14]MH_SAM_APDU [08:02:14]CAPDU: 80 0D 01 02 [08:02:14]Write to MH i2c: E2 08 00 30 1E 80 0D 01 02 00 00 00 00 C7 [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:14]Read from MH i2c: E2 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [08:02:14]RAPDU: 90 00 [08:02:14]wFMCommunicate OK [08:02:14]wFMCommunicate request_size=255 [08:02:14]MH_SAM_APDU [08:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 56 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 83 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 83 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 44 00 00 00 00 07 04 06 00 5C 83 02 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 07 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 22 02 00 35 04 06 00 3C [08:02:14]Write to MH i2c: E2 02 01 31 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 56 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 83 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 83 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 44 00 00 00 00 07 04 06 00 5C 83 02 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 07 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 22 02 00 35 04 06 00 3C 00 00 07 [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:14]Read from MH i2c: E2 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [08:02:14]RAPDU: 90 00 [08:02:14]wFMCommunicate OK [08:02:14]wFMCommunicate request_size=10 [08:02:14]MH_SAM_APDU [08:02:14]CAPDU: 80 0D 02 02 05 71 4E 23 C1 81 [08:02:14]Write to MH i2c: E2 0D 00 32 1E 80 0D 02 02 05 00 71 4E 23 C1 81 00 00 F8 [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:14]Read from MH i2c: E2 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [08:02:14]RAPDU: 90 00 [08:02:14]wFMCommunicate OK [08:02:14]wFMCommunicate request_size=4 [08:02:14]MH_SAM_APDU [08:02:14]CAPDU: 80 0D 03 02 [08:02:14]Write to MH i2c: E2 08 00 33 1E 80 0D 03 02 00 00 00 00 CC [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:14]Read from MH i2c: E2 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 0B 00 [08:02:14]MH_I2C_Read... [08:02:14]Read from MH i2c: E2 0B 00 33 1E 00 E5 07 F1 64 B5 DE 64 28 90 00 2D [08:02:14]RAPDU: E5 07 F1 64 B5 DE 64 28 90 00 [08:02:14]wFMCommunicate OK [08:02:14]SAM_PROTO_SignData done [08:02:14]FM_MakeSignedData done [08:02:14]CreateOFDProtocolMessage [08:02:14]wFMCommunicate request_size=4 [08:02:14]MH_SAM_APDU [08:02:14]CAPDU: 80 11 00 00 [08:02:14]Write to MH i2c: E2 08 00 34 1E 80 11 00 00 00 00 00 00 CC [08:02:14]Write i2c OK [08:02:14]MH_I2C_Read... [08:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:15]Read from MH i2c: E2 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: E2 17 00 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: E2 17 00 34 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [08:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:02:15]wFMCommunicate OK [08:02:15]CreateOFDProtocolMessage done [08:02:15]OFDSenderStorePacket 140007 [08:02:15]StoreOFDPacket docnum=140007 [08:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 42 A7 07 01 ED 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 56 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 83 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 83 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 44 00 00 00 00 07 04 06 00 5C 83 02 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 07 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 22 02 00 35 04 06 00 3C 71 4E 23 C1 81 E5 07 F1 64 B5 DE 64 28 [08:02:15]CheckFolder [08:02:15]dirname=/storage/ofd_packets [08:02:15]CheckFolder done [08:02:15]ProducePacketName [08:02:15]name=ofd_packets/00140007 [08:02:15]NVStorageSaveData ofd_packets/00140007 [08:02:15]File name is /storage/ofd_packets/00140007 [08:02:15]Write 301 bytes [08:02:15]NVStorageSaveData done [08:02:15]OFDSenderStorePacket done [08:02:15]KKMCreateOFDPacket done [08:02:15]NVStorageSaveData kkm_last_timestamp [08:02:15]File name is /storage/kkm_last_timestamp [08:02:15]Write 4 bytes [08:02:15]NVStorageSaveData done [08:02:15]ExternCall_PrintAddStr [08:02:15]wPrintStart [08:02:15]Write to MH i2c: 01 00 00 35 1E 53 [08:02:15]Write i2c OK [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 07 00 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 07 00 35 1E 00 00 00 00 00 FF 0F 68 [08:02:15]RasterBufferAndPrint [08:02:15]line Счет N : (1)593861 [08:02:15]line ИНН: 02508201610067 [08:02:15]line Контрольно-Кассовый Чек [08:02:15]line ПРОДАЖА [08:02:15]line ТРК (МРК, ГНК) : 51 [08:02:15]line Товар: 2710124500 [08:02:15]line Аи-95-К-5 [08:02:15]line 22.200 * 74.20 [08:02:15]line = 1647.24 [08:02:15]line НДС 12% НСП 1% [08:02:15]line > о реализуемом товаре [08:02:15]line ОКРУГЛЕНИЕ: -0.24 [08:02:15]line ИТОГО: 1647.00 [08:02:15]line Внесено: 2000.00 [08:02:15]line СДАЧА: 353.00 [08:02:15]line НСП 1% : 14.58 [08:02:15]line НДС 12% : 174.93 [08:02:15]line Наличными: 1647.00 [08:02:15]line Безнал.: 0.00 [08:02:15]line Место: АЗС № 136 "Партнер Нефть" [08:02:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:02:15]line СНО: Общий режим [08:02:15]line Чек 24 21.08.2024 08:02 [08:02:15]line Смена: 454 ФФД: 1.0 [08:02:15]line ЗНМ: 0300000067 [08:02:15]line РНМ: 0000000000092569 [08:02:15]line Версия ККМ: 001 [08:02:15]line ФМ: 0000000000871776 [08:02:15]line ФД: 140007 [08:02:15]line ФПД: 66457339937153 [08:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080215&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140007&fm=66457339937153&tin=02508201610067®Number=0000000000092569&sum=164700 [08:02:15]written 0, free lines is 4095 [08:02:15]OFD Sender: Processing packet 140007 [packets to send 137, broken 136] [08:02:15]ProducePacketName [08:02:15]name=ofd_packets/00140007 [08:02:15]OFD Sender: To server: pG, [08:02:15]CommunicateWithHost lk.salyk.kg:30040 [08:02:15]ConnectInit lk.salyk.kg [08:02:15]Connected sock=10 [08:02: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 37 36 0F 01 00 00 42 A7 07 01 ED 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 56 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 74 83 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 83 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 44 00 00 00 00 07 04 06 00 5C 83 02 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 07 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 22 02 00 35 04 06 00 3C 71 4E 23 C1 81 E5 07 F1 64 B5 DE 64 28 [08:02: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 37 36 4F 00 00 00 7A 7B 47 00 6B 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 37 36 10 04 04 00 E7 22 02 00 F4 03 04 00 99 45 C5 66 B6 04 01 00 00 83 9A AC 0C 68 B7 05 6A [08:02:15]CommunicateWithHost err = 0 [08:02:15]CheckOFDResponse [08:02:15]1017 (14) - 77093643461234 [08:02:15]1041 (16) - 0000000000871776 [08:02:15]1040 (4) - 140007 [08:02:15]1012 (4) - 21.08.2024 01:40 [08:02:15]1206 (1) - 0 [08:02:15]OFD Sender: Remove packet 140007 [08:02:15]ProducePacketName [08:02:15]name=ofd_packets/00140007 [08:02:15]NVStorageDeleteData [08:02:15]Write to MH i2c: 01 00 00 60 1E 7E [08:02:15]Write i2c OK [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 07 00 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: 01 07 00 60 1E 00 00 00 00 00 CE 0C 5F [08:02:15]RasterBufferAndPrint [08:02:15]line [08:02:15]line [08:02:15]line [08:02:15]line [08:02:15]line [08:02:15]written 0, free lines is 3284 [08:02:15]MH_Cut [08:02:15]Write to MH i2c: D1 01 00 67 1E 01 57 [08:02:15]Write i2c OK [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: D1 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: D1 01 00 [08:02:15]MH_I2C_Read... [08:02:15]Read from MH i2c: D1 01 00 67 1E 00 56 [08:02:15]Write to MH i2c: 01 00 00 68 1E 86 [08:02:15]Write i2c OK [08:02:15]MH_I2C_Read... [08:02:16]OFD Sender: No OFD packet to send [08:02:16]*** Cut start [08:02:16]*** Partial cut [08:02:16]*** CUTSNS_PIN = 1 [08:02:16]*** CUTSNS_PIN = 0 [08:02:16]*** Brake cut motor [08:02:17]Read from MH i2c: 01 [08:02:17]MH_I2C_Read... [08:02:17]*** Stop cut motor [08:02:17]*** Cut end [08:02:17]Read from MH i2c: 01 07 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: 01 07 00 68 1E 00 00 00 00 00 FF 0F 9B [08:02:17]process_action close_receipt done [08:02:17]requested_data is exist [08:02:17]produce_requested_data [08:02:17]requested_item fm.sn is exist - process it [08:02:17]wFMCommunicate request_size=4 [08:02:17]MH_SAM_APDU [08:02:17]CAPDU: 80 11 00 00 [08:02:17]Write to MH i2c: E2 08 00 69 1E 80 11 00 00 00 00 00 00 01 [08:02:17]Write i2c OK [08:02:17]MH_I2C_Read... [08:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:17]Read from MH i2c: E2 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 17 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 17 00 69 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [08:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:02:17]wFMCommunicate OK [08:02:17]requested_item fd.num is exist - process it [08:02:17]SAM_PROTO_GetFieldsCounters [08:02:17]wFMCommunicate request_size=4 [08:02:17]MH_SAM_APDU [08:02:17]CAPDU: 80 13 00 00 [08:02:17]Write to MH i2c: E2 08 00 6A 1E 80 13 00 00 00 00 00 00 04 [08:02:17]Write i2c OK [08:02:17]MH_I2C_Read... [08:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:17]Read from MH i2c: E2 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 62 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 62 00 6A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [08:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:17]wFMCommunicate OK [08:02:17]SAM_PROTO_GetFieldsCounters done [08:02:17]requested_item shift.num is exist - process it [08:02:17]requested_item shift.opened is exist - process it [08:02:17]req_shift_opened [08:02:17]FM_GetShiftState [08:02:17]SAM_PROTO_GetShiftState [08:02:17]wFMCommunicate request_size=4 [08:02:17]MH_SAM_APDU [08:02:17]CAPDU: 80 13 01 00 [08:02:17]Write to MH i2c: E2 08 00 6B 1E 80 13 01 00 00 00 00 00 06 [08:02:17]Write i2c OK [08:02:17]MH_I2C_Read... [08:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:17]Read from MH i2c: E2 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 0E 00 [08:02:17]MH_I2C_Read... [08:02:17]Read from MH i2c: E2 0E 00 6B 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 86 [08:02:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:02:17]wFMCommunicate OK [08:02:17]SAM_PROTO_GetShiftState done [08:02:17]FM_GetShiftState done [08:02:17]req_shift_opened done [08:02:17]requested_item shift.open_date is exist - process it [08:02:17]req_shift_open_date [08:02:17]req_shift_open_date done [08:02:17]produce_requested_data done [08:02:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140007,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:02:17]process_action_free close_receipt [08:02:17]json_value_free [08:02:17]json_value_free done [08:02:17]process_json_proto returns [08:02:17]Send response to host [08:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140007,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:02:17]free response buf [08:02:17]execute_script done [08:02:17]execute_script returns [08:02:17]free content buf [08:02:17]Sock 7.Close socket [08:02:17]Sock 7.Thread stoped [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:02:57]int [08:02:57]Write to MH i2c: 01 00 00 6C 1E 8A [08:02:57]*** FLAG_PRN_KEY set [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 6C 1E 00 08 00 00 00 FF 0F A7 [08:02:57]state=0 [08:02:57]Key pressed [08:02:57]Feed [08:02:57]Write to MH i2c: D8 00 00 6D 1E 62 [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: D8 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: D8 01 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: D8 01 00 6D 1E 00 63 [08:02:57]int [08:02:57]Write to MH i2c: 01 00 00 6E 1E 8C [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 6E 1E 00 48 00 00 00 3C 00 17 [08:02:57]state=2 [08:02:57]Key pressed [08:02:57]int [08:02:57]Write to MH i2c: 01 00 00 6F 1E 8D [08:02:57]*** FLAG_PRN_KEY reset [08:02:57]Write i2c OK [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 [08:02:57]MH_I2C_Read... [08:02:57]Read from MH i2c: 01 07 00 6F 1E 00 00 00 00 00 F8 0F 9B [08:02:57]state=2 [08:02:57]Stop feed [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:19]accept exits with 9 [08:04:19]New connection [08:04:19]New thread 3066908004 created [08:04:19]Thread 3066764644 joined [08:04:19]Waiting for new connection... [08:04:19] Sock 9.Parse request [08:04:19]Sock 9.Check first char [08:04:19]Sock 9.First char is OK [08:04:19]request: POST /json_proto HTTP/1.0 [08:04:19]Method: POST [08:04:19]URL: /json_proto [08:04:19]Method is POST - this is cgi request [08:04:19]url: /json_proto [08:04:19]query_string will be loaded in cgi processing [08:04:19]execute_cgi json_proto POST (null) [08:04:19]execute_cgi path=json_proto method=POST [08:04:19]POST find Content-Length [08:04:19]Host: 172.17.45.67:8080 [08:04:19]Content-Length: 678 [08:04:19]Content-Type: application/json [08:04:19] [08:04:19]POST finish read [08:04:19]Found Content-Length = 678 [08:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:19]execute_script... [08: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)593862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:19]POST & json_proto [08:04:19]process_json_proto [08:04:19]json parsed OK: [08:04:19]protocol is kg_v1.0 [08:04:19]action value=close_receipt [08:04:19]process_action close_receipt [08:04:19]cmd_close_receipt [08:04:19]MH_GetDate [08:04:19]Write to MH i2c: F0 00 00 70 1E 7D [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 09 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: F0 09 00 70 1E 00 86 9F C5 66 5F 7F 2B 66 45 [08:04:19]GetLastDocTimeStamp 1724227335 [08:04:19]current date 1724227462 [08:04:19]FM_GetShiftState [08:04:19]SAM_PROTO_GetShiftState [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 13 01 00 [08:04:19]Write to MH i2c: E2 08 00 71 1E 80 13 01 00 00 00 00 00 0C [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 71 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [08:04:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:04:19]wFMCommunicate OK [08:04:19]SAM_PROTO_GetShiftState done [08:04:19]FM_GetShiftState done [08:04:19]opened in 1724200467 [08:04:19]opened+sec_in_day 1724286867 [08:04:19]quantity*price = 70037 [08:04:19]sum+1 = 70038 [08:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 25 21.08.2024 08:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140008 ФПД: 223577685476229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140008&fm=223577685476229&tin=02508201610067®Number=0000000000092569&sum=70000 [08:04:21]StoreToDocumentArchive [08:04:21]shift 454 fd 140008 [08:04:21]save to /storage/0454/doc_00140008 [08:04:21]save last doc name /storage/0454/doc_00140008 to /storage/kkm_last_doc_name [08:04:21]save OK [08:04:21]Clear old archive folders... [08:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:21]tlvbuf is 00A51E30 [08:04:21]SAM_PROTO_ClearQueue [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 09 00 00 [08:04:21]Write to MH i2c: E2 08 00 7E 1E 80 09 00 00 00 00 00 00 0E [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]SAM_PROTO_ClearQueue done [08:04:21]KKMCreateOFDPacket [08:04:21]OFDProtocolAddRootSTLVToBuf [08:04:21]FM_MakeSignedData [08:04:21]FM_MakeSignedData [08:04:21]SAM_PROTO_SignData [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 01 02 [08:04:21]Write to MH i2c: E2 08 00 7F 1E 80 0D 01 02 00 00 00 00 16 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=255 [08:04:21]MH_SAM_APDU [08:04: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 86 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 22 02 00 35 04 06 00 CB [08:04:21]Write to MH i2c: E2 02 01 80 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 86 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 22 02 00 35 04 06 00 CB 00 00 8D [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]OFD Sender: No OFD packet to send [08:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 80 1E 00 90 00 12 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=10 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 02 02 05 57 BC 85 C3 85 [08:04:21]Write to MH i2c: E2 0D 00 81 1E 80 0D 02 02 05 00 57 BC 85 C3 85 00 00 03 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 03 00 81 1E 00 90 00 13 [08:04:21]RAPDU: 90 00 [08:04:21]wFMCommunicate OK [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 0D 03 02 [08:04:21]Write to MH i2c: E2 08 00 82 1E 80 0D 03 02 00 00 00 00 1B [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 0B 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 0B 00 82 1E 00 EA 88 C6 DD ED 3A 84 9B 90 00 77 [08:04:21]RAPDU: EA 88 C6 DD ED 3A 84 9B 90 00 [08:04:21]wFMCommunicate OK [08:04:21]SAM_PROTO_SignData done [08:04:21]FM_MakeSignedData done [08:04:21]CreateOFDProtocolMessage [08:04:21]wFMCommunicate request_size=4 [08:04:21]MH_SAM_APDU [08:04:21]CAPDU: 80 11 00 00 [08:04:21]Write to MH i2c: E2 08 00 83 1E 80 11 00 00 00 00 00 00 1B [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:21]Read from MH i2c: E2 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 17 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: E2 17 00 83 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [08:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:04:21]wFMCommunicate OK [08:04:21]CreateOFDProtocolMessage done [08:04:21]OFDSenderStorePacket 140008 [08:04:21]StoreOFDPacket docnum=140008 [08:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A6 89 07 01 14 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 86 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 22 02 00 35 04 06 00 CB 57 BC 85 C3 85 EA 88 C6 DD ED 3A 84 9B [08:04:21]CheckFolder [08:04:21]dirname=/storage/ofd_packets [08:04:21]CheckFolder done [08:04:21]ProducePacketName [08:04:21]name=ofd_packets/00140008 [08:04:21]NVStorageSaveData ofd_packets/00140008 [08:04:21]File name is /storage/ofd_packets/00140008 [08:04:21]Write 301 bytes [08:04:21]NVStorageSaveData done [08:04:21]OFDSenderStorePacket done [08:04:21]KKMCreateOFDPacket done [08:04:21]NVStorageSaveData kkm_last_timestamp [08:04:21]File name is /storage/kkm_last_timestamp [08:04:21]Write 4 bytes [08:04:21]NVStorageSaveData done [08:04:21]ExternCall_PrintAddStr [08:04:21]wPrintStart [08:04:21]Write to MH i2c: 01 00 00 84 1E A2 [08:04:21]Write i2c OK [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 [08:04:21]MH_I2C_Read... [08:04:21]Read from MH i2c: 01 07 00 84 1E 00 00 00 00 00 FF 0F B7 [08:04:21]RasterBufferAndPrint [08:04:21]line Счет N : (1)593862 [08:04:21]line ИНН: 02508201610067 [08:04:21]line Контрольно-Кассовый Чек [08:04:21]line ПРОДАЖА [08:04:21]line ТРК (МРК, ГНК) : 42 [08:04:21]line Товар: 2710124130 [08:04:21]line Аи-92-К-5 [08:04:21]line 10.330 * 67.80 [08:04:21]line = 700.37 [08:04:21]line НДС 12% НСП 1% [08:04:21]line > о реализуемом товаре [08:04:21]line ОКРУГЛЕНИЕ: -0.37 [08:04:21]line ИТОГО: 700.00 [08:04:21]line Внесено: 700.00 [08:04:21]line СДАЧА: 0.00 [08:04:21]line НСП 1% : 6.20 [08:04:21]line НДС 12% : 74.38 [08:04:21]line Наличными: 700.00 [08:04:21]line Безнал.: 0.00 [08:04:21]line Место: АЗС № 136 "Партнер Нефть" [08:04:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:04:21]line СНО: Общий режим [08:04:21]line Чек 25 21.08.2024 08:04 [08:04:21]line Смена: 454 ФФД: 1.0 [08:04:21]line ЗНМ: 0300000067 [08:04:21]line РНМ: 0000000000092569 [08:04:21]line Версия ККМ: 001 [08:04:21]line ФМ: 0000000000871776 [08:04:21]line ФД: 140008 [08:04:21]line ФПД: 223577685476229 [08:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140008&fm=223577685476229&tin=02508201610067®Number=0000000000092569&sum=70000 [08:04:21]OFD Sender: Processing packet 140008 [packets to send 137, broken 136] [08:04:21]ProducePacketName [08:04:21]name=ofd_packets/00140008 [08:04:21]OFD Sender: To server: pG, [08:04:21]CommunicateWithHost lk.salyk.kg:30040 [08:04:21]ConnectInit lk.salyk.kg [08:04:21]written 0, free lines is 4095 [08:04:22]Connected sock=7 [08:04: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 37 36 0F 01 00 00 A6 89 07 01 14 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 86 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 22 02 00 35 04 06 00 CB 57 BC 85 C3 85 EA 88 C6 DD ED 3A 84 9B [08:04: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 37 36 4F 00 00 00 E3 5F 47 00 AA F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 22 02 00 F4 03 04 00 17 46 C5 66 B6 04 01 00 00 3B 05 FA F2 B1 55 D5 5B [08:04:22]CommunicateWithHost err = 0 [08:04:22]CheckOFDResponse [08:04:22]1017 (14) - 77093643461234 [08:04:22]1041 (16) - 0000000000871776 [08:04:22]1040 (4) - 140008 [08:04:22]1012 (4) - 21.08.2024 01:42 [08:04:22]1206 (1) - 0 [08:04:22]OFD Sender: Remove packet 140008 [08:04:22]ProducePacketName [08:04:22]name=ofd_packets/00140008 [08:04:22]NVStorageDeleteData [08:04:22]Write to MH i2c: 01 00 00 AF 1E CD [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 07 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: 01 07 00 AF 1E 00 00 00 00 00 D3 0C B3 [08:04:22]RasterBufferAndPrint [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]line [08:04:22]written 0, free lines is 3289 [08:04:22]MH_Cut [08:04:22]Write to MH i2c: D1 01 00 B6 1E 01 A6 [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 01 00 [08:04:22]MH_I2C_Read... [08:04:22]Read from MH i2c: D1 01 00 B6 1E 00 A5 [08:04:22]Write to MH i2c: 01 00 00 B7 1E D5 [08:04:22]Write i2c OK [08:04:22]MH_I2C_Read... [08:04:22]OFD Sender: No OFD packet to send [08:04:23]*** Cut start [08:04:23]*** Partial cut [08:04:23]*** CUTSNS_PIN = 1 [08:04:23]*** CUTSNS_PIN = 0 [08:04:23]*** Brake cut motor [08:04:23]Read from MH i2c: 01 [08:04:23]MH_I2C_Read... [08:04:23]*** Stop cut motor [08:04:23]*** Cut end [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 B7 1E 00 00 00 00 00 FF 0F EA [08:04:23]process_action close_receipt done [08:04:23]requested_data is exist [08:04:23]produce_requested_data [08:04:23]requested_item fm.sn is exist - process it [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 B8 1E 80 11 00 00 00 00 00 00 50 [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 B8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [08:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:04:23]wFMCommunicate OK [08:04:23]requested_item fd.num is exist - process it [08:04:23]SAM_PROTO_GetFieldsCounters [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 13 00 00 [08:04:23]Write to MH i2c: E2 08 00 B9 1E 80 13 00 00 00 00 00 00 53 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:23]Read from MH i2c: E2 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 62 00 [08:04:23]MH_I2C_Read... [08:04:23]Read from MH i2c: E2 62 00 B9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:23]wFMCommunicate OK [08:04:23]SAM_PROTO_GetFieldsCounters done [08:04:23]requested_item shift.num is exist - process it [08:04:23]requested_item shift.opened is exist - process it [08:04:23]req_shift_opened [08:04:23]FM_GetShiftState [08:04:23]SAM_PROTO_GetShiftState [08:04:23]wFMCommunicate request_size=4 [08:04:23]MH_SAM_APDU [08:04:23]CAPDU: 80 13 01 00 [08:04:23]Write to MH i2c: E2 08 00 BA 1E 80 13 01 00 00 00 00 00 55 [08:04:23]Write i2c OK [08:04:23]MH_I2C_Read... [08:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:24]Read from MH i2c: E2 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 0E 00 [08:04:24]MH_I2C_Read... [08:04:24]Read from MH i2c: E2 0E 00 BA 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D5 [08:04:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:04:24]wFMCommunicate OK [08:04:24]SAM_PROTO_GetShiftState done [08:04:24]FM_GetShiftState done [08:04:24]req_shift_opened done [08:04:24]requested_item shift.open_date is exist - process it [08:04:24]req_shift_open_date [08:04:24]req_shift_open_date done [08:04:24]produce_requested_data done [08:04:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140008,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:04:24]process_action_free close_receipt [08:04:24]json_value_free [08:04:24]json_value_free done [08:04:24]process_json_proto returns [08:04:24]Send response to host [08:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140008,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:04:24]free response buf [08:04:24]execute_script done [08:04:24]execute_script returns [08:04:24]free content buf [08:04:24]Sock 9.Close socket [08:04:24]Sock 9.Thread stoped [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:00]accept exits with 10 [08:05:00]New connection [08:05:00]New thread 3066764644 created [08:05:00]Thread 3066908004 joined [08:05:00]Waiting for new connection... [08:05:00] Sock 10.Parse request [08:05:00]Sock 10.Check first char [08:05:00]Sock 10.First char is OK [08:05:00]request: POST /json_proto HTTP/1.0 [08:05:00]Method: POST [08:05:00]URL: /json_proto [08:05:00]Method is POST - this is cgi request [08:05:00]url: /json_proto [08:05:00]query_string will be loaded in cgi processing [08:05:00]execute_cgi json_proto POST (null) [08:05:00]execute_cgi path=json_proto method=POST [08:05:00]POST find Content-Length [08:05:00]Host: 172.17.45.67:8080 [08:05:00]Content-Length: 677 [08:05:00]Content-Type: application/json [08:05:00] [08:05:00]POST finish read [08:05:00]Found Content-Length = 677 [08:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:00]execute_script... [08:05: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)593864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:00]POST & json_proto [08:05:00]process_json_proto [08:05:00]json parsed OK: [08:05:00]protocol is kg_v1.0 [08:05:00]action value=close_receipt [08:05:00]process_action close_receipt [08:05:00]cmd_close_receipt [08:05:00]MH_GetDate [08:05:00]Write to MH i2c: F0 00 00 BB 1E C8 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: F0 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: F0 09 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: F0 09 00 BB 1E 00 AE 9F C5 66 5F 7F 2B 66 B8 [08:05:00]GetLastDocTimeStamp 1724227462 [08:05:00]current date 1724227502 [08:05:00]FM_GetShiftState [08:05:00]SAM_PROTO_GetShiftState [08:05:00]wFMCommunicate request_size=4 [08:05:00]MH_SAM_APDU [08:05:00]CAPDU: 80 13 01 00 [08:05:00]Write to MH i2c: E2 08 00 BC 1E 80 13 01 00 00 00 00 00 57 [08:05:00]Write i2c OK [08:05:00]MH_I2C_Read... [08:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:00]Read from MH i2c: E2 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 0E 00 [08:05:00]MH_I2C_Read... [08:05:00]Read from MH i2c: E2 0E 00 BC 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [08:05:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:05:00]wFMCommunicate OK [08:05:00]SAM_PROTO_GetShiftState done [08:05:00]FM_GetShiftState done [08:05:00]opened in 1724200467 [08:05:00]opened+sec_in_day 1724286867 [08:05:00]quantity*price = 50036 [08:05:00]sum+1 = 50037 [08:05:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 26 21.08.2024 08:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140009 ФПД: 199058643896479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140009&fm=199058643896479&tin=02508201610067®Number=0000000000092569&sum=50000 [08:05:01]StoreToDocumentArchive [08:05:01]shift 454 fd 140009 [08:05:01]save to /storage/0454/doc_00140009 [08:05:01]save last doc name /storage/0454/doc_00140009 to /storage/kkm_last_doc_name [08:05:01]save OK [08:05:01]Clear old archive folders... [08:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:01]tlvbuf is 00A1B620 [08:05:01]SAM_PROTO_ClearQueue [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 09 00 00 [08:05:01]Write to MH i2c: E2 08 00 C9 1E 80 09 00 00 00 00 00 00 59 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]SAM_PROTO_ClearQueue done [08:05:01]KKMCreateOFDPacket [08:05:01]OFDProtocolAddRootSTLVToBuf [08:05:01]FM_MakeSignedData [08:05:01]FM_MakeSignedData [08:05:01]SAM_PROTO_SignData [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 01 02 [08:05:01]Write to MH i2c: E2 08 00 CA 1E 80 0D 01 02 00 00 00 00 61 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 CA 1E 00 90 00 5C [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]wFMCommunicate request_size=255 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 22 02 00 35 04 06 00 B5 [08:05:01]Write to MH i2c: E2 02 01 CB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 22 02 00 35 04 06 00 B5 00 00 05 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 CB 1E 00 90 00 5D [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]wFMCommunicate request_size=10 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 02 02 05 0A F3 C2 48 9F [08:05:01]Write to MH i2c: E2 0D 00 CC 1E 80 0D 02 02 05 00 0A F3 C2 48 9F 00 00 14 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 03 00 CC 1E 00 90 00 5E [08:05:01]RAPDU: 90 00 [08:05:01]wFMCommunicate OK [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 0D 03 02 [08:05:01]Write to MH i2c: E2 08 00 CD 1E 80 0D 03 02 00 00 00 00 66 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 0B 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 0B 00 CD 1E 00 20 3B 53 04 27 36 FA C4 90 00 34 [08:05:01]RAPDU: 20 3B 53 04 27 36 FA C4 90 00 [08:05:01]wFMCommunicate OK [08:05:01]SAM_PROTO_SignData done [08:05:01]FM_MakeSignedData done [08:05:01]CreateOFDProtocolMessage [08:05:01]wFMCommunicate request_size=4 [08:05:01]MH_SAM_APDU [08:05:01]CAPDU: 80 11 00 00 [08:05:01]Write to MH i2c: E2 08 00 CE 1E 80 11 00 00 00 00 00 00 66 [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:01]Read from MH i2c: E2 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 17 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: E2 17 00 CE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [08:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:05:01]wFMCommunicate OK [08:05:01]CreateOFDProtocolMessage done [08:05:01]OFDSenderStorePacket 140009 [08:05:01]StoreOFDPacket docnum=140009 [08:05:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 10 B2 07 01 3F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 22 02 00 35 04 06 00 B5 0A F3 C2 48 9F 20 3B 53 04 27 36 FA C4 [08:05:01]CheckFolder [08:05:01]dirname=/storage/ofd_packets [08:05:01]CheckFolder done [08:05:01]ProducePacketName [08:05:01]name=ofd_packets/00140009 [08:05:01]NVStorageSaveData ofd_packets/00140009 [08:05:01]File name is /storage/ofd_packets/00140009 [08:05:01]Write 301 bytes [08:05:01]NVStorageSaveData done [08:05:01]OFDSenderStorePacket done [08:05:01]KKMCreateOFDPacket done [08:05:01]NVStorageSaveData kkm_last_timestamp [08:05:01]File name is /storage/kkm_last_timestamp [08:05:01]Write 4 bytes [08:05:01]NVStorageSaveData done [08:05:01]ExternCall_PrintAddStr [08:05:01]wPrintStart [08:05:01]Write to MH i2c: 01 00 00 CF 1E ED [08:05:01]Write i2c OK [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 [08:05:01]MH_I2C_Read... [08:05:01]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 FF 0F 02 [08:05:01]RasterBufferAndPrint [08:05:01]line Счет N : (1)593864 [08:05:01]line ИНН: 02508201610067 [08:05:01]line Контрольно-Кассовый Чек [08:05:01]line ПРОДАЖА [08:05:01]line ТРК (МРК, ГНК) : 62 [08:05:01]line Товар: 2710124130 [08:05:01]line Аи-92-К-5 [08:05:01]line 7.380 * 67.80 [08:05:01]line = 500.36 [08:05:01]line НДС 12% НСП 1% [08:05:01]line > о реализуемом товаре [08:05:01]line ОКРУГЛЕНИЕ: -0.36 [08:05:01]line ИТОГО: 500.00 [08:05:01]line Внесено: 500.00 [08:05:01]line СДАЧА: 0.00 [08:05:01]line НСП 1% : 4.43 [08:05:01]line НДС 12% : 53.14 [08:05:01]line Наличными: 500.00 [08:05:01]line Безнал.: 0.00 [08:05:01]line Место: АЗС № 136 "Партнер Нефть" [08:05:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:05:01]line СНО: Общий режим [08:05:01]line Чек 26 21.08.2024 08:05 [08:05:01]line Смена: 454 ФФД: 1.0 [08:05:01]line ЗНМ: 0300000067 [08:05:01]line РНМ: 0000000000092569 [08:05:01]line Версия ККМ: 001 [08:05:01]line ФМ: 0000000000871776 [08:05:01]line ФД: 140009 [08:05:01]line ФПД: 199058643896479 [08:05:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140009&fm=199058643896479&tin=02508201610067®Number=0000000000092569&sum=50000 [08:05:02]written 0, free lines is 4095 [08:05:02]OFD Sender: Processing packet 140009 [packets to send 137, broken 136] [08:05:02]ProducePacketName [08:05:02]name=ofd_packets/00140009 [08:05:02]OFD Sender: To server: pG, [08:05:02]CommunicateWithHost lk.salyk.kg:30040 [08:05:02]ConnectInit lk.salyk.kg [08:05:02]Connected sock=9 [08:05: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 37 36 0F 01 00 00 10 B2 07 01 3F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 22 02 00 35 04 06 00 B5 0A F3 C2 48 9F 20 3B 53 04 27 36 FA C4 [08:05:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B9 00 47 00 AE 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 37 36 10 04 04 00 E9 22 02 00 F4 03 04 00 40 46 C5 66 B6 04 01 00 00 BA 35 C2 06 A6 72 53 E8 [08:05:02]CommunicateWithHost err = 0 [08:05:02]CheckOFDResponse [08:05:02]1017 (14) - 77093643461234 [08:05:02]1041 (16) - 0000000000871776 [08:05:02]1040 (4) - 140009 [08:05:02]1012 (4) - 21.08.2024 01:43 [08:05:02]1206 (1) - 0 [08:05:02]OFD Sender: Remove packet 140009 [08:05:02]ProducePacketName [08:05:02]name=ofd_packets/00140009 [08:05:02]NVStorageDeleteData [08:05:02]Write to MH i2c: 01 00 00 FA 1E 18 [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 07 00 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 CD 0C F8 [08:05:02]RasterBufferAndPrint [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]line [08:05:02]written 0, free lines is 3287 [08:05:02]MH_Cut [08:05:02]Write to MH i2c: D1 01 00 01 1F 01 F2 [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 01 00 [08:05:02]MH_I2C_Read... [08:05:02]Read from MH i2c: D1 01 00 01 1F 00 F1 [08:05:02]Write to MH i2c: 01 00 00 02 1F 21 [08:05:02]Write i2c OK [08:05:02]MH_I2C_Read... [08:05:03]OFD Sender: No OFD packet to send [08:05:03]*** Cut start [08:05:03]*** Partial cut [08:05:03]*** CUTSNS_PIN = 1 [08:05:03]*** CUTSNS_PIN = 0 [08:05:03]*** Brake cut motor [08:05:04]Read from MH i2c: 01 [08:05:04]MH_I2C_Read... [08:05:04]*** Stop cut motor [08:05:04]*** Cut end [08:05:04]Read from MH i2c: 01 07 00 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: 01 07 00 02 1F 00 00 00 00 00 FF 0F 36 [08:05:04]process_action close_receipt done [08:05:04]requested_data is exist [08:05:04]produce_requested_data [08:05:04]requested_item fm.sn is exist - process it [08:05:04]wFMCommunicate request_size=4 [08:05:04]MH_SAM_APDU [08:05:04]CAPDU: 80 11 00 00 [08:05:04]Write to MH i2c: E2 08 00 03 1F 80 11 00 00 00 00 00 00 9C [08:05:04]Write i2c OK [08:05:04]MH_I2C_Read... [08:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:04]Read from MH i2c: E2 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 17 00 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 17 00 03 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [08:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:05:04]wFMCommunicate OK [08:05:04]requested_item fd.num is exist - process it [08:05:04]SAM_PROTO_GetFieldsCounters [08:05:04]wFMCommunicate request_size=4 [08:05:04]MH_SAM_APDU [08:05:04]CAPDU: 80 13 00 00 [08:05:04]Write to MH i2c: E2 08 00 04 1F 80 13 00 00 00 00 00 00 9F [08:05:04]Write i2c OK [08:05:04]MH_I2C_Read... [08:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:04]Read from MH i2c: E2 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 62 00 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 62 00 04 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [08:05:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:04]wFMCommunicate OK [08:05:04]SAM_PROTO_GetFieldsCounters done [08:05:04]requested_item shift.num is exist - process it [08:05:04]requested_item shift.opened is exist - process it [08:05:04]req_shift_opened [08:05:04]FM_GetShiftState [08:05:04]SAM_PROTO_GetShiftState [08:05:04]wFMCommunicate request_size=4 [08:05:04]MH_SAM_APDU [08:05:04]CAPDU: 80 13 01 00 [08:05:04]Write to MH i2c: E2 08 00 05 1F 80 13 01 00 00 00 00 00 A1 [08:05:04]Write i2c OK [08:05:04]MH_I2C_Read... [08:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:04]Read from MH i2c: E2 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 0E 00 [08:05:04]MH_I2C_Read... [08:05:04]Read from MH i2c: E2 0E 00 05 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 21 [08:05:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:05:04]wFMCommunicate OK [08:05:04]SAM_PROTO_GetShiftState done [08:05:04]FM_GetShiftState done [08:05:04]req_shift_opened done [08:05:04]requested_item shift.open_date is exist - process it [08:05:04]req_shift_open_date [08:05:04]req_shift_open_date done [08:05:04]produce_requested_data done [08:05:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140009,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:05:04]process_action_free close_receipt [08:05:04]json_value_free [08:05:04]json_value_free done [08:05:04]process_json_proto returns [08:05:04]Send response to host [08:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140009,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:05:04]free response buf [08:05:04]execute_script done [08:05:04]execute_script returns [08:05:04]free content buf [08:05:04]Sock 10.Close socket [08:05:04]Sock 10.Thread stoped [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:55]accept exits with 7 [08:05:55]New connection [08:05:55]New thread 3066908004 created [08:05:55]Thread 3066764644 joined [08:05:55]Waiting for new connection... [08:05:55] Sock 7.Parse request [08:05:55]Sock 7.Check first char [08:05:55]Sock 7.First char is OK [08:05:55]request: POST /json_proto HTTP/1.0 [08:05:55]Method: POST [08:05:55]URL: /json_proto [08:05:55]Method is POST - this is cgi request [08:05:55]url: /json_proto [08:05:55]query_string will be loaded in cgi processing [08:05:55]execute_cgi json_proto POST (null) [08:05:55]execute_cgi path=json_proto method=POST [08:05:55]POST find Content-Length [08:05:55]Host: 172.17.45.67:8080 [08:05:55]Content-Length: 682 [08:05:55]Content-Type: application/json [08:05:55] [08:05:55]POST finish read [08:05:55]Found Content-Length = 682 [08:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 25.610, "sum" : 1900.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:55]execute_script... [08:05:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 25.610, "sum" : 1900.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:55]POST & json_proto [08:05:55]process_json_proto [08:05:55]json parsed OK: [08:05:55]protocol is kg_v1.0 [08:05:55]action value=close_receipt [08:05:55]process_action close_receipt [08:05:55]cmd_close_receipt [08:05:55]MH_GetDate [08:05:55]Write to MH i2c: F0 00 00 06 1F 14 [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: F0 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: F0 09 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: F0 09 00 06 1F 00 E6 9F C5 66 5F 7F 2B 66 3C [08:05:55]GetLastDocTimeStamp 1724227502 [08:05:55]current date 1724227558 [08:05:55]FM_GetShiftState [08:05:55]SAM_PROTO_GetShiftState [08:05:55]wFMCommunicate request_size=4 [08:05:55]MH_SAM_APDU [08:05:55]CAPDU: 80 13 01 00 [08:05:55]Write to MH i2c: E2 08 00 07 1F 80 13 01 00 00 00 00 00 A3 [08:05:55]Write i2c OK [08:05:55]MH_I2C_Read... [08:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:55]Read from MH i2c: E2 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: E2 0E 00 [08:05:55]MH_I2C_Read... [08:05:55]Read from MH i2c: E2 0E 00 07 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 23 [08:05:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:05:55]wFMCommunicate OK [08:05:55]SAM_PROTO_GetShiftState done [08:05:55]FM_GetShiftState done [08:05:55]opened in 1724200467 [08:05:55]opened+sec_in_day 1724286867 [08:05:55]quantity*price = 190026 [08:05:55]sum+1 = 190027 [08:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1900.00 Внесено: 2000.00 СДАЧА: 100.00 НСП 1% : 16.82 НДС 12% : 201.80 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 27 21.08.2024 08:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140010 ФПД: 258223227260775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080558&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140010&fm=258223227260775&tin=02508201610067®Number=0000000000092569&sum=190000 [08:05:56]StoreToDocumentArchive [08:05:56]shift 454 fd 140010 [08:05:56]save to /storage/0454/doc_00140010 [08:05:56]save last doc name /storage/0454/doc_00140010 to /storage/kkm_last_doc_name [08:05:56]save OK [08:05:56]Clear old archive folders... [08:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:56]tlvbuf is 00A3F3A0 [08:05:56]SAM_PROTO_ClearQueue [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 09 00 00 [08:05:56]Write to MH i2c: E2 08 00 14 1F 80 09 00 00 00 00 00 00 A5 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 14 1F 00 90 00 A7 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]SAM_PROTO_ClearQueue done [08:05:56]KKMCreateOFDPacket [08:05:56]OFDProtocolAddRootSTLVToBuf [08:05:56]FM_MakeSignedData [08:05:56]FM_MakeSignedData [08:05:56]SAM_PROTO_SignData [08:05:56]wFMCommunicate request_size=4 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 01 02 [08:05:56]Write to MH i2c: E2 08 00 15 1F 80 0D 01 02 00 00 00 00 AD [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 15 1F 00 90 00 A8 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]wFMCommunicate request_size=255 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 22 02 00 35 04 06 00 EA [08:05:56]Write to MH i2c: E2 02 01 16 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 22 02 00 35 04 06 00 EA 00 00 F1 [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:56]Read from MH i2c: E2 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 [08:05:56]MH_I2C_Read... [08:05:56]Read from MH i2c: E2 03 00 16 1F 00 90 00 A9 [08:05:56]RAPDU: 90 00 [08:05:56]wFMCommunicate OK [08:05:56]wFMCommunicate request_size=10 [08:05:56]MH_SAM_APDU [08:05:56]CAPDU: 80 0D 02 02 05 DA 47 BB CF 67 [08:05:56]Write to MH i2c: E2 0D 00 17 1F 80 0D 02 02 05 00 DA 47 BB CF 67 00 00 CC [08:05:56]Write i2c OK [08:05:56]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 03 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 03 00 17 1F 00 90 00 AA [08:05:57]RAPDU: 90 00 [08:05:57]wFMCommunicate OK [08:05:57]wFMCommunicate request_size=4 [08:05:57]MH_SAM_APDU [08:05:57]CAPDU: 80 0D 03 02 [08:05:57]Write to MH i2c: E2 08 00 18 1F 80 0D 03 02 00 00 00 00 B2 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:57]Read from MH i2c: E2 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0B 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: E2 0B 00 18 1F 00 C9 C0 37 AB 1D 0E 89 FD 90 00 CF [08:05:57]RAPDU: C9 C0 37 AB 1D 0E 89 FD 90 00 [08:05:57]wFMCommunicate OK [08:05:57]SAM_PROTO_SignData done [08:05:57]FM_MakeSignedData done [08:05:57]CreateOFDProtocolMessage [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 19 1F 80 11 00 00 00 00 00 00 B2 [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 19 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [08:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:05:57]wFMCommunicate OK [08:05:57]CreateOFDProtocolMessage done [08:05:57]OFDSenderStorePacket 140010 [08:05:57]StoreOFDPacket docnum=140010 [08:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 92 07 01 6F AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 22 02 00 35 04 06 00 EA DA 47 BB CF 67 C9 C0 37 AB 1D 0E 89 FD [08:05:57]CheckFolder [08:05:57]dirname=/storage/ofd_packets [08:05:57]CheckFolder done [08:05:57]ProducePacketName [08:05:57]name=ofd_packets/00140010 [08:05:57]NVStorageSaveData ofd_packets/00140010 [08:05:57]File name is /storage/ofd_packets/00140010 [08:05:57]Write 301 bytes [08:05:57]NVStorageSaveData done [08:05:57]OFDSenderStorePacket done [08:05:57]KKMCreateOFDPacket done [08:05:57]NVStorageSaveData kkm_last_timestamp [08:05:57]File name is /storage/kkm_last_timestamp [08:05:57]Write 4 bytes [08:05:57]NVStorageSaveData done [08:05:57]ExternCall_PrintAddStr [08:05:57]wPrintStart [08:05:57]Write to MH i2c: 01 00 00 1A 1F 39 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 [08:05:57]MH_I2C_Read... [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 1A 1F 00 00 00 00 00 FF 0F 4E [08:05:57]RasterBufferAndPrint [08:05:57]line Счет N : (1)593863 [08:05:57]line ИНН: 02508201610067 [08:05:57]line Контрольно-Кассовый Чек [08:05:57]line ПРОДАЖА [08:05:57]line ТРК (МРК, ГНК) : 31 [08:05:57]line Товар: 2710124500 [08:05:57]line Аи-95-К-5 [08:05:57]line 25.610 * 74.20 [08:05:57]line = 1900.26 [08:05:57]line НДС 12% НСП 1% [08:05:57]line > о реализуемом товаре [08:05:57]line ОКРУГЛЕНИЕ: -0.26 [08:05:57]line ИТОГО: 1900.00 [08:05:57]line Внесено: 2000.00 [08:05:57]line СДАЧА: 100.00 [08:05:57]line НСП 1% : 16.82 [08:05:57]line НДС 12% : 201.80 [08:05:57]line Наличными: 1900.00 [08:05:57]line Безнал.: 0.00 [08:05:57]line Место: АЗС № 136 "Партнер Нефть" [08:05:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:05:57]line СНО: Общий режим [08:05:57]line Чек 27 21.08.2024 08:05 [08:05:57]line Смена: 454 ФФД: 1.0 [08:05:57]line ЗНМ: 0300000067 [08:05:57]line РНМ: 0000000000092569 [08:05:57]line Версия ККМ: 001 [08:05:57]line ФМ: 0000000000871776 [08:05:57]line ФД: 140010 [08:05:57]line ФПД: 258223227260775 [08:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T080558&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140010&fm=258223227260775&tin=02508201610067®Number=0000000000092569&sum=190000 [08:05:57]OFD Sender: Processing packet 140010 [packets to send 137, broken 136] [08:05:57]ProducePacketName [08:05:57]name=ofd_packets/00140010 [08:05:57]OFD Sender: To server: pG, [08:05:57]CommunicateWithHost lk.salyk.kg:30040 [08:05:57]ConnectInit lk.salyk.kg [08:05:57]written 0, free lines is 4095 [08:05:57]Connected sock=6 [08:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 92 07 01 6F AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4A E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E6 9F C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 22 02 00 35 04 06 00 EA DA 47 BB CF 67 C9 C0 37 AB 1D 0E 89 FD [08:05: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 37 36 4F 00 00 00 14 3E 47 00 69 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 37 36 10 04 04 00 EA 22 02 00 F4 03 04 00 77 46 C5 66 B6 04 01 00 00 D0 33 59 4A B3 D1 BF 63 [08:05:57]CommunicateWithHost err = 0 [08:05:57]CheckOFDResponse [08:05:57]1017 (14) - 77093643461234 [08:05:57]1041 (16) - 0000000000871776 [08:05:57]1040 (4) - 140010 [08:05:57]1012 (4) - 21.08.2024 01:44 [08:05:57]1206 (1) - 0 [08:05:57]OFD Sender: Remove packet 140010 [08:05:57]ProducePacketName [08:05:57]name=ofd_packets/00140010 [08:05:57]NVStorageDeleteData [08:05:57]Write to MH i2c: 01 00 00 45 1F 64 [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: 01 [08:05:57]MH_I2C_Read... [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 45 1F 00 00 00 00 00 DC 0C 53 [08:05:57]RasterBufferAndPrint [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]line [08:05:57]written 0, free lines is 3297 [08:05:57]MH_Cut [08:05:57]Write to MH i2c: D1 01 00 4C 1F 01 3D [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 01 00 [08:05:57]MH_I2C_Read... [08:05:57]Read from MH i2c: D1 01 00 4C 1F 00 3C [08:05:57]Write to MH i2c: 01 00 00 4D 1F 6C [08:05:57]Write i2c OK [08:05:57]MH_I2C_Read... [08:05:58]OFD Sender: No OFD packet to send [08:05:58]*** Cut start [08:05:58]*** Partial cut [08:05:58]*** CUTSNS_PIN = 1 [08:05:58]*** CUTSNS_PIN = 0 [08:05:58]*** Brake cut motor [08:05:59]Read from MH i2c: 01 [08:05:59]MH_I2C_Read... [08:05:59]*** Stop cut motor [08:05:59]*** Cut end [08:05:59]Read from MH i2c: 01 07 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: 01 07 00 4D 1F 00 00 00 00 00 FF 0F 81 [08:05:59]process_action close_receipt done [08:05:59]requested_data is exist [08:05:59]produce_requested_data [08:05:59]requested_item fm.sn is exist - process it [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 11 00 00 [08:05:59]Write to MH i2c: E2 08 00 4E 1F 80 11 00 00 00 00 00 00 E7 [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 17 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 17 00 4E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [08:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:05:59]wFMCommunicate OK [08:05:59]requested_item fd.num is exist - process it [08:05:59]SAM_PROTO_GetFieldsCounters [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 13 00 00 [08:05:59]Write to MH i2c: E2 08 00 4F 1F 80 13 00 00 00 00 00 00 EA [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 62 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 62 00 4F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:59]wFMCommunicate OK [08:05:59]SAM_PROTO_GetFieldsCounters done [08:05:59]requested_item shift.num is exist - process it [08:05:59]requested_item shift.opened is exist - process it [08:05:59]req_shift_opened [08:05:59]FM_GetShiftState [08:05:59]SAM_PROTO_GetShiftState [08:05:59]wFMCommunicate request_size=4 [08:05:59]MH_SAM_APDU [08:05:59]CAPDU: 80 13 01 00 [08:05:59]Write to MH i2c: E2 08 00 50 1F 80 13 01 00 00 00 00 00 EC [08:05:59]Write i2c OK [08:05:59]MH_I2C_Read... [08:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:59]Read from MH i2c: E2 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 0E 00 [08:05:59]MH_I2C_Read... [08:05:59]Read from MH i2c: E2 0E 00 50 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6C [08:05:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:05:59]wFMCommunicate OK [08:05:59]SAM_PROTO_GetShiftState done [08:05:59]FM_GetShiftState done [08:05:59]req_shift_opened done [08:05:59]requested_item shift.open_date is exist - process it [08:05:59]req_shift_open_date [08:05:59]req_shift_open_date done [08:05:59]produce_requested_data done [08:05:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140010,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:05:59]process_action_free close_receipt [08:05:59]json_value_free [08:05:59]json_value_free done [08:05:59]process_json_proto returns [08:05:59]Send response to host [08:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140010,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:05:59]free response buf [08:05:59]execute_script done [08:05:59]execute_script returns [08:05:59]free content buf [08:05:59]Sock 7.Close socket [08:05:59]Sock 7.Thread stoped [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:13]int [08:06:13]Write to MH i2c: 01 00 00 51 1F 70 [08:06:13]*** FLAG_PRN_KEY set [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 51 1F 00 08 00 00 00 FF 0F 8D [08:06:13]state=0 [08:06:13]Key pressed [08:06:13]Feed [08:06:13]Write to MH i2c: D8 00 00 52 1F 48 [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D8 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D8 01 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: D8 01 00 52 1F 00 49 [08:06:13]int [08:06:13]Write to MH i2c: 01 00 00 53 1F 72 [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 53 1F 00 48 00 00 00 3C 00 FD [08:06:13]state=2 [08:06:13]Key pressed [08:06:13]int [08:06:13]Write to MH i2c: 01 00 00 54 1F 73 [08:06:13]*** FLAG_PRN_KEY reset [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 54 1F 00 00 00 00 00 F6 0F 7F [08:06:13]state=2 [08:06:13]Stop feed [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:57]accept exits with 9 [08:12:57]New connection [08:12:57]New thread 3066764644 created [08:12:57]Thread 3066908004 joined [08:12:57]Waiting for new connection... [08:12:57] Sock 9.Parse request [08:12:57]Sock 9.Check first char [08:12:57]Sock 9.First char is OK [08:12:57]request: POST /json_proto HTTP/1.0 [08:12:57]Method: POST [08:12:57]URL: /json_proto [08:12:57]Method is POST - this is cgi request [08:12:57]url: /json_proto [08:12:57]query_string will be loaded in cgi processing [08:12:57]execute_cgi json_proto POST (null) [08:12:57]execute_cgi path=json_proto method=POST [08:12:57]POST find Content-Length [08:12:57]Host: 172.17.45.67:8080 [08:12:57]Content-Length: 759 [08:12:57]Content-Type: application/json [08:12:57] [08:12:57]POST finish read [08:12:57]Found Content-Length = 759 [08:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:57]execute_script... [08:12: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)593865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:57]POST & json_proto [08:12:57]process_json_proto [08:12:57]json parsed OK: [08:12:57]protocol is kg_v1.0 [08:12:57]action value=close_receipt [08:12:57]process_action close_receipt [08:12:57]cmd_close_receipt [08:12:57]MH_GetDate [08:12:57]Write to MH i2c: F0 00 00 55 1F 63 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 09 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: F0 09 00 55 1F 00 8C A1 C5 66 5F 7F 2B 66 33 [08:12:57]GetLastDocTimeStamp 1724227558 [08:12:57]current date 1724227980 [08:12:57]FM_GetShiftState [08:12:57]SAM_PROTO_GetShiftState [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 13 01 00 [08:12:57]Write to MH i2c: E2 08 00 56 1F 80 13 01 00 00 00 00 00 F2 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0E 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0E 00 56 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [08:12:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_GetShiftState done [08:12:57]FM_GetShiftState done [08:12:57]opened in 1724200467 [08:12:57]opened+sec_in_day 1724286867 [08:12:57]quantity*price = 0 [08:12:57]sum+1 = 1 [08:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 28 21.08.2024 08:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 140011 ФПД: 2556496006422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140011&fm=2556496006422&tin=02508201610067®Number=0000000000092569&sum=0 [08:12:58]StoreToDocumentArchive [08:12:58]shift 454 fd 140011 [08:12:58]save to /storage/0454/doc_00140011 [08:12:58]save last doc name /storage/0454/doc_00140011 to /storage/kkm_last_doc_name [08:12:58]save OK [08:12:58]Clear old archive folders... [08:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:12:58]tlvbuf is 00A10020 [08:12:58]SAM_PROTO_ClearQueue [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 09 00 00 [08:12:58]Write to MH i2c: E2 08 00 63 1F 80 09 00 00 00 00 00 00 F4 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 63 1F 00 90 00 F6 [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]SAM_PROTO_ClearQueue done [08:12:58]KKMCreateOFDPacket [08:12:58]OFDProtocolAddRootSTLVToBuf [08:12:58]FM_MakeSignedData [08:12:58]FM_MakeSignedData [08:12:58]SAM_PROTO_SignData [08:12:58]wFMCommunicate request_size=4 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 01 02 [08:12:58]Write to MH i2c: E2 08 00 64 1F 80 0D 01 02 00 00 00 00 FC [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:58]Read from MH i2c: E2 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: E2 03 00 64 1F 00 90 00 F7 [08:12:58]RAPDU: 90 00 [08:12:58]wFMCommunicate OK [08:12:58]wFMCommunicate request_size=255 [08:12:58]MH_SAM_APDU [08:12:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 8C A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 22 02 00 35 04 06 00 [08:12:58]Write to MH i2c: E2 02 01 65 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 8C A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 22 02 00 35 04 06 00 00 00 03 [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]OFD Sender: No OFD packet to send [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 65 1F 00 90 00 F8 [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=11 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 02 02 06 02 53 3B 09 4D 16 [08:12:59]Write to MH i2c: E2 0E 00 66 1F 80 0D 02 02 06 00 02 53 3B 09 4D 16 00 00 07 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 03 00 66 1F 00 90 00 F9 [08:12:59]RAPDU: 90 00 [08:12:59]wFMCommunicate OK [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 0D 03 02 [08:12:59]Write to MH i2c: E2 08 00 67 1F 80 0D 03 02 00 00 00 00 01 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 0B 00 67 1F 00 81 97 1E 60 4F 01 FF 73 90 00 5A [08:12:59]RAPDU: 81 97 1E 60 4F 01 FF 73 90 00 [08:12:59]wFMCommunicate OK [08:12:59]SAM_PROTO_SignData done [08:12:59]FM_MakeSignedData done [08:12:59]CreateOFDProtocolMessage [08:12:59]wFMCommunicate request_size=4 [08:12:59]MH_SAM_APDU [08:12:59]CAPDU: 80 11 00 00 [08:12:59]Write to MH i2c: E2 08 00 68 1F 80 11 00 00 00 00 00 00 01 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:59]Read from MH i2c: E2 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: E2 17 00 68 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [08:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:12:59]wFMCommunicate OK [08:12:59]CreateOFDProtocolMessage done [08:12:59]OFDSenderStorePacket 140011 [08:12:59]StoreOFDPacket docnum=140011 [08:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 BA 4C 08 01 B7 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 8C A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 22 02 00 35 04 06 00 02 53 3B 09 4D 16 81 97 1E 60 4F 01 FF 73 [08:12:59]CheckFolder [08:12:59]dirname=/storage/ofd_packets [08:12:59]CheckFolder done [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00140011 [08:12:59]NVStorageSaveData ofd_packets/00140011 [08:12:59]File name is /storage/ofd_packets/00140011 [08:12:59]Write 302 bytes [08:12:59]NVStorageSaveData done [08:12:59]OFDSenderStorePacket done [08:12:59]KKMCreateOFDPacket done [08:12:59]NVStorageSaveData kkm_last_timestamp [08:12:59]File name is /storage/kkm_last_timestamp [08:12:59]Write 4 bytes [08:12:59]NVStorageSaveData done [08:12:59]OFD Sender: Processing packet 140011 [packets to send 137, broken 136] [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00140011 [08:12:59]OFD Sender: To server: pG, [08:12:59]CommunicateWithHost lk.salyk.kg:30040 [08:12:59]ConnectInit lk.salyk.kg [08:12:59]ExternCall_PrintAddStr [08:12:59]wPrintStart [08:12:59]Write to MH i2c: 01 00 00 69 1F 88 [08:12:59]Write i2c OK [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 [08:12:59]MH_I2C_Read... [08:12:59]Read from MH i2c: 01 07 00 69 1F 00 00 00 00 00 FF 0F 9D [08:12:59]RasterBufferAndPrint [08:12:59]line Счет N : (1)593865 [08:12:59]line ИНН: 02508201610067 [08:12:59]line Контрольно-Кассовый Чек [08:12:59]line ПРОДАЖА [08:12:59]line ТРК (МРК, ГНК) : 34 [08:12:59]line Товар: 2710194210 [08:12:59]line ДТ(л)-К-5 [08:12:59]line 20.000 * 0.00 [08:12:59]line = 0.00 [08:12:59]line НДС 12% НСП 1% [08:12:59]line > о реализуемом товаре [08:12:59]line ИТОГО: 0.00 [08:12:59]line НСП 1% : 0.00 [08:12:59]line НДС 12% : 0.00 [08:12:59]line Наличными: 0.00 [08:12:59]line Безнал.: 0.00 [08:12:59]line Место: АЗС № 136 "Партнер Нефть" [08:12:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:12:59]line СНО: Общий режим [08:12:59]line Чек 28 21.08.2024 08:13 [08:12:59]line Смена: 454 ФФД: 1.0 [08:12:59]line ЗНМ: 0300000067 [08:12:59]line РНМ: 0000000000092569 [08:12:59]line Версия ККМ: 001 [08:12:59]line Талоны: ТК ГПНА Online [08:12:59]line 30104832 [08:12:59]line ФМ: 0000000000871776 [08:12:59]line ФД: 140011 [08:12:59]line ФПД: 2556496006422 [08:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140011&fm=2556496006422&tin=02508201610067®Number=0000000000092569&sum=0 [08:12:59]Connected sock=11 [08:12: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 37 36 10 01 00 00 BA 4C 08 01 B7 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 8C A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 written 0, free lines is 4095 [08:12:59]30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 22 02 00 35 04 06 00 02 53 3B 09 4D 16 81 97 1E 60 4F 01 FF 73 [08:12: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 37 36 4F 00 00 00 D2 38 47 00 F4 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 37 36 10 04 04 00 EB 22 02 00 F4 03 04 00 1D 48 C5 66 B6 04 01 00 00 1C C2 B9 2F BB A8 B2 E4 [08:12:59]CommunicateWithHost err = 0 [08:12:59]CheckOFDResponse [08:12:59]1017 (14) - 77093643461234 [08:12:59]1041 (16) - 0000000000871776 [08:12:59]1040 (4) - 140011 [08:12:59]1012 (4) - 21.08.2024 01:51 [08:12:59]1206 (1) - 0 [08:12:59]OFD Sender: Remove packet 140011 [08:12:59]ProducePacketName [08:12:59]name=ofd_packets/00140011 [08:12:59]NVStorageDeleteData [08:13:00]Write to MH i2c: 01 00 00 93 1F B2 [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: 01 07 00 93 1F 00 00 00 00 00 D4 0C 99 [08:13:00]RasterBufferAndPrint [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]line [08:13:00]written 0, free lines is 3290 [08:13:00]MH_Cut [08:13:00]Write to MH i2c: D1 01 00 9A 1F 01 8B [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 [08:13:00]MH_I2C_Read... [08:13:00]Read from MH i2c: D1 01 00 9A 1F 00 8A [08:13:00]Write to MH i2c: 01 00 00 9B 1F BA [08:13:00]Write i2c OK [08:13:00]MH_I2C_Read... [08:13:00]OFD Sender: No OFD packet to send [08:13:00]*** Cut start [08:13:00]*** Partial cut [08:13:00]*** CUTSNS_PIN = 1 [08:13:00]*** CUTSNS_PIN = 0 [08:13:01]*** Brake cut motor [08:13:01]Read from MH i2c: 01 [08:13:01]MH_I2C_Read... [08:13:01]*** Stop cut motor [08:13:01]*** Cut end [08:13:01]Read from MH i2c: 01 07 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: 01 07 00 9B 1F 00 00 00 00 00 FF 0F CF [08:13:01]process_action close_receipt done [08:13:01]requested_data is exist [08:13:01]produce_requested_data [08:13:01]requested_item fm.sn is exist - process it [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 11 00 00 [08:13:01]Write to MH i2c: E2 08 00 9C 1F 80 11 00 00 00 00 00 00 35 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 17 00 9C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [08:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:13:01]wFMCommunicate OK [08:13:01]requested_item fd.num is exist - process it [08:13:01]SAM_PROTO_GetFieldsCounters [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 13 00 00 [08:13:01]Write to MH i2c: E2 08 00 9D 1F 80 13 00 00 00 00 00 00 38 [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 62 00 9D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:01]wFMCommunicate OK [08:13:01]SAM_PROTO_GetFieldsCounters done [08:13:01]requested_item shift.num is exist - process it [08:13:01]requested_item shift.opened is exist - process it [08:13:01]req_shift_opened [08:13:01]FM_GetShiftState [08:13:01]SAM_PROTO_GetShiftState [08:13:01]wFMCommunicate request_size=4 [08:13:01]MH_SAM_APDU [08:13:01]CAPDU: 80 13 01 00 [08:13:01]Write to MH i2c: E2 08 00 9E 1F 80 13 01 00 00 00 00 00 3A [08:13:01]Write i2c OK [08:13:01]MH_I2C_Read... [08:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:01]Read from MH i2c: E2 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 0E 00 [08:13:01]MH_I2C_Read... [08:13:01]Read from MH i2c: E2 0E 00 9E 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BA [08:13:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:13:01]wFMCommunicate OK [08:13:01]SAM_PROTO_GetShiftState done [08:13:01]FM_GetShiftState done [08:13:01]req_shift_opened done [08:13:01]requested_item shift.open_date is exist - process it [08:13:01]req_shift_open_date [08:13:01]req_shift_open_date done [08:13:01]produce_requested_data done [08:13:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140011,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:13:01]process_action_free close_receipt [08:13:01]json_value_free [08:13:01]json_value_free done [08:13:01]process_json_proto returns [08:13:01]Send response to host [08:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140011,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:13:01]free response buf [08:13:01]execute_script done [08:13:01]execute_script returns [08:13:01]free content buf [08:13:01]Sock 9.Close socket [08:13:01]Sock 9.Thread stoped [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:19]accept exits with 7 [08:13:19]New connection [08:13:19]New thread 3066908004 created [08:13:19]Thread 3066764644 joined [08:13:19]Waiting for new connection... [08:13:19] Sock 7.Parse request [08:13:19]Sock 7.Check first char [08:13:19]Sock 7.First char is OK [08:13:19]request: POST /json_proto HTTP/1.0 [08:13:19]Method: POST [08:13:19]URL: /json_proto [08:13:19]Method is POST - this is cgi request [08:13:19]url: /json_proto [08:13:19]query_string will be loaded in cgi processing [08:13:19]execute_cgi json_proto POST (null) [08:13:19]execute_cgi path=json_proto method=POST [08:13:19]POST find Content-Length [08:13:19]Host: 172.17.45.67:8080 [08:13:19]Content-Length: 658 [08:13:19]Content-Type: application/json [08:13:19] [08:13:19]POST finish read [08:13:19]Found Content-Length = 658 [08:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:19]execute_script... [08:13: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)593866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:19]POST & json_proto [08:13:19]process_json_proto [08:13:19]json parsed OK: [08:13:19]protocol is kg_v1.0 [08:13:19]action value=close_receipt [08:13:19]process_action close_receipt [08:13:19]cmd_close_receipt [08:13:19]MH_GetDate [08:13:19]Write to MH i2c: F0 00 00 9F 1F AD [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: F0 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: F0 09 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: F0 09 00 9F 1F 00 A2 A1 C5 66 5F 7F 2B 66 93 [08:13:19]GetLastDocTimeStamp 1724227980 [08:13:19]current date 1724228002 [08:13:19]FM_GetShiftState [08:13:19]SAM_PROTO_GetShiftState [08:13:19]wFMCommunicate request_size=4 [08:13:19]MH_SAM_APDU [08:13:19]CAPDU: 80 13 01 00 [08:13:19]Write to MH i2c: E2 08 00 A0 1F 80 13 01 00 00 00 00 00 3C [08:13:19]Write i2c OK [08:13:19]MH_I2C_Read... [08:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:19]Read from MH i2c: E2 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 0E 00 [08:13:19]MH_I2C_Read... [08:13:19]Read from MH i2c: E2 0E 00 A0 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BC [08:13:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:13:19]wFMCommunicate OK [08:13:19]SAM_PROTO_GetShiftState done [08:13:19]FM_GetShiftState done [08:13:19]opened in 1724200467 [08:13:19]opened+sec_in_day 1724286867 [08:13:19]quantity*price = 50017 [08:13:19]sum+1 = 50019 [08:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 29 21.08.2024 08:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140012 ФПД: 207632281303323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081322&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140012&fm=207632281303323&tin=02508201610067®Number=0000000000092569&sum=50000 [08:13:20]StoreToDocumentArchive [08:13:20]shift 454 fd 140012 [08:13:20]save to /storage/0454/doc_00140012 [08:13:20]save last doc name /storage/0454/doc_00140012 to /storage/kkm_last_doc_name [08:13:20]save OK [08:13:20]Clear old archive folders... [08:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:13:20]tlvbuf is B6EB6670 [08:13:20]SAM_PROTO_ClearQueue [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 09 00 00 [08:13:20]Write to MH i2c: E2 08 00 AD 1F 80 09 00 00 00 00 00 00 3E [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 AD 1F 00 90 00 40 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]SAM_PROTO_ClearQueue done [08:13:20]KKMCreateOFDPacket [08:13:20]OFDProtocolAddRootSTLVToBuf [08:13:20]FM_MakeSignedData [08:13:20]FM_MakeSignedData [08:13:20]SAM_PROTO_SignData [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 01 02 [08:13:20]Write to MH i2c: E2 08 00 AE 1F 80 0D 01 02 00 00 00 00 46 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 AE 1F 00 90 00 41 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]wFMCommunicate request_size=253 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A2 A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 22 02 00 35 04 06 00 BC D7 28 5E F9 1B [08:13:20]Write to MH i2c: E2 00 01 AF 1F 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A2 A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 22 02 00 35 04 06 00 BC D7 28 5E F9 1B 00 00 EE [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 03 00 AF 1F 00 90 00 42 [08:13:20]RAPDU: 90 00 [08:13:20]wFMCommunicate OK [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 0D 03 02 [08:13:20]Write to MH i2c: E2 08 00 B0 1F 80 0D 03 02 00 00 00 00 4A [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 0B 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 0B 00 B0 1F 00 1C 4F C7 D7 7F 5B 86 3E 90 00 F2 [08:13:20]RAPDU: 1C 4F C7 D7 7F 5B 86 3E 90 00 [08:13:20]wFMCommunicate OK [08:13:20]SAM_PROTO_SignData done [08:13:20]FM_MakeSignedData done [08:13:20]CreateOFDProtocolMessage [08:13:20]wFMCommunicate request_size=4 [08:13:20]MH_SAM_APDU [08:13:20]CAPDU: 80 11 00 00 [08:13:20]Write to MH i2c: E2 08 00 B1 1F 80 11 00 00 00 00 00 00 4A [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:20]Read from MH i2c: E2 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: E2 17 00 B1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [08:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:13:20]wFMCommunicate OK [08:13:20]CreateOFDProtocolMessage done [08:13:20]OFDSenderStorePacket 140012 [08:13:20]StoreOFDPacket docnum=140012 [08:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 97 19 00 01 03 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A2 A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 22 02 00 35 04 06 00 BC D7 28 5E F9 1B 1C 4F C7 D7 7F 5B 86 3E [08:13:20]CheckFolder [08:13:20]dirname=/storage/ofd_packets [08:13:20]CheckFolder done [08:13:20]ProducePacketName [08:13:20]name=ofd_packets/00140012 [08:13:20]NVStorageSaveData ofd_packets/00140012 [08:13:20]File name is /storage/ofd_packets/00140012 [08:13:20]Write 294 bytes [08:13:20]NVStorageSaveData done [08:13:20]OFDSenderStorePacket done [08:13:20]KKMCreateOFDPacket done [08:13:20]NVStorageSaveData kkm_last_timestamp [08:13:20]File name is /storage/kkm_last_timestamp [08:13:20]Write 4 bytes [08:13:20]NVStorageSaveData done [08:13:20]ExternCall_PrintAddStr [08:13:20]wPrintStart [08:13:20]Write to MH i2c: 01 00 00 B2 1F D1 [08:13:20]Write i2c OK [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 07 00 [08:13:20]MH_I2C_Read... [08:13:20]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 FF 0F E6 [08:13:20]RasterBufferAndPrint [08:13:20]line Счет N : (1)593866 [08:13:20]line ИНН: 02508201610067 [08:13:20]line Контрольно-Кассовый Чек [08:13:20]line ПРОДАЖА [08:13:20]line ТРК (МРК, ГНК) : 53 [08:13:20]line Товар: 2710124130 [08:13:20]line SU-92 [08:13:20]line 7.270 * 68.80 [08:13:20]line = 500.18 [08:13:20]line НДС 12% НСП 1% [08:13:20]line > о реализуемом товаре [08:13:20]line ОКРУГЛЕНИЕ: -0.18 [08:13:20]line ИТОГО: 500.00 [08:13:20]line Внесено: 500.00 [08:13:20]line СДАЧА: 0.00 [08:13:21]line НСП 1% : 4.43 [08:13:21]line НДС 12% : 53.12 [08:13:21]line Наличными: 500.00 [08:13:21]line Безнал.: 0.00 [08:13:21]line Место: АЗС № 136 "Партнер Нефть" [08:13:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:13:21]line СНО: Общий режим [08:13:21]line Чек 29 21.08.2024 08:13 [08:13:21]line Смена: 454 ФФД: 1.0 [08:13:21]line ЗНМ: 0300000067 [08:13:21]line РНМ: 0000000000092569 [08:13:21]line Версия ККМ: 001 [08:13:21]line ФМ: 0000000000871776 [08:13:21]line ФД: 140012 [08:13:21]line ФПД: 207632281303323 [08:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081322&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140012&fm=207632281303323&tin=02508201610067®Number=0000000000092569&sum=50000 [08:13:21]OFD Sender: Processing packet 140012 [packets to send 137, broken 136] [08:13:21]ProducePacketName [08:13:21]name=ofd_packets/00140012 [08:13:21]OFD Sender: To server: pG, [08:13:21]CommunicateWithHost lk.salyk.kg:30040 [08:13:21]ConnectInit lk.salyk.kg [08:13:21]written 0, free lines is 4095 [08:13:21]Connected sock=10 [08:13: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 37 36 08 01 00 00 97 19 00 01 03 7E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A2 A1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 22 02 00 35 04 06 00 BC D7 28 5E F9 1B 1C 4F C7 D7 7F 5B 86 3E [08:13: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 37 36 4F 00 00 00 6B 28 47 00 BF 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 22 02 00 F4 03 04 00 33 48 C5 66 B6 04 01 00 00 C4 EC 68 35 12 50 8B 48 [08:13:21]CommunicateWithHost err = 0 [08:13:21]CheckOFDResponse [08:13:21]1017 (14) - 77093643461234 [08:13:21]1041 (16) - 0000000000871776 [08:13:21]1040 (4) - 140012 [08:13:21]1012 (4) - 21.08.2024 01:51 [08:13:21]1206 (1) - 0 [08:13:21]OFD Sender: Remove packet 140012 [08:13:21]ProducePacketName [08:13:21]name=ofd_packets/00140012 [08:13:21]NVStorageDeleteData [08:13:21]Write to MH i2c: 01 00 00 DD 1F FC [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 07 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: 01 07 00 DD 1F 00 00 00 00 00 CB 0C DA [08:13:21]RasterBufferAndPrint [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]line [08:13:21]written 0, free lines is 3282 [08:13:21]MH_Cut [08:13:21]Write to MH i2c: D1 01 00 E4 1F 01 D5 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 01 00 [08:13:21]MH_I2C_Read... [08:13:21]Read from MH i2c: D1 01 00 E4 1F 00 D4 [08:13:21]Write to MH i2c: 01 00 00 E5 1F 04 [08:13:21]Write i2c OK [08:13:21]MH_I2C_Read... [08:13:22]OFD Sender: No OFD packet to send [08:13:22]*** Cut start [08:13:22]*** Partial cut [08:13:22]*** CUTSNS_PIN = 1 [08:13:22]*** CUTSNS_PIN = 0 [08:13:22]*** Brake cut motor [08:13:23]Read from MH i2c: 01 [08:13:23]MH_I2C_Read... [08:13:23]*** Stop cut motor [08:13:23]*** Cut end [08:13:23]Read from MH i2c: 01 07 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 07 00 E5 1F 00 00 00 00 00 FF 0F 19 [08:13:23]process_action close_receipt done [08:13:23]requested_data is exist [08:13:23]produce_requested_data [08:13:23]requested_item fm.sn is exist - process it [08:13:23]wFMCommunicate request_size=4 [08:13:23]MH_SAM_APDU [08:13:23]CAPDU: 80 11 00 00 [08:13:23]Write to MH i2c: E2 08 00 E6 1F 80 11 00 00 00 00 00 00 7F [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:23]Read from MH i2c: E2 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 17 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 17 00 E6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [08:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:13:23]wFMCommunicate OK [08:13:23]requested_item fd.num is exist - process it [08:13:23]SAM_PROTO_GetFieldsCounters [08:13:23]wFMCommunicate request_size=4 [08:13:23]MH_SAM_APDU [08:13:23]CAPDU: 80 13 00 00 [08:13:23]Write to MH i2c: E2 08 00 E7 1F 80 13 00 00 00 00 00 00 82 [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:23]Read from MH i2c: E2 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 62 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 62 00 E7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [08:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:23]wFMCommunicate OK [08:13:23]SAM_PROTO_GetFieldsCounters done [08:13:23]requested_item shift.num is exist - process it [08:13:23]requested_item shift.opened is exist - process it [08:13:23]req_shift_opened [08:13:23]FM_GetShiftState [08:13:23]SAM_PROTO_GetShiftState [08:13:23]wFMCommunicate request_size=4 [08:13:23]MH_SAM_APDU [08:13:23]CAPDU: 80 13 01 00 [08:13:23]Write to MH i2c: E2 08 00 E8 1F 80 13 01 00 00 00 00 00 84 [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:23]Read from MH i2c: E2 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 0E 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: E2 0E 00 E8 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 04 [08:13:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:13:23]wFMCommunicate OK [08:13:23]SAM_PROTO_GetShiftState done [08:13:23]FM_GetShiftState done [08:13:23]req_shift_opened done [08:13:23]requested_item shift.open_date is exist - process it [08:13:23]req_shift_open_date [08:13:23]req_shift_open_date done [08:13:23]produce_requested_data done [08:13:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140012,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:13:23]process_action_free close_receipt [08:13:23]json_value_free [08:13:23]json_value_free done [08:13:23]process_json_proto returns [08:13:23]Send response to host [08:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140012,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:13:23]free response buf [08:13:23]execute_script done [08:13:23]execute_script returns [08:13:23]free content buf [08:13:23]Sock 7.Close socket [08:13:23]Sock 7.Thread stoped [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:46]accept exits with 9 [08:19:46]New connection [08:19:46]New thread 3066764644 created [08:19:46]Thread 3066908004 joined [08:19:46]Waiting for new connection... [08:19:46] Sock 9.Parse request [08:19:46]Sock 9.Check first char [08:19:46]Sock 9.First char is OK [08:19:46]request: POST /json_proto HTTP/1.0 [08:19:46]Method: POST [08:19:46]URL: /json_proto [08:19:46]Method is POST - this is cgi request [08:19:46]url: /json_proto [08:19:46]query_string will be loaded in cgi processing [08:19:46]execute_cgi json_proto POST (null) [08:19:46]execute_cgi path=json_proto method=POST [08:19:46]POST find Content-Length [08:19:46]Host: 172.17.45.67:8080 [08:19:46]Content-Length: 682 [08:19:46]Content-Type: application/json [08:19:46] [08:19:46]POST finish read [08:19:46]Found Content-Length = 682 [08:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:46]execute_script... [08:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:46]POST & json_proto [08:19:46]process_json_proto [08:19:46]json parsed OK: [08:19:46]protocol is kg_v1.0 [08:19:46]action value=close_receipt [08:19:46]process_action close_receipt [08:19:46]cmd_close_receipt [08:19:46]MH_GetDate [08:19:46]Write to MH i2c: F0 00 00 E9 1F F7 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 E9 1F 00 24 A3 C5 66 5F 7F 2B 66 61 [08:19:46]GetLastDocTimeStamp 1724228002 [08:19:46]current date 1724228388 [08:19:46]FM_GetShiftState [08:19:46]SAM_PROTO_GetShiftState [08:19:46]wFMCommunicate request_size=4 [08:19:46]MH_SAM_APDU [08:19:46]CAPDU: 80 13 01 00 [08:19:46]Write to MH i2c: E2 08 00 EA 1F 80 13 01 00 00 00 00 00 86 [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:46]Read from MH i2c: E2 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: E2 0E 00 EA 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 06 [08:19:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:19:46]wFMCommunicate OK [08:19:46]SAM_PROTO_GetShiftState done [08:19:46]FM_GetShiftState done [08:19:46]opened in 1724200467 [08:19:46]opened+sec_in_day 1724286867 [08:19:46]quantity*price = 100005 [08:19:46]sum+1 = 100006 [08:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 30 21.08.2024 08:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140013 ФПД: 219127252998159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081948&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140013&fm=219127252998159&tin=02508201610067®Number=0000000000092569&sum=100000 [08:19:47]StoreToDocumentArchive [08:19:47]shift 454 fd 140013 [08:19:47]save to /storage/0454/doc_00140013 [08:19:47]save last doc name /storage/0454/doc_00140013 to /storage/kkm_last_doc_name [08:19:47]save OK [08:19:47]Clear old archive folders... [08:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:47]tlvbuf is B6E9D760 [08:19:47]SAM_PROTO_ClearQueue [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 09 00 00 [08:19:47]Write to MH i2c: E2 08 00 F7 1F 80 09 00 00 00 00 00 00 88 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 F7 1F 00 90 00 8A [08:19:47]RAPDU: 90 00 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_ClearQueue done [08:19:47]KKMCreateOFDPacket [08:19:47]OFDProtocolAddRootSTLVToBuf [08:19:47]FM_MakeSignedData [08:19:47]FM_MakeSignedData [08:19:47]SAM_PROTO_SignData [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 0D 01 02 [08:19:47]Write to MH i2c: E2 08 00 F8 1F 80 0D 01 02 00 00 00 00 90 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 F8 1F 00 90 00 8B [08:19:47]RAPDU: 90 00 [08:19:47]wFMCommunicate OK [08:19:47]wFMCommunicate request_size=255 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 22 02 00 35 04 06 00 C7 [08:19:47]Write to MH i2c: E2 02 01 F9 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 22 02 00 35 04 06 00 C7 00 00 57 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 F9 1F 00 90 00 8C [08:19:47]RAPDU: 90 00 [08:19:47]wFMCommunicate OK [08:19:47]wFMCommunicate request_size=10 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 0D 02 02 05 4B 8A 13 58 0F [08:19:47]Write to MH i2c: E2 0D 00 FA 1F 80 0D 02 02 05 00 4B 8A 13 58 0F 00 00 EC [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 03 00 FA 1F 00 90 00 8D [08:19:47]RAPDU: 90 00 [08:19:47]wFMCommunicate OK [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 0D 03 02 [08:19:47]Write to MH i2c: E2 08 00 FB 1F 80 0D 03 02 00 00 00 00 95 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]OFD Sender: No OFD packet to send [08:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0B 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0B 00 FB 1F 00 79 94 98 E5 89 C5 5D 3B 90 00 06 [08:19:47]RAPDU: 79 94 98 E5 89 C5 5D 3B 90 00 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_SignData done [08:19:47]FM_MakeSignedData done [08:19:47]CreateOFDProtocolMessage [08:19:47]wFMCommunicate request_size=4 [08:19:47]MH_SAM_APDU [08:19:47]CAPDU: 80 11 00 00 [08:19:47]Write to MH i2c: E2 08 00 FC 1F 80 11 00 00 00 00 00 00 95 [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 17 00 FC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [08:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:19:47]wFMCommunicate OK [08:19:47]CreateOFDProtocolMessage done [08:19:47]OFDSenderStorePacket 140013 [08:19:47]StoreOFDPacket docnum=140013 [08:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 EB 07 01 35 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 22 02 00 35 04 06 00 C7 4B 8A 13 58 0F 79 94 98 E5 89 C5 5D 3B [08:19:47]CheckFolder [08:19:47]dirname=/storage/ofd_packets [08:19:47]CheckFolder done [08:19:47]ProducePacketName [08:19:47]name=ofd_packets/00140013 [08:19:47]NVStorageSaveData ofd_packets/00140013 [08:19:47]File name is /storage/ofd_packets/00140013 [08:19:47]Write 301 bytes [08:19:47]NVStorageSaveData done [08:19:47]OFDSenderStorePacket done [08:19:47]KKMCreateOFDPacket done [08:19:47]NVStorageSaveData kkm_last_timestamp [08:19:47]File name is /storage/kkm_last_timestamp [08:19:47]Write 4 bytes [08:19:47]NVStorageSaveData done [08:19:47]ExternCall_PrintAddStr [08:19:47]wPrintStart [08:19:47]Write to MH i2c: 01 00 00 FD 1F 1C [08:19:47]Write i2c OK [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: 01 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: 01 07 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: 01 07 00 FD 1F 00 00 00 00 00 FF 0F 31 [08:19:47]RasterBufferAndPrint [08:19:47]line Счет N : (1)593867 [08:19:47]line ИНН: 02508201610067 [08:19:47]line Контрольно-Кассовый Чек [08:19:47]line ПРОДАЖА [08:19:47]line ТРК (МРК, ГНК) : 52 [08:19:47]line Товар: 2710124130 [08:19:47]line Аи-92-К-5 [08:19:47]line 14.750 * 67.80 [08:19:47]line = 1000.05 [08:19:47]line НДС 12% НСП 1% [08:19:47]line > о реализуемом товаре [08:19:47]line ОКРУГЛЕНИЕ: -0.05 [08:19:47]line ИТОГО: 1000.00 [08:19:47]line Внесено: 1000.00 [08:19:47]line СДАЧА: 0.00 [08:19:47]line НСП 1% : 8.85 [08:19:47]line НДС 12% : 106.20 [08:19:47]line Наличными: 1000.00 [08:19:47]line Безнал.: 0.00 [08:19:47]line Место: АЗС № 136 "Партнер Нефть" [08:19:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:19:47]line СНО: Общий режим [08:19:47]line Чек 30 21.08.2024 08:19 [08:19:47]line Смена: 454 ФФД: 1.0 [08:19:47]line ЗНМ: 0300000067 [08:19:47]line РНМ: 0000000000092569 [08:19:47]line Версия ККМ: 001 [08:19:47]line ФМ: 0000000000871776 [08:19:47]line ФД: 140013 [08:19:47]line ФПД: 219127252998159 [08:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T081948&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140013&fm=219127252998159&tin=02508201610067®Number=0000000000092569&sum=100000 [08:19:48]OFD Sender: Processing packet 140013 [packets to send 137, broken 136] [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00140013 [08:19:48]OFD Sender: To server: pG, [08:19:48]CommunicateWithHost lk.salyk.kg:30040 [08:19:48]ConnectInit lk.salyk.kg [08:19:48]written 0, free lines is 4095 [08:19:48]Connected sock=11 [08:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 EB 07 01 35 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 22 02 00 35 04 06 00 C7 4B 8A 13 58 0F 79 94 98 E5 89 C5 5D 3B [08:19:48]Write to MH i2c: 01 00 00 28 20 48 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 28 20 00 00 00 00 00 C5 0C 20 [08:19:48]RasterBufferAndPrint [08:19:48]line [08:19:48]line [08:19:48]line [08:19:48]line [08:19:48]line [08:19:48]written 0, free lines is 3274 [08:19:48]MH_Cut [08:19:48]Write to MH i2c: D1 01 00 2F 20 01 21 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: D1 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: D1 01 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: D1 01 00 2F 20 00 20 [08:19:48]Write to MH i2c: 01 00 00 30 20 50 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 84 61 47 00 CF A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 22 02 00 F4 03 04 00 B6 49 C5 66 B6 04 01 00 00 17 F9 14 CE E2 9B 22 5C [08:19:48]CommunicateWithHost err = 0 [08:19:48]CheckOFDResponse [08:19:48]1017 (14) - 77093643461234 [08:19:48]1041 (16) - 0000000000871776 [08:19:48]1040 (4) - 140013 [08:19:48]1012 (4) - 21.08.2024 01:58 [08:19:48]1206 (1) - 0 [08:19:48]OFD Sender: Remove packet 140013 [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00140013 [08:19:48]NVStorageDeleteData [08:19:49]OFD Sender: No OFD packet to send [08:19:49]*** Cut start [08:19:49]*** Partial cut [08:19:49]*** CUTSNS_PIN = 1 [08:19:49]*** CUTSNS_PIN = 0 [08:19:49]*** Brake cut motor [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]*** Stop cut motor [08:19:49]*** Cut end [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 30 20 00 00 00 00 00 FF 0F 65 [08:19:49]process_action close_receipt done [08:19:49]requested_data is exist [08:19:49]produce_requested_data [08:19:49]requested_item fm.sn is exist - process it [08:19:49]wFMCommunicate request_size=4 [08:19:49]MH_SAM_APDU [08:19:49]CAPDU: 80 11 00 00 [08:19:49]Write to MH i2c: E2 08 00 31 20 80 11 00 00 00 00 00 00 CB [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 31 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [08:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:19:50]wFMCommunicate OK [08:19:50]requested_item fd.num is exist - process it [08:19:50]SAM_PROTO_GetFieldsCounters [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 00 00 [08:19:50]Write to MH i2c: E2 08 00 32 20 80 13 00 00 00 00 00 00 CE [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 32 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [08:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetFieldsCounters done [08:19:50]requested_item shift.num is exist - process it [08:19:50]requested_item shift.opened is exist - process it [08:19:50]req_shift_opened [08:19:50]FM_GetShiftState [08:19:50]SAM_PROTO_GetShiftState [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 01 00 [08:19:50]Write to MH i2c: E2 08 00 33 20 80 13 01 00 00 00 00 00 D0 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 33 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 50 [08:19:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetShiftState done [08:19:50]FM_GetShiftState done [08:19:50]req_shift_opened done [08:19:50]requested_item shift.open_date is exist - process it [08:19:50]req_shift_open_date [08:19:50]req_shift_open_date done [08:19:50]produce_requested_data done [08:19:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140013,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:19:50]process_action_free close_receipt [08:19:50]json_value_free [08:19:50]json_value_free done [08:19:50]process_json_proto returns [08:19:50]Send response to host [08:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140013,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:19:50]free response buf [08:19:50]execute_script done [08:19:50]execute_script returns [08:19:50]free content buf [08:19:50]Sock 9.Close socket [08:19:50]Sock 9.Thread stoped [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]int [08:21:44]Write to MH i2c: 01 00 00 34 20 54 [08:21:44]*** FLAG_PRN_KEY set [08:21:44]OFD Sender: No OFD packet to send [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 34 20 00 08 00 00 00 FF 0F 71 [08:21:44]state=0 [08:21:44]Key pressed [08:21:44]Feed [08:21:44]Write to MH i2c: D8 00 00 35 20 2C [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: D8 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: D8 01 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: D8 01 00 35 20 00 2D [08:21:44]int [08:21:44]Write to MH i2c: 01 00 00 36 20 56 [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 36 20 00 48 00 00 00 3C 00 E1 [08:21:44]state=2 [08:21:44]Key pressed [08:21:44]int [08:21:44]Write to MH i2c: 01 00 00 37 20 57 [08:21:44]*** FLAG_PRN_KEY reset [08:21:44]Write i2c OK [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 [08:21:44]MH_I2C_Read... [08:21:44]Read from MH i2c: 01 07 00 37 20 00 00 00 00 00 F5 0F 62 [08:21:44]state=2 [08:21:44]Stop feed [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:58]accept exits with 7 [08:22:58]New connection [08:22:58]New thread 3066908004 created [08:22:58]Thread 3066764644 joined [08:22:58]Waiting for new connection... [08:22:58] Sock 7.Parse request [08:22:58]Sock 7.Check first char [08:22:58]Sock 7.First char is OK [08:22:58]request: POST /json_proto HTTP/1.0 [08:22:58]Method: POST [08:22:58]URL: /json_proto [08:22:58]Method is POST - this is cgi request [08:22:58]url: /json_proto [08:22:58]query_string will be loaded in cgi processing [08:22:58]execute_cgi json_proto POST (null) [08:22:58]execute_cgi path=json_proto method=POST [08:22:58]POST find Content-Length [08:22:58]Host: 172.17.45.67:8080 [08:22:58]Content-Length: 800 [08:22:58]Content-Type: application/json [08:22:58] [08:22:58]POST finish read [08:22:58]Found Content-Length = 800 [08:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940775", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:58]execute_script... [08:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940775", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:58]POST & json_proto [08:22:58]process_json_proto [08:22:58]json parsed OK: [08:22:58]protocol is kg_v1.0 [08:22:58]action value=close_receipt [08:22:58]process_action close_receipt [08:22:58]cmd_close_receipt [08:22:58]MH_GetDate [08:22:58]Write to MH i2c: F0 00 00 38 20 47 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 09 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 09 00 38 20 00 E5 A3 C5 66 5F 7F 2B 66 72 [08:22:58]GetLastDocTimeStamp 1724228388 [08:22:58]current date 1724228581 [08:22:58]FM_GetShiftState [08:22:58]SAM_PROTO_GetShiftState [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 01 00 [08:22:58]Write to MH i2c: E2 08 00 39 20 80 13 01 00 00 00 00 00 D6 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 39 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 56 [08:22:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetShiftState done [08:22:58]FM_GetShiftState done [08:22:58]opened in 1724200467 [08:22:58]opened+sec_in_day 1724286867 [08:22:58]quantity*price = 0 [08:22:58]sum+1 = 1 [08:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 31 21.08.2024 08:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 3940775 ФМ: 0000000000871776 ФД: 140014 ФПД: 63226800622314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082301&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140014&fm=63226800622314&tin=02508201610067®Number=0000000000092569&sum=0 [08:22:59]StoreToDocumentArchive [08:22:59]shift 454 fd 140014 [08:22:59]save to /storage/0454/doc_00140014 [08:22:59]save last doc name /storage/0454/doc_00140014 to /storage/kkm_last_doc_name [08:22:59]save OK [08:22:59]Clear old archive folders... [08:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:59]tlvbuf is B6F4A880 [08:22:59]SAM_PROTO_ClearQueue [08:22:59]wFMCommunicate request_size=4 [08:22:59]MH_SAM_APDU [08:22:59]CAPDU: 80 09 00 00 [08:22:59]Write to MH i2c: E2 08 00 46 20 80 09 00 00 00 00 00 00 D8 [08:22:59]Write i2c OK [08:22:59]MH_I2C_Read... [08:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:59]Read from MH i2c: E2 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 46 20 00 90 00 DA [08:22:59]RAPDU: 90 00 [08:22:59]wFMCommunicate OK [08:22:59]SAM_PROTO_ClearQueue done [08:22:59]KKMCreateOFDPacket [08:22:59]OFDProtocolAddRootSTLVToBuf [08:22:59]FM_MakeSignedData [08:22:59]FM_MakeSignedData [08:22:59]SAM_PROTO_SignData [08:22:59]wFMCommunicate request_size=4 [08:22:59]MH_SAM_APDU [08:22:59]CAPDU: 80 0D 01 02 [08:22:59]Write to MH i2c: E2 08 00 47 20 80 0D 01 02 00 00 00 00 E0 [08:22:59]Write i2c OK [08:22:59]MH_I2C_Read... [08:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:59]Read from MH i2c: E2 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 47 20 00 90 00 DB [08:22:59]RAPDU: 90 00 [08:22:59]wFMCommunicate OK [08:22:59]wFMCommunicate request_size=255 [08:22:59]MH_SAM_APDU [08:22: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 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 1F 00 00 00 F4 03 04 00 E5 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 22 02 00 35 04 06 00 39 [08:22:59]Write to MH i2c: E2 02 01 48 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 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 1F 00 00 00 F4 03 04 00 E5 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 22 02 00 35 04 06 00 39 00 00 46 [08:22:59]Write i2c OK [08:22:59]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 48 20 00 90 00 DC [08:23:00]RAPDU: 90 00 [08:23:00]wFMCommunicate OK [08:23:00]wFMCommunicate request_size=10 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 0D 02 02 05 81 22 FD CA EA [08:23:00]Write to MH i2c: E2 0D 00 49 20 80 0D 02 02 05 00 81 22 FD CA EA 00 00 41 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 49 20 00 90 00 DD [08:23:00]RAPDU: 90 00 [08:23:00]wFMCommunicate OK [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 0D 03 02 [08:23:00]Write to MH i2c: E2 08 00 4A 20 80 0D 03 02 00 00 00 00 E5 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0B 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0B 00 4A 20 00 BC B5 5F 1E 82 89 3D B2 90 00 CE [08:23:00]RAPDU: BC B5 5F 1E 82 89 3D B2 90 00 [08:23:00]wFMCommunicate OK [08:23:00]SAM_PROTO_SignData done [08:23:00]FM_MakeSignedData done [08:23:00]CreateOFDProtocolMessage [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 11 00 00 [08:23:00]Write to MH i2c: E2 08 00 4B 20 80 11 00 00 00 00 00 00 E5 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 4B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [08:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:00]wFMCommunicate OK [08:23:00]CreateOFDProtocolMessage done [08:23:00]OFDSenderStorePacket 140014 [08:23:00]StoreOFDPacket docnum=140014 [08:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 68 BE 07 01 37 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 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 1F 00 00 00 F4 03 04 00 E5 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 22 02 00 35 04 06 00 39 81 22 FD CA EA BC B5 5F 1E 82 89 3D B2 [08:23:00]CheckFolder [08:23:00]dirname=/storage/ofd_packets [08:23:00]CheckFolder done [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00140014 [08:23:00]NVStorageSaveData ofd_packets/00140014 [08:23:00]File name is /storage/ofd_packets/00140014 [08:23:00]Write 301 bytes [08:23:00]NVStorageSaveData done [08:23:00]OFDSenderStorePacket done [08:23:00]KKMCreateOFDPacket done [08:23:00]NVStorageSaveData kkm_last_timestamp [08:23:00]File name is /storage/kkm_last_timestamp [08:23:00]Write 4 bytes [08:23:00]NVStorageSaveData done [08:23:00]ExternCall_PrintAddStr [08:23:00]wPrintStart [08:23:00]Write to MH i2c: 01 00 00 4C 20 6C [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 FF 0F 81 [08:23:00]RasterBufferAndPrint [08:23:00]line Счет N : (1)593868 [08:23:00]line ИНН: 02508201610067 [08:23:00]line Контрольно-Кассовый Чек [08:23:00]line ПРОДАЖА [08:23:00]line ТРК (МРК, ГНК) : 52 [08:23:00]line Товар: 2710124130 [08:23:00]line Аи-92-К-5 [08:23:00]line 20.000 * 0.00 [08:23:00]line = 0.00 [08:23:00]line НДС 12% НСП 1% [08:23:00]line > о реализуемом товаре [08:23:00]line ИТОГО: 0.00 [08:23:00]line НСП 1% : 0.00 [08:23:00]line НДС 12% : 0.00 [08:23:00]line Наличными: 0.00 [08:23:00]line Безнал.: 0.00 [08:23:00]line Место: АЗС № 136 "Партнер Нефть" [08:23:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:23:00]line СНО: Общий режим [08:23:00]line Чек 31 21.08.2024 08:23 [08:23:00]line Смена: 454 ФФД: 1.0 [08:23:00]line ЗНМ: 0300000067 [08:23:00]line РНМ: 0000000000092569 [08:23:00]line Версия ККМ: 001 [08:23:00]line Талоны: Топливные Талоны [08:23:00]line 3940775 [08:23:00]line ФМ: 0000000000871776 [08:23:00]line ФД: 140014 [08:23:00]line ФПД: 63226800622314 [08:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082301&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140014&fm=63226800622314&tin=02508201610067®Number=0000000000092569&sum=0 [08:23:00]written 0, free lines is 4095 [08:23:00]OFD Sender: Processing packet 140014 [packets to send 137, broken 136] [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00140014 [08:23:00]OFD Sender: To server: pG, [08:23:00]CommunicateWithHost lk.salyk.kg:30040 [08:23:00]ConnectInit lk.salyk.kg [08:23:00]Connected sock=10 [08:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 68 BE 07 01 37 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 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 1F 00 00 00 F4 03 04 00 E5 A3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 22 02 00 35 04 06 00 39 81 22 FD CA EA BC B5 5F 1E 82 89 3D B2 [08:23:00]Write to MH i2c: 01 00 00 76 20 96 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 76 20 00 00 00 00 00 DF 0C 88 [08:23:00]RasterBufferAndPrint [08:23:00]line [08:23:00]line [08:23:00]line [08:23:00]line [08:23:00]line [08:23:00]written 0, free lines is 3301 [08:23:00]MH_Cut [08:23:00]Write to MH i2c: D1 01 00 7D 20 01 6F [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: D1 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: D1 01 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: D1 01 00 7D 20 00 6E [08:23:00]Write to MH i2c: 01 00 00 7E 20 9E [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FC CE 47 00 3F 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 37 36 10 04 04 00 EE 22 02 00 F4 03 04 00 76 4A C5 66 B6 04 01 00 00 2B DF 42 93 D6 81 00 4B [08:23:00]CommunicateWithHost err = 0 [08:23:00]CheckOFDResponse [08:23:00]1017 (14) - 77093643461234 [08:23:00]1041 (16) - 0000000000871776 [08:23:00]1040 (4) - 140014 [08:23:00]1012 (4) - 21.08.2024 02:01 [08:23:00]1206 (1) - 0 [08:23:00]OFD Sender: Remove packet 140014 [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00140014 [08:23:00]NVStorageDeleteData [08:23:01]OFD Sender: No OFD packet to send [08:23:01]*** Cut start [08:23:01]*** Partial cut [08:23:01]*** CUTSNS_PIN = 1 [08:23:01]*** CUTSNS_PIN = 0 [08:23:01]*** Brake cut motor [08:23:02]Read from MH i2c: 01 [08:23:02]MH_I2C_Read... [08:23:02]*** Stop cut motor [08:23:02]*** Cut end [08:23:02]Read from MH i2c: 01 07 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: 01 07 00 7E 20 00 00 00 00 00 FF 0F B3 [08:23:02]process_action close_receipt done [08:23:02]requested_data is exist [08:23:02]produce_requested_data [08:23:02]requested_item fm.sn is exist - process it [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 11 00 00 [08:23:02]Write to MH i2c: E2 08 00 7F 20 80 11 00 00 00 00 00 00 19 [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 17 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 17 00 7F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [08:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:02]wFMCommunicate OK [08:23:02]requested_item fd.num is exist - process it [08:23:02]SAM_PROTO_GetFieldsCounters [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 13 00 00 [08:23:02]Write to MH i2c: E2 08 00 80 20 80 13 00 00 00 00 00 00 1C [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 62 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 62 00 80 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [08:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:02]wFMCommunicate OK [08:23:02]SAM_PROTO_GetFieldsCounters done [08:23:02]requested_item shift.num is exist - process it [08:23:02]requested_item shift.opened is exist - process it [08:23:02]req_shift_opened [08:23:02]FM_GetShiftState [08:23:02]SAM_PROTO_GetShiftState [08:23:02]wFMCommunicate request_size=4 [08:23:02]MH_SAM_APDU [08:23:02]CAPDU: 80 13 01 00 [08:23:02]Write to MH i2c: E2 08 00 81 20 80 13 01 00 00 00 00 00 1E [08:23:02]Write i2c OK [08:23:02]MH_I2C_Read... [08:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:02]Read from MH i2c: E2 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0E 00 [08:23:02]MH_I2C_Read... [08:23:02]Read from MH i2c: E2 0E 00 81 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [08:23:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:23:02]wFMCommunicate OK [08:23:02]SAM_PROTO_GetShiftState done [08:23:02]FM_GetShiftState done [08:23:02]req_shift_opened done [08:23:02]requested_item shift.open_date is exist - process it [08:23:02]req_shift_open_date [08:23:02]req_shift_open_date done [08:23:02]produce_requested_data done [08:23:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140014,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:23:02]process_action_free close_receipt [08:23:02]json_value_free [08:23:02]json_value_free done [08:23:02]process_json_proto returns [08:23:02]Send response to host [08:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140014,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:23:02]free response buf [08:23:02]execute_script done [08:23:02]execute_script returns [08:23:02]free content buf [08:23:02]Sock 7.Close socket [08:23:02]Sock 7.Thread stoped [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:52]accept exits with 9 [08:23:52]New connection [08:23:52]New thread 3066764644 created [08:23:52]Thread 3066908004 joined [08:23:52]Waiting for new connection... [08:23:52] Sock 9.Parse request [08:23:52]Sock 9.Check first char [08:23:52]Sock 9.First char is OK [08:23:52]request: POST /json_proto HTTP/1.0 [08:23:52]Method: POST [08:23:52]URL: /json_proto [08:23:52]Method is POST - this is cgi request [08:23:52]url: /json_proto [08:23:52]query_string will be loaded in cgi processing [08:23:52]execute_cgi json_proto POST (null) [08:23:52]execute_cgi path=json_proto method=POST [08:23:52]POST find Content-Length [08:23:52]Host: 172.17.45.67:8080 [08:23:52]Content-Length: 677 [08:23:52]Content-Type: application/json [08:23:52] [08:23:52]POST finish read [08:23:52]Found Content-Length = 677 [08:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [08:23:52]execute_script... [08:23:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [08:23:52]POST & json_proto [08:23:52]process_json_proto [08:23:52]json parsed OK: [08:23:52]protocol is kg_v1.0 [08:23:52]action value=close_receipt [08:23:52]process_action close_receipt [08:23:52]cmd_close_receipt [08:23:52]MH_GetDate [08:23:52]Write to MH i2c: F0 00 00 82 20 91 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 09 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: F0 09 00 82 20 00 1B A4 C5 66 5F 7F 2B 66 F3 [08:23:52]GetLastDocTimeStamp 1724228581 [08:23:52]current date 1724228635 [08:23:52]FM_GetShiftState [08:23:52]SAM_PROTO_GetShiftState [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 13 01 00 [08:23:52]Write to MH i2c: E2 08 00 83 20 80 13 01 00 00 00 00 00 20 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0E 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0E 00 83 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [08:23:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:23:52]wFMCommunicate OK [08:23:52]SAM_PROTO_GetShiftState done [08:23:52]FM_GetShiftState done [08:23:52]opened in 1724200467 [08:23:52]opened+sec_in_day 1724286867 [08:23:52]quantity*price = 35052 [08:23:52]sum+1 = 35054 [08:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 32 21.08.2024 08:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140015 ФПД: 187535166382724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082355&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140015&fm=187535166382724&tin=02508201610067®Number=0000000000092569&sum=35000 [08:23:53]StoreToDocumentArchive [08:23:53]shift 454 fd 140015 [08:23:53]save to /storage/0454/doc_00140015 [08:23:53]save last doc name /storage/0454/doc_00140015 to /storage/kkm_last_doc_name [08:23:53]save OK [08:23:53]Clear old archive folders... [08:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:53]tlvbuf is B6E9D320 [08:23:53]SAM_PROTO_ClearQueue [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 09 00 00 [08:23:53]Write to MH i2c: E2 08 00 90 20 80 09 00 00 00 00 00 00 22 [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 90 20 00 90 00 24 [08:23:53]RAPDU: 90 00 [08:23:53]wFMCommunicate OK [08:23:53]SAM_PROTO_ClearQueue done [08:23:53]KKMCreateOFDPacket [08:23:53]OFDProtocolAddRootSTLVToBuf [08:23:53]FM_MakeSignedData [08:23:53]FM_MakeSignedData [08:23:53]SAM_PROTO_SignData [08:23:53]wFMCommunicate request_size=4 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 0D 01 02 [08:23:53]Write to MH i2c: E2 08 00 91 20 80 0D 01 02 00 00 00 00 2A [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:53]Read from MH i2c: E2 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 [08:23:53]MH_I2C_Read... [08:23:53]Read from MH i2c: E2 03 00 91 20 00 90 00 25 [08:23:53]RAPDU: 90 00 [08:23:53]wFMCommunicate OK [08:23:53]wFMCommunicate request_size=255 [08:23:53]MH_SAM_APDU [08:23:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 20 00 00 00 F4 03 04 00 1B A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 22 02 00 35 04 06 00 AA [08:23:53]Write to MH i2c: E2 02 01 92 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 20 00 00 00 F4 03 04 00 1B A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 22 02 00 35 04 06 00 AA 00 00 6C [08:23:53]Write i2c OK [08:23:53]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 92 20 00 90 00 26 [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=10 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 02 02 05 8F EE F9 A2 84 [08:23:54]Write to MH i2c: E2 0D 00 93 20 80 0D 02 02 05 00 8F EE F9 A2 84 00 00 D3 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 03 00 93 20 00 90 00 27 [08:23:54]RAPDU: 90 00 [08:23:54]wFMCommunicate OK [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 0D 03 02 [08:23:54]Write to MH i2c: E2 08 00 94 20 80 0D 03 02 00 00 00 00 2F [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0B 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0B 00 94 20 00 DC 19 44 0B BE FC AA C7 90 00 9F [08:23:54]RAPDU: DC 19 44 0B BE FC AA C7 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_SignData done [08:23:54]FM_MakeSignedData done [08:23:54]CreateOFDProtocolMessage [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 11 00 00 [08:23:54]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [08:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:54]wFMCommunicate OK [08:23:54]CreateOFDProtocolMessage done [08:23:54]OFDSenderStorePacket 140015 [08:23:54]StoreOFDPacket docnum=140015 [08:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 83 07 01 F5 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 20 00 00 00 F4 03 04 00 1B A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 22 02 00 35 04 06 00 AA 8F EE F9 A2 84 DC 19 44 0B BE FC AA C7 [08:23:54]CheckFolder [08:23:54]dirname=/storage/ofd_packets [08:23:54]CheckFolder done [08:23:54]ProducePacketName [08:23:54]name=ofd_packets/00140015 [08:23:54]NVStorageSaveData ofd_packets/00140015 [08:23:54]File name is /storage/ofd_packets/00140015 [08:23:54]Write 301 bytes [08:23:54]NVStorageSaveData done [08:23:54]OFDSenderStorePacket done [08:23:54]KKMCreateOFDPacket done [08:23:54]NVStorageSaveData kkm_last_timestamp [08:23:54]File name is /storage/kkm_last_timestamp [08:23:54]Write 4 bytes [08:23:54]NVStorageSaveData done [08:23:54]ExternCall_PrintAddStr [08:23:54]wPrintStart [08:23:54]Write to MH i2c: 01 00 00 96 20 B6 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 96 20 00 00 00 00 00 FF 0F CB [08:23:54]RasterBufferAndPrint [08:23:54]line Счет N : (1)593869 [08:23:54]line ИНН: 02508201610067 [08:23:54]line Контрольно-Кассовый Чек [08:23:54]line ПРОДАЖА [08:23:54]line ТРК (МРК, ГНК) : 32 [08:23:54]line Товар: 2710124130 [08:23:54]line Аи-92-К-5 [08:23:54]line 5.170 * 67.80 [08:23:54]line = 350.53 [08:23:54]line НДС 12% НСП 1% [08:23:54]line > о реализуемом товаре [08:23:54]line ОКРУГЛЕНИЕ: -0.53 [08:23:54]line ИТОГО: 350.00 [08:23:54]line Внесено: 350.00 [08:23:54]line СДАЧА: 0.00 [08:23:54]line НСП 1% : 3.10 [08:23:54]line НДС 12% : 37.22 [08:23:54]line Наличными: 350.00 [08:23:54]line Безнал.: 0.00 [08:23:54]line Место: АЗС № 136 "Партнер Нефть" [08:23:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:23:54]line СНО: Общий режим [08:23:54]line Чек 32 21.08.2024 08:23 [08:23:54]line Смена: 454 ФФД: 1.0 [08:23:54]line ЗНМ: 0300000067 [08:23:54]line РНМ: 0000000000092569 [08:23:54]line Версия ККМ: 001 [08:23:54]line ФМ: 0000000000871776 [08:23:54]line ФД: 140015 [08:23:54]line ФПД: 187535166382724 [08:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082355&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140015&fm=187535166382724&tin=02508201610067®Number=0000000000092569&sum=35000 [08:23:54]written 0, free lines is 4095 [08:23:54]OFD Sender: Processing packet 140015 [packets to send 137, broken 136] [08:23:54]ProducePacketName [08:23:54]name=ofd_packets/00140015 [08:23:54]OFD Sender: To server: pG, [08:23:54]CommunicateWithHost lk.salyk.kg:30040 [08:23:54]ConnectInit lk.salyk.kg [08:23:55]Write to MH i2c: 01 00 00 C1 20 E1 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: 01 07 00 C1 20 00 00 00 00 00 C6 0C BA [08:23:55]RasterBufferAndPrint [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]line [08:23:55]written 0, free lines is 3276 [08:23:55]MH_Cut [08:23:55]Write to MH i2c: D1 01 00 C8 20 01 BA [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 01 00 [08:23:55]MH_I2C_Read... [08:23:55]Read from MH i2c: D1 01 00 C8 20 00 B9 [08:23:55]Write to MH i2c: 01 00 00 C9 20 E9 [08:23:55]Write i2c OK [08:23:55]MH_I2C_Read... [08:23:55]*** Cut start [08:23:55]*** Partial cut [08:23:55]*** CUTSNS_PIN = 1 [08:23:55]*** CUTSNS_PIN = 0 [08:23:56]*** Brake cut motor [08:23:56]Read from MH i2c: 01 [08:23:56]MH_I2C_Read... [08:23:56]*** Stop cut motor [08:23:56]*** Cut end [08:23:56]Read from MH i2c: 01 07 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: 01 07 00 C9 20 00 00 00 00 00 FF 0F FE [08:23:56]process_action close_receipt done [08:23:56]requested_data is exist [08:23:56]produce_requested_data [08:23:56]requested_item fm.sn is exist - process it [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 11 00 00 [08:23:56]Write to MH i2c: E2 08 00 CA 20 80 11 00 00 00 00 00 00 64 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 17 00 CA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [08:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:23:56]wFMCommunicate OK [08:23:56]requested_item fd.num is exist - process it [08:23:56]SAM_PROTO_GetFieldsCounters [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 13 00 00 [08:23:56]Write to MH i2c: E2 08 00 CB 20 80 13 00 00 00 00 00 00 67 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 62 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 62 00 CB 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [08:23:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_GetFieldsCounters done [08:23:56]requested_item shift.num is exist - process it [08:23:56]requested_item shift.opened is exist - process it [08:23:56]req_shift_opened [08:23:56]FM_GetShiftState [08:23:56]SAM_PROTO_GetShiftState [08:23:56]wFMCommunicate request_size=4 [08:23:56]MH_SAM_APDU [08:23:56]CAPDU: 80 13 01 00 [08:23:56]Write to MH i2c: E2 08 00 CC 20 80 13 01 00 00 00 00 00 69 [08:23:56]Write i2c OK [08:23:56]MH_I2C_Read... [08:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:56]Read from MH i2c: E2 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0E 00 [08:23:56]MH_I2C_Read... [08:23:56]Read from MH i2c: E2 0E 00 CC 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [08:23:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:23:56]wFMCommunicate OK [08:23:56]SAM_PROTO_GetShiftState done [08:23:56]FM_GetShiftState done [08:23:56]req_shift_opened done [08:23:56]requested_item shift.open_date is exist - process it [08:23:56]req_shift_open_date [08:23:56]req_shift_open_date done [08:23:56]produce_requested_data done [08:23:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140015,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:23:56]process_action_free close_receipt [08:23:56]json_value_free [08:23:56]json_value_free done [08:23:56]process_json_proto returns [08:23:56]Send response to host [08:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140015,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:23:56]free response buf [08:23:56]execute_script done [08:23:56]execute_script returns [08:23:56]free content buf [08:23:56]Sock 9.Close socket [08:23:56]Sock 9.Thread stoped [08:26:07]ConnectInit Can't connect to host [08:26:07]CommunicateWithHost connect error [08:26:07]CommunicateWithHost err = -1 [08:26:07]OFD Sender: Server communicate error [08:26:12]OFD Sender: Processing packet 140015 [packets to send 137, broken 136] [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00140015 [08:26:12]OFD Sender: To server: pG, [08:26:12]CommunicateWithHost lk.salyk.kg:30040 [08:26:12]ConnectInit lk.salyk.kg [08:26:12]Connected sock=9 [08:26: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 37 36 0F 01 00 00 1E 83 07 01 F5 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 20 00 00 00 F4 03 04 00 1B A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 22 02 00 35 04 06 00 AA 8F EE F9 A2 84 DC 19 44 0B BE FC AA C7 [08:26: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 37 36 4F 00 00 00 15 E1 47 00 71 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 37 36 10 04 04 00 EF 22 02 00 F4 03 04 00 36 4B C5 66 B6 04 01 00 00 DB E1 D7 00 ED 90 C6 BC [08:26:12]CommunicateWithHost err = 0 [08:26:12]CheckOFDResponse [08:26:12]1017 (14) - 77093643461234 [08:26:12]1041 (16) - 0000000000871776 [08:26:12]1040 (4) - 140015 [08:26:12]1012 (4) - 21.08.2024 02:04 [08:26:12]1206 (1) - 0 [08:26:12]OFD Sender: Remove packet 140015 [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00140015 [08:26:12]NVStorageDeleteData [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:17]accept exits with 7 [08:27:17]New connection [08:27:17]New thread 3066908004 created [08:27:17]Thread 3066764644 joined [08:27:17]Waiting for new connection... [08:27:17] Sock 7.Parse request [08:27:17]Sock 7.Check first char [08:27:17]Sock 7.First char is OK [08:27:17]request: POST /json_proto HTTP/1.0 [08:27:17]Method: POST [08:27:17]URL: /json_proto [08:27:17]Method is POST - this is cgi request [08:27:17]url: /json_proto [08:27:17]query_string will be loaded in cgi processing [08:27:17]execute_cgi json_proto POST (null) [08:27:17]execute_cgi path=json_proto method=POST [08:27:17]POST find Content-Length [08:27:17]Host: 172.17.45.67:8080 [08:27:17]Content-Length: 658 [08:27:17]Content-Type: application/json [08:27:17] [08:27:17]POST finish read [08:27:17]Found Content-Length = 658 [08:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:17]execute_script... [08:27: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)593870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:17]POST & json_proto [08:27:17]process_json_proto [08:27:17]json parsed OK: [08:27:17]protocol is kg_v1.0 [08:27:17]action value=close_receipt [08:27:17]process_action close_receipt [08:27:17]cmd_close_receipt [08:27:17]MH_GetDate [08:27:17]Write to MH i2c: F0 00 00 CD 20 DC [08:27:17]Write i2c OK [08:27:17]MH_I2C_Read... [08:27:17]Read from MH i2c: F0 [08:27:17]MH_I2C_Read... [08:27:17]Read from MH i2c: F0 09 00 [08:27:17]MH_I2C_Read... [08:27:17]Read from MH i2c: F0 09 00 CD 20 00 E7 A4 C5 66 5F 7F 2B 66 0A [08:27:17]GetLastDocTimeStamp 1724228635 [08:27:17]current date 1724228839 [08:27:17]FM_GetShiftState [08:27:17]SAM_PROTO_GetShiftState [08:27:17]wFMCommunicate request_size=4 [08:27:17]MH_SAM_APDU [08:27:17]CAPDU: 80 13 01 00 [08:27:17]Write to MH i2c: E2 08 00 CE 20 80 13 01 00 00 00 00 00 6B [08:27:17]Write i2c OK [08:27:17]MH_I2C_Read... [08:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:17]Read from MH i2c: E2 [08:27:17]MH_I2C_Read... [08:27:17]Read from MH i2c: E2 0E 00 [08:27:17]MH_I2C_Read... [08:27:17]Read from MH i2c: E2 0E 00 CE 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [08:27:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:27:17]wFMCommunicate OK [08:27:17]SAM_PROTO_GetShiftState done [08:27:17]FM_GetShiftState done [08:27:17]opened in 1724200467 [08:27:17]opened+sec_in_day 1724286867 [08:27:17]quantity*price = 50017 [08:27:17]sum+1 = 50019 [08:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 33 21.08.2024 08:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140016 ФПД: 79381573236562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082719&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140016&fm=79381573236562&tin=02508201610067®Number=0000000000092569&sum=50000 [08:27:18]StoreToDocumentArchive [08:27:18]shift 454 fd 140016 [08:27:18]save to /storage/0454/doc_00140016 [08:27:18]save last doc name /storage/0454/doc_00140016 to /storage/kkm_last_doc_name [08:27:18]save OK [08:27:18]Clear old archive folders... [08:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:27:18]tlvbuf is 00A3CD00 [08:27:18]SAM_PROTO_ClearQueue [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 09 00 00 [08:27:18]Write to MH i2c: E2 08 00 DB 20 80 09 00 00 00 00 00 00 6D [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 DB 20 00 90 00 6F [08:27:18]RAPDU: 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_ClearQueue done [08:27:18]KKMCreateOFDPacket [08:27:18]OFDProtocolAddRootSTLVToBuf [08:27:18]FM_MakeSignedData [08:27:18]FM_MakeSignedData [08:27:18]SAM_PROTO_SignData [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 0D 01 02 [08:27:18]Write to MH i2c: E2 08 00 DC 20 80 0D 01 02 00 00 00 00 75 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 DC 20 00 90 00 70 [08:27:18]RAPDU: 90 00 [08:27:18]wFMCommunicate OK [08:27:18]wFMCommunicate request_size=253 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E7 A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 22 02 00 35 04 06 00 48 32 76 79 77 52 [08:27:18]Write to MH i2c: E2 00 01 DD 20 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E7 A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 22 02 00 35 04 06 00 48 32 76 79 77 52 00 00 72 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 03 00 DD 20 00 90 00 71 [08:27:18]RAPDU: 90 00 [08:27:18]wFMCommunicate OK [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 0D 03 02 [08:27:18]Write to MH i2c: E2 08 00 DE 20 80 0D 03 02 00 00 00 00 79 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0B 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0B 00 DE 20 00 15 CF AF C2 63 ED 56 CB 90 00 40 [08:27:18]RAPDU: 15 CF AF C2 63 ED 56 CB 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_SignData done [08:27:18]FM_MakeSignedData done [08:27:18]CreateOFDProtocolMessage [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 11 00 00 [08:27:18]Write to MH i2c: E2 08 00 DF 20 80 11 00 00 00 00 00 00 79 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 17 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 17 00 DF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [08:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:27:18]wFMCommunicate OK [08:27:18]CreateOFDProtocolMessage done [08:27:18]OFDSenderStorePacket 140016 [08:27:18]StoreOFDPacket docnum=140016 [08:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 33 30 00 01 95 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E7 A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 22 02 00 35 04 06 00 48 32 76 79 77 52 15 CF AF C2 63 ED 56 CB [08:27:18]CheckFolder [08:27:18]dirname=/storage/ofd_packets [08:27:18]CheckFolder done [08:27:18]ProducePacketName [08:27:18]name=ofd_packets/00140016 [08:27:18]NVStorageSaveData ofd_packets/00140016 [08:27:18]File name is /storage/ofd_packets/00140016 [08:27:18]Write 294 bytes [08:27:18]NVStorageSaveData done [08:27:18]OFDSenderStorePacket done [08:27:18]KKMCreateOFDPacket done [08:27:18]NVStorageSaveData kkm_last_timestamp [08:27:18]File name is /storage/kkm_last_timestamp [08:27:18]Write 4 bytes [08:27:18]NVStorageSaveData done [08:27:18]ExternCall_PrintAddStr [08:27:18]wPrintStart [08:27:18]Write to MH i2c: 01 00 00 E0 20 00 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: 01 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: 01 07 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: 01 07 00 E0 20 00 00 00 00 00 FF 0F 15 [08:27:18]RasterBufferAndPrint [08:27:18]line Счет N : (1)593870 [08:27:18]line ИНН: 02508201610067 [08:27:18]line Контрольно-Кассовый Чек [08:27:18]line ПРОДАЖА [08:27:18]line ТРК (МРК, ГНК) : 33 [08:27:18]line Товар: 2710124130 [08:27:18]line SU-92 [08:27:18]line 7.270 * 68.80 [08:27:18]line = 500.18 [08:27:18]line НДС 12% НСП 1% [08:27:18]line > о реализуемом товаре [08:27:18]line ОКРУГЛЕНИЕ: -0.18 [08:27:18]line ИТОГО: 500.00 [08:27:18]line Внесено: 500.00 [08:27:18]line СДАЧА: 0.00 [08:27:18]line НСП 1% : 4.43 [08:27:18]line НДС 12% : 53.12 [08:27:18]line Наличными: 500.00 [08:27:18]line Безнал.: 0.00 [08:27:18]line Место: АЗС № 136 "Партнер Нефть" [08:27:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:27:18]line СНО: Общий режим [08:27:18]line Чек 33 21.08.2024 08:27 [08:27:18]line Смена: 454 ФФД: 1.0 [08:27:18]line ЗНМ: 0300000067 [08:27:18]line РНМ: 0000000000092569 [08:27:18]line Версия ККМ: 001 [08:27:18]line ФМ: 0000000000871776 [08:27:18]line ФД: 140016 [08:27:18]line ФПД: 79381573236562 [08:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T082719&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140016&fm=79381573236562&tin=02508201610067®Number=0000000000092569&sum=50000 [08:27:19]OFD Sender: Processing packet 140016 [packets to send 137, broken 136] [08:27:19]ProducePacketName [08:27:19]name=ofd_packets/00140016 [08:27:19]OFD Sender: To server: pG, [08:27:19]CommunicateWithHost lk.salyk.kg:30040 [08:27:19]ConnectInit lk.salyk.kg [08:27:19]written 0, free lines is 4095 [08:27:19]Connected sock=10 [08:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 33 30 00 01 95 44 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E7 A4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 22 02 00 35 04 06 00 48 32 76 79 77 52 15 CF AF C2 63 ED 56 CB [08:27:19]Write to MH i2c: 01 00 00 0B 21 2C [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: 01 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: 01 07 00 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: 01 07 00 0B 21 00 00 00 00 00 BF 0C FE [08:27:19]RasterBufferAndPrint [08:27:19]line [08:27:19]line [08:27:19]line [08:27:19]line [08:27:19]line [08:27:19]written 0, free lines is 3269 [08:27:19]MH_Cut [08:27:19]Write to MH i2c: D1 01 00 12 21 01 05 [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: D1 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: D1 01 00 [08:27:19]MH_I2C_Read... [08:27:19]Read from MH i2c: D1 01 00 12 21 00 04 [08:27:19]Write to MH i2c: 01 00 00 13 21 34 [08:27:19]Write i2c OK [08:27:19]MH_I2C_Read... [08:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B0 60 47 00 4D 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 37 36 10 04 04 00 F0 22 02 00 F4 03 04 00 79 4B C5 66 B6 04 01 00 00 38 47 A8 DB DE 85 66 24 [08:27:19]CommunicateWithHost err = 0 [08:27:19]CheckOFDResponse [08:27:19]1017 (14) - 77093643461234 [08:27:19]1041 (16) - 0000000000871776 [08:27:19]1040 (4) - 140016 [08:27:19]1012 (4) - 21.08.2024 02:05 [08:27:19]1206 (1) - 0 [08:27:19]OFD Sender: Remove packet 140016 [08:27:19]ProducePacketName [08:27:19]name=ofd_packets/00140016 [08:27:19]NVStorageDeleteData [08:27:20]OFD Sender: No OFD packet to send [08:27:20]*** Cut start [08:27:20]*** Partial cut [08:27:20]*** CUTSNS_PIN = 1 [08:27:20]*** CUTSNS_PIN = 0 [08:27:20]*** Brake cut motor [08:27:20]Read from MH i2c: 01 [08:27:20]MH_I2C_Read... [08:27:20]*** Stop cut motor [08:27:20]*** Cut end [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 13 21 00 00 00 00 00 FF 0F 49 [08:27:20]process_action close_receipt done [08:27:20]requested_data is exist [08:27:20]produce_requested_data [08:27:20]requested_item fm.sn is exist - process it [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 14 21 80 11 00 00 00 00 00 00 AF [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 14 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [08:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:27:20]wFMCommunicate OK [08:27:20]requested_item fd.num is exist - process it [08:27:20]SAM_PROTO_GetFieldsCounters [08:27:20]wFMCommunicate request_size=4 [08:27:20]MH_SAM_APDU [08:27:20]CAPDU: 80 13 00 00 [08:27:20]Write to MH i2c: E2 08 00 15 21 80 13 00 00 00 00 00 00 B2 [08:27:20]Write i2c OK [08:27:20]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 62 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 62 00 15 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [08:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:21]wFMCommunicate OK [08:27:21]SAM_PROTO_GetFieldsCounters done [08:27:21]requested_item shift.num is exist - process it [08:27:21]requested_item shift.opened is exist - process it [08:27:21]req_shift_opened [08:27:21]FM_GetShiftState [08:27:21]SAM_PROTO_GetShiftState [08:27:21]wFMCommunicate request_size=4 [08:27:21]MH_SAM_APDU [08:27:21]CAPDU: 80 13 01 00 [08:27:21]Write to MH i2c: E2 08 00 16 21 80 13 01 00 00 00 00 00 B4 [08:27:21]Write i2c OK [08:27:21]MH_I2C_Read... [08:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:21]Read from MH i2c: E2 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 0E 00 [08:27:21]MH_I2C_Read... [08:27:21]Read from MH i2c: E2 0E 00 16 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 34 [08:27:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:27:21]wFMCommunicate OK [08:27:21]SAM_PROTO_GetShiftState done [08:27:21]FM_GetShiftState done [08:27:21]req_shift_opened done [08:27:21]requested_item shift.open_date is exist - process it [08:27:21]req_shift_open_date [08:27:21]req_shift_open_date done [08:27:21]produce_requested_data done [08:27:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140016,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:27:21]process_action_free close_receipt [08:27:21]json_value_free [08:27:21]json_value_free done [08:27:21]process_json_proto returns [08:27:21]Send response to host [08:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140016,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:27:21]free response buf [08:27:21]execute_script done [08:27:21]execute_script returns [08:27:21]free content buf [08:27:21]Sock 7.Close socket [08:27:21]Sock 7.Thread stoped [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:46]int [08:30:46]Write to MH i2c: 01 00 00 17 21 38 [08:30:46]*** FLAG_PRN_KEY set [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 17 21 00 08 00 00 00 FF 0F 55 [08:30:46]state=0 [08:30:46]Key pressed [08:30:46]Feed [08:30:46]Write to MH i2c: D8 00 00 18 21 10 [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: D8 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: D8 01 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: D8 01 00 18 21 00 11 [08:30:46]int [08:30:46]Write to MH i2c: 01 00 00 19 21 3A [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 19 21 00 48 00 00 00 3C 00 C5 [08:30:46]state=2 [08:30:46]Key pressed [08:30:46]int [08:30:46]Write to MH i2c: 01 00 00 1A 21 3B [08:30:46]*** FLAG_PRN_KEY reset [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: 01 07 00 1A 21 00 00 00 00 00 F6 0F 47 [08:30:46]state=2 [08:30:46]Stop feed [08:30:50]OFD Sender: No OFD packet to send [08:30:55]accept exits with 9 [08:30:55]New connection [08:30:55]New thread 3066764644 created [08:30:55]Thread 3066908004 joined [08:30:55]Waiting for new connection... [08:30:55] Sock 9.Parse request [08:30:55]Sock 9.Check first char [08:30:55]Sock 9.First char is OK [08:30:55]request: POST /json_proto HTTP/1.0 [08:30:55]Method: POST [08:30:55]URL: /json_proto [08:30:55]Method is POST - this is cgi request [08:30:55]url: /json_proto [08:30:55]query_string will be loaded in cgi processing [08:30:55]execute_cgi json_proto POST (null) [08:30:55]execute_cgi path=json_proto method=POST [08:30:55]POST find Content-Length [08:30:55]Host: 172.17.45.67:8080 [08:30:55]Content-Length: 678 [08:30:55]Content-Type: application/json [08:30:55] [08:30:55]POST finish read [08:30:55]Found Content-Length = 678 [08:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:55]execute_script... [08:30: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)593871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:55]POST & json_proto [08:30:55]process_json_proto [08:30:55]json parsed OK: [08:30:55]protocol is kg_v1.0 [08:30:55]action value=close_receipt [08:30:55]process_action close_receipt [08:30:55]cmd_close_receipt [08:30:55]MH_GetDate [08:30:55]Write to MH i2c: F0 00 00 1B 21 2B [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 1B 21 00 C2 A5 C5 66 5F 7F 2B 66 35 [08:30:55]GetLastDocTimeStamp 1724228839 [08:30:55]current date 1724229058 [08:30:55]FM_GetShiftState [08:30:55]SAM_PROTO_GetShiftState [08:30:55]wFMCommunicate request_size=4 [08:30:55]MH_SAM_APDU [08:30:55]CAPDU: 80 13 01 00 [08:30:55]Write to MH i2c: E2 08 00 1C 21 80 13 01 00 00 00 00 00 BA [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:55]Read from MH i2c: E2 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 1C 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3A [08:30:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:30:55]wFMCommunicate OK [08:30:55]SAM_PROTO_GetShiftState done [08:30:55]FM_GetShiftState done [08:30:55]opened in 1724200467 [08:30:55]opened+sec_in_day 1724286867 [08:30:55]quantity*price = 70037 [08:30:55]sum+1 = 70038 [08:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 34 21.08.2024 08:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140017 ФПД: 249505117739594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083058&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140017&fm=249505117739594&tin=02508201610067®Number=0000000000092569&sum=70000 [08:30:56]StoreToDocumentArchive [08:30:56]shift 454 fd 140017 [08:30:56]save to /storage/0454/doc_00140017 [08:30:56]save last doc name /storage/0454/doc_00140017 to /storage/kkm_last_doc_name [08:30:56]save OK [08:30:56]Clear old archive folders... [08:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:56]tlvbuf is B6F4A1E0 [08:30:56]SAM_PROTO_ClearQueue [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 09 00 00 [08:30:56]Write to MH i2c: E2 08 00 29 21 80 09 00 00 00 00 00 00 BC [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 29 21 00 90 00 BE [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]SAM_PROTO_ClearQueue done [08:30:56]KKMCreateOFDPacket [08:30:56]OFDProtocolAddRootSTLVToBuf [08:30:56]FM_MakeSignedData [08:30:56]FM_MakeSignedData [08:30:56]SAM_PROTO_SignData [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 0D 01 02 [08:30:56]Write to MH i2c: E2 08 00 2A 21 80 0D 01 02 00 00 00 00 C4 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 2A 21 00 90 00 BF [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]wFMCommunicate request_size=255 [08:30:56]MH_SAM_APDU [08:30: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C2 A5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 22 02 00 35 04 06 00 E2 [08:30:56]Write to MH i2c: E2 02 01 2B 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C2 A5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 22 02 00 35 04 06 00 E2 00 00 A6 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]wFMCommunicate request_size=10 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 0D 02 02 05 EC 6F E9 9A 4A [08:30:56]Write to MH i2c: E2 0D 00 2C 21 80 0D 02 02 05 00 EC 6F E9 9A 4A 00 00 F9 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [08:30:56]RAPDU: 90 00 [08:30:56]wFMCommunicate OK [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 0D 03 02 [08:30:56]Write to MH i2c: E2 08 00 2D 21 80 0D 03 02 00 00 00 00 C9 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:56]Read from MH i2c: E2 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0B 00 [08:30:56]MH_I2C_Read... [08:30:56]Read from MH i2c: E2 0B 00 2D 21 00 A3 FB 85 EF 15 3A BC 7F 90 00 66 [08:30:56]RAPDU: A3 FB 85 EF 15 3A BC 7F 90 00 [08:30:56]wFMCommunicate OK [08:30:56]SAM_PROTO_SignData done [08:30:56]FM_MakeSignedData done [08:30:56]CreateOFDProtocolMessage [08:30:56]wFMCommunicate request_size=4 [08:30:56]MH_SAM_APDU [08:30:56]CAPDU: 80 11 00 00 [08:30:56]Write to MH i2c: E2 08 00 2E 21 80 11 00 00 00 00 00 00 C9 [08:30:56]Write i2c OK [08:30:56]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 2E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [08:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:57]wFMCommunicate OK [08:30:57]CreateOFDProtocolMessage done [08:30:57]OFDSenderStorePacket 140017 [08:30:57]StoreOFDPacket docnum=140017 [08:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 C1 07 01 4C 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C2 A5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 22 02 00 35 04 06 00 E2 EC 6F E9 9A 4A A3 FB 85 EF 15 3A BC 7F [08:30:57]CheckFolder [08:30:57]dirname=/storage/ofd_packets [08:30:57]CheckFolder done [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00140017 [08:30:57]NVStorageSaveData ofd_packets/00140017 [08:30:57]File name is /storage/ofd_packets/00140017 [08:30:57]Write 301 bytes [08:30:57]NVStorageSaveData done [08:30:57]OFDSenderStorePacket done [08:30:57]KKMCreateOFDPacket done [08:30:57]NVStorageSaveData kkm_last_timestamp [08:30:57]File name is /storage/kkm_last_timestamp [08:30:57]Write 4 bytes [08:30:57]NVStorageSaveData done [08:30:57]ExternCall_PrintAddStr [08:30:57]wPrintStart [08:30:57]Write to MH i2c: 01 00 00 2F 21 50 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 2F 21 00 00 00 00 00 FF 0F 65 [08:30:57]RasterBufferAndPrint [08:30:57]line Счет N : (1)593871 [08:30:57]line ИНН: 02508201610067 [08:30:57]line Контрольно-Кассовый Чек [08:30:57]line ПРОДАЖА [08:30:57]line ТРК (МРК, ГНК) : 42 [08:30:57]line Товар: 2710124130 [08:30:57]line Аи-92-К-5 [08:30:57]line 10.330 * 67.80 [08:30:57]line = 700.37 [08:30:57]line НДС 12% НСП 1% [08:30:57]line > о реализуемом товаре [08:30:57]line ОКРУГЛЕНИЕ: -0.37 [08:30:57]line ИТОГО: 700.00 [08:30:57]line Внесено: 700.00 [08:30:57]line СДАЧА: 0.00 [08:30:57]line НСП 1% : 6.20 [08:30:57]line НДС 12% : 74.38 [08:30:57]line Наличными: 700.00 [08:30:57]line Безнал.: 0.00 [08:30:57]line Место: АЗС № 136 "Партнер Нефть" [08:30:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:30:57]line СНО: Общий режим [08:30:57]line Чек 34 21.08.2024 08:30 [08:30:57]line Смена: 454 ФФД: 1.0 [08:30:57]line ЗНМ: 0300000067 [08:30:57]line РНМ: 0000000000092569 [08:30:57]line Версия ККМ: 001 [08:30:57]line ФМ: 0000000000871776 [08:30:57]line ФД: 140017 [08:30:57]line ФПД: 249505117739594 [08:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083058&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140017&fm=249505117739594&tin=02508201610067®Number=0000000000092569&sum=70000 [08:30:57]OFD Sender: Processing packet 140017 [packets to send 137, broken 136] [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00140017 [08:30:57]OFD Sender: To server: pG, [08:30:57]CommunicateWithHost lk.salyk.kg:30040 [08:30:57]ConnectInit lk.salyk.kg [08:30:57]written 0, free lines is 4095 [08:30:57]Connected sock=7 [08:30: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 37 36 0F 01 00 00 21 C1 07 01 4C 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 C2 A5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F1 22 02 00 35 04 06 00 E2 EC 6F E9 9A 4A A3 FB 85 EF 15 3A BC 7F [08:30: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 37 36 4F 00 00 00 13 B8 47 00 8A 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 37 36 10 04 04 00 F1 22 02 00 F4 03 04 00 53 4C C5 66 B6 04 01 00 00 5A E1 41 54 97 24 E1 30 [08:30:57]CommunicateWithHost err = 0 [08:30:57]CheckOFDResponse [08:30:57]1017 (14) - 77093643461234 [08:30:57]1041 (16) - 0000000000871776 [08:30:57]1040 (4) - 140017 [08:30:57]1012 (4) - 21.08.2024 02:09 [08:30:57]1206 (1) - 0 [08:30:57]OFD Sender: Remove packet 140017 [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00140017 [08:30:57]NVStorageDeleteData [08:30:57]Write to MH i2c: 01 00 00 5A 21 7B [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 C6 0C 54 [08:30:57]RasterBufferAndPrint [08:30:57]line [08:30:57]line [08:30:57]line [08:30:57]line [08:30:57]line [08:30:57]written 0, free lines is 3276 [08:30:57]MH_Cut [08:30:57]Write to MH i2c: D1 01 00 61 21 01 54 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: D1 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: D1 01 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: D1 01 00 61 21 00 53 [08:30:57]Write to MH i2c: 01 00 00 62 21 83 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:58]OFD Sender: No OFD packet to send [08:30:58]*** Cut start [08:30:58]*** Partial cut [08:30:58]*** CUTSNS_PIN = 1 [08:30:58]*** CUTSNS_PIN = 0 [08:30:58]*** Brake cut motor [08:30:59]Read from MH i2c: 01 [08:30:59]MH_I2C_Read... [08:30:59]*** Stop cut motor [08:30:59]*** Cut end [08:30:59]Read from MH i2c: 01 07 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [08:30:59]process_action close_receipt done [08:30:59]requested_data is exist [08:30:59]produce_requested_data [08:30:59]requested_item fm.sn is exist - process it [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 11 00 00 [08:30:59]Write to MH i2c: E2 08 00 63 21 80 11 00 00 00 00 00 00 FE [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 63 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [08:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:30:59]wFMCommunicate OK [08:30:59]requested_item fd.num is exist - process it [08:30:59]SAM_PROTO_GetFieldsCounters [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 00 00 [08:30:59]Write to MH i2c: E2 08 00 64 21 80 13 00 00 00 00 00 00 01 [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 62 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 62 00 64 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F1 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:59]wFMCommunicate OK [08:30:59]SAM_PROTO_GetFieldsCounters done [08:30:59]requested_item shift.num is exist - process it [08:30:59]requested_item shift.opened is exist - process it [08:30:59]req_shift_opened [08:30:59]FM_GetShiftState [08:30:59]SAM_PROTO_GetShiftState [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 01 00 [08:30:59]Write to MH i2c: E2 08 00 65 21 80 13 01 00 00 00 00 00 03 [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 0E 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 0E 00 65 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 83 [08:30:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:30:59]wFMCommunicate OK [08:30:59]SAM_PROTO_GetShiftState done [08:30:59]FM_GetShiftState done [08:30:59]req_shift_opened done [08:30:59]requested_item shift.open_date is exist - process it [08:30:59]req_shift_open_date [08:30:59]req_shift_open_date done [08:30:59]produce_requested_data done [08:30:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140017,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:30:59]process_action_free close_receipt [08:30:59]json_value_free [08:30:59]json_value_free done [08:30:59]process_json_proto returns [08:30:59]Send response to host [08:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140017,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:30:59]free response buf [08:30:59]execute_script done [08:30:59]execute_script returns [08:30:59]free content buf [08:30:59]Sock 9.Close socket [08:30:59]Sock 9.Thread stoped [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:40]accept exits with 10 [08:32:40]New connection [08:32:40]New thread 3066908004 created [08:32:40]Thread 3066764644 joined [08:32:40]Waiting for new connection... [08:32:40] Sock 10.Parse request [08:32:40]Sock 10.Check first char [08:32:40]Sock 10.First char is OK [08:32:40]request: POST /json_proto HTTP/1.0 [08:32:40]Method: POST [08:32:40]URL: /json_proto [08:32:40]Method is POST - this is cgi request [08:32:40]url: /json_proto [08:32:40]query_string will be loaded in cgi processing [08:32:40]execute_cgi json_proto POST (null) [08:32:40]execute_cgi path=json_proto method=POST [08:32:40]POST find Content-Length [08:32:40]Host: 172.17.45.67:8080 [08:32:40]Content-Length: 682 [08:32:40]Content-Type: application/json [08:32:40] [08:32:40]POST finish read [08:32:40]Found Content-Length = 682 [08:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:40]execute_script... [08:32: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)593872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:40]POST & json_proto [08:32:40]process_json_proto [08:32:40]json parsed OK: [08:32:40]protocol is kg_v1.0 [08:32:40]action value=close_receipt [08:32:40]process_action close_receipt [08:32:40]cmd_close_receipt [08:32:40]MH_GetDate [08:32:40]Write to MH i2c: F0 00 00 66 21 76 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 09 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: F0 09 00 66 21 00 2B A6 C5 66 5F 7F 2B 66 EA [08:32:40]GetLastDocTimeStamp 1724229058 [08:32:40]current date 1724229163 [08:32:40]FM_GetShiftState [08:32:40]SAM_PROTO_GetShiftState [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 13 01 00 [08:32:40]Write to MH i2c: E2 08 00 67 21 80 13 01 00 00 00 00 00 05 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0E 00 67 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 85 [08:32:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_GetShiftState done [08:32:40]FM_GetShiftState done [08:32:40]opened in 1724200467 [08:32:40]opened+sec_in_day 1724286867 [08:32:40]quantity*price = 100021 [08:32:40]sum+1 = 100023 [08:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 35 21.08.2024 08:32 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140018 ФПД: 248320910111704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140018&fm=248320910111704&tin=02508201610067®Number=0000000000092569&sum=100000 [08:32:41]StoreToDocumentArchive [08:32:41]shift 454 fd 140018 [08:32:41]save to /storage/0454/doc_00140018 [08:32:41]save last doc name /storage/0454/doc_00140018 to /storage/kkm_last_doc_name [08:32:41]save OK [08:32:41]Clear old archive folders... [08:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:41]tlvbuf is 00A80CD0 [08:32:41]SAM_PROTO_ClearQueue [08:32:41]wFMCommunicate request_size=4 [08:32:41]MH_SAM_APDU [08:32:41]CAPDU: 80 09 00 00 [08:32:41]Write to MH i2c: E2 08 00 74 21 80 09 00 00 00 00 00 00 07 [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 74 21 00 90 00 09 [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_ClearQueue done [08:32:42]KKMCreateOFDPacket [08:32:42]OFDProtocolAddRootSTLVToBuf [08:32:42]FM_MakeSignedData [08:32:42]FM_MakeSignedData [08:32:42]SAM_PROTO_SignData [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 01 02 [08:32:42]Write to MH i2c: E2 08 00 75 21 80 0D 01 02 00 00 00 00 0F [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 75 21 00 90 00 0A [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=255 [08:32:42]MH_SAM_APDU [08:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 22 02 00 35 04 06 00 E1 [08:32:42]Write to MH i2c: E2 02 01 76 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 22 02 00 35 04 06 00 E1 00 00 A2 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=10 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 02 02 05 D8 B7 A3 33 D8 [08:32:42]Write to MH i2c: E2 0D 00 77 21 80 0D 02 02 05 00 D8 B7 A3 33 D8 00 00 59 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [08:32:42]RAPDU: 90 00 [08:32:42]wFMCommunicate OK [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 0D 03 02 [08:32:42]Write to MH i2c: E2 08 00 78 21 80 0D 03 02 00 00 00 00 14 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 0B 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 0B 00 78 21 00 EA 27 41 5F 10 BC 8E B1 90 00 D1 [08:32:42]RAPDU: EA 27 41 5F 10 BC 8E B1 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_SignData done [08:32:42]FM_MakeSignedData done [08:32:42]CreateOFDProtocolMessage [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 11 00 00 [08:32:42]Write to MH i2c: E2 08 00 79 21 80 11 00 00 00 00 00 00 14 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 79 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [08:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:32:42]wFMCommunicate OK [08:32:42]CreateOFDProtocolMessage done [08:32:42]OFDSenderStorePacket 140018 [08:32:42]StoreOFDPacket docnum=140018 [08:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B5 A9 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 22 02 00 35 04 06 00 E1 D8 B7 A3 33 D8 EA 27 41 5F 10 BC 8E B1 [08:32:42]CheckFolder [08:32:42]dirname=/storage/ofd_packets [08:32:42]CheckFolder done [08:32:42]ProducePacketName [08:32:42]name=ofd_packets/00140018 [08:32:42]NVStorageSaveData ofd_packets/00140018 [08:32:42]File name is /storage/ofd_packets/00140018 [08:32:42]Write 301 bytes [08:32:42]NVStorageSaveData done [08:32:42]OFDSenderStorePacket done [08:32:42]KKMCreateOFDPacket done [08:32:42]NVStorageSaveData kkm_last_timestamp [08:32:42]File name is /storage/kkm_last_timestamp [08:32:42]Write 4 bytes [08:32:42]NVStorageSaveData done [08:32:42]ExternCall_PrintAddStr [08:32:42]wPrintStart [08:32:42]Write to MH i2c: 01 00 00 7A 21 9B [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 7A 21 00 00 00 00 00 FF 0F B0 [08:32:42]RasterBufferAndPrint [08:32:42]line Счет N : (1)593872 [08:32:42]line ИНН: 02508201610067 [08:32:42]line Контрольно-Кассовый Чек [08:32:42]line ПРОДАЖА [08:32:42]line ТРК (МРК, ГНК) : 61 [08:32:42]line Товар: 2710124500 [08:32:42]line Аи-95-К-5 [08:32:42]line 13.480 * 74.20 [08:32:42]line = 1000.22 [08:32:42]line НДС 12% НСП 1% [08:32:42]line > о реализуемом товаре [08:32:42]line ОКРУГЛЕНИЕ: -0.22 [08:32:42]line ИТОГО: 1000.00 [08:32:42]line Внесено: 1000.00 [08:32:42]line СДАЧА: 0.00 [08:32:42]line НСП 1% : 8.85 [08:32:42]line НДС 12% : 106.22 [08:32:42]line Наличными: 1000.00 [08:32:42]line Безнал.: 0.00 [08:32:42]line Место: АЗС № 136 "Партнер Нефть" [08:32:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:32:42]line СНО: Общий режим [08:32:42]line Чек 35 21.08.2024 08:32 [08:32:42]line Смена: 454 ФФД: 1.0 [08:32:42]line ЗНМ: 0300000067 [08:32:42]line РНМ: 0000000000092569 [08:32:42]line Версия ККМ: 001 [08:32:42]line ФМ: 0000000000871776 [08:32:42]line ФД: 140018 [08:32:42]line ФПД: 248320910111704 [08:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140018&fm=248320910111704&tin=02508201610067®Number=0000000000092569&sum=100000 [08:32:42]written 0, free lines is 4095 [08:32:42]OFD Sender: Processing packet 140018 [packets to send 137, broken 136] [08:32:42]ProducePacketName [08:32:42]name=ofd_packets/00140018 [08:32:42]OFD Sender: To server: pG, [08:32:42]CommunicateWithHost lk.salyk.kg:30040 [08:32:42]ConnectInit lk.salyk.kg [08:32:42]Connected sock=11 [08:32: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 37 36 0F 01 00 00 B5 A9 07 01 F1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 22 02 00 35 04 06 00 E1 D8 B7 A3 33 D8 EA 27 41 5F 10 BC 8E B1 [08:32:42]Write to MH i2c: 01 00 00 A5 21 C6 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 A5 21 00 00 00 00 00 C3 0C 9C [08:32:42]RasterBufferAndPrint [08:32:42]line [08:32:42]line [08:32:42]line [08:32:42]line [08:32:42]line [08:32:42]written 0, free lines is 3272 [08:32:42]MH_Cut [08:32:42]Write to MH i2c: D1 01 00 AC 21 01 9F [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: D1 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: D1 01 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: D1 01 00 AC 21 00 9E [08:32:42]Write to MH i2c: 01 00 00 AD 21 CE [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32: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 37 36 4F 00 00 00 14 62 47 00 C6 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 22 02 00 F4 03 04 00 BC 4C C5 66 B6 04 01 00 00 77 3B 51 5A 1B D7 20 D3 [08:32:43]CommunicateWithHost err = 0 [08:32:43]CheckOFDResponse [08:32:43]1017 (14) - 77093643461234 [08:32:43]1041 (16) - 0000000000871776 [08:32:43]1040 (4) - 140018 [08:32:43]1012 (4) - 21.08.2024 02:11 [08:32:43]1206 (1) - 0 [08:32:43]OFD Sender: Remove packet 140018 [08:32:43]ProducePacketName [08:32:43]name=ofd_packets/00140018 [08:32:43]NVStorageDeleteData [08:32:43]OFD Sender: No OFD packet to send [08:32:43]*** Cut start [08:32:43]*** Partial cut [08:32:43]*** CUTSNS_PIN = 1 [08:32:43]*** CUTSNS_PIN = 0 [08:32:43]*** Brake cut motor [08:32:44]Read from MH i2c: 01 [08:32:44]MH_I2C_Read... [08:32:44]*** Stop cut motor [08:32:44]*** Cut end [08:32:44]Read from MH i2c: 01 07 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FF 0F E3 [08:32:44]process_action close_receipt done [08:32:44]requested_data is exist [08:32:44]produce_requested_data [08:32:44]requested_item fm.sn is exist - process it [08:32:44]wFMCommunicate request_size=4 [08:32:44]MH_SAM_APDU [08:32:44]CAPDU: 80 11 00 00 [08:32:44]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:44]Read from MH i2c: E2 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 17 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 17 00 AE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [08:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:32:44]wFMCommunicate OK [08:32:44]requested_item fd.num is exist - process it [08:32:44]SAM_PROTO_GetFieldsCounters [08:32:44]wFMCommunicate request_size=4 [08:32:44]MH_SAM_APDU [08:32:44]CAPDU: 80 13 00 00 [08:32:44]Write to MH i2c: E2 08 00 AF 21 80 13 00 00 00 00 00 00 4C [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:44]Read from MH i2c: E2 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 62 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 62 00 AF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:44]wFMCommunicate OK [08:32:44]SAM_PROTO_GetFieldsCounters done [08:32:44]requested_item shift.num is exist - process it [08:32:44]requested_item shift.opened is exist - process it [08:32:44]req_shift_opened [08:32:44]FM_GetShiftState [08:32:44]SAM_PROTO_GetShiftState [08:32:44]wFMCommunicate request_size=4 [08:32:44]MH_SAM_APDU [08:32:44]CAPDU: 80 13 01 00 [08:32:44]Write to MH i2c: E2 08 00 B0 21 80 13 01 00 00 00 00 00 4E [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:44]Read from MH i2c: E2 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 0E 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: E2 0E 00 B0 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CE [08:32:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:32:44]wFMCommunicate OK [08:32:44]SAM_PROTO_GetShiftState done [08:32:44]FM_GetShiftState done [08:32:44]req_shift_opened done [08:32:44]requested_item shift.open_date is exist - process it [08:32:44]req_shift_open_date [08:32:44]req_shift_open_date done [08:32:44]produce_requested_data done [08:32:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140018,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:32:44]process_action_free close_receipt [08:32:44]json_value_free [08:32:44]json_value_free done [08:32:44]process_json_proto returns [08:32:44]Send response to host [08:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140018,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:32:44]free response buf [08:32:44]execute_script done [08:32:44]execute_script returns [08:32:44]free content buf [08:32:44]Sock 10.Close socket [08:32:44]Sock 10.Thread stoped [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:40]accept exits with 7 [08:33:40]New connection [08:33:40]New thread 3066764644 created [08:33:40]Thread 3066908004 joined [08:33:40]Waiting for new connection... [08:33:40] Sock 7.Parse request [08:33:40]Sock 7.Check first char [08:33:40]Sock 7.First char is OK [08:33:40]request: POST /json_proto HTTP/1.0 [08:33:40]Method: POST [08:33:40]URL: /json_proto [08:33:40]Method is POST - this is cgi request [08:33:40]url: /json_proto [08:33:40]query_string will be loaded in cgi processing [08:33:40]execute_cgi json_proto POST (null) [08:33:40]execute_cgi path=json_proto method=POST [08:33:40]POST find Content-Length [08:33:40]Host: 172.17.45.67:8080 [08:33:40]Content-Length: 682 [08:33:40]Content-Type: application/json [08:33:40] [08:33:40]POST finish read [08:33:40]Found Content-Length = 682 [08:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:40]execute_script... [08:33:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:40]POST & json_proto [08:33:40]process_json_proto [08:33:40]json parsed OK: [08:33:40]protocol is kg_v1.0 [08:33:40]action value=close_receipt [08:33:40]process_action close_receipt [08:33:40]cmd_close_receipt [08:33:40]MH_GetDate [08:33:40]Write to MH i2c: F0 00 00 B1 21 C1 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: F0 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: F0 09 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: F0 09 00 B1 21 00 67 A6 C5 66 5F 7F 2B 66 71 [08:33:40]GetLastDocTimeStamp 1724229163 [08:33:40]current date 1724229223 [08:33:40]FM_GetShiftState [08:33:40]SAM_PROTO_GetShiftState [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 13 01 00 [08:33:40]Write to MH i2c: E2 08 00 B2 21 80 13 01 00 00 00 00 00 50 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0E 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0E 00 B2 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D0 [08:33:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:33:40]wFMCommunicate OK [08:33:40]SAM_PROTO_GetShiftState done [08:33:40]FM_GetShiftState done [08:33:40]opened in 1724200467 [08:33:40]opened+sec_in_day 1724286867 [08:33:40]quantity*price = 100005 [08:33:40]sum+1 = 100006 [08:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 36 21.08.2024 08:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140019 ФПД: 279305412462403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083343&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140019&fm=279305412462403&tin=02508201610067®Number=0000000000092569&sum=100000 [08:33:41]StoreToDocumentArchive [08:33:41]shift 454 fd 140019 [08:33:41]save to /storage/0454/doc_00140019 [08:33:41]save last doc name /storage/0454/doc_00140019 to /storage/kkm_last_doc_name [08:33:41]save OK [08:33:41]Clear old archive folders... [08:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:41]tlvbuf is 00A56630 [08:33:41]SAM_PROTO_ClearQueue [08:33:41]wFMCommunicate request_size=4 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 09 00 00 [08:33:41]Write to MH i2c: E2 08 00 BF 21 80 09 00 00 00 00 00 00 52 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:41]Read from MH i2c: E2 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 BF 21 00 90 00 54 [08:33:41]RAPDU: 90 00 [08:33:41]wFMCommunicate OK [08:33:41]SAM_PROTO_ClearQueue done [08:33:41]KKMCreateOFDPacket [08:33:41]OFDProtocolAddRootSTLVToBuf [08:33:41]FM_MakeSignedData [08:33:41]FM_MakeSignedData [08:33:41]SAM_PROTO_SignData [08:33:41]wFMCommunicate request_size=4 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 0D 01 02 [08:33:41]Write to MH i2c: E2 08 00 C0 21 80 0D 01 02 00 00 00 00 5A [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 [08:33:41]MH_I2C_Read... [08:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:41]Read from MH i2c: E2 03 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 C0 21 00 90 00 55 [08:33:41]RAPDU: 90 00 [08:33:41]wFMCommunicate OK [08:33:41]wFMCommunicate request_size=255 [08:33:41]MH_SAM_APDU [08:33: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 22 02 00 35 04 06 00 FE [08:33:41]Write to MH i2c: E2 02 01 C1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 22 02 00 35 04 06 00 FE 00 00 AA [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:41]Read from MH i2c: E2 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 C1 21 00 90 00 56 [08:33:41]RAPDU: 90 00 [08:33:41]wFMCommunicate OK [08:33:41]wFMCommunicate request_size=10 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 0D 02 02 05 06 DB E4 C7 43 [08:33:41]Write to MH i2c: E2 0D 00 C2 21 80 0D 02 02 05 00 06 DB E4 C7 43 00 00 36 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:41]Read from MH i2c: E2 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [08:33:41]RAPDU: 90 00 [08:33:41]wFMCommunicate OK [08:33:41]wFMCommunicate request_size=4 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 0D 03 02 [08:33:41]Write to MH i2c: E2 08 00 C3 21 80 0D 03 02 00 00 00 00 5F [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:42]Read from MH i2c: E2 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 0B 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 0B 00 C3 21 00 F8 55 75 63 73 DE 39 67 90 00 76 [08:33:42]RAPDU: F8 55 75 63 73 DE 39 67 90 00 [08:33:42]wFMCommunicate OK [08:33:42]SAM_PROTO_SignData done [08:33:42]FM_MakeSignedData done [08:33:42]CreateOFDProtocolMessage [08:33:42]wFMCommunicate request_size=4 [08:33:42]MH_SAM_APDU [08:33:42]CAPDU: 80 11 00 00 [08:33:42]Write to MH i2c: E2 08 00 C4 21 80 11 00 00 00 00 00 00 5F [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:42]Read from MH i2c: E2 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 17 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 17 00 C4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [08:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:42]wFMCommunicate OK [08:33:42]CreateOFDProtocolMessage done [08:33:42]OFDSenderStorePacket 140019 [08:33:42]StoreOFDPacket docnum=140019 [08:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 51 07 01 9A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 22 02 00 35 04 06 00 FE 06 DB E4 C7 43 F8 55 75 63 73 DE 39 67 [08:33:42]CheckFolder [08:33:42]dirname=/storage/ofd_packets [08:33:42]CheckFolder done [08:33:42]ProducePacketName [08:33:42]name=ofd_packets/00140019 [08:33:42]NVStorageSaveData ofd_packets/00140019 [08:33:42]File name is /storage/ofd_packets/00140019 [08:33:42]Write 301 bytes [08:33:42]NVStorageSaveData done [08:33:42]OFDSenderStorePacket done [08:33:42]KKMCreateOFDPacket done [08:33:42]NVStorageSaveData kkm_last_timestamp [08:33:42]File name is /storage/kkm_last_timestamp [08:33:42]Write 4 bytes [08:33:42]NVStorageSaveData done [08:33:42]ExternCall_PrintAddStr [08:33:42]wPrintStart [08:33:42]Write to MH i2c: 01 00 00 C5 21 E6 [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 07 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 FF 0F FB [08:33:42]RasterBufferAndPrint [08:33:42]line Счет N : (1)593874 [08:33:42]line ИНН: 02508201610067 [08:33:42]line Контрольно-Кассовый Чек [08:33:42]line ПРОДАЖА [08:33:42]line ТРК (МРК, ГНК) : 42 [08:33:42]line Товар: 2710124130 [08:33:42]line Аи-92-К-5 [08:33:42]line 14.750 * 67.80 [08:33:42]line = 1000.05 [08:33:42]line НДС 12% НСП 1% [08:33:42]line > о реализуемом товаре [08:33:42]line ОКРУГЛЕНИЕ: -0.05 [08:33:42]line ИТОГО: 1000.00 [08:33:42]line Внесено: 1000.00 [08:33:42]line СДАЧА: 0.00 [08:33:42]line НСП 1% : 8.85 [08:33:42]line НДС 12% : 106.20 [08:33:42]line Наличными: 1000.00 [08:33:42]line Безнал.: 0.00 [08:33:42]line Место: АЗС № 136 "Партнер Нефть" [08:33:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:33:42]line СНО: Общий режим [08:33:42]line Чек 36 21.08.2024 08:33 [08:33:42]line Смена: 454 ФФД: 1.0 [08:33:42]line ЗНМ: 0300000067 [08:33:42]line РНМ: 0000000000092569 [08:33:42]line Версия ККМ: 001 [08:33:42]line ФМ: 0000000000871776 [08:33:42]line ФД: 140019 [08:33:42]line ФПД: 279305412462403 [08:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083343&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140019&fm=279305412462403&tin=02508201610067®Number=0000000000092569&sum=100000 [08:33:42]OFD Sender: Processing packet 140019 [packets to send 137, broken 136] [08:33:42]ProducePacketName [08:33:42]name=ofd_packets/00140019 [08:33:42]OFD Sender: To server: pG, [08:33:42]CommunicateWithHost lk.salyk.kg:30040 [08:33:42]ConnectInit lk.salyk.kg [08:33:42]written 0, free lines is 4095 [08:33:42]Connected sock=10 [08: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 37 36 0F 01 00 00 56 51 07 01 9A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 67 A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 22 02 00 35 04 06 00 FE 06 DB E4 C7 43 F8 55 75 63 73 DE 39 67 [08: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 37 36 4F 00 00 00 46 C5 47 00 54 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 22 02 00 F4 03 04 00 F8 4C C5 66 B6 04 01 00 00 17 37 29 4B 3D 52 26 4D [08:33:42]CommunicateWithHost err = 0 [08:33:42]CheckOFDResponse [08:33:42]1017 (14) - 77093643461234 [08:33:42]1041 (16) - 0000000000871776 [08:33:42]1040 (4) - 140019 [08:33:42]1012 (4) - 21.08.2024 02:12 [08:33:42]1206 (1) - 0 [08:33:42]OFD Sender: Remove packet 140019 [08:33:42]ProducePacketName [08:33:42]name=ofd_packets/00140019 [08:33:42]NVStorageDeleteData [08:33:42]Write to MH i2c: 01 00 00 F0 21 11 [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 07 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: 01 07 00 F0 21 00 00 00 00 00 BE 0C E2 [08:33:42]RasterBufferAndPrint [08:33:42]line [08:33:42]line [08:33:42]line [08:33:42]line [08:33:42]line [08:33:42]written 0, free lines is 3266 [08:33:42]MH_Cut [08:33:42]Write to MH i2c: D1 01 00 F7 21 01 EA [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: D1 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: D1 01 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: D1 01 00 F7 21 00 E9 [08:33:42]Write to MH i2c: 01 00 00 F8 21 19 [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:43]OFD Sender: No OFD packet to send [08:33:43]*** Cut start [08:33:43]*** Partial cut [08:33:43]*** CUTSNS_PIN = 1 [08:33:43]*** CUTSNS_PIN = 0 [08:33:43]*** Brake cut motor [08:33:44]Read from MH i2c: 01 [08:33:44]MH_I2C_Read... [08:33:44]*** Stop cut motor [08:33:44]*** Cut end [08:33:44]Read from MH i2c: 01 07 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: 01 07 00 F8 21 00 00 00 00 00 FF 0F 2E [08:33:44]process_action close_receipt done [08:33:44]requested_data is exist [08:33:44]produce_requested_data [08:33:44]requested_item fm.sn is exist - process it [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 11 00 00 [08:33:44]Write to MH i2c: E2 08 00 F9 21 80 11 00 00 00 00 00 00 94 [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:44]Read from MH i2c: E2 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 17 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 17 00 F9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [08:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:44]wFMCommunicate OK [08:33:44]requested_item fd.num is exist - process it [08:33:44]SAM_PROTO_GetFieldsCounters [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 13 00 00 [08:33:44]Write to MH i2c: E2 08 00 FA 21 80 13 00 00 00 00 00 00 97 [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:44]Read from MH i2c: E2 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 62 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 62 00 FA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [08:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:44]wFMCommunicate OK [08:33:44]SAM_PROTO_GetFieldsCounters done [08:33:44]requested_item shift.num is exist - process it [08:33:44]requested_item shift.opened is exist - process it [08:33:44]req_shift_opened [08:33:44]FM_GetShiftState [08:33:44]SAM_PROTO_GetShiftState [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 13 01 00 [08:33:44]Write to MH i2c: E2 08 00 FB 21 80 13 01 00 00 00 00 00 99 [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:44]Read from MH i2c: E2 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 0E 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 0E 00 FB 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 19 [08:33:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:33:44]wFMCommunicate OK [08:33:44]SAM_PROTO_GetShiftState done [08:33:44]FM_GetShiftState done [08:33:44]req_shift_opened done [08:33:44]requested_item shift.open_date is exist - process it [08:33:44]req_shift_open_date [08:33:44]req_shift_open_date done [08:33:44]produce_requested_data done [08:33:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140019,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:33:44]process_action_free close_receipt [08:33:44]json_value_free [08:33:44]json_value_free done [08:33:44]process_json_proto returns [08:33:44]Send response to host [08:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140019,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:33:44]free response buf [08:33:44]execute_script done [08:33:44]execute_script returns [08:33:44]free content buf [08:33:44]Sock 7.Close socket [08:33:44]Sock 7.Thread stoped [08:33:44]accept exits with 9 [08:33:44]New connection [08:33:44]New thread 3066908004 created [08:33:44]Thread 3066764644 joined [08:33:44]Waiting for new connection... [08:33:44] Sock 9.Parse request [08:33:44]Sock 9.Check first char [08:33:44]Sock 9.First char is OK [08:33:44]request: POST /json_proto HTTP/1.0 [08:33:44]Method: POST [08:33:44]URL: /json_proto [08:33:44]Method is POST - this is cgi request [08:33:44]url: /json_proto [08:33:44]query_string will be loaded in cgi processing [08:33:44]execute_cgi json_proto POST (null) [08:33:44]execute_cgi path=json_proto method=POST [08:33:44]POST find Content-Length [08:33:44]Host: 172.17.45.67:8080 [08:33:44]Content-Length: 663 [08:33:44]Content-Type: application/json [08:33:44] [08:33:44]POST finish read [08:33:44]Found Content-Length = 663 [08:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:44]execute_script... [08: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)593873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:44]POST & json_proto [08:33:44]process_json_proto [08:33:44]json parsed OK: [08:33:44]protocol is kg_v1.0 [08:33:44]action value=close_receipt [08:33:44]process_action close_receipt [08:33:44]cmd_close_receipt [08:33:44]MH_GetDate [08:33:44]Write to MH i2c: F0 00 00 FC 21 0C [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: F0 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: F0 09 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: F0 09 00 FC 21 00 6B A6 C5 66 5F 7F 2B 66 C0 [08:33:44]GetLastDocTimeStamp 1724229223 [08:33:44]current date 1724229227 [08:33:44]FM_GetShiftState [08:33:44]SAM_PROTO_GetShiftState [08:33:44]wFMCommunicate request_size=4 [08:33:44]MH_SAM_APDU [08:33:44]CAPDU: 80 13 01 00 [08:33:44]Write to MH i2c: E2 08 00 FD 21 80 13 01 00 00 00 00 00 9B [08:33:44]Write i2c OK [08:33:44]MH_I2C_Read... [08:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:44]Read from MH i2c: E2 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 0E 00 [08:33:44]MH_I2C_Read... [08:33:44]Read from MH i2c: E2 0E 00 FD 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1B [08:33:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:33:44]wFMCommunicate OK [08:33:44]SAM_PROTO_GetShiftState done [08:33:44]FM_GetShiftState done [08:33:44]opened in 1724200467 [08:33:44]opened+sec_in_day 1724286867 [08:33:44]quantity*price = 100035 [08:33:44]sum+1 = 100036 [08:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 37 21.08.2024 08:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140020 ФПД: 111814131064935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140020&fm=111814131064935&tin=02508201610067®Number=0000000000092569&sum=100000 [08:33:46]StoreToDocumentArchive [08:33:46]shift 454 fd 140020 [08:33:46]save to /storage/0454/doc_00140020 [08:33:46]save last doc name /storage/0454/doc_00140020 to /storage/kkm_last_doc_name [08:33:46]save OK [08:33:46]Clear old archive folders... [08:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:33:46]tlvbuf is 00ACB1A0 [08:33:46]SAM_PROTO_ClearQueue [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 09 00 00 [08:33:46]Write to MH i2c: E2 08 00 0A 22 80 09 00 00 00 00 00 00 9E [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 0A 22 00 90 00 A0 [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]SAM_PROTO_ClearQueue done [08:33:46]KKMCreateOFDPacket [08:33:46]OFDProtocolAddRootSTLVToBuf [08:33:46]FM_MakeSignedData [08:33:46]FM_MakeSignedData [08:33:46]SAM_PROTO_SignData [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 01 02 [08:33:46]Write to MH i2c: E2 08 00 0B 22 80 0D 01 02 00 00 00 00 A6 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 0B 22 00 90 00 A1 [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]wFMCommunicate request_size=253 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 22 02 00 35 04 06 00 65 B1 C1 90 20 67 [08:33:46]Write to MH i2c: E2 00 01 0C 22 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 22 02 00 35 04 06 00 65 B1 C1 90 20 67 00 00 4C [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 0C 22 00 90 00 A2 [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 03 02 [08:33:46]Write to MH i2c: E2 08 00 0D 22 80 0D 03 02 00 00 00 00 AA [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0B 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0B 00 0D 22 00 7D 97 F8 53 4E FC 03 05 90 00 5C [08:33:46]RAPDU: 7D 97 F8 53 4E FC 03 05 90 00 [08:33:46]wFMCommunicate OK [08:33:46]SAM_PROTO_SignData done [08:33:46]FM_MakeSignedData done [08:33:46]CreateOFDProtocolMessage [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 11 00 00 [08:33:46]Write to MH i2c: E2 08 00 0E 22 80 11 00 00 00 00 00 00 AA [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 17 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 17 00 0E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [08:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:46]wFMCommunicate OK [08:33:46]CreateOFDProtocolMessage done [08:33:46]OFDSenderStorePacket 140020 [08:33:46]StoreOFDPacket docnum=140020 [08:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 F0 1E 00 01 95 37 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 22 02 00 35 04 06 00 65 B1 C1 90 20 67 7D 97 F8 53 4E FC 03 05 [08:33:46]CheckFolder [08:33:46]dirname=/storage/ofd_packets [08:33:46]CheckFolder done [08:33:46]ProducePacketName [08:33:46]name=ofd_packets/00140020 [08:33:46]NVStorageSaveData ofd_packets/00140020 [08:33:46]File name is /storage/ofd_packets/00140020 [08:33:46]Write 294 bytes [08:33:46]NVStorageSaveData done [08:33:46]OFDSenderStorePacket done [08:33:46]KKMCreateOFDPacket done [08:33:46]NVStorageSaveData kkm_last_timestamp [08:33:46]File name is /storage/kkm_last_timestamp [08:33:46]Write 4 bytes [08:33:46]NVStorageSaveData done [08:33:46]ExternCall_PrintAddStr [08:33:46]wPrintStart [08:33:46]Write to MH i2c: 01 00 00 0F 22 31 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 07 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 07 00 0F 22 00 00 00 00 00 FF 0F 46 [08:33:46]RasterBufferAndPrint [08:33:46]line Счет N : (1)593873 [08:33:46]line ИНН: 02508201610067 [08:33:46]line Контрольно-Кассовый Чек [08:33:46]line ПРОДАЖА [08:33:46]line ТРК (МРК, ГНК) : 53 [08:33:46]line Товар: 2710124130 [08:33:46]line SU-92 [08:33:46]line 14.540 * 68.80 [08:33:46]line = 1000.35 [08:33:46]line НДС 12% НСП 1% [08:33:46]line > о реализуемом товаре [08:33:46]line ОКРУГЛЕНИЕ: -0.35 [08:33:46]line ИТОГО: 1000.00 [08:33:46]line Внесено: 1000.00 [08:33:46]line СДАЧА: 0.00 [08:33:46]line НСП 1% : 8.85 [08:33:46]line НДС 12% : 106.23 [08:33:46]line Наличными: 1000.00 [08:33:46]line Безнал.: 0.00 [08:33:46]line Место: АЗС № 136 "Партнер Нефть" [08:33:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:33:46]line СНО: Общий режим [08:33:46]line Чек 37 21.08.2024 08:33 [08:33:46]line Смена: 454 ФФД: 1.0 [08:33:46]line ЗНМ: 0300000067 [08:33:46]line РНМ: 0000000000092569 [08:33:46]line Версия ККМ: 001 [08:33:46]line ФМ: 0000000000871776 [08:33:46]line ФД: 140020 [08:33:46]line ФПД: 111814131064935 [08:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140020&fm=111814131064935&tin=02508201610067®Number=0000000000092569&sum=100000 [08:33:47]OFD Sender: Processing packet 140020 [packets to send 137, broken 136] [08:33:47]ProducePacketName [08:33:47]name=ofd_packets/00140020 [08:33:47]OFD Sender: To server: pG, [08:33:47]CommunicateWithHost lk.salyk.kg:30040 [08:33:47]ConnectInit lk.salyk.kg [08:33:47]written 0, free lines is 4095 [08:33:47]Connected sock=11 [08: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 37 36 08 01 00 00 F0 1E 00 01 95 37 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 6B A6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 22 02 00 35 04 06 00 65 B1 C1 90 20 67 7D 97 F8 53 4E FC 03 05 [08: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 37 36 4F 00 00 00 02 4E 47 00 09 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 37 36 10 04 04 00 F4 22 02 00 F4 03 04 00 FD 4C C5 66 B6 04 01 00 00 21 0C A5 99 83 5E 49 D7 [08:33:47]CommunicateWithHost err = 0 [08:33:47]CheckOFDResponse [08:33:47]1017 (14) - 77093643461234 [08:33:47]1041 (16) - 0000000000871776 [08:33:47]1040 (4) - 140020 [08:33:47]1012 (4) - 21.08.2024 02:12 [08:33:47]1206 (1) - 0 [08:33:47]OFD Sender: Remove packet 140020 [08:33:47]ProducePacketName [08:33:47]name=ofd_packets/00140020 [08:33:47]NVStorageDeleteData [08:33:47]Write to MH i2c: 01 00 00 3A 22 5C [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 3A 22 00 00 00 00 00 DE 0C 4D [08:33:47]RasterBufferAndPrint [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]written 0, free lines is 3302 [08:33:47]MH_Cut [08:33:47]Write to MH i2c: D1 01 00 41 22 01 35 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 01 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 01 00 41 22 00 34 [08:33:47]Write to MH i2c: 01 00 00 42 22 64 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:48]OFD Sender: No OFD packet to send [08:33:48]*** Cut start [08:33:48]*** Partial cut [08:33:48]*** CUTSNS_PIN = 1 [08:33:48]*** CUTSNS_PIN = 0 [08:33:48]*** Brake cut motor [08:33:49]Read from MH i2c: 01 [08:33:49]MH_I2C_Read... [08:33:49]*** Stop cut motor [08:33:49]*** Cut end [08:33:49]Read from MH i2c: 01 07 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: 01 07 00 42 22 00 00 00 00 00 FF 0F 79 [08:33:49]process_action close_receipt done [08:33:49]requested_data is exist [08:33:49]produce_requested_data [08:33:49]requested_item fm.sn is exist - process it [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 11 00 00 [08:33:49]Write to MH i2c: E2 08 00 43 22 80 11 00 00 00 00 00 00 DF [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 43 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [08:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:33:49]wFMCommunicate OK [08:33:49]requested_item fd.num is exist - process it [08:33:49]SAM_PROTO_GetFieldsCounters [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 13 00 00 [08:33:49]Write to MH i2c: E2 08 00 44 22 80 13 00 00 00 00 00 00 E2 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 62 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 62 00 44 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_GetFieldsCounters done [08:33:49]requested_item shift.num is exist - process it [08:33:49]requested_item shift.opened is exist - process it [08:33:49]req_shift_opened [08:33:49]FM_GetShiftState [08:33:49]SAM_PROTO_GetShiftState [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 13 01 00 [08:33:49]Write to MH i2c: E2 08 00 45 22 80 13 01 00 00 00 00 00 E4 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0E 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0E 00 45 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 64 [08:33:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_GetShiftState done [08:33:49]FM_GetShiftState done [08:33:49]req_shift_opened done [08:33:49]requested_item shift.open_date is exist - process it [08:33:49]req_shift_open_date [08:33:49]req_shift_open_date done [08:33:49]produce_requested_data done [08:33:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140020,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:33:49]process_action_free close_receipt [08:33:49]json_value_free [08:33:49]json_value_free done [08:33:49]process_json_proto returns [08:33:49]Send response to host [08:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140020,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:33:49]free response buf [08:33:49]execute_script done [08:33:49]execute_script returns [08:33:49]free content buf [08:33:49]Sock 9.Close socket [08:33:49]Sock 9.Thread stoped [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:32]int [08:35:32]Write to MH i2c: 01 00 00 46 22 68 [08:35:32]*** FLAG_PRN_KEY set [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 46 22 00 08 00 00 00 FF 0F 85 [08:35:32]state=0 [08:35:32]Key pressed [08:35:32]Feed [08:35:32]Write to MH i2c: D8 00 00 47 22 40 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D8 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D8 01 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D8 01 00 47 22 00 41 [08:35:32]int [08:35:32]Write to MH i2c: 01 00 00 48 22 6A [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 48 22 00 48 00 00 00 3C 00 F5 [08:35:32]state=2 [08:35:32]Key pressed [08:35:32]int [08:35:32]Write to MH i2c: 01 00 00 49 22 6B [08:35:32]*** FLAG_PRN_KEY reset [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 49 22 00 00 00 00 00 F5 0F 76 [08:35:32]state=2 [08:35:32]Stop feed [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:00]accept exits with 7 [08:37:00]New connection [08:37:00]New thread 3066764644 created [08:37:00]Thread 3066908004 joined [08:37:00]Waiting for new connection... [08:37:00] Sock 7.Parse request [08:37:00]Sock 7.Check first char [08:37:00]Sock 7.First char is OK [08:37:00]request: POST /json_proto HTTP/1.0 [08:37:00]Method: POST [08:37:00]URL: /json_proto [08:37:00]Method is POST - this is cgi request [08:37:00]url: /json_proto [08:37:00]query_string will be loaded in cgi processing [08:37:00]execute_cgi json_proto POST (null) [08:37:00]execute_cgi path=json_proto method=POST [08:37:00]POST find Content-Length [08:37:00]Host: 172.17.45.67:8080 [08:37:00]Content-Length: 677 [08:37:00]Content-Type: application/json [08:37:00] [08:37:00]POST finish read [08:37:00]Found Content-Length = 677 [08:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:00]execute_script... [08:37:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:00]POST & json_proto [08:37:00]process_json_proto [08:37:00]json parsed OK: [08:37:00]protocol is kg_v1.0 [08:37:00]action value=close_receipt [08:37:00]process_action close_receipt [08:37:00]cmd_close_receipt [08:37:00]MH_GetDate [08:37:00]Write to MH i2c: F0 00 00 4A 22 5B [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: F0 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: F0 09 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: F0 09 00 4A 22 00 2F A7 C5 66 5F 7F 2B 66 D4 [08:37:00]GetLastDocTimeStamp 1724229227 [08:37:00]current date 1724229423 [08:37:00]FM_GetShiftState [08:37:00]SAM_PROTO_GetShiftState [08:37:00]wFMCommunicate request_size=4 [08:37:00]MH_SAM_APDU [08:37:00]CAPDU: 80 13 01 00 [08:37:00]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0E 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6A [08:37:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:37:00]wFMCommunicate OK [08:37:00]SAM_PROTO_GetShiftState done [08:37:00]FM_GetShiftState done [08:37:00]opened in 1724200467 [08:37:00]opened+sec_in_day 1724286867 [08:37:00]quantity*price = 50010 [08:37:00]sum+1 = 50012 [08:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 38 21.08.2024 08:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140021 ФПД: 174257294375974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083703&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140021&fm=174257294375974&tin=02508201610067®Number=0000000000092569&sum=50000 [08:37:02]StoreToDocumentArchive [08:37:02]shift 454 fd 140021 [08:37:02]save to /storage/0454/doc_00140021 [08:37:02]save last doc name /storage/0454/doc_00140021 to /storage/kkm_last_doc_name [08:37:02]save OK [08:37:02]Clear old archive folders... [08:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:02]tlvbuf is 00A541E0 [08:37:02]SAM_PROTO_ClearQueue [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 09 00 00 [08:37:02]Write to MH i2c: E2 08 00 58 22 80 09 00 00 00 00 00 00 EC [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 58 22 00 90 00 EE [08:37:02]RAPDU: 90 00 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_ClearQueue done [08:37:02]KKMCreateOFDPacket [08:37:02]OFDProtocolAddRootSTLVToBuf [08:37:02]FM_MakeSignedData [08:37:02]FM_MakeSignedData [08:37:02]SAM_PROTO_SignData [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 0D 01 02 [08:37:02]Write to MH i2c: E2 08 00 59 22 80 0D 01 02 00 00 00 00 F4 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 59 22 00 90 00 EF [08:37:02]RAPDU: 90 00 [08:37:02]wFMCommunicate OK [08:37:02]wFMCommunicate request_size=255 [08:37:02]MH_SAM_APDU [08:37: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 2F A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 22 02 00 35 04 06 00 9E [08:37:02]Write to MH i2c: E2 02 01 5A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 2F A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 22 02 00 35 04 06 00 9E 00 00 0A [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [08:37:02]RAPDU: 90 00 [08:37:02]wFMCommunicate OK [08:37:02]wFMCommunicate request_size=10 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 0D 02 02 05 7C 70 21 7C 26 [08:37:02]Write to MH i2c: E2 0D 00 5B 22 80 0D 02 02 05 00 7C 70 21 7C 26 00 00 B0 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [08:37:02]RAPDU: 90 00 [08:37:02]wFMCommunicate OK [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 0D 03 02 [08:37:02]Write to MH i2c: E2 08 00 5C 22 80 0D 03 02 00 00 00 00 F9 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0B 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0B 00 5C 22 00 72 A9 DF FA 8E 8A 14 8E 90 00 A8 [08:37:02]RAPDU: 72 A9 DF FA 8E 8A 14 8E 90 00 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_SignData done [08:37:02]FM_MakeSignedData done [08:37:02]CreateOFDProtocolMessage [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 11 00 00 [08:37:02]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [08:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:02]wFMCommunicate OK [08:37:02]CreateOFDProtocolMessage done [08:37:02]OFDSenderStorePacket 140021 [08:37:02]StoreOFDPacket docnum=140021 [08:37:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F9 9D 07 01 02 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 2F A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 22 02 00 35 04 06 00 9E 7C 70 21 7C 26 72 A9 DF FA 8E 8A 14 8E [08:37:02]CheckFolder [08:37:02]dirname=/storage/ofd_packets [08:37:02]CheckFolder done [08:37:02]ProducePacketName [08:37:02]name=ofd_packets/00140021 [08:37:02]NVStorageSaveData ofd_packets/00140021 [08:37:02]File name is /storage/ofd_packets/00140021 [08:37:02]Write 301 bytes [08:37:02]NVStorageSaveData done [08:37:02]OFDSenderStorePacket done [08:37:02]KKMCreateOFDPacket done [08:37:02]NVStorageSaveData kkm_last_timestamp [08:37:02]File name is /storage/kkm_last_timestamp [08:37:02]Write 4 bytes [08:37:02]NVStorageSaveData done [08:37:02]ExternCall_PrintAddStr [08:37:02]wPrintStart [08:37:02]Write to MH i2c: 01 00 00 5E 22 80 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: 01 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: 01 07 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 FF 0F 95 [08:37:02]RasterBufferAndPrint [08:37:02]line Счет N : (1)593876 [08:37:02]line ИНН: 02508201610067 [08:37:02]line Контрольно-Кассовый Чек [08:37:02]line ПРОДАЖА [08:37:02]line ТРК (МРК, ГНК) : 51 [08:37:02]line Товар: 2710124500 [08:37:02]line Аи-95-К-5 [08:37:02]line 6.740 * 74.20 [08:37:02]line = 500.11 [08:37:02]line НДС 12% НСП 1% [08:37:02]line > о реализуемом товаре [08:37:02]line ОКРУГЛЕНИЕ: -0.11 [08:37:02]line ИТОГО: 500.00 [08:37:02]line Внесено: 500.00 [08:37:02]line СДАЧА: 0.00 [08:37:02]line НСП 1% : 4.43 [08:37:02]line НДС 12% : 53.11 [08:37:02]line Наличными: 500.00 [08:37:02]line Безнал.: 0.00 [08:37:02]line Место: АЗС № 136 "Партнер Нефть" [08:37:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:37:02]line СНО: Общий режим [08:37:02]line Чек 38 21.08.2024 08:37 [08:37:02]line Смена: 454 ФФД: 1.0 [08:37:02]line ЗНМ: 0300000067 [08:37:02]line РНМ: 0000000000092569 [08:37:02]line Версия ККМ: 001 [08:37:02]line ФМ: 0000000000871776 [08:37:02]line ФД: 140021 [08:37:02]line ФПД: 174257294375974 [08:37:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083703&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140021&fm=174257294375974&tin=02508201610067®Number=0000000000092569&sum=50000 [08:37:03]written 0, free lines is 4095 [08:37:03]OFD Sender: Processing packet 140021 [packets to send 137, broken 136] [08:37:03]ProducePacketName [08:37:03]name=ofd_packets/00140021 [08:37:03]OFD Sender: To server: pG, [08:37:03]CommunicateWithHost lk.salyk.kg:30040 [08:37:03]ConnectInit lk.salyk.kg [08:37:03]Connected sock=10 [08:37:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F9 9D 07 01 02 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 2F A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 22 02 00 35 04 06 00 9E 7C 70 21 7C 26 72 A9 DF FA 8E 8A 14 8E [08:37:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E8 45 47 00 C7 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 37 36 10 04 04 00 F5 22 02 00 F4 03 04 00 C0 4D C5 66 B6 04 01 00 00 9E 21 F3 4E 33 A9 43 EB [08:37:03]CommunicateWithHost err = 0 [08:37:03]CheckOFDResponse [08:37:03]1017 (14) - 77093643461234 [08:37:03]1041 (16) - 0000000000871776 [08:37:03]1040 (4) - 140021 [08:37:03]1012 (4) - 21.08.2024 02:15 [08:37:03]1206 (1) - 0 [08:37:03]OFD Sender: Remove packet 140021 [08:37:03]ProducePacketName [08:37:03]name=ofd_packets/00140021 [08:37:03]NVStorageDeleteData [08:37:03]Write to MH i2c: 01 00 00 89 22 AB [08:37:03]Write i2c OK [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: 01 [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: 01 07 00 [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: 01 07 00 89 22 00 00 00 00 00 C2 0C 80 [08:37:03]RasterBufferAndPrint [08:37:03]line [08:37:03]line [08:37:03]line [08:37:03]line [08:37:03]line [08:37:03]written 0, free lines is 3275 [08:37:03]MH_Cut [08:37:03]Write to MH i2c: D1 01 00 90 22 01 84 [08:37:03]Write i2c OK [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: D1 [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: D1 01 00 [08:37:03]MH_I2C_Read... [08:37:03]Read from MH i2c: D1 01 00 90 22 00 83 [08:37:03]Write to MH i2c: 01 00 00 91 22 B3 [08:37:03]Write i2c OK [08:37:03]MH_I2C_Read... [08:37:03]OFD Sender: No OFD packet to send [08:37:04]*** Cut start [08:37:04]*** Partial cut [08:37:04]*** CUTSNS_PIN = 1 [08:37:04]*** CUTSNS_PIN = 0 [08:37:04]*** Brake cut motor [08:37:04]Read from MH i2c: 01 [08:37:04]MH_I2C_Read... [08:37:04]*** Stop cut motor [08:37:04]*** Cut end [08:37:04]Read from MH i2c: 01 07 00 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 FF 0F C8 [08:37:04]process_action close_receipt done [08:37:04]requested_data is exist [08:37:04]produce_requested_data [08:37:04]requested_item fm.sn is exist - process it [08:37:04]wFMCommunicate request_size=4 [08:37:04]MH_SAM_APDU [08:37:04]CAPDU: 80 11 00 00 [08:37:04]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [08:37:04]Write i2c OK [08:37:04]MH_I2C_Read... [08:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:04]Read from MH i2c: E2 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 17 00 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 17 00 92 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [08:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:04]wFMCommunicate OK [08:37:04]requested_item fd.num is exist - process it [08:37:04]SAM_PROTO_GetFieldsCounters [08:37:04]wFMCommunicate request_size=4 [08:37:04]MH_SAM_APDU [08:37:04]CAPDU: 80 13 00 00 [08:37:04]Write to MH i2c: E2 08 00 93 22 80 13 00 00 00 00 00 00 31 [08:37:04]Write i2c OK [08:37:04]MH_I2C_Read... [08:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:04]Read from MH i2c: E2 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 62 00 [08:37:04]MH_I2C_Read... [08:37:04]Read from MH i2c: E2 62 00 93 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:37:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:04]wFMCommunicate OK [08:37:04]SAM_PROTO_GetFieldsCounters done [08:37:04]requested_item shift.num is exist - process it [08:37:04]requested_item shift.opened is exist - process it [08:37:04]req_shift_opened [08:37:04]FM_GetShiftState [08:37:04]SAM_PROTO_GetShiftState [08:37:04]wFMCommunicate request_size=4 [08:37:04]MH_SAM_APDU [08:37:04]CAPDU: 80 13 01 00 [08:37:04]Write to MH i2c: E2 08 00 94 22 80 13 01 00 00 00 00 00 33 [08:37:04]Write i2c OK [08:37:04]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 94 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B3 [08:37:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:37:05]wFMCommunicate OK [08:37:05]SAM_PROTO_GetShiftState done [08:37:05]FM_GetShiftState done [08:37:05]req_shift_opened done [08:37:05]requested_item shift.open_date is exist - process it [08:37:05]req_shift_open_date [08:37:05]req_shift_open_date done [08:37:05]produce_requested_data done [08:37:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140021,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:37:05]process_action_free close_receipt [08:37:05]json_value_free [08:37:05]json_value_free done [08:37:05]process_json_proto returns [08:37:05]Send response to host [08:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140021,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:37:05]free response buf [08:37:05]execute_script done [08:37:05]execute_script returns [08:37:05]free content buf [08:37:05]Sock 7.Close socket [08:37:05]Sock 7.Thread stoped [08:37:05]accept exits with 9 [08:37:05]New connection [08:37:05]New thread 3066908004 created [08:37:05]Thread 3066764644 joined [08:37:05]Waiting for new connection... [08:37:05] Sock 9.Parse request [08:37:05]Sock 9.Check first char [08:37:05]Sock 9.First char is OK [08:37:05]request: POST /json_proto HTTP/1.0 [08:37:05]Method: POST [08:37:05]URL: /json_proto [08:37:05]Method is POST - this is cgi request [08:37:05]url: /json_proto [08:37:05]query_string will be loaded in cgi processing [08:37:05]execute_cgi json_proto POST (null) [08:37:05]execute_cgi path=json_proto method=POST [08:37:05]POST find Content-Length [08:37:05]Host: 172.17.45.67:8080 [08:37:05]Content-Length: 677 [08:37:05]Content-Type: application/json [08:37:05] [08:37:05]POST finish read [08:37:05]Found Content-Length = 677 [08:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:05]execute_script... [08: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)593875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:05]POST & json_proto [08:37:05]process_json_proto [08:37:05]json parsed OK: [08:37:05]protocol is kg_v1.0 [08:37:05]action value=close_receipt [08:37:05]process_action close_receipt [08:37:05]cmd_close_receipt [08:37:05]MH_GetDate [08:37:05]Write to MH i2c: F0 00 00 95 22 A6 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 09 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: F0 09 00 95 22 00 34 A7 C5 66 5F 7F 2B 66 24 [08:37:05]GetLastDocTimeStamp 1724229423 [08:37:05]current date 1724229428 [08:37:05]FM_GetShiftState [08:37:05]SAM_PROTO_GetShiftState [08:37:05]wFMCommunicate request_size=4 [08:37:05]MH_SAM_APDU [08:37:05]CAPDU: 80 13 01 00 [08:37:05]Write to MH i2c: E2 08 00 96 22 80 13 01 00 00 00 00 00 35 [08:37:05]Write i2c OK [08:37:05]MH_I2C_Read... [08:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:05]Read from MH i2c: E2 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 [08:37:05]MH_I2C_Read... [08:37:05]Read from MH i2c: E2 0E 00 96 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B5 [08:37:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:37:05]wFMCommunicate OK [08:37:05]SAM_PROTO_GetShiftState done [08:37:05]FM_GetShiftState done [08:37:05]opened in 1724200467 [08:37:05]opened+sec_in_day 1724286867 [08:37:05]quantity*price = 60003 [08:37:05]sum+1 = 60004 [08:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 39 21.08.2024 08:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140022 ФПД: 208315982246339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140022&fm=208315982246339&tin=02508201610067®Number=0000000000092569&sum=60000 [08:37:06]StoreToDocumentArchive [08:37:06]shift 454 fd 140022 [08:37:06]save to /storage/0454/doc_00140022 [08:37:06]save last doc name /storage/0454/doc_00140022 to /storage/kkm_last_doc_name [08:37:06]save OK [08:37:06]Clear old archive folders... [08:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:06]tlvbuf is 00AFFFF0 [08:37:06]SAM_PROTO_ClearQueue [08:37:06]wFMCommunicate request_size=4 [08:37:06]MH_SAM_APDU [08:37:06]CAPDU: 80 09 00 00 [08:37:06]Write to MH i2c: E2 08 00 A3 22 80 09 00 00 00 00 00 00 37 [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:06]Read from MH i2c: E2 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 [08:37:06]MH_I2C_Read... [08:37:06]Read from MH i2c: E2 03 00 A3 22 00 90 00 39 [08:37:06]RAPDU: 90 00 [08:37:06]wFMCommunicate OK [08:37:06]SAM_PROTO_ClearQueue done [08:37:06]KKMCreateOFDPacket [08:37:06]OFDProtocolAddRootSTLVToBuf [08:37:06]FM_MakeSignedData [08:37:06]FM_MakeSignedData [08:37:06]SAM_PROTO_SignData [08:37:06]wFMCommunicate request_size=4 [08:37:06]MH_SAM_APDU [08:37:06]CAPDU: 80 0D 01 02 [08:37:06]Write to MH i2c: E2 08 00 A4 22 80 0D 01 02 00 00 00 00 3F [08:37:06]Write i2c OK [08:37:06]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 A4 22 00 90 00 3A [08:37:07]RAPDU: 90 00 [08:37:07]wFMCommunicate OK [08:37:07]wFMCommunicate request_size=255 [08:37:07]MH_SAM_APDU [08: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 27 00 00 00 F4 03 04 00 34 A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 22 02 00 35 04 06 00 BD [08:37:07]Write to MH i2c: E2 02 01 A5 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 27 00 00 00 F4 03 04 00 34 A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 22 02 00 35 04 06 00 BD 00 00 5A [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [08:37:07]RAPDU: 90 00 [08:37:07]wFMCommunicate OK [08:37:07]wFMCommunicate request_size=10 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 0D 02 02 05 76 58 1F 71 C3 [08:37:07]Write to MH i2c: E2 0D 00 A6 22 80 0D 02 02 05 00 76 58 1F 71 C3 00 00 6D [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 03 00 A6 22 00 90 00 3C [08:37:07]RAPDU: 90 00 [08:37:07]wFMCommunicate OK [08:37:07]wFMCommunicate request_size=4 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 0D 03 02 [08:37:07]Write to MH i2c: E2 08 00 A7 22 80 0D 03 02 00 00 00 00 44 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 0B 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 0B 00 A7 22 00 70 42 85 93 56 A0 EF 2F 90 00 23 [08:37:07]RAPDU: 70 42 85 93 56 A0 EF 2F 90 00 [08:37:07]wFMCommunicate OK [08:37:07]SAM_PROTO_SignData done [08:37:07]FM_MakeSignedData done [08:37:07]CreateOFDProtocolMessage [08:37:07]wFMCommunicate request_size=4 [08:37:07]MH_SAM_APDU [08:37:07]CAPDU: 80 11 00 00 [08:37:07]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:07]Read from MH i2c: E2 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 17 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9B [08:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:07]wFMCommunicate OK [08:37:07]CreateOFDProtocolMessage done [08:37:07]OFDSenderStorePacket 140022 [08:37:07]StoreOFDPacket docnum=140022 [08:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 95 07 01 B1 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 27 00 00 00 F4 03 04 00 34 A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 22 02 00 35 04 06 00 BD 76 58 1F 71 C3 70 42 85 93 56 A0 EF 2F [08:37:07]CheckFolder [08:37:07]dirname=/storage/ofd_packets [08:37:07]CheckFolder done [08:37:07]ProducePacketName [08:37:07]name=ofd_packets/00140022 [08:37:07]NVStorageSaveData ofd_packets/00140022 [08:37:07]File name is /storage/ofd_packets/00140022 [08:37:07]Write 301 bytes [08:37:07]NVStorageSaveData done [08:37:07]OFDSenderStorePacket done [08:37:07]KKMCreateOFDPacket done [08:37:07]NVStorageSaveData kkm_last_timestamp [08:37:07]File name is /storage/kkm_last_timestamp [08:37:07]Write 4 bytes [08:37:07]NVStorageSaveData done [08:37:07]ExternCall_PrintAddStr [08:37:07]wPrintStart [08:37:07]Write to MH i2c: 01 00 00 A9 22 CB [08:37:07]Write i2c OK [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 [08:37:07]MH_I2C_Read... [08:37:07]Read from MH i2c: 01 07 00 A9 22 00 00 00 00 00 FF 0F E0 [08:37:07]RasterBufferAndPrint [08:37:07]line Счет N : (1)593875 [08:37:07]line ИНН: 02508201610067 [08:37:07]line Контрольно-Кассовый Чек [08:37:07]line ПРОДАЖА [08:37:07]line ТРК (МРК, ГНК) : 62 [08:37:07]line Товар: 2710124130 [08:37:07]line Аи-92-К-5 [08:37:07]line 8.850 * 67.80 [08:37:07]line = 600.03 [08:37:07]line НДС 12% НСП 1% [08:37:07]line > о реализуемом товаре [08:37:07]line ОКРУГЛЕНИЕ: -0.03 [08:37:07]line ИТОГО: 600.00 [08:37:07]line Внесено: 600.00 [08:37:07]line СДАЧА: 0.00 [08:37:07]line НСП 1% : 5.31 [08:37:07]line НДС 12% : 63.72 [08:37:07]line Наличными: 600.00 [08:37:07]line Безнал.: 0.00 [08:37:07]line Место: АЗС № 136 "Партнер Нефть" [08:37:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:37:07]line СНО: Общий режим [08:37:07]line Чек 39 21.08.2024 08:37 [08:37:07]line Смена: 454 ФФД: 1.0 [08:37:07]line ЗНМ: 0300000067 [08:37:07]line РНМ: 0000000000092569 [08:37:07]line Версия ККМ: 001 [08:37:07]line ФМ: 0000000000871776 [08:37:07]line ФД: 140022 [08:37:07]line ФПД: 208315982246339 [08:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T083708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140022&fm=208315982246339&tin=02508201610067®Number=0000000000092569&sum=60000 [08:37:07]OFD Sender: Processing packet 140022 [packets to send 137, broken 136] [08:37:07]ProducePacketName [08:37:07]name=ofd_packets/00140022 [08:37:07]written 0, free lines is 4095 [08:37:07]OFD Sender: To server: pG, [08:37:07]CommunicateWithHost lk.salyk.kg:30040 [08:37:07]ConnectInit lk.salyk.kg [08:37:08]Connected sock=10 [08:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 95 07 01 B1 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 27 00 00 00 F4 03 04 00 34 A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 22 02 00 35 04 06 00 BD 76 58 1F 71 C3 70 42 85 93 56 A0 EF 2F [08:37: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 37 36 4F 00 00 00 8E B3 47 00 63 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 37 36 10 04 04 00 F6 22 02 00 F4 03 04 00 C5 4D C5 66 B6 04 01 00 00 97 74 47 8D FF AF A4 5F [08:37:08]CommunicateWithHost err = 0 [08:37:08]CheckOFDResponse [08:37:08]1017 (14) - 77093643461234 [08:37:08]1041 (16) - 0000000000871776 [08:37:08]1040 (4) - 140022 [08:37:08]1012 (4) - 21.08.2024 02:15 [08:37:08]1206 (1) - 0 [08:37:08]OFD Sender: Remove packet 140022 [08:37:08]ProducePacketName [08:37:08]name=ofd_packets/00140022 [08:37:08]NVStorageDeleteData [08:37:08]Write to MH i2c: 01 00 00 D4 22 F6 [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: 01 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: 01 07 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: 01 07 00 D4 22 00 00 00 00 00 E1 0C EA [08:37:08]RasterBufferAndPrint [08:37:08]line [08:37:08]line [08:37:08]line [08:37:08]line [08:37:08]line [08:37:08]written 0, free lines is 3312 [08:37:08]MH_Cut [08:37:08]Write to MH i2c: D1 01 00 DB 22 01 CF [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: D1 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: D1 01 00 [08:37:08]MH_I2C_Read... [08:37:08]Read from MH i2c: D1 01 00 DB 22 00 CE [08:37:08]Write to MH i2c: 01 00 00 DC 22 FE [08:37:08]Write i2c OK [08:37:08]MH_I2C_Read... [08:37:08]OFD Sender: No OFD packet to send [08:37:09]*** Cut start [08:37:09]*** Partial cut [08:37:09]*** CUTSNS_PIN = 1 [08:37:09]*** CUTSNS_PIN = 0 [08:37:09]*** Brake cut motor [08:37:09]Read from MH i2c: 01 [08:37:09]MH_I2C_Read... [08:37:09]*** Stop cut motor [08:37:09]*** Cut end [08:37:09]Read from MH i2c: 01 07 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 FF 0F 13 [08:37:09]process_action close_receipt done [08:37:09]requested_data is exist [08:37:09]produce_requested_data [08:37:09]requested_item fm.sn is exist - process it [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 11 00 00 [08:37:09]Write to MH i2c: E2 08 00 DD 22 80 11 00 00 00 00 00 00 79 [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 17 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 17 00 DD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [08:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:37:09]wFMCommunicate OK [08:37:09]requested_item fd.num is exist - process it [08:37:09]SAM_PROTO_GetFieldsCounters [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 13 00 00 [08:37:09]Write to MH i2c: E2 08 00 DE 22 80 13 00 00 00 00 00 00 7C [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 62 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 62 00 DE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [08:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:09]wFMCommunicate OK [08:37:09]SAM_PROTO_GetFieldsCounters done [08:37:09]requested_item shift.num is exist - process it [08:37:09]requested_item shift.opened is exist - process it [08:37:09]req_shift_opened [08:37:09]FM_GetShiftState [08:37:09]SAM_PROTO_GetShiftState [08:37:09]wFMCommunicate request_size=4 [08:37:09]MH_SAM_APDU [08:37:09]CAPDU: 80 13 01 00 [08:37:09]Write to MH i2c: E2 08 00 DF 22 80 13 01 00 00 00 00 00 7E [08:37:09]Write i2c OK [08:37:09]MH_I2C_Read... [08:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:09]Read from MH i2c: E2 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 0E 00 [08:37:09]MH_I2C_Read... [08:37:09]Read from MH i2c: E2 0E 00 DF 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FE [08:37:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:37:09]wFMCommunicate OK [08:37:09]SAM_PROTO_GetShiftState done [08:37:09]FM_GetShiftState done [08:37:09]req_shift_opened done [08:37:09]requested_item shift.open_date is exist - process it [08:37:09]req_shift_open_date [08:37:09]req_shift_open_date done [08:37:09]produce_requested_data done [08:37:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140022,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:37:09]process_action_free close_receipt [08:37:09]json_value_free [08:37:09]json_value_free done [08:37:09]process_json_proto returns [08:37:09]Send response to host [08:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140022,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:37:09]free response buf [08:37:09]execute_script done [08:37:09]execute_script returns [08:37:09]free content buf [08:37:09]Sock 9.Close socket [08:37:09]Sock 9.Thread stoped [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:25]accept exits with 7 [08:40:25]New connection [08:40:25]New thread 3066764644 created [08:40:25]Thread 3066908004 joined [08:40:25]Waiting for new connection... [08:40:25] Sock 7.Parse request [08:40:25]Sock 7.Check first char [08:40:25]Sock 7.First char is OK [08:40:25]request: POST /json_proto HTTP/1.0 [08:40:25]Method: POST [08:40:25]URL: /json_proto [08:40:25]Method is POST - this is cgi request [08:40:25]url: /json_proto [08:40:25]query_string will be loaded in cgi processing [08:40:25]execute_cgi json_proto POST (null) [08:40:25]execute_cgi path=json_proto method=POST [08:40:25]POST find Content-Length [08:40:25]Host: 172.17.45.67:8080 [08:40:25]Content-Length: 677 [08:40:25]Content-Type: application/json [08:40:25] [08:40:25]POST finish read [08:40:25]Found Content-Length = 677 [08:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:25]execute_script... [08:40: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)593877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:25]POST & json_proto [08:40:25]process_json_proto [08:40:25]json parsed OK: [08:40:25]protocol is kg_v1.0 [08:40:25]action value=close_receipt [08:40:25]process_action close_receipt [08:40:25]cmd_close_receipt [08:40:25]MH_GetDate [08:40:25]Write to MH i2c: F0 00 00 E0 22 F1 [08:40:25]Write i2c OK [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 09 00 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 09 00 E0 22 00 FC A7 C5 66 5F 7F 2B 66 37 [08:40:25]GetLastDocTimeStamp 1724229428 [08:40:25]current date 1724229628 [08:40:25]FM_GetShiftState [08:40:25]SAM_PROTO_GetShiftState [08:40:25]wFMCommunicate request_size=4 [08:40:25]MH_SAM_APDU [08:40:25]CAPDU: 80 13 01 00 [08:40:25]Write to MH i2c: E2 08 00 E1 22 80 13 01 00 00 00 00 00 80 [08:40:25]Write i2c OK [08:40:25]MH_I2C_Read... [08:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:25]Read from MH i2c: E2 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: E2 0E 00 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: E2 0E 00 E1 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 00 [08:40:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:40:25]wFMCommunicate OK [08:40:25]SAM_PROTO_GetShiftState done [08:40:25]FM_GetShiftState done [08:40:25]opened in 1724200467 [08:40:25]opened+sec_in_day 1724286867 [08:40:25]quantity*price = 50036 [08:40:25]sum+1 = 50037 [08:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 40 21.08.2024 08:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140023 ФПД: 181722083811981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084028&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140023&fm=181722083811981&tin=02508201610067®Number=0000000000092569&sum=50000 [08:40:26]StoreToDocumentArchive [08:40:26]shift 454 fd 140023 [08:40:26]save to /storage/0454/doc_00140023 [08:40:26]save last doc name /storage/0454/doc_00140023 to /storage/kkm_last_doc_name [08:40:26]save OK [08:40:26]Clear old archive folders... [08:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:26]tlvbuf is 00A10690 [08:40:26]SAM_PROTO_ClearQueue [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 09 00 00 [08:40:26]Write to MH i2c: E2 08 00 EE 22 80 09 00 00 00 00 00 00 82 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 03 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 03 00 EE 22 00 90 00 84 [08:40:26]RAPDU: 90 00 [08:40:26]wFMCommunicate OK [08:40:26]SAM_PROTO_ClearQueue done [08:40:26]KKMCreateOFDPacket [08:40:26]OFDProtocolAddRootSTLVToBuf [08:40:26]FM_MakeSignedData [08:40:26]FM_MakeSignedData [08:40:26]SAM_PROTO_SignData [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 0D 01 02 [08:40:26]Write to MH i2c: E2 08 00 EF 22 80 0D 01 02 00 00 00 00 8A [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 03 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 03 00 EF 22 00 90 00 85 [08:40:26]RAPDU: 90 00 [08:40:26]wFMCommunicate OK [08:40:26]wFMCommunicate request_size=255 [08:40:26]MH_SAM_APDU [08:40: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FC A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 22 02 00 35 04 06 00 A5 [08:40:26]Write to MH i2c: E2 02 01 F0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FC A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 22 02 00 35 04 06 00 A5 00 00 90 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 F0 22 00 90 00 86 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=10 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 02 02 05 46 78 40 E2 8D [08:40:27]Write to MH i2c: E2 0D 00 F1 22 80 0D 02 02 05 00 46 78 40 E2 8D 00 00 04 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 F1 22 00 90 00 87 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 03 02 [08:40:27]Write to MH i2c: E2 08 00 F2 22 80 0D 03 02 00 00 00 00 8F [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 0B 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 0B 00 F2 22 00 B9 B7 BC 65 83 28 0A 6E 90 00 44 [08:40:27]RAPDU: B9 B7 BC 65 83 28 0A 6E 90 00 [08:40:27]wFMCommunicate OK [08:40:27]SAM_PROTO_SignData done [08:40:27]FM_MakeSignedData done [08:40:27]CreateOFDProtocolMessage [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 11 00 00 [08:40:27]Write to MH i2c: E2 08 00 F3 22 80 11 00 00 00 00 00 00 8F [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 17 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 17 00 F3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E6 [08:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:40:27]wFMCommunicate OK [08:40:27]CreateOFDProtocolMessage done [08:40:27]OFDSenderStorePacket 140023 [08:40:27]StoreOFDPacket docnum=140023 [08:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 2F 07 01 93 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FC A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 22 02 00 35 04 06 00 A5 46 78 40 E2 8D B9 B7 BC 65 83 28 0A 6E [08:40:27]CheckFolder [08:40:27]dirname=/storage/ofd_packets [08:40:27]CheckFolder done [08:40:27]ProducePacketName [08:40:27]name=ofd_packets/00140023 [08:40:27]NVStorageSaveData ofd_packets/00140023 [08:40:27]File name is /storage/ofd_packets/00140023 [08:40:27]Write 301 bytes [08:40:27]NVStorageSaveData done [08:40:27]OFDSenderStorePacket done [08:40:27]KKMCreateOFDPacket done [08:40:27]NVStorageSaveData kkm_last_timestamp [08:40:27]File name is /storage/kkm_last_timestamp [08:40:27]Write 4 bytes [08:40:27]NVStorageSaveData done [08:40:27]ExternCall_PrintAddStr [08:40:27]wPrintStart [08:40:27]Write to MH i2c: 01 00 00 F4 22 16 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 07 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 07 00 F4 22 00 00 00 00 00 FF 0F 2B [08:40:27]RasterBufferAndPrint [08:40:27]line Счет N : (1)593877 [08:40:27]line ИНН: 02508201610067 [08:40:27]line Контрольно-Кассовый Чек [08:40:27]line ПРОДАЖА [08:40:27]line ТРК (МРК, ГНК) : 42 [08:40:27]line Товар: 2710124130 [08:40:27]line Аи-92-К-5 [08:40:27]line 7.380 * 67.80 [08:40:27]line = 500.36 [08:40:27]line НДС 12% НСП 1% [08:40:27]line > о реализуемом товаре [08:40:27]line ОКРУГЛЕНИЕ: -0.36 [08:40:27]line ИТОГО: 500.00 [08:40:27]line Внесено: 500.00 [08:40:27]line СДАЧА: 0.00 [08:40:27]line НСП 1% : 4.43 [08:40:27]line НДС 12% : 53.14 [08:40:27]line Наличными: 500.00 [08:40:27]line Безнал.: 0.00 [08:40:27]line Место: АЗС № 136 "Партнер Нефть" [08:40:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:40:27]line СНО: Общий режим [08:40:27]line Чек 40 21.08.2024 08:40 [08:40:27]line Смена: 454 ФФД: 1.0 [08:40:27]line ЗНМ: 0300000067 [08:40:27]line РНМ: 0000000000092569 [08:40:27]line Версия ККМ: 001 [08:40:27]line ФМ: 0000000000871776 [08:40:27]line ФД: 140023 [08:40:27]line ФПД: 181722083811981 [08:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084028&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140023&fm=181722083811981&tin=02508201610067®Number=0000000000092569&sum=50000 [08:40:27]written 0, free lines is 4095 [08:40:27]OFD Sender: Processing packet 140023 [packets to send 137, broken 136] [08:40:27]ProducePacketName [08:40:27]name=ofd_packets/00140023 [08:40:27]OFD Sender: To server: pG, [08:40:27]CommunicateWithHost lk.salyk.kg:30040 [08:40:27]ConnectInit lk.salyk.kg [08:40:27]Connected sock=10 [08:40: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 37 36 0F 01 00 00 35 2F 07 01 93 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FC A7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 22 02 00 35 04 06 00 A5 46 78 40 E2 8D B9 B7 BC 65 83 28 0A 6E [08: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 37 36 4F 00 00 00 A3 C7 47 00 CD C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 22 02 00 F4 03 04 00 8D 4E C5 66 B6 04 01 00 00 34 0C 24 6F F8 DF 6D 70 [08:40:28]CommunicateWithHost err = 0 [08:40:28]CheckOFDResponse [08:40:28]1017 (14) - 77093643461234 [08:40:28]1041 (16) - 0000000000871776 [08:40:28]1040 (4) - 140023 [08:40:28]1012 (4) - 21.08.2024 02:18 [08:40:28]1206 (1) - 0 [08:40:28]OFD Sender: Remove packet 140023 [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00140023 [08:40:28]NVStorageDeleteData [08:40:28]Write to MH i2c: 01 00 00 1F 23 42 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 DA 0C 2F [08:40:28]RasterBufferAndPrint [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]written 0, free lines is 3297 [08:40:28]MH_Cut [08:40:28]Write to MH i2c: D1 01 00 26 23 01 1B [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 01 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 01 00 26 23 00 1A [08:40:28]Write to MH i2c: 01 00 00 27 23 4A [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]OFD Sender: No OFD packet to send [08:40:28]*** Cut start [08:40:28]*** Partial cut [08:40:28]*** CUTSNS_PIN = 1 [08:40:29]*** CUTSNS_PIN = 0 [08:40:29]*** Brake cut motor [08:40:29]Read from MH i2c: 01 [08:40:29]MH_I2C_Read... [08:40:29]*** Stop cut motor [08:40:29]*** Cut end [08:40:29]Read from MH i2c: 01 07 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [08:40:29]process_action close_receipt done [08:40:29]requested_data is exist [08:40:29]produce_requested_data [08:40:29]requested_item fm.sn is exist - process it [08:40:29]wFMCommunicate request_size=4 [08:40:29]MH_SAM_APDU [08:40:29]CAPDU: 80 11 00 00 [08:40:29]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:29]Read from MH i2c: E2 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 17 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [08:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:40:29]wFMCommunicate OK [08:40:29]requested_item fd.num is exist - process it [08:40:29]SAM_PROTO_GetFieldsCounters [08:40:29]wFMCommunicate request_size=4 [08:40:29]MH_SAM_APDU [08:40:29]CAPDU: 80 13 00 00 [08:40:29]Write to MH i2c: E2 08 00 29 23 80 13 00 00 00 00 00 00 C8 [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:29]Read from MH i2c: E2 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 62 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 62 00 29 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [08:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:29]wFMCommunicate OK [08:40:29]SAM_PROTO_GetFieldsCounters done [08:40:29]requested_item shift.num is exist - process it [08:40:29]requested_item shift.opened is exist - process it [08:40:29]req_shift_opened [08:40:29]FM_GetShiftState [08:40:29]SAM_PROTO_GetShiftState [08:40:29]wFMCommunicate request_size=4 [08:40:29]MH_SAM_APDU [08:40:29]CAPDU: 80 13 01 00 [08:40:29]Write to MH i2c: E2 08 00 2A 23 80 13 01 00 00 00 00 00 CA [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:29]Read from MH i2c: E2 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 0E 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: E2 0E 00 2A 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4A [08:40:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:40:29]wFMCommunicate OK [08:40:29]SAM_PROTO_GetShiftState done [08:40:29]FM_GetShiftState done [08:40:29]req_shift_opened done [08:40:29]requested_item shift.open_date is exist - process it [08:40:29]req_shift_open_date [08:40:29]req_shift_open_date done [08:40:29]produce_requested_data done [08:40:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140023,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:40:29]process_action_free close_receipt [08:40:29]json_value_free [08:40:29]json_value_free done [08:40:29]process_json_proto returns [08:40:29]Send response to host [08:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140023,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:40:29]free response buf [08:40:29]execute_script done [08:40:29]execute_script returns [08:40:29]free content buf [08:40:29]Sock 7.Close socket [08:40:29]Sock 7.Thread stoped [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:31]accept exits with 9 [08:41:31]New connection [08:41:31]New thread 3066908004 created [08:41:31]Thread 3066764644 joined [08:41:31]Waiting for new connection... [08:41:31] Sock 9.Parse request [08:41:31]Sock 9.Check first char [08:41:31]Sock 9.First char is OK [08:41:31]request: POST /json_proto HTTP/1.0 [08:41:31]Method: POST [08:41:31]URL: /json_proto [08:41:31]Method is POST - this is cgi request [08:41:31]url: /json_proto [08:41:31]query_string will be loaded in cgi processing [08:41:31]execute_cgi json_proto POST (null) [08:41:31]execute_cgi path=json_proto method=POST [08:41:31]POST find Content-Length [08:41:31]Host: 172.17.45.67:8080 [08:41:31]Content-Length: 663 [08:41:31]Content-Type: application/json [08:41:31] [08:41:31]POST finish read [08:41:31]Found Content-Length = 663 [08:41:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:31]execute_script... [08:41: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)593878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:31]POST & json_proto [08:41:31]process_json_proto [08:41:31]json parsed OK: [08:41:31]protocol is kg_v1.0 [08:41:31]action value=close_receipt [08:41:31]process_action close_receipt [08:41:31]cmd_close_receipt [08:41:31]MH_GetDate [08:41:31]Write to MH i2c: F0 00 00 2B 23 3D [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: F0 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: F0 09 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: F0 09 00 2B 23 00 3E A8 C5 66 5F 7F 2B 66 C6 [08:41:31]GetLastDocTimeStamp 1724229628 [08:41:31]current date 1724229694 [08:41:31]FM_GetShiftState [08:41:31]SAM_PROTO_GetShiftState [08:41:31]wFMCommunicate request_size=4 [08:41:31]MH_SAM_APDU [08:41:31]CAPDU: 80 13 01 00 [08:41:31]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [08:41:31]Write i2c OK [08:41:31]MH_I2C_Read... [08:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:31]Read from MH i2c: E2 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0E 00 [08:41:31]MH_I2C_Read... [08:41:31]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4C [08:41:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:41:31]wFMCommunicate OK [08:41:31]SAM_PROTO_GetShiftState done [08:41:31]FM_GetShiftState done [08:41:31]opened in 1724200467 [08:41:31]opened+sec_in_day 1724286867 [08:41:31]quantity*price = 100035 [08:41:31]sum+1 = 100036 [08:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 41 21.08.2024 08:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140024 ФПД: 134702174896656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140024&fm=134702174896656&tin=02508201610067®Number=0000000000092569&sum=100000 [08:41:32]StoreToDocumentArchive [08:41:32]shift 454 fd 140024 [08:41:32]save to /storage/0454/doc_00140024 [08:41:32]save last doc name /storage/0454/doc_00140024 to /storage/kkm_last_doc_name [08:41:32]save OK [08:41:32]Clear old archive folders... [08:41:32]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:41:32]tlvbuf is B6ECF7C0 [08:41:32]SAM_PROTO_ClearQueue [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 09 00 00 [08:41:32]Write to MH i2c: E2 08 00 39 23 80 09 00 00 00 00 00 00 CE [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [08:41:32]RAPDU: 90 00 [08:41:32]wFMCommunicate OK [08:41:32]SAM_PROTO_ClearQueue done [08:41:32]KKMCreateOFDPacket [08:41:32]OFDProtocolAddRootSTLVToBuf [08:41:32]FM_MakeSignedData [08:41:32]FM_MakeSignedData [08:41:32]SAM_PROTO_SignData [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 0D 01 02 [08:41:32]Write to MH i2c: E2 08 00 3A 23 80 0D 01 02 00 00 00 00 D6 [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [08:41:32]RAPDU: 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=253 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3E A8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 22 02 00 35 04 06 00 7A 82 CB 49 02 10 [08:41:32]Write to MH i2c: E2 00 01 3B 23 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3E A8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 22 02 00 35 04 06 00 7A 82 CB 49 02 10 00 00 8D [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [08:41:32]RAPDU: 90 00 [08:41:32]wFMCommunicate OK [08:41:32]wFMCommunicate request_size=4 [08:41:32]MH_SAM_APDU [08:41:32]CAPDU: 80 0D 03 02 [08:41:32]Write to MH i2c: E2 08 00 3C 23 80 0D 03 02 00 00 00 00 DA [08:41:32]Write i2c OK [08:41:32]MH_I2C_Read... [08:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:32]Read from MH i2c: E2 [08:41:32]MH_I2C_Read... [08:41:32]Read from MH i2c: E2 0B 00 [08:41:32]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 0B 00 3C 23 00 42 CA FE 52 EF 08 85 9C 90 00 4F [08:41:33]RAPDU: 42 CA FE 52 EF 08 85 9C 90 00 [08:41:33]wFMCommunicate OK [08:41:33]SAM_PROTO_SignData done [08:41:33]FM_MakeSignedData done [08:41:33]CreateOFDProtocolMessage [08:41:33]wFMCommunicate request_size=4 [08:41:33]MH_SAM_APDU [08:41:33]CAPDU: 80 11 00 00 [08:41:33]Write to MH i2c: E2 08 00 3D 23 80 11 00 00 00 00 00 00 DA [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:33]Read from MH i2c: E2 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: E2 17 00 3D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [08:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:41:33]wFMCommunicate OK [08:41:33]CreateOFDProtocolMessage done [08:41:33]OFDSenderStorePacket 140024 [08:41:33]StoreOFDPacket docnum=140024 [08:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 7A 9B 00 01 09 4C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3E A8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 22 02 00 35 04 06 00 7A 82 CB 49 02 10 42 CA FE 52 EF 08 85 9C [08:41:33]CheckFolder [08:41:33]dirname=/storage/ofd_packets [08:41:33]CheckFolder done [08:41:33]ProducePacketName [08:41:33]name=ofd_packets/00140024 [08:41:33]NVStorageSaveData ofd_packets/00140024 [08:41:33]File name is /storage/ofd_packets/00140024 [08:41:33]Write 294 bytes [08:41:33]NVStorageSaveData done [08:41:33]OFDSenderStorePacket done [08:41:33]KKMCreateOFDPacket done [08:41:33]NVStorageSaveData kkm_last_timestamp [08:41:33]File name is /storage/kkm_last_timestamp [08:41:33]Write 4 bytes [08:41:33]NVStorageSaveData done [08:41:33]ExternCall_PrintAddStr [08:41:33]wPrintStart [08:41:33]Write to MH i2c: 01 00 00 3E 23 61 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 3E 23 00 00 00 00 00 FF 0F 76 [08:41:33]RasterBufferAndPrint [08:41:33]line Счет N : (1)593878 [08:41:33]line ИНН: 02508201610067 [08:41:33]line Контрольно-Кассовый Чек [08:41:33]line ПРОДАЖА [08:41:33]line ТРК (МРК, ГНК) : 33 [08:41:33]line Товар: 2710124130 [08:41:33]line SU-92 [08:41:33]line 14.540 * 68.80 [08:41:33]line = 1000.35 [08:41:33]line НДС 12% НСП 1% [08:41:33]line > о реализуемом товаре [08:41:33]line ОКРУГЛЕНИЕ: -0.35 [08:41:33]line ИТОГО: 1000.00 [08:41:33]line Внесено: 1000.00 [08:41:33]line СДАЧА: 0.00 [08:41:33]line НСП 1% : 8.85 [08:41:33]line НДС 12% : 106.23 [08:41:33]line Наличными: 1000.00 [08:41:33]line Безнал.: 0.00 [08:41:33]line Место: АЗС № 136 "Партнер Нефть" [08:41:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:41:33]line СНО: Общий режим [08:41:33]line Чек 41 21.08.2024 08:41 [08:41:33]line Смена: 454 ФФД: 1.0 [08:41:33]line ЗНМ: 0300000067 [08:41:33]line РНМ: 0000000000092569 [08:41:33]line Версия ККМ: 001 [08:41:33]line ФМ: 0000000000871776 [08:41:33]line ФД: 140024 [08:41:33]line ФПД: 134702174896656 [08:41:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140024&fm=134702174896656&tin=02508201610067®Number=0000000000092569&sum=100000 [08:41:33]OFD Sender: Processing packet 140024 [packets to send 137, broken 136] [08:41:33]ProducePacketName [08:41:33]name=ofd_packets/00140024 [08:41:33]OFD Sender: To server: pG, [08:41:33]CommunicateWithHost lk.salyk.kg:30040 [08:41:33]ConnectInit lk.salyk.kg [08:41:33]written 0, free lines is 4095 [08:41:33]Connected sock=10 [08:41: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 37 36 08 01 00 00 7A 9B 00 01 09 4C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 3E A8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 22 02 00 35 04 06 00 7A 82 CB 49 02 10 42 CA FE 52 EF 08 85 9C [08:41: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 37 36 4F 00 00 00 87 5D 47 00 3F 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 22 02 00 F4 03 04 00 CF 4E C5 66 B6 04 01 00 00 9E D4 BB 6D 6D EC 19 E4 [08:41:33]CommunicateWithHost err = 0 [08:41:33]CheckOFDResponse [08:41:33]1017 (14) - 77093643461234 [08:41:33]1041 (16) - 0000000000871776 [08:41:33]1040 (4) - 140024 [08:41:33]1012 (4) - 21.08.2024 02:19 [08:41:33]1206 (1) - 0 [08:41:33]OFD Sender: Remove packet 140024 [08:41:33]ProducePacketName [08:41:33]name=ofd_packets/00140024 [08:41:33]NVStorageDeleteData [08:41:33]Write to MH i2c: 01 00 00 69 23 8C [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: 01 07 00 69 23 00 00 00 00 00 CE 0C 6D [08:41:33]RasterBufferAndPrint [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]line [08:41:33]written 0, free lines is 3283 [08:41:33]MH_Cut [08:41:33]Write to MH i2c: D1 01 00 70 23 01 65 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 01 00 [08:41:33]MH_I2C_Read... [08:41:33]Read from MH i2c: D1 01 00 70 23 00 64 [08:41:33]Write to MH i2c: 01 00 00 71 23 94 [08:41:33]Write i2c OK [08:41:33]MH_I2C_Read... [08:41:34]OFD Sender: No OFD packet to send [08:41:34]*** Cut start [08:41:34]*** Partial cut [08:41:34]*** CUTSNS_PIN = 1 [08:41:34]*** CUTSNS_PIN = 0 [08:41:34]*** Brake cut motor [08:41:35]Read from MH i2c: 01 [08:41:35]MH_I2C_Read... [08:41:35]*** Stop cut motor [08:41:35]*** Cut end [08:41:35]Read from MH i2c: 01 07 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: 01 07 00 71 23 00 00 00 00 00 FF 0F A9 [08:41:35]process_action close_receipt done [08:41:35]requested_data is exist [08:41:35]produce_requested_data [08:41:35]requested_item fm.sn is exist - process it [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 11 00 00 [08:41:35]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [08:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:41:35]wFMCommunicate OK [08:41:35]requested_item fd.num is exist - process it [08:41:35]SAM_PROTO_GetFieldsCounters [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 13 00 00 [08:41:35]Write to MH i2c: E2 08 00 73 23 80 13 00 00 00 00 00 00 12 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 62 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 62 00 73 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [08:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:35]wFMCommunicate OK [08:41:35]SAM_PROTO_GetFieldsCounters done [08:41:35]requested_item shift.num is exist - process it [08:41:35]requested_item shift.opened is exist - process it [08:41:35]req_shift_opened [08:41:35]FM_GetShiftState [08:41:35]SAM_PROTO_GetShiftState [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 13 01 00 [08:41:35]Write to MH i2c: E2 08 00 74 23 80 13 01 00 00 00 00 00 14 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0E 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0E 00 74 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 94 [08:41:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:41:35]wFMCommunicate OK [08:41:35]SAM_PROTO_GetShiftState done [08:41:35]FM_GetShiftState done [08:41:35]req_shift_opened done [08:41:35]requested_item shift.open_date is exist - process it [08:41:35]req_shift_open_date [08:41:35]req_shift_open_date done [08:41:35]produce_requested_data done [08:41:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140024,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:41:35]process_action_free close_receipt [08:41:35]json_value_free [08:41:35]json_value_free done [08:41:35]process_json_proto returns [08:41:35]Send response to host [08:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140024,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:41:35]free response buf [08:41:35]execute_script done [08:41:35]execute_script returns [08:41:35]free content buf [08:41:35]Sock 9.Close socket [08:41:35]Sock 9.Thread stoped [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:45]int [08:47:45]Write to MH i2c: 01 00 00 75 23 98 [08:47:45]*** FLAG_PRN_KEY set [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 75 23 00 08 00 00 00 FF 0F B5 [08:47:45]state=0 [08:47:45]Key pressed [08:47:45]Feed [08:47:45]Write to MH i2c: D8 00 00 76 23 70 [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: D8 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: D8 01 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: D8 01 00 76 23 00 71 [08:47:45]int [08:47:45]Write to MH i2c: 01 00 00 77 23 9A [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 77 23 00 48 00 00 00 3C 00 25 [08:47:45]state=2 [08:47:45]Key pressed [08:47:45]int [08:47:45]Write to MH i2c: 01 00 00 78 23 9B [08:47:45]*** FLAG_PRN_KEY reset [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: 01 07 00 78 23 00 00 00 00 00 F7 0F A8 [08:47:45]state=2 [08:47:45]Stop feed [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:23]accept exits with 7 [08:49:23]New connection [08:49:23]New thread 3066764644 created [08:49:23]Thread 3066908004 joined [08:49:23]Waiting for new connection... [08:49:23] Sock 7.Parse request [08:49:23]Sock 7.Check first char [08:49:23]Sock 7.First char is OK [08:49:23]request: POST /json_proto HTTP/1.0 [08:49:23]Method: POST [08:49:23]URL: /json_proto [08:49:23]Method is POST - this is cgi request [08:49:23]url: /json_proto [08:49:23]query_string will be loaded in cgi processing [08:49:23]execute_cgi json_proto POST (null) [08:49:23]execute_cgi path=json_proto method=POST [08:49:23]POST find Content-Length [08:49:23]Host: 172.17.45.67:8080 [08:49:23]Content-Length: 682 [08:49:23]Content-Type: application/json [08:49:23] [08:49:23]POST finish read [08:49:23]Found Content-Length = 682 [08:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:23]execute_script... [08:49: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)593879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:23]POST & json_proto [08:49:23]process_json_proto [08:49:23]json parsed OK: [08:49:23]protocol is kg_v1.0 [08:49:23]action value=close_receipt [08:49:23]process_action close_receipt [08:49:23]cmd_close_receipt [08:49:23]MH_GetDate [08:49:23]Write to MH i2c: F0 00 00 79 23 8B [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: F0 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: F0 09 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: F0 09 00 79 23 00 16 AA C5 66 5F 7F 2B 66 EE [08:49:23]GetLastDocTimeStamp 1724229694 [08:49:23]current date 1724230166 [08:49:23]FM_GetShiftState [08:49:23]SAM_PROTO_GetShiftState [08:49:23]wFMCommunicate request_size=4 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 13 01 00 [08:49:23]Write to MH i2c: E2 08 00 7A 23 80 13 01 00 00 00 00 00 1A [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:23]Read from MH i2c: E2 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 0E 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 0E 00 7A 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9A [08:49:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:49:23]wFMCommunicate OK [08:49:23]SAM_PROTO_GetShiftState done [08:49:23]FM_GetShiftState done [08:49:23]opened in 1724200467 [08:49:23]opened+sec_in_day 1724286867 [08:49:23]quantity*price = 110039 [08:49:23]sum+1 = 110040 [08:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 42 21.08.2024 08:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140025 ФПД: 206794863228496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140025&fm=206794863228496&tin=02508201610067®Number=0000000000092569&sum=110000 [08:49:25]StoreToDocumentArchive [08:49:25]shift 454 fd 140025 [08:49:25]save to /storage/0454/doc_00140025 [08:49:25]save last doc name /storage/0454/doc_00140025 to /storage/kkm_last_doc_name [08:49:25]save OK [08:49:25]Clear old archive folders... [08:49:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:25]tlvbuf is B6D9D390 [08:49:25]SAM_PROTO_ClearQueue [08:49:25]wFMCommunicate request_size=4 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 09 00 00 [08:49:25]Write to MH i2c: E2 08 00 87 23 80 09 00 00 00 00 00 00 1C [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [08:49:25]RAPDU: 90 00 [08:49:25]wFMCommunicate OK [08:49:25]SAM_PROTO_ClearQueue done [08:49:25]KKMCreateOFDPacket [08:49:25]OFDProtocolAddRootSTLVToBuf [08:49:25]FM_MakeSignedData [08:49:25]FM_MakeSignedData [08:49:25]SAM_PROTO_SignData [08:49:25]wFMCommunicate request_size=4 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 0D 01 02 [08:49:25]Write to MH i2c: E2 08 00 88 23 80 0D 01 02 00 00 00 00 24 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [08:49:25]RAPDU: 90 00 [08:49:25]wFMCommunicate OK [08:49:25]wFMCommunicate request_size=255 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 16 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 22 02 00 35 04 06 00 BC [08:49:25]Write to MH i2c: E2 02 01 89 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 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 16 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 22 02 00 35 04 06 00 BC 00 00 0D [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 89 23 00 90 00 20 [08:49:25]RAPDU: 90 00 [08:49:25]wFMCommunicate OK [08:49:25]wFMCommunicate request_size=10 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 0D 02 02 05 14 2E 5D 36 50 [08:49:25]Write to MH i2c: E2 0D 00 8A 23 80 0D 02 02 05 00 14 2E 5D 36 50 00 00 56 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [08:49:25]RAPDU: 90 00 [08:49:25]wFMCommunicate OK [08:49:25]wFMCommunicate request_size=4 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 0D 03 02 [08:49:25]Write to MH i2c: E2 08 00 8B 23 80 0D 03 02 00 00 00 00 29 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 0B 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 0B 00 8B 23 00 C1 0F 28 48 9C AA 45 FA 90 00 EF [08:49:25]RAPDU: C1 0F 28 48 9C AA 45 FA 90 00 [08:49:25]wFMCommunicate OK [08:49:25]SAM_PROTO_SignData done [08:49:25]FM_MakeSignedData done [08:49:25]CreateOFDProtocolMessage [08:49:25]wFMCommunicate request_size=4 [08:49:25]MH_SAM_APDU [08:49:25]CAPDU: 80 11 00 00 [08:49:25]Write to MH i2c: E2 08 00 8C 23 80 11 00 00 00 00 00 00 29 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:25]Read from MH i2c: E2 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 17 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: E2 17 00 8C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [08:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:25]wFMCommunicate OK [08:49:25]CreateOFDProtocolMessage done [08:49:25]OFDSenderStorePacket 140025 [08:49:25]StoreOFDPacket docnum=140025 [08:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F0 A1 07 01 5E 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 16 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 22 02 00 35 04 06 00 BC 14 2E 5D 36 50 C1 0F 28 48 9C AA 45 FA [08:49:25]CheckFolder [08:49:25]dirname=/storage/ofd_packets [08:49:25]CheckFolder done [08:49:25]ProducePacketName [08:49:25]name=ofd_packets/00140025 [08:49:25]NVStorageSaveData ofd_packets/00140025 [08:49:25]File name is /storage/ofd_packets/00140025 [08:49:25]Write 301 bytes [08:49:25]NVStorageSaveData done [08:49:25]OFDSenderStorePacket done [08:49:25]KKMCreateOFDPacket done [08:49:25]NVStorageSaveData kkm_last_timestamp [08:49:25]File name is /storage/kkm_last_timestamp [08:49:25]Write 4 bytes [08:49:25]NVStorageSaveData done [08:49:25]ExternCall_PrintAddStr [08:49:25]wPrintStart [08:49:25]Write to MH i2c: 01 00 00 8D 23 B0 [08:49:25]Write i2c OK [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: 01 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: 01 07 00 [08:49:25]MH_I2C_Read... [08:49:25]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 FF 0F C5 [08:49:25]RasterBufferAndPrint [08:49:25]line Счет N : (1)593879 [08:49:25]line ИНН: 02508201610067 [08:49:25]line Контрольно-Кассовый Чек [08:49:25]line ПРОДАЖА [08:49:25]line ТРК (МРК, ГНК) : 52 [08:49:25]line Товар: 2710124130 [08:49:25]line Аи-92-К-5 [08:49:25]line 16.230 * 67.80 [08:49:25]line = 1100.39 [08:49:25]line НДС 12% НСП 1% [08:49:25]line > о реализуемом товаре [08:49:25]line ОКРУГЛЕНИЕ: -0.39 [08:49:25]line ИТОГО: 1100.00 [08:49:25]line Внесено: 1100.00 [08:49:25]line СДАЧА: 0.00 [08:49:25]line НСП 1% : 9.74 [08:49:25]line НДС 12% : 116.86 [08:49:25]line Наличными: 1100.00 [08:49:25]line Безнал.: 0.00 [08:49:25]line Место: АЗС № 136 "Партнер Нефть" [08:49:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:49:25]line СНО: Общий режим [08:49:25]line Чек 42 21.08.2024 08:49 [08:49:25]line Смена: 454 ФФД: 1.0 [08:49:25]line ЗНМ: 0300000067 [08:49:25]line РНМ: 0000000000092569 [08:49:25]line Версия ККМ: 001 [08:49:25]line ФМ: 0000000000871776 [08:49:25]line ФД: 140025 [08:49:25]line ФПД: 206794863228496 [08:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140025&fm=206794863228496&tin=02508201610067®Number=0000000000092569&sum=110000 [08:49:25]written 0, free lines is 4095 [08:49:25]OFD Sender: Processing packet 140025 [packets to send 137, broken 136] [08:49:25]ProducePacketName [08:49:25]name=ofd_packets/00140025 [08:49:25]OFD Sender: To server: pG, [08:49:25]CommunicateWithHost lk.salyk.kg:30040 [08:49:25]ConnectInit lk.salyk.kg [08:49:26]Connected sock=11 [08:49:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F0 A1 07 01 5E 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 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 16 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 22 02 00 35 04 06 00 BC 14 2E 5D 36 50 C1 0F 28 48 9C AA 45 FA [08:49: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 37 36 4F 00 00 00 52 09 47 00 E2 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 22 02 00 F4 03 04 00 A7 50 C5 66 B6 04 01 00 00 48 27 4E 71 D2 F9 BE D1 [08:49:26]CommunicateWithHost err = 0 [08:49:26]CheckOFDResponse [08:49:26]1017 (14) - 77093643461234 [08:49:26]1041 (16) - 0000000000871776 [08:49:26]1040 (4) - 140025 [08:49:26]1012 (4) - 21.08.2024 02:27 [08:49:26]1206 (1) - 0 [08:49:26]OFD Sender: Remove packet 140025 [08:49:26]ProducePacketName [08:49:26]name=ofd_packets/00140025 [08:49:26]NVStorageDeleteData [08:49:26]Write to MH i2c: 01 00 00 B8 23 DB [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: 01 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: 01 07 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: 01 07 00 B8 23 00 00 00 00 00 DF 0C CD [08:49:26]RasterBufferAndPrint [08:49:26]line [08:49:26]line [08:49:26]line [08:49:26]line [08:49:26]line [08:49:26]written 0, free lines is 3300 [08:49:26]MH_Cut [08:49:26]Write to MH i2c: D1 01 00 BF 23 01 B4 [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: D1 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: D1 01 00 [08:49:26]MH_I2C_Read... [08:49:26]Read from MH i2c: D1 01 00 BF 23 00 B3 [08:49:26]Write to MH i2c: 01 00 00 C0 23 E3 [08:49:26]Write i2c OK [08:49:26]MH_I2C_Read... [08:49:26]OFD Sender: No OFD packet to send [08:49:27]*** Cut start [08:49:27]*** Partial cut [08:49:27]*** CUTSNS_PIN = 1 [08:49:27]*** CUTSNS_PIN = 0 [08:49:27]*** Brake cut motor [08:49:27]Read from MH i2c: 01 [08:49:27]MH_I2C_Read... [08:49:27]*** Stop cut motor [08:49:27]*** Cut end [08:49:27]Read from MH i2c: 01 07 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 FF 0F F8 [08:49:27]process_action close_receipt done [08:49:27]requested_data is exist [08:49:27]produce_requested_data [08:49:27]requested_item fm.sn is exist - process it [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 11 00 00 [08:49:27]Write to MH i2c: E2 08 00 C1 23 80 11 00 00 00 00 00 00 5E [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 17 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 17 00 C1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [08:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:27]wFMCommunicate OK [08:49:27]requested_item fd.num is exist - process it [08:49:27]SAM_PROTO_GetFieldsCounters [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 13 00 00 [08:49:27]Write to MH i2c: E2 08 00 C2 23 80 13 00 00 00 00 00 00 61 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 62 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 62 00 C2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [08:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:27]wFMCommunicate OK [08:49:27]SAM_PROTO_GetFieldsCounters done [08:49:27]requested_item shift.num is exist - process it [08:49:27]requested_item shift.opened is exist - process it [08:49:27]req_shift_opened [08:49:27]FM_GetShiftState [08:49:27]SAM_PROTO_GetShiftState [08:49:27]wFMCommunicate request_size=4 [08:49:27]MH_SAM_APDU [08:49:27]CAPDU: 80 13 01 00 [08:49:27]Write to MH i2c: E2 08 00 C3 23 80 13 01 00 00 00 00 00 63 [08:49:27]Write i2c OK [08:49:27]MH_I2C_Read... [08:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:27]Read from MH i2c: E2 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 0E 00 [08:49:27]MH_I2C_Read... [08:49:27]Read from MH i2c: E2 0E 00 C3 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [08:49:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:49:27]wFMCommunicate OK [08:49:27]SAM_PROTO_GetShiftState done [08:49:27]FM_GetShiftState done [08:49:27]req_shift_opened done [08:49:27]requested_item shift.open_date is exist - process it [08:49:27]req_shift_open_date [08:49:27]req_shift_open_date done [08:49:27]produce_requested_data done [08:49:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140025,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:49:27]process_action_free close_receipt [08:49:27]json_value_free [08:49:27]json_value_free done [08:49:27]process_json_proto returns [08:49:27]Send response to host [08:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140025,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:49:27]free response buf [08:49:27]execute_script done [08:49:27]execute_script returns [08:49:27]free content buf [08:49:27]Sock 7.Close socket [08:49:27]Sock 7.Thread stoped [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:37]accept exits with 9 [08:49:37]New connection [08:49:37]New thread 3066908004 created [08:49:37]Thread 3066764644 joined [08:49:37]Waiting for new connection... [08:49:37] Sock 9.Parse request [08:49:37]Sock 9.Check first char [08:49:37]Sock 9.First char is OK [08:49:37]request: POST /json_proto HTTP/1.0 [08:49:37]Method: POST [08:49:37]URL: /json_proto [08:49:37]Method is POST - this is cgi request [08:49:37]url: /json_proto [08:49:37]query_string will be loaded in cgi processing [08:49:37]execute_cgi json_proto POST (null) [08:49:37]execute_cgi path=json_proto method=POST [08:49:37]POST find Content-Length [08:49:37]Host: 172.17.45.67:8080 [08:49:37]Content-Length: 677 [08:49:37]Content-Type: application/json [08:49:37] [08:49:37]POST finish read [08:49:37]Found Content-Length = 677 [08:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:37]execute_script... [08:49: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)593880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:37]POST & json_proto [08:49:37]process_json_proto [08:49:37]json parsed OK: [08:49:37]protocol is kg_v1.0 [08:49:37]action value=close_receipt [08:49:37]process_action close_receipt [08:49:37]cmd_close_receipt [08:49:37]MH_GetDate [08:49:37]Write to MH i2c: F0 00 00 C4 23 D6 [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 09 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 09 00 C4 23 00 24 AA C5 66 5F 7F 2B 66 47 [08:49:37]GetLastDocTimeStamp 1724230166 [08:49:37]current date 1724230180 [08:49:37]FM_GetShiftState [08:49:37]SAM_PROTO_GetShiftState [08:49:37]wFMCommunicate request_size=4 [08:49:37]MH_SAM_APDU [08:49:37]CAPDU: 80 13 01 00 [08:49:37]Write to MH i2c: E2 08 00 C5 23 80 13 01 00 00 00 00 00 65 [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:37]Read from MH i2c: E2 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 C5 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E5 [08:49:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:49:37]wFMCommunicate OK [08:49:37]SAM_PROTO_GetShiftState done [08:49:37]FM_GetShiftState done [08:49:37]opened in 1724200467 [08:49:37]opened+sec_in_day 1724286867 [08:49:37]quantity*price = 40002 [08:49:37]sum+1 = 40003 [08:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 43 21.08.2024 08:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140026 ФПД: 60464141233521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140026&fm=60464141233521&tin=02508201610067®Number=0000000000092569&sum=40000 [08:49:38]StoreToDocumentArchive [08:49:38]shift 454 fd 140026 [08:49:38]save to /storage/0454/doc_00140026 [08:49:38]save last doc name /storage/0454/doc_00140026 to /storage/kkm_last_doc_name [08:49:38]save OK [08:49:38]Clear old archive folders... [08:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:38]tlvbuf is 00A07420 [08:49:38]SAM_PROTO_ClearQueue [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 09 00 00 [08:49:38]Write to MH i2c: E2 08 00 D2 23 80 09 00 00 00 00 00 00 67 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_ClearQueue done [08:49:38]KKMCreateOFDPacket [08:49:38]OFDProtocolAddRootSTLVToBuf [08:49:38]FM_MakeSignedData [08:49:38]FM_MakeSignedData [08:49:38]SAM_PROTO_SignData [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 0D 01 02 [08:49:38]Write to MH i2c: E2 08 00 D3 23 80 0D 01 02 00 00 00 00 6F [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]wFMCommunicate request_size=255 [08:49:38]MH_SAM_APDU [08:49: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 24 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 22 02 00 35 04 06 00 36 [08:49:38]Write to MH i2c: E2 02 01 D4 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 24 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 22 02 00 35 04 06 00 36 00 00 1C [08:49:38]Write i2c OK [08:49:38]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 D4 23 00 90 00 6B [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 FD E7 A8 ED 71 [08:49:39]Write to MH i2c: E2 0D 00 D5 23 80 0D 02 02 05 00 FD E7 A8 ED 71 00 00 66 [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 D5 23 00 90 00 6C [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 D6 23 80 0D 03 02 00 00 00 00 74 [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 D6 23 00 0B 06 EF A5 AD 50 C2 56 90 00 2F [08:49:39]RAPDU: 0B 06 EF A5 AD 50 C2 56 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 D7 23 80 11 00 00 00 00 00 00 74 [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 D7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [08:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:39]wFMCommunicate OK [08:49:39]CreateOFDProtocolMessage done [08:49:39]OFDSenderStorePacket 140026 [08:49:39]StoreOFDPacket docnum=140026 [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 37 36 0F 01 00 00 8C 44 07 01 80 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 24 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 22 02 00 35 04 06 00 36 FD E7 A8 ED 71 0B 06 EF A5 AD 50 C2 56 [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/00140026 [08:49:39]NVStorageSaveData ofd_packets/00140026 [08:49:39]File name is /storage/ofd_packets/00140026 [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 D8 23 FB [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 D8 23 00 00 00 00 00 FF 0F 10 [08:49:39]RasterBufferAndPrint [08:49:39]line Счет N : (1)593880 [08:49:39]line ИНН: 02508201610067 [08:49:39]line Контрольно-Кассовый Чек [08:49:39]line ПРОДАЖА [08:49:39]line ТРК (МРК, ГНК) : 42 [08:49:39]line Товар: 2710124130 [08:49:39]line Аи-92-К-5 [08:49:39]line 5.900 * 67.80 [08:49:39]line = 400.02 [08:49:39]line НДС 12% НСП 1% [08:49:39]line > о реализуемом товаре [08:49:39]line ОКРУГЛЕНИЕ: -0.02 [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 Место: АЗС № 136 "Партнер Нефть" [08:49:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:49:39]line СНО: Общий режим [08:49:39]line Чек 43 21.08.2024 08:49 [08:49:39]line Смена: 454 ФФД: 1.0 [08:49:39]line ЗНМ: 0300000067 [08:49:39]line РНМ: 0000000000092569 [08:49:39]line Версия ККМ: 001 [08:49:39]line ФМ: 0000000000871776 [08:49:39]line ФД: 140026 [08:49:39]line ФПД: 60464141233521 [08:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T084940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140026&fm=60464141233521&tin=02508201610067®Number=0000000000092569&sum=40000 [08:49:39]written 0, free lines is 4095 [08:49:39]OFD Sender: Processing packet 140026 [packets to send 137, broken 136] [08:49:39]ProducePacketName [08:49:39]name=ofd_packets/00140026 [08:49:39]OFD Sender: To server: pG, [08:49:39]CommunicateWithHost lk.salyk.kg:30040 [08:49:39]ConnectInit lk.salyk.kg [08:49:39]Connected sock=10 [08:49: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 37 36 0F 01 00 00 8C 44 07 01 80 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 24 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 22 02 00 35 04 06 00 36 FD E7 A8 ED 71 0B 06 EF A5 AD 50 C2 56 [08:49: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 37 36 4F 00 00 00 55 7A 47 00 87 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 37 36 10 04 04 00 FA 22 02 00 F4 03 04 00 B5 50 C5 66 B6 04 01 00 00 42 C5 17 C8 42 7B 81 AC [08:49:39]CommunicateWithHost err = 0 [08:49:39]CheckOFDResponse [08:49:39]1017 (14) - 77093643461234 [08:49:39]1041 (16) - 0000000000871776 [08:49:39]1040 (4) - 140026 [08:49:39]1012 (4) - 21.08.2024 02:28 [08:49:39]1206 (1) - 0 [08:49:39]OFD Sender: Remove packet 140026 [08:49:39]ProducePacketName [08:49:39]name=ofd_packets/00140026 [08:49:39]NVStorageDeleteData [08:49:40]Write to MH i2c: 01 00 00 03 24 27 [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 03 24 00 00 00 00 00 CD 0C 07 [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 3284 [08:49:40]MH_Cut [08:49:40]Write to MH i2c: D1 01 00 0A 24 01 00 [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 0A 24 00 FF [08:49:40]Write to MH i2c: 01 00 00 0B 24 2F [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]OFD Sender: No OFD packet to send [08:49:40]*** Cut start [08:49:40]*** Partial cut [08:49:40]*** CUTSNS_PIN = 1 [08:49:40]*** CUTSNS_PIN = 0 [08:49:41]*** Brake cut motor [08:49:41]Read from MH i2c: 01 [08:49:41]MH_I2C_Read... [08:49:41]*** Stop cut motor [08:49:41]*** Cut end [08:49:41]Read from MH i2c: 01 07 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: 01 07 00 0B 24 00 00 00 00 00 FF 0F 44 [08:49:41]process_action close_receipt done [08:49:41]requested_data is exist [08:49:41]produce_requested_data [08:49:41]requested_item fm.sn is exist - process it [08:49:41]wFMCommunicate request_size=4 [08:49:41]MH_SAM_APDU [08:49:41]CAPDU: 80 11 00 00 [08:49:41]Write to MH i2c: E2 08 00 0C 24 80 11 00 00 00 00 00 00 AA [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:41]Read from MH i2c: E2 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 17 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 17 00 0C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [08:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:49:41]wFMCommunicate OK [08:49:41]requested_item fd.num is exist - process it [08:49:41]SAM_PROTO_GetFieldsCounters [08:49:41]wFMCommunicate request_size=4 [08:49:41]MH_SAM_APDU [08:49:41]CAPDU: 80 13 00 00 [08:49:41]Write to MH i2c: E2 08 00 0D 24 80 13 00 00 00 00 00 00 AD [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:41]Read from MH i2c: E2 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 62 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 62 00 0D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [08:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:41]wFMCommunicate OK [08:49:41]SAM_PROTO_GetFieldsCounters done [08:49:41]requested_item shift.num is exist - process it [08:49:41]requested_item shift.opened is exist - process it [08:49:41]req_shift_opened [08:49:41]FM_GetShiftState [08:49:41]SAM_PROTO_GetShiftState [08:49:41]wFMCommunicate request_size=4 [08:49:41]MH_SAM_APDU [08:49:41]CAPDU: 80 13 01 00 [08:49:41]Write to MH i2c: E2 08 00 0E 24 80 13 01 00 00 00 00 00 AF [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:41]Read from MH i2c: E2 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 0E 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 0E 00 0E 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2F [08:49:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:49:41]wFMCommunicate OK [08:49:41]SAM_PROTO_GetShiftState done [08:49:41]FM_GetShiftState done [08:49:41]req_shift_opened done [08:49:41]requested_item shift.open_date is exist - process it [08:49:41]req_shift_open_date [08:49:41]req_shift_open_date done [08:49:41]produce_requested_data done [08:49:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140026,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:49:41]process_action_free close_receipt [08:49:41]json_value_free [08:49:41]json_value_free done [08:49:41]process_json_proto returns [08:49:41]Send response to host [08:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140026,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:49:41]free response buf [08:49:41]execute_script done [08:49:41]execute_script returns [08:49:41]free content buf [08:49:41]Sock 9.Close socket [08:49:41]Sock 9.Thread stoped [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:43]accept exits with 7 [08:50:43]New connection [08:50:43]New thread 3066764644 created [08:50:43]Thread 3066908004 joined [08:50:43]Waiting for new connection... [08:50:43] Sock 7.Parse request [08:50:43]Sock 7.Check first char [08:50:43]Sock 7.First char is OK [08:50:43]request: POST /json_proto HTTP/1.0 [08:50:43]Method: POST [08:50:43]URL: /json_proto [08:50:43]Method is POST - this is cgi request [08:50:43]url: /json_proto [08:50:43]query_string will be loaded in cgi processing [08:50:43]execute_cgi json_proto POST (null) [08:50:43]execute_cgi path=json_proto method=POST [08:50:43]POST find Content-Length [08:50:43]Host: 172.17.45.67:8080 [08:50:43]Content-Length: 677 [08:50:43]Content-Type: application/json [08:50:43] [08:50:43]POST finish read [08:50:43]Found Content-Length = 677 [08:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:43]execute_script... [08:50: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)593881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:43]POST & json_proto [08:50:43]process_json_proto [08:50:43]json parsed OK: [08:50:43]protocol is kg_v1.0 [08:50:43]action value=close_receipt [08:50:43]process_action close_receipt [08:50:43]cmd_close_receipt [08:50:43]MH_GetDate [08:50:43]Write to MH i2c: F0 00 00 0F 24 22 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: F0 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: F0 09 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: F0 09 00 0F 24 00 66 AA C5 66 5F 7F 2B 66 D5 [08:50:43]GetLastDocTimeStamp 1724230180 [08:50:43]current date 1724230246 [08:50:43]FM_GetShiftState [08:50:43]SAM_PROTO_GetShiftState [08:50:43]wFMCommunicate request_size=4 [08:50:43]MH_SAM_APDU [08:50:43]CAPDU: 80 13 01 00 [08:50:43]Write to MH i2c: E2 08 00 10 24 80 13 01 00 00 00 00 00 B1 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:43]Read from MH i2c: E2 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0E 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: E2 0E 00 10 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 31 [08:50:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:50:43]wFMCommunicate OK [08:50:43]SAM_PROTO_GetShiftState done [08:50:43]FM_GetShiftState done [08:50:43]opened in 1724200467 [08:50:43]opened+sec_in_day 1724286867 [08:50:43]quantity*price = 50036 [08:50:43]sum+1 = 50037 [08:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 44 21.08.2024 08:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140027 ФПД: 265171392172106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085046&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140027&fm=265171392172106&tin=02508201610067®Number=0000000000092569&sum=50000 [08:50:44]StoreToDocumentArchive [08:50:44]shift 454 fd 140027 [08:50:44]save to /storage/0454/doc_00140027 [08:50:44]save last doc name /storage/0454/doc_00140027 to /storage/kkm_last_doc_name [08:50:44]save OK [08:50:44]Clear old archive folders... [08:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:44]tlvbuf is 00AEE560 [08:50:44]SAM_PROTO_ClearQueue [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 09 00 00 [08:50:44]Write to MH i2c: E2 08 00 1D 24 80 09 00 00 00 00 00 00 B3 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:44]Read from MH i2c: E2 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 03 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 03 00 1D 24 00 90 00 B5 [08:50:44]RAPDU: 90 00 [08:50:44]wFMCommunicate OK [08:50:44]SAM_PROTO_ClearQueue done [08:50:44]KKMCreateOFDPacket [08:50:44]OFDProtocolAddRootSTLVToBuf [08:50:44]FM_MakeSignedData [08:50:44]FM_MakeSignedData [08:50:44]SAM_PROTO_SignData [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 0D 01 02 [08:50:44]Write to MH i2c: E2 08 00 1E 24 80 0D 01 02 00 00 00 00 BB [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:44]Read from MH i2c: E2 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 03 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 03 00 1E 24 00 90 00 B6 [08:50:44]RAPDU: 90 00 [08:50:44]wFMCommunicate OK [08:50:44]wFMCommunicate request_size=255 [08:50:44]MH_SAM_APDU [08:50: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 66 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 22 02 00 35 04 06 00 F1 [08:50:44]Write to MH i2c: E2 02 01 1F 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 66 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 22 02 00 35 04 06 00 F1 00 00 82 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 1F 24 00 90 00 B7 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=10 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 02 02 05 2C 06 A2 90 4A [08:50:45]Write to MH i2c: E2 0D 00 20 24 80 0D 02 02 05 00 2C 06 A2 90 4A 00 00 76 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 03 02 [08:50:45]Write to MH i2c: E2 08 00 21 24 80 0D 03 02 00 00 00 00 C0 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 21 24 00 BD 68 85 D9 94 DB A8 46 90 00 A1 [08:50:45]RAPDU: BD 68 85 D9 94 DB A8 46 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_SignData done [08:50:45]FM_MakeSignedData done [08:50:45]CreateOFDProtocolMessage [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 11 00 00 [08:50:45]Write to MH i2c: E2 08 00 22 24 80 11 00 00 00 00 00 00 C0 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 22 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [08:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:50:45]wFMCommunicate OK [08:50:45]CreateOFDProtocolMessage done [08:50:45]OFDSenderStorePacket 140027 [08:50:45]StoreOFDPacket docnum=140027 [08:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C 3C 07 01 74 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 66 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 22 02 00 35 04 06 00 F1 2C 06 A2 90 4A BD 68 85 D9 94 DB A8 46 [08:50:45]CheckFolder [08:50:45]dirname=/storage/ofd_packets [08:50:45]CheckFolder done [08:50:45]ProducePacketName [08:50:45]name=ofd_packets/00140027 [08:50:45]NVStorageSaveData ofd_packets/00140027 [08:50:45]File name is /storage/ofd_packets/00140027 [08:50:45]Write 301 bytes [08:50:45]NVStorageSaveData done [08:50:45]OFDSenderStorePacket done [08:50:45]KKMCreateOFDPacket done [08:50:45]NVStorageSaveData kkm_last_timestamp [08:50:45]File name is /storage/kkm_last_timestamp [08:50:45]Write 4 bytes [08:50:45]NVStorageSaveData done [08:50:45]ExternCall_PrintAddStr [08:50:45]wPrintStart [08:50:45]Write to MH i2c: 01 00 00 23 24 47 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 23 24 00 00 00 00 00 FF 0F 5C [08:50:45]RasterBufferAndPrint [08:50:45]line Счет N : (1)593881 [08:50:45]line ИНН: 02508201610067 [08:50:45]line Контрольно-Кассовый Чек [08:50:45]line ПРОДАЖА [08:50:45]line ТРК (МРК, ГНК) : 62 [08:50:45]line Товар: 2710124130 [08:50:45]line Аи-92-К-5 [08:50:45]line 7.380 * 67.80 [08:50:45]line = 500.36 [08:50:45]line НДС 12% НСП 1% [08:50:45]line > о реализуемом товаре [08:50:45]line ОКРУГЛЕНИЕ: -0.36 [08:50:45]line ИТОГО: 500.00 [08:50:45]line Внесено: 500.00 [08:50:45]line СДАЧА: 0.00 [08:50:45]line НСП 1% : 4.43 [08:50:45]line НДС 12% : 53.14 [08:50:45]line Наличными: 500.00 [08:50:45]line Безнал.: 0.00 [08:50:45]line Место: АЗС № 136 "Партнер Нефть" [08:50:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:50:45]line СНО: Общий режим [08:50:45]line Чек 44 21.08.2024 08:50 [08:50:45]line Смена: 454 ФФД: 1.0 [08:50:45]line ЗНМ: 0300000067 [08:50:45]line РНМ: 0000000000092569 [08:50:45]line Версия ККМ: 001 [08:50:45]line ФМ: 0000000000871776 [08:50:45]line ФД: 140027 [08:50:45]line ФПД: 265171392172106 [08:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085046&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140027&fm=265171392172106&tin=02508201610067®Number=0000000000092569&sum=50000 [08:50:45]OFD Sender: Processing packet 140027 [packets to send 137, broken 136] [08:50:45]ProducePacketName [08:50:45]name=ofd_packets/00140027 [08:50:45]OFD Sender: To server: pG, [08:50:45]CommunicateWithHost lk.salyk.kg:30040 [08:50:45]ConnectInit lk.salyk.kg [08:50:45]written 0, free lines is 4095 [08:50:45]Connected sock=10 [08:50: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 37 36 0F 01 00 00 7C 3C 07 01 74 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 66 AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 22 02 00 35 04 06 00 F1 2C 06 A2 90 4A BD 68 85 D9 94 DB A8 46 [08:50: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 37 36 4F 00 00 00 83 09 47 00 0D 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 37 36 10 04 04 00 FB 22 02 00 F4 03 04 00 F7 50 C5 66 B6 04 01 00 00 19 34 98 CB F0 2A 04 54 [08:50:46]CommunicateWithHost err = 0 [08:50:46]CheckOFDResponse [08:50:46]1017 (14) - 77093643461234 [08:50:46]1041 (16) - 0000000000871776 [08:50:46]1040 (4) - 140027 [08:50:46]1012 (4) - 21.08.2024 02:29 [08:50:46]1206 (1) - 0 [08:50:46]OFD Sender: Remove packet 140027 [08:50:46]ProducePacketName [08:50:46]name=ofd_packets/00140027 [08:50:46]NVStorageDeleteData [08:50:46]Write to MH i2c: 01 00 00 4E 24 72 [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 DA 0C 5F [08:50:46]RasterBufferAndPrint [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]written 0, free lines is 3297 [08:50:46]MH_Cut [08:50:46]Write to MH i2c: D1 01 00 55 24 01 4B [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 01 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: D1 01 00 55 24 00 4A [08:50:46]Write to MH i2c: 01 00 00 56 24 7A [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]OFD Sender: No OFD packet to send [08:50:46]*** Cut start [08:50:46]*** Partial cut [08:50:46]*** CUTSNS_PIN = 1 [08:50:46]*** CUTSNS_PIN = 0 [08:50:47]*** Brake cut motor [08:50:47]Read from MH i2c: 01 [08:50:47]MH_I2C_Read... [08:50:47]*** Stop cut motor [08:50:47]*** Cut end [08:50:47]Read from MH i2c: 01 07 00 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: 01 07 00 56 24 00 00 00 00 00 FF 0F 8F [08:50:47]process_action close_receipt done [08:50:47]requested_data is exist [08:50:47]produce_requested_data [08:50:47]requested_item fm.sn is exist - process it [08:50:47]wFMCommunicate request_size=4 [08:50:47]MH_SAM_APDU [08:50:47]CAPDU: 80 11 00 00 [08:50:47]Write to MH i2c: E2 08 00 57 24 80 11 00 00 00 00 00 00 F5 [08:50:47]Write i2c OK [08:50:47]MH_I2C_Read... [08:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:47]Read from MH i2c: E2 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 17 00 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 17 00 57 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4C [08:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:50:47]wFMCommunicate OK [08:50:47]requested_item fd.num is exist - process it [08:50:47]SAM_PROTO_GetFieldsCounters [08:50:47]wFMCommunicate request_size=4 [08:50:47]MH_SAM_APDU [08:50:47]CAPDU: 80 13 00 00 [08:50:47]Write to MH i2c: E2 08 00 58 24 80 13 00 00 00 00 00 00 F8 [08:50:47]Write i2c OK [08:50:47]MH_I2C_Read... [08:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:47]Read from MH i2c: E2 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 62 00 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 62 00 58 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:47]wFMCommunicate OK [08:50:47]SAM_PROTO_GetFieldsCounters done [08:50:47]requested_item shift.num is exist - process it [08:50:47]requested_item shift.opened is exist - process it [08:50:47]req_shift_opened [08:50:47]FM_GetShiftState [08:50:47]SAM_PROTO_GetShiftState [08:50:47]wFMCommunicate request_size=4 [08:50:47]MH_SAM_APDU [08:50:47]CAPDU: 80 13 01 00 [08:50:47]Write to MH i2c: E2 08 00 59 24 80 13 01 00 00 00 00 00 FA [08:50:47]Write i2c OK [08:50:47]MH_I2C_Read... [08:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:47]Read from MH i2c: E2 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 0E 00 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 0E 00 59 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7A [08:50:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:50:47]wFMCommunicate OK [08:50:47]SAM_PROTO_GetShiftState done [08:50:47]FM_GetShiftState done [08:50:47]req_shift_opened done [08:50:47]requested_item shift.open_date is exist - process it [08:50:47]req_shift_open_date [08:50:47]req_shift_open_date done [08:50:47]produce_requested_data done [08:50:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140027,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:50:47]process_action_free close_receipt [08:50:47]json_value_free [08:50:47]json_value_free done [08:50:47]process_json_proto returns [08:50:47]Send response to host [08:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140027,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:50:47]free response buf [08:50:47]execute_script done [08:50:47]execute_script returns [08:50:47]free content buf [08:50:47]Sock 7.Close socket [08:50:47]Sock 7.Thread stoped [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]accept exits with 9 [08:52:41]New connection [08:52:41]New thread 3066908004 created [08:52:41]Thread 3066764644 joined [08:52:41]Waiting for new connection... [08:52:41] Sock 9.Parse request [08:52:41]Sock 9.Check first char [08:52:41]Sock 9.First char is OK [08:52:41]request: POST /json_proto HTTP/1.0 [08:52:41]Method: POST [08:52:41]URL: /json_proto [08:52:41]Method is POST - this is cgi request [08:52:41]url: /json_proto [08:52:41]query_string will be loaded in cgi processing [08:52:41]execute_cgi json_proto POST (null) [08:52:41]execute_cgi path=json_proto method=POST [08:52:41]POST find Content-Length [08:52:41]Host: 172.17.45.67:8080 [08:52:41]Content-Length: 687 [08:52:41]Content-Type: application/json [08:52:41] [08:52:41]POST finish read [08:52:41]Found Content-Length = 687 [08:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:52:41]execute_script... [08: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)593882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:52:41]POST & json_proto [08:52:41]process_json_proto [08:52:41]json parsed OK: [08:52:41]protocol is kg_v1.0 [08:52:41]action value=close_receipt [08:52:41]process_action close_receipt [08:52:41]cmd_close_receipt [08:52:41]MH_GetDate [08:52:41]Write to MH i2c: F0 00 00 5A 24 6D [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: F0 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: F0 09 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: F0 09 00 5A 24 00 DC AA C5 66 5F 7F 2B 66 96 [08:52:41]GetLastDocTimeStamp 1724230246 [08:52:41]current date 1724230364 [08:52:41]FM_GetShiftState [08:52:41]SAM_PROTO_GetShiftState [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 13 01 00 [08:52:41]Write to MH i2c: E2 08 00 5B 24 80 13 01 00 00 00 00 00 FC [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0E 00 5B 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7C [08:52:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_GetShiftState done [08:52:41]FM_GetShiftState done [08:52:41]opened in 1724200467 [08:52:41]opened+sec_in_day 1724286867 [08:52:41]quantity*price = 350062 [08:52:41]sum+1 = 350064 [08:52:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 45 21.08.2024 08:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140028 ФПД: 211743729689528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140028&fm=211743729689528&tin=02508201610067®Number=0000000000092569&sum=350000 [08:52:42]StoreToDocumentArchive [08:52:42]shift 454 fd 140028 [08:52:42]save to /storage/0454/doc_00140028 [08:52:42]save last doc name /storage/0454/doc_00140028 to /storage/kkm_last_doc_name [08:52:42]save OK [08:52:42]Clear old archive folders... [08:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:52:42]tlvbuf is 00A51D60 [08:52:42]SAM_PROTO_ClearQueue [08:52:42]wFMCommunicate request_size=4 [08:52:42]MH_SAM_APDU [08:52:42]CAPDU: 80 09 00 00 [08:52:42]Write to MH i2c: E2 08 00 68 24 80 09 00 00 00 00 00 00 FE [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:42]Read from MH i2c: E2 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: E2 03 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [08:52:42]RAPDU: 90 00 [08:52:42]wFMCommunicate OK [08:52:42]SAM_PROTO_ClearQueue done [08:52:42]KKMCreateOFDPacket [08:52:42]OFDProtocolAddRootSTLVToBuf [08:52:42]FM_MakeSignedData [08:52:42]FM_MakeSignedData [08:52:42]SAM_PROTO_SignData [08:52:42]wFMCommunicate request_size=4 [08:52:42]MH_SAM_APDU [08:52:42]CAPDU: 80 0D 01 02 [08:52:42]Write to MH i2c: E2 08 00 69 24 80 0D 01 02 00 00 00 00 06 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:42]Read from MH i2c: E2 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: E2 03 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [08:52:42]RAPDU: 90 00 [08:52:42]wFMCommunicate OK [08:52:42]wFMCommunicate request_size=255 [08:52:42]MH_SAM_APDU [08:52:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 2D 00 00 00 F4 03 04 00 DC AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 22 02 00 35 04 06 00 [08:52:42]Write to MH i2c: E2 02 01 6A 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 2D 00 00 00 F4 03 04 00 DC AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 22 02 00 35 04 06 00 00 00 F3 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 03 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [08:52:43]RAPDU: 90 00 [08:52:43]wFMCommunicate OK [08:52:43]wFMCommunicate request_size=11 [08:52:43]MH_SAM_APDU [08:52:43]CAPDU: 80 0D 02 02 06 C0 94 6D CA A3 B8 [08:52:43]Write to MH i2c: E2 0E 00 6B 24 80 0D 02 02 06 00 C0 94 6D CA A3 B8 00 00 FB [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 03 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [08:52:43]RAPDU: 90 00 [08:52:43]wFMCommunicate OK [08:52:43]wFMCommunicate request_size=4 [08:52:43]MH_SAM_APDU [08:52:43]CAPDU: 80 0D 03 02 [08:52:43]Write to MH i2c: E2 08 00 6C 24 80 0D 03 02 00 00 00 00 0B [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 0B 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 0B 00 6C 24 00 29 47 0C FF B5 FA 29 9C 90 00 FB [08:52:43]RAPDU: 29 47 0C FF B5 FA 29 9C 90 00 [08:52:43]wFMCommunicate OK [08:52:43]SAM_PROTO_SignData done [08:52:43]FM_MakeSignedData done [08:52:43]CreateOFDProtocolMessage [08:52:43]wFMCommunicate request_size=4 [08:52:43]MH_SAM_APDU [08:52:43]CAPDU: 80 11 00 00 [08:52:43]Write to MH i2c: E2 08 00 6D 24 80 11 00 00 00 00 00 00 0B [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:43]Read from MH i2c: E2 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 17 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: E2 17 00 6D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [08:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:43]wFMCommunicate OK [08:52:43]CreateOFDProtocolMessage done [08:52:43]OFDSenderStorePacket 140028 [08:52:43]StoreOFDPacket docnum=140028 [08:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 C7 7F 08 01 14 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 2D 00 00 00 F4 03 04 00 DC AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 22 02 00 35 04 06 00 C0 94 6D CA A3 B8 29 47 0C FF B5 FA 29 9C [08:52:43]CheckFolder [08:52:43]dirname=/storage/ofd_packets [08:52:43]CheckFolder done [08:52:43]ProducePacketName [08:52:43]name=ofd_packets/00140028 [08:52:43]NVStorageSaveData ofd_packets/00140028 [08:52:43]File name is /storage/ofd_packets/00140028 [08:52:43]Write 302 bytes [08:52:43]NVStorageSaveData done [08:52:43]OFDSenderStorePacket done [08:52:43]KKMCreateOFDPacket done [08:52:43]NVStorageSaveData kkm_last_timestamp [08:52:43]File name is /storage/kkm_last_timestamp [08:52:43]Write 4 bytes [08:52:43]NVStorageSaveData done [08:52:43]ExternCall_PrintAddStr [08:52:43]wPrintStart [08:52:43]Write to MH i2c: 01 00 00 6E 24 92 [08:52:43]Write i2c OK [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: 01 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: 01 07 00 [08:52:43]MH_I2C_Read... [08:52:43]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 FF 0F A7 [08:52:43]RasterBufferAndPrint [08:52:43]line Счет N : (1)593882 [08:52:43]line ИНН: 02508201610067 [08:52:43]line Контрольно-Кассовый Чек [08:52:43]line ПРОДАЖА [08:52:43]line ТРК (МРК, ГНК) : 64 [08:52:43]line Товар: 2710194210 [08:52:43]line ДТ(л)-К-5 [08:52:43]line 45.940 * 76.20 [08:52:43]line = 3500.63 [08:52:43]line НДС 12% НСП 1% [08:52:43]line > о реализуемом товаре [08:52:43]line ОКРУГЛЕНИЕ: -0.63 [08:52:43]line ИТОГО: 3500.00 [08:52:43]line Внесено: 3500.00 [08:52:43]line СДАЧА: 0.00 [08:52:43]line НСП 1% : 30.98 [08:52:43]line НДС 12% : 371.75 [08:52:43]line Наличными: 3500.00 [08:52:43]line Безнал.: 0.00 [08:52:43]line Место: АЗС № 136 "Партнер Нефть" [08:52:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:52:43]line СНО: Общий режим [08:52:43]line Чек 45 21.08.2024 08:52 [08:52:43]line Смена: 454 ФФД: 1.0 [08:52:43]line ЗНМ: 0300000067 [08:52:43]line РНМ: 0000000000092569 [08:52:43]line Версия ККМ: 001 [08:52:43]line ФМ: 0000000000871776 [08:52:43]line ФД: 140028 [08:52:43]line ФПД: 211743729689528 [08:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140028&fm=211743729689528&tin=02508201610067®Number=0000000000092569&sum=350000 [08:52:43]OFD Sender: Processing packet 140028 [packets to send 137, broken 136] [08:52:43]ProducePacketName [08:52:43]name=ofd_packets/00140028 [08:52:43]OFD Sender: To server: pG, [08:52:43]CommunicateWithHost lk.salyk.kg:30040 [08:52:43]ConnectInit lk.salyk.kg [08:52:43]written 0, free lines is 4095 [08:52:43]Connected sock=10 [08: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 37 36 10 01 00 00 C7 7F 08 01 14 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 2D 00 00 00 F4 03 04 00 DC AA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 22 02 00 35 04 06 00 C0 94 6D CA A3 B8 29 47 0C FF B5 FA 29 9C [08:52: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 37 36 4F 00 00 00 2D B9 47 00 B4 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 37 36 10 04 04 00 FC 22 02 00 F4 03 04 00 6D 51 C5 66 B6 04 01 00 00 67 7A 89 29 EB D4 12 FF [08:52:44]CommunicateWithHost err = 0 [08:52:44]CheckOFDResponse [08:52:44]1017 (14) - 77093643461234 [08:52:44]1041 (16) - 0000000000871776 [08:52:44]1040 (4) - 140028 [08:52:44]1012 (4) - 21.08.2024 02:31 [08:52:44]1206 (1) - 0 [08:52:44]OFD Sender: Remove packet 140028 [08:52:44]ProducePacketName [08:52:44]name=ofd_packets/00140028 [08:52:44]NVStorageDeleteData [08:52:44]Write to MH i2c: 01 00 00 99 24 BD [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: 01 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: 01 07 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 CF 0C 9F [08:52:44]RasterBufferAndPrint [08:52:44]line [08:52:44]line [08:52:44]line [08:52:44]line [08:52:44]line [08:52:44]written 0, free lines is 3285 [08:52:44]MH_Cut [08:52:44]Write to MH i2c: D1 01 00 A0 24 01 96 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: D1 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: D1 01 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: D1 01 00 A0 24 00 95 [08:52:44]Write to MH i2c: 01 00 00 A1 24 C5 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]OFD Sender: No OFD packet to send [08:52:44]*** Cut start [08:52:44]*** Partial cut [08:52:44]*** CUTSNS_PIN = 1 [08:52:44]*** CUTSNS_PIN = 0 [08:52:45]*** Brake cut motor [08:52:45]Read from MH i2c: 01 [08:52:45]MH_I2C_Read... [08:52:45]*** Stop cut motor [08:52:45]*** Cut end [08:52:45]Read from MH i2c: 01 07 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: 01 07 00 A1 24 00 00 00 00 00 FF 0F DA [08:52:45]process_action close_receipt done [08:52:45]requested_data is exist [08:52:45]produce_requested_data [08:52:45]requested_item fm.sn is exist - process it [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 11 00 00 [08:52:45]Write to MH i2c: E2 08 00 A2 24 80 11 00 00 00 00 00 00 40 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 17 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 17 00 A2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 97 [08:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:52:45]wFMCommunicate OK [08:52:45]requested_item fd.num is exist - process it [08:52:45]SAM_PROTO_GetFieldsCounters [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 13 00 00 [08:52:45]Write to MH i2c: E2 08 00 A3 24 80 13 00 00 00 00 00 00 43 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 62 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 62 00 A3 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:45]wFMCommunicate OK [08:52:45]SAM_PROTO_GetFieldsCounters done [08:52:45]requested_item shift.num is exist - process it [08:52:45]requested_item shift.opened is exist - process it [08:52:45]req_shift_opened [08:52:45]FM_GetShiftState [08:52:45]SAM_PROTO_GetShiftState [08:52:45]wFMCommunicate request_size=4 [08:52:45]MH_SAM_APDU [08:52:45]CAPDU: 80 13 01 00 [08:52:45]Write to MH i2c: E2 08 00 A4 24 80 13 01 00 00 00 00 00 45 [08:52:45]Write i2c OK [08:52:45]MH_I2C_Read... [08:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:45]Read from MH i2c: E2 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 0E 00 [08:52:45]MH_I2C_Read... [08:52:45]Read from MH i2c: E2 0E 00 A4 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C5 [08:52:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:52:45]wFMCommunicate OK [08:52:45]SAM_PROTO_GetShiftState done [08:52:45]FM_GetShiftState done [08:52:45]req_shift_opened done [08:52:45]requested_item shift.open_date is exist - process it [08:52:45]req_shift_open_date [08:52:45]req_shift_open_date done [08:52:45]produce_requested_data done [08:52:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140028,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:52:45]process_action_free close_receipt [08:52:45]json_value_free [08:52:45]json_value_free done [08:52:45]process_json_proto returns [08:52:45]Send response to host [08:52:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140028,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:52:45]free response buf [08:52:45]execute_script done [08:52:45]execute_script returns [08:52:45]free content buf [08:52:45]Sock 9.Close socket [08:52:45]Sock 9.Thread stoped [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:30]accept exits with 7 [08:54:30]New connection [08:54:30]New thread 3066764644 created [08:54:30]Thread 3066908004 joined [08:54:30]Waiting for new connection... [08:54:30] Sock 7.Parse request [08:54:30]Sock 7.Check first char [08:54:30]Sock 7.First char is OK [08:54:30]request: POST /json_proto HTTP/1.0 [08:54:30]Method: POST [08:54:30]URL: /json_proto [08:54:30]Method is POST - this is cgi request [08:54:30]url: /json_proto [08:54:30]query_string will be loaded in cgi processing [08:54:30]execute_cgi json_proto POST (null) [08:54:30]execute_cgi path=json_proto method=POST [08:54:30]POST find Content-Length [08:54:30]Host: 172.17.45.67:8080 [08:54:30]Content-Length: 677 [08:54:30]Content-Type: application/json [08:54:30] [08:54:30]POST finish read [08:54:30]Found Content-Length = 677 [08:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:30]execute_script... [08: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)593883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:30]POST & json_proto [08:54:30]process_json_proto [08:54:30]json parsed OK: [08:54:30]protocol is kg_v1.0 [08:54:30]action value=close_receipt [08:54:30]process_action close_receipt [08:54:30]cmd_close_receipt [08:54:30]MH_GetDate [08:54:30]Write to MH i2c: F0 00 00 A5 24 B8 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 09 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 09 00 A5 24 00 49 AB C5 66 5F 7F 2B 66 4F [08:54:30]GetLastDocTimeStamp 1724230364 [08:54:30]current date 1724230473 [08:54:30]FM_GetShiftState [08:54:30]SAM_PROTO_GetShiftState [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 13 01 00 [08:54:30]Write to MH i2c: E2 08 00 A6 24 80 13 01 00 00 00 00 00 47 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 A6 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C7 [08:54:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_GetShiftState done [08:54:30]FM_GetShiftState done [08:54:30]opened in 1724200467 [08:54:30]opened+sec_in_day 1724286867 [08:54:30]quantity*price = 50036 [08:54:30]sum+1 = 50037 [08:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 46 21.08.2024 08:54 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140029 ФПД: 185081177087307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140029&fm=185081177087307&tin=02508201610067®Number=0000000000092569&sum=50000 [08:54:31]StoreToDocumentArchive [08:54:31]shift 454 fd 140029 [08:54:31]save to /storage/0454/doc_00140029 [08:54:31]save last doc name /storage/0454/doc_00140029 to /storage/kkm_last_doc_name [08:54:31]save OK [08:54:31]Clear old archive folders... [08:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:31]tlvbuf is B6F4A400 [08:54:31]SAM_PROTO_ClearQueue [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 09 00 00 [08:54:31]Write to MH i2c: E2 08 00 B3 24 80 09 00 00 00 00 00 00 49 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 B3 24 00 90 00 4B [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]SAM_PROTO_ClearQueue done [08:54:31]KKMCreateOFDPacket [08:54:31]OFDProtocolAddRootSTLVToBuf [08:54:31]FM_MakeSignedData [08:54:31]FM_MakeSignedData [08:54:31]SAM_PROTO_SignData [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 01 02 [08:54:31]Write to MH i2c: E2 08 00 B4 24 80 0D 01 02 00 00 00 00 51 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 B4 24 00 90 00 4C [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=255 [08:54:31]MH_SAM_APDU [08:54: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 22 02 00 35 04 06 00 A8 [08:54:31]Write to MH i2c: E2 02 01 B5 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 22 02 00 35 04 06 00 A8 00 00 B7 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 B5 24 00 90 00 4D [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=10 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 02 02 05 54 91 D0 9D 4B [08:54:31]Write to MH i2c: E2 0D 00 B6 24 80 0D 02 02 05 00 54 91 D0 9D 4B 00 00 FB [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 B6 24 00 90 00 4E [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 03 02 [08:54:31]Write to MH i2c: E2 08 00 B7 24 80 0D 03 02 00 00 00 00 56 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 0B 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 0B 00 B7 24 00 D6 7D FC 54 33 05 89 8A 90 00 45 [08:54:31]RAPDU: D6 7D FC 54 33 05 89 8A 90 00 [08:54:31]wFMCommunicate OK [08:54:31]SAM_PROTO_SignData done [08:54:31]FM_MakeSignedData done [08:54:31]CreateOFDProtocolMessage [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 11 00 00 [08:54:31]Write to MH i2c: E2 08 00 B8 24 80 11 00 00 00 00 00 00 56 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 17 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 17 00 B8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [08:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:54:31]wFMCommunicate OK [08:54:31]CreateOFDProtocolMessage done [08:54:31]OFDSenderStorePacket 140029 [08:54:31]StoreOFDPacket docnum=140029 [08:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 C3 07 01 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 22 02 00 35 04 06 00 A8 54 91 D0 9D 4B D6 7D FC 54 33 05 89 8A [08:54:31]CheckFolder [08:54:31]dirname=/storage/ofd_packets [08:54:31]CheckFolder done [08:54:31]ProducePacketName [08:54:31]name=ofd_packets/00140029 [08:54:31]NVStorageSaveData ofd_packets/00140029 [08:54:31]File name is /storage/ofd_packets/00140029 [08:54:31]Write 301 bytes [08:54:31]NVStorageSaveData done [08:54:31]OFDSenderStorePacket done [08:54:31]KKMCreateOFDPacket done [08:54:31]NVStorageSaveData kkm_last_timestamp [08:54:31]File name is /storage/kkm_last_timestamp [08:54:31]Write 4 bytes [08:54:31]NVStorageSaveData done [08:54:31]ExternCall_PrintAddStr [08:54:31]wPrintStart [08:54:31]Write to MH i2c: 01 00 00 B9 24 DD [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 07 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 07 00 B9 24 00 00 00 00 00 FF 0F F2 [08:54:31]RasterBufferAndPrint [08:54:31]line Счет N : (1)593883 [08:54:31]line ИНН: 02508201610067 [08:54:31]line Контрольно-Кассовый Чек [08:54:31]line ПРОДАЖА [08:54:31]line ТРК (МРК, ГНК) : 32 [08:54:31]line Товар: 2710124130 [08:54:31]line Аи-92-К-5 [08:54:31]line 7.380 * 67.80 [08:54:31]line = 500.36 [08:54:31]line НДС 12% НСП 1% [08:54:31]line > о реализуемом товаре [08:54:31]line ОКРУГЛЕНИЕ: -0.36 [08:54:31]line ИТОГО: 500.00 [08:54:31]line Внесено: 500.00 [08:54:31]line СДАЧА: 0.00 [08:54:31]line НСП 1% : 4.43 [08:54:31]line НДС 12% : 53.14 [08:54:31]line Наличными: 500.00 [08:54:31]line Безнал.: 0.00 [08:54:31]line Место: АЗС № 136 "Партнер Нефть" [08:54:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:54:31]line СНО: Общий режим [08:54:31]line Чек 46 21.08.2024 08:54 [08:54:31]line Смена: 454 ФФД: 1.0 [08:54:31]line ЗНМ: 0300000067 [08:54:31]line РНМ: 0000000000092569 [08:54:31]line Версия ККМ: 001 [08:54:31]line ФМ: 0000000000871776 [08:54:31]line ФД: 140029 [08:54:31]line ФПД: 185081177087307 [08:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140029&fm=185081177087307&tin=02508201610067®Number=0000000000092569&sum=50000 [08:54:32]written 0, free lines is 4095 [08:54:32]OFD Sender: Processing packet 140029 [packets to send 137, broken 136] [08:54:32]ProducePacketName [08:54:32]name=ofd_packets/00140029 [08:54:32]OFD Sender: To server: pG, [08:54:32]CommunicateWithHost lk.salyk.kg:30040 [08:54:32]ConnectInit lk.salyk.kg [08:54:32]Connected sock=10 [08: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 37 36 0F 01 00 00 26 C3 07 01 17 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 22 02 00 35 04 06 00 A8 54 91 D0 9D 4B D6 7D FC 54 33 05 89 8A [08:54:32]Write to MH i2c: 01 00 00 E4 24 08 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 E4 24 00 00 00 00 00 CB 0C E6 [08:54:32]RasterBufferAndPrint [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]written 0, free lines is 3281 [08: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 37 36 4F 00 00 00 DE 6E 47 00 1A 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 37 36 10 04 04 00 FD 22 02 00 F4 03 04 00 DA 51 C5 66 B6 04 01 00 00 99 80 17 EE 84 B9 38 EB [08:54:32]CommunicateWithHost err = 0 [08:54:32]CheckOFDResponse [08:54:32]1017 (14) - 77093643461234 [08:54:32]1041 (16) - 0000000000871776 [08:54:32]1040 (4) - 140029 [08:54:32]1012 (4) - 21.08.2024 02:32 [08:54:32]1206 (1) - 0 [08:54:32]OFD Sender: Remove packet 140029 [08:54:32]ProducePacketName [08:54:32]name=ofd_packets/00140029 [08:54:32]NVStorageDeleteData [08:54:32]MH_Cut [08:54:32]Write to MH i2c: D1 01 00 EB 24 01 E1 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 01 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 01 00 EB 24 00 E0 [08:54:32]Write to MH i2c: 01 00 00 EC 24 10 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:33]OFD Sender: No OFD packet to send [08:54:33]*** Cut start [08:54:33]*** Partial cut [08:54:33]*** CUTSNS_PIN = 1 [08:54:33]*** CUTSNS_PIN = 0 [08:54:33]*** Brake cut motor [08:54:34]Read from MH i2c: 01 [08:54:34]MH_I2C_Read... [08:54:34]*** Stop cut motor [08:54:34]*** Cut end [08:54:34]Read from MH i2c: 01 07 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 FF 0F 25 [08:54:34]process_action close_receipt done [08:54:34]requested_data is exist [08:54:34]produce_requested_data [08:54:34]requested_item fm.sn is exist - process it [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 11 00 00 [08:54:34]Write to MH i2c: E2 08 00 ED 24 80 11 00 00 00 00 00 00 8B [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 17 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 17 00 ED 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [08:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:54:34]wFMCommunicate OK [08:54:34]requested_item fd.num is exist - process it [08:54:34]SAM_PROTO_GetFieldsCounters [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 13 00 00 [08:54:34]Write to MH i2c: E2 08 00 EE 24 80 13 00 00 00 00 00 00 8E [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 62 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 62 00 EE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_GetFieldsCounters done [08:54:34]requested_item shift.num is exist - process it [08:54:34]requested_item shift.opened is exist - process it [08:54:34]req_shift_opened [08:54:34]FM_GetShiftState [08:54:34]SAM_PROTO_GetShiftState [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 13 01 00 [08:54:34]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0E 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [08:54:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_GetShiftState done [08:54:34]FM_GetShiftState done [08:54:34]req_shift_opened done [08:54:34]requested_item shift.open_date is exist - process it [08:54:34]req_shift_open_date [08:54:34]req_shift_open_date done [08:54:34]produce_requested_data done [08:54:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140029,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:54:34]process_action_free close_receipt [08:54:34]json_value_free [08:54:34]json_value_free done [08:54:34]process_json_proto returns [08:54:34]Send response to host [08:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140029,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:54:34]free response buf [08:54:34]execute_script done [08:54:34]execute_script returns [08:54:34]free content buf [08:54:34]Sock 7.Close socket [08:54:34]Sock 7.Thread stoped [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:08]accept exits with 9 [08:55:08]New connection [08:55:08]New thread 3066908004 created [08:55:08]Thread 3066764644 joined [08:55:08]Waiting for new connection... [08:55:08] Sock 9.Parse request [08:55:08]Sock 9.Check first char [08:55:08]Sock 9.First char is OK [08:55:08]request: POST /json_proto HTTP/1.0 [08:55:08]Method: POST [08:55:08]URL: /json_proto [08:55:08]Method is POST - this is cgi request [08:55:08]url: /json_proto [08:55:08]query_string will be loaded in cgi processing [08:55:08]execute_cgi json_proto POST (null) [08:55:08]execute_cgi path=json_proto method=POST [08:55:08]POST find Content-Length [08:55:08]Host: 172.17.45.67:8080 [08:55:08]Content-Length: 687 [08:55:08]Content-Type: application/json [08:55:08] [08:55:08]POST finish read [08:55:08]Found Content-Length = 687 [08:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:08]execute_script... [08:55: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)593884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:08]POST & json_proto [08:55:08]process_json_proto [08:55:08]json parsed OK: [08:55:08]protocol is kg_v1.0 [08:55:08]action value=close_receipt [08:55:08]process_action close_receipt [08:55:08]cmd_close_receipt [08:55:08]MH_GetDate [08:55:08]Write to MH i2c: F0 00 00 F0 24 03 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: F0 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: F0 09 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: F0 09 00 F0 24 00 6F AB C5 66 5F 7F 2B 66 C0 [08:55:08]GetLastDocTimeStamp 1724230473 [08:55:08]current date 1724230511 [08:55:08]FM_GetShiftState [08:55:08]SAM_PROTO_GetShiftState [08:55:08]wFMCommunicate request_size=4 [08:55:08]MH_SAM_APDU [08:55:08]CAPDU: 80 13 01 00 [08:55:08]Write to MH i2c: E2 08 00 F1 24 80 13 01 00 00 00 00 00 92 [08:55:08]Write i2c OK [08:55:08]MH_I2C_Read... [08:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:08]Read from MH i2c: E2 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0E 00 [08:55:08]MH_I2C_Read... [08:55:08]Read from MH i2c: E2 0E 00 F1 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 12 [08:55:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:55:08]wFMCommunicate OK [08:55:08]SAM_PROTO_GetShiftState done [08:55:08]FM_GetShiftState done [08:55:08]opened in 1724200467 [08:55:08]opened+sec_in_day 1724286867 [08:55:08]quantity*price = 100050 [08:55:08]sum+1 = 100052 [08:55: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 47 21.08.2024 08:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140030 ФПД: 144485178305052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140030&fm=144485178305052&tin=02508201610067®Number=0000000000092569&sum=100000 [08:55:09]StoreToDocumentArchive [08:55:09]shift 454 fd 140030 [08:55:09]save to /storage/0454/doc_00140030 [08:55:09]save last doc name /storage/0454/doc_00140030 to /storage/kkm_last_doc_name [08:55:09]save OK [08:55:09]Clear old archive folders... [08:55:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:55:09]tlvbuf is 00A79B10 [08:55:09]SAM_PROTO_ClearQueue [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 09 00 00 [08:55:09]Write to MH i2c: E2 08 00 FE 24 80 09 00 00 00 00 00 00 94 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 03 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 03 00 FE 24 00 90 00 96 [08:55:09]RAPDU: 90 00 [08:55:09]wFMCommunicate OK [08:55:09]SAM_PROTO_ClearQueue done [08:55:09]KKMCreateOFDPacket [08:55:09]OFDProtocolAddRootSTLVToBuf [08:55:09]FM_MakeSignedData [08:55:09]FM_MakeSignedData [08:55:09]SAM_PROTO_SignData [08:55:09]wFMCommunicate request_size=4 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 0D 01 02 [08:55:09]Write to MH i2c: E2 08 00 FF 24 80 0D 01 02 00 00 00 00 9C [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:09]Read from MH i2c: E2 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 03 00 [08:55:09]MH_I2C_Read... [08:55:09]Read from MH i2c: E2 03 00 FF 24 00 90 00 97 [08:55:09]RAPDU: 90 00 [08:55:09]wFMCommunicate OK [08:55:09]wFMCommunicate request_size=255 [08:55:09]MH_SAM_APDU [08:55:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6F AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 22 02 00 35 04 06 00 [08:55:09]Write to MH i2c: E2 02 01 00 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6F AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 22 02 00 35 04 06 00 00 00 71 [08:55:09]Write i2c OK [08:55:09]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 00 25 00 90 00 99 [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]wFMCommunicate request_size=11 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 0D 02 02 06 83 68 93 BA 6A 1C [08:55:10]Write to MH i2c: E2 0E 00 01 25 80 0D 02 02 06 00 83 68 93 BA 6A 1C 00 00 6A [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 03 00 01 25 00 90 00 9A [08:55:10]RAPDU: 90 00 [08:55:10]wFMCommunicate OK [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 0D 03 02 [08:55:10]Write to MH i2c: E2 08 00 02 25 80 0D 03 02 00 00 00 00 A2 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0B 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0B 00 02 25 00 F6 3D 52 59 2C B4 02 73 90 00 D6 [08:55:10]RAPDU: F6 3D 52 59 2C B4 02 73 90 00 [08:55:10]wFMCommunicate OK [08:55:10]SAM_PROTO_SignData done [08:55:10]FM_MakeSignedData done [08:55:10]CreateOFDProtocolMessage [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 11 00 00 [08:55:10]Write to MH i2c: E2 08 00 03 25 80 11 00 00 00 00 00 00 A2 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 17 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 17 00 03 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [08:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:55:10]wFMCommunicate OK [08:55:10]CreateOFDProtocolMessage done [08:55:10]OFDSenderStorePacket 140030 [08:55:10]StoreOFDPacket docnum=140030 [08:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 2F B5 08 01 C9 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6F AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 22 02 00 35 04 06 00 83 68 93 BA 6A 1C F6 3D 52 59 2C B4 02 73 [08:55:10]CheckFolder [08:55:10]dirname=/storage/ofd_packets [08:55:10]CheckFolder done [08:55:10]ProducePacketName [08:55:10]name=ofd_packets/00140030 [08:55:10]NVStorageSaveData ofd_packets/00140030 [08:55:10]File name is /storage/ofd_packets/00140030 [08:55:10]Write 302 bytes [08:55:10]NVStorageSaveData done [08:55:10]OFDSenderStorePacket done [08:55:10]KKMCreateOFDPacket done [08:55:10]NVStorageSaveData kkm_last_timestamp [08:55:10]File name is /storage/kkm_last_timestamp [08:55:10]Write 4 bytes [08:55:10]NVStorageSaveData done [08:55:10]ExternCall_PrintAddStr [08:55:10]wPrintStart [08:55:10]Write to MH i2c: 01 00 00 04 25 29 [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 07 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: 01 07 00 04 25 00 00 00 00 00 FF 0F 3E [08:55:10]RasterBufferAndPrint [08:55:10]line Счет N : (1)593884 [08:55:10]line ИНН: 02508201610067 [08:55:10]line Контрольно-Кассовый Чек [08:55:10]line ПРОДАЖА [08:55:10]line ТРК (МРК, ГНК) : 44 [08:55:10]line Товар: 2710194210 [08:55:10]line ДТ(л)-К-5 [08:55:10]line 13.130 * 76.20 [08:55:10]line = 1000.51 [08:55:10]line НДС 12% НСП 1% [08:55:10]line > о реализуемом товаре [08:55:10]line ОКРУГЛЕНИЕ: -0.51 [08:55:10]line ИТОГО: 1000.00 [08:55:10]line Внесено: 1000.00 [08:55:10]line СДАЧА: 0.00 [08:55:10]line НСП 1% : 8.85 [08:55:10]line НДС 12% : 106.25 [08:55:10]line Наличными: 1000.00 [08:55:10]line Безнал.: 0.00 [08:55:10]line Место: АЗС № 136 "Партнер Нефть" [08:55:10]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:55:10]line СНО: Общий режим [08:55:10]line Чек 47 21.08.2024 08:55 [08:55:10]line Смена: 454 ФФД: 1.0 [08:55:10]line ЗНМ: 0300000067 [08:55:10]line РНМ: 0000000000092569 [08:55:10]line Версия ККМ: 001 [08:55:10]line ФМ: 0000000000871776 [08:55:10]line ФД: 140030 [08:55:10]line ФПД: 144485178305052 [08:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140030&fm=144485178305052&tin=02508201610067®Number=0000000000092569&sum=100000 [08:55:10]OFD Sender: Processing packet 140030 [packets to send 137, broken 136] [08:55:10]ProducePacketName [08:55:10]name=ofd_packets/00140030 [08:55:10]OFD Sender: To server: pG, [08:55:10]CommunicateWithHost lk.salyk.kg:30040 [08:55:10]ConnectInit lk.salyk.kg [08:55:10]written 0, free lines is 4095 [08:55:10]Connected sock=10 [08:55: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 37 36 10 01 00 00 2F B5 08 01 C9 84 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6F AB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 22 02 00 35 04 06 00 83 68 93 BA 6A 1C F6 3D 52 59 2C B4 02 73 [08:55: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 37 36 4F 00 00 00 DD 01 47 00 89 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 37 36 10 04 04 00 FE 22 02 00 F4 03 04 00 00 52 C5 66 B6 04 01 00 00 64 0D FB 3A CC 09 C8 93 [08:55:11]CommunicateWithHost err = 0 [08:55:11]CheckOFDResponse [08:55:11]1017 (14) - 77093643461234 [08:55:11]1041 (16) - 0000000000871776 [08:55:11]1040 (4) - 140030 [08:55:11]1012 (4) - 21.08.2024 02:33 [08:55:11]1206 (1) - 0 [08:55:11]OFD Sender: Remove packet 140030 [08:55:11]ProducePacketName [08:55:11]name=ofd_packets/00140030 [08:55:11]NVStorageDeleteData [08:55:11]Write to MH i2c: 01 00 00 2F 25 54 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: 01 07 00 2F 25 00 00 00 00 00 C6 0C 2D [08:55:11]RasterBufferAndPrint [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]line [08:55:11]written 0, free lines is 3275 [08:55:11]MH_Cut [08:55:11]Write to MH i2c: D1 01 00 36 25 01 2D [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 01 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: D1 01 00 36 25 00 2C [08:55:11]Write to MH i2c: 01 00 00 37 25 5C [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]OFD Sender: No OFD packet to send [08:55:11]*** Cut start [08:55:11]*** Partial cut [08:55:11]*** CUTSNS_PIN = 1 [08:55:11]*** CUTSNS_PIN = 0 [08:55:12]*** Brake cut motor [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]*** Stop cut motor [08:55:12]*** Cut end [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 37 25 00 00 00 00 00 FF 0F 71 [08:55:12]process_action close_receipt done [08:55:12]requested_data is exist [08:55:12]produce_requested_data [08:55:12]requested_item fm.sn is exist - process it [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 11 00 00 [08:55:12]Write to MH i2c: E2 08 00 38 25 80 11 00 00 00 00 00 00 D7 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 38 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [08:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:55:12]wFMCommunicate OK [08:55:12]requested_item fd.num is exist - process it [08:55:12]SAM_PROTO_GetFieldsCounters [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 13 00 00 [08:55:12]Write to MH i2c: E2 08 00 39 25 80 13 00 00 00 00 00 00 DA [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 62 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 62 00 39 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_GetFieldsCounters done [08:55:12]requested_item shift.num is exist - process it [08:55:12]requested_item shift.opened is exist - process it [08:55:12]req_shift_opened [08:55:12]FM_GetShiftState [08:55:12]SAM_PROTO_GetShiftState [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 13 01 00 [08:55:12]Write to MH i2c: E2 08 00 3A 25 80 13 01 00 00 00 00 00 DC [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0E 00 3A 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [08:55:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_GetShiftState done [08:55:12]FM_GetShiftState done [08:55:12]req_shift_opened done [08:55:12]requested_item shift.open_date is exist - process it [08:55:12]req_shift_open_date [08:55:12]req_shift_open_date done [08:55:12]produce_requested_data done [08:55:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140030,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:55:12]process_action_free close_receipt [08:55:12]json_value_free [08:55:12]json_value_free done [08:55:12]process_json_proto returns [08:55:12]Send response to host [08:55:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140030,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:55:12]free response buf [08:55:12]execute_script done [08:55:12]execute_script returns [08:55:12]free content buf [08:55:12]Sock 9.Close socket [08:55:12]Sock 9.Thread stoped [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]int [08:57:31]Write to MH i2c: 01 00 00 3B 25 60 [08:57:31]*** FLAG_PRN_KEY set [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 3B 25 00 08 00 00 00 FF 0F 7D [08:57:31]state=0 [08:57:31]Key pressed [08:57:31]Feed [08:57:31]Write to MH i2c: D8 00 00 3C 25 38 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: D8 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: D8 01 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: D8 01 00 3C 25 00 39 [08:57:31]int [08:57:31]Write to MH i2c: 01 00 00 3D 25 62 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 3D 25 00 48 00 00 00 3C 00 ED [08:57:31]state=2 [08:57:31]Key pressed [08:57:31]OFD Sender: No OFD packet to send [08:57:31]int [08:57:31]Write to MH i2c: 01 00 00 3E 25 63 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 [08:57:31]MH_I2C_Read... [08:57:31]*** FLAG_PRN_KEY reset [08:57:31]*** FLAG_PRN_KEY set [08:57:31]Read from MH i2c: 01 07 00 3E 25 00 08 00 00 00 F5 0F 76 [08:57:31]state=2 [08:57:31]Key pressed [08:57:31]int [08:57:31]Write to MH i2c: 01 00 00 3F 25 64 [08:57:31]*** FLAG_PRN_KEY reset [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 3F 25 00 00 00 00 00 FF 0F 79 [08:57:31]state=2 [08:57:31]Stop feed [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:48]accept exits with 7 [08:57:48]New connection [08:57:48]New thread 3066764644 created [08:57:48]Thread 3066908004 joined [08:57:48]Waiting for new connection... [08:57:48] Sock 7.Parse request [08:57:48]Sock 7.Check first char [08:57:48]Sock 7.First char is OK [08:57:48]request: POST /json_proto HTTP/1.0 [08:57:48]Method: POST [08:57:48]URL: /json_proto [08:57:48]Method is POST - this is cgi request [08:57:48]url: /json_proto [08:57:48]query_string will be loaded in cgi processing [08:57:48]execute_cgi json_proto POST (null) [08:57:48]execute_cgi path=json_proto method=POST [08:57:48]POST find Content-Length [08:57:48]Host: 172.17.45.67:8080 [08:57:48]Content-Length: 759 [08:57:48]Content-Type: application/json [08:57:48] [08:57:48]POST finish read [08:57:48]Found Content-Length = 759 [08:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:48]execute_script... [08:57: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)593886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:48]POST & json_proto [08:57:48]process_json_proto [08:57:48]json parsed OK: [08:57:48]protocol is kg_v1.0 [08:57:48]action value=close_receipt [08:57:48]process_action close_receipt [08:57:48]cmd_close_receipt [08:57:48]MH_GetDate [08:57:48]Write to MH i2c: F0 00 00 40 25 54 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 09 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 09 00 40 25 00 0F AC C5 66 5F 7F 2B 66 B2 [08:57:48]GetLastDocTimeStamp 1724230511 [08:57:48]current date 1724230671 [08:57:48]FM_GetShiftState [08:57:48]SAM_PROTO_GetShiftState [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 01 00 [08:57:48]Write to MH i2c: E2 08 00 41 25 80 13 01 00 00 00 00 00 E3 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 41 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [08:57:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetShiftState done [08:57:48]FM_GetShiftState done [08:57:48]opened in 1724200467 [08:57:48]opened+sec_in_day 1724286867 [08:57:48]quantity*price = 0 [08:57:48]sum+1 = 1 [08:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 48 21.08.2024 08:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 140031 ФПД: 215504464265220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140031&fm=215504464265220&tin=02508201610067®Number=0000000000092569&sum=0 [08:57:50]StoreToDocumentArchive [08:57:50]shift 454 fd 140031 [08:57:50]save to /storage/0454/doc_00140031 [08:57:50]save last doc name /storage/0454/doc_00140031 to /storage/kkm_last_doc_name [08:57:50]save OK [08:57:50]Clear old archive folders... [08:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:57:50]tlvbuf is 00A100D0 [08:57:50]SAM_PROTO_ClearQueue [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 09 00 00 [08:57:50]Write to MH i2c: E2 08 00 4E 25 80 09 00 00 00 00 00 00 E5 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 4E 25 00 90 00 E7 [08:57:50]RAPDU: 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_ClearQueue done [08:57:50]KKMCreateOFDPacket [08:57:50]OFDProtocolAddRootSTLVToBuf [08:57:50]FM_MakeSignedData [08:57:50]FM_MakeSignedData [08:57:50]SAM_PROTO_SignData [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 0D 01 02 [08:57:50]Write to MH i2c: E2 08 00 4F 25 80 0D 01 02 00 00 00 00 ED [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 4F 25 00 90 00 E8 [08:57:50]RAPDU: 90 00 [08:57:50]wFMCommunicate OK [08:57:50]wFMCommunicate request_size=255 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0F AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 22 02 00 35 04 06 00 [08:57:50]Write to MH i2c: E2 02 01 50 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0F AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 22 02 00 35 04 06 00 00 00 4F [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 50 25 00 90 00 E9 [08:57:50]RAPDU: 90 00 [08:57:50]wFMCommunicate OK [08:57:50]wFMCommunicate request_size=11 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 0D 02 02 06 C4 00 0B 0A 40 04 [08:57:50]Write to MH i2c: E2 0E 00 51 25 80 0D 02 02 06 00 C4 00 0B 0A 40 04 00 00 19 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 03 00 51 25 00 90 00 EA [08:57:50]RAPDU: 90 00 [08:57:50]wFMCommunicate OK [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 0D 03 02 [08:57:50]Write to MH i2c: E2 08 00 52 25 80 0D 03 02 00 00 00 00 F2 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0B 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0B 00 52 25 00 9E 48 A2 02 68 88 A2 8E 90 00 9D [08:57:50]RAPDU: 9E 48 A2 02 68 88 A2 8E 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_SignData done [08:57:50]FM_MakeSignedData done [08:57:50]CreateOFDProtocolMessage [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 11 00 00 [08:57:50]Write to MH i2c: E2 08 00 53 25 80 11 00 00 00 00 00 00 F2 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 17 00 53 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [08:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:50]wFMCommunicate OK [08:57:50]CreateOFDProtocolMessage done [08:57:50]OFDSenderStorePacket 140031 [08:57:50]StoreOFDPacket docnum=140031 [08:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8F 0E 08 01 93 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0F AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 22 02 00 35 04 06 00 C4 00 0B 0A 40 04 9E 48 A2 02 68 88 A2 8E [08:57:50]CheckFolder [08:57:50]dirname=/storage/ofd_packets [08:57:50]CheckFolder done [08:57:50]ProducePacketName [08:57:50]name=ofd_packets/00140031 [08:57:50]NVStorageSaveData ofd_packets/00140031 [08:57:50]File name is /storage/ofd_packets/00140031 [08:57:50]Write 302 bytes [08:57:50]NVStorageSaveData done [08:57:50]OFDSenderStorePacket done [08:57:50]KKMCreateOFDPacket done [08:57:50]NVStorageSaveData kkm_last_timestamp [08:57:50]File name is /storage/kkm_last_timestamp [08:57:50]Write 4 bytes [08:57:50]NVStorageSaveData done [08:57:50]ExternCall_PrintAddStr [08:57:50]wPrintStart [08:57:50]Write to MH i2c: 01 00 00 54 25 79 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 54 25 00 00 00 00 00 FF 0F 8E [08:57:50]RasterBufferAndPrint [08:57:50]line Счет N : (1)593886 [08:57:50]line ИНН: 02508201610067 [08:57:50]line Контрольно-Кассовый Чек [08:57:50]line ПРОДАЖА [08:57:50]line ТРК (МРК, ГНК) : 54 [08:57:50]line Товар: 2710194210 [08:57:50]line ДТ(л)-К-5 [08:57:50]line 50.000 * 0.00 [08:57:50]line = 0.00 [08:57:50]line НДС 12% НСП 1% [08:57:50]line > о реализуемом товаре [08:57:50]line ИТОГО: 0.00 [08:57:50]line НСП 1% : 0.00 [08:57:50]line НДС 12% : 0.00 [08:57:50]line Наличными: 0.00 [08:57:50]line Безнал.: 0.00 [08:57:50]line Место: АЗС № 136 "Партнер Нефть" [08:57:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:57:50]line СНО: Общий режим [08:57:50]line Чек 48 21.08.2024 08:57 [08:57:50]line Смена: 454 ФФД: 1.0 [08:57:50]line ЗНМ: 0300000067 [08:57:50]line РНМ: 0000000000092569 [08:57:50]line Версия ККМ: 001 [08:57:50]line Талоны: ТК ГПНА Online [08:57:50]line 30104832 [08:57:50]line ФМ: 0000000000871776 [08:57:50]line ФД: 140031 [08:57:50]line ФПД: 215504464265220 [08:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085751&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140031&fm=215504464265220&tin=02508201610067®Number=0000000000092569&sum=0 [08:57:50]written 0, free lines is 4095 [08:57:50]OFD Sender: Processing packet 140031 [packets to send 137, broken 136] [08:57:50]ProducePacketName [08:57:50]name=ofd_packets/00140031 [08:57:50]OFD Sender: To server: pG, [08:57:50]CommunicateWithHost lk.salyk.kg:30040 [08:57:50]ConnectInit lk.salyk.kg [08:57:50]Connected sock=11 [08:57: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 37 36 10 01 00 00 8F 0E 08 01 93 8E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 0F AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 22 02 00 35 04 06 00 C4 00 0B 0A 40 04 9E 48 A2 02 68 88 A2 8E [08:57:51]Write to MH i2c: 01 00 00 7E 25 A3 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 07 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 07 00 7E 25 00 00 00 00 00 E6 0C 9C [08:57:51]RasterBufferAndPrint [08:57:51]line [08:57:51]line [08:57:51]line [08:57:51]line [08:57:51]line [08:57:51]written 0, free lines is 3309 [08:57:51]MH_Cut [08:57:51]Write to MH i2c: D1 01 00 85 25 01 7C [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: D1 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: D1 01 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: D1 01 00 85 25 00 7B [08:57:51]Write to MH i2c: 01 00 00 86 25 AB [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E9 1B 47 00 EA 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 37 36 10 04 04 00 FF 22 02 00 F4 03 04 00 A0 52 C5 66 B6 04 01 00 00 F8 E4 F1 F2 7E DE A8 E4 [08:57:51]CommunicateWithHost err = 0 [08:57:51]CheckOFDResponse [08:57:51]1017 (14) - 77093643461234 [08:57:51]1041 (16) - 0000000000871776 [08:57:51]1040 (4) - 140031 [08:57:51]1012 (4) - 21.08.2024 02:36 [08:57:51]1206 (1) - 0 [08:57:51]OFD Sender: Remove packet 140031 [08:57:51]ProducePacketName [08:57:51]name=ofd_packets/00140031 [08:57:51]NVStorageDeleteData [08:57:51]OFD Sender: No OFD packet to send [08:57:51]*** Cut start [08:57:51]*** Partial cut [08:57:51]*** CUTSNS_PIN = 1 [08:57:51]*** CUTSNS_PIN = 0 [08:57:51]*** Brake cut motor [08:57:52]Read from MH i2c: 01 [08:57:52]MH_I2C_Read... [08:57:52]*** Stop cut motor [08:57:52]*** Cut end [08:57:52]Read from MH i2c: 01 07 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: 01 07 00 86 25 00 00 00 00 00 FF 0F C0 [08:57:52]process_action close_receipt done [08:57:52]requested_data is exist [08:57:52]produce_requested_data [08:57:52]requested_item fm.sn is exist - process it [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 11 00 00 [08:57:52]Write to MH i2c: E2 08 00 87 25 80 11 00 00 00 00 00 00 26 [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 17 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 17 00 87 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [08:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:52]wFMCommunicate OK [08:57:52]requested_item fd.num is exist - process it [08:57:52]SAM_PROTO_GetFieldsCounters [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 13 00 00 [08:57:52]Write to MH i2c: E2 08 00 88 25 80 13 00 00 00 00 00 00 29 [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 62 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 62 00 88 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [08:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 22 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:52]wFMCommunicate OK [08:57:52]SAM_PROTO_GetFieldsCounters done [08:57:52]requested_item shift.num is exist - process it [08:57:52]requested_item shift.opened is exist - process it [08:57:52]req_shift_opened [08:57:52]FM_GetShiftState [08:57:52]SAM_PROTO_GetShiftState [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 13 01 00 [08:57:52]Write to MH i2c: E2 08 00 89 25 80 13 01 00 00 00 00 00 2B [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 89 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AB [08:57:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:57:52]wFMCommunicate OK [08:57:52]SAM_PROTO_GetShiftState done [08:57:52]FM_GetShiftState done [08:57:52]req_shift_opened done [08:57:52]requested_item shift.open_date is exist - process it [08:57:52]req_shift_open_date [08:57:52]req_shift_open_date done [08:57:52]produce_requested_data done [08:57:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140031,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:57:52]process_action_free close_receipt [08:57:52]json_value_free [08:57:52]json_value_free done [08:57:52]process_json_proto returns [08:57:52]Send response to host [08:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140031,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:57:52]free response buf [08:57:52]execute_script done [08:57:52]execute_script returns [08:57:52]free content buf [08:57:52]Sock 7.Close socket [08:57:52]Sock 7.Thread stoped [08:57:52]accept exits with 9 [08:57:52]New connection [08:57:52]New thread 3066908004 created [08:57:52]Thread 3066764644 joined [08:57:52]Waiting for new connection... [08:57:52] Sock 9.Parse request [08:57:52]Sock 9.Check first char [08:57:52]Sock 9.First char is OK [08:57:52]request: POST /json_proto HTTP/1.0 [08:57:52]Method: POST [08:57:52]URL: /json_proto [08:57:52]Method is POST - this is cgi request [08:57:52]url: /json_proto [08:57:52]query_string will be loaded in cgi processing [08:57:52]execute_cgi json_proto POST (null) [08:57:52]execute_cgi path=json_proto method=POST [08:57:52]POST find Content-Length [08:57:52]Host: 172.17.45.67:8080 [08:57:52]Content-Length: 759 [08:57:52]Content-Type: application/json [08:57:52] [08:57:52]POST finish read [08:57:52]Found Content-Length = 759 [08:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:52]execute_script... [08:57: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)593885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104832", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:52]POST & json_proto [08:57:52]process_json_proto [08:57:52]json parsed OK: [08:57:52]protocol is kg_v1.0 [08:57:52]action value=close_receipt [08:57:52]process_action close_receipt [08:57:52]cmd_close_receipt [08:57:52]MH_GetDate [08:57:52]Write to MH i2c: F0 00 00 8A 25 9E [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: F0 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: F0 09 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: F0 09 00 8A 25 00 13 AC C5 66 5F 7F 2B 66 00 [08:57:52]GetLastDocTimeStamp 1724230671 [08:57:52]current date 1724230675 [08:57:52]FM_GetShiftState [08:57:52]SAM_PROTO_GetShiftState [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 13 01 00 [08:57:52]Write to MH i2c: E2 08 00 8B 25 80 13 01 00 00 00 00 00 2D [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 8B 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AD [08:57:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:57:52]wFMCommunicate OK [08:57:52]SAM_PROTO_GetShiftState done [08:57:52]FM_GetShiftState done [08:57:52]opened in 1724200467 [08:57:52]opened+sec_in_day 1724286867 [08:57:52]quantity*price = 0 [08:57:52]sum+1 = 1 [08:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 49 21.08.2024 08:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104832 ФМ: 0000000000871776 ФД: 140032 ФПД: 29882958133254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140032&fm=29882958133254&tin=02508201610067®Number=0000000000092569&sum=0 [08:57:54]StoreToDocumentArchive [08:57:54]shift 454 fd 140032 [08:57:54]save to /storage/0454/doc_00140032 [08:57:54]save last doc name /storage/0454/doc_00140032 to /storage/kkm_last_doc_name [08:57:54]save OK [08:57:54]Clear old archive folders... [08:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:57:54]tlvbuf is 00AF9890 [08:57:54]SAM_PROTO_ClearQueue [08:57:54]wFMCommunicate request_size=4 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 09 00 00 [08:57:54]Write to MH i2c: E2 08 00 98 25 80 09 00 00 00 00 00 00 2F [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 98 25 00 90 00 31 [08:57:54]RAPDU: 90 00 [08:57:54]wFMCommunicate OK [08:57:54]SAM_PROTO_ClearQueue done [08:57:54]KKMCreateOFDPacket [08:57:54]OFDProtocolAddRootSTLVToBuf [08:57:54]FM_MakeSignedData [08:57:54]FM_MakeSignedData [08:57:54]SAM_PROTO_SignData [08:57:54]wFMCommunicate request_size=4 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 0D 01 02 [08:57:54]Write to MH i2c: E2 08 00 99 25 80 0D 01 02 00 00 00 00 37 [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 99 25 00 90 00 32 [08:57:54]RAPDU: 90 00 [08:57:54]wFMCommunicate OK [08:57:54]wFMCommunicate request_size=255 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 23 02 00 35 04 06 00 [08:57:54]Write to MH i2c: E2 02 01 9A 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 23 02 00 35 04 06 00 00 00 0F [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 9A 25 00 90 00 33 [08:57:54]RAPDU: 90 00 [08:57:54]wFMCommunicate OK [08:57:54]wFMCommunicate request_size=11 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 0D 02 02 06 1B 2D AB 1A B8 06 [08:57:54]Write to MH i2c: E2 0E 00 9B 25 80 0D 02 02 06 00 1B 2D AB 1A B8 06 00 00 11 [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 03 00 9B 25 00 90 00 34 [08:57:54]RAPDU: 90 00 [08:57:54]wFMCommunicate OK [08:57:54]wFMCommunicate request_size=4 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 0D 03 02 [08:57:54]Write to MH i2c: E2 08 00 9C 25 80 0D 03 02 00 00 00 00 3C [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 0B 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 0B 00 9C 25 00 EB 6A 11 2A C2 33 E9 EA 90 00 95 [08:57:54]RAPDU: EB 6A 11 2A C2 33 E9 EA 90 00 [08:57:54]wFMCommunicate OK [08:57:54]SAM_PROTO_SignData done [08:57:54]FM_MakeSignedData done [08:57:54]CreateOFDProtocolMessage [08:57:54]wFMCommunicate request_size=4 [08:57:54]MH_SAM_APDU [08:57:54]CAPDU: 80 11 00 00 [08:57:54]Write to MH i2c: E2 08 00 9D 25 80 11 00 00 00 00 00 00 3C [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:54]Read from MH i2c: E2 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 17 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: E2 17 00 9D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [08:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:54]wFMCommunicate OK [08:57:54]CreateOFDProtocolMessage done [08:57:54]OFDSenderStorePacket 140032 [08:57:54]StoreOFDPacket docnum=140032 [08:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A1 5D 08 01 19 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 23 02 00 35 04 06 00 1B 2D AB 1A B8 06 EB 6A 11 2A C2 33 E9 EA [08:57:54]CheckFolder [08:57:54]dirname=/storage/ofd_packets [08:57:54]CheckFolder done [08:57:54]ProducePacketName [08:57:54]name=ofd_packets/00140032 [08:57:54]NVStorageSaveData ofd_packets/00140032 [08:57:54]File name is /storage/ofd_packets/00140032 [08:57:54]Write 302 bytes [08:57:54]NVStorageSaveData done [08:57:54]OFDSenderStorePacket done [08:57:54]KKMCreateOFDPacket done [08:57:54]NVStorageSaveData kkm_last_timestamp [08:57:54]File name is /storage/kkm_last_timestamp [08:57:54]Write 4 bytes [08:57:54]NVStorageSaveData done [08:57:54]ExternCall_PrintAddStr [08:57:54]wPrintStart [08:57:54]Write to MH i2c: 01 00 00 9E 25 C3 [08:57:54]Write i2c OK [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: 01 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: 01 07 00 [08:57:54]MH_I2C_Read... [08:57:54]Read from MH i2c: 01 07 00 9E 25 00 00 00 00 00 FF 0F D8 [08:57:54]RasterBufferAndPrint [08:57:54]line Счет N : (1)593885 [08:57:54]line ИНН: 02508201610067 [08:57:54]line Контрольно-Кассовый Чек [08:57:54]line ПРОДАЖА [08:57:54]line ТРК (МРК, ГНК) : 21 [08:57:54]line Товар: 2710194210 [08:57:54]line ДТ(л)-К-5 [08:57:54]line 70.000 * 0.00 [08:57:54]line = 0.00 [08:57:54]line НДС 12% НСП 1% [08:57:54]line > о реализуемом товаре [08:57:54]line ИТОГО: 0.00 [08:57:54]line НСП 1% : 0.00 [08:57:54]line НДС 12% : 0.00 [08:57:54]line Наличными: 0.00 [08:57:55]line Безнал.: 0.00 [08:57:55]line Место: АЗС № 136 "Партнер Нефть" [08:57:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [08:57:55]line СНО: Общий режим [08:57:55]line Чек 49 21.08.2024 08:57 [08:57:55]line Смена: 454 ФФД: 1.0 [08:57:55]line ЗНМ: 0300000067 [08:57:55]line РНМ: 0000000000092569 [08:57:55]line Версия ККМ: 001 [08:57:55]line Талоны: ТК ГПНА Online [08:57:55]line 30104832 [08:57:55]line ФМ: 0000000000871776 [08:57:55]line ФД: 140032 [08:57:55]line ФПД: 29882958133254 [08:57:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T085755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140032&fm=29882958133254&tin=02508201610067®Number=0000000000092569&sum=0 [08:57:55]OFD Sender: Processing packet 140032 [packets to send 137, broken 136] [08:57:55]ProducePacketName [08:57:55]name=ofd_packets/00140032 [08:57:55]OFD Sender: To server: pG, [08:57:55]CommunicateWithHost lk.salyk.kg:30040 [08:57:55]ConnectInit lk.salyk.kg [08:57:55]written 0, free lines is 4095 [08:57:55]Connected sock=10 [08:57: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 37 36 10 01 00 00 A1 5D 08 01 19 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 13 AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 23 02 00 35 04 06 00 1B 2D AB 1A B8 06 EB 6A 11 2A C2 33 E9 EA [08:57: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 37 36 4F 00 00 00 23 33 47 00 12 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 37 36 10 04 04 00 00 23 02 00 F4 03 04 00 A5 52 C5 66 B6 04 01 00 00 23 6B D1 4A 0E 5A 51 96 [08:57:55]CommunicateWithHost err = 0 [08:57:55]CheckOFDResponse [08:57:55]1017 (14) - 77093643461234 [08:57:55]1041 (16) - 0000000000871776 [08:57:55]1040 (4) - 140032 [08:57:55]1012 (4) - 21.08.2024 02:36 [08:57:55]1206 (1) - 0 [08:57:55]OFD Sender: Remove packet 140032 [08:57:55]ProducePacketName [08:57:55]name=ofd_packets/00140032 [08:57:55]NVStorageDeleteData [08:57:55]Write to MH i2c: 01 00 00 C8 25 ED [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 07 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: 01 07 00 C8 25 00 00 00 00 00 FB 0C FB [08:57:55]RasterBufferAndPrint [08:57:55]line [08:57:55]line [08:57:55]line [08:57:55]line [08:57:55]line [08:57:55]written 0, free lines is 3346 [08:57:55]MH_Cut [08:57:55]Write to MH i2c: D1 01 00 CF 25 01 C6 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: D1 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: D1 01 00 [08:57:55]MH_I2C_Read... [08:57:55]Read from MH i2c: D1 01 00 CF 25 00 C5 [08:57:55]Write to MH i2c: 01 00 00 D0 25 F5 [08:57:55]Write i2c OK [08:57:55]MH_I2C_Read... [08:57:56]OFD Sender: No OFD packet to send [08:57:56]*** Cut start [08:57:56]*** Partial cut [08:57:56]*** CUTSNS_PIN = 1 [08:57:56]*** CUTSNS_PIN = 0 [08:57:56]*** Brake cut motor [08:57:57]Read from MH i2c: 01 [08:57:57]MH_I2C_Read... [08:57:57]*** Stop cut motor [08:57:57]*** Cut end [08:57:57]Read from MH i2c: 01 07 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 FF 0F 0A [08:57:57]process_action close_receipt done [08:57:57]requested_data is exist [08:57:57]produce_requested_data [08:57:57]requested_item fm.sn is exist - process it [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 11 00 00 [08:57:57]Write to MH i2c: E2 08 00 D1 25 80 11 00 00 00 00 00 00 70 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 17 00 D1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C7 [08:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [08:57:57]wFMCommunicate OK [08:57:57]requested_item fd.num is exist - process it [08:57:57]SAM_PROTO_GetFieldsCounters [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 13 00 00 [08:57:57]Write to MH i2c: E2 08 00 D2 25 80 13 00 00 00 00 00 00 73 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 62 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 62 00 D2 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_GetFieldsCounters done [08:57:57]requested_item shift.num is exist - process it [08:57:57]requested_item shift.opened is exist - process it [08:57:57]req_shift_opened [08:57:57]FM_GetShiftState [08:57:57]SAM_PROTO_GetShiftState [08:57:57]wFMCommunicate request_size=4 [08:57:57]MH_SAM_APDU [08:57:57]CAPDU: 80 13 01 00 [08:57:57]Write to MH i2c: E2 08 00 D3 25 80 13 01 00 00 00 00 00 75 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:57]Read from MH i2c: E2 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0E 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: E2 0E 00 D3 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F5 [08:57:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [08:57:57]wFMCommunicate OK [08:57:57]SAM_PROTO_GetShiftState done [08:57:57]FM_GetShiftState done [08:57:57]req_shift_opened done [08:57:57]requested_item shift.open_date is exist - process it [08:57:57]req_shift_open_date [08:57:57]req_shift_open_date done [08:57:57]produce_requested_data done [08:57:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140032,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [08:57:57]process_action_free close_receipt [08:57:57]json_value_free [08:57:57]json_value_free done [08:57:57]process_json_proto returns [08:57:57]Send response to host [08:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140032,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [08:57:57]free response buf [08:57:57]execute_script done [08:57:57]execute_script returns [08:57:57]free content buf [08:57:57]Sock 9.Close socket [08:57:57]Sock 9.Thread stoped [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:07]accept exits with 7 [09:00:07]New connection [09:00:07]New thread 3066764644 created [09:00:07]Thread 3066908004 joined [09:00:07]Waiting for new connection... [09:00:07] Sock 7.Parse request [09:00:07]Sock 7.Check first char [09:00:07]Sock 7.First char is OK [09:00:07]request: POST /json_proto HTTP/1.0 [09:00:07]Method: POST [09:00:07]URL: /json_proto [09:00:07]Method is POST - this is cgi request [09:00:07]url: /json_proto [09:00:07]query_string will be loaded in cgi processing [09:00:07]execute_cgi json_proto POST (null) [09:00:07]execute_cgi path=json_proto method=POST [09:00:07]POST find Content-Length [09:00:07]Host: 172.17.45.67:8080 [09:00:07]Content-Length: 677 [09:00:07]Content-Type: application/json [09:00:07] [09:00:07]POST finish read [09:00:07]Found Content-Length = 677 [09:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:07]execute_script... [09:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:07]POST & json_proto [09:00:07]process_json_proto [09:00:07]json parsed OK: [09:00:07]protocol is kg_v1.0 [09:00:07]action value=close_receipt [09:00:07]process_action close_receipt [09:00:07]cmd_close_receipt [09:00:07]MH_GetDate [09:00:07]Write to MH i2c: F0 00 00 D4 25 E8 [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 09 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: F0 09 00 D4 25 00 9A AC C5 66 5F 7F 2B 66 D1 [09:00:07]GetLastDocTimeStamp 1724230675 [09:00:07]current date 1724230810 [09:00:07]FM_GetShiftState [09:00:07]SAM_PROTO_GetShiftState [09:00:07]wFMCommunicate request_size=4 [09:00:07]MH_SAM_APDU [09:00:07]CAPDU: 80 13 01 00 [09:00:07]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [09:00:07]Write i2c OK [09:00:07]MH_I2C_Read... [09:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:07]Read from MH i2c: E2 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 0E 00 [09:00:07]MH_I2C_Read... [09:00:07]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F7 [09:00:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:00:07]wFMCommunicate OK [09:00:07]SAM_PROTO_GetShiftState done [09:00:07]FM_GetShiftState done [09:00:07]opened in 1724200467 [09:00:07]opened+sec_in_day 1724286867 [09:00:07]quantity*price = 40068 [09:00:07]sum+1 = 40069 [09:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 50 21.08.2024 09:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140033 ФПД: 1320012594429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140033&fm=1320012594429&tin=02508201610067®Number=0000000000092569&sum=40000 [09:00:08]StoreToDocumentArchive [09:00:08]shift 454 fd 140033 [09:00:08]save to /storage/0454/doc_00140033 [09:00:08]save last doc name /storage/0454/doc_00140033 to /storage/kkm_last_doc_name [09:00:08]save OK [09:00:08]Clear old archive folders... [09:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:08]tlvbuf is 00A6ABF0 [09:00:08]SAM_PROTO_ClearQueue [09:00:08]wFMCommunicate request_size=4 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 09 00 00 [09:00:08]Write to MH i2c: E2 08 00 E2 25 80 09 00 00 00 00 00 00 79 [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 E2 25 00 90 00 7B [09:00:08]RAPDU: 90 00 [09:00:08]wFMCommunicate OK [09:00:08]SAM_PROTO_ClearQueue done [09:00:08]KKMCreateOFDPacket [09:00:08]OFDProtocolAddRootSTLVToBuf [09:00:08]FM_MakeSignedData [09:00:08]FM_MakeSignedData [09:00:08]SAM_PROTO_SignData [09:00:08]wFMCommunicate request_size=4 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 0D 01 02 [09:00:08]Write to MH i2c: E2 08 00 E3 25 80 0D 01 02 00 00 00 00 81 [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 E3 25 00 90 00 7C [09:00:08]RAPDU: 90 00 [09:00:08]wFMCommunicate OK [09:00:08]wFMCommunicate request_size=255 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9A AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 23 02 00 35 04 06 00 01 [09:00:08]Write to MH i2c: E2 02 01 E4 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9A AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 23 02 00 35 04 06 00 01 00 00 5A [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [09:00:08]RAPDU: 90 00 [09:00:08]wFMCommunicate OK [09:00:08]wFMCommunicate request_size=10 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 0D 02 02 05 33 56 E1 BC FD [09:00:08]Write to MH i2c: E2 0D 00 E5 25 80 0D 02 02 05 00 33 56 E1 BC FD 00 00 B1 [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [09:00:08]RAPDU: 90 00 [09:00:08]wFMCommunicate OK [09:00:08]wFMCommunicate request_size=4 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 0D 03 02 [09:00:08]Write to MH i2c: E2 08 00 E6 25 80 0D 03 02 00 00 00 00 86 [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 0B 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 0B 00 E6 25 00 1E 02 58 F3 8C 9A B9 64 90 00 35 [09:00:08]RAPDU: 1E 02 58 F3 8C 9A B9 64 90 00 [09:00:08]wFMCommunicate OK [09:00:08]SAM_PROTO_SignData done [09:00:08]FM_MakeSignedData done [09:00:08]CreateOFDProtocolMessage [09:00:08]wFMCommunicate request_size=4 [09:00:08]MH_SAM_APDU [09:00:08]CAPDU: 80 11 00 00 [09:00:08]Write to MH i2c: E2 08 00 E7 25 80 11 00 00 00 00 00 00 86 [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:08]Read from MH i2c: E2 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 17 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: E2 17 00 E7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [09:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:00:08]wFMCommunicate OK [09:00:08]CreateOFDProtocolMessage done [09:00:08]OFDSenderStorePacket 140033 [09:00:08]StoreOFDPacket docnum=140033 [09:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C5 83 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9A AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 23 02 00 35 04 06 00 01 33 56 E1 BC FD 1E 02 58 F3 8C 9A B9 64 [09:00:08]CheckFolder [09:00:08]dirname=/storage/ofd_packets [09:00:08]CheckFolder done [09:00:08]ProducePacketName [09:00:08]name=ofd_packets/00140033 [09:00:08]NVStorageSaveData ofd_packets/00140033 [09:00:08]File name is /storage/ofd_packets/00140033 [09:00:08]Write 301 bytes [09:00:08]NVStorageSaveData done [09:00:08]OFDSenderStorePacket done [09:00:08]KKMCreateOFDPacket done [09:00:08]NVStorageSaveData kkm_last_timestamp [09:00:08]File name is /storage/kkm_last_timestamp [09:00:08]Write 4 bytes [09:00:08]NVStorageSaveData done [09:00:08]ExternCall_PrintAddStr [09:00:08]wPrintStart [09:00:08]Write to MH i2c: 01 00 00 E8 25 0D [09:00:08]Write i2c OK [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: 01 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: 01 07 00 [09:00:08]MH_I2C_Read... [09:00:08]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [09:00:08]RasterBufferAndPrint [09:00:08]line Счет N : (1)593887 [09:00:08]line ИНН: 02508201610067 [09:00:08]line Контрольно-Кассовый Чек [09:00:08]line ПРОДАЖА [09:00:08]line ТРК (МРК, ГНК) : 61 [09:00:08]line Товар: 2710124500 [09:00:08]line Аи-95-К-5 [09:00:08]line 5.400 * 74.20 [09:00:08]line = 400.68 [09:00:08]line НДС 12% НСП 1% [09:00:08]line > о реализуемом товаре [09:00:08]line ОКРУГЛЕНИЕ: -0.68 [09:00:08]line ИТОГО: 400.00 [09:00:08]line Внесено: 400.00 [09:00:08]line СДАЧА: 0.00 [09:00:08]line НСП 1% : 3.55 [09:00:08]line НДС 12% : 42.55 [09:00:08]line Наличными: 400.00 [09:00:08]line Безнал.: 0.00 [09:00:08]line Место: АЗС № 136 "Партнер Нефть" [09:00:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:00:08]line СНО: Общий режим [09:00:09]line Чек 50 21.08.2024 09:00 [09:00:09]line Смена: 454 ФФД: 1.0 [09:00:09]line ЗНМ: 0300000067 [09:00:09]line РНМ: 0000000000092569 [09:00:09]line Версия ККМ: 001 [09:00:09]line ФМ: 0000000000871776 [09:00:09]line ФД: 140033 [09:00:09]line ФПД: 1320012594429 [09:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140033&fm=1320012594429&tin=02508201610067®Number=0000000000092569&sum=40000 [09:00:09]OFD Sender: Processing packet 140033 [packets to send 137, broken 136] [09:00:09]ProducePacketName [09:00:09]name=ofd_packets/00140033 [09:00:09]OFD Sender: To server: pG, [09:00:09]CommunicateWithHost lk.salyk.kg:30040 [09:00:09]ConnectInit lk.salyk.kg [09:00:09]written 0, free lines is 4095 [09:00:09]Connected sock=10 [09:00: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 37 36 0F 01 00 00 C5 83 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 9A AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 23 02 00 35 04 06 00 01 33 56 E1 BC FD 1E 02 58 F3 8C 9A B9 64 [09:00: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 37 36 4F 00 00 00 29 00 47 00 36 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 37 36 10 04 04 00 01 23 02 00 F4 03 04 00 2B 53 C5 66 B6 04 01 00 00 D4 C2 66 C8 B4 45 0C 3F [09:00:09]CommunicateWithHost err = 0 [09:00:09]CheckOFDResponse [09:00:09]1017 (14) - 77093643461234 [09:00:09]1041 (16) - 0000000000871776 [09:00:09]1040 (4) - 140033 [09:00:09]1012 (4) - 21.08.2024 02:38 [09:00:09]1206 (1) - 0 [09:00:09]OFD Sender: Remove packet 140033 [09:00:09]ProducePacketName [09:00:09]name=ofd_packets/00140033 [09:00:09]NVStorageDeleteData [09:00:09]Write to MH i2c: 01 00 00 13 26 39 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: 01 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: 01 07 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 D2 0C 1E [09:00:09]RasterBufferAndPrint [09:00:09]line [09:00:09]line [09:00:09]line [09:00:09]line [09:00:09]line [09:00:09]written 0, free lines is 3289 [09:00:09]MH_Cut [09:00:09]Write to MH i2c: D1 01 00 1A 26 01 12 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: D1 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: D1 01 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: D1 01 00 1A 26 00 11 [09:00:09]Write to MH i2c: 01 00 00 1B 26 41 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:10]OFD Sender: No OFD packet to send [09:00:10]*** Cut start [09:00:10]*** Partial cut [09:00:10]*** CUTSNS_PIN = 1 [09:00:10]*** CUTSNS_PIN = 0 [09:00:10]*** Brake cut motor [09:00:11]Read from MH i2c: 01 [09:00:11]MH_I2C_Read... [09:00:11]*** Stop cut motor [09:00:11]*** Cut end [09:00:11]Read from MH i2c: 01 07 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 1B 26 00 00 00 00 00 FF 0F 56 [09:00:11]process_action close_receipt done [09:00:11]requested_data is exist [09:00:11]produce_requested_data [09:00:11]requested_item fm.sn is exist - process it [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 11 00 00 [09:00:11]Write to MH i2c: E2 08 00 1C 26 80 11 00 00 00 00 00 00 BC [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 17 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 17 00 1C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [09:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:00:11]wFMCommunicate OK [09:00:11]requested_item fd.num is exist - process it [09:00:11]SAM_PROTO_GetFieldsCounters [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 13 00 00 [09:00:11]Write to MH i2c: E2 08 00 1D 26 80 13 00 00 00 00 00 00 BF [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 62 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 62 00 1D 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [09:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:11]wFMCommunicate OK [09:00:11]SAM_PROTO_GetFieldsCounters done [09:00:11]requested_item shift.num is exist - process it [09:00:11]requested_item shift.opened is exist - process it [09:00:11]req_shift_opened [09:00:11]FM_GetShiftState [09:00:11]SAM_PROTO_GetShiftState [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 13 01 00 [09:00:11]Write to MH i2c: E2 08 00 1E 26 80 13 01 00 00 00 00 00 C1 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0E 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0E 00 1E 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 41 [09:00:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:00:11]wFMCommunicate OK [09:00:11]SAM_PROTO_GetShiftState done [09:00:11]FM_GetShiftState done [09:00:11]req_shift_opened done [09:00:11]requested_item shift.open_date is exist - process it [09:00:11]req_shift_open_date [09:00:11]req_shift_open_date done [09:00:11]produce_requested_data done [09:00:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140033,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:00:11]process_action_free close_receipt [09:00:11]json_value_free [09:00:11]json_value_free done [09:00:11]process_json_proto returns [09:00:11]Send response to host [09:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140033,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:00:11]free response buf [09:00:11]execute_script done [09:00:11]execute_script returns [09:00:11]free content buf [09:00:11]Sock 7.Close socket [09:00:11]Sock 7.Thread stoped [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:28]accept exits with 9 [09:01:28]New connection [09:01:28]New thread 3066908004 created [09:01:28]Thread 3066764644 joined [09:01:28]Waiting for new connection... [09:01:28] Sock 9.Parse request [09:01:28]Sock 9.Check first char [09:01:28]Sock 9.First char is OK [09:01:28]request: POST /json_proto HTTP/1.0 [09:01:28]Method: POST [09:01:28]URL: /json_proto [09:01:28]Method is POST - this is cgi request [09:01:28]url: /json_proto [09:01:28]query_string will be loaded in cgi processing [09:01:28]execute_cgi json_proto POST (null) [09:01:28]execute_cgi path=json_proto method=POST [09:01:28]POST find Content-Length [09:01:28]Host: 172.17.45.67:8080 [09:01:28]Content-Length: 677 [09:01:28]Content-Type: application/json [09:01:28] [09:01:28]POST finish read [09:01:28]Found Content-Length = 677 [09:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:28]execute_script... [09:01: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)593888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:28]POST & json_proto [09:01:28]process_json_proto [09:01:28]json parsed OK: [09:01:28]protocol is kg_v1.0 [09:01:28]action value=close_receipt [09:01:28]process_action close_receipt [09:01:28]cmd_close_receipt [09:01:28]MH_GetDate [09:01:28]Write to MH i2c: F0 00 00 1F 26 34 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: F0 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: F0 09 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: F0 09 00 1F 26 00 EB AC C5 66 5F 7F 2B 66 6E [09:01:28]GetLastDocTimeStamp 1724230810 [09:01:28]current date 1724230891 [09:01:28]FM_GetShiftState [09:01:28]SAM_PROTO_GetShiftState [09:01:28]wFMCommunicate request_size=4 [09:01:28]MH_SAM_APDU [09:01:28]CAPDU: 80 13 01 00 [09:01:28]Write to MH i2c: E2 08 00 20 26 80 13 01 00 00 00 00 00 C3 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:28]Read from MH i2c: E2 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 0E 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: E2 0E 00 20 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [09:01:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:01:28]wFMCommunicate OK [09:01:28]SAM_PROTO_GetShiftState done [09:01:28]FM_GetShiftState done [09:01:28]opened in 1724200467 [09:01:28]opened+sec_in_day 1724286867 [09:01:28]quantity*price = 50036 [09:01:28]sum+1 = 50037 [09:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 51 21.08.2024 09:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140034 ФПД: 2423953744327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140034&fm=2423953744327&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:29]StoreToDocumentArchive [09:01:29]shift 454 fd 140034 [09:01:29]save to /storage/0454/doc_00140034 [09:01:29]save last doc name /storage/0454/doc_00140034 to /storage/kkm_last_doc_name [09:01:29]save OK [09:01:29]Clear old archive folders... [09:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:29]tlvbuf is 00AE2590 [09:01:29]SAM_PROTO_ClearQueue [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 09 00 00 [09:01:29]Write to MH i2c: E2 08 00 2D 26 80 09 00 00 00 00 00 00 C5 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [09:01:29]RAPDU: 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_ClearQueue done [09:01:29]KKMCreateOFDPacket [09:01:29]OFDProtocolAddRootSTLVToBuf [09:01:29]FM_MakeSignedData [09:01:29]FM_MakeSignedData [09:01:29]SAM_PROTO_SignData [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 0D 01 02 [09:01:29]Write to MH i2c: E2 08 00 2E 26 80 0D 01 02 00 00 00 00 CD [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [09:01:30]RAPDU: 90 00 [09:01:30]wFMCommunicate OK [09:01:30]wFMCommunicate request_size=255 [09:01:30]MH_SAM_APDU [09:01: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 23 02 00 35 04 06 00 02 [09:01:30]Write to MH i2c: E2 02 01 2F 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 23 02 00 35 04 06 00 02 00 00 3B [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [09:01:30]RAPDU: 90 00 [09:01:30]wFMCommunicate OK [09:01:30]wFMCommunicate request_size=10 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 0D 02 02 05 34 5E E6 E1 C7 [09:01:30]Write to MH i2c: E2 0D 00 30 26 80 0D 02 02 05 00 34 5E E6 E1 C7 00 00 FA [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [09:01:30]RAPDU: 90 00 [09:01:30]wFMCommunicate OK [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 0D 03 02 [09:01:30]Write to MH i2c: E2 08 00 31 26 80 0D 03 02 00 00 00 00 D2 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:30]OFD Sender: No OFD packet to send [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0B 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 0B 00 31 26 00 6F 23 EB 6B 2D D1 5D 5D 90 00 73 [09:01:30]RAPDU: 6F 23 EB 6B 2D D1 5D 5D 90 00 [09:01:30]wFMCommunicate OK [09:01:30]SAM_PROTO_SignData done [09:01:30]FM_MakeSignedData done [09:01:30]CreateOFDProtocolMessage [09:01:30]wFMCommunicate request_size=4 [09:01:30]MH_SAM_APDU [09:01:30]CAPDU: 80 11 00 00 [09:01:30]Write to MH i2c: E2 08 00 32 26 80 11 00 00 00 00 00 00 D2 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:30]Read from MH i2c: E2 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 17 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: E2 17 00 32 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [09:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:30]wFMCommunicate OK [09:01:30]CreateOFDProtocolMessage done [09:01:30]OFDSenderStorePacket 140034 [09:01:30]StoreOFDPacket docnum=140034 [09:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 4D 07 01 B6 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 23 02 00 35 04 06 00 02 34 5E E6 E1 C7 6F 23 EB 6B 2D D1 5D 5D [09:01:30]CheckFolder [09:01:30]dirname=/storage/ofd_packets [09:01:30]CheckFolder done [09:01:30]ProducePacketName [09:01:30]name=ofd_packets/00140034 [09:01:30]NVStorageSaveData ofd_packets/00140034 [09:01:30]File name is /storage/ofd_packets/00140034 [09:01:30]Write 301 bytes [09:01:30]NVStorageSaveData done [09:01:30]OFDSenderStorePacket done [09:01:30]KKMCreateOFDPacket done [09:01:30]NVStorageSaveData kkm_last_timestamp [09:01:30]File name is /storage/kkm_last_timestamp [09:01:30]Write 4 bytes [09:01:30]NVStorageSaveData done [09:01:30]ExternCall_PrintAddStr [09:01:30]wPrintStart [09:01:30]Write to MH i2c: 01 00 00 33 26 59 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [09:01:30]RasterBufferAndPrint [09:01:30]line Счет N : (1)593888 [09:01:30]line ИНН: 02508201610067 [09:01:30]line Контрольно-Кассовый Чек [09:01:30]line ПРОДАЖА [09:01:30]line ТРК (МРК, ГНК) : 42 [09:01:30]line Товар: 2710124130 [09:01:30]line Аи-92-К-5 [09:01:30]line 7.380 * 67.80 [09:01:30]line = 500.36 [09:01:30]line НДС 12% НСП 1% [09:01:30]line > о реализуемом товаре [09:01:30]line ОКРУГЛЕНИЕ: -0.36 [09:01:30]line ИТОГО: 500.00 [09:01:30]line Внесено: 500.00 [09:01:30]line СДАЧА: 0.00 [09:01:30]line НСП 1% : 4.43 [09:01:30]line НДС 12% : 53.14 [09:01:30]line Наличными: 500.00 [09:01:30]line Безнал.: 0.00 [09:01:30]line Место: АЗС № 136 "Партнер Нефть" [09:01:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:01:30]line СНО: Общий режим [09:01:30]line Чек 51 21.08.2024 09:01 [09:01:30]line Смена: 454 ФФД: 1.0 [09:01:30]line ЗНМ: 0300000067 [09:01:30]line РНМ: 0000000000092569 [09:01:30]line Версия ККМ: 001 [09:01:30]line ФМ: 0000000000871776 [09:01:30]line ФД: 140034 [09:01:30]line ФПД: 2423953744327 [09:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090131&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140034&fm=2423953744327&tin=02508201610067®Number=0000000000092569&sum=50000 [09:01:30]written 0, free lines is 4095 [09:01:30]OFD Sender: Processing packet 140034 [packets to send 137, broken 136] [09:01:30]ProducePacketName [09:01:30]name=ofd_packets/00140034 [09:01:30]OFD Sender: To server: pG, [09:01:30]CommunicateWithHost lk.salyk.kg:30040 [09:01:30]ConnectInit lk.salyk.kg [09:01:30]Write to MH i2c: 01 00 00 5E 26 84 [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: 01 07 00 5E 26 00 00 00 00 00 C6 0C 5D [09:01:30]RasterBufferAndPrint [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]line [09:01:30]written 0, free lines is 3276 [09:01:30]MH_Cut [09:01:30]Write to MH i2c: D1 01 00 65 26 01 5D [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 [09:01:30]MH_I2C_Read... [09:01:30]Read from MH i2c: D1 01 00 65 26 00 5C [09:01:30]Write to MH i2c: 01 00 00 66 26 8C [09:01:30]Write i2c OK [09:01:30]MH_I2C_Read... [09:01:31]*** Cut start [09:01:31]*** Partial cut [09:01:31]*** CUTSNS_PIN = 1 [09:01:31]*** CUTSNS_PIN = 0 [09:01:31]*** Brake cut motor [09:01:32]Read from MH i2c: 01 [09:01:32]MH_I2C_Read... [09:01:32]*** Stop cut motor [09:01:32]*** Cut end [09:01:32]Read from MH i2c: 01 07 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: 01 07 00 66 26 00 00 00 00 00 FF 0F A1 [09:01:32]process_action close_receipt done [09:01:32]requested_data is exist [09:01:32]produce_requested_data [09:01:32]requested_item fm.sn is exist - process it [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 11 00 00 [09:01:32]Write to MH i2c: E2 08 00 67 26 80 11 00 00 00 00 00 00 07 [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 17 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 17 00 67 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5E [09:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:01:32]wFMCommunicate OK [09:01:32]requested_item fd.num is exist - process it [09:01:32]SAM_PROTO_GetFieldsCounters [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 13 00 00 [09:01:32]Write to MH i2c: E2 08 00 68 26 80 13 00 00 00 00 00 00 0A [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 62 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 62 00 68 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:32]wFMCommunicate OK [09:01:32]SAM_PROTO_GetFieldsCounters done [09:01:32]requested_item shift.num is exist - process it [09:01:32]requested_item shift.opened is exist - process it [09:01:32]req_shift_opened [09:01:32]FM_GetShiftState [09:01:32]SAM_PROTO_GetShiftState [09:01:32]wFMCommunicate request_size=4 [09:01:32]MH_SAM_APDU [09:01:32]CAPDU: 80 13 01 00 [09:01:32]Write to MH i2c: E2 08 00 69 26 80 13 01 00 00 00 00 00 0C [09:01:32]Write i2c OK [09:01:32]MH_I2C_Read... [09:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:32]Read from MH i2c: E2 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 0E 00 [09:01:32]MH_I2C_Read... [09:01:32]Read from MH i2c: E2 0E 00 69 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [09:01:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:01:32]wFMCommunicate OK [09:01:32]SAM_PROTO_GetShiftState done [09:01:32]FM_GetShiftState done [09:01:32]req_shift_opened done [09:01:32]requested_item shift.open_date is exist - process it [09:01:32]req_shift_open_date [09:01:32]req_shift_open_date done [09:01:32]produce_requested_data done [09:01:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140034,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:01:32]process_action_free close_receipt [09:01:32]json_value_free [09:01:32]json_value_free done [09:01:32]process_json_proto returns [09:01:32]Send response to host [09:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140034,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:01:32]free response buf [09:01:32]execute_script done [09:01:32]execute_script returns [09:01:32]free content buf [09:01:32]Sock 9.Close socket [09:01:32]Sock 9.Thread stoped [09:03:39]ConnectInit Can't connect to host [09:03:39]CommunicateWithHost connect error [09:03:39]CommunicateWithHost err = -1 [09:03:39]OFD Sender: Server communicate error [09:03:44]OFD Sender: Processing packet 140034 [packets to send 137, broken 136] [09:03:44]ProducePacketName [09:03:44]name=ofd_packets/00140034 [09:03:44]OFD Sender: To server: pG, [09:03:44]CommunicateWithHost lk.salyk.kg:30040 [09:03:44]ConnectInit lk.salyk.kg [09:03:45]Connected sock=9 [09:03: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 37 36 0F 01 00 00 15 4D 07 01 B6 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EB AC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 23 02 00 35 04 06 00 02 34 5E E6 E1 C7 6F 23 EB 6B 2D D1 5D 5D [09:03:45]accept exits with 7 [09:03:45]New connection [09:03:45]New thread 3066764644 created [09:03:45]Thread 3066908004 joined [09:03:45]Waiting for new connection... [09:03:45] Sock 7.Parse request [09:03:45]Sock 7.Check first char [09:03:45]Sock 7.First char is OK [09:03:45]request: POST /json_proto HTTP/1.0 [09:03:45]Method: POST [09:03:45]URL: /json_proto [09:03:45]Method is POST - this is cgi request [09:03:45]url: /json_proto [09:03:45]query_string will be loaded in cgi processing [09:03:45]execute_cgi json_proto POST (null) [09:03:45]execute_cgi path=json_proto method=POST [09:03:45]POST find Content-Length [09:03:45]Host: 172.17.45.67:8080 [09:03:45]Content-Length: 682 [09:03:45]Content-Type: application/json [09:03:45] [09:03:45]POST finish read [09:03:45]Found Content-Length = 682 [09:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:45]execute_script... [09:03: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)593889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:45]POST & json_proto [09:03:45]process_json_proto [09:03:45]json parsed OK: [09:03:45]protocol is kg_v1.0 [09:03:45]action value=close_receipt [09:03:45]process_action close_receipt [09:03:45]cmd_close_receipt [09:03:45]MH_GetDate [09:03:45]Write to MH i2c: F0 00 00 6A 26 7F [09:03:45]Write i2c OK [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: F0 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: F0 09 00 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: F0 09 00 6A 26 00 74 AD C5 66 5F 7F 2B 66 43 [09:03:45]GetLastDocTimeStamp 1724230891 [09:03:45]current date 1724231028 [09:03:45]FM_GetShiftState [09:03:45]SAM_PROTO_GetShiftState [09:03:45]wFMCommunicate request_size=4 [09:03:45]MH_SAM_APDU [09:03:45]CAPDU: 80 13 01 00 [09:03:45]Write to MH i2c: E2 08 00 6B 26 80 13 01 00 00 00 00 00 0E [09:03:45]Write i2c OK [09:03:45]MH_I2C_Read... [09:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:45]Read from MH i2c: E2 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 0E 00 [09:03:45]MH_I2C_Read... [09:03:45]Read from MH i2c: E2 0E 00 6B 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [09:03:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:03:45]wFMCommunicate OK [09:03:45]SAM_PROTO_GetShiftState done [09:03:45]FM_GetShiftState done [09:03:45]opened in 1724200467 [09:03:45]opened+sec_in_day 1724286867 [09:03:45]quantity*price = 100005 [09:03:45]sum+1 = 100006 [09:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 52 21.08.2024 09:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140035 ФПД: 19920077335635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090348&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140035&fm=19920077335635&tin=02508201610067®Number=0000000000092569&sum=100000 [09:03:46]StoreToDocumentArchive [09:03:46]shift 454 fd 140035 [09:03:46]save to /storage/0454/doc_00140035 [09:03:46]save last doc name /storage/0454/doc_00140035 to /storage/kkm_last_doc_name [09:03:46]save OK [09:03:46]Clear old archive folders... [09:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:46]tlvbuf is B6E9DEE0 [09:03:46]SAM_PROTO_ClearQueue [09:03:46]wFMCommunicate request_size=4 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 09 00 00 [09:03:46]Write to MH i2c: E2 08 00 78 26 80 09 00 00 00 00 00 00 10 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [09:03:46]RAPDU: 90 00 [09:03:46]wFMCommunicate OK [09:03:46]SAM_PROTO_ClearQueue done [09:03:46]KKMCreateOFDPacket [09:03:46]OFDProtocolAddRootSTLVToBuf [09:03:46]FM_MakeSignedData [09:03:46]FM_MakeSignedData [09:03:46]SAM_PROTO_SignData [09:03:46]wFMCommunicate request_size=4 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 0D 01 02 [09:03:46]Write to MH i2c: E2 08 00 79 26 80 0D 01 02 00 00 00 00 18 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [09:03:46]RAPDU: 90 00 [09:03:46]wFMCommunicate OK [09:03:46]wFMCommunicate request_size=255 [09:03:46]MH_SAM_APDU [09:03: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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 74 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 23 02 00 35 04 06 00 12 [09:03:46]Write to MH i2c: E2 02 01 7A 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 74 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 23 02 00 35 04 06 00 12 00 00 B1 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 7A 26 00 90 00 14 [09:03:46]RAPDU: 90 00 [09:03:46]wFMCommunicate OK [09:03:46]wFMCommunicate request_size=10 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 0D 02 02 05 1E 01 22 2C 53 [09:03:46]Write to MH i2c: E2 0D 00 7B 26 80 0D 02 02 05 00 1E 01 22 2C 53 00 00 E5 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 03 00 7B 26 00 90 00 15 [09:03:46]RAPDU: 90 00 [09:03:46]wFMCommunicate OK [09:03:46]wFMCommunicate request_size=4 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 0D 03 02 [09:03:46]Write to MH i2c: E2 08 00 7C 26 80 0D 03 02 00 00 00 00 1D [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 0B 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 0B 00 7C 26 00 03 9C 09 A9 9F 66 22 9A 90 00 30 [09:03:46]RAPDU: 03 9C 09 A9 9F 66 22 9A 90 00 [09:03:46]wFMCommunicate OK [09:03:46]SAM_PROTO_SignData done [09:03:46]FM_MakeSignedData done [09:03:46]CreateOFDProtocolMessage [09:03:46]wFMCommunicate request_size=4 [09:03:46]MH_SAM_APDU [09:03:46]CAPDU: 80 11 00 00 [09:03:46]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:46]Read from MH i2c: E2 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 17 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [09:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:46]wFMCommunicate OK [09:03:46]CreateOFDProtocolMessage done [09:03:46]OFDSenderStorePacket 140035 [09:03:46]StoreOFDPacket docnum=140035 [09:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 F5 07 01 07 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 74 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 23 02 00 35 04 06 00 12 1E 01 22 2C 53 03 9C 09 A9 9F 66 22 9A [09:03:46]CheckFolder [09:03:46]dirname=/storage/ofd_packets [09:03:46]CheckFolder done [09:03:46]ProducePacketName [09:03:46]name=ofd_packets/00140035 [09:03:46]NVStorageSaveData ofd_packets/00140035 [09:03:46]File name is /storage/ofd_packets/00140035 [09:03:46]Write 301 bytes [09:03:46]NVStorageSaveData done [09:03:46]OFDSenderStorePacket done [09:03:46]KKMCreateOFDPacket done [09:03:46]NVStorageSaveData kkm_last_timestamp [09:03:46]File name is /storage/kkm_last_timestamp [09:03:46]Write 4 bytes [09:03:46]NVStorageSaveData done [09:03:46]ExternCall_PrintAddStr [09:03:46]wPrintStart [09:03:46]Write to MH i2c: 01 00 00 7E 26 A4 [09:03:46]Write i2c OK [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: 01 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: 01 07 00 [09:03:46]MH_I2C_Read... [09:03:46]Read from MH i2c: 01 07 00 7E 26 00 00 00 00 00 FF 0F B9 [09:03:46]RasterBufferAndPrint [09:03:46]line Счет N : (1)593889 [09:03:46]line ИНН: 02508201610067 [09:03:46]line Контрольно-Кассовый Чек [09:03:46]line ПРОДАЖА [09:03:46]line ТРК (МРК, ГНК) : 52 [09:03:46]line Товар: 2710124130 [09:03:46]line Аи-92-К-5 [09:03:46]line 14.750 * 67.80 [09:03:46]line = 1000.05 [09:03:46]line НДС 12% НСП 1% [09:03:46]line > о реализуемом товаре [09:03:46]line ОКРУГЛЕНИЕ: -0.05 [09:03:46]line ИТОГО: 1000.00 [09:03:46]line Внесено: 1000.00 [09:03:46]line СДАЧА: 0.00 [09:03:46]line НСП 1% : 8.85 [09:03:46]line НДС 12% : 106.20 [09:03:46]line Наличными: 1000.00 [09:03:46]line Безнал.: 0.00 [09:03:46]line Место: АЗС № 136 "Партнер Нефть" [09:03:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:03:46]line СНО: Общий режим [09:03:46]line Чек 52 21.08.2024 09:03 [09:03:46]line Смена: 454 ФФД: 1.0 [09:03:46]line ЗНМ: 0300000067 [09:03:46]line РНМ: 0000000000092569 [09:03:46]line Версия ККМ: 001 [09:03:46]line ФМ: 0000000000871776 [09:03:46]line ФД: 140035 [09:03:46]line ФПД: 19920077335635 [09:03:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090348&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140035&fm=19920077335635&tin=02508201610067®Number=0000000000092569&sum=100000 [09:03:47]OFD Sender: Processing packet 140035 [packets to send 137, broken 136] [09:03:47]ProducePacketName [09:03:47]name=ofd_packets/00140035 [09:03:47]OFD Sender: To server: pG, [09:03:47]CommunicateWithHost lk.salyk.kg:30040 [09:03:47]ConnectInit lk.salyk.kg [09:03:47]written 0, free lines is 4095 [09:03:47]Connected sock=11 [09:03: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 37 36 0F 01 00 00 F2 F5 07 01 07 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 74 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 23 02 00 35 04 06 00 12 1E 01 22 2C 53 03 9C 09 A9 9F 66 22 9A [09:03:47]Write to MH i2c: 01 00 00 A9 26 CF [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 07 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: 01 07 00 A9 26 00 00 00 00 00 CF 0C B1 [09:03:47]RasterBufferAndPrint [09:03:47]line [09:03:47]line [09:03:47]line [09:03:47]line [09:03:47]line [09:03:47]written 0, free lines is 3284 [09:03:47]MH_Cut [09:03:47]Write to MH i2c: D1 01 00 B0 26 01 A8 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: D1 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: D1 01 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: D1 01 00 B0 26 00 A7 [09:03:47]Write to MH i2c: 01 00 00 B1 26 D7 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03: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 37 36 4F 00 00 00 88 37 47 00 67 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 37 36 10 04 04 00 03 23 02 00 F4 03 04 00 05 54 C5 66 B6 04 01 00 00 1D CF 7A 4D 8F D3 60 1F [09:03:47]CommunicateWithHost err = 0 [09:03:47]CheckOFDResponse [09:03:47]1017 (14) - 77093643461234 [09:03:47]1041 (16) - 0000000000871776 [09:03:47]1040 (4) - 140035 [09:03:47]1012 (4) - 21.08.2024 02:42 [09:03:47]1206 (1) - 0 [09:03:47]OFD Sender: Remove packet 140035 [09:03:47]ProducePacketName [09:03:47]name=ofd_packets/00140035 [09:03:47]NVStorageDeleteData [09:03:48]OFD Sender: No OFD packet to send [09:03:48]*** Cut start [09:03:48]*** Partial cut [09:03:48]*** CUTSNS_PIN = 1 [09:03:48]*** CUTSNS_PIN = 0 [09:03:48]*** Brake cut motor [09:03:49]Read from MH i2c: 01 [09:03:49]MH_I2C_Read... [09:03:49]*** Stop cut motor [09:03:49]*** Cut end [09:03:49]Read from MH i2c: 01 07 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: 01 07 00 B1 26 00 00 00 00 00 FF 0F EC [09:03:49]process_action close_receipt done [09:03:49]requested_data is exist [09:03:49]produce_requested_data [09:03:49]requested_item fm.sn is exist - process it [09:03:49]wFMCommunicate request_size=4 [09:03:49]MH_SAM_APDU [09:03:49]CAPDU: 80 11 00 00 [09:03:49]Write to MH i2c: E2 08 00 B2 26 80 11 00 00 00 00 00 00 52 [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:49]Read from MH i2c: E2 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 17 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 17 00 B2 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [09:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:03:49]wFMCommunicate OK [09:03:49]requested_item fd.num is exist - process it [09:03:49]SAM_PROTO_GetFieldsCounters [09:03:49]wFMCommunicate request_size=4 [09:03:49]MH_SAM_APDU [09:03:49]CAPDU: 80 13 00 00 [09:03:49]Write to MH i2c: E2 08 00 B3 26 80 13 00 00 00 00 00 00 55 [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:49]Read from MH i2c: E2 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 62 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 62 00 B3 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:49]wFMCommunicate OK [09:03:49]SAM_PROTO_GetFieldsCounters done [09:03:49]requested_item shift.num is exist - process it [09:03:49]requested_item shift.opened is exist - process it [09:03:49]req_shift_opened [09:03:49]FM_GetShiftState [09:03:49]SAM_PROTO_GetShiftState [09:03:49]wFMCommunicate request_size=4 [09:03:49]MH_SAM_APDU [09:03:49]CAPDU: 80 13 01 00 [09:03:49]Write to MH i2c: E2 08 00 B4 26 80 13 01 00 00 00 00 00 57 [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:49]Read from MH i2c: E2 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 0E 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 0E 00 B4 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [09:03:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:03:49]wFMCommunicate OK [09:03:49]SAM_PROTO_GetShiftState done [09:03:49]FM_GetShiftState done [09:03:49]req_shift_opened done [09:03:49]requested_item shift.open_date is exist - process it [09:03:49]req_shift_open_date [09:03:49]req_shift_open_date done [09:03:49]produce_requested_data done [09:03:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140035,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:03:49]process_action_free close_receipt [09:03:49]json_value_free [09:03:49]json_value_free done [09:03:49]process_json_proto returns [09:03:49]Send response to host [09:03:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140035,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:03:49]free response buf [09:03:49]execute_script done [09:03:49]execute_script returns [09:03:49]free content buf [09:03:49]Sock 7.Close socket [09:03:49]Sock 7.Thread stoped [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:28]accept exits with 10 [09:05:28]New connection [09:05:28]New thread 3066908004 created [09:05:28]Thread 3066764644 joined [09:05:28]Waiting for new connection... [09:05:28] Sock 10.Parse request [09:05:28]Sock 10.Check first char [09:05:28]Sock 10.First char is OK [09:05:28]request: POST /json_proto HTTP/1.0 [09:05:28]Method: POST [09:05:28]URL: /json_proto [09:05:28]Method is POST - this is cgi request [09:05:28]url: /json_proto [09:05:28]query_string will be loaded in cgi processing [09:05:28]execute_cgi json_proto POST (null) [09:05:28]execute_cgi path=json_proto method=POST [09:05:28]POST find Content-Length [09:05:28]Host: 172.17.45.67:8080 [09:05:28]Content-Length: 677 [09:05:28]Content-Type: application/json [09:05:28] [09:05:28]POST finish read [09:05:28]Found Content-Length = 677 [09:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:28]execute_script... [09:05: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)593890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:28]POST & json_proto [09:05:28]process_json_proto [09:05:28]json parsed OK: [09:05:28]protocol is kg_v1.0 [09:05:28]action value=close_receipt [09:05:28]process_action close_receipt [09:05:28]cmd_close_receipt [09:05:28]MH_GetDate [09:05:28]Write to MH i2c: F0 00 00 B5 26 CA [09:05:28]Write i2c OK [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: F0 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: F0 09 00 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: F0 09 00 B5 26 00 DB AD C5 66 5F 7F 2B 66 F5 [09:05:28]GetLastDocTimeStamp 1724231028 [09:05:28]current date 1724231131 [09:05:28]FM_GetShiftState [09:05:28]SAM_PROTO_GetShiftState [09:05:28]wFMCommunicate request_size=4 [09:05:28]MH_SAM_APDU [09:05:28]CAPDU: 80 13 01 00 [09:05:28]Write to MH i2c: E2 08 00 B6 26 80 13 01 00 00 00 00 00 59 [09:05:28]Write i2c OK [09:05:28]MH_I2C_Read... [09:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:28]Read from MH i2c: E2 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: E2 0E 00 [09:05:28]MH_I2C_Read... [09:05:28]Read from MH i2c: E2 0E 00 B6 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [09:05:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:05:28]wFMCommunicate OK [09:05:28]SAM_PROTO_GetShiftState done [09:05:28]FM_GetShiftState done [09:05:28]opened in 1724200467 [09:05:28]opened+sec_in_day 1724286867 [09:05:28]quantity*price = 60027 [09:05:28]sum+1 = 60029 [09:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 53 21.08.2024 09:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140036 ФПД: 270160040225447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140036&fm=270160040225447&tin=02508201610067®Number=0000000000092569&sum=60000 [09:05:29]StoreToDocumentArchive [09:05:29]shift 454 fd 140036 [09:05:29]save to /storage/0454/doc_00140036 [09:05:29]save last doc name /storage/0454/doc_00140036 to /storage/kkm_last_doc_name [09:05:29]save OK [09:05:29]Clear old archive folders... [09:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:29]tlvbuf is 00A00E10 [09:05:29]SAM_PROTO_ClearQueue [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 09 00 00 [09:05:29]Write to MH i2c: E2 08 00 C3 26 80 09 00 00 00 00 00 00 5B [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 03 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 03 00 C3 26 00 90 00 5D [09:05:29]RAPDU: 90 00 [09:05:29]wFMCommunicate OK [09:05:29]SAM_PROTO_ClearQueue done [09:05:29]KKMCreateOFDPacket [09:05:29]OFDProtocolAddRootSTLVToBuf [09:05:29]FM_MakeSignedData [09:05:29]FM_MakeSignedData [09:05:29]SAM_PROTO_SignData [09:05:29]wFMCommunicate request_size=4 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 0D 01 02 [09:05:29]Write to MH i2c: E2 08 00 C4 26 80 0D 01 02 00 00 00 00 63 [09:05:29]Write i2c OK [09:05:29]MH_I2C_Read... [09:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:29]Read from MH i2c: E2 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 03 00 [09:05:29]MH_I2C_Read... [09:05:29]Read from MH i2c: E2 03 00 C4 26 00 90 00 5E [09:05:29]RAPDU: 90 00 [09:05:29]wFMCommunicate OK [09:05:29]wFMCommunicate request_size=255 [09:05:29]MH_SAM_APDU [09:05:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 23 02 00 35 04 06 00 F5 [09:05:29]Write to MH i2c: E2 02 01 C5 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 23 02 00 35 04 06 00 F5 00 00 27 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 C5 26 00 90 00 5F [09:05:30]RAPDU: 90 00 [09:05:30]wFMCommunicate OK [09:05:30]wFMCommunicate request_size=10 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 0D 02 02 05 B5 89 3A EA A7 [09:05:30]Write to MH i2c: E2 0D 00 C6 26 80 0D 02 02 05 00 B5 89 3A EA A7 00 00 79 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 03 00 C6 26 00 90 00 60 [09:05:30]RAPDU: 90 00 [09:05:30]wFMCommunicate OK [09:05:30]wFMCommunicate request_size=4 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 0D 03 02 [09:05:30]Write to MH i2c: E2 08 00 C7 26 80 0D 03 02 00 00 00 00 68 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 0B 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 0B 00 C7 26 00 4D FB 2B 2C BB 1E 1D 41 90 00 3F [09:05:30]RAPDU: 4D FB 2B 2C BB 1E 1D 41 90 00 [09:05:30]wFMCommunicate OK [09:05:30]SAM_PROTO_SignData done [09:05:30]FM_MakeSignedData done [09:05:30]CreateOFDProtocolMessage [09:05:30]wFMCommunicate request_size=4 [09:05:30]MH_SAM_APDU [09:05:30]CAPDU: 80 11 00 00 [09:05:30]Write to MH i2c: E2 08 00 C8 26 80 11 00 00 00 00 00 00 68 [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:30]Read from MH i2c: E2 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 17 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: E2 17 00 C8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [09:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:05:30]wFMCommunicate OK [09:05:30]CreateOFDProtocolMessage done [09:05:30]OFDSenderStorePacket 140036 [09:05:30]StoreOFDPacket docnum=140036 [09:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A 68 07 01 8F 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 23 02 00 35 04 06 00 F5 B5 89 3A EA A7 4D FB 2B 2C BB 1E 1D 41 [09:05:30]CheckFolder [09:05:30]dirname=/storage/ofd_packets [09:05:30]CheckFolder done [09:05:30]ProducePacketName [09:05:30]name=ofd_packets/00140036 [09:05:30]NVStorageSaveData ofd_packets/00140036 [09:05:30]File name is /storage/ofd_packets/00140036 [09:05:30]Write 301 bytes [09:05:30]NVStorageSaveData done [09:05:30]OFDSenderStorePacket done [09:05:30]KKMCreateOFDPacket done [09:05:30]NVStorageSaveData kkm_last_timestamp [09:05:30]File name is /storage/kkm_last_timestamp [09:05:30]Write 4 bytes [09:05:30]NVStorageSaveData done [09:05:30]ExternCall_PrintAddStr [09:05:30]wPrintStart [09:05:30]Write to MH i2c: 01 00 00 C9 26 EF [09:05:30]Write i2c OK [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 [09:05:30]MH_I2C_Read... [09:05:30]Read from MH i2c: 01 07 00 C9 26 00 00 00 00 00 FF 0F 04 [09:05:30]RasterBufferAndPrint [09:05:30]line Счет N : (1)593890 [09:05:30]line ИНН: 02508201610067 [09:05:30]line Контрольно-Кассовый Чек [09:05:30]line ПРОДАЖА [09:05:30]line ТРК (МРК, ГНК) : 41 [09:05:30]line Товар: 2710124500 [09:05:30]line Аи-95-К-5 [09:05:30]line 8.090 * 74.20 [09:05:30]line = 600.28 [09:05:30]line НДС 12% НСП 1% [09:05:30]line > о реализуемом товаре [09:05:30]line ОКРУГЛЕНИЕ: -0.28 [09:05:30]line ИТОГО: 600.00 [09:05:30]line Внесено: 600.00 [09:05:30]line СДАЧА: 0.00 [09:05:30]line НСП 1% : 5.31 [09:05:30]line НДС 12% : 63.75 [09:05:30]line Наличными: 600.00 [09:05:30]line Безнал.: 0.00 [09:05:30]line Место: АЗС № 136 "Партнер Нефть" [09:05:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:05:30]line СНО: Общий режим [09:05:30]line Чек 53 21.08.2024 09:05 [09:05:30]line Смена: 454 ФФД: 1.0 [09:05:30]line ЗНМ: 0300000067 [09:05:30]line РНМ: 0000000000092569 [09:05:30]line Версия ККМ: 001 [09:05:30]line ФМ: 0000000000871776 [09:05:30]line ФД: 140036 [09:05:30]line ФПД: 270160040225447 [09:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090531&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140036&fm=270160040225447&tin=02508201610067®Number=0000000000092569&sum=60000 [09:05:30]OFD Sender: Processing packet 140036 [packets to send 137, broken 136] [09:05:30]ProducePacketName [09:05:30]name=ofd_packets/00140036 [09:05:30]OFD Sender: To server: pG, [09:05:30]CommunicateWithHost lk.salyk.kg:30040 [09:05:30]ConnectInit lk.salyk.kg [09:05:30]written 0, free lines is 4095 [09:05:30]Connected sock=9 [09:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A 68 07 01 8F 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DB AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 23 02 00 35 04 06 00 F5 B5 89 3A EA A7 4D FB 2B 2C BB 1E 1D 41 [09:05: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 37 36 4F 00 00 00 B5 05 47 00 65 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 37 36 10 04 04 00 04 23 02 00 F4 03 04 00 6C 54 C5 66 B6 04 01 00 00 5B 58 DB C2 57 90 96 47 [09:05:31]CommunicateWithHost err = 0 [09:05:31]CheckOFDResponse [09:05:31]1017 (14) - 77093643461234 [09:05:31]1041 (16) - 0000000000871776 [09:05:31]1040 (4) - 140036 [09:05:31]1012 (4) - 21.08.2024 02:43 [09:05:31]1206 (1) - 0 [09:05:31]OFD Sender: Remove packet 140036 [09:05:31]ProducePacketName [09:05:31]name=ofd_packets/00140036 [09:05:31]NVStorageDeleteData [09:05:31]Write to MH i2c: 01 00 00 F4 26 1A [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 07 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: 01 07 00 F4 26 00 00 00 00 00 CC 0C F9 [09:05:31]RasterBufferAndPrint [09:05:31]line [09:05:31]line [09:05:31]line [09:05:31]line [09:05:31]line [09:05:31]written 0, free lines is 3282 [09:05:31]MH_Cut [09:05:31]Write to MH i2c: D1 01 00 FB 26 01 F3 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: D1 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: D1 01 00 [09:05:31]MH_I2C_Read... [09:05:31]Read from MH i2c: D1 01 00 FB 26 00 F2 [09:05:31]Write to MH i2c: 01 00 00 FC 26 22 [09:05:31]Write i2c OK [09:05:31]MH_I2C_Read... [09:05:31]OFD Sender: No OFD packet to send [09:05:31]*** Cut start [09:05:31]*** Partial cut [09:05:31]*** CUTSNS_PIN = 1 [09:05:31]*** CUTSNS_PIN = 0 [09:05:32]*** Brake cut motor [09:05:32]Read from MH i2c: 01 [09:05:32]MH_I2C_Read... [09:05:32]*** Stop cut motor [09:05:32]*** Cut end [09:05:32]Read from MH i2c: 01 07 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: 01 07 00 FC 26 00 00 00 00 00 FF 0F 37 [09:05:32]process_action close_receipt done [09:05:32]requested_data is exist [09:05:32]produce_requested_data [09:05:32]requested_item fm.sn is exist - process it [09:05:32]wFMCommunicate request_size=4 [09:05:32]MH_SAM_APDU [09:05:32]CAPDU: 80 11 00 00 [09:05:32]Write to MH i2c: E2 08 00 FD 26 80 11 00 00 00 00 00 00 9D [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:32]Read from MH i2c: E2 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 17 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 17 00 FD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [09:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:05:32]wFMCommunicate OK [09:05:32]requested_item fd.num is exist - process it [09:05:32]SAM_PROTO_GetFieldsCounters [09:05:32]wFMCommunicate request_size=4 [09:05:32]MH_SAM_APDU [09:05:32]CAPDU: 80 13 00 00 [09:05:32]Write to MH i2c: E2 08 00 FE 26 80 13 00 00 00 00 00 00 A0 [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:32]Read from MH i2c: E2 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 62 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 62 00 FE 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:05:32]wFMCommunicate OK [09:05:32]SAM_PROTO_GetFieldsCounters done [09:05:32]requested_item shift.num is exist - process it [09:05:32]requested_item shift.opened is exist - process it [09:05:32]req_shift_opened [09:05:32]FM_GetShiftState [09:05:32]SAM_PROTO_GetShiftState [09:05:32]wFMCommunicate request_size=4 [09:05:32]MH_SAM_APDU [09:05:32]CAPDU: 80 13 01 00 [09:05:32]Write to MH i2c: E2 08 00 FF 26 80 13 01 00 00 00 00 00 A2 [09:05:32]Write i2c OK [09:05:32]MH_I2C_Read... [09:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:32]Read from MH i2c: E2 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 0E 00 [09:05:32]MH_I2C_Read... [09:05:32]Read from MH i2c: E2 0E 00 FF 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 22 [09:05:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:05:32]wFMCommunicate OK [09:05:32]SAM_PROTO_GetShiftState done [09:05:32]FM_GetShiftState done [09:05:32]req_shift_opened done [09:05:32]requested_item shift.open_date is exist - process it [09:05:32]req_shift_open_date [09:05:32]req_shift_open_date done [09:05:32]produce_requested_data done [09:05:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140036,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:05:32]process_action_free close_receipt [09:05:32]json_value_free [09:05:32]json_value_free done [09:05:32]process_json_proto returns [09:05:32]Send response to host [09:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140036,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:05:32]free response buf [09:05:32]execute_script done [09:05:32]execute_script returns [09:05:32]free content buf [09:05:32]Sock 10.Close socket [09:05:32]Sock 10.Thread stoped [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:05:58]accept exits with 7 [09:05:58]New connection [09:05:58]New thread 3066764644 created [09:05:58]Thread 3066908004 joined [09:05:58]Waiting for new connection... [09:05:58] Sock 7.Parse request [09:05:58]Sock 7.Check first char [09:05:58]Sock 7.First char is OK [09:05:58]request: POST /json_proto HTTP/1.0 [09:05:58]Method: POST [09:05:58]URL: /json_proto [09:05:58]Method is POST - this is cgi request [09:05:58]url: /json_proto [09:05:58]query_string will be loaded in cgi processing [09:05:58]execute_cgi json_proto POST (null) [09:05:58]execute_cgi path=json_proto method=POST [09:05:58]POST find Content-Length [09:05:58]Host: 172.17.45.67:8080 [09:05:58]Content-Length: 677 [09:05:58]Content-Type: application/json [09:05:58] [09:05:58]POST finish read [09:05:58]Found Content-Length = 677 [09:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:58]execute_script... [09: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)593891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:05:58]POST & json_proto [09:05:58]process_json_proto [09:05:58]json parsed OK: [09:05:58]protocol is kg_v1.0 [09:05:58]action value=close_receipt [09:05:58]process_action close_receipt [09:05:58]cmd_close_receipt [09:05:58]MH_GetDate [09:05:58]Write to MH i2c: F0 00 00 00 27 16 [09:05:58]Write i2c OK [09:05:58]MH_I2C_Read... [09:05:58]Read from MH i2c: F0 [09:05:58]MH_I2C_Read... [09:05:58]Read from MH i2c: F0 09 00 [09:05:58]MH_I2C_Read... [09:05:58]Read from MH i2c: F0 09 00 00 27 00 F9 AD C5 66 5F 7F 2B 66 5F [09:05:58]GetLastDocTimeStamp 1724231131 [09:05:58]current date 1724231161 [09:05:58]FM_GetShiftState [09:05:58]SAM_PROTO_GetShiftState [09:05:58]wFMCommunicate request_size=4 [09:05:58]MH_SAM_APDU [09:05:58]CAPDU: 80 13 01 00 [09:05:58]Write to MH i2c: E2 08 00 01 27 80 13 01 00 00 00 00 00 A5 [09:05:58]Write i2c OK [09:05:58]MH_I2C_Read... [09:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:58]Read from MH i2c: E2 [09:05:58]MH_I2C_Read... [09:05:58]Read from MH i2c: E2 0E 00 [09:05:58]MH_I2C_Read... [09:05:58]Read from MH i2c: E2 0E 00 01 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 25 [09:05:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:05:58]wFMCommunicate OK [09:05:58]SAM_PROTO_GetShiftState done [09:05:58]FM_GetShiftState done [09:05:58]opened in 1724200467 [09:05:58]opened+sec_in_day 1724286867 [09:05:58]quantity*price = 50036 [09:05:58]sum+1 = 50037 [09:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 54 21.08.2024 09:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140037 ФПД: 222238577792222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140037&fm=222238577792222&tin=02508201610067®Number=0000000000092569&sum=50000 [09:05:59]StoreToDocumentArchive [09:05:59]shift 454 fd 140037 [09:05:59]save to /storage/0454/doc_00140037 [09:05:59]save last doc name /storage/0454/doc_00140037 to /storage/kkm_last_doc_name [09:05:59]save OK [09:05:59]Clear old archive folders... [09:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:05:59]tlvbuf is 00AA3B10 [09:05:59]SAM_PROTO_ClearQueue [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 09 00 00 [09:05:59]Write to MH i2c: E2 08 00 0E 27 80 09 00 00 00 00 00 00 A7 [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 03 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 03 00 0E 27 00 90 00 A9 [09:05:59]RAPDU: 90 00 [09:05:59]wFMCommunicate OK [09:05:59]SAM_PROTO_ClearQueue done [09:05:59]KKMCreateOFDPacket [09:05:59]OFDProtocolAddRootSTLVToBuf [09:05:59]FM_MakeSignedData [09:05:59]FM_MakeSignedData [09:05:59]SAM_PROTO_SignData [09:05:59]wFMCommunicate request_size=4 [09:05:59]MH_SAM_APDU [09:05:59]CAPDU: 80 0D 01 02 [09:05:59]Write to MH i2c: E2 08 00 0F 27 80 0D 01 02 00 00 00 00 AF [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:05:59]Read from MH i2c: E2 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 03 00 [09:05:59]MH_I2C_Read... [09:05:59]Read from MH i2c: E2 03 00 0F 27 00 90 00 AA [09:05:59]RAPDU: 90 00 [09:05:59]wFMCommunicate OK [09:05:59]wFMCommunicate request_size=255 [09:05:59]MH_SAM_APDU [09: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 23 02 00 35 04 06 00 CA [09:05:59]Write to MH i2c: E2 02 01 10 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 23 02 00 35 04 06 00 CA 00 00 FA [09:05:59]Write i2c OK [09:05:59]MH_I2C_Read... [09:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:00]Read from MH i2c: E2 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 03 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 03 00 10 27 00 90 00 AB [09:06:00]RAPDU: 90 00 [09:06:00]wFMCommunicate OK [09:06:00]wFMCommunicate request_size=10 [09:06:00]MH_SAM_APDU [09:06:00]CAPDU: 80 0D 02 02 05 1F F3 7C 14 DE [09:06:00]Write to MH i2c: E2 0D 00 11 27 80 0D 02 02 05 00 1F F3 7C 14 DE 00 00 3C [09:06:00]Write i2c OK [09:06:00]MH_I2C_Read... [09:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:00]Read from MH i2c: E2 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 03 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 03 00 11 27 00 90 00 AC [09:06:00]RAPDU: 90 00 [09:06:00]wFMCommunicate OK [09:06:00]wFMCommunicate request_size=4 [09:06:00]MH_SAM_APDU [09:06:00]CAPDU: 80 0D 03 02 [09:06:00]Write to MH i2c: E2 08 00 12 27 80 0D 03 02 00 00 00 00 B4 [09:06:00]Write i2c OK [09:06:00]MH_I2C_Read... [09:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:00]Read from MH i2c: E2 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 0B 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 0B 00 12 27 00 27 7D 66 D3 58 2D AA 90 90 00 51 [09:06:00]RAPDU: 27 7D 66 D3 58 2D AA 90 90 00 [09:06:00]wFMCommunicate OK [09:06:00]SAM_PROTO_SignData done [09:06:00]FM_MakeSignedData done [09:06:00]CreateOFDProtocolMessage [09:06:00]wFMCommunicate request_size=4 [09:06:00]MH_SAM_APDU [09:06:00]CAPDU: 80 11 00 00 [09:06:00]Write to MH i2c: E2 08 00 13 27 80 11 00 00 00 00 00 00 B4 [09:06:00]Write i2c OK [09:06:00]MH_I2C_Read... [09:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:00]Read from MH i2c: E2 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 17 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: E2 17 00 13 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [09:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:00]wFMCommunicate OK [09:06:00]CreateOFDProtocolMessage done [09:06:00]OFDSenderStorePacket 140037 [09:06:00]StoreOFDPacket docnum=140037 [09:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 55 61 07 01 94 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 23 02 00 35 04 06 00 CA 1F F3 7C 14 DE 27 7D 66 D3 58 2D AA 90 [09:06:00]CheckFolder [09:06:00]dirname=/storage/ofd_packets [09:06:00]CheckFolder done [09:06:00]ProducePacketName [09:06:00]name=ofd_packets/00140037 [09:06:00]NVStorageSaveData ofd_packets/00140037 [09:06:00]File name is /storage/ofd_packets/00140037 [09:06:00]Write 301 bytes [09:06:00]NVStorageSaveData done [09:06:00]OFDSenderStorePacket done [09:06:00]KKMCreateOFDPacket done [09:06:00]NVStorageSaveData kkm_last_timestamp [09:06:00]File name is /storage/kkm_last_timestamp [09:06:00]Write 4 bytes [09:06:00]NVStorageSaveData done [09:06:00]ExternCall_PrintAddStr [09:06:00]wPrintStart [09:06:00]Write to MH i2c: 01 00 00 14 27 3B [09:06:00]Write i2c OK [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: 01 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: 01 07 00 [09:06:00]MH_I2C_Read... [09:06:00]Read from MH i2c: 01 07 00 14 27 00 00 00 00 00 FF 0F 50 [09:06:00]RasterBufferAndPrint [09:06:00]line Счет N : (1)593891 [09:06:00]line ИНН: 02508201610067 [09:06:00]line Контрольно-Кассовый Чек [09:06:00]line ПРОДАЖА [09:06:00]line ТРК (МРК, ГНК) : 62 [09:06:00]line Товар: 2710124130 [09:06:00]line Аи-92-К-5 [09:06:00]line 7.380 * 67.80 [09:06:00]line = 500.36 [09:06:00]line НДС 12% НСП 1% [09:06:00]line > о реализуемом товаре [09:06:00]line ОКРУГЛЕНИЕ: -0.36 [09:06:00]line ИТОГО: 500.00 [09:06:00]line Внесено: 500.00 [09:06:00]line СДАЧА: 0.00 [09:06:00]line НСП 1% : 4.43 [09:06:00]line НДС 12% : 53.14 [09:06:00]line Наличными: 500.00 [09:06:00]line Безнал.: 0.00 [09:06:00]line Место: АЗС № 136 "Партнер Нефть" [09:06:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:06:00]line СНО: Общий режим [09:06:00]line Чек 54 21.08.2024 09:06 [09:06:00]line Смена: 454 ФФД: 1.0 [09:06:00]line ЗНМ: 0300000067 [09:06:00]line РНМ: 0000000000092569 [09:06:00]line Версия ККМ: 001 [09:06:00]line ФМ: 0000000000871776 [09:06:00]line ФД: 140037 [09:06:00]line ФПД: 222238577792222 [09:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140037&fm=222238577792222&tin=02508201610067®Number=0000000000092569&sum=50000 [09:06:00]written 0, free lines is 4095 [09:06:00]OFD Sender: Processing packet 140037 [packets to send 137, broken 136] [09:06:00]ProducePacketName [09:06:00]name=ofd_packets/00140037 [09:06:00]OFD Sender: To server: pG, [09:06:00]CommunicateWithHost lk.salyk.kg:30040 [09:06:00]ConnectInit lk.salyk.kg [09:06:00]Connected sock=10 [09: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 37 36 0F 01 00 00 55 61 07 01 94 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 AD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 23 02 00 35 04 06 00 CA 1F F3 7C 14 DE 27 7D 66 D3 58 2D AA 90 [09:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 0E 47 00 CC 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 37 36 10 04 04 00 05 23 02 00 F4 03 04 00 8A 54 C5 66 B6 04 01 00 00 18 BE 0A C6 5A 08 C8 CF [09:06:01]CommunicateWithHost err = 0 [09:06:01]CheckOFDResponse [09:06:01]1017 (14) - 77093643461234 [09:06:01]1041 (16) - 0000000000871776 [09:06:01]1040 (4) - 140037 [09:06:01]1012 (4) - 21.08.2024 02:44 [09:06:01]1206 (1) - 0 [09:06:01]OFD Sender: Remove packet 140037 [09:06:01]ProducePacketName [09:06:01]name=ofd_packets/00140037 [09:06:01]NVStorageDeleteData [09:06:01]Write to MH i2c: 01 00 00 3F 27 66 [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 07 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: 01 07 00 3F 27 00 00 00 00 00 CD 0C 46 [09:06:01]RasterBufferAndPrint [09:06:01]line [09:06:01]line [09:06:01]line [09:06:01]line [09:06:01]line [09:06:01]written 0, free lines is 3284 [09:06:01]MH_Cut [09:06:01]Write to MH i2c: D1 01 00 46 27 01 3F [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: D1 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: D1 01 00 [09:06:01]MH_I2C_Read... [09:06:01]Read from MH i2c: D1 01 00 46 27 00 3E [09:06:01]Write to MH i2c: 01 00 00 47 27 6E [09:06:01]Write i2c OK [09:06:01]MH_I2C_Read... [09:06:01]OFD Sender: No OFD packet to send [09:06:01]*** Cut start [09:06:01]*** Partial cut [09:06:01]*** CUTSNS_PIN = 1 [09:06:01]*** CUTSNS_PIN = 0 [09:06:02]*** Brake cut motor [09:06:02]Read from MH i2c: 01 [09:06:02]MH_I2C_Read... [09:06:02]*** Stop cut motor [09:06:02]*** Cut end [09:06:02]Read from MH i2c: 01 07 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: 01 07 00 47 27 00 00 00 00 00 FF 0F 83 [09:06:02]process_action close_receipt done [09:06:02]requested_data is exist [09:06:02]produce_requested_data [09:06:02]requested_item fm.sn is exist - process it [09:06:02]wFMCommunicate request_size=4 [09:06:02]MH_SAM_APDU [09:06:02]CAPDU: 80 11 00 00 [09:06:02]Write to MH i2c: E2 08 00 48 27 80 11 00 00 00 00 00 00 E9 [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:02]Read from MH i2c: E2 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 17 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 17 00 48 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [09:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:02]wFMCommunicate OK [09:06:02]requested_item fd.num is exist - process it [09:06:02]SAM_PROTO_GetFieldsCounters [09:06:02]wFMCommunicate request_size=4 [09:06:02]MH_SAM_APDU [09:06:02]CAPDU: 80 13 00 00 [09:06:02]Write to MH i2c: E2 08 00 49 27 80 13 00 00 00 00 00 00 EC [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:02]Read from MH i2c: E2 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 62 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 62 00 49 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:02]wFMCommunicate OK [09:06:02]SAM_PROTO_GetFieldsCounters done [09:06:02]requested_item shift.num is exist - process it [09:06:02]requested_item shift.opened is exist - process it [09:06:02]req_shift_opened [09:06:02]FM_GetShiftState [09:06:02]SAM_PROTO_GetShiftState [09:06:02]wFMCommunicate request_size=4 [09:06:02]MH_SAM_APDU [09:06:02]CAPDU: 80 13 01 00 [09:06:02]Write to MH i2c: E2 08 00 4A 27 80 13 01 00 00 00 00 00 EE [09:06:02]Write i2c OK [09:06:02]MH_I2C_Read... [09:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:02]Read from MH i2c: E2 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 [09:06:02]MH_I2C_Read... [09:06:02]Read from MH i2c: E2 0E 00 4A 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6E [09:06:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:06:02]wFMCommunicate OK [09:06:02]SAM_PROTO_GetShiftState done [09:06:02]FM_GetShiftState done [09:06:02]req_shift_opened done [09:06:02]requested_item shift.open_date is exist - process it [09:06:02]req_shift_open_date [09:06:02]req_shift_open_date done [09:06:02]produce_requested_data done [09:06:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140037,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:06:02]process_action_free close_receipt [09:06:02]json_value_free [09:06:02]json_value_free done [09:06:02]process_json_proto returns [09:06:02]Send response to host [09:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140037,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:06:02]free response buf [09:06:02]execute_script done [09:06:02]execute_script returns [09:06:02]free content buf [09:06:02]Sock 7.Close socket [09:06:02]Sock 7.Thread stoped [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:11]int [09:06:11]Write to MH i2c: 01 00 00 4B 27 72 [09:06:11]*** FLAG_PRN_KEY set [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 4B 27 00 08 00 00 00 FF 0F 8F [09:06:11]state=0 [09:06:11]Key pressed [09:06:11]Feed [09:06:11]Write to MH i2c: D8 00 00 4C 27 4A [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D8 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D8 01 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D8 01 00 4C 27 00 4B [09:06:11]int [09:06:11]Write to MH i2c: 01 00 00 4D 27 74 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 4D 27 00 48 00 00 00 3C 00 FF [09:06:11]state=2 [09:06:11]Key pressed [09:06:11]int [09:06:11]Write to MH i2c: 01 00 00 4E 27 75 [09:06:11]*** FLAG_PRN_KEY reset [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 F9 0F 84 [09:06:11]state=2 [09:06:11]Stop feed [09:06:16]OFD Sender: No OFD packet to send [09:06:20]accept exits with 9 [09:06:20]New connection [09:06:20]New thread 3066908004 created [09:06:20]Thread 3066764644 joined [09:06:20]Waiting for new connection... [09:06:20] Sock 9.Parse request [09:06:20]Sock 9.Check first char [09:06:20]Sock 9.First char is OK [09:06:20]request: POST /json_proto HTTP/1.0 [09:06:20]Method: POST [09:06:20]URL: /json_proto [09:06:20]Method is POST - this is cgi request [09:06:20]url: /json_proto [09:06:20]query_string will be loaded in cgi processing [09:06:20]execute_cgi json_proto POST (null) [09:06:20]execute_cgi path=json_proto method=POST [09:06:20]POST find Content-Length [09:06:20]Host: 172.17.45.67:8080 [09:06:20]Content-Length: 677 [09:06:20]Content-Type: application/json [09:06:20] [09:06:20]POST finish read [09:06:20]Found Content-Length = 677 [09:06:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:20]execute_script... [09:06:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:20]POST & json_proto [09:06:20]process_json_proto [09:06:20]json parsed OK: [09:06:20]protocol is kg_v1.0 [09:06:20]action value=close_receipt [09:06:20]process_action close_receipt [09:06:20]cmd_close_receipt [09:06:20]MH_GetDate [09:06:20]Write to MH i2c: F0 00 00 4F 27 65 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: F0 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: F0 09 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: F0 09 00 4F 27 00 0F AE C5 66 5F 7F 2B 66 C5 [09:06:20]GetLastDocTimeStamp 1724231161 [09:06:20]current date 1724231183 [09:06:20]FM_GetShiftState [09:06:20]SAM_PROTO_GetShiftState [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 13 01 00 [09:06:20]Write to MH i2c: E2 08 00 50 27 80 13 01 00 00 00 00 00 F4 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 0E 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 0E 00 50 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [09:06:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:06:20]wFMCommunicate OK [09:06:20]SAM_PROTO_GetShiftState done [09:06:20]FM_GetShiftState done [09:06:20]opened in 1724200467 [09:06:20]opened+sec_in_day 1724286867 [09:06:20]quantity*price = 50036 [09:06:20]sum+1 = 50037 [09:06:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 55 21.08.2024 09:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140038 ФПД: 109816538552209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090623&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140038&fm=109816538552209&tin=02508201610067®Number=0000000000092569&sum=50000 [09:06:21]StoreToDocumentArchive [09:06:21]shift 454 fd 140038 [09:06:21]save to /storage/0454/doc_00140038 [09:06:21]save last doc name /storage/0454/doc_00140038 to /storage/kkm_last_doc_name [09:06:21]save OK [09:06:21]Clear old archive folders... [09:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:21]tlvbuf is 00A79D40 [09:06:21]SAM_PROTO_ClearQueue [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 09 00 00 [09:06:21]Write to MH i2c: E2 08 00 5D 27 80 09 00 00 00 00 00 00 F6 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]OFD Sender: No OFD packet to send [09:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 5D 27 00 90 00 F8 [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_ClearQueue done [09:06:21]KKMCreateOFDPacket [09:06:21]OFDProtocolAddRootSTLVToBuf [09:06:21]FM_MakeSignedData [09:06:21]FM_MakeSignedData [09:06:21]SAM_PROTO_SignData [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 01 02 [09:06:21]Write to MH i2c: E2 08 00 5E 27 80 0D 01 02 00 00 00 00 FE [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 5E 27 00 90 00 F9 [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=255 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 23 02 00 35 04 06 00 63 [09:06:21]Write to MH i2c: E2 02 01 5F 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 23 02 00 35 04 06 00 63 00 00 FB [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 5F 27 00 90 00 FA [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=10 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 02 02 05 E0 A7 C5 57 91 [09:06:21]Write to MH i2c: E2 0D 00 60 27 80 0D 02 02 05 00 E0 A7 C5 57 91 00 00 3F [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [09:06:21]RAPDU: 90 00 [09:06:21]wFMCommunicate OK [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 0D 03 02 [09:06:21]Write to MH i2c: E2 08 00 61 27 80 0D 03 02 00 00 00 00 03 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 0B 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 0B 00 61 27 00 F3 DD 95 D6 8D 02 9B DF 90 00 48 [09:06:22]RAPDU: F3 DD 95 D6 8D 02 9B DF 90 00 [09:06:22]wFMCommunicate OK [09:06:22]SAM_PROTO_SignData done [09:06:22]FM_MakeSignedData done [09:06:22]CreateOFDProtocolMessage [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 11 00 00 [09:06:22]Write to MH i2c: E2 08 00 62 27 80 11 00 00 00 00 00 00 03 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 62 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [09:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:22]wFMCommunicate OK [09:06:22]CreateOFDProtocolMessage done [09:06:22]OFDSenderStorePacket 140038 [09:06:22]StoreOFDPacket docnum=140038 [09:06:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 94 07 01 BE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 23 02 00 35 04 06 00 63 E0 A7 C5 57 91 F3 DD 95 D6 8D 02 9B DF [09:06:22]CheckFolder [09:06:22]dirname=/storage/ofd_packets [09:06:22]CheckFolder done [09:06:22]ProducePacketName [09:06:22]name=ofd_packets/00140038 [09:06:22]NVStorageSaveData ofd_packets/00140038 [09:06:22]File name is /storage/ofd_packets/00140038 [09:06:22]Write 301 bytes [09:06:22]NVStorageSaveData done [09:06:22]OFDSenderStorePacket done [09:06:22]KKMCreateOFDPacket done [09:06:22]NVStorageSaveData kkm_last_timestamp [09:06:22]File name is /storage/kkm_last_timestamp [09:06:22]Write 4 bytes [09:06:22]NVStorageSaveData done [09:06:22]ExternCall_PrintAddStr [09:06:22]wPrintStart [09:06:22]Write to MH i2c: 01 00 00 63 27 8A [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 63 27 00 00 00 00 00 FF 0F 9F [09:06:22]RasterBufferAndPrint [09:06:22]line Счет N : (1)593892 [09:06:22]line ИНН: 02508201610067 [09:06:22]line Контрольно-Кассовый Чек [09:06:22]line ПРОДАЖА [09:06:22]line ТРК (МРК, ГНК) : 52 [09:06:22]line Товар: 2710124130 [09:06:22]line Аи-92-К-5 [09:06:22]line 7.380 * 67.80 [09:06:22]line = 500.36 [09:06:22]line НДС 12% НСП 1% [09:06:22]line > о реализуемом товаре [09:06:22]line ОКРУГЛЕНИЕ: -0.36 [09:06:22]line ИТОГО: 500.00 [09:06:22]line Внесено: 500.00 [09:06:22]line СДАЧА: 0.00 [09:06:22]line НСП 1% : 4.43 [09:06:22]line НДС 12% : 53.14 [09:06:22]line Наличными: 500.00 [09:06:22]line Безнал.: 0.00 [09:06:22]line Место: АЗС № 136 "Партнер Нефть" [09:06:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:06:22]line СНО: Общий режим [09:06:22]line Чек 55 21.08.2024 09:06 [09:06:22]line Смена: 454 ФФД: 1.0 [09:06:22]line ЗНМ: 0300000067 [09:06:22]line РНМ: 0000000000092569 [09:06:22]line Версия ККМ: 001 [09:06:22]line ФМ: 0000000000871776 [09:06:22]line ФД: 140038 [09:06:22]line ФПД: 109816538552209 [09:06:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090623&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140038&fm=109816538552209&tin=02508201610067®Number=0000000000092569&sum=50000 [09:06:22]OFD Sender: Processing packet 140038 [packets to send 137, broken 136] [09:06:22]ProducePacketName [09:06:22]name=ofd_packets/00140038 [09:06:22]OFD Sender: To server: pG, [09:06:22]CommunicateWithHost lk.salyk.kg:30040 [09:06:22]ConnectInit lk.salyk.kg [09:06:22]written 0, free lines is 4095 [09:06:22]Connected sock=10 [09:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 94 07 01 BE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 23 02 00 35 04 06 00 63 E0 A7 C5 57 91 F3 DD 95 D6 8D 02 9B DF [09: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 37 36 4F 00 00 00 AA 46 47 00 85 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 23 02 00 F4 03 04 00 A0 54 C5 66 B6 04 01 00 00 5C 61 6B 14 BA 77 7C 3A [09:06:22]CommunicateWithHost err = 0 [09:06:22]CheckOFDResponse [09:06:22]1017 (14) - 77093643461234 [09:06:22]1041 (16) - 0000000000871776 [09:06:22]1040 (4) - 140038 [09:06:22]1012 (4) - 21.08.2024 02:44 [09:06:22]1206 (1) - 0 [09:06:22]OFD Sender: Remove packet 140038 [09:06:22]ProducePacketName [09:06:22]name=ofd_packets/00140038 [09:06:22]NVStorageDeleteData [09:06:22]Write to MH i2c: 01 00 00 8E 27 B5 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 EC 0C B4 [09:06:22]RasterBufferAndPrint [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]line [09:06:22]written 0, free lines is 3314 [09:06:22]MH_Cut [09:06:22]Write to MH i2c: D1 01 00 95 27 01 8E [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 01 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: D1 01 00 95 27 00 8D [09:06:22]Write to MH i2c: 01 00 00 96 27 BD [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:23]OFD Sender: No OFD packet to send [09:06:23]*** Cut start [09:06:23]*** Partial cut [09:06:23]*** CUTSNS_PIN = 1 [09:06:23]*** CUTSNS_PIN = 0 [09:06:23]*** Brake cut motor [09:06:24]Read from MH i2c: 01 [09:06:24]MH_I2C_Read... [09:06:24]*** Stop cut motor [09:06:24]*** Cut end [09:06:24]Read from MH i2c: 01 07 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: 01 07 00 96 27 00 00 00 00 00 FF 0F D2 [09:06:24]process_action close_receipt done [09:06:24]requested_data is exist [09:06:24]produce_requested_data [09:06:24]requested_item fm.sn is exist - process it [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 11 00 00 [09:06:24]Write to MH i2c: E2 08 00 97 27 80 11 00 00 00 00 00 00 38 [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 97 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [09:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:06:24]wFMCommunicate OK [09:06:24]requested_item fd.num is exist - process it [09:06:24]SAM_PROTO_GetFieldsCounters [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 00 00 [09:06:24]Write to MH i2c: E2 08 00 98 27 80 13 00 00 00 00 00 00 3B [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 62 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 62 00 98 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:06:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetFieldsCounters done [09:06:24]requested_item shift.num is exist - process it [09:06:24]requested_item shift.opened is exist - process it [09:06:24]req_shift_opened [09:06:24]FM_GetShiftState [09:06:24]SAM_PROTO_GetShiftState [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 01 00 [09:06:24]Write to MH i2c: E2 08 00 99 27 80 13 01 00 00 00 00 00 3D [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 99 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [09:06:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetShiftState done [09:06:24]FM_GetShiftState done [09:06:24]req_shift_opened done [09:06:24]requested_item shift.open_date is exist - process it [09:06:24]req_shift_open_date [09:06:24]req_shift_open_date done [09:06:24]produce_requested_data done [09:06:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140038,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:06:24]process_action_free close_receipt [09:06:24]json_value_free [09:06:24]json_value_free done [09:06:24]process_json_proto returns [09:06:24]Send response to host [09:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140038,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:06:24]free response buf [09:06:24]execute_script done [09:06:24]execute_script returns [09:06:24]free content buf [09:06:24]Sock 9.Close socket [09:06:24]Sock 9.Thread stoped [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:06]accept exits with 7 [09:07:06]New connection [09:07:06]New thread 3066764644 created [09:07:06]Thread 3066908004 joined [09:07:06]Waiting for new connection... [09:07:06] Sock 7.Parse request [09:07:06]Sock 7.Check first char [09:07:06]Sock 7.First char is OK [09:07:06]request: POST /json_proto HTTP/1.0 [09:07:06]Method: POST [09:07:06]URL: /json_proto [09:07:06]Method is POST - this is cgi request [09:07:06]url: /json_proto [09:07:06]query_string will be loaded in cgi processing [09:07:06]execute_cgi json_proto POST (null) [09:07:06]execute_cgi path=json_proto method=POST [09:07:06]POST find Content-Length [09:07:06]Host: 172.17.45.67:8080 [09:07:06]Content-Length: 800 [09:07:06]Content-Type: application/json [09:07:06] [09:07:06]POST finish read [09:07:06]Found Content-Length = 800 [09:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3923773", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:06]execute_script... [09: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)593893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3923773", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:06]POST & json_proto [09:07:06]process_json_proto [09:07:06]json parsed OK: [09:07:06]protocol is kg_v1.0 [09:07:06]action value=close_receipt [09:07:06]process_action close_receipt [09:07:06]cmd_close_receipt [09:07:06]MH_GetDate [09:07:06]Write to MH i2c: F0 00 00 9A 27 B0 [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 09 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: F0 09 00 9A 27 00 3D AE C5 66 5F 7F 2B 66 3E [09:07:06]GetLastDocTimeStamp 1724231183 [09:07:06]current date 1724231229 [09:07:06]FM_GetShiftState [09:07:06]SAM_PROTO_GetShiftState [09:07:06]wFMCommunicate request_size=4 [09:07:06]MH_SAM_APDU [09:07:06]CAPDU: 80 13 01 00 [09:07:06]Write to MH i2c: E2 08 00 9B 27 80 13 01 00 00 00 00 00 3F [09:07:06]Write i2c OK [09:07:06]MH_I2C_Read... [09:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:06]Read from MH i2c: E2 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 [09:07:06]MH_I2C_Read... [09:07:06]Read from MH i2c: E2 0E 00 9B 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [09:07:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:07:06]wFMCommunicate OK [09:07:06]SAM_PROTO_GetShiftState done [09:07:06]FM_GetShiftState done [09:07:06]opened in 1724200467 [09:07:06]opened+sec_in_day 1724286867 [09:07:06]quantity*price = 0 [09:07:06]sum+1 = 1 [09:07:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 56 21.08.2024 09:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 3923773 ФМ: 0000000000871776 ФД: 140039 ФПД: 22881238873649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140039&fm=22881238873649&tin=02508201610067®Number=0000000000092569&sum=0 [09:07:07]StoreToDocumentArchive [09:07:07]shift 454 fd 140039 [09:07:07]save to /storage/0454/doc_00140039 [09:07:07]save last doc name /storage/0454/doc_00140039 to /storage/kkm_last_doc_name [09:07:07]save OK [09:07:07]Clear old archive folders... [09:07:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:07]tlvbuf is 00A81210 [09:07:07]SAM_PROTO_ClearQueue [09:07:07]wFMCommunicate request_size=4 [09:07:07]MH_SAM_APDU [09:07:07]CAPDU: 80 09 00 00 [09:07:07]Write to MH i2c: E2 08 00 A8 27 80 09 00 00 00 00 00 00 41 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 A8 27 00 90 00 43 [09:07:08]RAPDU: 90 00 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_ClearQueue done [09:07:08]KKMCreateOFDPacket [09:07:08]OFDProtocolAddRootSTLVToBuf [09:07:08]FM_MakeSignedData [09:07:08]FM_MakeSignedData [09:07:08]SAM_PROTO_SignData [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 0D 01 02 [09:07:08]Write to MH i2c: E2 08 00 A9 27 80 0D 01 02 00 00 00 00 49 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 A9 27 00 90 00 44 [09:07:08]RAPDU: 90 00 [09:07:08]wFMCommunicate OK [09:07:08]wFMCommunicate request_size=255 [09:07:08]MH_SAM_APDU [09: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 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 3D AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 23 02 00 35 04 06 00 14 [09:07:08]Write to MH i2c: E2 02 01 AA 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 23 02 00 35 04 06 00 14 00 00 20 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 AA 27 00 90 00 45 [09:07:08]RAPDU: 90 00 [09:07:08]wFMCommunicate OK [09:07:08]wFMCommunicate request_size=10 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 0D 02 02 05 CF 74 1D 76 31 [09:07:08]Write to MH i2c: E2 0D 00 AB 27 80 0D 02 02 05 00 CF 74 1D 76 31 00 00 5D [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 03 00 AB 27 00 90 00 46 [09:07:08]RAPDU: 90 00 [09:07:08]wFMCommunicate OK [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 0D 03 02 [09:07:08]Write to MH i2c: E2 08 00 AC 27 80 0D 03 02 00 00 00 00 4E [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:08]OFD Sender: No OFD packet to send [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0B 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0B 00 AC 27 00 F5 CB A6 32 35 F6 4B B6 90 00 13 [09:07:08]RAPDU: F5 CB A6 32 35 F6 4B B6 90 00 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_SignData done [09:07:08]FM_MakeSignedData done [09:07:08]CreateOFDProtocolMessage [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 11 00 00 [09:07:08]Write to MH i2c: E2 08 00 AD 27 80 11 00 00 00 00 00 00 4E [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 AD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [09:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:08]wFMCommunicate OK [09:07:08]CreateOFDProtocolMessage done [09:07:08]OFDSenderStorePacket 140039 [09:07:08]StoreOFDPacket docnum=140039 [09:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 88 07 01 B2 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 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 3D AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 23 02 00 35 04 06 00 14 CF 74 1D 76 31 F5 CB A6 32 35 F6 4B B6 [09:07:08]CheckFolder [09:07:08]dirname=/storage/ofd_packets [09:07:08]CheckFolder done [09:07:08]ProducePacketName [09:07:08]name=ofd_packets/00140039 [09:07:08]NVStorageSaveData ofd_packets/00140039 [09:07:08]File name is /storage/ofd_packets/00140039 [09:07:08]Write 301 bytes [09:07:08]NVStorageSaveData done [09:07:08]OFDSenderStorePacket done [09:07:08]KKMCreateOFDPacket done [09:07:08]NVStorageSaveData kkm_last_timestamp [09:07:08]File name is /storage/kkm_last_timestamp [09:07:08]Write 4 bytes [09:07:08]NVStorageSaveData done [09:07:08]ExternCall_PrintAddStr [09:07:08]wPrintStart [09:07:08]Write to MH i2c: 01 00 00 AE 27 D5 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [09:07:08]RasterBufferAndPrint [09:07:08]line Счет N : (1)593893 [09:07:08]line ИНН: 02508201610067 [09:07:08]line Контрольно-Кассовый Чек [09:07:08]line ПРОДАЖА [09:07:08]line ТРК (МРК, ГНК) : 32 [09:07:08]line Товар: 2710124130 [09:07:08]line Аи-92-К-5 [09:07:08]line 20.000 * 0.00 [09:07:08]line = 0.00 [09:07:08]line НДС 12% НСП 1% [09:07:08]line > о реализуемом товаре [09:07:08]line ИТОГО: 0.00 [09:07:08]line НСП 1% : 0.00 [09:07:08]line НДС 12% : 0.00 [09:07:08]line Наличными: 0.00 [09:07:08]line Безнал.: 0.00 [09:07:08]line Место: АЗС № 136 "Партнер Нефть" [09:07:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:07:08]line СНО: Общий режим [09:07:08]line Чек 56 21.08.2024 09:07 [09:07:08]line Смена: 454 ФФД: 1.0 [09:07:08]line ЗНМ: 0300000067 [09:07:08]line РНМ: 0000000000092569 [09:07:08]line Версия ККМ: 001 [09:07:08]line Талоны: Топливные Талоны [09:07:08]line 3923773 [09:07:08]line ФМ: 0000000000871776 [09:07:08]line ФД: 140039 [09:07:08]line ФПД: 22881238873649 [09:07:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090709&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140039&fm=22881238873649&tin=02508201610067®Number=0000000000092569&sum=0 [09:07:08]written 0, free lines is 4095 [09:07:08]OFD Sender: Processing packet 140039 [packets to send 137, broken 136] [09:07:08]ProducePacketName [09:07:08]name=ofd_packets/00140039 [09:07:08]OFD Sender: To server: pG, [09:07:08]CommunicateWithHost lk.salyk.kg:30040 [09:07:08]ConnectInit lk.salyk.kg [09:07:08]Connected sock=10 [09:07: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 37 36 0F 01 00 00 E5 88 07 01 B2 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 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 3D AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 23 02 00 35 04 06 00 14 CF 74 1D 76 31 F5 CB A6 32 35 F6 4B B6 [09: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 37 36 4F 00 00 00 21 49 47 00 9C 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 37 36 10 04 04 00 07 23 02 00 F4 03 04 00 CE 54 C5 66 B6 04 01 00 00 67 12 68 86 33 8E 4A 2A [09:07:09]CommunicateWithHost err = 0 [09:07:09]CheckOFDResponse [09:07:09]1017 (14) - 77093643461234 [09:07:09]1041 (16) - 0000000000871776 [09:07:09]1040 (4) - 140039 [09:07:09]1012 (4) - 21.08.2024 02:45 [09:07:09]1206 (1) - 0 [09:07:09]OFD Sender: Remove packet 140039 [09:07:09]ProducePacketName [09:07:09]name=ofd_packets/00140039 [09:07:09]NVStorageDeleteData [09:07:09]Write to MH i2c: 01 00 00 D8 27 FF [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 07 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 E6 0C F8 [09:07:09]RasterBufferAndPrint [09:07:09]line [09:07:09]line [09:07:09]line [09:07:09]line [09:07:09]line [09:07:09]written 0, free lines is 3309 [09:07:09]MH_Cut [09:07:09]Write to MH i2c: D1 01 00 DF 27 01 D8 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: D1 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: D1 01 00 [09:07:09]MH_I2C_Read... [09:07:09]Read from MH i2c: D1 01 00 DF 27 00 D7 [09:07:09]Write to MH i2c: 01 00 00 E0 27 07 [09:07:09]Write i2c OK [09:07:09]MH_I2C_Read... [09:07:09]OFD Sender: No OFD packet to send [09:07:10]*** Cut start [09:07:10]*** Partial cut [09:07:10]*** CUTSNS_PIN = 1 [09:07:10]*** CUTSNS_PIN = 0 [09:07:10]*** Brake cut motor [09:07:10]Read from MH i2c: 01 [09:07:10]MH_I2C_Read... [09:07:10]*** Stop cut motor [09:07:10]*** Cut end [09:07:10]Read from MH i2c: 01 07 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 FF 0F 1C [09:07:10]process_action close_receipt done [09:07:10]requested_data is exist [09:07:10]produce_requested_data [09:07:10]requested_item fm.sn is exist - process it [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 11 00 00 [09:07:10]Write to MH i2c: E2 08 00 E1 27 80 11 00 00 00 00 00 00 82 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 17 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 17 00 E1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [09:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:07:10]wFMCommunicate OK [09:07:10]requested_item fd.num is exist - process it [09:07:10]SAM_PROTO_GetFieldsCounters [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 13 00 00 [09:07:10]Write to MH i2c: E2 08 00 E2 27 80 13 00 00 00 00 00 00 85 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 62 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 62 00 E2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [09:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:10]wFMCommunicate OK [09:07:10]SAM_PROTO_GetFieldsCounters done [09:07:10]requested_item shift.num is exist - process it [09:07:10]requested_item shift.opened is exist - process it [09:07:10]req_shift_opened [09:07:10]FM_GetShiftState [09:07:10]SAM_PROTO_GetShiftState [09:07:10]wFMCommunicate request_size=4 [09:07:10]MH_SAM_APDU [09:07:10]CAPDU: 80 13 01 00 [09:07:10]Write to MH i2c: E2 08 00 E3 27 80 13 01 00 00 00 00 00 87 [09:07:10]Write i2c OK [09:07:10]MH_I2C_Read... [09:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:10]Read from MH i2c: E2 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0E 00 [09:07:10]MH_I2C_Read... [09:07:10]Read from MH i2c: E2 0E 00 E3 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [09:07:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:07:10]wFMCommunicate OK [09:07:10]SAM_PROTO_GetShiftState done [09:07:10]FM_GetShiftState done [09:07:10]req_shift_opened done [09:07:10]requested_item shift.open_date is exist - process it [09:07:10]req_shift_open_date [09:07:10]req_shift_open_date done [09:07:10]produce_requested_data done [09:07:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140039,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:07:10]process_action_free close_receipt [09:07:10]json_value_free [09:07:10]json_value_free done [09:07:10]process_json_proto returns [09:07:10]Send response to host [09:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140039,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:07:10]free response buf [09:07:10]execute_script done [09:07:10]execute_script returns [09:07:10]free content buf [09:07:10]Sock 7.Close socket [09:07:10]Sock 7.Thread stoped [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]int [09:09:04]Write to MH i2c: 01 00 00 E4 27 0B [09:09:04]*** FLAG_PRN_KEY set [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 E4 27 00 08 00 00 00 FF 0F 28 [09:09:04]state=0 [09:09:04]Key pressed [09:09:04]Feed [09:09:04]Write to MH i2c: D8 00 00 E5 27 E3 [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D8 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D8 01 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: D8 01 00 E5 27 00 E4 [09:09:04]int [09:09:04]Write to MH i2c: 01 00 00 E6 27 0D [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 E6 27 00 48 00 00 00 3C 00 98 [09:09:04]state=2 [09:09:04]Key pressed [09:09:04]int [09:09:04]Write to MH i2c: 01 00 00 E7 27 0E [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]*** FLAG_PRN_KEY reset [09:09:04]*** FLAG_PRN_KEY set [09:09:04]*** FLAG_PRN_KEY reset [09:09:04]Read from MH i2c: 01 07 00 E7 27 00 08 00 00 00 F6 0F 22 [09:09:04]state=2 [09:09:04]Key pressed [09:09:04]int line is 0 - check status [09:09:04]Write to MH i2c: 01 00 00 E8 27 0F [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 F9 0F 1E [09:09:04]state=2 [09:09:04]Stop feed [09:09:04]int [09:09:04]Write to MH i2c: 01 00 00 E9 27 10 [09:09:04]Write i2c OK [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 [09:09:04]MH_I2C_Read... [09:09:04]Read from MH i2c: 01 07 00 E9 27 00 00 00 00 00 FA 0F 20 [09:09:04]state=0 [09:09:04]OFD Sender: No OFD packet to send [09:09:07]accept exits with 9 [09:09:07]New connection [09:09:07]New thread 3066908004 created [09:09:07]Thread 3066764644 joined [09:09:07]Waiting for new connection... [09:09:07] Sock 9.Parse request [09:09:07]Sock 9.Check first char [09:09:07]Sock 9.First char is OK [09:09:07]request: POST /json_proto HTTP/1.0 [09:09:07]Method: POST [09:09:07]URL: /json_proto [09:09:07]Method is POST - this is cgi request [09:09:07]url: /json_proto [09:09:07]query_string will be loaded in cgi processing [09:09:07]execute_cgi json_proto POST (null) [09:09:07]execute_cgi path=json_proto method=POST [09:09:07]POST find Content-Length [09:09:07]Host: 172.17.45.67:8080 [09:09:07]Content-Length: 677 [09:09:07]Content-Type: application/json [09:09:07] [09:09:07]POST finish read [09:09:07]Found Content-Length = 677 [09:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:07]execute_script... [09: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)593894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:07]POST & json_proto [09:09:07]process_json_proto [09:09:07]json parsed OK: [09:09:07]protocol is kg_v1.0 [09:09:07]action value=close_receipt [09:09:07]process_action close_receipt [09:09:07]cmd_close_receipt [09:09:07]MH_GetDate [09:09:07]Write to MH i2c: F0 00 00 EA 27 00 [09:09:07]Write i2c OK [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: F0 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: F0 09 00 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: F0 09 00 EA 27 00 B5 AE C5 66 5F 7F 2B 66 06 [09:09:07]GetLastDocTimeStamp 1724231229 [09:09:07]current date 1724231349 [09:09:07]FM_GetShiftState [09:09:07]SAM_PROTO_GetShiftState [09:09:07]wFMCommunicate request_size=4 [09:09:07]MH_SAM_APDU [09:09:07]CAPDU: 80 13 01 00 [09:09:07]Write to MH i2c: E2 08 00 EB 27 80 13 01 00 00 00 00 00 8F [09:09:07]Write i2c OK [09:09:07]MH_I2C_Read... [09:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:07]Read from MH i2c: E2 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 0E 00 [09:09:07]MH_I2C_Read... [09:09:07]Read from MH i2c: E2 0E 00 EB 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0F [09:09:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:09:07]wFMCommunicate OK [09:09:07]SAM_PROTO_GetShiftState done [09:09:07]FM_GetShiftState done [09:09:07]opened in 1724200467 [09:09:07]opened+sec_in_day 1724286867 [09:09:07]quantity*price = 50036 [09:09:07]sum+1 = 50037 [09:09:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 57 21.08.2024 09:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140040 ФПД: 63570371777322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140040&fm=63570371777322&tin=02508201610067®Number=0000000000092569&sum=50000 [09:09:08]StoreToDocumentArchive [09:09:08]shift 454 fd 140040 [09:09:08]save to /storage/0454/doc_00140040 [09:09:08]save last doc name /storage/0454/doc_00140040 to /storage/kkm_last_doc_name [09:09:08]save OK [09:09:08]Clear old archive folders... [09:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:08]tlvbuf is 00A07FD0 [09:09:08]SAM_PROTO_ClearQueue [09:09:08]wFMCommunicate request_size=4 [09:09:08]MH_SAM_APDU [09:09:08]CAPDU: 80 09 00 00 [09:09:08]Write to MH i2c: E2 08 00 F8 27 80 09 00 00 00 00 00 00 91 [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [09:09:08]RAPDU: 90 00 [09:09:08]wFMCommunicate OK [09:09:08]SAM_PROTO_ClearQueue done [09:09:08]KKMCreateOFDPacket [09:09:08]OFDProtocolAddRootSTLVToBuf [09:09:08]FM_MakeSignedData [09:09:08]FM_MakeSignedData [09:09:08]SAM_PROTO_SignData [09:09:08]wFMCommunicate request_size=4 [09:09:08]MH_SAM_APDU [09:09:08]CAPDU: 80 0D 01 02 [09:09:08]Write to MH i2c: E2 08 00 F9 27 80 0D 01 02 00 00 00 00 99 [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [09:09:08]RAPDU: 90 00 [09:09:08]wFMCommunicate OK [09:09:08]wFMCommunicate request_size=255 [09:09:08]MH_SAM_APDU [09:09: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B6 AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 23 02 00 35 04 06 00 39 [09:09:08]Write to MH i2c: E2 02 01 FA 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B6 AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 23 02 00 35 04 06 00 39 00 00 17 [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [09:09:08]RAPDU: 90 00 [09:09:08]wFMCommunicate OK [09:09:08]wFMCommunicate request_size=10 [09:09:08]MH_SAM_APDU [09:09:08]CAPDU: 80 0D 02 02 05 D1 21 6D 93 2A [09:09:08]Write to MH i2c: E2 0D 00 FB 27 80 0D 02 02 05 00 D1 21 6D 93 2A 00 00 C2 [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [09:09:08]RAPDU: 90 00 [09:09:08]wFMCommunicate OK [09:09:08]wFMCommunicate request_size=4 [09:09:08]MH_SAM_APDU [09:09:08]CAPDU: 80 0D 03 02 [09:09:08]Write to MH i2c: E2 08 00 FC 27 80 0D 03 02 00 00 00 00 9E [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 0B 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 0B 00 FC 27 00 37 86 E7 92 DA A4 47 DF 90 00 79 [09:09:08]RAPDU: 37 86 E7 92 DA A4 47 DF 90 00 [09:09:08]wFMCommunicate OK [09:09:08]SAM_PROTO_SignData done [09:09:08]FM_MakeSignedData done [09:09:08]CreateOFDProtocolMessage [09:09:08]wFMCommunicate request_size=4 [09:09:08]MH_SAM_APDU [09:09:08]CAPDU: 80 11 00 00 [09:09:08]Write to MH i2c: E2 08 00 FD 27 80 11 00 00 00 00 00 00 9E [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:08]Read from MH i2c: E2 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 17 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: E2 17 00 FD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [09:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:09:08]wFMCommunicate OK [09:09:08]CreateOFDProtocolMessage done [09:09:08]OFDSenderStorePacket 140040 [09:09:08]StoreOFDPacket docnum=140040 [09:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 31 07 01 78 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B6 AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 23 02 00 35 04 06 00 39 D1 21 6D 93 2A 37 86 E7 92 DA A4 47 DF [09:09:08]CheckFolder [09:09:08]dirname=/storage/ofd_packets [09:09:08]CheckFolder done [09:09:08]ProducePacketName [09:09:08]name=ofd_packets/00140040 [09:09:08]NVStorageSaveData ofd_packets/00140040 [09:09:08]File name is /storage/ofd_packets/00140040 [09:09:08]Write 301 bytes [09:09:08]NVStorageSaveData done [09:09:08]OFDSenderStorePacket done [09:09:08]KKMCreateOFDPacket done [09:09:08]NVStorageSaveData kkm_last_timestamp [09:09:08]File name is /storage/kkm_last_timestamp [09:09:08]Write 4 bytes [09:09:08]NVStorageSaveData done [09:09:08]ExternCall_PrintAddStr [09:09:08]wPrintStart [09:09:08]Write to MH i2c: 01 00 00 FE 27 25 [09:09:08]Write i2c OK [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: 01 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: 01 07 00 [09:09:08]MH_I2C_Read... [09:09:08]Read from MH i2c: 01 07 00 FE 27 00 00 00 00 00 FF 0F 3A [09:09:08]RasterBufferAndPrint [09:09:08]line Счет N : (1)593894 [09:09:08]line ИНН: 02508201610067 [09:09:08]line Контрольно-Кассовый Чек [09:09:08]line ПРОДАЖА [09:09:08]line ТРК (МРК, ГНК) : 42 [09:09:08]line Товар: 2710124130 [09:09:08]line Аи-92-К-5 [09:09:08]line 7.380 * 67.80 [09:09:08]line = 500.36 [09:09:08]line НДС 12% НСП 1% [09:09:08]line > о реализуемом товаре [09:09:08]line ОКРУГЛЕНИЕ: -0.36 [09:09:08]line ИТОГО: 500.00 [09:09:08]line Внесено: 500.00 [09:09:08]line СДАЧА: 0.00 [09:09:08]line НСП 1% : 4.43 [09:09:08]line НДС 12% : 53.14 [09:09:08]line Наличными: 500.00 [09:09:08]line Безнал.: 0.00 [09:09:08]line Место: АЗС № 136 "Партнер Нефть" [09:09:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:09:08]line СНО: Общий режим [09:09:08]line Чек 57 21.08.2024 09:09 [09:09:08]line Смена: 454 ФФД: 1.0 [09:09:08]line ЗНМ: 0300000067 [09:09:08]line РНМ: 0000000000092569 [09:09:08]line Версия ККМ: 001 [09:09:08]line ФМ: 0000000000871776 [09:09:08]line ФД: 140040 [09:09:08]line ФПД: 63570371777322 [09:09:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T090910&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140040&fm=63570371777322&tin=02508201610067®Number=0000000000092569&sum=50000 [09:09:09]written 0, free lines is 4095 [09:09:09]OFD Sender: Processing packet 140040 [packets to send 137, broken 136] [09:09:09]ProducePacketName [09:09:09]name=ofd_packets/00140040 [09:09:09]OFD Sender: To server: pG, [09:09:09]CommunicateWithHost lk.salyk.kg:30040 [09:09:09]ConnectInit lk.salyk.kg [09:09:09]Connected sock=10 [09: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 37 36 0F 01 00 00 33 31 07 01 78 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B6 AE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 23 02 00 35 04 06 00 39 D1 21 6D 93 2A 37 86 E7 92 DA A4 47 DF [09: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 37 36 4F 00 00 00 0B 7D 47 00 EC 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 37 36 10 04 04 00 08 23 02 00 F4 03 04 00 47 55 C5 66 B6 04 01 00 00 69 74 D0 DA FA B1 94 1E [09:09:09]CommunicateWithHost err = 0 [09:09:09]CheckOFDResponse [09:09:09]1017 (14) - 77093643461234 [09:09:09]1041 (16) - 0000000000871776 [09:09:09]1040 (4) - 140040 [09:09:09]1012 (4) - 21.08.2024 02:47 [09:09:09]1206 (1) - 0 [09:09:09]OFD Sender: Remove packet 140040 [09:09:09]ProducePacketName [09:09:09]name=ofd_packets/00140040 [09:09:09]NVStorageDeleteData [09:09:09]Write to MH i2c: 01 00 00 29 28 51 [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: 01 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: 01 07 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: 01 07 00 29 28 00 00 00 00 00 D0 0C 34 [09:09:09]RasterBufferAndPrint [09:09:09]line [09:09:09]line [09:09:09]line [09:09:09]line [09:09:09]line [09:09:09]written 0, free lines is 3286 [09:09:09]MH_Cut [09:09:09]Write to MH i2c: D1 01 00 30 28 01 2A [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: D1 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: D1 01 00 [09:09:09]MH_I2C_Read... [09:09:09]Read from MH i2c: D1 01 00 30 28 00 29 [09:09:09]Write to MH i2c: 01 00 00 31 28 59 [09:09:09]Write i2c OK [09:09:09]MH_I2C_Read... [09:09:10]OFD Sender: No OFD packet to send [09:09:10]*** Cut start [09:09:10]*** Partial cut [09:09:10]*** CUTSNS_PIN = 1 [09:09:10]*** CUTSNS_PIN = 0 [09:09:10]*** Brake cut motor [09:09:10]Read from MH i2c: 01 [09:09:10]MH_I2C_Read... [09:09:10]*** Stop cut motor [09:09:10]*** Cut end [09:09:10]Read from MH i2c: 01 07 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: 01 07 00 31 28 00 00 00 00 00 FF 0F 6E [09:09:10]process_action close_receipt done [09:09:10]requested_data is exist [09:09:10]produce_requested_data [09:09:10]requested_item fm.sn is exist - process it [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 11 00 00 [09:09:10]Write to MH i2c: E2 08 00 32 28 80 11 00 00 00 00 00 00 D4 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:10]Read from MH i2c: E2 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 17 00 [09:09:10]MH_I2C_Read... [09:09:10]Read from MH i2c: E2 17 00 32 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [09:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:09:10]wFMCommunicate OK [09:09:10]requested_item fd.num is exist - process it [09:09:10]SAM_PROTO_GetFieldsCounters [09:09:10]wFMCommunicate request_size=4 [09:09:10]MH_SAM_APDU [09:09:10]CAPDU: 80 13 00 00 [09:09:10]Write to MH i2c: E2 08 00 33 28 80 13 00 00 00 00 00 00 D7 [09:09:10]Write i2c OK [09:09:10]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 62 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 62 00 33 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:11]wFMCommunicate OK [09:09:11]SAM_PROTO_GetFieldsCounters done [09:09:11]requested_item shift.num is exist - process it [09:09:11]requested_item shift.opened is exist - process it [09:09:11]req_shift_opened [09:09:11]FM_GetShiftState [09:09:11]SAM_PROTO_GetShiftState [09:09:11]wFMCommunicate request_size=4 [09:09:11]MH_SAM_APDU [09:09:11]CAPDU: 80 13 01 00 [09:09:11]Write to MH i2c: E2 08 00 34 28 80 13 01 00 00 00 00 00 D9 [09:09:11]Write i2c OK [09:09:11]MH_I2C_Read... [09:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:11]Read from MH i2c: E2 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0E 00 [09:09:11]MH_I2C_Read... [09:09:11]Read from MH i2c: E2 0E 00 34 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 59 [09:09:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:09:11]wFMCommunicate OK [09:09:11]SAM_PROTO_GetShiftState done [09:09:11]FM_GetShiftState done [09:09:11]req_shift_opened done [09:09:11]requested_item shift.open_date is exist - process it [09:09:11]req_shift_open_date [09:09:11]req_shift_open_date done [09:09:11]produce_requested_data done [09:09:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140040,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:09:11]process_action_free close_receipt [09:09:11]json_value_free [09:09:11]json_value_free done [09:09:11]process_json_proto returns [09:09:11]Send response to host [09:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140040,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:09:11]free response buf [09:09:11]execute_script done [09:09:11]execute_script returns [09:09:11]free content buf [09:09:11]Sock 9.Close socket [09:09:11]Sock 9.Thread stoped [09:09:12]int [09:09:12]Write to MH i2c: 01 00 00 35 28 5D [09:09:12]*** FLAG_PRN_KEY set [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 35 28 00 08 00 00 00 FF 0F 7A [09:09:12]state=0 [09:09:12]Key pressed [09:09:12]Feed [09:09:12]Write to MH i2c: D8 00 00 36 28 35 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D8 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D8 01 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: D8 01 00 36 28 00 36 [09:09:12]int [09:09:12]Write to MH i2c: 01 00 00 37 28 5F [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 37 28 00 48 00 00 00 3C 00 EA [09:09:12]state=2 [09:09:12]Key pressed [09:09:12]int [09:09:12]Write to MH i2c: 01 00 00 38 28 60 [09:09:12]*** FLAG_PRN_KEY reset [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: 01 07 00 38 28 00 00 00 00 00 FA 0F 70 [09:09:12]state=2 [09:09:12]Stop feed [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:28]accept exits with 7 [09:10:28]New connection [09:10:28]New thread 3066764644 created [09:10:28]Thread 3066908004 joined [09:10:28]Waiting for new connection... [09:10:28] Sock 7.Parse request [09:10:28]Sock 7.Check first char [09:10:28]Sock 7.First char is OK [09:10:28]request: POST /json_proto HTTP/1.0 [09:10:28]Method: POST [09:10:28]URL: /json_proto [09:10:28]Method is POST - this is cgi request [09:10:28]url: /json_proto [09:10:28]query_string will be loaded in cgi processing [09:10:28]execute_cgi json_proto POST (null) [09:10:28]execute_cgi path=json_proto method=POST [09:10:28]POST find Content-Length [09:10:28]Host: 172.17.45.67:8080 [09:10:28]Content-Length: 797 [09:10:28]Content-Type: application/json [09:10:28] [09:10:28]POST finish read [09:10:28]Found Content-Length = 797 [09:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:28]execute_script... [09:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:28]POST & json_proto [09:10:28]process_json_proto [09:10:28]json parsed OK: [09:10:28]protocol is kg_v1.0 [09:10:28]action value=close_receipt [09:10:28]process_action close_receipt [09:10:28]cmd_close_receipt [09:10:28]MH_GetDate [09:10:28]Write to MH i2c: F0 00 00 39 28 50 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: F0 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: F0 09 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: F0 09 00 39 28 00 07 AF C5 66 5F 7F 2B 66 A9 [09:10:28]GetLastDocTimeStamp 1724231350 [09:10:28]current date 1724231431 [09:10:28]FM_GetShiftState [09:10:28]SAM_PROTO_GetShiftState [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 13 01 00 [09:10:28]Write to MH i2c: E2 08 00 3A 28 80 13 01 00 00 00 00 00 DF [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 0E 00 3A 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [09:10:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_GetShiftState done [09:10:28]FM_GetShiftState done [09:10:28]opened in 1724200467 [09:10:28]opened+sec_in_day 1724286867 [09:10:28]quantity*price = 0 [09:10:28]sum+1 = 1 [09:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 58 21.08.2024 09:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140041 ФПД: 168798441704287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140041&fm=168798441704287&tin=02508201610067®Number=0000000000092569&sum=0 [09:10:29]StoreToDocumentArchive [09:10:29]shift 454 fd 140041 [09:10:29]save to /storage/0454/doc_00140041 [09:10:29]save last doc name /storage/0454/doc_00140041 to /storage/kkm_last_doc_name [09:10:29]save OK [09:10:29]Clear old archive folders... [09:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:10:29]tlvbuf is 00AE2400 [09:10:29]SAM_PROTO_ClearQueue [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 09 00 00 [09:10:29]Write to MH i2c: E2 08 00 47 28 80 09 00 00 00 00 00 00 E1 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [09:10:30]RAPDU: 90 00 [09:10:30]wFMCommunicate OK [09:10:30]SAM_PROTO_ClearQueue done [09:10:30]KKMCreateOFDPacket [09:10:30]OFDProtocolAddRootSTLVToBuf [09:10:30]FM_MakeSignedData [09:10:30]FM_MakeSignedData [09:10:30]SAM_PROTO_SignData [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 0D 01 02 [09:10:30]Write to MH i2c: E2 08 00 48 28 80 0D 01 02 00 00 00 00 E9 [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 48 28 00 90 00 E4 [09:10:30]RAPDU: 90 00 [09:10:30]wFMCommunicate OK [09:10:30]wFMCommunicate request_size=255 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 3A 00 00 00 F4 03 04 00 07 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 23 02 00 35 04 06 00 [09:10:30]Write to MH i2c: E2 02 01 49 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 3A 00 00 00 F4 03 04 00 07 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 23 02 00 35 04 06 00 00 00 15 [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]OFD Sender: No OFD packet to send [09:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 49 28 00 90 00 E5 [09:10:30]RAPDU: 90 00 [09:10:30]wFMCommunicate OK [09:10:30]wFMCommunicate request_size=11 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 0D 02 02 06 99 85 73 28 0B 5F [09:10:30]Write to MH i2c: E2 0E 00 4A 28 80 0D 02 02 06 00 99 85 73 28 0B 5F 00 00 1B [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 03 00 4A 28 00 90 00 E6 [09:10:30]RAPDU: 90 00 [09:10:30]wFMCommunicate OK [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 0D 03 02 [09:10:30]Write to MH i2c: E2 08 00 4B 28 80 0D 03 02 00 00 00 00 EE [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 0B 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 0B 00 4B 28 00 47 FD 05 8F 04 76 00 5E 90 00 9F [09:10:30]RAPDU: 47 FD 05 8F 04 76 00 5E 90 00 [09:10:30]wFMCommunicate OK [09:10:30]SAM_PROTO_SignData done [09:10:30]FM_MakeSignedData done [09:10:30]CreateOFDProtocolMessage [09:10:30]wFMCommunicate request_size=4 [09:10:30]MH_SAM_APDU [09:10:30]CAPDU: 80 11 00 00 [09:10:30]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:30]Read from MH i2c: E2 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 17 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [09:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:30]wFMCommunicate OK [09:10:30]CreateOFDProtocolMessage done [09:10:30]OFDSenderStorePacket 140041 [09:10:30]StoreOFDPacket docnum=140041 [09:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 ED 11 08 01 B9 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 3A 00 00 00 F4 03 04 00 07 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 23 02 00 35 04 06 00 99 85 73 28 0B 5F 47 FD 05 8F 04 76 00 5E [09:10:30]CheckFolder [09:10:30]dirname=/storage/ofd_packets [09:10:30]CheckFolder done [09:10:30]ProducePacketName [09:10:30]name=ofd_packets/00140041 [09:10:30]NVStorageSaveData ofd_packets/00140041 [09:10:30]File name is /storage/ofd_packets/00140041 [09:10:30]Write 302 bytes [09:10:30]NVStorageSaveData done [09:10:30]OFDSenderStorePacket done [09:10:30]KKMCreateOFDPacket done [09:10:30]NVStorageSaveData kkm_last_timestamp [09:10:30]File name is /storage/kkm_last_timestamp [09:10:30]Write 4 bytes [09:10:30]NVStorageSaveData done [09:10:30]ExternCall_PrintAddStr [09:10:30]wPrintStart [09:10:30]Write to MH i2c: 01 00 00 4D 28 75 [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 07 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 07 00 4D 28 00 00 00 00 00 FF 0F 8A [09:10:30]RasterBufferAndPrint [09:10:30]line Счет N : (1)593895 [09:10:30]line ИНН: 02508201610067 [09:10:30]line Контрольно-Кассовый Чек [09:10:30]line ПРОДАЖА [09:10:30]line ТРК (МРК, ГНК) : 21 [09:10:30]line Товар: 2710194210 [09:10:30]line ДТ(л)-К-5 [09:10:30]line 28.000 * 0.00 [09:10:30]line = 0.00 [09:10:30]line НДС 12% НСП 1% [09:10:30]line > о реализуемом товаре [09:10:30]line ИТОГО: 0.00 [09:10:30]line НСП 1% : 0.00 [09:10:30]line НДС 12% : 0.00 [09:10:30]line Наличными: 0.00 [09:10:30]line Безнал.: 0.00 [09:10:30]line Место: АЗС № 136 "Партнер Нефть" [09:10:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:10:30]line СНО: Общий режим [09:10:30]line Чек 58 21.08.2024 09:10 [09:10:30]line Смена: 454 ФФД: 1.0 [09:10:30]line ЗНМ: 0300000067 [09:10:30]line РНМ: 0000000000092569 [09:10:30]line Версия ККМ: 001 [09:10:30]line Талоны: Топливная Карта [09:10:30]line 99761 [09:10:30]line ФМ: 0000000000871776 [09:10:30]line ФД: 140041 [09:10:30]line ФПД: 168798441704287 [09:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140041&fm=168798441704287&tin=02508201610067®Number=0000000000092569&sum=0 [09:10:30]OFD Sender: Processing packet 140041 [packets to send 137, broken 136] [09:10:30]ProducePacketName [09:10:30]name=ofd_packets/00140041 [09:10:30]OFD Sender: To server: pG, [09:10:30]CommunicateWithHost lk.salyk.kg:30040 [09:10:30]ConnectInit lk.salyk.kg [09:10:30]written 0, free lines is 4095 [09:10:30]Connected sock=10 [09:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 ED 11 08 01 B9 79 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 3A 00 00 00 F4 03 04 00 07 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 23 02 00 35 04 06 00 99 85 73 28 0B 5F 47 FD 05 8F 04 76 00 5E [09:10: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 37 36 4F 00 00 00 B0 4B 47 00 C0 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 37 36 10 04 04 00 09 23 02 00 F4 03 04 00 98 55 C5 66 B6 04 01 00 00 4F 35 1D C8 48 2F 54 27 [09:10:31]CommunicateWithHost err = 0 [09:10:31]CheckOFDResponse [09:10:31]1017 (14) - 77093643461234 [09:10:31]1041 (16) - 0000000000871776 [09:10:31]1040 (4) - 140041 [09:10:31]1012 (4) - 21.08.2024 02:48 [09:10:31]1206 (1) - 0 [09:10:31]OFD Sender: Remove packet 140041 [09:10:31]ProducePacketName [09:10:31]name=ofd_packets/00140041 [09:10:31]NVStorageDeleteData [09:10:31]Write to MH i2c: 01 00 00 77 28 9F [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: 01 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: 01 07 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: 01 07 00 77 28 00 00 00 00 00 E4 0C 96 [09:10:31]RasterBufferAndPrint [09:10:31]line [09:10:31]line [09:10:31]line [09:10:31]line [09:10:31]line [09:10:31]written 0, free lines is 3306 [09:10:31]MH_Cut [09:10:31]Write to MH i2c: D1 01 00 7E 28 01 78 [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: D1 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: D1 01 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: D1 01 00 7E 28 00 77 [09:10:31]Write to MH i2c: 01 00 00 7F 28 A7 [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]OFD Sender: No OFD packet to send [09:10:32]*** Cut start [09:10:32]*** Partial cut [09:10:32]*** CUTSNS_PIN = 1 [09:10:32]*** CUTSNS_PIN = 0 [09:10:32]*** Brake cut motor [09:10:32]Read from MH i2c: 01 [09:10:32]MH_I2C_Read... [09:10:32]*** Stop cut motor [09:10:32]*** Cut end [09:10:32]Read from MH i2c: 01 07 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: 01 07 00 7F 28 00 00 00 00 00 FF 0F BC [09:10:32]process_action close_receipt done [09:10:32]requested_data is exist [09:10:32]produce_requested_data [09:10:32]requested_item fm.sn is exist - process it [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 11 00 00 [09:10:32]Write to MH i2c: E2 08 00 80 28 80 11 00 00 00 00 00 00 22 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 17 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 17 00 80 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [09:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:10:32]wFMCommunicate OK [09:10:32]requested_item fd.num is exist - process it [09:10:32]SAM_PROTO_GetFieldsCounters [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 13 00 00 [09:10:32]Write to MH i2c: E2 08 00 81 28 80 13 00 00 00 00 00 00 25 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 62 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 62 00 81 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [09:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:32]wFMCommunicate OK [09:10:32]SAM_PROTO_GetFieldsCounters done [09:10:32]requested_item shift.num is exist - process it [09:10:32]requested_item shift.opened is exist - process it [09:10:32]req_shift_opened [09:10:32]FM_GetShiftState [09:10:32]SAM_PROTO_GetShiftState [09:10:32]wFMCommunicate request_size=4 [09:10:32]MH_SAM_APDU [09:10:32]CAPDU: 80 13 01 00 [09:10:32]Write to MH i2c: E2 08 00 82 28 80 13 01 00 00 00 00 00 27 [09:10:32]Write i2c OK [09:10:32]MH_I2C_Read... [09:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:32]Read from MH i2c: E2 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 0E 00 [09:10:32]MH_I2C_Read... [09:10:32]Read from MH i2c: E2 0E 00 82 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [09:10:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:10:32]wFMCommunicate OK [09:10:32]SAM_PROTO_GetShiftState done [09:10:32]FM_GetShiftState done [09:10:32]req_shift_opened done [09:10:32]requested_item shift.open_date is exist - process it [09:10:32]req_shift_open_date [09:10:32]req_shift_open_date done [09:10:32]produce_requested_data done [09:10:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140041,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:10:32]process_action_free close_receipt [09:10:32]json_value_free [09:10:32]json_value_free done [09:10:32]process_json_proto returns [09:10:32]Send response to host [09:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140041,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:10:32]free response buf [09:10:32]execute_script done [09:10:32]execute_script returns [09:10:32]free content buf [09:10:32]Sock 7.Close socket [09:10:32]Sock 7.Thread stoped [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:49]int [09:10:49]Write to MH i2c: 01 00 00 83 28 AB [09:10:49]*** FLAG_PRN_KEY set [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 83 28 00 08 00 00 00 FF 0F C8 [09:10:49]state=0 [09:10:49]Key pressed [09:10:49]Feed [09:10:49]Write to MH i2c: D8 00 00 84 28 83 [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: D8 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: D8 01 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: D8 01 00 84 28 00 84 [09:10:49]int [09:10:49]Write to MH i2c: 01 00 00 85 28 AD [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 85 28 00 48 00 00 00 3C 00 38 [09:10:49]state=2 [09:10:49]Key pressed [09:10:49]int [09:10:49]Write to MH i2c: 01 00 00 86 28 AE [09:10:49]*** FLAG_PRN_KEY reset [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: 01 07 00 86 28 00 00 00 00 00 F6 0F BA [09:10:49]state=2 [09:10:49]Stop feed [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:28]accept exits with 9 [09:11:28]New connection [09:11:28]New thread 3066908004 created [09:11:28]Thread 3066764644 joined [09:11:28]Waiting for new connection... [09:11:28] Sock 9.Parse request [09:11:28]Sock 9.Check first char [09:11:28]Sock 9.First char is OK [09:11:28]request: POST /json_proto HTTP/1.0 [09:11:28]Method: POST [09:11:28]URL: /json_proto [09:11:28]Method is POST - this is cgi request [09:11:28]url: /json_proto [09:11:28]query_string will be loaded in cgi processing [09:11:28]execute_cgi json_proto POST (null) [09:11:28]execute_cgi path=json_proto method=POST [09:11:28]POST find Content-Length [09:11:28]Host: 172.17.45.67:8080 [09:11:28]Content-Length: 677 [09:11:28]Content-Type: application/json [09:11:28] [09:11:28]POST finish read [09:11:28]Found Content-Length = 677 [09:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:28]execute_script... [09:11: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)593896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:28]POST & json_proto [09:11:28]process_json_proto [09:11:28]json parsed OK: [09:11:28]protocol is kg_v1.0 [09:11:28]action value=close_receipt [09:11:28]process_action close_receipt [09:11:28]cmd_close_receipt [09:11:28]MH_GetDate [09:11:28]Write to MH i2c: F0 00 00 87 28 9E [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 09 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: F0 09 00 87 28 00 42 AF C5 66 5F 7F 2B 66 32 [09:11:28]GetLastDocTimeStamp 1724231431 [09:11:28]current date 1724231490 [09:11:28]FM_GetShiftState [09:11:28]SAM_PROTO_GetShiftState [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 13 01 00 [09:11:28]Write to MH i2c: E2 08 00 88 28 80 13 01 00 00 00 00 00 2D [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0E 00 88 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AD [09:11:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_GetShiftState done [09:11:28]FM_GetShiftState done [09:11:28]opened in 1724200467 [09:11:28]opened+sec_in_day 1724286867 [09:11:28]quantity*price = 20001 [09:11:28]sum+1 = 20002 [09:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 59 21.08.2024 09:11 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140042 ФПД: 234031198358623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091130&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140042&fm=234031198358623&tin=02508201610067®Number=0000000000092569&sum=20000 [09:11:29]StoreToDocumentArchive [09:11:29]shift 454 fd 140042 [09:11:29]save to /storage/0454/doc_00140042 [09:11:29]save last doc name /storage/0454/doc_00140042 to /storage/kkm_last_doc_name [09:11:29]save OK [09:11:29]Clear old archive folders... [09:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:29]tlvbuf is 00AE8850 [09:11:29]SAM_PROTO_ClearQueue [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 09 00 00 [09:11:29]Write to MH i2c: E2 08 00 95 28 80 09 00 00 00 00 00 00 2F [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 95 28 00 90 00 31 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]SAM_PROTO_ClearQueue done [09:11:29]KKMCreateOFDPacket [09:11:29]OFDProtocolAddRootSTLVToBuf [09:11:29]FM_MakeSignedData [09:11:29]FM_MakeSignedData [09:11:29]SAM_PROTO_SignData [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 0D 01 02 [09:11:29]Write to MH i2c: E2 08 00 96 28 80 0D 01 02 00 00 00 00 37 [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]wFMCommunicate request_size=255 [09:11:29]MH_SAM_APDU [09:11: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 42 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 23 02 00 35 04 06 00 D4 [09:11:29]Write to MH i2c: E2 02 01 97 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 42 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 23 02 00 35 04 06 00 D4 00 00 E3 [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]wFMCommunicate request_size=10 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 0D 02 02 05 D9 A2 71 CC 5F [09:11:29]Write to MH i2c: E2 0D 00 98 28 80 0D 02 02 05 00 D9 A2 71 CC 5F 00 00 5B [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 03 00 98 28 00 90 00 34 [09:11:29]RAPDU: 90 00 [09:11:29]wFMCommunicate OK [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 0D 03 02 [09:11:29]Write to MH i2c: E2 08 00 99 28 80 0D 03 02 00 00 00 00 3C [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 0B 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 0B 00 99 28 00 A3 8A E9 CC 31 36 4E BB 90 00 8F [09:11:29]RAPDU: A3 8A E9 CC 31 36 4E BB 90 00 [09:11:29]wFMCommunicate OK [09:11:29]SAM_PROTO_SignData done [09:11:29]FM_MakeSignedData done [09:11:29]CreateOFDProtocolMessage [09:11:29]wFMCommunicate request_size=4 [09:11:29]MH_SAM_APDU [09:11:29]CAPDU: 80 11 00 00 [09:11:29]Write to MH i2c: E2 08 00 9A 28 80 11 00 00 00 00 00 00 3C [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:29]Read from MH i2c: E2 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 17 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: E2 17 00 9A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [09:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:29]wFMCommunicate OK [09:11:29]CreateOFDProtocolMessage done [09:11:29]OFDSenderStorePacket 140042 [09:11:29]StoreOFDPacket docnum=140042 [09:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 90 BC 07 01 7A 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 42 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 23 02 00 35 04 06 00 D4 D9 A2 71 CC 5F A3 8A E9 CC 31 36 4E BB [09:11:29]CheckFolder [09:11:29]dirname=/storage/ofd_packets [09:11:29]CheckFolder done [09:11:29]ProducePacketName [09:11:29]name=ofd_packets/00140042 [09:11:29]NVStorageSaveData ofd_packets/00140042 [09:11:29]File name is /storage/ofd_packets/00140042 [09:11:29]Write 301 bytes [09:11:29]NVStorageSaveData done [09:11:29]OFDSenderStorePacket done [09:11:29]KKMCreateOFDPacket done [09:11:29]NVStorageSaveData kkm_last_timestamp [09:11:29]File name is /storage/kkm_last_timestamp [09:11:29]Write 4 bytes [09:11:29]NVStorageSaveData done [09:11:29]ExternCall_PrintAddStr [09:11:29]wPrintStart [09:11:29]Write to MH i2c: 01 00 00 9B 28 C3 [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 07 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 07 00 9B 28 00 00 00 00 00 FF 0F D8 [09:11:29]RasterBufferAndPrint [09:11:29]line Счет N : (1)593896 [09:11:29]line ИНН: 02508201610067 [09:11:29]line Контрольно-Кассовый Чек [09:11:29]line ПРОДАЖА [09:11:29]line ТРК (МРК, ГНК) : 62 [09:11:29]line Товар: 2710124130 [09:11:29]line Аи-92-К-5 [09:11:29]line 2.950 * 67.80 [09:11:29]line = 200.01 [09:11:29]line НДС 12% НСП 1% [09:11:29]line > о реализуемом товаре [09:11:29]line ОКРУГЛЕНИЕ: -0.01 [09:11:29]line ИТОГО: 200.00 [09:11:29]line Внесено: 200.00 [09:11:29]line СДАЧА: 0.00 [09:11:29]line НСП 1% : 1.77 [09:11:29]line НДС 12% : 21.24 [09:11:29]line Наличными: 200.00 [09:11:29]line Безнал.: 0.00 [09:11:29]line Место: АЗС № 136 "Партнер Нефть" [09:11:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:11:29]line СНО: Общий режим [09:11:29]line Чек 59 21.08.2024 09:11 [09:11:29]line Смена: 454 ФФД: 1.0 [09:11:29]line ЗНМ: 0300000067 [09:11:29]line РНМ: 0000000000092569 [09:11:29]line Версия ККМ: 001 [09:11:29]line ФМ: 0000000000871776 [09:11:29]line ФД: 140042 [09:11:29]line ФПД: 234031198358623 [09:11:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091130&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140042&fm=234031198358623&tin=02508201610067®Number=0000000000092569&sum=20000 [09:11:30]OFD Sender: Processing packet 140042 [packets to send 137, broken 136] [09:11:30]ProducePacketName [09:11:30]name=ofd_packets/00140042 [09:11:30]OFD Sender: To server: pG, [09:11:30]CommunicateWithHost lk.salyk.kg:30040 [09:11:30]ConnectInit lk.salyk.kg [09:11:30]written 0, free lines is 4095 [09:11:30]Connected sock=10 [09:11: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 37 36 0F 01 00 00 90 BC 07 01 7A 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3B 00 00 00 F4 03 04 00 42 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 23 02 00 35 04 06 00 D4 D9 A2 71 CC 5F A3 8A E9 CC 31 36 4E BB [09:11: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 37 36 4F 00 00 00 A7 7E 47 00 6C 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 37 36 10 04 04 00 0A 23 02 00 F4 03 04 00 D4 55 C5 66 B6 04 01 00 00 67 26 37 DF 8C 64 D0 9A [09:11:30]CommunicateWithHost err = 0 [09:11:30]CheckOFDResponse [09:11:30]1017 (14) - 77093643461234 [09:11:30]1041 (16) - 0000000000871776 [09:11:30]1040 (4) - 140042 [09:11:30]1012 (4) - 21.08.2024 02:49 [09:11:30]1206 (1) - 0 [09:11:30]OFD Sender: Remove packet 140042 [09:11:30]ProducePacketName [09:11:30]name=ofd_packets/00140042 [09:11:30]NVStorageDeleteData [09:11:30]Write to MH i2c: 01 00 00 C6 28 EE [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [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 C6 28 00 00 00 00 00 C8 0C C9 [09:11:30]RasterBufferAndPrint [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]written 0, free lines is 3278 [09:11:30]MH_Cut [09:11:30]Write to MH i2c: D1 01 00 CD 28 01 C7 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 01 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 01 00 CD 28 00 C6 [09:11:30]Write to MH i2c: 01 00 00 CE 28 F6 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]OFD Sender: No OFD packet to send [09:11:31]*** Cut start [09:11:31]*** Partial cut [09:11:31]*** CUTSNS_PIN = 1 [09:11:31]*** CUTSNS_PIN = 0 [09:11:31]*** Brake cut motor [09:11:31]Read from MH i2c: 01 [09:11:31]MH_I2C_Read... [09:11:31]*** Stop cut motor [09:11:31]*** Cut end [09:11:31]Read from MH i2c: 01 07 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: 01 07 00 CE 28 00 00 00 00 00 FF 0F 0B [09:11:31]process_action close_receipt done [09:11:31]requested_data is exist [09:11:31]produce_requested_data [09:11:31]requested_item fm.sn is exist - process it [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 11 00 00 [09:11:31]Write to MH i2c: E2 08 00 CF 28 80 11 00 00 00 00 00 00 71 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 17 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 17 00 CF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [09:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:11:31]wFMCommunicate OK [09:11:31]requested_item fd.num is exist - process it [09:11:31]SAM_PROTO_GetFieldsCounters [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 13 00 00 [09:11:31]Write to MH i2c: E2 08 00 D0 28 80 13 00 00 00 00 00 00 74 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 62 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 62 00 D0 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_GetFieldsCounters done [09:11:32]requested_item shift.num is exist - process it [09:11:32]requested_item shift.opened is exist - process it [09:11:32]req_shift_opened [09:11:32]FM_GetShiftState [09:11:32]SAM_PROTO_GetShiftState [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 13 01 00 [09:11:32]Write to MH i2c: E2 08 00 D1 28 80 13 01 00 00 00 00 00 76 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 D1 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F6 [09:11:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_GetShiftState done [09:11:32]FM_GetShiftState done [09:11:32]req_shift_opened done [09:11:32]requested_item shift.open_date is exist - process it [09:11:32]req_shift_open_date [09:11:32]req_shift_open_date done [09:11:32]produce_requested_data done [09:11:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140042,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:11:32]process_action_free close_receipt [09:11:32]json_value_free [09:11:32]json_value_free done [09:11:32]process_json_proto returns [09:11:32]Send response to host [09:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140042,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:11:32]free response buf [09:11:32]execute_script done [09:11:32]execute_script returns [09:11:32]free content buf [09:11:32]Sock 9.Close socket [09:11:32]Sock 9.Thread stoped [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:23]accept exits with 7 [09:12:23]New connection [09:12:23]New thread 3066764644 created [09:12:23]Thread 3066908004 joined [09:12:23]Waiting for new connection... [09:12:23] Sock 7.Parse request [09:12:23]Sock 7.Check first char [09:12:23]Sock 7.First char is OK [09:12:23]request: POST /json_proto HTTP/1.0 [09:12:23]Method: POST [09:12:23]URL: /json_proto [09:12:23]Method is POST - this is cgi request [09:12:23]url: /json_proto [09:12:23]query_string will be loaded in cgi processing [09:12:23]execute_cgi json_proto POST (null) [09:12:23]execute_cgi path=json_proto method=POST [09:12:23]POST find Content-Length [09:12:23]Host: 172.17.45.67:8080 [09:12:23]Content-Length: 677 [09:12:23]Content-Type: application/json [09:12:23] [09:12:23]POST finish read [09:12:23]Found Content-Length = 677 [09:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:23]execute_script... [09:12:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:23]POST & json_proto [09:12:23]process_json_proto [09:12:23]json parsed OK: [09:12:23]protocol is kg_v1.0 [09:12:23]action value=close_receipt [09:12:23]process_action close_receipt [09:12:23]cmd_close_receipt [09:12:23]MH_GetDate [09:12:23]Write to MH i2c: F0 00 00 D2 28 E9 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: F0 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: F0 09 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: F0 09 00 D2 28 00 79 AF C5 66 5F 7F 2B 66 B4 [09:12:23]GetLastDocTimeStamp 1724231490 [09:12:23]current date 1724231545 [09:12:23]FM_GetShiftState [09:12:23]SAM_PROTO_GetShiftState [09:12:23]wFMCommunicate request_size=4 [09:12:23]MH_SAM_APDU [09:12:23]CAPDU: 80 13 01 00 [09:12:23]Write to MH i2c: E2 08 00 D3 28 80 13 01 00 00 00 00 00 78 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:23]Read from MH i2c: E2 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: E2 0E 00 D3 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F8 [09:12:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:12:23]wFMCommunicate OK [09:12:23]SAM_PROTO_GetShiftState done [09:12:23]FM_GetShiftState done [09:12:23]opened in 1724200467 [09:12:23]opened+sec_in_day 1724286867 [09:12:23]quantity*price = 40002 [09:12:23]sum+1 = 40003 [09:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 60 21.08.2024 09:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140043 ФПД: 196833034913929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091225&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140043&fm=196833034913929&tin=02508201610067®Number=0000000000092569&sum=40000 [09:12:24]StoreToDocumentArchive [09:12:24]shift 454 fd 140043 [09:12:24]save to /storage/0454/doc_00140043 [09:12:24]save last doc name /storage/0454/doc_00140043 to /storage/kkm_last_doc_name [09:12:24]save OK [09:12:24]Clear old archive folders... [09:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:24]tlvbuf is 00AC00A0 [09:12:24]SAM_PROTO_ClearQueue [09:12:24]wFMCommunicate request_size=4 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 09 00 00 [09:12:24]Write to MH i2c: E2 08 00 E0 28 80 09 00 00 00 00 00 00 7A [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 E0 28 00 90 00 7C [09:12:24]RAPDU: 90 00 [09:12:24]wFMCommunicate OK [09:12:24]SAM_PROTO_ClearQueue done [09:12:24]KKMCreateOFDPacket [09:12:24]OFDProtocolAddRootSTLVToBuf [09:12:24]FM_MakeSignedData [09:12:24]FM_MakeSignedData [09:12:24]SAM_PROTO_SignData [09:12:24]wFMCommunicate request_size=4 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 0D 01 02 [09:12:24]Write to MH i2c: E2 08 00 E1 28 80 0D 01 02 00 00 00 00 82 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [09:12:24]RAPDU: 90 00 [09:12:24]wFMCommunicate OK [09:12:24]wFMCommunicate request_size=255 [09:12:24]MH_SAM_APDU [09:12: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 79 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 23 02 00 35 04 06 00 B3 [09:12:24]Write to MH i2c: E2 02 01 E2 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 79 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 23 02 00 35 04 06 00 B3 00 00 29 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [09:12:24]RAPDU: 90 00 [09:12:24]wFMCommunicate OK [09:12:24]wFMCommunicate request_size=10 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 0D 02 02 05 04 C3 20 48 89 [09:12:24]Write to MH i2c: E2 0D 00 E3 28 80 0D 02 02 05 00 04 C3 20 48 89 00 00 47 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [09:12:24]RAPDU: 90 00 [09:12:24]wFMCommunicate OK [09:12:24]wFMCommunicate request_size=4 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 0D 03 02 [09:12:24]Write to MH i2c: E2 08 00 E4 28 80 0D 03 02 00 00 00 00 87 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 0B 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 0B 00 E4 28 00 B0 82 D8 C2 98 4A 4C 15 90 00 97 [09:12:24]RAPDU: B0 82 D8 C2 98 4A 4C 15 90 00 [09:12:24]wFMCommunicate OK [09:12:24]SAM_PROTO_SignData done [09:12:24]FM_MakeSignedData done [09:12:24]CreateOFDProtocolMessage [09:12:24]wFMCommunicate request_size=4 [09:12:24]MH_SAM_APDU [09:12:24]CAPDU: 80 11 00 00 [09:12:24]Write to MH i2c: E2 08 00 E5 28 80 11 00 00 00 00 00 00 87 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:24]Read from MH i2c: E2 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 17 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: E2 17 00 E5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [09:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:24]wFMCommunicate OK [09:12:24]CreateOFDProtocolMessage done [09:12:24]OFDSenderStorePacket 140043 [09:12:24]StoreOFDPacket docnum=140043 [09:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 F4 07 01 1B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 79 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 23 02 00 35 04 06 00 B3 04 C3 20 48 89 B0 82 D8 C2 98 4A 4C 15 [09:12:24]CheckFolder [09:12:24]dirname=/storage/ofd_packets [09:12:24]CheckFolder done [09:12:24]ProducePacketName [09:12:24]name=ofd_packets/00140043 [09:12:24]NVStorageSaveData ofd_packets/00140043 [09:12:24]File name is /storage/ofd_packets/00140043 [09:12:24]Write 301 bytes [09:12:24]NVStorageSaveData done [09:12:24]OFDSenderStorePacket done [09:12:24]KKMCreateOFDPacket done [09:12:24]NVStorageSaveData kkm_last_timestamp [09:12:24]File name is /storage/kkm_last_timestamp [09:12:24]Write 4 bytes [09:12:24]NVStorageSaveData done [09:12:24]ExternCall_PrintAddStr [09:12:24]wPrintStart [09:12:24]Write to MH i2c: 01 00 00 E6 28 0E [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 07 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 07 00 E6 28 00 00 00 00 00 FF 0F 23 [09:12:24]RasterBufferAndPrint [09:12:24]line Счет N : (1)593897 [09:12:24]line ИНН: 02508201610067 [09:12:24]line Контрольно-Кассовый Чек [09:12:24]line ПРОДАЖА [09:12:24]line ТРК (МРК, ГНК) : 32 [09:12:24]line Товар: 2710124130 [09:12:24]line Аи-92-К-5 [09:12:24]line 5.900 * 67.80 [09:12:24]line = 400.02 [09:12:24]line НДС 12% НСП 1% [09:12:24]line > о реализуемом товаре [09:12:24]line ОКРУГЛЕНИЕ: -0.02 [09:12:24]line ИТОГО: 400.00 [09:12:24]line Внесено: 400.00 [09:12:24]line СДАЧА: 0.00 [09:12:24]line НСП 1% : 3.54 [09:12:24]line НДС 12% : 42.48 [09:12:24]line Наличными: 400.00 [09:12:24]line Безнал.: 0.00 [09:12:24]line Место: АЗС № 136 "Партнер Нефть" [09:12:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:12:24]line СНО: Общий режим [09:12:24]line Чек 60 21.08.2024 09:12 [09:12:24]line Смена: 454 ФФД: 1.0 [09:12:24]line ЗНМ: 0300000067 [09:12:24]line РНМ: 0000000000092569 [09:12:24]line Версия ККМ: 001 [09:12:24]line ФМ: 0000000000871776 [09:12:24]line ФД: 140043 [09:12:25]line ФПД: 196833034913929 [09:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091225&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140043&fm=196833034913929&tin=02508201610067®Number=0000000000092569&sum=40000 [09:12:25]OFD Sender: Processing packet 140043 [packets to send 137, broken 136] [09:12:25]ProducePacketName [09:12:25]name=ofd_packets/00140043 [09:12:25]OFD Sender: To server: pG, [09:12:25]CommunicateWithHost lk.salyk.kg:30040 [09:12:25]ConnectInit lk.salyk.kg [09:12:25]written 0, free lines is 4095 [09:12:25]Connected sock=10 [09:12: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 37 36 0F 01 00 00 82 F4 07 01 1B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 79 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 23 02 00 35 04 06 00 B3 04 C3 20 48 89 B0 82 D8 C2 98 4A 4C 15 [09:12: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 37 36 4F 00 00 00 AB 6C 47 00 5D 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 37 36 10 04 04 00 0B 23 02 00 F4 03 04 00 0B 56 C5 66 B6 04 01 00 00 0E 89 D6 F3 A1 44 2A 59 [09:12:25]CommunicateWithHost err = 0 [09:12:25]CheckOFDResponse [09:12:25]1017 (14) - 77093643461234 [09:12:25]1041 (16) - 0000000000871776 [09:12:25]1040 (4) - 140043 [09:12:25]1012 (4) - 21.08.2024 02:50 [09:12:25]1206 (1) - 0 [09:12:25]OFD Sender: Remove packet 140043 [09:12:25]ProducePacketName [09:12:25]name=ofd_packets/00140043 [09:12:25]NVStorageDeleteData [09:12:25]Write to MH i2c: 01 00 00 11 29 3A [09:12:25]Write i2c OK [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: 01 [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: 01 07 00 [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: 01 07 00 11 29 00 00 00 00 00 DF 0C 2C [09:12:25]RasterBufferAndPrint [09:12:25]line [09:12:25]line [09:12:25]line [09:12:25]line [09:12:25]line [09:12:25]written 0, free lines is 3300 [09:12:25]MH_Cut [09:12:25]Write to MH i2c: D1 01 00 18 29 01 13 [09:12:25]Write i2c OK [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: D1 [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: D1 01 00 [09:12:25]MH_I2C_Read... [09:12:25]Read from MH i2c: D1 01 00 18 29 00 12 [09:12:25]Write to MH i2c: 01 00 00 19 29 42 [09:12:25]Write i2c OK [09:12:25]MH_I2C_Read... [09:12:25]OFD Sender: No OFD packet to send [09:12:26]*** Cut start [09:12:26]*** Partial cut [09:12:26]*** CUTSNS_PIN = 1 [09:12:26]*** CUTSNS_PIN = 0 [09:12:26]*** Brake cut motor [09:12:26]Read from MH i2c: 01 [09:12:26]MH_I2C_Read... [09:12:26]*** Stop cut motor [09:12:26]*** Cut end [09:12:26]Read from MH i2c: 01 07 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: 01 07 00 19 29 00 00 00 00 00 FF 0F 57 [09:12:26]process_action close_receipt done [09:12:26]requested_data is exist [09:12:26]produce_requested_data [09:12:26]requested_item fm.sn is exist - process it [09:12:26]wFMCommunicate request_size=4 [09:12:26]MH_SAM_APDU [09:12:26]CAPDU: 80 11 00 00 [09:12:26]Write to MH i2c: E2 08 00 1A 29 80 11 00 00 00 00 00 00 BD [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:26]Read from MH i2c: E2 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 17 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 17 00 1A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [09:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:26]wFMCommunicate OK [09:12:26]requested_item fd.num is exist - process it [09:12:26]SAM_PROTO_GetFieldsCounters [09:12:26]wFMCommunicate request_size=4 [09:12:26]MH_SAM_APDU [09:12:26]CAPDU: 80 13 00 00 [09:12:26]Write to MH i2c: E2 08 00 1B 29 80 13 00 00 00 00 00 00 C0 [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:27]Read from MH i2c: E2 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 62 00 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 62 00 1B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [09:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:27]wFMCommunicate OK [09:12:27]SAM_PROTO_GetFieldsCounters done [09:12:27]requested_item shift.num is exist - process it [09:12:27]requested_item shift.opened is exist - process it [09:12:27]req_shift_opened [09:12:27]FM_GetShiftState [09:12:27]SAM_PROTO_GetShiftState [09:12:27]wFMCommunicate request_size=4 [09:12:27]MH_SAM_APDU [09:12:27]CAPDU: 80 13 01 00 [09:12:27]Write to MH i2c: E2 08 00 1C 29 80 13 01 00 00 00 00 00 C2 [09:12:27]Write i2c OK [09:12:27]MH_I2C_Read... [09:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:27]Read from MH i2c: E2 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 0E 00 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 0E 00 1C 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 42 [09:12:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:12:27]wFMCommunicate OK [09:12:27]SAM_PROTO_GetShiftState done [09:12:27]FM_GetShiftState done [09:12:27]req_shift_opened done [09:12:27]requested_item shift.open_date is exist - process it [09:12:27]req_shift_open_date [09:12:27]req_shift_open_date done [09:12:27]produce_requested_data done [09:12:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140043,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:12:27]process_action_free close_receipt [09:12:27]json_value_free [09:12:27]json_value_free done [09:12:27]process_json_proto returns [09:12:27]Send response to host [09:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140043,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:12:27]free response buf [09:12:27]execute_script done [09:12:27]execute_script returns [09:12:27]free content buf [09:12:27]Sock 7.Close socket [09:12:27]Sock 7.Thread stoped [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:46]accept exits with 9 [09:12:46]New connection [09:12:46]New thread 3066908004 created [09:12:46]Thread 3066764644 joined [09:12:46]Waiting for new connection... [09:12:46] Sock 9.Parse request [09:12:46]Sock 9.Check first char [09:12:46]Sock 9.First char is OK [09:12:46]request: POST /json_proto HTTP/1.0 [09:12:46]Method: POST [09:12:46]URL: /json_proto [09:12:46]Method is POST - this is cgi request [09:12:46]url: /json_proto [09:12:46]query_string will be loaded in cgi processing [09:12:46]execute_cgi json_proto POST (null) [09:12:46]execute_cgi path=json_proto method=POST [09:12:46]POST find Content-Length [09:12:46]Host: 172.17.45.67:8080 [09:12:46]Content-Length: 687 [09:12:46]Content-Type: application/json [09:12:46] [09:12:46]POST finish read [09:12:46]Found Content-Length = 687 [09:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:12:46]execute_script... [09:12: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)593898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:12:46]POST & json_proto [09:12:46]process_json_proto [09:12:46]json parsed OK: [09:12:46]protocol is kg_v1.0 [09:12:46]action value=close_receipt [09:12:46]process_action close_receipt [09:12:46]cmd_close_receipt [09:12:46]MH_GetDate [09:12:46]Write to MH i2c: F0 00 00 1D 29 35 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: F0 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: F0 09 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: F0 09 00 1D 29 00 91 AF C5 66 5F 7F 2B 66 18 [09:12:46]GetLastDocTimeStamp 1724231545 [09:12:46]current date 1724231569 [09:12:46]FM_GetShiftState [09:12:46]SAM_PROTO_GetShiftState [09:12:46]wFMCommunicate request_size=4 [09:12:46]MH_SAM_APDU [09:12:46]CAPDU: 80 13 01 00 [09:12:46]Write to MH i2c: E2 08 00 1E 29 80 13 01 00 00 00 00 00 C4 [09:12:46]Write i2c OK [09:12:46]MH_I2C_Read... [09:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:46]Read from MH i2c: E2 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0E 00 [09:12:46]MH_I2C_Read... [09:12:46]Read from MH i2c: E2 0E 00 1E 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 44 [09:12:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:12:46]wFMCommunicate OK [09:12:46]SAM_PROTO_GetShiftState done [09:12:46]FM_GetShiftState done [09:12:46]opened in 1724200467 [09:12:46]opened+sec_in_day 1724286867 [09:12:46]quantity*price = 100050 [09:12:46]sum+1 = 100052 [09:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 61 21.08.2024 09:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140044 ФПД: 168416543942868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140044&fm=168416543942868&tin=02508201610067®Number=0000000000092569&sum=100000 [09:12:47]StoreToDocumentArchive [09:12:47]shift 454 fd 140044 [09:12:47]save to /storage/0454/doc_00140044 [09:12:47]save last doc name /storage/0454/doc_00140044 to /storage/kkm_last_doc_name [09:12:47]save OK [09:12:47]Clear old archive folders... [09:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:12:47]tlvbuf is 00AA3AE0 [09:12:47]SAM_PROTO_ClearQueue [09:12:47]wFMCommunicate request_size=4 [09:12:47]MH_SAM_APDU [09:12:47]CAPDU: 80 09 00 00 [09:12:47]Write to MH i2c: E2 08 00 2B 29 80 09 00 00 00 00 00 00 C6 [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:47]Read from MH i2c: E2 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: E2 03 00 [09:12:47]MH_I2C_Read... [09:12:47]Read from MH i2c: E2 03 00 2B 29 00 90 00 C8 [09:12:47]RAPDU: 90 00 [09:12:47]wFMCommunicate OK [09:12:47]SAM_PROTO_ClearQueue done [09:12:47]KKMCreateOFDPacket [09:12:47]OFDProtocolAddRootSTLVToBuf [09:12:47]FM_MakeSignedData [09:12:47]FM_MakeSignedData [09:12:47]SAM_PROTO_SignData [09:12:47]wFMCommunicate request_size=4 [09:12:47]MH_SAM_APDU [09:12:47]CAPDU: 80 0D 01 02 [09:12:47]Write to MH i2c: E2 08 00 2C 29 80 0D 01 02 00 00 00 00 CE [09:12:47]Write i2c OK [09:12:47]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 2C 29 00 90 00 C9 [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=255 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 3D 00 00 00 F4 03 04 00 91 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 23 02 00 35 04 06 00 [09:12:48]Write to MH i2c: E2 02 01 2D 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 3D 00 00 00 F4 03 04 00 91 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 23 02 00 35 04 06 00 00 00 E5 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=11 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 02 02 06 99 2C 88 46 A8 D4 [09:12:48]Write to MH i2c: E2 0E 00 2E 29 80 0D 02 02 06 00 99 2C 88 46 A8 D4 00 00 EC [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [09:12:48]RAPDU: 90 00 [09:12:48]wFMCommunicate OK [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 0D 03 02 [09:12:48]Write to MH i2c: E2 08 00 2F 29 80 0D 03 02 00 00 00 00 D3 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0B 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 0B 00 2F 29 00 B1 99 F8 E1 01 AC 14 26 90 00 DE [09:12:48]RAPDU: B1 99 F8 E1 01 AC 14 26 90 00 [09:12:48]wFMCommunicate OK [09:12:48]SAM_PROTO_SignData done [09:12:48]FM_MakeSignedData done [09:12:48]CreateOFDProtocolMessage [09:12:48]wFMCommunicate request_size=4 [09:12:48]MH_SAM_APDU [09:12:48]CAPDU: 80 11 00 00 [09:12:48]Write to MH i2c: E2 08 00 30 29 80 11 00 00 00 00 00 00 D3 [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:48]Read from MH i2c: E2 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 17 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: E2 17 00 30 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [09:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:48]wFMCommunicate OK [09:12:48]CreateOFDProtocolMessage done [09:12:48]OFDSenderStorePacket 140044 [09:12:48]StoreOFDPacket docnum=140044 [09:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 88 81 08 01 13 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 3D 00 00 00 F4 03 04 00 91 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 23 02 00 35 04 06 00 99 2C 88 46 A8 D4 B1 99 F8 E1 01 AC 14 26 [09:12:48]CheckFolder [09:12:48]dirname=/storage/ofd_packets [09:12:48]CheckFolder done [09:12:48]ProducePacketName [09:12:48]name=ofd_packets/00140044 [09:12:48]NVStorageSaveData ofd_packets/00140044 [09:12:48]File name is /storage/ofd_packets/00140044 [09:12:48]Write 302 bytes [09:12:48]NVStorageSaveData done [09:12:48]OFDSenderStorePacket done [09:12:48]KKMCreateOFDPacket done [09:12:48]NVStorageSaveData kkm_last_timestamp [09:12:48]File name is /storage/kkm_last_timestamp [09:12:48]Write 4 bytes [09:12:48]NVStorageSaveData done [09:12:48]ExternCall_PrintAddStr [09:12:48]wPrintStart [09:12:48]Write to MH i2c: 01 00 00 31 29 5A [09:12:48]Write i2c OK [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 07 00 [09:12:48]MH_I2C_Read... [09:12:48]Read from MH i2c: 01 07 00 31 29 00 00 00 00 00 FF 0F 6F [09:12:48]RasterBufferAndPrint [09:12:48]line Счет N : (1)593898 [09:12:48]line ИНН: 02508201610067 [09:12:48]line Контрольно-Кассовый Чек [09:12:48]line ПРОДАЖА [09:12:48]line ТРК (МРК, ГНК) : 54 [09:12:48]line Товар: 2710194210 [09:12:48]line ДТ(л)-К-5 [09:12:48]line 13.130 * 76.20 [09:12:48]line = 1000.51 [09:12:48]line НДС 12% НСП 1% [09:12:48]line > о реализуемом товаре [09:12:48]line ОКРУГЛЕНИЕ: -0.51 [09:12:48]line ИТОГО: 1000.00 [09:12:48]line Внесено: 1000.00 [09:12:48]line СДАЧА: 0.00 [09:12:48]line НСП 1% : 8.85 [09:12:48]line НДС 12% : 106.25 [09:12:48]line Наличными: 1000.00 [09:12:48]line Безнал.: 0.00 [09:12:48]line Место: АЗС № 136 "Партнер Нефть" [09:12:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:12:48]line СНО: Общий режим [09:12:48]line Чек 61 21.08.2024 09:12 [09:12:48]line Смена: 454 ФФД: 1.0 [09:12:48]line ЗНМ: 0300000067 [09:12:48]line РНМ: 0000000000092569 [09:12:48]line Версия ККМ: 001 [09:12:48]line ФМ: 0000000000871776 [09:12:48]line ФД: 140044 [09:12:48]line ФПД: 168416543942868 [09:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140044&fm=168416543942868&tin=02508201610067®Number=0000000000092569&sum=100000 [09:12:48]OFD Sender: Processing packet 140044 [packets to send 137, broken 136] [09:12:48]ProducePacketName [09:12:48]name=ofd_packets/00140044 [09:12:48]OFD Sender: To server: pG, [09:12:48]CommunicateWithHost lk.salyk.kg:30040 [09:12:48]ConnectInit lk.salyk.kg [09:12:48]written 0, free lines is 4095 [09:12:48]Connected sock=10 [09:12: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 37 36 10 01 00 00 88 81 08 01 13 41 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 3D 00 00 00 F4 03 04 00 91 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 23 02 00 35 04 06 00 99 2C 88 46 A8 D4 B1 99 F8 E1 01 AC 14 26 [09:12: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 37 36 4F 00 00 00 67 59 47 00 A2 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 23 02 00 F4 03 04 00 22 56 C5 66 B6 04 01 00 00 FF 2A D2 BE E4 C9 D9 1F [09:12:49]CommunicateWithHost err = 0 [09:12:49]CheckOFDResponse [09:12:49]1017 (14) - 77093643461234 [09:12:49]1041 (16) - 0000000000871776 [09:12:49]1040 (4) - 140044 [09:12:49]1012 (4) - 21.08.2024 02:51 [09:12:49]1206 (1) - 0 [09:12:49]OFD Sender: Remove packet 140044 [09:12:49]ProducePacketName [09:12:49]name=ofd_packets/00140044 [09:12:49]NVStorageDeleteData [09:12:49]Write to MH i2c: 01 00 00 5C 29 85 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 5C 29 00 00 00 00 00 D5 0C 6D [09:12:49]RasterBufferAndPrint [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]written 0, free lines is 3292 [09:12:49]MH_Cut [09:12:49]Write to MH i2c: D1 01 00 63 29 01 5E [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 63 29 00 5D [09:12:49]Write to MH i2c: 01 00 00 64 29 8D [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]OFD Sender: No OFD packet to send [09:12:50]*** Cut start [09:12:50]*** Partial cut [09:12:50]*** CUTSNS_PIN = 1 [09:12:50]*** CUTSNS_PIN = 0 [09:12:50]*** Brake cut motor [09:12:50]Read from MH i2c: 01 [09:12:50]MH_I2C_Read... [09:12:50]*** Stop cut motor [09:12:50]*** Cut end [09:12:50]Read from MH i2c: 01 07 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: 01 07 00 64 29 00 00 00 00 00 FF 0F A2 [09:12:50]process_action close_receipt done [09:12:50]requested_data is exist [09:12:50]produce_requested_data [09:12:50]requested_item fm.sn is exist - process it [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 11 00 00 [09:12:50]Write to MH i2c: E2 08 00 65 29 80 11 00 00 00 00 00 00 08 [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 17 00 65 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [09:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:12:50]wFMCommunicate OK [09:12:50]requested_item fd.num is exist - process it [09:12:50]SAM_PROTO_GetFieldsCounters [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 13 00 00 [09:12:50]Write to MH i2c: E2 08 00 66 29 80 13 00 00 00 00 00 00 0B [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 62 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 62 00 66 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_GetFieldsCounters done [09:12:50]requested_item shift.num is exist - process it [09:12:50]requested_item shift.opened is exist - process it [09:12:50]req_shift_opened [09:12:50]FM_GetShiftState [09:12:50]SAM_PROTO_GetShiftState [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 13 01 00 [09:12:50]Write to MH i2c: E2 08 00 67 29 80 13 01 00 00 00 00 00 0D [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0E 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0E 00 67 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8D [09:12:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_GetShiftState done [09:12:50]FM_GetShiftState done [09:12:50]req_shift_opened done [09:12:50]requested_item shift.open_date is exist - process it [09:12:50]req_shift_open_date [09:12:50]req_shift_open_date done [09:12:50]produce_requested_data done [09:12:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140044,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:12:50]process_action_free close_receipt [09:12:50]json_value_free [09:12:50]json_value_free done [09:12:50]process_json_proto returns [09:12:50]Send response to host [09:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140044,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:12:50]free response buf [09:12:50]execute_script done [09:12:50]execute_script returns [09:12:50]free content buf [09:12:50]Sock 9.Close socket [09:12:50]Sock 9.Thread stoped [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:13]accept exits with 7 [09:14:13]New connection [09:14:13]New thread 3066764644 created [09:14:13]Thread 3066908004 joined [09:14:13]Waiting for new connection... [09:14:13] Sock 7.Parse request [09:14:13]Sock 7.Check first char [09:14:13]Sock 7.First char is OK [09:14:13]request: POST /json_proto HTTP/1.0 [09:14:13]Method: POST [09:14:13]URL: /json_proto [09:14:13]Method is POST - this is cgi request [09:14:13]url: /json_proto [09:14:13]query_string will be loaded in cgi processing [09:14:13]execute_cgi json_proto POST (null) [09:14:13]execute_cgi path=json_proto method=POST [09:14:13]POST find Content-Length [09:14:13]Host: 172.17.45.67:8080 [09:14:13]Content-Length: 677 [09:14:13]Content-Type: application/json [09:14:13] [09:14:13]POST finish read [09:14:13]Found Content-Length = 677 [09:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:13]execute_script... [09:14: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)593899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:13]POST & json_proto [09:14:13]process_json_proto [09:14:13]json parsed OK: [09:14:13]protocol is kg_v1.0 [09:14:13]action value=close_receipt [09:14:13]process_action close_receipt [09:14:13]cmd_close_receipt [09:14:13]MH_GetDate [09:14:13]Write to MH i2c: F0 00 00 68 29 80 [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 09 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: F0 09 00 68 29 00 E8 AF C5 66 5F 7F 2B 66 BA [09:14:13]GetLastDocTimeStamp 1724231569 [09:14:13]current date 1724231656 [09:14:13]FM_GetShiftState [09:14:13]SAM_PROTO_GetShiftState [09:14:13]wFMCommunicate request_size=4 [09:14:13]MH_SAM_APDU [09:14:13]CAPDU: 80 13 01 00 [09:14:13]Write to MH i2c: E2 08 00 69 29 80 13 01 00 00 00 00 00 0F [09:14:13]Write i2c OK [09:14:13]MH_I2C_Read... [09:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:13]Read from MH i2c: E2 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 [09:14:13]MH_I2C_Read... [09:14:13]Read from MH i2c: E2 0E 00 69 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8F [09:14:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:14:13]wFMCommunicate OK [09:14:13]SAM_PROTO_GetShiftState done [09:14:13]FM_GetShiftState done [09:14:13]opened in 1724200467 [09:14:13]opened+sec_in_day 1724286867 [09:14:13]quantity*price = 50036 [09:14:13]sum+1 = 50037 [09:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 62 21.08.2024 09:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140045 ФПД: 36878471297735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140045&fm=36878471297735&tin=02508201610067®Number=0000000000092569&sum=50000 [09:14:14]StoreToDocumentArchive [09:14:14]shift 454 fd 140045 [09:14:14]save to /storage/0454/doc_00140045 [09:14:14]save last doc name /storage/0454/doc_00140045 to /storage/kkm_last_doc_name [09:14:14]save OK [09:14:14]Clear old archive folders... [09:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:14]tlvbuf is 00AA4380 [09:14:14]SAM_PROTO_ClearQueue [09:14:14]wFMCommunicate request_size=4 [09:14:14]MH_SAM_APDU [09:14:14]CAPDU: 80 09 00 00 [09:14:14]Write to MH i2c: E2 08 00 76 29 80 09 00 00 00 00 00 00 11 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [09:14:14]RAPDU: 90 00 [09:14:14]wFMCommunicate OK [09:14:14]SAM_PROTO_ClearQueue done [09:14:14]KKMCreateOFDPacket [09:14:14]OFDProtocolAddRootSTLVToBuf [09:14:14]FM_MakeSignedData [09:14:14]FM_MakeSignedData [09:14:14]SAM_PROTO_SignData [09:14:14]wFMCommunicate request_size=4 [09:14:14]MH_SAM_APDU [09:14:14]CAPDU: 80 0D 01 02 [09:14:14]Write to MH i2c: E2 08 00 77 29 80 0D 01 02 00 00 00 00 19 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [09:14:14]RAPDU: 90 00 [09:14:14]wFMCommunicate OK [09:14:14]wFMCommunicate request_size=255 [09:14:14]MH_SAM_APDU [09:14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E8 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 23 02 00 35 04 06 00 21 [09:14:14]Write to MH i2c: E2 02 01 78 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E8 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 23 02 00 35 04 06 00 21 00 00 BC [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [09:14:14]RAPDU: 90 00 [09:14:14]wFMCommunicate OK [09:14:14]wFMCommunicate request_size=10 [09:14:14]MH_SAM_APDU [09:14:14]CAPDU: 80 0D 02 02 05 8A 70 2E 7A C7 [09:14:14]Write to MH i2c: E2 0D 00 79 29 80 0D 02 02 05 00 8A 70 2E 7A C7 00 00 8F [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [09:14:14]RAPDU: 90 00 [09:14:14]wFMCommunicate OK [09:14:14]wFMCommunicate request_size=4 [09:14:14]MH_SAM_APDU [09:14:14]CAPDU: 80 0D 03 02 [09:14:14]Write to MH i2c: E2 08 00 7A 29 80 0D 03 02 00 00 00 00 1E [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]OFD Sender: No OFD packet to send [09:14:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 0B 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 0B 00 7A 29 00 01 36 2C C8 50 DA 0D B1 90 00 32 [09:14:14]RAPDU: 01 36 2C C8 50 DA 0D B1 90 00 [09:14:14]wFMCommunicate OK [09:14:14]SAM_PROTO_SignData done [09:14:14]FM_MakeSignedData done [09:14:14]CreateOFDProtocolMessage [09:14:14]wFMCommunicate request_size=4 [09:14:14]MH_SAM_APDU [09:14:14]CAPDU: 80 11 00 00 [09:14:14]Write to MH i2c: E2 08 00 7B 29 80 11 00 00 00 00 00 00 1E [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:14]Read from MH i2c: E2 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 17 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: E2 17 00 7B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [09:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:14:14]wFMCommunicate OK [09:14:14]CreateOFDProtocolMessage done [09:14:14]OFDSenderStorePacket 140045 [09:14:14]StoreOFDPacket docnum=140045 [09:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 0F 07 01 8B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E8 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 23 02 00 35 04 06 00 21 8A 70 2E 7A C7 01 36 2C C8 50 DA 0D B1 [09:14:14]CheckFolder [09:14:14]dirname=/storage/ofd_packets [09:14:14]CheckFolder done [09:14:14]ProducePacketName [09:14:14]name=ofd_packets/00140045 [09:14:14]NVStorageSaveData ofd_packets/00140045 [09:14:14]File name is /storage/ofd_packets/00140045 [09:14:14]Write 301 bytes [09:14:14]NVStorageSaveData done [09:14:14]OFDSenderStorePacket done [09:14:14]KKMCreateOFDPacket done [09:14:14]NVStorageSaveData kkm_last_timestamp [09:14:14]File name is /storage/kkm_last_timestamp [09:14:14]Write 4 bytes [09:14:14]NVStorageSaveData done [09:14:14]ExternCall_PrintAddStr [09:14:14]wPrintStart [09:14:14]Write to MH i2c: 01 00 00 7C 29 A5 [09:14:14]Write i2c OK [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 [09:14:14]MH_I2C_Read... [09:14:14]Read from MH i2c: 01 07 00 7C 29 00 00 00 00 00 FF 0F BA [09:14:14]RasterBufferAndPrint [09:14:14]line Счет N : (1)593899 [09:14:14]line ИНН: 02508201610067 [09:14:14]line Контрольно-Кассовый Чек [09:14:14]line ПРОДАЖА [09:14:14]line ТРК (МРК, ГНК) : 62 [09:14:14]line Товар: 2710124130 [09:14:14]line Аи-92-К-5 [09:14:14]line 7.380 * 67.80 [09:14:14]line = 500.36 [09:14:14]line НДС 12% НСП 1% [09:14:14]line > о реализуемом товаре [09:14:14]line ОКРУГЛЕНИЕ: -0.36 [09:14:14]line ИТОГО: 500.00 [09:14:14]line Внесено: 500.00 [09:14:14]line СДАЧА: 0.00 [09:14:14]line НСП 1% : 4.43 [09:14:14]line НДС 12% : 53.14 [09:14:14]line Наличными: 500.00 [09:14:14]line Безнал.: 0.00 [09:14:14]line Место: АЗС № 136 "Партнер Нефть" [09:14:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:14:14]line СНО: Общий режим [09:14:14]line Чек 62 21.08.2024 09:14 [09:14:14]line Смена: 454 ФФД: 1.0 [09:14:14]line ЗНМ: 0300000067 [09:14:14]line РНМ: 0000000000092569 [09:14:14]line Версия ККМ: 001 [09:14:14]line ФМ: 0000000000871776 [09:14:14]line ФД: 140045 [09:14:14]line ФПД: 36878471297735 [09:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140045&fm=36878471297735&tin=02508201610067®Number=0000000000092569&sum=50000 [09:14:15]OFD Sender: Processing packet 140045 [packets to send 137, broken 136] [09:14:15]ProducePacketName [09:14:15]name=ofd_packets/00140045 [09:14:15]OFD Sender: To server: pG, [09:14:15]CommunicateWithHost lk.salyk.kg:30040 [09:14:15]ConnectInit lk.salyk.kg [09:14:15]written 0, free lines is 4095 [09:14:15]Connected sock=10 [09:14: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 37 36 0F 01 00 00 2F 0F 07 01 8B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E8 AF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 23 02 00 35 04 06 00 21 8A 70 2E 7A C7 01 36 2C C8 50 DA 0D B1 [09:14: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 37 36 4F 00 00 00 5E DD 47 00 8B F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 23 02 00 F4 03 04 00 79 56 C5 66 B6 04 01 00 00 E9 92 72 12 35 1D 72 17 [09:14:15]CommunicateWithHost err = 0 [09:14:15]CheckOFDResponse [09:14:15]1017 (14) - 77093643461234 [09:14:15]1041 (16) - 0000000000871776 [09:14:15]1040 (4) - 140045 [09:14:15]1012 (4) - 21.08.2024 02:52 [09:14:15]1206 (1) - 0 [09:14:15]OFD Sender: Remove packet 140045 [09:14:15]ProducePacketName [09:14:15]name=ofd_packets/00140045 [09:14:15]NVStorageDeleteData [09:14:15]Write to MH i2c: 01 00 00 A7 29 D0 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 07 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: 01 07 00 A7 29 00 00 00 00 00 C3 0C A6 [09:14:15]RasterBufferAndPrint [09:14:15]line [09:14:15]line [09:14:15]line [09:14:15]line [09:14:15]line [09:14:15]written 0, free lines is 3273 [09:14:15]MH_Cut [09:14:15]Write to MH i2c: D1 01 00 AE 29 01 A9 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: D1 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: D1 01 00 [09:14:15]MH_I2C_Read... [09:14:15]Read from MH i2c: D1 01 00 AE 29 00 A8 [09:14:15]Write to MH i2c: 01 00 00 AF 29 D8 [09:14:15]Write i2c OK [09:14:15]MH_I2C_Read... [09:14:16]OFD Sender: No OFD packet to send [09:14:16]*** Cut start [09:14:16]*** Partial cut [09:14:16]*** CUTSNS_PIN = 1 [09:14:16]*** CUTSNS_PIN = 0 [09:14:16]*** Brake cut motor [09:14:17]Read from MH i2c: 01 [09:14:17]MH_I2C_Read... [09:14:17]*** Stop cut motor [09:14:17]*** Cut end [09:14:17]Read from MH i2c: 01 07 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: 01 07 00 AF 29 00 00 00 00 00 FF 0F ED [09:14:17]process_action close_receipt done [09:14:17]requested_data is exist [09:14:17]produce_requested_data [09:14:17]requested_item fm.sn is exist - process it [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 11 00 00 [09:14:17]Write to MH i2c: E2 08 00 B0 29 80 11 00 00 00 00 00 00 53 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 B0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [09:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:14:17]wFMCommunicate OK [09:14:17]requested_item fd.num is exist - process it [09:14:17]SAM_PROTO_GetFieldsCounters [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 13 00 00 [09:14:17]Write to MH i2c: E2 08 00 B1 29 80 13 00 00 00 00 00 00 56 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 62 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 62 00 B1 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:17]wFMCommunicate OK [09:14:17]SAM_PROTO_GetFieldsCounters done [09:14:17]requested_item shift.num is exist - process it [09:14:17]requested_item shift.opened is exist - process it [09:14:17]req_shift_opened [09:14:17]FM_GetShiftState [09:14:17]SAM_PROTO_GetShiftState [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 13 01 00 [09:14:17]Write to MH i2c: E2 08 00 B2 29 80 13 01 00 00 00 00 00 58 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 0E 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 0E 00 B2 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D8 [09:14:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:14:17]wFMCommunicate OK [09:14:17]SAM_PROTO_GetShiftState done [09:14:17]FM_GetShiftState done [09:14:17]req_shift_opened done [09:14:17]requested_item shift.open_date is exist - process it [09:14:17]req_shift_open_date [09:14:17]req_shift_open_date done [09:14:17]produce_requested_data done [09:14:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140045,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:14:17]process_action_free close_receipt [09:14:17]json_value_free [09:14:17]json_value_free done [09:14:17]process_json_proto returns [09:14:17]Send response to host [09:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140045,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:14:17]free response buf [09:14:17]execute_script done [09:14:17]execute_script returns [09:14:17]free content buf [09:14:17]Sock 7.Close socket [09:14:17]Sock 7.Thread stoped [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:25]int [09:15:25]Write to MH i2c: 01 00 00 B3 29 DC [09:15:25]*** FLAG_PRN_KEY set [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 B3 29 00 08 00 00 00 FF 0F F9 [09:15:25]state=0 [09:15:25]Key pressed [09:15:25]Feed [09:15:25]Write to MH i2c: D8 00 00 B4 29 B4 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: D8 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: D8 01 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: D8 01 00 B4 29 00 B5 [09:15:25]int [09:15:25]Write to MH i2c: 01 00 00 B5 29 DE [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 B5 29 00 48 00 00 00 3C 00 69 [09:15:25]state=2 [09:15:25]Key pressed [09:15:25]int [09:15:25]Write to MH i2c: 01 00 00 B6 29 DF [09:15:25]*** FLAG_PRN_KEY reset [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 B6 29 00 00 00 00 00 F6 0F EB [09:15:25]state=2 [09:15:25]Stop feed [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:35]accept exits with 9 [09:16:35]New connection [09:16:35]New thread 3066908004 created [09:16:35]Thread 3066764644 joined [09:16:35]Waiting for new connection... [09:16:35] Sock 9.Parse request [09:16:35]Sock 9.Check first char [09:16:35]Sock 9.First char is OK [09:16:35]request: POST /json_proto HTTP/1.0 [09:16:35]Method: POST [09:16:35]URL: /json_proto [09:16:35]Method is POST - this is cgi request [09:16:35]url: /json_proto [09:16:35]query_string will be loaded in cgi processing [09:16:35]execute_cgi json_proto POST (null) [09:16:35]execute_cgi path=json_proto method=POST [09:16:35]POST find Content-Length [09:16:35]Host: 172.17.45.67:8080 [09:16:35]Content-Length: 797 [09:16:35]Content-Type: application/json [09:16:35] [09:16:35]POST finish read [09:16:35]Found Content-Length = 797 [09:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:35]execute_script... [09:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:35]POST & json_proto [09:16:35]process_json_proto [09:16:35]json parsed OK: [09:16:35]protocol is kg_v1.0 [09:16:35]action value=close_receipt [09:16:35]process_action close_receipt [09:16:35]cmd_close_receipt [09:16:35]MH_GetDate [09:16:35]Write to MH i2c: F0 00 00 B7 29 CF [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 09 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: F0 09 00 B7 29 00 76 B0 C5 66 5F 7F 2B 66 98 [09:16:35]GetLastDocTimeStamp 1724231656 [09:16:35]current date 1724231798 [09:16:35]FM_GetShiftState [09:16:35]SAM_PROTO_GetShiftState [09:16:35]wFMCommunicate request_size=4 [09:16:35]MH_SAM_APDU [09:16:35]CAPDU: 80 13 01 00 [09:16:35]Write to MH i2c: E2 08 00 B8 29 80 13 01 00 00 00 00 00 5E [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:35]Read from MH i2c: E2 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 0E 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 0E 00 B8 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DE [09:16:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:16:35]wFMCommunicate OK [09:16:35]SAM_PROTO_GetShiftState done [09:16:35]FM_GetShiftState done [09:16:35]opened in 1724200467 [09:16:35]opened+sec_in_day 1724286867 [09:16:35]quantity*price = 0 [09:16:35]sum+1 = 1 [09:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 63 21.08.2024 09:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140046 ФПД: 70967033400045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140046&fm=70967033400045&tin=02508201610067®Number=0000000000092569&sum=0 [09:16:36]StoreToDocumentArchive [09:16:36]shift 454 fd 140046 [09:16:36]save to /storage/0454/doc_00140046 [09:16:36]save last doc name /storage/0454/doc_00140046 to /storage/kkm_last_doc_name [09:16:36]save OK [09:16:36]Clear old archive folders... [09:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:16:36]tlvbuf is 00A1B050 [09:16:36]SAM_PROTO_ClearQueue [09:16:36]wFMCommunicate request_size=4 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 09 00 00 [09:16:36]Write to MH i2c: E2 08 00 C5 29 80 09 00 00 00 00 00 00 60 [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:36]OFD Sender: No OFD packet to send [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [09:16:36]RAPDU: 90 00 [09:16:36]wFMCommunicate OK [09:16:36]SAM_PROTO_ClearQueue done [09:16:36]KKMCreateOFDPacket [09:16:36]OFDProtocolAddRootSTLVToBuf [09:16:36]FM_MakeSignedData [09:16:36]FM_MakeSignedData [09:16:36]SAM_PROTO_SignData [09:16:36]wFMCommunicate request_size=4 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 0D 01 02 [09:16:36]Write to MH i2c: E2 08 00 C6 29 80 0D 01 02 00 00 00 00 68 [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [09:16:36]RAPDU: 90 00 [09:16:36]wFMCommunicate OK [09:16:36]wFMCommunicate request_size=255 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 23 02 00 35 04 06 00 [09:16:36]Write to MH i2c: E2 02 01 C7 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 23 02 00 35 04 06 00 00 00 0E [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [09:16:36]RAPDU: 90 00 [09:16:36]wFMCommunicate OK [09:16:36]wFMCommunicate request_size=11 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 0D 02 02 06 40 8B 4C D1 0A ED [09:16:36]Write to MH i2c: E2 0E 00 C8 29 80 0D 02 02 06 00 40 8B 4C D1 0A ED 00 00 56 [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [09:16:36]RAPDU: 90 00 [09:16:36]wFMCommunicate OK [09:16:36]wFMCommunicate request_size=4 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 0D 03 02 [09:16:36]Write to MH i2c: E2 08 00 C9 29 80 0D 03 02 00 00 00 00 6D [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 0B 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 0B 00 C9 29 00 11 51 57 1F 95 E9 B2 6D 90 00 E3 [09:16:36]RAPDU: 11 51 57 1F 95 E9 B2 6D 90 00 [09:16:36]wFMCommunicate OK [09:16:36]SAM_PROTO_SignData done [09:16:36]FM_MakeSignedData done [09:16:36]CreateOFDProtocolMessage [09:16:36]wFMCommunicate request_size=4 [09:16:36]MH_SAM_APDU [09:16:36]CAPDU: 80 11 00 00 [09:16:36]Write to MH i2c: E2 08 00 CA 29 80 11 00 00 00 00 00 00 6D [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 17 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: E2 17 00 CA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [09:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:36]wFMCommunicate OK [09:16:36]CreateOFDProtocolMessage done [09:16:36]OFDSenderStorePacket 140046 [09:16:36]StoreOFDPacket docnum=140046 [09:16:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 2B 9C 08 01 4A 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 23 02 00 35 04 06 00 40 8B 4C D1 0A ED 11 51 57 1F 95 E9 B2 6D [09:16:36]CheckFolder [09:16:36]dirname=/storage/ofd_packets [09:16:36]CheckFolder done [09:16:36]ProducePacketName [09:16:36]name=ofd_packets/00140046 [09:16:36]NVStorageSaveData ofd_packets/00140046 [09:16:36]File name is /storage/ofd_packets/00140046 [09:16:36]Write 302 bytes [09:16:36]NVStorageSaveData done [09:16:36]OFDSenderStorePacket done [09:16:36]KKMCreateOFDPacket done [09:16:36]NVStorageSaveData kkm_last_timestamp [09:16:36]File name is /storage/kkm_last_timestamp [09:16:36]Write 4 bytes [09:16:36]NVStorageSaveData done [09:16:36]ExternCall_PrintAddStr [09:16:36]wPrintStart [09:16:36]Write to MH i2c: 01 00 00 CB 29 F4 [09:16:36]Write i2c OK [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 [09:16:36]MH_I2C_Read... [09:16:36]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 FF 0F 09 [09:16:36]RasterBufferAndPrint [09:16:36]line Счет N : (1)593900 [09:16:36]line ИНН: 02508201610067 [09:16:36]line Контрольно-Кассовый Чек [09:16:36]line ПРОДАЖА [09:16:36]line ТРК (МРК, ГНК) : 21 [09:16:36]line Товар: 2710194210 [09:16:36]line ДТ(л)-К-5 [09:16:36]line 28.000 * 0.00 [09:16:36]line = 0.00 [09:16:36]line НДС 12% НСП 1% [09:16:36]line > о реализуемом товаре [09:16:36]line ИТОГО: 0.00 [09:16:36]line НСП 1% : 0.00 [09:16:36]line НДС 12% : 0.00 [09:16:36]line Наличными: 0.00 [09:16:36]line Безнал.: 0.00 [09:16:36]line Место: АЗС № 136 "Партнер Нефть" [09:16:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:16:36]line СНО: Общий режим [09:16:36]line Чек 63 21.08.2024 09:16 [09:16:36]line Смена: 454 ФФД: 1.0 [09:16:36]line ЗНМ: 0300000067 [09:16:36]line РНМ: 0000000000092569 [09:16:36]line Версия ККМ: 001 [09:16:36]line Талоны: Топливная Карта [09:16:36]line 99761 [09:16:36]line ФМ: 0000000000871776 [09:16:37]line ФД: 140046 [09:16:37]line ФПД: 70967033400045 [09:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140046&fm=70967033400045&tin=02508201610067®Number=0000000000092569&sum=0 [09:16:37]OFD Sender: Processing packet 140046 [packets to send 137, broken 136] [09:16:37]ProducePacketName [09:16:37]name=ofd_packets/00140046 [09:16:37]OFD Sender: To server: pG, [09:16:37]CommunicateWithHost lk.salyk.kg:30040 [09:16:37]ConnectInit lk.salyk.kg [09:16:37]written 0, free lines is 4095 [09:16:37]Connected sock=10 [09:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 2B 9C 08 01 4A 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 76 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 23 02 00 35 04 06 00 40 8B 4C D1 0A ED 11 51 57 1F 95 E9 B2 6D [09:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 26 65 47 00 A2 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 37 36 10 04 04 00 0E 23 02 00 F4 03 04 00 07 57 C5 66 B6 04 01 00 00 13 6F D2 EA 43 D3 C6 5A [09:16:37]CommunicateWithHost err = 0 [09:16:37]CheckOFDResponse [09:16:37]1017 (14) - 77093643461234 [09:16:37]1041 (16) - 0000000000871776 [09:16:37]1040 (4) - 140046 [09:16:37]1012 (4) - 21.08.2024 02:55 [09:16:37]1206 (1) - 0 [09:16:37]OFD Sender: Remove packet 140046 [09:16:37]ProducePacketName [09:16:37]name=ofd_packets/00140046 [09:16:37]NVStorageDeleteData [09:16:37]Write to MH i2c: 01 00 00 F5 29 1E [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 F5 29 00 00 00 00 00 DD 0C 0E [09:16:37]RasterBufferAndPrint [09:16:37]line [09:16:37]line [09:16:37]line [09:16:37]line [09:16:37]line [09:16:37]written 0, free lines is 3296 [09:16:37]MH_Cut [09:16:37]Write to MH i2c: D1 01 00 FC 29 01 F7 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: D1 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: D1 01 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: D1 01 00 FC 29 00 F6 [09:16:37]Write to MH i2c: 01 00 00 FD 29 26 [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:38]OFD Sender: No OFD packet to send [09:16:38]*** Cut start [09:16:38]*** Partial cut [09:16:38]*** CUTSNS_PIN = 1 [09:16:38]*** CUTSNS_PIN = 0 [09:16:38]*** Brake cut motor [09:16:38]Read from MH i2c: 01 [09:16:38]MH_I2C_Read... [09:16:38]*** Stop cut motor [09:16:38]*** Cut end [09:16:38]Read from MH i2c: 01 07 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 07 00 FD 29 00 00 00 00 00 FF 0F 3B [09:16:38]process_action close_receipt done [09:16:38]requested_data is exist [09:16:38]produce_requested_data [09:16:38]requested_item fm.sn is exist - process it [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 11 00 00 [09:16:38]Write to MH i2c: E2 08 00 FE 29 80 11 00 00 00 00 00 00 A1 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:38]Read from MH i2c: E2 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 17 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: E2 17 00 FE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F8 [09:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:38]wFMCommunicate OK [09:16:38]requested_item fd.num is exist - process it [09:16:38]SAM_PROTO_GetFieldsCounters [09:16:38]wFMCommunicate request_size=4 [09:16:38]MH_SAM_APDU [09:16:38]CAPDU: 80 13 00 00 [09:16:38]Write to MH i2c: E2 08 00 FF 29 80 13 00 00 00 00 00 00 A4 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 62 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 62 00 FF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_GetFieldsCounters done [09:16:39]requested_item shift.num is exist - process it [09:16:39]requested_item shift.opened is exist - process it [09:16:39]req_shift_opened [09:16:39]FM_GetShiftState [09:16:39]SAM_PROTO_GetShiftState [09:16:39]wFMCommunicate request_size=4 [09:16:39]MH_SAM_APDU [09:16:39]CAPDU: 80 13 01 00 [09:16:39]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [09:16:39]Write i2c OK [09:16:39]MH_I2C_Read... [09:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:39]Read from MH i2c: E2 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 [09:16:39]MH_I2C_Read... [09:16:39]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [09:16:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:16:39]wFMCommunicate OK [09:16:39]SAM_PROTO_GetShiftState done [09:16:39]FM_GetShiftState done [09:16:39]req_shift_opened done [09:16:39]requested_item shift.open_date is exist - process it [09:16:39]req_shift_open_date [09:16:39]req_shift_open_date done [09:16:39]produce_requested_data done [09:16:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140046,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:16:39]process_action_free close_receipt [09:16:39]json_value_free [09:16:39]json_value_free done [09:16:39]process_json_proto returns [09:16:39]Send response to host [09:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140046,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:16:39]free response buf [09:16:39]execute_script done [09:16:39]execute_script returns [09:16:39]free content buf [09:16:39]Sock 9.Close socket [09:16:39]Sock 9.Thread stoped [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]accept exits with 7 [09:16:53]New connection [09:16:53]New thread 3066764644 created [09:16:53]Thread 3066908004 joined [09:16:53]Waiting for new connection... [09:16:53] Sock 7.Parse request [09:16:53]Sock 7.Check first char [09:16:53]Sock 7.First char is OK [09:16:53]request: POST /json_proto HTTP/1.0 [09:16:53]Method: POST [09:16:53]URL: /json_proto [09:16:53]Method is POST - this is cgi request [09:16:53]url: /json_proto [09:16:53]query_string will be loaded in cgi processing [09:16:53]execute_cgi json_proto POST (null) [09:16:53]execute_cgi path=json_proto method=POST [09:16:53]POST find Content-Length [09:16:53]Host: 172.17.45.67:8080 [09:16:53]Content-Length: 677 [09:16:53]Content-Type: application/json [09:16:53] [09:16:53]POST finish read [09:16:53]Found Content-Length = 677 [09:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]execute_script... [09:16:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]POST & json_proto [09:16:53]process_json_proto [09:16:53]json parsed OK: [09:16:53]protocol is kg_v1.0 [09:16:53]action value=close_receipt [09:16:53]process_action close_receipt [09:16:53]cmd_close_receipt [09:16:53]MH_GetDate [09:16:53]Write to MH i2c: F0 00 00 01 2A 1A [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 01 2A 00 87 B0 C5 66 5F 7F 2B 66 F4 [09:16:53]GetLastDocTimeStamp 1724231798 [09:16:53]current date 1724231815 [09:16:53]FM_GetShiftState [09:16:53]SAM_PROTO_GetShiftState [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 13 01 00 [09:16:53]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [09:16:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]opened in 1724200467 [09:16:53]opened+sec_in_day 1724286867 [09:16:53]quantity*price = 45019 [09:16:53]sum+1 = 45020 [09:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 64 21.08.2024 09:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140047 ФПД: 14329924916479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091656&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140047&fm=14329924916479&tin=02508201610067®Number=0000000000092569&sum=45000 [09:16:54]StoreToDocumentArchive [09:16:54]shift 454 fd 140047 [09:16:54]save to /storage/0454/doc_00140047 [09:16:54]save last doc name /storage/0454/doc_00140047 to /storage/kkm_last_doc_name [09:16:54]save OK [09:16:54]Clear old archive folders... [09:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:54]tlvbuf is 00A07390 [09:16:54]SAM_PROTO_ClearQueue [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 09 00 00 [09:16:54]Write to MH i2c: E2 08 00 0F 2A 80 09 00 00 00 00 00 00 AB [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_ClearQueue done [09:16:54]KKMCreateOFDPacket [09:16:54]OFDProtocolAddRootSTLVToBuf [09:16:54]FM_MakeSignedData [09:16:54]FM_MakeSignedData [09:16:54]SAM_PROTO_SignData [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 01 02 [09:16:54]Write to MH i2c: E2 08 00 10 2A 80 0D 01 02 00 00 00 00 B3 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=255 [09:16:54]MH_SAM_APDU [09:16: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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 88 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 23 02 00 35 04 06 00 0D [09:16:54]Write to MH i2c: E2 02 01 11 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 88 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 23 02 00 35 04 06 00 0D 00 00 D7 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=10 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 05 08 72 15 94 FF [09:16:54]Write to MH i2c: E2 0D 00 12 2A 80 0D 02 02 05 00 08 72 15 94 FF 00 00 E2 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 03 02 [09:16:54]Write to MH i2c: E2 08 00 13 2A 80 0D 03 02 00 00 00 00 B8 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 13 2A 00 A8 F9 1D 86 E2 3A A6 BE 90 00 7D [09:16:54]RAPDU: A8 F9 1D 86 E2 3A A6 BE 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_SignData done [09:16:54]FM_MakeSignedData done [09:16:54]CreateOFDProtocolMessage [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 11 00 00 [09:16:54]Write to MH i2c: E2 08 00 14 2A 80 11 00 00 00 00 00 00 B8 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 14 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [09:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:54]wFMCommunicate OK [09:16:54]CreateOFDProtocolMessage done [09:16:54]OFDSenderStorePacket 140047 [09:16:54]StoreOFDPacket docnum=140047 [09:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 4D 07 01 FE 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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 88 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 23 02 00 35 04 06 00 0D 08 72 15 94 FF A8 F9 1D 86 E2 3A A6 BE [09:16:54]CheckFolder [09:16:54]dirname=/storage/ofd_packets [09:16:54]CheckFolder done [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00140047 [09:16:54]NVStorageSaveData ofd_packets/00140047 [09:16:54]File name is /storage/ofd_packets/00140047 [09:16:54]Write 301 bytes [09:16:54]NVStorageSaveData done [09:16:54]OFDSenderStorePacket done [09:16:54]KKMCreateOFDPacket done [09:16:54]NVStorageSaveData kkm_last_timestamp [09:16:54]File name is /storage/kkm_last_timestamp [09:16:54]Write 4 bytes [09:16:54]NVStorageSaveData done [09:16:54]ExternCall_PrintAddStr [09:16:54]wPrintStart [09:16:54]Write to MH i2c: 01 00 00 15 2A 3F [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 15 2A 00 00 00 00 00 FF 0F 54 [09:16:54]RasterBufferAndPrint [09:16:54]line Счет N : (1)593901 [09:16:54]line ИНН: 02508201610067 [09:16:54]line Контрольно-Кассовый Чек [09:16:54]line ПРОДАЖА [09:16:54]line ТРК (МРК, ГНК) : 52 [09:16:54]line Товар: 2710124130 [09:16:54]line Аи-92-К-5 [09:16:54]line 6.640 * 67.80 [09:16:54]line = 450.19 [09:16:54]line НДС 12% НСП 1% [09:16:54]line > о реализуемом товаре [09:16:54]line ОКРУГЛЕНИЕ: -0.19 [09:16:54]line ИТОГО: 450.00 [09:16:54]line Внесено: 450.00 [09:16:54]line СДАЧА: 0.00 [09:16:54]line НСП 1% : 3.98 [09:16:54]line НДС 12% : 47.81 [09:16:54]line Наличными: 450.00 [09:16:54]line Безнал.: 0.00 [09:16:54]line Место: АЗС № 136 "Партнер Нефть" [09:16:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:16:54]line СНО: Общий режим [09:16:54]line Чек 64 21.08.2024 09:16 [09:16:54]line Смена: 454 ФФД: 1.0 [09:16:54]line ЗНМ: 0300000067 [09:16:54]line РНМ: 0000000000092569 [09:16:54]line Версия ККМ: 001 [09:16:54]line ФМ: 0000000000871776 [09:16:54]line ФД: 140047 [09:16:54]line ФПД: 14329924916479 [09:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091656&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140047&fm=14329924916479&tin=02508201610067®Number=0000000000092569&sum=45000 [09:16:55]written 0, free lines is 4095 [09:16:55]OFD Sender: Processing packet 140047 [packets to send 137, broken 136] [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00140047 [09:16:55]OFD Sender: To server: pG, [09:16:55]CommunicateWithHost lk.salyk.kg:30040 [09:16:55]ConnectInit lk.salyk.kg [09:16:55]Connected sock=10 [09:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 4D 07 01 FE 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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 88 B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 23 02 00 35 04 06 00 0D 08 72 15 94 FF A8 F9 1D 86 E2 3A A6 BE [09:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 35 67 47 00 56 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 37 36 10 04 04 00 0F 23 02 00 F4 03 04 00 19 57 C5 66 B6 04 01 00 00 EF 06 CA BF 3B 4E BF B9 [09:16:55]CommunicateWithHost err = 0 [09:16:55]CheckOFDResponse [09:16:55]1017 (14) - 77093643461234 [09:16:55]1041 (16) - 0000000000871776 [09:16:55]1040 (4) - 140047 [09:16:55]1012 (4) - 21.08.2024 02:55 [09:16:55]1206 (1) - 0 [09:16:55]OFD Sender: Remove packet 140047 [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00140047 [09:16:55]NVStorageDeleteData [09:16:55]Write to MH i2c: 01 00 00 40 2A 6A [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 CF 0C 4C [09:16:55]RasterBufferAndPrint [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]written 0, free lines is 3286 [09:16:55]MH_Cut [09:16:55]Write to MH i2c: D1 01 00 47 2A 01 43 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 47 2A 00 42 [09:16:55]Write to MH i2c: 01 00 00 48 2A 72 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:56]OFD Sender: No OFD packet to send [09:16:56]*** Cut start [09:16:56]*** Partial cut [09:16:56]*** CUTSNS_PIN = 1 [09:16:56]*** CUTSNS_PIN = 0 [09:16:56]*** Brake cut motor [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]*** Stop cut motor [09:16:56]*** Cut end [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 48 2A 00 00 00 00 00 FF 0F 87 [09:16:56]process_action close_receipt done [09:16:56]requested_data is exist [09:16:56]produce_requested_data [09:16:56]requested_item fm.sn is exist - process it [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 11 00 00 [09:16:56]Write to MH i2c: E2 08 00 49 2A 80 11 00 00 00 00 00 00 ED [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:56]Read from MH i2c: E2 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: E2 17 00 49 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [09:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:16:56]wFMCommunicate OK [09:16:56]requested_item fd.num is exist - process it [09:16:56]SAM_PROTO_GetFieldsCounters [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:56]CAPDU: 80 13 00 00 [09:16:56]Write to MH i2c: E2 08 00 4A 2A 80 13 00 00 00 00 00 00 F0 [09:16:56]Write i2c OK [09:16:56]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 4A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetFieldsCounters done [09:16:57]requested_item shift.num is exist - process it [09:16:57]requested_item shift.opened is exist - process it [09:16:57]req_shift_opened [09:16:57]FM_GetShiftState [09:16:57]SAM_PROTO_GetShiftState [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 01 00 [09:16:57]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [09:16:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetShiftState done [09:16:57]FM_GetShiftState done [09:16:57]req_shift_opened done [09:16:57]requested_item shift.open_date is exist - process it [09:16:57]req_shift_open_date [09:16:57]req_shift_open_date done [09:16:57]produce_requested_data done [09:16:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140047,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:16:57]process_action_free close_receipt [09:16:57]json_value_free [09:16:57]json_value_free done [09:16:57]process_json_proto returns [09:16:57]Send response to host [09:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140047,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:16:57]free response buf [09:16:57]execute_script done [09:16:57]execute_script returns [09:16:57]free content buf [09:16:57]Sock 7.Close socket [09:16:57]Sock 7.Thread stoped [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:46]accept exits with 9 [09:17:46]New connection [09:17:46]New thread 3066908004 created [09:17:46]Thread 3066764644 joined [09:17:46]Waiting for new connection... [09:17:46] Sock 9.Parse request [09:17:46]Sock 9.Check first char [09:17:46]Sock 9.First char is OK [09:17:46]request: POST /json_proto HTTP/1.0 [09:17:46]Method: POST [09:17:46]URL: /json_proto [09:17:46]Method is POST - this is cgi request [09:17:46]url: /json_proto [09:17:46]query_string will be loaded in cgi processing [09:17:46]execute_cgi json_proto POST (null) [09:17:46]execute_cgi path=json_proto method=POST [09:17:46]POST find Content-Length [09:17:46]Host: 172.17.45.67:8080 [09:17:46]Content-Length: 682 [09:17:46]Content-Type: application/json [09:17:46] [09:17:46]POST finish read [09:17:46]Found Content-Length = 682 [09:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:17:46]execute_script... [09:17: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)593902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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:17:46]POST & json_proto [09:17:46]process_json_proto [09:17:46]json parsed OK: [09:17:46]protocol is kg_v1.0 [09:17:46]action value=close_receipt [09:17:46]process_action close_receipt [09:17:46]cmd_close_receipt [09:17:46]MH_GetDate [09:17:46]Write to MH i2c: F0 00 00 4C 2A 65 [09:17:46]Write i2c OK [09:17:46]MH_I2C_Read... [09:17:46]Read from MH i2c: F0 [09:17:46]MH_I2C_Read... [09:17:46]Read from MH i2c: F0 09 00 [09:17:46]MH_I2C_Read... [09:17:46]Read from MH i2c: F0 09 00 4C 2A 00 BD B0 C5 66 5F 7F 2B 66 75 [09:17:46]GetLastDocTimeStamp 1724231816 [09:17:46]current date 1724231869 [09:17:46]FM_GetShiftState [09:17:46]SAM_PROTO_GetShiftState [09:17:46]wFMCommunicate request_size=4 [09:17:46]MH_SAM_APDU [09:17:46]CAPDU: 80 13 01 00 [09:17:46]Write to MH i2c: E2 08 00 4D 2A 80 13 01 00 00 00 00 00 F4 [09:17:46]Write i2c OK [09:17:46]MH_I2C_Read... [09:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:46]Read from MH i2c: E2 [09:17:46]MH_I2C_Read... [09:17:46]Read from MH i2c: E2 0E 00 [09:17:46]MH_I2C_Read... [09:17:46]Read from MH i2c: E2 0E 00 4D 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [09:17:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:17:46]wFMCommunicate OK [09:17:46]SAM_PROTO_GetShiftState done [09:17:46]FM_GetShiftState done [09:17:46]opened in 1724200467 [09:17:46]opened+sec_in_day 1724286867 [09:17:46]quantity*price = 150041 [09:17:46]sum+1 = 150042 [09:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 65 21.08.2024 09:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140048 ФПД: 122497312436929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140048&fm=122497312436929&tin=02508201610067®Number=0000000000092569&sum=150000 [09:17:47]StoreToDocumentArchive [09:17:47]shift 454 fd 140048 [09:17:47]save to /storage/0454/doc_00140048 [09:17:47]save last doc name /storage/0454/doc_00140048 to /storage/kkm_last_doc_name [09:17:47]save OK [09:17:47]Clear old archive folders... [09:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:47]tlvbuf is B6D9D590 [09:17:47]SAM_PROTO_ClearQueue [09:17:47]wFMCommunicate request_size=4 [09:17:47]MH_SAM_APDU [09:17:47]CAPDU: 80 09 00 00 [09:17:47]Write to MH i2c: E2 08 00 5A 2A 80 09 00 00 00 00 00 00 F6 [09:17:47]Write i2c OK [09:17:47]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]SAM_PROTO_ClearQueue done [09:17:48]KKMCreateOFDPacket [09:17:48]OFDProtocolAddRootSTLVToBuf [09:17:48]FM_MakeSignedData [09:17:48]FM_MakeSignedData [09:17:48]SAM_PROTO_SignData [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 01 02 [09:17:48]Write to MH i2c: E2 08 00 5B 2A 80 0D 01 02 00 00 00 00 FE [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=255 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 BD B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 23 02 00 35 04 06 00 6F [09:17:48]Write to MH i2c: E2 02 01 5C 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 BD B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 23 02 00 35 04 06 00 6F 00 00 40 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=10 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 02 02 05 69 20 CB 32 C1 [09:17:48]Write to MH i2c: E2 0D 00 5D 2A 80 0D 02 02 05 00 69 20 CB 32 C1 00 00 52 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 03 02 [09:17:48]Write to MH i2c: E2 08 00 5E 2A 80 0D 03 02 00 00 00 00 03 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0B 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0B 00 5E 2A 00 43 64 23 81 84 66 5E A5 90 00 3C [09:17:48]RAPDU: 43 64 23 81 84 66 5E A5 90 00 [09:17:48]wFMCommunicate OK [09:17:48]SAM_PROTO_SignData done [09:17:48]FM_MakeSignedData done [09:17:48]CreateOFDProtocolMessage [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 11 00 00 [09:17:48]Write to MH i2c: E2 08 00 5F 2A 80 11 00 00 00 00 00 00 03 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 17 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 17 00 5F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [09:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:48]wFMCommunicate OK [09:17:48]CreateOFDProtocolMessage done [09:17:48]OFDSenderStorePacket 140048 [09:17:48]StoreOFDPacket docnum=140048 [09:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5A 58 07 01 95 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 BD B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 23 02 00 35 04 06 00 6F 69 20 CB 32 C1 43 64 23 81 84 66 5E A5 [09:17:48]CheckFolder [09:17:48]dirname=/storage/ofd_packets [09:17:48]CheckFolder done [09:17:48]ProducePacketName [09:17:48]name=ofd_packets/00140048 [09:17:48]NVStorageSaveData ofd_packets/00140048 [09:17:48]File name is /storage/ofd_packets/00140048 [09:17:48]Write 301 bytes [09:17:48]NVStorageSaveData done [09:17:48]OFDSenderStorePacket done [09:17:48]KKMCreateOFDPacket done [09:17:48]NVStorageSaveData kkm_last_timestamp [09:17:48]File name is /storage/kkm_last_timestamp [09:17:48]Write 4 bytes [09:17:48]OFD Sender: Processing packet 140048 [packets to send 137, broken 136] [09:17:48]ProducePacketName [09:17:48]name=ofd_packets/00140048 [09:17:48]OFD Sender: To server: pG, [09:17:48]CommunicateWithHost lk.salyk.kg:30040 [09:17:48]ConnectInit lk.salyk.kg [09:17:48]NVStorageSaveData done [09:17:48]ExternCall_PrintAddStr [09:17:48]wPrintStart [09:17:48]Write to MH i2c: 01 00 00 60 2A 8A [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 07 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 07 00 60 2A 00 00 00 00 00 FF 0F 9F [09:17:48]RasterBufferAndPrint [09:17:48]line Счет N : (1)593902 [09:17:48]line ИНН: 02508201610067 [09:17:48]line Контрольно-Кассовый Чек [09:17:48]line ПРОДАЖА [09:17:48]line ТРК (МРК, ГНК) : 42 [09:17:48]line Товар: 2710124130 [09:17:48]line Аи-92-К-5 [09:17:48]line 22.130 * 67.80 [09:17:48]line = 1500.41 [09:17:48]line НДС 12% НСП 1% [09:17:48]line > о реализуемом товаре [09:17:48]line ОКРУГЛЕНИЕ: -0.41 [09:17:48]line ИТОГО: 1500.00 [09:17:48]line Внесено: 1500.00 [09:17:48]line СДАЧА: 0.00 [09:17:48]line НСП 1% : 13.28 [09:17:48]line НДС 12% : 159.34 [09:17:48]line Наличными: 1500.00 [09:17:48]line Безнал.: 0.00 [09:17:48]line Место: АЗС № 136 "Партнер Нефть" [09:17:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:17:48]line СНО: Общий режим [09:17:48]line Чек 65 21.08.2024 09:17 [09:17:48]line Смена: 454 ФФД: 1.0 [09:17:48]line ЗНМ: 0300000067 [09:17:48]line РНМ: 0000000000092569 [09:17:48]line Версия ККМ: 001 [09:17:48]line ФМ: 0000000000871776 [09:17:48]line ФД: 140048 [09:17:48]line ФПД: 122497312436929 [09:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T091749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140048&fm=122497312436929&tin=02508201610067®Number=0000000000092569&sum=150000 [09:17:48]Connected sock=10 [09:17: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 37 36 0F 01 00 00 5A 58 07 01 95 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 BD B0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 23 02 00 35 04 06 00 6F 69 20 CB 32 C1 43 64 23 81 84 66 5E A5 [09:17:48]written 0, free lines is 4095 [09:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 47 EF 47 00 AF 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 37 36 10 04 04 00 10 23 02 00 F4 03 04 00 4E 57 C5 66 B6 04 01 00 00 C1 30 32 DA CD 9F 71 AE [09:17:49]CommunicateWithHost err = 0 [09:17:49]CheckOFDResponse [09:17:49]1017 (14) - 77093643461234 [09:17:49]1041 (16) - 0000000000871776 [09:17:49]1040 (4) - 140048 [09:17:49]1012 (4) - 21.08.2024 02:56 [09:17:49]1206 (1) - 0 [09:17:49]OFD Sender: Remove packet 140048 [09:17:49]ProducePacketName [09:17:49]name=ofd_packets/00140048 [09:17:49]NVStorageDeleteData [09:17:49]Write to MH i2c: 01 00 00 8B 2A B5 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 CE 0C 96 [09:17:49]RasterBufferAndPrint [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]written 0, free lines is 3284 [09:17:49]MH_Cut [09:17:49]Write to MH i2c: D1 01 00 92 2A 01 8E [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 01 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 01 00 92 2A 00 8D [09:17:49]Write to MH i2c: 01 00 00 93 2A BD [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]OFD Sender: No OFD packet to send [09:17:50]*** Cut start [09:17:50]*** Partial cut [09:17:50]*** CUTSNS_PIN = 1 [09:17:50]*** CUTSNS_PIN = 0 [09:17:50]*** Brake cut motor [09:17:50]Read from MH i2c: 01 [09:17:50]MH_I2C_Read... [09:17:50]*** Stop cut motor [09:17:50]*** Cut end [09:17:50]Read from MH i2c: 01 07 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 93 2A 00 00 00 00 00 FF 0F D2 [09:17:50]process_action close_receipt done [09:17:50]requested_data is exist [09:17:50]produce_requested_data [09:17:50]requested_item fm.sn is exist - process it [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 11 00 00 [09:17:50]Write to MH i2c: E2 08 00 94 2A 80 11 00 00 00 00 00 00 38 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 94 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [09:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:17:50]wFMCommunicate OK [09:17:50]requested_item fd.num is exist - process it [09:17:50]SAM_PROTO_GetFieldsCounters [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 13 00 00 [09:17:50]Write to MH i2c: E2 08 00 95 2A 80 13 00 00 00 00 00 00 3B [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 62 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 62 00 95 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_GetFieldsCounters done [09:17:50]requested_item shift.num is exist - process it [09:17:50]requested_item shift.opened is exist - process it [09:17:50]req_shift_opened [09:17:50]FM_GetShiftState [09:17:50]SAM_PROTO_GetShiftState [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 13 01 00 [09:17:50]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0E 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [09:17:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_GetShiftState done [09:17:50]FM_GetShiftState done [09:17:50]req_shift_opened done [09:17:50]requested_item shift.open_date is exist - process it [09:17:50]req_shift_open_date [09:17:50]req_shift_open_date done [09:17:50]produce_requested_data done [09:17:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140048,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:17:50]process_action_free close_receipt [09:17:50]json_value_free [09:17:50]json_value_free done [09:17:50]process_json_proto returns [09:17:50]Send response to host [09:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140048,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:17:50]free response buf [09:17:50]execute_script done [09:17:50]execute_script returns [09:17:50]free content buf [09:17:50]Sock 9.Close socket [09:17:50]Sock 9.Thread stoped [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:05]int [09:18:05]Write to MH i2c: 01 00 00 97 2A C1 [09:18:05]*** FLAG_PRN_KEY set [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 97 2A 00 08 00 00 00 FF 0F DE [09:18:05]state=0 [09:18:05]Key pressed [09:18:05]Feed [09:18:05]Write to MH i2c: D8 00 00 98 2A 99 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D8 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D8 01 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: D8 01 00 98 2A 00 9A [09:18:05]int [09:18:05]Write to MH i2c: 01 00 00 99 2A C3 [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 99 2A 00 48 00 00 00 3C 00 4E [09:18:05]state=2 [09:18:05]Key pressed [09:18:05]int [09:18:05]Write to MH i2c: 01 00 00 9A 2A C4 [09:18:05]*** FLAG_PRN_KEY reset [09:18:05]Write i2c OK [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 [09:18:05]MH_I2C_Read... [09:18:05]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FC 0F D6 [09:18:05]state=2 [09:18:05]Stop feed [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:01]accept exits with 7 [09:23:01]New connection [09:23:01]New thread 3066764644 created [09:23:01]Thread 3066908004 joined [09:23:01]Waiting for new connection... [09:23:01] Sock 7.Parse request [09:23:01]Sock 7.Check first char [09:23:01]Sock 7.First char is OK [09:23:01]request: POST /json_proto HTTP/1.0 [09:23:01]Method: POST [09:23:01]URL: /json_proto [09:23:01]Method is POST - this is cgi request [09:23:01]url: /json_proto [09:23:01]query_string will be loaded in cgi processing [09:23:01]execute_cgi json_proto POST (null) [09:23:01]execute_cgi path=json_proto method=POST [09:23:01]POST find Content-Length [09:23:01]Host: 172.17.45.67:8080 [09:23:01]Content-Length: 797 [09:23:01]Content-Type: application/json [09:23:01] [09:23:01]POST finish read [09:23:01]Found Content-Length = 797 [09:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:01]execute_script... [09: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)593903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:01]POST & json_proto [09:23:01]process_json_proto [09:23:01]json parsed OK: [09:23:01]protocol is kg_v1.0 [09:23:01]action value=close_receipt [09:23:01]process_action close_receipt [09:23:01]cmd_close_receipt [09:23:01]MH_GetDate [09:23:01]Write to MH i2c: F0 00 00 9B 2A B4 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: F0 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: F0 09 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: F0 09 00 9B 2A 00 F8 B1 C5 66 5F 7F 2B 66 00 [09:23:01]GetLastDocTimeStamp 1724231869 [09:23:01]current date 1724232184 [09:23:01]FM_GetShiftState [09:23:01]SAM_PROTO_GetShiftState [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 13 01 00 [09:23:01]Write to MH i2c: E2 08 00 9C 2A 80 13 01 00 00 00 00 00 43 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 9C 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C3 [09:23:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:23:01]wFMCommunicate OK [09:23:01]SAM_PROTO_GetShiftState done [09:23:01]FM_GetShiftState done [09:23:01]opened in 1724200467 [09:23:01]opened+sec_in_day 1724286867 [09:23:01]quantity*price = 0 [09:23:01]sum+1 = 1 [09:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 66 21.08.2024 09:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140049 ФПД: 151154835287847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T092304&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140049&fm=151154835287847&tin=02508201610067®Number=0000000000092569&sum=0 [09:23:02]StoreToDocumentArchive [09:23:02]shift 454 fd 140049 [09:23:02]save to /storage/0454/doc_00140049 [09:23:02]save last doc name /storage/0454/doc_00140049 to /storage/kkm_last_doc_name [09:23:02]save OK [09:23:02]Clear old archive folders... [09:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:02]tlvbuf is 00A76480 [09:23:02]SAM_PROTO_ClearQueue [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 09 00 00 [09:23:02]Write to MH i2c: E2 08 00 A9 2A 80 09 00 00 00 00 00 00 45 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:02]Read from MH i2c: E2 03 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [09:23:02]RAPDU: 90 00 [09:23:02]wFMCommunicate OK [09:23:02]SAM_PROTO_ClearQueue done [09:23:02]KKMCreateOFDPacket [09:23:02]OFDProtocolAddRootSTLVToBuf [09:23:02]FM_MakeSignedData [09:23:02]FM_MakeSignedData [09:23:02]SAM_PROTO_SignData [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 0D 01 02 [09:23:02]Write to MH i2c: E2 08 00 AA 2A 80 0D 01 02 00 00 00 00 4D [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [09:23:02]RAPDU: 90 00 [09:23:02]wFMCommunicate OK [09:23:02]wFMCommunicate request_size=255 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 B1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 23 02 00 35 04 06 00 [09:23:02]Write to MH i2c: E2 02 01 AB 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 B1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 23 02 00 35 04 06 00 00 00 7C [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [09:23:02]RAPDU: 90 00 [09:23:02]wFMCommunicate OK [09:23:02]wFMCommunicate request_size=11 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 0D 02 02 06 89 79 7A 43 6F 27 [09:23:02]Write to MH i2c: E2 0E 00 AC 2A 80 0D 02 02 06 00 89 79 7A 43 6F 27 00 00 B1 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 03 00 AC 2A 00 90 00 4A [09:23:02]RAPDU: 90 00 [09:23:02]wFMCommunicate OK [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 0D 03 02 [09:23:02]Write to MH i2c: E2 08 00 AD 2A 80 0D 03 02 00 00 00 00 52 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 0B 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 0B 00 AD 2A 00 DE EE E5 AA 04 0C F0 29 90 00 D7 [09:23:02]RAPDU: DE EE E5 AA 04 0C F0 29 90 00 [09:23:02]wFMCommunicate OK [09:23:02]SAM_PROTO_SignData done [09:23:02]FM_MakeSignedData done [09:23:02]CreateOFDProtocolMessage [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 11 00 00 [09:23:02]Write to MH i2c: E2 08 00 AE 2A 80 11 00 00 00 00 00 00 52 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:03]Read from MH i2c: E2 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: E2 17 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: E2 17 00 AE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [09:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:03]wFMCommunicate OK [09:23:03]CreateOFDProtocolMessage done [09:23:03]OFDSenderStorePacket 140049 [09:23:03]StoreOFDPacket docnum=140049 [09:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 44 5A 08 01 3E A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 B1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 23 02 00 35 04 06 00 89 79 7A 43 6F 27 DE EE E5 AA 04 0C F0 29 [09:23:03]CheckFolder [09:23:03]dirname=/storage/ofd_packets [09:23:03]CheckFolder done [09:23:03]ProducePacketName [09:23:03]name=ofd_packets/00140049 [09:23:03]NVStorageSaveData ofd_packets/00140049 [09:23:03]File name is /storage/ofd_packets/00140049 [09:23:03]Write 302 bytes [09:23:03]NVStorageSaveData done [09:23:03]OFDSenderStorePacket done [09:23:03]KKMCreateOFDPacket done [09:23:03]NVStorageSaveData kkm_last_timestamp [09:23:03]File name is /storage/kkm_last_timestamp [09:23:03]Write 4 bytes [09:23:03]NVStorageSaveData done [09:23:03]ExternCall_PrintAddStr [09:23:03]wPrintStart [09:23:03]Write to MH i2c: 01 00 00 AF 2A D9 [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 07 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 07 00 AF 2A 00 00 00 00 00 FF 0F EE [09:23:03]RasterBufferAndPrint [09:23:03]line Счет N : (1)593903 [09:23:03]line ИНН: 02508201610067 [09:23:03]line Контрольно-Кассовый Чек [09:23:03]line ПРОДАЖА [09:23:03]line ТРК (МРК, ГНК) : 21 [09:23:03]line Товар: 2710194210 [09:23:03]line ДТ(л)-К-5 [09:23:03]line 28.000 * 0.00 [09:23:03]line = 0.00 [09:23:03]line НДС 12% НСП 1% [09:23:03]line > о реализуемом товаре [09:23:03]line ИТОГО: 0.00 [09:23:03]line НСП 1% : 0.00 [09:23:03]line НДС 12% : 0.00 [09:23:03]line Наличными: 0.00 [09:23:03]line Безнал.: 0.00 [09:23:03]line Место: АЗС № 136 "Партнер Нефть" [09:23:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:23:03]line СНО: Общий режим [09:23:03]line Чек 66 21.08.2024 09:23 [09:23:03]line Смена: 454 ФФД: 1.0 [09:23:03]line ЗНМ: 0300000067 [09:23:03]line РНМ: 0000000000092569 [09:23:03]line Версия ККМ: 001 [09:23:03]line Талоны: Топливная Карта [09:23:03]line 99761 [09:23:03]line ФМ: 0000000000871776 [09:23:03]line ФД: 140049 [09:23:03]line ФПД: 151154835287847 [09:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T092304&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140049&fm=151154835287847&tin=02508201610067®Number=0000000000092569&sum=0 [09:23:03]OFD Sender: Processing packet 140049 [packets to send 137, broken 136] [09:23:03]ProducePacketName [09:23:03]name=ofd_packets/00140049 [09:23:03]OFD Sender: To server: pG, [09:23:03]CommunicateWithHost lk.salyk.kg:30040 [09:23:03]ConnectInit lk.salyk.kg [09:23:03]written 0, free lines is 4095 [09:23:03]Connected sock=10 [09: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 37 36 10 01 00 00 44 5A 08 01 3E A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F8 B1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 23 02 00 35 04 06 00 89 79 7A 43 6F 27 DE EE E5 AA 04 0C F0 29 [09: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 37 36 4F 00 00 00 49 BB 47 00 67 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 23 02 00 F4 03 04 00 89 58 C5 66 B6 04 01 00 00 85 D0 7F 1C EF 5B D9 DB [09:23:03]CommunicateWithHost err = 0 [09:23:03]CheckOFDResponse [09:23:03]1017 (14) - 77093643461234 [09:23:03]1041 (16) - 0000000000871776 [09:23:03]1040 (4) - 140049 [09:23:03]1012 (4) - 21.08.2024 03:01 [09:23:03]1206 (1) - 0 [09:23:03]OFD Sender: Remove packet 140049 [09:23:03]ProducePacketName [09:23:03]name=ofd_packets/00140049 [09:23:03]NVStorageDeleteData [09:23:03]Write to MH i2c: 01 00 00 D9 2A 03 [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 07 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 E6 0C FC [09:23:03]RasterBufferAndPrint [09:23:03]line [09:23:03]line [09:23:03]line [09:23:03]line [09:23:03]line [09:23:03]written 0, free lines is 3309 [09:23:03]MH_Cut [09:23:03]Write to MH i2c: D1 01 00 E0 2A 01 DC [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: D1 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: D1 01 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: D1 01 00 E0 2A 00 DB [09:23:03]Write to MH i2c: 01 00 00 E1 2A 0B [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:04]OFD Sender: No OFD packet to send [09:23:04]*** Cut start [09:23:04]*** Partial cut [09:23:04]*** CUTSNS_PIN = 1 [09:23:04]*** CUTSNS_PIN = 0 [09:23:04]*** Brake cut motor [09:23:05]Read from MH i2c: 01 [09:23:05]MH_I2C_Read... [09:23:05]*** Stop cut motor [09:23:05]*** Cut end [09:23:05]Read from MH i2c: 01 07 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 07 00 E1 2A 00 00 00 00 00 FF 0F 20 [09:23:05]process_action close_receipt done [09:23:05]requested_data is exist [09:23:05]produce_requested_data [09:23:05]requested_item fm.sn is exist - process it [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 11 00 00 [09:23:05]Write to MH i2c: E2 08 00 E2 2A 80 11 00 00 00 00 00 00 86 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 E2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [09:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:23:05]wFMCommunicate OK [09:23:05]requested_item fd.num is exist - process it [09:23:05]SAM_PROTO_GetFieldsCounters [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 13 00 00 [09:23:05]Write to MH i2c: E2 08 00 E3 2A 80 13 00 00 00 00 00 00 89 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 62 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 62 00 E3 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_GetFieldsCounters done [09:23:05]requested_item shift.num is exist - process it [09:23:05]requested_item shift.opened is exist - process it [09:23:05]req_shift_opened [09:23:05]FM_GetShiftState [09:23:05]SAM_PROTO_GetShiftState [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 13 01 00 [09:23:05]Write to MH i2c: E2 08 00 E4 2A 80 13 01 00 00 00 00 00 8B [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0E 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0E 00 E4 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [09:23:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_GetShiftState done [09:23:05]FM_GetShiftState done [09:23:05]req_shift_opened done [09:23:05]requested_item shift.open_date is exist - process it [09:23:05]req_shift_open_date [09:23:05]req_shift_open_date done [09:23:05]produce_requested_data done [09:23:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140049,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:23:05]process_action_free close_receipt [09:23:05]json_value_free [09:23:05]json_value_free done [09:23:05]process_json_proto returns [09:23:05]Send response to host [09:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140049,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:23:05]free response buf [09:23:05]execute_script done [09:23:05]execute_script returns [09:23:05]free content buf [09:23:05]Sock 7.Close socket [09:23:05]Sock 7.Thread stoped [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28: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:19]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:33]int [09:41:33]Write to MH i2c: 01 00 00 E5 2A 0F [09:41:33]*** FLAG_PRN_KEY set [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 E5 2A 00 08 00 00 00 FF 0F 2C [09:41:33]state=0 [09:41:33]Key pressed [09:41:33]Feed [09:41:33]Write to MH i2c: D8 00 00 E6 2A E7 [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: D8 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: D8 01 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: D8 01 00 E6 2A 00 E8 [09:41:33]int [09:41:33]Write to MH i2c: 01 00 00 E7 2A 11 [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 E7 2A 00 48 00 00 00 3C 00 9C [09:41:33]state=2 [09:41:33]Key pressed [09:41:33]int [09:41:33]Write to MH i2c: 01 00 00 E8 2A 12 [09:41:33]*** FLAG_PRN_KEY reset [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 F5 0F 1D [09:41:33]state=2 [09:41:33]Stop feed [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:38]accept exits with 9 [09:42:38]New connection [09:42:38]New thread 3066908004 created [09:42:38]Thread 3066764644 joined [09:42:38]Waiting for new connection... [09:42:38] Sock 9.Parse request [09:42:38]Sock 9.Check first char [09:42:38]Sock 9.First char is OK [09:42:38]request: POST /json_proto HTTP/1.0 [09:42:38]Method: POST [09:42:38]URL: /json_proto [09:42:38]Method is POST - this is cgi request [09:42:38]url: /json_proto [09:42:38]query_string will be loaded in cgi processing [09:42:38]execute_cgi json_proto POST (null) [09:42:38]execute_cgi path=json_proto method=POST [09:42:38]POST find Content-Length [09:42:38]Host: 172.17.45.67:8080 [09:42:38]Content-Length: 678 [09:42:38]Content-Type: application/json [09:42:38] [09:42:38]POST finish read [09:42:38]Found Content-Length = 678 [09:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:38]execute_script... [09:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:38]POST & json_proto [09:42:38]process_json_proto [09:42:38]json parsed OK: [09:42:38]protocol is kg_v1.0 [09:42:38]action value=close_receipt [09:42:38]process_action close_receipt [09:42:38]cmd_close_receipt [09:42:38]MH_GetDate [09:42:38]Write to MH i2c: F0 00 00 E9 2A 02 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 E9 2A 00 91 B6 C5 66 5F 7F 2B 66 EC [09:42:38]GetLastDocTimeStamp 1724232184 [09:42:38]current date 1724233361 [09:42:38]FM_GetShiftState [09:42:38]SAM_PROTO_GetShiftState [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 01 00 [09:42:38]Write to MH i2c: E2 08 00 EA 2A 80 13 01 00 00 00 00 00 91 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 EA 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 11 [09:42:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetShiftState done [09:42:38]FM_GetShiftState done [09:42:38]opened in 1724200467 [09:42:38]opened+sec_in_day 1724286867 [09:42:38]quantity*price = 90038 [09:42:38]sum+1 = 90039 [09:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 67 21.08.2024 09:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140050 ФПД: 38689036976842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140050&fm=38689036976842&tin=02508201610067®Number=0000000000092569&sum=90000 [09:42:39]StoreToDocumentArchive [09:42:39]shift 454 fd 140050 [09:42:39]save to /storage/0454/doc_00140050 [09:42:39]save last doc name /storage/0454/doc_00140050 to /storage/kkm_last_doc_name [09:42:39]save OK [09:42:39]Clear old archive folders... [09:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:39]tlvbuf is 00AE86A0 [09:42:39]SAM_PROTO_ClearQueue [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 09 00 00 [09:42:39]Write to MH i2c: E2 08 00 F7 2A 80 09 00 00 00 00 00 00 93 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 F7 2A 00 90 00 95 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_ClearQueue done [09:42:39]KKMCreateOFDPacket [09:42:39]OFDProtocolAddRootSTLVToBuf [09:42:39]FM_MakeSignedData [09:42:39]FM_MakeSignedData [09:42:39]SAM_PROTO_SignData [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 01 02 [09:42:39]Write to MH i2c: E2 08 00 F8 2A 80 0D 01 02 00 00 00 00 9B [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 F8 2A 00 90 00 96 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=255 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 23 02 00 35 04 06 00 23 [09:42:39]Write to MH i2c: E2 02 01 F9 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 23 02 00 35 04 06 00 23 00 00 C3 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 F9 2A 00 90 00 97 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=10 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 02 02 05 2F FE 4E 42 CA [09:42:40]Write to MH i2c: E2 0D 00 FA 2A 80 0D 02 02 05 00 2F FE 4E 42 CA 00 00 2F [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 03 00 FA 2A 00 90 00 98 [09:42:40]RAPDU: 90 00 [09:42:40]wFMCommunicate OK [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 0D 03 02 [09:42:40]Write to MH i2c: E2 08 00 FB 2A 80 0D 03 02 00 00 00 00 A0 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 FB 2A 00 4B 2A EC 64 AB 31 2D 0A 90 00 79 [09:42:40]RAPDU: 4B 2A EC 64 AB 31 2D 0A 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_SignData done [09:42:40]FM_MakeSignedData done [09:42:40]CreateOFDProtocolMessage [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 11 00 00 [09:42:40]Write to MH i2c: E2 08 00 FC 2A 80 11 00 00 00 00 00 00 A0 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 FC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [09:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:40]wFMCommunicate OK [09:42:40]CreateOFDProtocolMessage done [09:42:40]OFDSenderStorePacket 140050 [09:42:40]StoreOFDPacket docnum=140050 [09:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 5D 07 01 B9 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 23 02 00 35 04 06 00 23 2F FE 4E 42 CA 4B 2A EC 64 AB 31 2D 0A [09:42:40]CheckFolder [09:42:40]dirname=/storage/ofd_packets [09:42:40]CheckFolder done [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00140050 [09:42:40]NVStorageSaveData ofd_packets/00140050 [09:42:40]File name is /storage/ofd_packets/00140050 [09:42:40]Write 301 bytes [09:42:40]NVStorageSaveData done [09:42:40]OFDSenderStorePacket done [09:42:40]KKMCreateOFDPacket done [09:42:40]NVStorageSaveData kkm_last_timestamp [09:42:40]File name is /storage/kkm_last_timestamp [09:42:40]Write 4 bytes [09:42:40]NVStorageSaveData done [09:42:40]ExternCall_PrintAddStr [09:42:40]wPrintStart [09:42:40]Write to MH i2c: 01 00 00 FD 2A 27 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 FD 2A 00 00 00 00 00 FF 0F 3C [09:42:40]RasterBufferAndPrint [09:42:40]line Счет N : (1)593905 [09:42:40]line ИНН: 02508201610067 [09:42:40]line Контрольно-Кассовый Чек [09:42:40]line ПРОДАЖА [09:42:40]line ТРК (МРК, ГНК) : 42 [09:42:40]line Товар: 2710124130 [09:42:40]line Аи-92-К-5 [09:42:40]line 13.280 * 67.80 [09:42:40]line = 900.38 [09:42:40]line НДС 12% НСП 1% [09:42:40]line > о реализуемом товаре [09:42:40]line ОКРУГЛЕНИЕ: -0.38 [09:42:40]line ИТОГО: 900.00 [09:42:40]line Внесено: 900.00 [09:42:40]line СДАЧА: 0.00 [09:42:40]line НСП 1% : 7.97 [09:42:40]line НДС 12% : 95.62 [09:42:40]line Наличными: 900.00 [09:42:40]line Безнал.: 0.00 [09:42:40]line Место: АЗС № 136 "Партнер Нефть" [09:42:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:42:40]line СНО: Общий режим [09:42:40]line Чек 67 21.08.2024 09:42 [09:42:40]line Смена: 454 ФФД: 1.0 [09:42:40]line ЗНМ: 0300000067 [09:42:40]line РНМ: 0000000000092569 [09:42:40]line Версия ККМ: 001 [09:42:40]line ФМ: 0000000000871776 [09:42:40]line ФД: 140050 [09:42:40]line ФПД: 38689036976842 [09:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094241&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140050&fm=38689036976842&tin=02508201610067®Number=0000000000092569&sum=90000 [09:42:40]OFD Sender: Processing packet 140050 [packets to send 137, broken 136] [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00140050 [09:42:40]OFD Sender: To server: pG, [09:42:40]CommunicateWithHost lk.salyk.kg:30040 [09:42:40]ConnectInit lk.salyk.kg [09:42:40]written 0, free lines is 4095 [09:42:40]Connected sock=10 [09:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 5D 07 01 B9 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 91 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 23 02 00 35 04 06 00 23 2F FE 4E 42 CA 4B 2A EC 64 AB 31 2D 0A [09:42: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 37 36 4F 00 00 00 B2 DF 47 00 6F 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 37 36 10 04 04 00 12 23 02 00 F4 03 04 00 22 5D C5 66 B6 04 01 00 00 5F 3F 3D FD AE 02 04 D7 [09:42:41]CommunicateWithHost err = 0 [09:42:41]CheckOFDResponse [09:42:41]1017 (14) - 77093643461234 [09:42:41]1041 (16) - 0000000000871776 [09:42:41]1040 (4) - 140050 [09:42:41]1012 (4) - 21.08.2024 03:21 [09:42:41]1206 (1) - 0 [09:42:41]OFD Sender: Remove packet 140050 [09:42:41]ProducePacketName [09:42:41]name=ofd_packets/00140050 [09:42:41]NVStorageDeleteData [09:42:41]Write to MH i2c: 01 00 00 28 2B 53 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 28 2B 00 00 00 00 00 CD 0C 33 [09:42:41]RasterBufferAndPrint [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]written 0, free lines is 3284 [09:42:41]MH_Cut [09:42:41]Write to MH i2c: D1 01 00 2F 2B 01 2C [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 2F 2B 00 2B [09:42:41]Write to MH i2c: 01 00 00 30 2B 5B [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]OFD Sender: No OFD packet to send [09:42:41]*** Cut start [09:42:41]*** Partial cut [09:42:41]*** CUTSNS_PIN = 1 [09:42:41]*** CUTSNS_PIN = 0 [09:42:42]*** Brake cut motor [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]*** Stop cut motor [09:42:42]*** Cut end [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 30 2B 00 00 00 00 00 FF 0F 70 [09:42:42]process_action close_receipt done [09:42:42]requested_data is exist [09:42:42]produce_requested_data [09:42:42]requested_item fm.sn is exist - process it [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 11 00 00 [09:42:42]Write to MH i2c: E2 08 00 31 2B 80 11 00 00 00 00 00 00 D6 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:42]Read from MH i2c: E2 17 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 31 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [09:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:42]wFMCommunicate OK [09:42:42]requested_item fd.num is exist - process it [09:42:42]SAM_PROTO_GetFieldsCounters [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 00 00 [09:42:42]Write to MH i2c: E2 08 00 32 2B 80 13 00 00 00 00 00 00 D9 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 32 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetFieldsCounters done [09:42:42]requested_item shift.num is exist - process it [09:42:42]requested_item shift.opened is exist - process it [09:42:42]req_shift_opened [09:42:42]FM_GetShiftState [09:42:42]SAM_PROTO_GetShiftState [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 01 00 [09:42:42]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5B [09:42:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetShiftState done [09:42:42]FM_GetShiftState done [09:42:42]req_shift_opened done [09:42:42]requested_item shift.open_date is exist - process it [09:42:42]req_shift_open_date [09:42:42]req_shift_open_date done [09:42:42]produce_requested_data done [09:42:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140050,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:42:42]process_action_free close_receipt [09:42:42]json_value_free [09:42:42]json_value_free done [09:42:42]process_json_proto returns [09:42:42]Send response to host [09:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140050,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:42:42]free response buf [09:42:42]execute_script done [09:42:42]execute_script returns [09:42:42]free content buf [09:42:42]Sock 9.Close socket [09:42:42]Sock 9.Thread stoped [09:42:43]int [09:42:43]Write to MH i2c: 01 00 00 34 2B 5F [09:42:43]*** FLAG_PRN_KEY set [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 34 2B 00 08 00 00 00 FF 0F 7C [09:42:43]state=0 [09:42:43]Key pressed [09:42:43]Feed [09:42:43]Write to MH i2c: D8 00 00 35 2B 37 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D8 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D8 01 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: D8 01 00 35 2B 00 38 [09:42:43]int [09:42:43]Write to MH i2c: 01 00 00 36 2B 61 [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 36 2B 00 48 00 00 00 3C 00 EC [09:42:43]state=2 [09:42:43]Key pressed [09:42:43]int [09:42:43]Write to MH i2c: 01 00 00 37 2B 62 [09:42:43]*** FLAG_PRN_KEY reset [09:42:43]Write i2c OK [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 [09:42:43]MH_I2C_Read... [09:42:43]Read from MH i2c: 01 07 00 37 2B 00 00 00 00 00 FA 0F 72 [09:42:43]state=2 [09:42:43]Stop feed [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:54]accept exits with 7 [09:42:54]New connection [09:42:54]New thread 3066764644 created [09:42:54]Thread 3066908004 joined [09:42:54]Waiting for new connection... [09:42:54] Sock 7.Parse request [09:42:54]Sock 7.Check first char [09:42:54]Sock 7.First char is OK [09:42:54]request: POST /json_proto HTTP/1.0 [09:42:54]Method: POST [09:42:54]URL: /json_proto [09:42:54]Method is POST - this is cgi request [09:42:54]url: /json_proto [09:42:54]query_string will be loaded in cgi processing [09:42:54]execute_cgi json_proto POST (null) [09:42:54]execute_cgi path=json_proto method=POST [09:42:54]POST find Content-Length [09:42:54]Host: 172.17.45.67:8080 [09:42:54]Content-Length: 759 [09:42:54]Content-Type: application/json [09:42:54] [09:42:54]POST finish read [09:42:54]Found Content-Length = 759 [09:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033098", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:54]execute_script... [09:42: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)593904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033098", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:54]POST & json_proto [09:42:54]process_json_proto [09:42:54]json parsed OK: [09:42:54]protocol is kg_v1.0 [09:42:54]action value=close_receipt [09:42:54]process_action close_receipt [09:42:54]cmd_close_receipt [09:42:54]MH_GetDate [09:42:54]Write to MH i2c: F0 00 00 38 2B 52 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 09 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: F0 09 00 38 2B 00 A1 B6 C5 66 5F 7F 2B 66 4C [09:42:54]GetLastDocTimeStamp 1724233361 [09:42:54]current date 1724233377 [09:42:54]FM_GetShiftState [09:42:54]SAM_PROTO_GetShiftState [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 01 00 [09:42:54]Write to MH i2c: E2 08 00 39 2B 80 13 01 00 00 00 00 00 E1 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 39 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [09:42:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetShiftState done [09:42:54]FM_GetShiftState done [09:42:54]opened in 1724200467 [09:42:54]opened+sec_in_day 1724286867 [09:42:54]quantity*price = 0 [09:42:54]sum+1 = 1 [09:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 68 21.08.2024 09:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30033098 ФМ: 0000000000871776 ФД: 140051 ФПД: 204890101079013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094257&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140051&fm=204890101079013&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:56]StoreToDocumentArchive [09:42:56]shift 454 fd 140051 [09:42:56]save to /storage/0454/doc_00140051 [09:42:56]save last doc name /storage/0454/doc_00140051 to /storage/kkm_last_doc_name [09:42:56]save OK [09:42:56]Clear old archive folders... [09:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:42:56]tlvbuf is 00A3F990 [09:42:56]SAM_PROTO_ClearQueue [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 09 00 00 [09:42:56]Write to MH i2c: E2 08 00 46 2B 80 09 00 00 00 00 00 00 E3 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 46 2B 00 90 00 E5 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]SAM_PROTO_ClearQueue done [09:42:56]KKMCreateOFDPacket [09:42:56]OFDProtocolAddRootSTLVToBuf [09:42:56]FM_MakeSignedData [09:42:56]FM_MakeSignedData [09:42:56]SAM_PROTO_SignData [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 01 02 [09:42:56]Write to MH i2c: E2 08 00 47 2B 80 0D 01 02 00 00 00 00 EB [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 47 2B 00 90 00 E6 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]wFMCommunicate request_size=255 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A1 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 23 02 00 35 04 06 00 [09:42:56]Write to MH i2c: E2 02 01 48 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A1 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 23 02 00 35 04 06 00 00 00 12 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 48 2B 00 90 00 E7 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]wFMCommunicate request_size=11 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 02 02 06 BA 58 B1 B1 5B E5 [09:42:56]Write to MH i2c: E2 0E 00 49 2B 80 0D 02 02 06 00 BA 58 B1 B1 5B E5 00 00 AE [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 03 00 49 2B 00 90 00 E8 [09:42:56]RAPDU: 90 00 [09:42:56]wFMCommunicate OK [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 0D 03 02 [09:42:56]Write to MH i2c: E2 08 00 4A 2B 80 0D 03 02 00 00 00 00 F0 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0B 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 0B 00 4A 2B 00 E4 69 63 62 AD AF D5 8B 90 00 BF [09:42:56]RAPDU: E4 69 63 62 AD AF D5 8B 90 00 [09:42:56]wFMCommunicate OK [09:42:56]SAM_PROTO_SignData done [09:42:56]FM_MakeSignedData done [09:42:56]CreateOFDProtocolMessage [09:42:56]wFMCommunicate request_size=4 [09:42:56]MH_SAM_APDU [09:42:56]CAPDU: 80 11 00 00 [09:42:56]Write to MH i2c: E2 08 00 4B 2B 80 11 00 00 00 00 00 00 F0 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:56]Read from MH i2c: E2 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 17 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: E2 17 00 4B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [09:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:56]wFMCommunicate OK [09:42:56]CreateOFDProtocolMessage done [09:42:56]OFDSenderStorePacket 140051 [09:42:56]StoreOFDPacket docnum=140051 [09:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F5 F5 08 01 D4 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A1 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 23 02 00 35 04 06 00 BA 58 B1 B1 5B E5 E4 69 63 62 AD AF D5 8B [09:42:56]CheckFolder [09:42:56]dirname=/storage/ofd_packets [09:42:56]CheckFolder done [09:42:56]ProducePacketName [09:42:56]name=ofd_packets/00140051 [09:42:56]NVStorageSaveData ofd_packets/00140051 [09:42:56]File name is /storage/ofd_packets/00140051 [09:42:56]Write 302 bytes [09:42:56]NVStorageSaveData done [09:42:56]OFDSenderStorePacket done [09:42:56]KKMCreateOFDPacket done [09:42:56]NVStorageSaveData kkm_last_timestamp [09:42:56]File name is /storage/kkm_last_timestamp [09:42:56]Write 4 bytes [09:42:56]NVStorageSaveData done [09:42:56]ExternCall_PrintAddStr [09:42:56]wPrintStart [09:42:56]Write to MH i2c: 01 00 00 4C 2B 77 [09:42:56]Write i2c OK [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 [09:42:56]MH_I2C_Read... [09:42:56]Read from MH i2c: 01 07 00 4C 2B 00 00 00 00 00 FF 0F 8C [09:42:56]RasterBufferAndPrint [09:42:56]line Счет N : (1)593904 [09:42:56]line ИНН: 02508201610067 [09:42:56]line Контрольно-Кассовый Чек [09:42:56]line ПРОДАЖА [09:42:56]line ТРК (МРК, ГНК) : 21 [09:42:56]line Товар: 2710194210 [09:42:56]line ДТ(л)-К-5 [09:42:56]line 50.000 * 0.00 [09:42:56]line = 0.00 [09:42:56]line НДС 12% НСП 1% [09:42:56]line > о реализуемом товаре [09:42:56]line ИТОГО: 0.00 [09:42:56]line НСП 1% : 0.00 [09:42:56]line НДС 12% : 0.00 [09:42:56]line Наличными: 0.00 [09:42:56]line Безнал.: 0.00 [09:42:56]line Место: АЗС № 136 "Партнер Нефть" [09:42:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:42:56]line СНО: Общий режим [09:42:56]line Чек 68 21.08.2024 09:42 [09:42:56]line Смена: 454 ФФД: 1.0 [09:42:56]line ЗНМ: 0300000067 [09:42:56]line РНМ: 0000000000092569 [09:42:56]line Версия ККМ: 001 [09:42:56]line Талоны: ТК ГПНА Online [09:42:56]line 30033098 [09:42:56]line ФМ: 0000000000871776 [09:42:56]line ФД: 140051 [09:42:56]line ФПД: 204890101079013 [09:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094257&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140051&fm=204890101079013&tin=02508201610067®Number=0000000000092569&sum=0 [09:42:56]OFD Sender: Processing packet 140051 [packets to send 137, broken 136] [09:42:56]ProducePacketName [09:42:56]name=ofd_packets/00140051 [09:42:56]OFD Sender: To server: pG, [09:42:56]CommunicateWithHost lk.salyk.kg:30040 [09:42:56]ConnectInit lk.salyk.kg [09:42:56]written 0, free lines is 4095 [09:42:57]Connected sock=10 [09:42: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 37 36 10 01 00 00 F5 F5 08 01 D4 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A1 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 23 02 00 35 04 06 00 BA 58 B1 B1 5B E5 E4 69 63 62 AD AF D5 8B [09:42: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 37 36 4F 00 00 00 56 0D 47 00 01 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 37 36 10 04 04 00 13 23 02 00 F4 03 04 00 33 5D C5 66 B6 04 01 00 00 98 36 FD A8 9C 75 66 64 [09:42:57]CommunicateWithHost err = 0 [09:42:57]CheckOFDResponse [09:42:57]1017 (14) - 77093643461234 [09:42:57]1041 (16) - 0000000000871776 [09:42:57]1040 (4) - 140051 [09:42:57]1012 (4) - 21.08.2024 03:21 [09:42:57]1206 (1) - 0 [09:42:57]OFD Sender: Remove packet 140051 [09:42:57]ProducePacketName [09:42:57]name=ofd_packets/00140051 [09:42:57]NVStorageDeleteData [09:42:57]Write to MH i2c: 01 00 00 76 2B A1 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: 01 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: 01 07 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: 01 07 00 76 2B 00 00 00 00 00 D8 0C 8C [09:42:57]RasterBufferAndPrint [09:42:57]line [09:42:57]line [09:42:57]line [09:42:57]line [09:42:57]line [09:42:57]written 0, free lines is 3294 [09:42:57]MH_Cut [09:42:57]Write to MH i2c: D1 01 00 7D 2B 01 7A [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: D1 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: D1 01 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: D1 01 00 7D 2B 00 79 [09:42:57]Write to MH i2c: 01 00 00 7E 2B A9 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]OFD Sender: No OFD packet to send [09:42:58]*** Cut start [09:42:58]*** Partial cut [09:42:58]*** CUTSNS_PIN = 1 [09:42:58]*** CUTSNS_PIN = 0 [09:42:58]*** Brake cut motor [09:42:58]Read from MH i2c: 01 [09:42:58]MH_I2C_Read... [09:42:58]*** Stop cut motor [09:42:58]*** Cut end [09:42:58]Read from MH i2c: 01 07 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: 01 07 00 7E 2B 00 00 00 00 00 FF 0F BE [09:42:58]process_action close_receipt done [09:42:58]requested_data is exist [09:42:58]produce_requested_data [09:42:58]requested_item fm.sn is exist - process it [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 11 00 00 [09:42:58]Write to MH i2c: E2 08 00 7F 2B 80 11 00 00 00 00 00 00 24 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 17 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 17 00 7F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7B [09:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:42:58]wFMCommunicate OK [09:42:58]requested_item fd.num is exist - process it [09:42:58]SAM_PROTO_GetFieldsCounters [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 13 00 00 [09:42:58]Write to MH i2c: E2 08 00 80 2B 80 13 00 00 00 00 00 00 27 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 62 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 62 00 80 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_GetFieldsCounters done [09:42:58]requested_item shift.num is exist - process it [09:42:58]requested_item shift.opened is exist - process it [09:42:58]req_shift_opened [09:42:58]FM_GetShiftState [09:42:58]SAM_PROTO_GetShiftState [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 13 01 00 [09:42:58]Write to MH i2c: E2 08 00 81 2B 80 13 01 00 00 00 00 00 29 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0E 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0E 00 81 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A9 [09:42:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_GetShiftState done [09:42:58]FM_GetShiftState done [09:42:58]req_shift_opened done [09:42:58]requested_item shift.open_date is exist - process it [09:42:58]req_shift_open_date [09:42:58]req_shift_open_date done [09:42:58]produce_requested_data done [09:42:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140051,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:42:58]process_action_free close_receipt [09:42:58]json_value_free [09:42:58]json_value_free done [09:42:58]process_json_proto returns [09:42:58]Send response to host [09:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140051,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:42:58]free response buf [09:42:58]execute_script done [09:42:58]execute_script returns [09:42:58]free content buf [09:42:58]Sock 7.Close socket [09:42:58]Sock 7.Thread stoped [09:42:59]accept exits with 9 [09:42:59]New connection [09:42:59]New thread 3066908004 created [09:42:59]Thread 3066764644 joined [09:42:59]Waiting for new connection... [09:42:59] Sock 9.Parse request [09:42:59]Sock 9.Check first char [09:42:59]Sock 9.First char is OK [09:42:59]request: POST /json_proto HTTP/1.0 [09:42:59]Method: POST [09:42:59]URL: /json_proto [09:42:59]Method is POST - this is cgi request [09:42:59]url: /json_proto [09:42:59]query_string will be loaded in cgi processing [09:42:59]execute_cgi json_proto POST (null) [09:42:59]execute_cgi path=json_proto method=POST [09:42:59]POST find Content-Length [09:42:59]Host: 172.17.45.67:8080 [09:42:59]Content-Length: 792 [09:42:59]Content-Type: application/json [09:42:59] [09:42:59]POST finish read [09:42:59]Found Content-Length = 792 [09:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:59]execute_script... [09:42: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)593906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 12.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:59]POST & json_proto [09:42:59]process_json_proto [09:42:59]json parsed OK: [09:42:59]protocol is kg_v1.0 [09:42:59]action value=close_receipt [09:42:59]process_action close_receipt [09:42:59]cmd_close_receipt [09:42:59]MH_GetDate [09:42:59]Write to MH i2c: F0 00 00 82 2B 9C [09:42:59]Write i2c OK [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: F0 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: F0 09 00 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: F0 09 00 82 2B 00 A6 B6 C5 66 5F 7F 2B 66 9B [09:42:59]GetLastDocTimeStamp 1724233377 [09:42:59]current date 1724233382 [09:42:59]FM_GetShiftState [09:42:59]SAM_PROTO_GetShiftState [09:42:59]wFMCommunicate request_size=4 [09:42:59]MH_SAM_APDU [09:42:59]CAPDU: 80 13 01 00 [09:42:59]Write to MH i2c: E2 08 00 83 2B 80 13 01 00 00 00 00 00 2B [09:42:59]Write i2c OK [09:42:59]MH_I2C_Read... [09:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:59]Read from MH i2c: E2 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: E2 0E 00 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: E2 0E 00 83 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AB [09:42:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:42:59]wFMCommunicate OK [09:42:59]SAM_PROTO_GetShiftState done [09:42:59]FM_GetShiftState done [09:42:59]opened in 1724200467 [09:42:59]opened+sec_in_day 1724286867 [09:42:59]quantity*price = 0 [09:42:59]sum+1 = 1 [09:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 69 21.08.2024 09:43 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 140052 ФПД: 132484193190399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140052&fm=132484193190399&tin=02508201610067®Number=0000000000092569&sum=0 [09:43:00]StoreToDocumentArchive [09:43:00]shift 454 fd 140052 [09:43:00]save to /storage/0454/doc_00140052 [09:43:00]save last doc name /storage/0454/doc_00140052 to /storage/kkm_last_doc_name [09:43:00]save OK [09:43:00]Clear old archive folders... [09:43:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:00]tlvbuf is 00B1F1A0 [09:43:00]SAM_PROTO_ClearQueue [09:43:00]wFMCommunicate request_size=4 [09:43:00]MH_SAM_APDU [09:43:00]CAPDU: 80 09 00 00 [09:43:00]Write to MH i2c: E2 08 00 91 2B 80 09 00 00 00 00 00 00 2E [09:43:00]Write i2c OK [09:43:00]MH_I2C_Read... [09:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:00]Read from MH i2c: E2 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 03 00 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [09:43:00]RAPDU: 90 00 [09:43:00]wFMCommunicate OK [09:43:00]SAM_PROTO_ClearQueue done [09:43:00]KKMCreateOFDPacket [09:43:00]OFDProtocolAddRootSTLVToBuf [09:43:00]FM_MakeSignedData [09:43:00]FM_MakeSignedData [09:43:00]SAM_PROTO_SignData [09:43:00]wFMCommunicate request_size=4 [09:43:00]MH_SAM_APDU [09:43:00]CAPDU: 80 0D 01 02 [09:43:00]Write to MH i2c: E2 08 00 92 2B 80 0D 01 02 00 00 00 00 36 [09:43:00]Write i2c OK [09:43:00]MH_I2C_Read... [09:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:00]Read from MH i2c: E2 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 03 00 [09:43:00]MH_I2C_Read... [09:43:00]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [09:43:00]RAPDU: 90 00 [09:43:00]wFMCommunicate OK [09:43:00]wFMCommunicate request_size=255 [09:43:00]MH_SAM_APDU [09:43: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 E0 2E 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 45 00 00 00 F4 03 04 00 A6 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 23 02 00 35 04 06 00 78 [09:43:00]Write to MH i2c: E2 02 01 93 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 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 45 00 00 00 F4 03 04 00 A6 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 23 02 00 35 04 06 00 78 00 00 9C [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [09:43:01]RAPDU: 90 00 [09:43:01]wFMCommunicate OK [09:43:01]wFMCommunicate request_size=10 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 0D 02 02 05 7E 61 46 01 FF [09:43:01]Write to MH i2c: E2 0D 00 94 2B 80 0D 02 02 05 00 7E 61 46 01 FF 00 00 68 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [09:43:01]RAPDU: 90 00 [09:43:01]wFMCommunicate OK [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 0D 03 02 [09:43:01]Write to MH i2c: E2 08 00 95 2B 80 0D 03 02 00 00 00 00 3B [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0B 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0B 00 95 2B 00 86 0B 88 62 C7 25 B5 5A 90 00 B2 [09:43:01]RAPDU: 86 0B 88 62 C7 25 B5 5A 90 00 [09:43:01]wFMCommunicate OK [09:43:01]SAM_PROTO_SignData done [09:43:01]FM_MakeSignedData done [09:43:01]CreateOFDProtocolMessage [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 11 00 00 [09:43:01]Write to MH i2c: E2 08 00 96 2B 80 11 00 00 00 00 00 00 3B [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 17 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 17 00 96 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [09:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:01]wFMCommunicate OK [09:43:01]CreateOFDProtocolMessage done [09:43:01]OFDSenderStorePacket 140052 [09:43:01]StoreOFDPacket docnum=140052 [09:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 C9 07 01 7F 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 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 45 00 00 00 F4 03 04 00 A6 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 23 02 00 35 04 06 00 78 7E 61 46 01 FF 86 0B 88 62 C7 25 B5 5A [09:43:01]CheckFolder [09:43:01]dirname=/storage/ofd_packets [09:43:01]CheckFolder done [09:43:01]ProducePacketName [09:43:01]name=ofd_packets/00140052 [09:43:01]NVStorageSaveData ofd_packets/00140052 [09:43:01]File name is /storage/ofd_packets/00140052 [09:43:01]Write 301 bytes [09:43:01]NVStorageSaveData done [09:43:01]OFDSenderStorePacket done [09:43:01]KKMCreateOFDPacket done [09:43:01]NVStorageSaveData kkm_last_timestamp [09:43:01]File name is /storage/kkm_last_timestamp [09:43:01]Write 4 bytes [09:43:01]NVStorageSaveData done [09:43:01]ExternCall_PrintAddStr [09:43:01]wPrintStart [09:43:01]Write to MH i2c: 01 00 00 97 2B C2 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: 01 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: 01 07 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: 01 07 00 97 2B 00 00 00 00 00 FF 0F D7 [09:43:01]RasterBufferAndPrint [09:43:01]line Счет N : (1)593906 [09:43:01]line ИНН: 02508201610067 [09:43:01]line Контрольно-Кассовый Чек [09:43:01]line ПРОДАЖА [09:43:01]line ТРК (МРК, ГНК) : 52 [09:43:01]line Товар: 2710124130 [09:43:01]line Аи-92-К-5 [09:43:01]line 12.000 * 0.00 [09:43:01]line = 0.00 [09:43:01]line НДС 12% НСП 1% [09:43:01]line > о реализуемом товаре [09:43:01]line ИТОГО: 0.00 [09:43:01]line НСП 1% : 0.00 [09:43:01]line НДС 12% : 0.00 [09:43:01]line Наличными: 0.00 [09:43:01]line Безнал.: 0.00 [09:43:01]line Место: АЗС № 136 "Партнер Нефть" [09:43:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:43:01]line СНО: Общий режим [09:43:01]line Чек 69 21.08.2024 09:43 [09:43:01]line Смена: 454 ФФД: 1.0 [09:43:01]line ЗНМ: 0300000067 [09:43:01]line РНМ: 0000000000092569 [09:43:01]line Версия ККМ: 001 [09:43:01]line Талоны: Топливная Карта [09:43:01]line 03824 [09:43:01]line ФМ: 0000000000871776 [09:43:01]line ФД: 140052 [09:43:01]line ФПД: 132484193190399 [09:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140052&fm=132484193190399&tin=02508201610067®Number=0000000000092569&sum=0 [09:43:01]OFD Sender: Processing packet 140052 [packets to send 137, broken 136] [09:43:01]ProducePacketName [09:43:01]name=ofd_packets/00140052 [09:43:01]OFD Sender: To server: pG, [09:43:01]CommunicateWithHost lk.salyk.kg:30040 [09:43:01]ConnectInit lk.salyk.kg [09:43:01]written 0, free lines is 4095 [09:43:02]Connected sock=10 [09:43: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 37 36 0F 01 00 00 26 C9 07 01 7F 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 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 45 00 00 00 F4 03 04 00 A6 B6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 23 02 00 35 04 06 00 78 7E 61 46 01 FF 86 0B 88 62 C7 25 B5 5A [09:43:02]Write to MH i2c: 01 00 00 C1 2B EC [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 07 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: 01 07 00 C1 2B 00 00 00 00 00 DD 0C DC [09:43:02]RasterBufferAndPrint [09:43:02]line [09:43:02]line [09:43:02]line [09:43:02]line [09:43:02]line [09:43:02]written 0, free lines is 3303 [09:43:02]MH_Cut [09:43:02]Write to MH i2c: D1 01 00 C8 2B 01 C5 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: D1 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: D1 01 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: D1 01 00 C8 2B 00 C4 [09:43:02]Write to MH i2c: 01 00 00 C9 2B F4 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43: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 37 36 4F 00 00 00 C4 44 47 00 EA 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 37 36 10 04 04 00 14 23 02 00 F4 03 04 00 38 5D C5 66 B6 04 01 00 00 80 71 BF 37 DF 7E 43 36 [09:43:02]CommunicateWithHost err = 0 [09:43:02]CheckOFDResponse [09:43:02]1017 (14) - 77093643461234 [09:43:02]1041 (16) - 0000000000871776 [09:43:02]1040 (4) - 140052 [09:43:02]1012 (4) - 21.08.2024 03:21 [09:43:02]1206 (1) - 0 [09:43:02]OFD Sender: Remove packet 140052 [09:43:02]ProducePacketName [09:43:02]name=ofd_packets/00140052 [09:43:02]NVStorageDeleteData [09:43:02]OFD Sender: No OFD packet to send [09:43:02]*** Cut start [09:43:02]*** Partial cut [09:43:02]*** CUTSNS_PIN = 1 [09:43:03]*** CUTSNS_PIN = 0 [09:43:03]*** Brake cut motor [09:43:03]Read from MH i2c: 01 [09:43:03]MH_I2C_Read... [09:43:03]*** Stop cut motor [09:43:03]*** Cut end [09:43:03]Read from MH i2c: 01 07 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: 01 07 00 C9 2B 00 00 00 00 00 FF 0F 09 [09:43:03]process_action close_receipt done [09:43:03]requested_data is exist [09:43:03]produce_requested_data [09:43:03]requested_item fm.sn is exist - process it [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 11 00 00 [09:43:03]Write to MH i2c: E2 08 00 CA 2B 80 11 00 00 00 00 00 00 6F [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 17 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 17 00 CA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [09:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:43:03]wFMCommunicate OK [09:43:03]requested_item fd.num is exist - process it [09:43:03]SAM_PROTO_GetFieldsCounters [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 13 00 00 [09:43:03]Write to MH i2c: E2 08 00 CB 2B 80 13 00 00 00 00 00 00 72 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 62 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 62 00 CB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:03]wFMCommunicate OK [09:43:03]SAM_PROTO_GetFieldsCounters done [09:43:03]requested_item shift.num is exist - process it [09:43:03]requested_item shift.opened is exist - process it [09:43:03]req_shift_opened [09:43:03]FM_GetShiftState [09:43:03]SAM_PROTO_GetShiftState [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 13 01 00 [09:43:03]Write to MH i2c: E2 08 00 CC 2B 80 13 01 00 00 00 00 00 74 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 0E 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 0E 00 CC 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F4 [09:43:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:43:03]wFMCommunicate OK [09:43:03]SAM_PROTO_GetShiftState done [09:43:03]FM_GetShiftState done [09:43:03]req_shift_opened done [09:43:03]requested_item shift.open_date is exist - process it [09:43:03]req_shift_open_date [09:43:03]req_shift_open_date done [09:43:03]produce_requested_data done [09:43:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140052,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:43:03]process_action_free close_receipt [09:43:03]json_value_free [09:43:03]json_value_free done [09:43:03]process_json_proto returns [09:43:03]Send response to host [09:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140052,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:43:03]free response buf [09:43:03]execute_script done [09:43:03]execute_script returns [09:43:03]free content buf [09:43:03]Sock 9.Close socket [09:43:03]Sock 9.Thread stoped [09:43:07]int [09:43:07]Write to MH i2c: 01 00 00 CD 2B F8 [09:43:07]*** FLAG_PRN_KEY set [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 CD 2B 00 08 00 00 00 FF 0F 15 [09:43:07]state=0 [09:43:07]Key pressed [09:43:07]Feed [09:43:07]Write to MH i2c: D8 00 00 CE 2B D0 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D8 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D8 01 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D8 01 00 CE 2B 00 D1 [09:43:07]int [09:43:07]Write to MH i2c: 01 00 00 CF 2B FA [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]OFD Sender: No OFD packet to send [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 CF 2B 00 48 00 00 00 3C 00 85 [09:43:07]state=2 [09:43:07]Key pressed [09:43:07]int [09:43:07]Write to MH i2c: 01 00 00 D0 2B FB [09:43:07]*** FLAG_PRN_KEY reset [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 D0 2B 00 00 00 00 00 F7 0F 08 [09:43:07]state=2 [09:43:07]Stop feed [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:33]accept exits with 7 [09:44:33]New connection [09:44:33]New thread 3066764644 created [09:44:33]Thread 3066908004 joined [09:44:33]Waiting for new connection... [09:44:33] Sock 7.Parse request [09:44:33]Sock 7.Check first char [09:44:33]Sock 7.First char is OK [09:44:33]request: POST /json_proto HTTP/1.0 [09:44:33]Method: POST [09:44:33]URL: /json_proto [09:44:33]Method is POST - this is cgi request [09:44:33]url: /json_proto [09:44:33]query_string will be loaded in cgi processing [09:44:33]execute_cgi json_proto POST (null) [09:44:33]execute_cgi path=json_proto method=POST [09:44:33]POST find Content-Length [09:44:33]Host: 172.17.45.67:8080 [09:44:33]Content-Length: 797 [09:44:33]Content-Type: application/json [09:44:33] [09:44:33]POST finish read [09:44:33]Found Content-Length = 797 [09:44:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:33]execute_script... [09:44: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)593907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:33]POST & json_proto [09:44:33]process_json_proto [09:44:33]json parsed OK: [09:44:33]protocol is kg_v1.0 [09:44:33]action value=close_receipt [09:44:33]process_action close_receipt [09:44:33]cmd_close_receipt [09:44:33]MH_GetDate [09:44:33]Write to MH i2c: F0 00 00 D1 2B EB [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: F0 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: F0 09 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: F0 09 00 D1 2B 00 04 B7 C5 66 5F 7F 2B 66 49 [09:44:33]GetLastDocTimeStamp 1724233382 [09:44:33]current date 1724233476 [09:44:33]FM_GetShiftState [09:44:33]SAM_PROTO_GetShiftState [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 13 01 00 [09:44:33]Write to MH i2c: E2 08 00 D2 2B 80 13 01 00 00 00 00 00 7A [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0E 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0E 00 D2 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FA [09:44:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:44:33]wFMCommunicate OK [09:44:33]SAM_PROTO_GetShiftState done [09:44:33]FM_GetShiftState done [09:44:33]opened in 1724200467 [09:44:33]opened+sec_in_day 1724286867 [09:44:33]quantity*price = 0 [09:44:33]sum+1 = 1 [09:44:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 70 21.08.2024 09:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 140053 ФПД: 180948058785556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140053&fm=180948058785556&tin=02508201610067®Number=0000000000092569&sum=0 [09:44:34]StoreToDocumentArchive [09:44:34]shift 454 fd 140053 [09:44:34]save to /storage/0454/doc_00140053 [09:44:34]save last doc name /storage/0454/doc_00140053 to /storage/kkm_last_doc_name [09:44:34]save OK [09:44:34]Clear old archive folders... [09:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:44:34]tlvbuf is 00A67D60 [09:44:34]SAM_PROTO_ClearQueue [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 09 00 00 [09:44:34]Write to MH i2c: E2 08 00 DF 2B 80 09 00 00 00 00 00 00 7C [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]SAM_PROTO_ClearQueue done [09:44:34]KKMCreateOFDPacket [09:44:34]OFDProtocolAddRootSTLVToBuf [09:44:34]FM_MakeSignedData [09:44:34]FM_MakeSignedData [09:44:34]SAM_PROTO_SignData [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 01 02 [09:44:34]Write to MH i2c: E2 08 00 E0 2B 80 0D 01 02 00 00 00 00 84 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=255 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 46 00 00 00 F4 03 04 00 04 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 23 02 00 35 04 06 00 [09:44:34]Write to MH i2c: E2 02 01 E1 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 46 00 00 00 F4 03 04 00 04 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 23 02 00 35 04 06 00 00 00 6E [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 E1 2B 00 90 00 80 [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=11 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 02 02 06 A4 92 40 C4 47 14 [09:44:34]Write to MH i2c: E2 0E 00 E2 2B 80 0D 02 02 06 00 A4 92 40 C4 47 14 00 00 28 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 E2 2B 00 90 00 81 [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 03 02 [09:44:34]Write to MH i2c: E2 08 00 E3 2B 80 0D 03 02 00 00 00 00 89 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:35]Read from MH i2c: E2 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 0B 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 0B 00 E3 2B 00 4A 1D 12 00 BE 88 DB 2D 90 00 51 [09:44:35]RAPDU: 4A 1D 12 00 BE 88 DB 2D 90 00 [09:44:35]wFMCommunicate OK [09:44:35]SAM_PROTO_SignData done [09:44:35]FM_MakeSignedData done [09:44:35]CreateOFDProtocolMessage [09:44:35]wFMCommunicate request_size=4 [09:44:35]MH_SAM_APDU [09:44:35]CAPDU: 80 11 00 00 [09:44:35]Write to MH i2c: E2 08 00 E4 2B 80 11 00 00 00 00 00 00 89 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:35]Read from MH i2c: E2 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 17 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: E2 17 00 E4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [09:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:44:35]wFMCommunicate OK [09:44:35]CreateOFDProtocolMessage done [09:44:35]OFDSenderStorePacket 140053 [09:44:35]StoreOFDPacket docnum=140053 [09:44:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 46 83 08 01 49 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 46 00 00 00 F4 03 04 00 04 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 23 02 00 35 04 06 00 A4 92 40 C4 47 14 4A 1D 12 00 BE 88 DB 2D [09:44:35]CheckFolder [09:44:35]dirname=/storage/ofd_packets [09:44:35]CheckFolder done [09:44:35]ProducePacketName [09:44:35]name=ofd_packets/00140053 [09:44:35]NVStorageSaveData ofd_packets/00140053 [09:44:35]File name is /storage/ofd_packets/00140053 [09:44:35]Write 302 bytes [09:44:35]NVStorageSaveData done [09:44:35]OFDSenderStorePacket done [09:44:35]KKMCreateOFDPacket done [09:44:35]NVStorageSaveData kkm_last_timestamp [09:44:35]File name is /storage/kkm_last_timestamp [09:44:35]Write 4 bytes [09:44:35]NVStorageSaveData done [09:44:35]ExternCall_PrintAddStr [09:44:35]wPrintStart [09:44:35]Write to MH i2c: 01 00 00 E5 2B 10 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 E5 2B 00 00 00 00 00 FF 0F 25 [09:44:35]RasterBufferAndPrint [09:44:35]line Счет N : (1)593907 [09:44:35]line ИНН: 02508201610067 [09:44:35]line Контрольно-Кассовый Чек [09:44:35]line ПРОДАЖА [09:44:35]line ТРК (МРК, ГНК) : 64 [09:44:35]line Товар: 2710194210 [09:44:35]line ДТ(л)-К-5 [09:44:35]line 20.000 * 0.00 [09:44:35]line = 0.00 [09:44:35]line НДС 12% НСП 1% [09:44:35]line > о реализуемом товаре [09:44:35]line ИТОГО: 0.00 [09:44:35]line НСП 1% : 0.00 [09:44:35]line НДС 12% : 0.00 [09:44:35]line Наличными: 0.00 [09:44:35]line Безнал.: 0.00 [09:44:35]line Место: АЗС № 136 "Партнер Нефть" [09:44:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:44:35]line СНО: Общий режим [09:44:35]line Чек 70 21.08.2024 09:44 [09:44:35]line Смена: 454 ФФД: 1.0 [09:44:35]line ЗНМ: 0300000067 [09:44:35]line РНМ: 0000000000092569 [09:44:35]line Версия ККМ: 001 [09:44:35]line Талоны: Топливная Карта [09:44:35]line 03824 [09:44:35]line ФМ: 0000000000871776 [09:44:35]line ФД: 140053 [09:44:35]line ФПД: 180948058785556 [09:44:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140053&fm=180948058785556&tin=02508201610067®Number=0000000000092569&sum=0 [09:44:35]written 0, free lines is 4095 [09:44:35]OFD Sender: Processing packet 140053 [packets to send 137, broken 136] [09:44:35]ProducePacketName [09:44:35]name=ofd_packets/00140053 [09:44:35]OFD Sender: To server: pG, [09:44:35]CommunicateWithHost lk.salyk.kg:30040 [09:44:35]ConnectInit lk.salyk.kg [09:44:35]Write to MH i2c: 01 00 00 0F 2C 3B [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 E2 0C 30 [09:44:35]RasterBufferAndPrint [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]written 0, free lines is 3305 [09:44:35]MH_Cut [09:44:35]Write to MH i2c: D1 01 00 16 2C 01 14 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 01 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 01 00 16 2C 00 13 [09:44:35]Write to MH i2c: 01 00 00 17 2C 43 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Connected sock=10 [09:44: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 37 36 10 01 00 00 46 83 08 01 49 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 46 00 00 00 F4 03 04 00 04 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 23 02 00 35 04 06 00 A4 92 40 C4 47 14 4A 1D 12 00 BE 88 DB 2D [09:44: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 37 36 4F 00 00 00 7B 32 47 00 D9 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 37 36 10 04 04 00 15 23 02 00 F4 03 04 00 95 5D C5 66 B6 04 01 00 00 AF 08 98 14 F7 7A 55 9B [09:44:35]CommunicateWithHost err = 0 [09:44:35]CheckOFDResponse [09:44:35]1017 (14) - 77093643461234 [09:44:35]1041 (16) - 0000000000871776 [09:44:35]1040 (4) - 140053 [09:44:35]1012 (4) - 21.08.2024 03:23 [09:44:35]1206 (1) - 0 [09:44:35]OFD Sender: Remove packet 140053 [09:44:35]ProducePacketName [09:44:35]name=ofd_packets/00140053 [09:44:35]NVStorageDeleteData [09:44:36]*** Cut start [09:44:36]*** Partial cut [09:44:36]*** CUTSNS_PIN = 1 [09:44:36]*** CUTSNS_PIN = 0 [09:44:36]OFD Sender: No OFD packet to send [09:44:36]*** Brake cut motor [09:44:36]Read from MH i2c: 01 [09:44:36]MH_I2C_Read... [09:44:36]*** Stop cut motor [09:44:36]*** Cut end [09:44:36]Read from MH i2c: 01 07 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: 01 07 00 17 2C 00 00 00 00 00 FF 0F 58 [09:44:36]process_action close_receipt done [09:44:36]requested_data is exist [09:44:36]produce_requested_data [09:44:36]requested_item fm.sn is exist - process it [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 11 00 00 [09:44:36]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 17 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [09:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:44:36]wFMCommunicate OK [09:44:36]requested_item fd.num is exist - process it [09:44:36]SAM_PROTO_GetFieldsCounters [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 13 00 00 [09:44:36]Write to MH i2c: E2 08 00 19 2C 80 13 00 00 00 00 00 00 C1 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 62 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 62 00 19 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [09:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:37]wFMCommunicate OK [09:44:37]SAM_PROTO_GetFieldsCounters done [09:44:37]requested_item shift.num is exist - process it [09:44:37]requested_item shift.opened is exist - process it [09:44:37]req_shift_opened [09:44:37]FM_GetShiftState [09:44:37]SAM_PROTO_GetShiftState [09:44:37]wFMCommunicate request_size=4 [09:44:37]MH_SAM_APDU [09:44:37]CAPDU: 80 13 01 00 [09:44:37]Write to MH i2c: E2 08 00 1A 2C 80 13 01 00 00 00 00 00 C3 [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 [09:44:37]MH_I2C_Read... [09:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:37]Read from MH i2c: E2 0E 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: E2 0E 00 1A 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [09:44:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:44:37]wFMCommunicate OK [09:44:37]SAM_PROTO_GetShiftState done [09:44:37]FM_GetShiftState done [09:44:37]req_shift_opened done [09:44:37]requested_item shift.open_date is exist - process it [09:44:37]req_shift_open_date [09:44:37]req_shift_open_date done [09:44:37]produce_requested_data done [09:44:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140053,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:44:37]process_action_free close_receipt [09:44:37]json_value_free [09:44:37]json_value_free done [09:44:37]process_json_proto returns [09:44:37]Send response to host [09:44:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140053,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:44:37]free response buf [09:44:37]execute_script done [09:44:37]execute_script returns [09:44:37]free content buf [09:44:37]Sock 7.Close socket [09:44:37]Sock 7.Thread stoped [09:44:37]int [09:44:37]Write to MH i2c: 01 00 00 1B 2C 47 [09:44:37]*** FLAG_PRN_KEY set [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 1B 2C 00 08 00 00 00 FF 0F 64 [09:44:37]state=0 [09:44:37]Key pressed [09:44:37]Feed [09:44:37]Write to MH i2c: D8 00 00 1C 2C 1F [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: D8 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: D8 01 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: D8 01 00 1C 2C 00 20 [09:44:37]int [09:44:37]Write to MH i2c: 01 00 00 1D 2C 49 [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 1D 2C 00 48 00 00 00 3C 00 D4 [09:44:37]state=2 [09:44:37]Key pressed [09:44:37]int [09:44:37]Write to MH i2c: 01 00 00 1E 2C 4A [09:44:37]*** FLAG_PRN_KEY reset [09:44:37]Write i2c OK [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 [09:44:37]MH_I2C_Read... [09:44:37]Read from MH i2c: 01 07 00 1E 2C 00 00 00 00 00 FC 0F 5C [09:44:37]state=2 [09:44:37]Stop feed [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:52]accept exits with 9 [09:45:52]New connection [09:45:52]New thread 3066908004 created [09:45:52]Thread 3066764644 joined [09:45:52]Waiting for new connection... [09:45:52] Sock 9.Parse request [09:45:52]Sock 9.Check first char [09:45:52]Sock 9.First char is OK [09:45:52]request: POST /json_proto HTTP/1.0 [09:45:52]Method: POST [09:45:52]URL: /json_proto [09:45:52]Method is POST - this is cgi request [09:45:52]url: /json_proto [09:45:52]query_string will be loaded in cgi processing [09:45:52]execute_cgi json_proto POST (null) [09:45:52]execute_cgi path=json_proto method=POST [09:45:52]POST find Content-Length [09:45:52]Host: 172.17.45.67:8080 [09:45:52]Content-Length: 678 [09:45:52]Content-Type: application/json [09:45:52] [09:45:52]POST finish read [09:45:52]Found Content-Length = 678 [09:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:52]execute_script... [09:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:52]POST & json_proto [09:45:52]process_json_proto [09:45:52]json parsed OK: [09:45:52]protocol is kg_v1.0 [09:45:52]action value=close_receipt [09:45:52]process_action close_receipt [09:45:52]cmd_close_receipt [09:45:52]MH_GetDate [09:45:52]Write to MH i2c: F0 00 00 1F 2C 3A [09:45:52]Write i2c OK [09:45:52]MH_I2C_Read... [09:45:52]Read from MH i2c: F0 [09:45:52]MH_I2C_Read... [09:45:52]Read from MH i2c: F0 09 00 [09:45:52]MH_I2C_Read... [09:45:52]Read from MH i2c: F0 09 00 1F 2C 00 53 B7 C5 66 5F 7F 2B 66 E7 [09:45:52]GetLastDocTimeStamp 1724233476 [09:45:52]current date 1724233555 [09:45:52]FM_GetShiftState [09:45:52]SAM_PROTO_GetShiftState [09:45:52]wFMCommunicate request_size=4 [09:45:52]MH_SAM_APDU [09:45:52]CAPDU: 80 13 01 00 [09:45:52]Write to MH i2c: E2 08 00 20 2C 80 13 01 00 00 00 00 00 C9 [09:45:52]Write i2c OK [09:45:52]MH_I2C_Read... [09:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:52]Read from MH i2c: E2 [09:45:52]MH_I2C_Read... [09:45:52]Read from MH i2c: E2 0E 00 [09:45:52]MH_I2C_Read... [09:45:52]Read from MH i2c: E2 0E 00 20 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 49 [09:45:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:45:52]wFMCommunicate OK [09:45:52]SAM_PROTO_GetShiftState done [09:45:52]FM_GetShiftState done [09:45:52]opened in 1724200467 [09:45:52]opened+sec_in_day 1724286867 [09:45:52]quantity*price = 90038 [09:45:52]sum+1 = 90039 [09:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 71 21.08.2024 09:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140054 ФПД: 74352752724139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140054&fm=74352752724139&tin=02508201610067®Number=0000000000092569&sum=90000 [09:45:53]StoreToDocumentArchive [09:45:53]shift 454 fd 140054 [09:45:53]save to /storage/0454/doc_00140054 [09:45:53]save last doc name /storage/0454/doc_00140054 to /storage/kkm_last_doc_name [09:45:53]save OK [09:45:53]Clear old archive folders... [09:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:53]tlvbuf is 00A56A50 [09:45:53]SAM_PROTO_ClearQueue [09:45:53]wFMCommunicate request_size=4 [09:45:53]MH_SAM_APDU [09:45:53]CAPDU: 80 09 00 00 [09:45:53]Write to MH i2c: E2 08 00 2D 2C 80 09 00 00 00 00 00 00 CB [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 2D 2C 00 90 00 CD [09:45:53]RAPDU: 90 00 [09:45:53]wFMCommunicate OK [09:45:53]SAM_PROTO_ClearQueue done [09:45:53]KKMCreateOFDPacket [09:45:53]OFDProtocolAddRootSTLVToBuf [09:45:53]FM_MakeSignedData [09:45:53]FM_MakeSignedData [09:45:53]SAM_PROTO_SignData [09:45:53]wFMCommunicate request_size=4 [09:45:53]MH_SAM_APDU [09:45:53]CAPDU: 80 0D 01 02 [09:45:53]Write to MH i2c: E2 08 00 2E 2C 80 0D 01 02 00 00 00 00 D3 [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 2E 2C 00 90 00 CE [09:45:53]RAPDU: 90 00 [09:45:53]wFMCommunicate OK [09:45:53]wFMCommunicate request_size=255 [09:45:53]MH_SAM_APDU [09:45: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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 23 02 00 35 04 06 00 43 [09:45:53]Write to MH i2c: E2 02 01 2F 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 23 02 00 35 04 06 00 43 00 00 E6 [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 2F 2C 00 90 00 CF [09:45:53]RAPDU: 90 00 [09:45:53]wFMCommunicate OK [09:45:53]wFMCommunicate request_size=10 [09:45:53]MH_SAM_APDU [09:45:53]CAPDU: 80 0D 02 02 05 9F 99 6A 08 AB [09:45:53]Write to MH i2c: E2 0D 00 30 2C 80 0D 02 02 05 00 9F 99 6A 08 AB 00 00 35 [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 03 00 30 2C 00 90 00 D0 [09:45:53]RAPDU: 90 00 [09:45:53]wFMCommunicate OK [09:45:53]wFMCommunicate request_size=4 [09:45:53]MH_SAM_APDU [09:45:53]CAPDU: 80 0D 03 02 [09:45:53]Write to MH i2c: E2 08 00 31 2C 80 0D 03 02 00 00 00 00 D8 [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 0B 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 0B 00 31 2C 00 2A 40 3F 76 E9 73 BA 0C 90 00 1A [09:45:53]RAPDU: 2A 40 3F 76 E9 73 BA 0C 90 00 [09:45:53]wFMCommunicate OK [09:45:53]SAM_PROTO_SignData done [09:45:53]FM_MakeSignedData done [09:45:53]CreateOFDProtocolMessage [09:45:53]wFMCommunicate request_size=4 [09:45:53]MH_SAM_APDU [09:45:53]CAPDU: 80 11 00 00 [09:45:53]Write to MH i2c: E2 08 00 32 2C 80 11 00 00 00 00 00 00 D8 [09:45:53]Write i2c OK [09:45:53]MH_I2C_Read... [09:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:53]Read from MH i2c: E2 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 17 00 [09:45:53]MH_I2C_Read... [09:45:53]Read from MH i2c: E2 17 00 32 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [09:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:45:53]wFMCommunicate OK [09:45:53]CreateOFDProtocolMessage done [09:45:53]OFDSenderStorePacket 140054 [09:45:53]StoreOFDPacket docnum=140054 [09:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 59 07 01 00 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 23 02 00 35 04 06 00 43 9F 99 6A 08 AB 2A 40 3F 76 E9 73 BA 0C [09:45:53]CheckFolder [09:45:53]dirname=/storage/ofd_packets [09:45:53]CheckFolder done [09:45:53]ProducePacketName [09:45:53]name=ofd_packets/00140054 [09:45:53]NVStorageSaveData ofd_packets/00140054 [09:45:53]File name is /storage/ofd_packets/00140054 [09:45:53]Write 301 bytes [09:45:53]NVStorageSaveData done [09:45:53]OFDSenderStorePacket done [09:45:53]KKMCreateOFDPacket done [09:45:53]NVStorageSaveData kkm_last_timestamp [09:45:53]File name is /storage/kkm_last_timestamp [09:45:53]Write 4 bytes [09:45:53]NVStorageSaveData done [09:45:54]ExternCall_PrintAddStr [09:45:54]wPrintStart [09:45:54]Write to MH i2c: 01 00 00 33 2C 5F [09:45:54]Write i2c OK [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 07 00 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 07 00 33 2C 00 00 00 00 00 FF 0F 74 [09:45:54]RasterBufferAndPrint [09:45:54]line Счет N : (1)593908 [09:45:54]line ИНН: 02508201610067 [09:45:54]line Контрольно-Кассовый Чек [09:45:54]line ПРОДАЖА [09:45:54]line ТРК (МРК, ГНК) : 52 [09:45:54]line Товар: 2710124130 [09:45:54]line Аи-92-К-5 [09:45:54]line 13.280 * 67.80 [09:45:54]line = 900.38 [09:45:54]line НДС 12% НСП 1% [09:45:54]line > о реализуемом товаре [09:45:54]line ОКРУГЛЕНИЕ: -0.38 [09:45:54]line ИТОГО: 900.00 [09:45:54]line Внесено: 900.00 [09:45:54]line СДАЧА: 0.00 [09:45:54]line НСП 1% : 7.97 [09:45:54]line НДС 12% : 95.62 [09:45:54]line Наличными: 900.00 [09:45:54]line Безнал.: 0.00 [09:45:54]line Место: АЗС № 136 "Партнер Нефть" [09:45:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:45:54]line СНО: Общий режим [09:45:54]line Чек 71 21.08.2024 09:45 [09:45:54]line Смена: 454 ФФД: 1.0 [09:45:54]line ЗНМ: 0300000067 [09:45:54]line РНМ: 0000000000092569 [09:45:54]line Версия ККМ: 001 [09:45:54]line ФМ: 0000000000871776 [09:45:54]line ФД: 140054 [09:45:54]line ФПД: 74352752724139 [09:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140054&fm=74352752724139&tin=02508201610067®Number=0000000000092569&sum=90000 [09:45:54]OFD Sender: Processing packet 140054 [packets to send 137, broken 136] [09:45:54]ProducePacketName [09:45:54]name=ofd_packets/00140054 [09:45:54]OFD Sender: To server: pG, [09:45:54]CommunicateWithHost lk.salyk.kg:30040 [09:45:54]ConnectInit lk.salyk.kg [09:45:54]written 0, free lines is 4095 [09:45:54]Connected sock=10 [09:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 59 07 01 00 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 23 02 00 35 04 06 00 43 9F 99 6A 08 AB 2A 40 3F 76 E9 73 BA 0C [09:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 89 21 47 00 C8 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 37 36 10 04 04 00 16 23 02 00 F4 03 04 00 E4 5D C5 66 B6 04 01 00 00 15 7E 34 4F C7 D5 74 4E [09:45:54]CommunicateWithHost err = 0 [09:45:54]CheckOFDResponse [09:45:54]1017 (14) - 77093643461234 [09:45:54]1041 (16) - 0000000000871776 [09:45:54]1040 (4) - 140054 [09:45:54]1012 (4) - 21.08.2024 03:24 [09:45:54]1206 (1) - 0 [09:45:54]OFD Sender: Remove packet 140054 [09:45:54]ProducePacketName [09:45:54]name=ofd_packets/00140054 [09:45:54]NVStorageDeleteData [09:45:54]Write to MH i2c: 01 00 00 5E 2C 8A [09:45:54]Write i2c OK [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 07 00 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: 01 07 00 5E 2C 00 00 00 00 00 E4 0C 81 [09:45:54]RasterBufferAndPrint [09:45:54]line [09:45:54]line [09:45:54]line [09:45:54]line [09:45:54]line [09:45:54]written 0, free lines is 3306 [09:45:54]MH_Cut [09:45:54]Write to MH i2c: D1 01 00 65 2C 01 63 [09:45:54]Write i2c OK [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: D1 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: D1 01 00 [09:45:54]MH_I2C_Read... [09:45:54]Read from MH i2c: D1 01 00 65 2C 00 62 [09:45:54]Write to MH i2c: 01 00 00 66 2C 92 [09:45:54]Write i2c OK [09:45:54]MH_I2C_Read... [09:45:55]OFD Sender: No OFD packet to send [09:45:55]*** Cut start [09:45:55]*** Partial cut [09:45:55]*** CUTSNS_PIN = 1 [09:45:55]*** CUTSNS_PIN = 0 [09:45:55]*** Brake cut motor [09:45:56]Read from MH i2c: 01 [09:45:56]MH_I2C_Read... [09:45:56]*** Stop cut motor [09:45:56]*** Cut end [09:45:56]Read from MH i2c: 01 07 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: 01 07 00 66 2C 00 00 00 00 00 FF 0F A7 [09:45:56]process_action close_receipt done [09:45:56]requested_data is exist [09:45:56]produce_requested_data [09:45:56]requested_item fm.sn is exist - process it [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 11 00 00 [09:45:56]Write to MH i2c: E2 08 00 67 2C 80 11 00 00 00 00 00 00 0D [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 17 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 17 00 67 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [09:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:45:56]wFMCommunicate OK [09:45:56]requested_item fd.num is exist - process it [09:45:56]SAM_PROTO_GetFieldsCounters [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 13 00 00 [09:45:56]Write to MH i2c: E2 08 00 68 2C 80 13 00 00 00 00 00 00 10 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 62 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 62 00 68 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:56]wFMCommunicate OK [09:45:56]SAM_PROTO_GetFieldsCounters done [09:45:56]requested_item shift.num is exist - process it [09:45:56]requested_item shift.opened is exist - process it [09:45:56]req_shift_opened [09:45:56]FM_GetShiftState [09:45:56]SAM_PROTO_GetShiftState [09:45:56]wFMCommunicate request_size=4 [09:45:56]MH_SAM_APDU [09:45:56]CAPDU: 80 13 01 00 [09:45:56]Write to MH i2c: E2 08 00 69 2C 80 13 01 00 00 00 00 00 12 [09:45:56]Write i2c OK [09:45:56]MH_I2C_Read... [09:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:56]Read from MH i2c: E2 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 0E 00 [09:45:56]MH_I2C_Read... [09:45:56]Read from MH i2c: E2 0E 00 69 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 92 [09:45:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:45:56]wFMCommunicate OK [09:45:56]SAM_PROTO_GetShiftState done [09:45:56]FM_GetShiftState done [09:45:56]req_shift_opened done [09:45:56]requested_item shift.open_date is exist - process it [09:45:56]req_shift_open_date [09:45:56]req_shift_open_date done [09:45:56]produce_requested_data done [09:45:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140054,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:45:56]process_action_free close_receipt [09:45:56]json_value_free [09:45:56]json_value_free done [09:45:56]process_json_proto returns [09:45:56]Send response to host [09:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140054,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:45:56]free response buf [09:45:56]execute_script done [09:45:56]execute_script returns [09:45:56]free content buf [09:45:56]Sock 9.Close socket [09:45:56]Sock 9.Thread stoped [09:45:58]int [09:45:58]Write to MH i2c: 01 00 00 6A 2C 96 [09:45:58]*** FLAG_PRN_KEY set [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 07 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 07 00 6A 2C 00 08 00 00 00 FF 0F B3 [09:45:58]state=0 [09:45:58]Key pressed [09:45:58]Feed [09:45:58]Write to MH i2c: D8 00 00 6B 2C 6E [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: D8 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: D8 01 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: D8 01 00 6B 2C 00 6F [09:45:58]int [09:45:58]Write to MH i2c: 01 00 00 6C 2C 98 [09:45:58]Write i2c OK [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 07 00 [09:45:58]MH_I2C_Read... [09:45:58]Read from MH i2c: 01 07 00 6C 2C 00 48 00 00 00 3C 00 23 [09:45:58]state=2 [09:45:58]Key pressed [09:45:59]int [09:45:59]Write to MH i2c: 01 00 00 6D 2C 99 [09:45:59]*** FLAG_PRN_KEY reset [09:45:59]Write i2c OK [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: 01 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: 01 07 00 [09:45:59]MH_I2C_Read... [09:45:59]Read from MH i2c: 01 07 00 6D 2C 00 00 00 00 00 FB 0F AA [09:45:59]state=2 [09:45:59]Stop feed [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:50]accept exits with 7 [09:46:50]New connection [09:46:50]New thread 3066764644 created [09:46:50]Thread 3066908004 joined [09:46:50]Waiting for new connection... [09:46:50] Sock 7.Parse request [09:46:50]Sock 7.Check first char [09:46:50]Sock 7.First char is OK [09:46:50]request: POST /json_proto HTTP/1.0 [09:46:50]Method: POST [09:46:50]URL: /json_proto [09:46:50]Method is POST - this is cgi request [09:46:50]url: /json_proto [09:46:50]query_string will be loaded in cgi processing [09:46:50]execute_cgi json_proto POST (null) [09:46:50]execute_cgi path=json_proto method=POST [09:46:50]POST find Content-Length [09:46:50]Host: 172.17.45.67:8080 [09:46:50]Content-Length: 792 [09:46:50]Content-Type: application/json [09:46:50] [09:46:50]POST finish read [09:46:50]Found Content-Length = 792 [09:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:50]execute_script... [09:46: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)593909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:50]POST & json_proto [09:46:50]process_json_proto [09:46:50]json parsed OK: [09:46:50]protocol is kg_v1.0 [09:46:50]action value=close_receipt [09:46:50]process_action close_receipt [09:46:50]cmd_close_receipt [09:46:50]MH_GetDate [09:46:50]Write to MH i2c: F0 00 00 6E 2C 89 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: F0 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: F0 09 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: F0 09 00 6E 2C 00 8D B7 C5 66 5F 7F 2B 66 70 [09:46:50]GetLastDocTimeStamp 1724233555 [09:46:50]current date 1724233613 [09:46:50]FM_GetShiftState [09:46:50]SAM_PROTO_GetShiftState [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 13 01 00 [09:46:50]Write to MH i2c: E2 08 00 6F 2C 80 13 01 00 00 00 00 00 18 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0E 00 6F 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [09:46:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_GetShiftState done [09:46:50]FM_GetShiftState done [09:46:50]opened in 1724200467 [09:46:50]opened+sec_in_day 1724286867 [09:46:50]quantity*price = 0 [09:46:50]sum+1 = 1 [09:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 72 21.08.2024 09:46 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 140055 ФПД: 95689905284146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140055&fm=95689905284146&tin=02508201610067®Number=0000000000092569&sum=0 [09:46:51]StoreToDocumentArchive [09:46:51]shift 454 fd 140055 [09:46:51]save to /storage/0454/doc_00140055 [09:46:51]save last doc name /storage/0454/doc_00140055 to /storage/kkm_last_doc_name [09:46:51]save OK [09:46:51]Clear old archive folders... [09:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:51]tlvbuf is 00A81700 [09:46:51]SAM_PROTO_ClearQueue [09:46:51]wFMCommunicate request_size=4 [09:46:51]MH_SAM_APDU [09:46:51]CAPDU: 80 09 00 00 [09:46:51]Write to MH i2c: E2 08 00 7C 2C 80 09 00 00 00 00 00 00 1A [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:51]Read from MH i2c: E2 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 03 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 03 00 7C 2C 00 90 00 1C [09:46:51]RAPDU: 90 00 [09:46:51]wFMCommunicate OK [09:46:51]SAM_PROTO_ClearQueue done [09:46:51]KKMCreateOFDPacket [09:46:51]OFDProtocolAddRootSTLVToBuf [09:46:51]FM_MakeSignedData [09:46:51]FM_MakeSignedData [09:46:51]SAM_PROTO_SignData [09:46:51]wFMCommunicate request_size=4 [09:46:51]MH_SAM_APDU [09:46:51]CAPDU: 80 0D 01 02 [09:46:51]Write to MH i2c: E2 08 00 7D 2C 80 0D 01 02 00 00 00 00 22 [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:51]Read from MH i2c: E2 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 03 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: E2 03 00 7D 2C 00 90 00 1D [09:46:51]RAPDU: 90 00 [09:46:51]wFMCommunicate OK [09:46:51]wFMCommunicate request_size=255 [09:46:51]MH_SAM_APDU [09:46: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 C8 32 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 48 00 00 00 F4 03 04 00 8D B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 23 02 00 35 04 06 00 57 [09:46:51]Write to MH i2c: E2 02 01 7E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 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 48 00 00 00 F4 03 04 00 8D B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 23 02 00 35 04 06 00 57 00 00 41 [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 03 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 03 00 7E 2C 00 90 00 1E [09:46:52]RAPDU: 90 00 [09:46:52]wFMCommunicate OK [09:46:52]wFMCommunicate request_size=10 [09:46:52]MH_SAM_APDU [09:46:52]CAPDU: 80 0D 02 02 05 07 8A D0 24 32 [09:46:52]Write to MH i2c: E2 0D 00 7F 2C 80 0D 02 02 05 00 07 8A D0 24 32 00 00 E6 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 03 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 03 00 7F 2C 00 90 00 1F [09:46:52]RAPDU: 90 00 [09:46:52]wFMCommunicate OK [09:46:52]wFMCommunicate request_size=4 [09:46:52]MH_SAM_APDU [09:46:52]CAPDU: 80 0D 03 02 [09:46:52]Write to MH i2c: E2 08 00 80 2C 80 0D 03 02 00 00 00 00 27 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 0B 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 0B 00 80 2C 00 27 ED 9F 49 62 5D 33 87 90 00 9D [09:46:52]RAPDU: 27 ED 9F 49 62 5D 33 87 90 00 [09:46:52]wFMCommunicate OK [09:46:52]SAM_PROTO_SignData done [09:46:52]FM_MakeSignedData done [09:46:52]CreateOFDProtocolMessage [09:46:52]wFMCommunicate request_size=4 [09:46:52]MH_SAM_APDU [09:46:52]CAPDU: 80 11 00 00 [09:46:52]Write to MH i2c: E2 08 00 81 2C 80 11 00 00 00 00 00 00 27 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 17 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 17 00 81 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [09:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:46:52]wFMCommunicate OK [09:46:52]CreateOFDProtocolMessage done [09:46:52]OFDSenderStorePacket 140055 [09:46:52]StoreOFDPacket docnum=140055 [09:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D7 D0 07 01 FE 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 C8 32 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 48 00 00 00 F4 03 04 00 8D B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 23 02 00 35 04 06 00 57 07 8A D0 24 32 27 ED 9F 49 62 5D 33 87 [09:46:52]CheckFolder [09:46:52]dirname=/storage/ofd_packets [09:46:52]CheckFolder done [09:46:52]ProducePacketName [09:46:52]name=ofd_packets/00140055 [09:46:52]NVStorageSaveData ofd_packets/00140055 [09:46:52]File name is /storage/ofd_packets/00140055 [09:46:52]Write 301 bytes [09:46:52]NVStorageSaveData done [09:46:52]OFDSenderStorePacket done [09:46:52]KKMCreateOFDPacket done [09:46:52]NVStorageSaveData kkm_last_timestamp [09:46:52]File name is /storage/kkm_last_timestamp [09:46:52]Write 4 bytes [09:46:52]NVStorageSaveData done [09:46:52]ExternCall_PrintAddStr [09:46:52]wPrintStart [09:46:52]Write to MH i2c: 01 00 00 82 2C AE [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 07 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 07 00 82 2C 00 00 00 00 00 FF 0F C3 [09:46:52]RasterBufferAndPrint [09:46:52]line Счет N : (1)593909 [09:46:52]line ИНН: 02508201610067 [09:46:52]line Контрольно-Кассовый Чек [09:46:52]line ПРОДАЖА [09:46:52]line ТРК (МРК, ГНК) : 32 [09:46:52]line Товар: 2710124130 [09:46:52]line Аи-92-К-5 [09:46:52]line 13.000 * 0.00 [09:46:52]line = 0.00 [09:46:52]line НДС 12% НСП 1% [09:46:52]line > о реализуемом товаре [09:46:52]line ИТОГО: 0.00 [09:46:52]line НСП 1% : 0.00 [09:46:52]line НДС 12% : 0.00 [09:46:52]line Наличными: 0.00 [09:46:52]line Безнал.: 0.00 [09:46:52]line Место: АЗС № 136 "Партнер Нефть" [09:46:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:46:52]line СНО: Общий режим [09:46:52]line Чек 72 21.08.2024 09:46 [09:46:52]line Смена: 454 ФФД: 1.0 [09:46:52]line ЗНМ: 0300000067 [09:46:52]line РНМ: 0000000000092569 [09:46:52]line Версия ККМ: 001 [09:46:52]line Талоны: Топливная Карта [09:46:52]line 03824 [09:46:52]line ФМ: 0000000000871776 [09:46:52]line ФД: 140055 [09:46:52]line ФПД: 95689905284146 [09:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094653&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140055&fm=95689905284146&tin=02508201610067®Number=0000000000092569&sum=0 [09:46:52]written 0, free lines is 4095 [09:46:52]OFD Sender: Processing packet 140055 [packets to send 137, broken 136] [09:46:52]ProducePacketName [09:46:52]name=ofd_packets/00140055 [09:46:52]OFD Sender: To server: pG, [09:46:52]CommunicateWithHost lk.salyk.kg:30040 [09:46:52]ConnectInit lk.salyk.kg [09:46:52]Connected sock=11 [09:46: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 37 36 0F 01 00 00 D7 D0 07 01 FE 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 C8 32 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 48 00 00 00 F4 03 04 00 8D B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 23 02 00 35 04 06 00 57 07 8A D0 24 32 27 ED 9F 49 62 5D 33 87 [09:46:52]Write to MH i2c: 01 00 00 AC 2C D8 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 07 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: 01 07 00 AC 2C 00 00 00 00 00 E2 0C CD [09:46:52]RasterBufferAndPrint [09:46:52]line [09:46:52]line [09:46:52]line [09:46:52]line [09:46:52]line [09:46:52]written 0, free lines is 3304 [09:46:52]MH_Cut [09:46:52]Write to MH i2c: D1 01 00 B3 2C 01 B1 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: D1 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: D1 01 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: D1 01 00 B3 2C 00 B0 [09:46:52]Write to MH i2c: 01 00 00 B4 2C E0 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46: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 37 36 4F 00 00 00 15 77 47 00 9D 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 37 36 10 04 04 00 17 23 02 00 F4 03 04 00 1E 5E C5 66 B6 04 01 00 00 60 E2 F5 E9 E7 9A D4 92 [09:46:52]CommunicateWithHost err = 0 [09:46:52]CheckOFDResponse [09:46:52]1017 (14) - 77093643461234 [09:46:52]1041 (16) - 0000000000871776 [09:46:52]1040 (4) - 140055 [09:46:52]1012 (4) - 21.08.2024 03:25 [09:46:52]1206 (1) - 0 [09:46:52]OFD Sender: Remove packet 140055 [09:46:52]ProducePacketName [09:46:52]name=ofd_packets/00140055 [09:46:52]NVStorageDeleteData [09:46:53]OFD Sender: No OFD packet to send [09:46:53]*** Cut start [09:46:53]*** Partial cut [09:46:53]*** CUTSNS_PIN = 1 [09:46:53]*** CUTSNS_PIN = 0 [09:46:53]*** Brake cut motor [09:46:53]Read from MH i2c: 01 [09:46:53]MH_I2C_Read... [09:46:53]*** Stop cut motor [09:46:53]*** Cut end [09:46:53]Read from MH i2c: 01 07 00 [09:46:53]MH_I2C_Read... [09:46:53]Read from MH i2c: 01 07 00 B4 2C 00 00 00 00 00 FF 0F F5 [09:46:53]process_action close_receipt done [09:46:53]requested_data is exist [09:46:53]produce_requested_data [09:46:53]requested_item fm.sn is exist - process it [09:46:53]wFMCommunicate request_size=4 [09:46:53]MH_SAM_APDU [09:46:53]CAPDU: 80 11 00 00 [09:46:53]Write to MH i2c: E2 08 00 B5 2C 80 11 00 00 00 00 00 00 5B [09:46:53]Write i2c OK [09:46:53]MH_I2C_Read... [09:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:54]Read from MH i2c: E2 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 17 00 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 17 00 B5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [09:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:46:54]wFMCommunicate OK [09:46:54]requested_item fd.num is exist - process it [09:46:54]SAM_PROTO_GetFieldsCounters [09:46:54]wFMCommunicate request_size=4 [09:46:54]MH_SAM_APDU [09:46:54]CAPDU: 80 13 00 00 [09:46:54]Write to MH i2c: E2 08 00 B6 2C 80 13 00 00 00 00 00 00 5E [09:46:54]Write i2c OK [09:46:54]MH_I2C_Read... [09:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:54]Read from MH i2c: E2 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 62 00 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 62 00 B6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:54]wFMCommunicate OK [09:46:54]SAM_PROTO_GetFieldsCounters done [09:46:54]requested_item shift.num is exist - process it [09:46:54]requested_item shift.opened is exist - process it [09:46:54]req_shift_opened [09:46:54]FM_GetShiftState [09:46:54]SAM_PROTO_GetShiftState [09:46:54]wFMCommunicate request_size=4 [09:46:54]MH_SAM_APDU [09:46:54]CAPDU: 80 13 01 00 [09:46:54]Write to MH i2c: E2 08 00 B7 2C 80 13 01 00 00 00 00 00 60 [09:46:54]Write i2c OK [09:46:54]MH_I2C_Read... [09:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:54]Read from MH i2c: E2 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 0E 00 [09:46:54]MH_I2C_Read... [09:46:54]Read from MH i2c: E2 0E 00 B7 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E0 [09:46:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:46:54]wFMCommunicate OK [09:46:54]SAM_PROTO_GetShiftState done [09:46:54]FM_GetShiftState done [09:46:54]req_shift_opened done [09:46:54]requested_item shift.open_date is exist - process it [09:46:54]req_shift_open_date [09:46:54]req_shift_open_date done [09:46:54]produce_requested_data done [09:46:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140055,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:46:54]process_action_free close_receipt [09:46:54]json_value_free [09:46:54]json_value_free done [09:46:54]process_json_proto returns [09:46:54]Send response to host [09:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140055,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:46:54]free response buf [09:46:54]execute_script done [09:46:54]execute_script returns [09:46:54]free content buf [09:46:54]Sock 7.Close socket [09:46:54]Sock 7.Thread stoped [09:46:56]int [09:46:56]Write to MH i2c: 01 00 00 B8 2C E4 [09:46:56]*** FLAG_PRN_KEY set [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 B8 2C 00 08 00 00 00 FF 0F 01 [09:46:56]state=0 [09:46:56]Key pressed [09:46:56]Feed [09:46:56]Write to MH i2c: D8 00 00 B9 2C BC [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D8 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D8 01 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: D8 01 00 B9 2C 00 BD [09:46:56]int [09:46:56]Write to MH i2c: 01 00 00 BA 2C E6 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 BA 2C 00 48 00 00 00 3C 00 71 [09:46:56]state=2 [09:46:56]Key pressed [09:46:56]int [09:46:56]Write to MH i2c: 01 00 00 BB 2C E7 [09:46:56]*** FLAG_PRN_KEY reset [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 BB 2C 00 00 00 00 00 F9 0F F6 [09:46:56]state=2 [09:46:56]Stop feed [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:29]accept exits with 9 [09:47:29]New connection [09:47:29]New thread 3066908004 created [09:47:29]Thread 3066764644 joined [09:47:29]Waiting for new connection... [09:47:29] Sock 9.Parse request [09:47:29]Sock 9.Check first char [09:47:29]Sock 9.First char is OK [09:47:29]request: POST /json_proto HTTP/1.0 [09:47:29]Method: POST [09:47:29]URL: /json_proto [09:47:29]Method is POST - this is cgi request [09:47:29]url: /json_proto [09:47:29]query_string will be loaded in cgi processing [09:47:29]execute_cgi json_proto POST (null) [09:47:29]execute_cgi path=json_proto method=POST [09:47:29]POST find Content-Length [09:47:29]Host: 172.17.45.67:8080 [09:47:29]Content-Length: 682 [09:47:29]Content-Type: application/json [09:47:29] [09:47:29]POST finish read [09:47:29]Found Content-Length = 682 [09:47:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:47:29]execute_script... [09:47: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)593910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:47:29]POST & json_proto [09:47:29]process_json_proto [09:47:29]json parsed OK: [09:47:29]protocol is kg_v1.0 [09:47:29]action value=close_receipt [09:47:29]process_action close_receipt [09:47:29]cmd_close_receipt [09:47:29]MH_GetDate [09:47:29]Write to MH i2c: F0 00 00 BC 2C D7 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: F0 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: F0 09 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: F0 09 00 BC 2C 00 B4 B7 C5 66 5F 7F 2B 66 E5 [09:47:29]GetLastDocTimeStamp 1724233613 [09:47:29]current date 1724233652 [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 BD 2C 80 13 01 00 00 00 00 00 66 [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 BD 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E6 [09:47:29]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [09:47:29]opened+sec_in_day 1724286867 [09:47:29]quantity*price = 60045 [09:47:29]sum+1 = 60047 [09:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 73 21.08.2024 09:47 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140056 ФПД: 58416874114469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140056&fm=58416874114469&tin=02508201610067®Number=0000000000092569&sum=60000 [09:47:30]StoreToDocumentArchive [09:47:30]shift 454 fd 140056 [09:47:30]save to /storage/0454/doc_00140056 [09:47:30]save last doc name /storage/0454/doc_00140056 to /storage/kkm_last_doc_name [09:47:30]save OK [09:47:30]Clear old archive folders... [09:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:47:30]tlvbuf is 00A56BD0 [09:47:30]SAM_PROTO_ClearQueue [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 09 00 00 [09:47:30]Write to MH i2c: E2 08 00 CA 2C 80 09 00 00 00 00 00 00 68 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 03 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 03 00 CA 2C 00 90 00 6A [09:47:30]RAPDU: 90 00 [09:47:30]wFMCommunicate OK [09:47:30]SAM_PROTO_ClearQueue done [09:47:30]KKMCreateOFDPacket [09:47:30]OFDProtocolAddRootSTLVToBuf [09:47:30]FM_MakeSignedData [09:47:30]FM_MakeSignedData [09:47:30]SAM_PROTO_SignData [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 0D 01 02 [09:47:30]Write to MH i2c: E2 08 00 CB 2C 80 0D 01 02 00 00 00 00 70 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 03 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 03 00 CB 2C 00 90 00 6B [09:47:30]RAPDU: 90 00 [09:47:30]wFMCommunicate OK [09:47:30]wFMCommunicate request_size=255 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 49 00 00 00 F4 03 04 00 B4 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 23 02 00 35 04 06 00 [09:47:30]Write to MH i2c: E2 02 01 CC 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 49 00 00 00 F4 03 04 00 B4 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 23 02 00 35 04 06 00 00 00 8B [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 03 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 03 00 CC 2C 00 90 00 6C [09:47:31]RAPDU: 90 00 [09:47:31]wFMCommunicate OK [09:47:31]wFMCommunicate request_size=11 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 0D 02 02 06 35 21 3D 07 CD A5 [09:47:31]Write to MH i2c: E2 0E 00 CD 2C 80 0D 02 02 06 00 35 21 3D 07 CD A5 00 00 8B [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 03 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 03 00 CD 2C 00 90 00 6D [09:47:31]RAPDU: 90 00 [09:47:31]wFMCommunicate OK [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 0D 03 02 [09:47:31]Write to MH i2c: E2 08 00 CE 2C 80 0D 03 02 00 00 00 00 75 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0B 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0B 00 CE 2C 00 74 79 50 32 DA 63 BD 61 90 00 40 [09:47:31]RAPDU: 74 79 50 32 DA 63 BD 61 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_SignData done [09:47:31]FM_MakeSignedData done [09:47:31]CreateOFDProtocolMessage [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 11 00 00 [09:47:31]Write to MH i2c: E2 08 00 CF 2C 80 11 00 00 00 00 00 00 75 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 17 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 17 00 CF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CC [09:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:31]wFMCommunicate OK [09:47:31]CreateOFDProtocolMessage done [09:47:31]OFDSenderStorePacket 140056 [09:47:31]StoreOFDPacket docnum=140056 [09:47:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 07 A1 08 01 F2 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 49 00 00 00 F4 03 04 00 B4 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 23 02 00 35 04 06 00 35 21 3D 07 CD A5 74 79 50 32 DA 63 BD 61 [09:47:31]CheckFolder [09:47:31]dirname=/storage/ofd_packets [09:47:31]CheckFolder done [09:47:31]ProducePacketName [09:47:31]name=ofd_packets/00140056 [09:47:31]NVStorageSaveData ofd_packets/00140056 [09:47:31]File name is /storage/ofd_packets/00140056 [09:47:31]Write 302 bytes [09:47:31]NVStorageSaveData done [09:47:31]OFDSenderStorePacket done [09:47:31]KKMCreateOFDPacket done [09:47:31]NVStorageSaveData kkm_last_timestamp [09:47:31]File name is /storage/kkm_last_timestamp [09:47:31]Write 4 bytes [09:47:31]NVStorageSaveData done [09:47:31]ExternCall_PrintAddStr [09:47:31]wPrintStart [09:47:31]Write to MH i2c: 01 00 00 D0 2C FC [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 FF 0F 11 [09:47:31]RasterBufferAndPrint [09:47:31]line Счет N : (1)593910 [09:47:31]line ИНН: 02508201610067 [09:47:31]line Контрольно-Кассовый Чек [09:47:31]line ПРОДАЖА [09:47:31]line ТРК (МРК, ГНК) : 21 [09:47:31]line Товар: 2710194210 [09:47:31]line ДТ(л)-К-5 [09:47:31]line 7.880 * 76.20 [09:47:31]line = 600.46 [09:47:31]line НДС 12% НСП 1% [09:47:31]line > о реализуемом товаре [09:47:31]line ОКРУГЛЕНИЕ: -0.46 [09:47:31]line ИТОГО: 600.00 [09:47:31]line Внесено: 600.00 [09:47:31]line СДАЧА: 0.00 [09:47:31]line НСП 1% : 5.31 [09:47:31]line НДС 12% : 63.77 [09:47:31]line Наличными: 600.00 [09:47:31]line Безнал.: 0.00 [09:47:31]line Место: АЗС № 136 "Партнер Нефть" [09:47:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:47:31]line СНО: Общий режим [09:47:31]line Чек 73 21.08.2024 09:47 [09:47:31]line Смена: 454 ФФД: 1.0 [09:47:31]line ЗНМ: 0300000067 [09:47:31]line РНМ: 0000000000092569 [09:47:31]line Версия ККМ: 001 [09:47:31]line ФМ: 0000000000871776 [09:47:31]line ФД: 140056 [09:47:31]line ФПД: 58416874114469 [09:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094732&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140056&fm=58416874114469&tin=02508201610067®Number=0000000000092569&sum=60000 [09:47:31]OFD Sender: Processing packet 140056 [packets to send 137, broken 136] [09:47:31]ProducePacketName [09:47:31]name=ofd_packets/00140056 [09:47:31]OFD Sender: To server: pG, [09:47:31]CommunicateWithHost lk.salyk.kg:30040 [09:47:31]ConnectInit lk.salyk.kg [09:47:31]written 0, free lines is 4095 [09:47:31]Connected sock=10 [09:47: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 37 36 10 01 00 00 07 A1 08 01 F2 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 49 00 00 00 F4 03 04 00 B4 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 23 02 00 35 04 06 00 35 21 3D 07 CD A5 74 79 50 32 DA 63 BD 61 [09:47: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 37 36 4F 00 00 00 42 CD 47 00 8F 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 37 36 10 04 04 00 18 23 02 00 F4 03 04 00 45 5E C5 66 B6 04 01 00 00 3D 27 14 14 56 D3 11 83 [09:47:31]CommunicateWithHost err = 0 [09:47:31]CheckOFDResponse [09:47:31]1017 (14) - 77093643461234 [09:47:31]1041 (16) - 0000000000871776 [09:47:31]1040 (4) - 140056 [09:47:31]1012 (4) - 21.08.2024 03:25 [09:47:31]1206 (1) - 0 [09:47:31]OFD Sender: Remove packet 140056 [09:47:31]ProducePacketName [09:47:31]name=ofd_packets/00140056 [09:47:31]NVStorageDeleteData [09:47:31]Write to MH i2c: 01 00 00 FB 2C 27 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: 01 07 00 FB 2C 00 00 00 00 00 CD 0C 07 [09:47:31]RasterBufferAndPrint [09:47:31]line [09:47:31]line [09:47:31]line [09:47:31]line [09:47:31]line [09:47:31]written 0, free lines is 3284 [09:47:32]MH_Cut [09:47:32]Write to MH i2c: D1 01 00 02 2D 01 01 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: D1 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: D1 01 00 [09:47:32]MH_I2C_Read... [09:47:32]Read from MH i2c: D1 01 00 02 2D 00 00 [09:47:32]Write to MH i2c: 01 00 00 03 2D 30 [09:47:32]Write i2c OK [09:47:32]MH_I2C_Read... [09:47:32]OFD Sender: No OFD packet to send [09:47:32]*** Cut start [09:47:32]*** Partial cut [09:47:32]*** CUTSNS_PIN = 1 [09:47:32]*** CUTSNS_PIN = 0 [09:47:32]*** Brake cut motor [09:47:33]Read from MH i2c: 01 [09:47:33]MH_I2C_Read... [09:47:33]*** Stop cut motor [09:47:33]*** Cut end [09:47:33]Read from MH i2c: 01 07 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 03 2D 00 00 00 00 00 FF 0F 45 [09:47:33]process_action close_receipt done [09:47:33]requested_data is exist [09:47:33]produce_requested_data [09:47:33]requested_item fm.sn is exist - process it [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 11 00 00 [09:47:33]Write to MH i2c: E2 08 00 04 2D 80 11 00 00 00 00 00 00 AB [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 04 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 02 [09:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:47:33]wFMCommunicate OK [09:47:33]requested_item fd.num is exist - process it [09:47:33]SAM_PROTO_GetFieldsCounters [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 13 00 00 [09:47:33]Write to MH i2c: E2 08 00 05 2D 80 13 00 00 00 00 00 00 AE [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 62 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 62 00 05 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [09:47: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_GetFieldsCounters done [09:47:33]requested_item shift.num is exist - process it [09:47:33]requested_item shift.opened is exist - process it [09:47:33]req_shift_opened [09:47:33]FM_GetShiftState [09:47:33]SAM_PROTO_GetShiftState [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 13 01 00 [09:47:33]Write to MH i2c: E2 08 00 06 2D 80 13 01 00 00 00 00 00 B0 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0E 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0E 00 06 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 30 [09:47:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_GetShiftState done [09:47:33]FM_GetShiftState done [09:47:33]req_shift_opened done [09:47:33]requested_item shift.open_date is exist - process it [09:47:33]req_shift_open_date [09:47:33]req_shift_open_date done [09:47:33]produce_requested_data done [09:47:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140056,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:47:33]process_action_free close_receipt [09:47:33]json_value_free [09:47:33]json_value_free done [09:47:33]process_json_proto returns [09:47:33]Send response to host [09:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140056,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:47:33]free response buf [09:47:33]execute_script done [09:47:33]execute_script returns [09:47:33]free content buf [09:47:33]Sock 9.Close socket [09:47:33]Sock 9.Thread stoped [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]accept exits with 7 [09:48:02]New connection [09:48:02]New thread 3066764644 created [09:48:02]Thread 3066908004 joined [09:48:02]Waiting for new connection... [09:48:02] Sock 7.Parse request [09:48:02]Sock 7.Check first char [09:48:02]Sock 7.First char is OK [09:48:02]request: POST /json_proto HTTP/1.0 [09:48:02]Method: POST [09:48:02]URL: /json_proto [09:48:02]Method is POST - this is cgi request [09:48:02]url: /json_proto [09:48:02]query_string will be loaded in cgi processing [09:48:02]execute_cgi json_proto POST (null) [09:48:02]execute_cgi path=json_proto method=POST [09:48:02]POST find Content-Length [09:48:02]Host: 172.17.45.67:8080 [09:48:02]Content-Length: 677 [09:48:02]Content-Type: application/json [09:48:02] [09:48:02]POST finish read [09:48:02]Found Content-Length = 677 [09:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:48:02]execute_script... [09: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)593911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:48:02]POST & json_proto [09:48:02]process_json_proto [09:48:02]json parsed OK: [09:48:02]protocol is kg_v1.0 [09:48:02]action value=close_receipt [09:48:02]process_action close_receipt [09:48:02]cmd_close_receipt [09:48:02]MH_GetDate [09:48:02]Write to MH i2c: F0 00 00 07 2D 23 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: F0 09 00 [09:48:02]MH_I2C_Read... [09:48:02]OFD Sender: No OFD packet to send [09:48:02]Read from MH i2c: F0 09 00 07 2D 00 D5 B7 C5 66 5F 7F 2B 66 52 [09:48:02]GetLastDocTimeStamp 1724233652 [09:48:02]current date 1724233685 [09:48:02]FM_GetShiftState [09:48:02]SAM_PROTO_GetShiftState [09:48:02]wFMCommunicate request_size=4 [09:48:02]MH_SAM_APDU [09:48:02]CAPDU: 80 13 01 00 [09:48:02]Write to MH i2c: E2 08 00 08 2D 80 13 01 00 00 00 00 00 B2 [09:48:02]Write i2c OK [09:48:02]MH_I2C_Read... [09:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:02]Read from MH i2c: E2 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 [09:48:02]MH_I2C_Read... [09:48:02]Read from MH i2c: E2 0E 00 08 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 32 [09:48:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:48:02]wFMCommunicate OK [09:48:02]SAM_PROTO_GetShiftState done [09:48:02]FM_GetShiftState done [09:48:02]opened in 1724200467 [09:48:02]opened+sec_in_day 1724286867 [09:48:02]quantity*price = 60003 [09:48:02]sum+1 = 60004 [09:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 74 21.08.2024 09:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140057 ФПД: 130600271428508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140057&fm=130600271428508&tin=02508201610067®Number=0000000000092569&sum=60000 [09:48:03]StoreToDocumentArchive [09:48:03]shift 454 fd 140057 [09:48:03]save to /storage/0454/doc_00140057 [09:48:03]save last doc name /storage/0454/doc_00140057 to /storage/kkm_last_doc_name [09:48:03]save OK [09:48:03]Clear old archive folders... [09:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:03]tlvbuf is 00A54760 [09:48:03]SAM_PROTO_ClearQueue [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 09 00 00 [09:48:03]Write to MH i2c: E2 08 00 15 2D 80 09 00 00 00 00 00 00 B4 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 15 2D 00 90 00 B6 [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]SAM_PROTO_ClearQueue done [09:48:03]KKMCreateOFDPacket [09:48:03]OFDProtocolAddRootSTLVToBuf [09:48:03]FM_MakeSignedData [09:48:03]FM_MakeSignedData [09:48:03]SAM_PROTO_SignData [09:48:03]wFMCommunicate request_size=4 [09:48:03]MH_SAM_APDU [09:48:03]CAPDU: 80 0D 01 02 [09:48:03]Write to MH i2c: E2 08 00 16 2D 80 0D 01 02 00 00 00 00 BC [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:03]Read from MH i2c: E2 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 [09:48:03]MH_I2C_Read... [09:48:03]Read from MH i2c: E2 03 00 16 2D 00 90 00 B7 [09:48:03]RAPDU: 90 00 [09:48:03]wFMCommunicate OK [09:48:03]wFMCommunicate request_size=255 [09:48:03]MH_SAM_APDU [09:48: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4A 00 00 00 F4 03 04 00 D5 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 23 02 00 35 04 06 00 76 [09:48:03]Write to MH i2c: E2 02 01 17 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4A 00 00 00 F4 03 04 00 D5 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 23 02 00 35 04 06 00 76 00 00 88 [09:48:03]Write i2c OK [09:48:03]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 17 2D 00 90 00 B8 [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=10 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 02 02 05 C7 BE C9 3B 9C [09:48:04]Write to MH i2c: E2 0D 00 18 2D 80 0D 02 02 05 00 C7 BE C9 3B 9C 00 00 EE [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 03 00 18 2D 00 90 00 B9 [09:48:04]RAPDU: 90 00 [09:48:04]wFMCommunicate OK [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 0D 03 02 [09:48:04]Write to MH i2c: E2 08 00 19 2D 80 0D 03 02 00 00 00 00 C1 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0B 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 0B 00 19 2D 00 D3 34 CA 5B A1 25 92 3E 90 00 84 [09:48:04]RAPDU: D3 34 CA 5B A1 25 92 3E 90 00 [09:48:04]wFMCommunicate OK [09:48:04]SAM_PROTO_SignData done [09:48:04]FM_MakeSignedData done [09:48:04]CreateOFDProtocolMessage [09:48:04]wFMCommunicate request_size=4 [09:48:04]MH_SAM_APDU [09:48:04]CAPDU: 80 11 00 00 [09:48:04]Write to MH i2c: E2 08 00 1A 2D 80 11 00 00 00 00 00 00 C1 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:04]Read from MH i2c: E2 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: E2 17 00 1A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 18 [09:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:48:04]wFMCommunicate OK [09:48:04]CreateOFDProtocolMessage done [09:48:04]OFDSenderStorePacket 140057 [09:48:04]StoreOFDPacket docnum=140057 [09:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9B A5 07 01 69 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4A 00 00 00 F4 03 04 00 D5 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 23 02 00 35 04 06 00 76 C7 BE C9 3B 9C D3 34 CA 5B A1 25 92 3E [09:48:04]CheckFolder [09:48:04]dirname=/storage/ofd_packets [09:48:04]CheckFolder done [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00140057 [09:48:04]NVStorageSaveData ofd_packets/00140057 [09:48:04]File name is /storage/ofd_packets/00140057 [09:48:04]Write 301 bytes [09:48:04]NVStorageSaveData done [09:48:04]OFDSenderStorePacket done [09:48:04]KKMCreateOFDPacket done [09:48:04]NVStorageSaveData kkm_last_timestamp [09:48:04]File name is /storage/kkm_last_timestamp [09:48:04]Write 4 bytes [09:48:04]NVStorageSaveData done [09:48:04]ExternCall_PrintAddStr [09:48:04]wPrintStart [09:48:04]Write to MH i2c: 01 00 00 1B 2D 48 [09:48:04]Write i2c OK [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 [09:48:04]MH_I2C_Read... [09:48:04]Read from MH i2c: 01 07 00 1B 2D 00 00 00 00 00 FF 0F 5D [09:48:04]RasterBufferAndPrint [09:48:04]line Счет N : (1)593911 [09:48:04]line ИНН: 02508201610067 [09:48:04]line Контрольно-Кассовый Чек [09:48:04]line ПРОДАЖА [09:48:04]line ТРК (МРК, ГНК) : 52 [09:48:04]line Товар: 2710124130 [09:48:04]line Аи-92-К-5 [09:48:04]line 8.850 * 67.80 [09:48:04]line = 600.03 [09:48:04]line НДС 12% НСП 1% [09:48:04]line > о реализуемом товаре [09:48:04]line ОКРУГЛЕНИЕ: -0.03 [09:48:04]line ИТОГО: 600.00 [09:48:04]line Внесено: 600.00 [09:48:04]line СДАЧА: 0.00 [09:48:04]line НСП 1% : 5.31 [09:48:04]line НДС 12% : 63.72 [09:48:04]line Наличными: 600.00 [09:48:04]line Безнал.: 0.00 [09:48:04]line Место: АЗС № 136 "Партнер Нефть" [09:48:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:48:04]line СНО: Общий режим [09:48:04]line Чек 74 21.08.2024 09:48 [09:48:04]line Смена: 454 ФФД: 1.0 [09:48:04]line ЗНМ: 0300000067 [09:48:04]line РНМ: 0000000000092569 [09:48:04]line Версия ККМ: 001 [09:48:04]line ФМ: 0000000000871776 [09:48:04]line ФД: 140057 [09:48:04]line ФПД: 130600271428508 [09:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T094805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140057&fm=130600271428508&tin=02508201610067®Number=0000000000092569&sum=60000 [09:48:04]written 0, free lines is 4095 [09:48:04]OFD Sender: Processing packet 140057 [packets to send 137, broken 136] [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00140057 [09:48:04]OFD Sender: To server: pG, [09:48:04]CommunicateWithHost lk.salyk.kg:30040 [09:48:04]ConnectInit lk.salyk.kg [09:48:04]Connected sock=9 [09: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 37 36 0F 01 00 00 9B A5 07 01 69 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4A 00 00 00 F4 03 04 00 D5 B7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 23 02 00 35 04 06 00 76 C7 BE C9 3B 9C D3 34 CA 5B A1 25 92 3E [09:48: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 37 36 4F 00 00 00 6E 56 47 00 55 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 37 36 10 04 04 00 19 23 02 00 F4 03 04 00 66 5E C5 66 B6 04 01 00 00 04 7F F0 C9 B9 86 C1 13 [09:48:04]CommunicateWithHost err = 0 [09:48:04]CheckOFDResponse [09:48:04]1017 (14) - 77093643461234 [09:48:04]1041 (16) - 0000000000871776 [09:48:04]1040 (4) - 140057 [09:48:04]1012 (4) - 21.08.2024 03:26 [09:48:04]1206 (1) - 0 [09:48:04]OFD Sender: Remove packet 140057 [09:48:04]ProducePacketName [09:48:04]name=ofd_packets/00140057 [09:48:04]NVStorageDeleteData [09:48:04]Write to MH i2c: 01 00 00 46 2D 73 [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: 01 07 00 46 2D 00 00 00 00 00 D3 0C 59 [09:48:05]RasterBufferAndPrint [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]line [09:48:05]written 0, free lines is 3290 [09:48:05]MH_Cut [09:48:05]Write to MH i2c: D1 01 00 4D 2D 01 4C [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 [09:48:05]MH_I2C_Read... [09:48:05]Read from MH i2c: D1 01 00 4D 2D 00 4B [09:48:05]Write to MH i2c: 01 00 00 4E 2D 7B [09:48:05]Write i2c OK [09:48:05]MH_I2C_Read... [09:48:05]OFD Sender: No OFD packet to send [09:48:05]*** Cut start [09:48:05]*** Partial cut [09:48:05]*** CUTSNS_PIN = 1 [09:48:05]*** CUTSNS_PIN = 0 [09:48:05]*** Brake cut motor [09:48:06]Read from MH i2c: 01 [09:48:06]MH_I2C_Read... [09:48:06]*** Stop cut motor [09:48:06]*** Cut end [09:48:06]Read from MH i2c: 01 07 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: 01 07 00 4E 2D 00 00 00 00 00 FF 0F 90 [09:48:06]process_action close_receipt done [09:48:06]requested_data is exist [09:48:06]produce_requested_data [09:48:06]requested_item fm.sn is exist - process it [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 11 00 00 [09:48:06]Write to MH i2c: E2 08 00 4F 2D 80 11 00 00 00 00 00 00 F6 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 17 00 4F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [09:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:48:06]wFMCommunicate OK [09:48:06]requested_item fd.num is exist - process it [09:48:06]SAM_PROTO_GetFieldsCounters [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 00 00 [09:48:06]Write to MH i2c: E2 08 00 50 2D 80 13 00 00 00 00 00 00 F9 [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 62 00 50 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_GetFieldsCounters done [09:48:06]requested_item shift.num is exist - process it [09:48:06]requested_item shift.opened is exist - process it [09:48:06]req_shift_opened [09:48:06]FM_GetShiftState [09:48:06]SAM_PROTO_GetShiftState [09:48:06]wFMCommunicate request_size=4 [09:48:06]MH_SAM_APDU [09:48:06]CAPDU: 80 13 01 00 [09:48:06]Write to MH i2c: E2 08 00 51 2D 80 13 01 00 00 00 00 00 FB [09:48:06]Write i2c OK [09:48:06]MH_I2C_Read... [09:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:06]Read from MH i2c: E2 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0E 00 [09:48:06]MH_I2C_Read... [09:48:06]Read from MH i2c: E2 0E 00 51 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [09:48:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:48:06]wFMCommunicate OK [09:48:06]SAM_PROTO_GetShiftState done [09:48:06]FM_GetShiftState done [09:48:06]req_shift_opened done [09:48:06]requested_item shift.open_date is exist - process it [09:48:06]req_shift_open_date [09:48:06]req_shift_open_date done [09:48:06]produce_requested_data done [09:48:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140057,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:48:06]process_action_free close_receipt [09:48:06]json_value_free [09:48:06]json_value_free done [09:48:06]process_json_proto returns [09:48:06]Send response to host [09:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140057,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:48:06]free response buf [09:48:06]execute_script done [09:48:06]execute_script returns [09:48:06]free content buf [09:48:06]Sock 7.Close socket [09:48:06]Sock 7.Thread stoped [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:11]accept exits with 10 [09:50:11]New connection [09:50:11]New thread 3066908004 created [09:50:11]Thread 3066764644 joined [09:50:11]Waiting for new connection... [09:50:11] Sock 10.Parse request [09:50:11]Sock 10.Check first char [09:50:11]Sock 10.First char is OK [09:50:11]request: POST /json_proto HTTP/1.0 [09:50:11]Method: POST [09:50:11]URL: /json_proto [09:50:11]Method is POST - this is cgi request [09:50:11]url: /json_proto [09:50:11]query_string will be loaded in cgi processing [09:50:11]execute_cgi json_proto POST (null) [09:50:11]execute_cgi path=json_proto method=POST [09:50:11]POST find Content-Length [09:50:11]Host: 172.17.45.67:8080 [09:50:11]Content-Length: 677 [09:50:11]Content-Type: application/json [09:50:11] [09:50:11]POST finish read [09:50:11]Found Content-Length = 677 [09:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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:11]execute_script... [09:50:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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:11]POST & json_proto [09:50:11]process_json_proto [09:50:11]json parsed OK: [09:50:11]protocol is kg_v1.0 [09:50:11]action value=close_receipt [09:50:11]process_action close_receipt [09:50:11]cmd_close_receipt [09:50:11]MH_GetDate [09:50:11]Write to MH i2c: F0 00 00 52 2D 6E [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: F0 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: F0 09 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: F0 09 00 52 2D 00 56 B8 C5 66 5F 7F 2B 66 1F [09:50:11]GetLastDocTimeStamp 1724233685 [09:50:11]current date 1724233814 [09:50:11]FM_GetShiftState [09:50:11]SAM_PROTO_GetShiftState [09:50:11]wFMCommunicate request_size=4 [09:50:11]MH_SAM_APDU [09:50:11]CAPDU: 80 13 01 00 [09:50:11]Write to MH i2c: E2 08 00 53 2D 80 13 01 00 00 00 00 00 FD [09:50:11]Write i2c OK [09:50:11]MH_I2C_Read... [09:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:11]Read from MH i2c: E2 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 [09:50:11]MH_I2C_Read... [09:50:11]Read from MH i2c: E2 0E 00 53 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7D [09:50:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:50:11]wFMCommunicate OK [09:50:11]SAM_PROTO_GetShiftState done [09:50:11]FM_GetShiftState done [09:50:11]opened in 1724200467 [09:50:11]opened+sec_in_day 1724286867 [09:50:11]quantity*price = 15051 [09:50:11]sum+1 = 15053 [09:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 75 21.08.2024 09:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140058 ФПД: 148892095722656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140058&fm=148892095722656&tin=02508201610067®Number=0000000000092569&sum=15000 [09:50:13]StoreToDocumentArchive [09:50:13]shift 454 fd 140058 [09:50:13]save to /storage/0454/doc_00140058 [09:50:13]save last doc name /storage/0454/doc_00140058 to /storage/kkm_last_doc_name [09:50:13]save OK [09:50:13]Clear old archive folders... [09:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:13]tlvbuf is 00A7A1D0 [09:50:13]SAM_PROTO_ClearQueue [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 09 00 00 [09:50:13]Write to MH i2c: E2 08 00 60 2D 80 09 00 00 00 00 00 00 FF [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 60 2D 00 90 00 01 [09:50:13]RAPDU: 90 00 [09:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_ClearQueue done [09:50:13]KKMCreateOFDPacket [09:50:13]OFDProtocolAddRootSTLVToBuf [09:50:13]FM_MakeSignedData [09:50:13]FM_MakeSignedData [09:50:13]SAM_PROTO_SignData [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 0D 01 02 [09:50:13]Write to MH i2c: E2 08 00 61 2D 80 0D 01 02 00 00 00 00 07 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 61 2D 00 90 00 02 [09:50:13]RAPDU: 90 00 [09:50:13]wFMCommunicate OK [09:50:13]wFMCommunicate request_size=255 [09:50:13]MH_SAM_APDU [09:50: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4B 00 00 00 F4 03 04 00 56 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 23 02 00 35 04 06 00 87 [09:50:13]Write to MH i2c: E2 02 01 62 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4B 00 00 00 F4 03 04 00 56 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 23 02 00 35 04 06 00 87 00 00 E9 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 62 2D 00 90 00 03 [09:50:13]RAPDU: 90 00 [09:50:13]wFMCommunicate OK [09:50:13]wFMCommunicate request_size=10 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 0D 02 02 05 6A A4 79 B4 A0 [09:50:13]Write to MH i2c: E2 0D 00 63 2D 80 0D 02 02 05 00 6A A4 79 B4 A0 00 00 EF [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 03 00 63 2D 00 90 00 04 [09:50:13]RAPDU: 90 00 [09:50:13]wFMCommunicate OK [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 0D 03 02 [09:50:13]Write to MH i2c: E2 08 00 64 2D 80 0D 03 02 00 00 00 00 0C [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0B 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 0B 00 64 2D 00 F5 FB 2F EE 0B 55 04 9B 90 00 19 [09:50:13]RAPDU: F5 FB 2F EE 0B 55 04 9B 90 00 [09:50:13]wFMCommunicate OK [09:50:13]SAM_PROTO_SignData done [09:50:13]FM_MakeSignedData done [09:50:13]CreateOFDProtocolMessage [09:50:13]wFMCommunicate request_size=4 [09:50:13]MH_SAM_APDU [09:50:13]CAPDU: 80 11 00 00 [09:50:13]Write to MH i2c: E2 08 00 65 2D 80 11 00 00 00 00 00 00 0C [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:13]Read from MH i2c: E2 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: E2 17 00 65 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [09:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:50:13]wFMCommunicate OK [09:50:13]CreateOFDProtocolMessage done [09:50:13]OFDSenderStorePacket 140058 [09:50:13]StoreOFDPacket docnum=140058 [09:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 33 07 01 B3 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4B 00 00 00 F4 03 04 00 56 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 23 02 00 35 04 06 00 87 6A A4 79 B4 A0 F5 FB 2F EE 0B 55 04 9B [09:50:13]CheckFolder [09:50:13]dirname=/storage/ofd_packets [09:50:13]CheckFolder done [09:50:13]ProducePacketName [09:50:13]name=ofd_packets/00140058 [09:50:13]NVStorageSaveData ofd_packets/00140058 [09:50:13]File name is /storage/ofd_packets/00140058 [09:50:13]Write 301 bytes [09:50:13]NVStorageSaveData done [09:50:13]OFDSenderStorePacket done [09:50:13]KKMCreateOFDPacket done [09:50:13]NVStorageSaveData kkm_last_timestamp [09:50:13]File name is /storage/kkm_last_timestamp [09:50:13]Write 4 bytes [09:50:13]NVStorageSaveData done [09:50:13]ExternCall_PrintAddStr [09:50:13]wPrintStart [09:50:13]Write to MH i2c: 01 00 00 66 2D 93 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 66 2D 00 00 00 00 00 FF 0F A8 [09:50:13]RasterBufferAndPrint [09:50:13]line Счет N : (1)593912 [09:50:13]line ИНН: 02508201610067 [09:50:13]line Контрольно-Кассовый Чек [09:50:13]line ПРОДАЖА [09:50:13]line ТРК (МРК, ГНК) : 52 [09:50:13]line Товар: 2710124130 [09:50:13]line Аи-92-К-5 [09:50:13]line 2.220 * 67.80 [09:50:13]line = 150.52 [09:50:13]line НДС 12% НСП 1% [09:50:13]line > о реализуемом товаре [09:50:13]line ОКРУГЛЕНИЕ: -0.52 [09:50:13]line ИТОГО: 150.00 [09:50:13]line Внесено: 150.00 [09:50:13]line СДАЧА: 0.00 [09:50:13]line НСП 1% : 1.33 [09:50:13]line НДС 12% : 15.98 [09:50:13]line Наличными: 150.00 [09:50:13]line Безнал.: 0.00 [09:50:13]line Место: АЗС № 136 "Партнер Нефть" [09:50:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:50:13]line СНО: Общий режим [09:50:13]line Чек 75 21.08.2024 09:50 [09:50:13]line Смена: 454 ФФД: 1.0 [09:50:13]line ЗНМ: 0300000067 [09:50:13]line РНМ: 0000000000092569 [09:50:13]line Версия ККМ: 001 [09:50:13]line ФМ: 0000000000871776 [09:50:13]line ФД: 140058 [09:50:13]line ФПД: 148892095722656 [09:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140058&fm=148892095722656&tin=02508201610067®Number=0000000000092569&sum=15000 [09:50:13]written 0, free lines is 4095 [09:50:13]OFD Sender: Processing packet 140058 [packets to send 137, broken 136] [09:50:13]ProducePacketName [09:50:13]name=ofd_packets/00140058 [09:50:13]OFD Sender: To server: pG, [09:50:13]CommunicateWithHost lk.salyk.kg:30040 [09:50:13]ConnectInit lk.salyk.kg [09:50:14]Connected sock=9 [09:50: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 37 36 0F 01 00 00 62 33 07 01 B3 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4B 00 00 00 F4 03 04 00 56 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 23 02 00 35 04 06 00 87 6A A4 79 B4 A0 F5 FB 2F EE 0B 55 04 9B [09:50: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 37 36 4F 00 00 00 37 66 47 00 A7 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 37 36 10 04 04 00 1A 23 02 00 F4 03 04 00 E8 5E C5 66 B6 04 01 00 00 2F F9 81 D6 6A 45 32 8E [09:50:14]CommunicateWithHost err = 0 [09:50:14]CheckOFDResponse [09:50:14]1017 (14) - 77093643461234 [09:50:14]1041 (16) - 0000000000871776 [09:50:14]1040 (4) - 140058 [09:50:14]1012 (4) - 21.08.2024 03:28 [09:50:14]1206 (1) - 0 [09:50:14]OFD Sender: Remove packet 140058 [09:50:14]ProducePacketName [09:50:14]name=ofd_packets/00140058 [09:50:14]NVStorageDeleteData [09:50:14]Write to MH i2c: 01 00 00 91 2D BE [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 07 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: 01 07 00 91 2D 00 00 00 00 00 CD 0C 9E [09:50:14]RasterBufferAndPrint [09:50:14]line [09:50:14]line [09:50:14]line [09:50:14]line [09:50:14]line [09:50:14]written 0, free lines is 3284 [09:50:14]MH_Cut [09:50:14]Write to MH i2c: D1 01 00 98 2D 01 97 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: D1 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: D1 01 00 [09:50:14]MH_I2C_Read... [09:50:14]Read from MH i2c: D1 01 00 98 2D 00 96 [09:50:14]Write to MH i2c: 01 00 00 99 2D C6 [09:50:14]Write i2c OK [09:50:14]MH_I2C_Read... [09:50:14]OFD Sender: No OFD packet to send [09:50:15]*** Cut start [09:50:15]*** Partial cut [09:50:15]*** CUTSNS_PIN = 1 [09:50:15]*** CUTSNS_PIN = 0 [09:50:15]*** Brake cut motor [09:50:15]Read from MH i2c: 01 [09:50:15]MH_I2C_Read... [09:50:15]*** Stop cut motor [09:50:15]*** Cut end [09:50:15]Read from MH i2c: 01 07 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: 01 07 00 99 2D 00 00 00 00 00 FF 0F DB [09:50:15]process_action close_receipt done [09:50:15]requested_data is exist [09:50:15]produce_requested_data [09:50:15]requested_item fm.sn is exist - process it [09:50:15]wFMCommunicate request_size=4 [09:50:15]MH_SAM_APDU [09:50:15]CAPDU: 80 11 00 00 [09:50:15]Write to MH i2c: E2 08 00 9A 2D 80 11 00 00 00 00 00 00 41 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:15]Read from MH i2c: E2 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 17 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 17 00 9A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [09:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:50:15]wFMCommunicate OK [09:50:15]requested_item fd.num is exist - process it [09:50:15]SAM_PROTO_GetFieldsCounters [09:50:15]wFMCommunicate request_size=4 [09:50:15]MH_SAM_APDU [09:50:15]CAPDU: 80 13 00 00 [09:50:15]Write to MH i2c: E2 08 00 9B 2D 80 13 00 00 00 00 00 00 44 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:15]Read from MH i2c: E2 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 62 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 62 00 9B 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [09:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:15]wFMCommunicate OK [09:50:15]SAM_PROTO_GetFieldsCounters done [09:50:15]requested_item shift.num is exist - process it [09:50:15]requested_item shift.opened is exist - process it [09:50:15]req_shift_opened [09:50:15]FM_GetShiftState [09:50:15]SAM_PROTO_GetShiftState [09:50:15]wFMCommunicate request_size=4 [09:50:15]MH_SAM_APDU [09:50:15]CAPDU: 80 13 01 00 [09:50:15]Write to MH i2c: E2 08 00 9C 2D 80 13 01 00 00 00 00 00 46 [09:50:15]Write i2c OK [09:50:15]MH_I2C_Read... [09:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:15]Read from MH i2c: E2 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 0E 00 [09:50:15]MH_I2C_Read... [09:50:15]Read from MH i2c: E2 0E 00 9C 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [09:50:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:50:15]wFMCommunicate OK [09:50:15]SAM_PROTO_GetShiftState done [09:50:15]FM_GetShiftState done [09:50:15]req_shift_opened done [09:50:15]requested_item shift.open_date is exist - process it [09:50:15]req_shift_open_date [09:50:15]req_shift_open_date done [09:50:15]produce_requested_data done [09:50:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140058,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:50:15]process_action_free close_receipt [09:50:15]json_value_free [09:50:15]json_value_free done [09:50:15]process_json_proto returns [09:50:15]Send response to host [09:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140058,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:50:15]free response buf [09:50:15]execute_script done [09:50:15]execute_script returns [09:50:15]free content buf [09:50:15]Sock 10.Close socket [09:50:15]Sock 10.Thread stoped [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:40]accept exits with 7 [09:50:40]New connection [09:50:40]New thread 3066764644 created [09:50:40]Thread 3066908004 joined [09:50:40]Waiting for new connection... [09:50:40] Sock 7.Parse request [09:50:40]Sock 7.Check first char [09:50:40]Sock 7.First char is OK [09:50:40]request: POST /json_proto HTTP/1.0 [09:50:40]Method: POST [09:50:40]URL: /json_proto [09:50:40]Method is POST - this is cgi request [09:50:40]url: /json_proto [09:50:40]query_string will be loaded in cgi processing [09:50:40]execute_cgi json_proto POST (null) [09:50:40]execute_cgi path=json_proto method=POST [09:50:40]POST find Content-Length [09:50:40]Host: 172.17.45.67:8080 [09:50:40]Content-Length: 677 [09:50:40]Content-Type: application/json [09:50:40] [09:50:40]POST finish read [09:50:40]Found Content-Length = 677 [09:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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:40]execute_script... [09:50: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)593913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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:40]POST & json_proto [09:50:40]process_json_proto [09:50:40]json parsed OK: [09:50:40]protocol is kg_v1.0 [09:50:40]action value=close_receipt [09:50:40]process_action close_receipt [09:50:40]cmd_close_receipt [09:50:40]MH_GetDate [09:50:40]Write to MH i2c: F0 00 00 9D 2D B9 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: F0 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: F0 09 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: F0 09 00 9D 2D 00 73 B8 C5 66 5F 7F 2B 66 87 [09:50:40]GetLastDocTimeStamp 1724233814 [09:50:40]current date 1724233843 [09:50:40]FM_GetShiftState [09:50:40]SAM_PROTO_GetShiftState [09:50:40]wFMCommunicate request_size=4 [09:50:40]MH_SAM_APDU [09:50:40]CAPDU: 80 13 01 00 [09:50:40]Write to MH i2c: E2 08 00 9E 2D 80 13 01 00 00 00 00 00 48 [09:50:40]Write i2c OK [09:50:40]MH_I2C_Read... [09:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:40]Read from MH i2c: E2 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 0E 00 [09:50:40]MH_I2C_Read... [09:50:40]Read from MH i2c: E2 0E 00 9E 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C8 [09:50:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:50:40]wFMCommunicate OK [09:50:40]SAM_PROTO_GetShiftState done [09:50:40]FM_GetShiftState done [09:50:40]opened in 1724200467 [09:50:40]opened+sec_in_day 1724286867 [09:50:40]quantity*price = 15051 [09:50:40]sum+1 = 15053 [09:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 76 21.08.2024 09:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140059 ФПД: 54374696187994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140059&fm=54374696187994&tin=02508201610067®Number=0000000000092569&sum=15000 [09:50:41]StoreToDocumentArchive [09:50:41]shift 454 fd 140059 [09:50:41]save to /storage/0454/doc_00140059 [09:50:41]save last doc name /storage/0454/doc_00140059 to /storage/kkm_last_doc_name [09:50:41]save OK [09:50:41]Clear old archive folders... [09:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:41]tlvbuf is 00AE2B70 [09:50:41]SAM_PROTO_ClearQueue [09:50:41]wFMCommunicate request_size=4 [09:50:41]MH_SAM_APDU [09:50:41]CAPDU: 80 09 00 00 [09:50:41]Write to MH i2c: E2 08 00 AB 2D 80 09 00 00 00 00 00 00 4A [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:41]Read from MH i2c: E2 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 03 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 03 00 AB 2D 00 90 00 4C [09:50:41]RAPDU: 90 00 [09:50:41]wFMCommunicate OK [09:50:41]SAM_PROTO_ClearQueue done [09:50:41]KKMCreateOFDPacket [09:50:41]OFDProtocolAddRootSTLVToBuf [09:50:41]FM_MakeSignedData [09:50:41]FM_MakeSignedData [09:50:41]SAM_PROTO_SignData [09:50:41]wFMCommunicate request_size=4 [09:50:41]MH_SAM_APDU [09:50:41]CAPDU: 80 0D 01 02 [09:50:41]Write to MH i2c: E2 08 00 AC 2D 80 0D 01 02 00 00 00 00 52 [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:41]Read from MH i2c: E2 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 03 00 [09:50:41]MH_I2C_Read... [09:50:41]Read from MH i2c: E2 03 00 AC 2D 00 90 00 4D [09:50:41]RAPDU: 90 00 [09:50:41]wFMCommunicate OK [09:50:41]wFMCommunicate request_size=255 [09:50:41]MH_SAM_APDU [09:50: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4C 00 00 00 F4 03 04 00 73 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 23 02 00 35 04 06 00 31 [09:50:41]Write to MH i2c: E2 02 01 AD 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4C 00 00 00 F4 03 04 00 73 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 23 02 00 35 04 06 00 31 00 00 FD [09:50:41]Write i2c OK [09:50:41]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 03 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 03 00 AD 2D 00 90 00 4E [09:50:42]RAPDU: 90 00 [09:50:42]wFMCommunicate OK [09:50:42]wFMCommunicate request_size=10 [09:50:42]MH_SAM_APDU [09:50:42]CAPDU: 80 0D 02 02 05 74 18 73 78 5A [09:50:42]Write to MH i2c: E2 0D 00 AE 2D 80 0D 02 02 05 00 74 18 73 78 5A 00 00 30 [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 03 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 03 00 AE 2D 00 90 00 4F [09:50:42]RAPDU: 90 00 [09:50:42]wFMCommunicate OK [09:50:42]wFMCommunicate request_size=4 [09:50:42]MH_SAM_APDU [09:50:42]CAPDU: 80 0D 03 02 [09:50:42]Write to MH i2c: E2 08 00 AF 2D 80 0D 03 02 00 00 00 00 57 [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0B 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0B 00 AF 2D 00 80 30 35 E2 68 7C DA 63 90 00 40 [09:50:42]RAPDU: 80 30 35 E2 68 7C DA 63 90 00 [09:50:42]wFMCommunicate OK [09:50:42]SAM_PROTO_SignData done [09:50:42]FM_MakeSignedData done [09:50:42]CreateOFDProtocolMessage [09:50:42]wFMCommunicate request_size=4 [09:50:42]MH_SAM_APDU [09:50:42]CAPDU: 80 11 00 00 [09:50:42]Write to MH i2c: E2 08 00 B0 2D 80 11 00 00 00 00 00 00 57 [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 17 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 17 00 B0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [09:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:50:42]wFMCommunicate OK [09:50:42]CreateOFDProtocolMessage done [09:50:42]OFDSenderStorePacket 140059 [09:50:42]StoreOFDPacket docnum=140059 [09:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A2 12 07 01 4D 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4C 00 00 00 F4 03 04 00 73 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 23 02 00 35 04 06 00 31 74 18 73 78 5A 80 30 35 E2 68 7C DA 63 [09:50:42]CheckFolder [09:50:42]dirname=/storage/ofd_packets [09:50:42]CheckFolder done [09:50:42]ProducePacketName [09:50:42]name=ofd_packets/00140059 [09:50:42]NVStorageSaveData ofd_packets/00140059 [09:50:42]File name is /storage/ofd_packets/00140059 [09:50:42]Write 301 bytes [09:50:42]NVStorageSaveData done [09:50:42]OFDSenderStorePacket done [09:50:42]KKMCreateOFDPacket done [09:50:42]NVStorageSaveData kkm_last_timestamp [09:50:42]File name is /storage/kkm_last_timestamp [09:50:42]Write 4 bytes [09:50:42]NVStorageSaveData done [09:50:42]ExternCall_PrintAddStr [09:50:42]wPrintStart [09:50:42]Write to MH i2c: 01 00 00 B1 2D DE [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: 01 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: 01 07 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: 01 07 00 B1 2D 00 00 00 00 00 FF 0F F3 [09:50:42]RasterBufferAndPrint [09:50:42]line Счет N : (1)593913 [09:50:42]line ИНН: 02508201610067 [09:50:42]line Контрольно-Кассовый Чек [09:50:42]line ПРОДАЖА [09:50:42]line ТРК (МРК, ГНК) : 62 [09:50:42]line Товар: 2710124130 [09:50:42]line Аи-92-К-5 [09:50:42]line 2.220 * 67.80 [09:50:42]line = 150.52 [09:50:42]line НДС 12% НСП 1% [09:50:42]line > о реализуемом товаре [09:50:42]line ОКРУГЛЕНИЕ: -0.52 [09:50:42]line ИТОГО: 150.00 [09:50:42]line Внесено: 150.00 [09:50:42]line СДАЧА: 0.00 [09:50:42]line НСП 1% : 1.33 [09:50:42]line НДС 12% : 15.98 [09:50:42]line Наличными: 150.00 [09:50:42]line Безнал.: 0.00 [09:50:42]line Место: АЗС № 136 "Партнер Нефть" [09:50:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:50:42]line СНО: Общий режим [09:50:42]line Чек 76 21.08.2024 09:50 [09:50:42]line Смена: 454 ФФД: 1.0 [09:50:42]line ЗНМ: 0300000067 [09:50:42]line РНМ: 0000000000092569 [09:50:42]line Версия ККМ: 001 [09:50:42]line ФМ: 0000000000871776 [09:50:42]line ФД: 140059 [09:50:42]line ФПД: 54374696187994 [09:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140059&fm=54374696187994&tin=02508201610067®Number=0000000000092569&sum=15000 [09:50:42]written 0, free lines is 4095 [09:50:42]OFD Sender: Processing packet 140059 [packets to send 137, broken 136] [09:50:42]ProducePacketName [09:50:42]name=ofd_packets/00140059 [09:50:42]OFD Sender: To server: pG, [09:50:42]CommunicateWithHost lk.salyk.kg:30040 [09:50:42]ConnectInit lk.salyk.kg [09:50:42]Connected sock=10 [09:50: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 37 36 0F 01 00 00 A2 12 07 01 4D 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 4C 00 00 00 F4 03 04 00 73 B8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 23 02 00 35 04 06 00 31 74 18 73 78 5A 80 30 35 E2 68 7C DA 63 [09: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 37 36 4F 00 00 00 9B E7 47 00 C5 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 37 36 10 04 04 00 1B 23 02 00 F4 03 04 00 04 5F C5 66 B6 04 01 00 00 95 D5 89 AA 1A 82 71 7B [09:50:43]CommunicateWithHost err = 0 [09:50:43]CheckOFDResponse [09:50:43]1017 (14) - 77093643461234 [09:50:43]1041 (16) - 0000000000871776 [09:50:43]1040 (4) - 140059 [09:50:43]1012 (4) - 21.08.2024 03:29 [09:50:43]1206 (1) - 0 [09:50:43]OFD Sender: Remove packet 140059 [09:50:43]ProducePacketName [09:50:43]name=ofd_packets/00140059 [09:50:43]NVStorageDeleteData [09:50:43]Write to MH i2c: 01 00 00 DC 2D 09 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: 01 07 00 DC 2D 00 00 00 00 00 D0 0C EC [09:50:43]RasterBufferAndPrint [09:50:43]line [09:50:43]line [09:50:43]line [09:50:43]line [09:50:43]line [09:50:43]written 0, free lines is 3286 [09:50:43]MH_Cut [09:50:43]Write to MH i2c: D1 01 00 E3 2D 01 E2 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D1 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D1 01 00 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: D1 01 00 E3 2D 00 E1 [09:50:43]Write to MH i2c: 01 00 00 E4 2D 11 [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]OFD Sender: No OFD packet to send [09:50:43]*** Cut start [09:50:43]*** Partial cut [09:50:43]*** CUTSNS_PIN = 1 [09:50:43]*** CUTSNS_PIN = 0 [09:50:44]*** Brake cut motor [09:50:44]Read from MH i2c: 01 [09:50:44]MH_I2C_Read... [09:50:44]*** Stop cut motor [09:50:44]*** Cut end [09:50:44]Read from MH i2c: 01 07 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: 01 07 00 E4 2D 00 00 00 00 00 FF 0F 26 [09:50:44]process_action close_receipt done [09:50:44]requested_data is exist [09:50:44]produce_requested_data [09:50:44]requested_item fm.sn is exist - process it [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 11 00 00 [09:50:44]Write to MH i2c: E2 08 00 E5 2D 80 11 00 00 00 00 00 00 8C [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 17 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 17 00 E5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [09:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:50:44]wFMCommunicate OK [09:50:44]requested_item fd.num is exist - process it [09:50:44]SAM_PROTO_GetFieldsCounters [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 13 00 00 [09:50:44]Write to MH i2c: E2 08 00 E6 2D 80 13 00 00 00 00 00 00 8F [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 62 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 62 00 E6 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [09:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:44]wFMCommunicate OK [09:50:44]SAM_PROTO_GetFieldsCounters done [09:50:44]requested_item shift.num is exist - process it [09:50:44]requested_item shift.opened is exist - process it [09:50:44]req_shift_opened [09:50:44]FM_GetShiftState [09:50:44]SAM_PROTO_GetShiftState [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 13 01 00 [09:50:44]Write to MH i2c: E2 08 00 E7 2D 80 13 01 00 00 00 00 00 91 [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 0E 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 0E 00 E7 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 11 [09:50:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:50:44]wFMCommunicate OK [09:50:44]SAM_PROTO_GetShiftState done [09:50:44]FM_GetShiftState done [09:50:44]req_shift_opened done [09:50:44]requested_item shift.open_date is exist - process it [09:50:44]req_shift_open_date [09:50:44]req_shift_open_date done [09:50:44]produce_requested_data done [09:50:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140059,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:50:44]process_action_free close_receipt [09:50:44]json_value_free [09:50:44]json_value_free done [09:50:44]process_json_proto returns [09:50:44]Send response to host [09:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140059,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:50:44]free response buf [09:50:44]execute_script done [09:50:44]execute_script returns [09:50:44]free content buf [09:50:44]Sock 7.Close socket [09:50:44]Sock 7.Thread stoped [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [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]accept exits with 9 [09:53:38]New connection [09:53:38]New thread 3066908004 created [09:53:38]Thread 3066764644 joined [09:53:38]Waiting for new connection... [09:53:38] Sock 9.Parse request [09:53:38]Sock 9.Check first char [09:53:38]Sock 9.First char is OK [09:53:38]request: POST /json_proto HTTP/1.0 [09:53:38]Method: POST [09:53:38]URL: /json_proto [09:53:38]Method is POST - this is cgi request [09:53:38]url: /json_proto [09:53:38]query_string will be loaded in cgi processing [09:53:38]execute_cgi json_proto POST (null) [09:53:38]execute_cgi path=json_proto method=POST [09:53:38]POST find Content-Length [09:53:38]Host: 172.17.45.67:8080 [09:53:38]Content-Length: 677 [09:53:38]Content-Type: application/json [09:53:38] [09:53:38]POST finish read [09:53:38]Found Content-Length = 677 [09:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:38]execute_script... [09:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:38]POST & json_proto [09:53:38]process_json_proto [09:53:38]json parsed OK: [09:53:38]protocol is kg_v1.0 [09:53:38]action value=close_receipt [09:53:38]process_action close_receipt [09:53:38]cmd_close_receipt [09:53:38]MH_GetDate [09:53:38]Write to MH i2c: F0 00 00 E8 2D 04 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 09 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: F0 09 00 E8 2D 00 25 B9 C5 66 5F 7F 2B 66 85 [09:53:38]GetLastDocTimeStamp 1724233843 [09:53:38]current date 1724234021 [09:53:38]FM_GetShiftState [09:53:38]SAM_PROTO_GetShiftState [09:53:38]wFMCommunicate request_size=4 [09:53:38]MH_SAM_APDU [09:53:38]CAPDU: 80 13 01 00 [09:53:38]Write to MH i2c: E2 08 00 E9 2D 80 13 01 00 00 00 00 00 93 [09:53:38]Write i2c OK [09:53:38]MH_I2C_Read... [09:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:38]Read from MH i2c: E2 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 [09:53:38]MH_I2C_Read... [09:53:38]Read from MH i2c: E2 0E 00 E9 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 13 [09:53:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:53:38]wFMCommunicate OK [09:53:38]SAM_PROTO_GetShiftState done [09:53:38]FM_GetShiftState done [09:53:38]opened in 1724200467 [09:53:38]opened+sec_in_day 1724286867 [09:53:38]quantity*price = 40002 [09:53:38]sum+1 = 40003 [09:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 77 21.08.2024 09:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140060 ФПД: 2038446527145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095341&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140060&fm=2038446527145&tin=02508201610067®Number=0000000000092569&sum=40000 [09:53:39]StoreToDocumentArchive [09:53:39]shift 454 fd 140060 [09:53:39]save to /storage/0454/doc_00140060 [09:53:39]save last doc name /storage/0454/doc_00140060 to /storage/kkm_last_doc_name [09:53:39]save OK [09:53:39]Clear old archive folders... [09:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:39]tlvbuf is 00A54700 [09:53:39]SAM_PROTO_ClearQueue [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 09 00 00 [09:53:39]Write to MH i2c: E2 08 00 F6 2D 80 09 00 00 00 00 00 00 95 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 F6 2D 00 90 00 97 [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_ClearQueue done [09:53:39]KKMCreateOFDPacket [09:53:39]OFDProtocolAddRootSTLVToBuf [09:53:39]FM_MakeSignedData [09:53:39]FM_MakeSignedData [09:53:39]SAM_PROTO_SignData [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 01 02 [09:53:39]Write to MH i2c: E2 08 00 F7 2D 80 0D 01 02 00 00 00 00 9D [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 F7 2D 00 90 00 98 [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=255 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 25 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 23 02 00 35 04 06 00 01 [09:53:39]Write to MH i2c: E2 02 01 F8 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 25 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 23 02 00 35 04 06 00 01 00 00 6A [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 F8 2D 00 90 00 99 [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=10 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 02 02 05 DA 9C E1 92 A9 [09:53:39]Write to MH i2c: E2 0D 00 F9 2D 80 0D 02 02 05 00 DA 9C E1 92 A9 00 00 3C [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 03 00 F9 2D 00 90 00 9A [09:53:39]RAPDU: 90 00 [09:53:39]wFMCommunicate OK [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 0D 03 02 [09:53:39]Write to MH i2c: E2 08 00 FA 2D 80 0D 03 02 00 00 00 00 A2 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0B 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 0B 00 FA 2D 00 17 00 C6 B2 31 AD 31 90 90 00 D1 [09:53:39]RAPDU: 17 00 C6 B2 31 AD 31 90 90 00 [09:53:39]wFMCommunicate OK [09:53:39]SAM_PROTO_SignData done [09:53:39]FM_MakeSignedData done [09:53:39]CreateOFDProtocolMessage [09:53:39]wFMCommunicate request_size=4 [09:53:39]MH_SAM_APDU [09:53:39]CAPDU: 80 11 00 00 [09:53:39]Write to MH i2c: E2 08 00 FB 2D 80 11 00 00 00 00 00 00 A2 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:39]Read from MH i2c: E2 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 17 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: E2 17 00 FB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [09:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:39]wFMCommunicate OK [09:53:39]CreateOFDProtocolMessage done [09:53:39]OFDSenderStorePacket 140060 [09:53:39]StoreOFDPacket docnum=140060 [09:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 0B 07 01 64 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 25 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 23 02 00 35 04 06 00 01 DA 9C E1 92 A9 17 00 C6 B2 31 AD 31 90 [09:53:39]CheckFolder [09:53:39]dirname=/storage/ofd_packets [09:53:39]CheckFolder done [09:53:39]ProducePacketName [09:53:39]name=ofd_packets/00140060 [09:53:39]NVStorageSaveData ofd_packets/00140060 [09:53:39]File name is /storage/ofd_packets/00140060 [09:53:39]Write 301 bytes [09:53:39]NVStorageSaveData done [09:53:39]OFDSenderStorePacket done [09:53:39]KKMCreateOFDPacket done [09:53:39]NVStorageSaveData kkm_last_timestamp [09:53:39]File name is /storage/kkm_last_timestamp [09:53:39]Write 4 bytes [09:53:39]NVStorageSaveData done [09:53:39]ExternCall_PrintAddStr [09:53:39]wPrintStart [09:53:39]Write to MH i2c: 01 00 00 FC 2D 29 [09:53:39]Write i2c OK [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 07 00 [09:53:39]MH_I2C_Read... [09:53:39]Read from MH i2c: 01 07 00 FC 2D 00 00 00 00 00 FF 0F 3E [09:53:39]RasterBufferAndPrint [09:53:39]line Счет N : (1)593914 [09:53:39]line ИНН: 02508201610067 [09:53:39]line Контрольно-Кассовый Чек [09:53:39]line ПРОДАЖА [09:53:39]line ТРК (МРК, ГНК) : 62 [09:53:39]line Товар: 2710124130 [09:53:39]line Аи-92-К-5 [09:53:39]line 5.900 * 67.80 [09:53:39]line = 400.02 [09:53:39]line НДС 12% НСП 1% [09:53:39]line > о реализуемом товаре [09:53:39]line ОКРУГЛЕНИЕ: -0.02 [09:53:39]line ИТОГО: 400.00 [09:53:39]line Внесено: 400.00 [09:53:39]line СДАЧА: 0.00 [09:53:39]line НСП 1% : 3.54 [09:53:39]line НДС 12% : 42.48 [09:53:39]line Наличными: 400.00 [09:53:39]line Безнал.: 0.00 [09:53:39]line Место: АЗС № 136 "Партнер Нефть" [09:53:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:53:39]line СНО: Общий режим [09:53:39]line Чек 77 21.08.2024 09:53 [09:53:39]line Смена: 454 ФФД: 1.0 [09:53:39]line ЗНМ: 0300000067 [09:53:39]line РНМ: 0000000000092569 [09:53:39]line Версия ККМ: 001 [09:53:39]line ФМ: 0000000000871776 [09:53:39]line ФД: 140060 [09:53:39]line ФПД: 2038446527145 [09:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095341&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140060&fm=2038446527145&tin=02508201610067®Number=0000000000092569&sum=40000 [09:53:40]written 0, free lines is 4095 [09:53:40]OFD Sender: Processing packet 140060 [packets to send 137, broken 136] [09:53:40]ProducePacketName [09:53:40]name=ofd_packets/00140060 [09:53:40]OFD Sender: To server: pG, [09:53:40]CommunicateWithHost lk.salyk.kg:30040 [09:53:40]ConnectInit lk.salyk.kg [09:53:40]Connected sock=10 [09:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 0B 07 01 64 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 25 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 23 02 00 35 04 06 00 01 DA 9C E1 92 A9 17 00 C6 B2 31 AD 31 90 [09:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CA DA 47 00 04 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 37 36 10 04 04 00 1C 23 02 00 F4 03 04 00 B6 5F C5 66 B6 04 01 00 00 95 33 3C 41 93 72 5B 9E [09:53:40]CommunicateWithHost err = 0 [09:53:40]CheckOFDResponse [09:53:40]1017 (14) - 77093643461234 [09:53:40]1041 (16) - 0000000000871776 [09:53:40]1040 (4) - 140060 [09:53:40]1012 (4) - 21.08.2024 03:32 [09:53:40]1206 (1) - 0 [09:53:40]OFD Sender: Remove packet 140060 [09:53:40]ProducePacketName [09:53:40]name=ofd_packets/00140060 [09:53:40]NVStorageDeleteData [09:53:40]Write to MH i2c: 01 00 00 27 2E 55 [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: 01 07 00 27 2E 00 00 00 00 00 D9 0C 41 [09:53:40]RasterBufferAndPrint [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]line [09:53:40]written 0, free lines is 3298 [09:53:40]MH_Cut [09:53:40]Write to MH i2c: D1 01 00 2E 2E 01 2E [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: D1 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: D1 01 00 [09:53:40]MH_I2C_Read... [09:53:40]Read from MH i2c: D1 01 00 2E 2E 00 2D [09:53:40]Write to MH i2c: 01 00 00 2F 2E 5D [09:53:40]Write i2c OK [09:53:40]MH_I2C_Read... [09:53:41]OFD Sender: No OFD packet to send [09:53:41]*** Cut start [09:53:41]*** Partial cut [09:53:41]*** CUTSNS_PIN = 1 [09:53:41]*** CUTSNS_PIN = 0 [09:53:41]*** Brake cut motor [09:53:41]Read from MH i2c: 01 [09:53:41]MH_I2C_Read... [09:53:41]*** Stop cut motor [09:53:41]*** Cut end [09:53:41]Read from MH i2c: 01 07 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: 01 07 00 2F 2E 00 00 00 00 00 FF 0F 72 [09:53:41]process_action close_receipt done [09:53:41]requested_data is exist [09:53:41]produce_requested_data [09:53:41]requested_item fm.sn is exist - process it [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 11 00 00 [09:53:41]Write to MH i2c: E2 08 00 30 2E 80 11 00 00 00 00 00 00 D8 [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:41]Read from MH i2c: E2 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 [09:53:41]MH_I2C_Read... [09:53:41]Read from MH i2c: E2 17 00 30 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [09:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:41]wFMCommunicate OK [09:53:41]requested_item fd.num is exist - process it [09:53:41]SAM_PROTO_GetFieldsCounters [09:53:41]wFMCommunicate request_size=4 [09:53:41]MH_SAM_APDU [09:53:41]CAPDU: 80 13 00 00 [09:53:41]Write to MH i2c: E2 08 00 31 2E 80 13 00 00 00 00 00 00 DB [09:53:41]Write i2c OK [09:53:41]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 62 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 62 00 31 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [09:53: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:42]wFMCommunicate OK [09:53:42]SAM_PROTO_GetFieldsCounters done [09:53:42]requested_item shift.num is exist - process it [09:53:42]requested_item shift.opened is exist - process it [09:53:42]req_shift_opened [09:53:42]FM_GetShiftState [09:53:42]SAM_PROTO_GetShiftState [09:53:42]wFMCommunicate request_size=4 [09:53:42]MH_SAM_APDU [09:53:42]CAPDU: 80 13 01 00 [09:53:42]Write to MH i2c: E2 08 00 32 2E 80 13 01 00 00 00 00 00 DD [09:53:42]Write i2c OK [09:53:42]MH_I2C_Read... [09:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:42]Read from MH i2c: E2 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 0E 00 [09:53:42]MH_I2C_Read... [09:53:42]Read from MH i2c: E2 0E 00 32 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5D [09:53:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:53:42]wFMCommunicate OK [09:53:42]SAM_PROTO_GetShiftState done [09:53:42]FM_GetShiftState done [09:53:42]req_shift_opened done [09:53:42]requested_item shift.open_date is exist - process it [09:53:42]req_shift_open_date [09:53:42]req_shift_open_date done [09:53:42]produce_requested_data done [09:53:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140060,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:53:42]process_action_free close_receipt [09:53:42]json_value_free [09:53:42]json_value_free done [09:53:42]process_json_proto returns [09:53:42]Send response to host [09:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140060,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:53:42]free response buf [09:53:42]execute_script done [09:53:42]execute_script returns [09:53:42]free content buf [09:53:42]Sock 9.Close socket [09:53:42]Sock 9.Thread stoped [09:53:46]OFD Sender: No OFD packet to send [09:53:50]accept exits with 7 [09:53:50]New connection [09:53:50]New thread 3066764644 created [09:53:50]Thread 3066908004 joined [09:53:50]Waiting for new connection... [09:53:50] Sock 7.Parse request [09:53:50]Sock 7.Check first char [09:53:50]Sock 7.First char is OK [09:53:50]request: POST /json_proto HTTP/1.0 [09:53:50]Method: POST [09:53:50]URL: /json_proto [09:53:50]Method is POST - this is cgi request [09:53:50]url: /json_proto [09:53:50]query_string will be loaded in cgi processing [09:53:50]execute_cgi json_proto POST (null) [09:53:50]execute_cgi path=json_proto method=POST [09:53:50]POST find Content-Length [09:53:50]Host: 172.17.45.67:8080 [09:53:50]Content-Length: 677 [09:53:50]Content-Type: application/json [09:53:50] [09:53:50]POST finish read [09:53:50]Found Content-Length = 677 [09:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:50]execute_script... [09:53: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)593915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:50]POST & json_proto [09:53:50]process_json_proto [09:53:50]json parsed OK: [09:53:50]protocol is kg_v1.0 [09:53:50]action value=close_receipt [09:53:50]process_action close_receipt [09:53:50]cmd_close_receipt [09:53:50]MH_GetDate [09:53:50]Write to MH i2c: F0 00 00 33 2E 50 [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: F0 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: F0 09 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: F0 09 00 33 2E 00 31 B9 C5 66 5F 7F 2B 66 DD [09:53:50]GetLastDocTimeStamp 1724234021 [09:53:50]current date 1724234033 [09:53:50]FM_GetShiftState [09:53:50]SAM_PROTO_GetShiftState [09:53:50]wFMCommunicate request_size=4 [09:53:50]MH_SAM_APDU [09:53:50]CAPDU: 80 13 01 00 [09:53:50]Write to MH i2c: E2 08 00 34 2E 80 13 01 00 00 00 00 00 DF [09:53:50]Write i2c OK [09:53:50]MH_I2C_Read... [09:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:50]Read from MH i2c: E2 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 0E 00 [09:53:50]MH_I2C_Read... [09:53:50]Read from MH i2c: E2 0E 00 34 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [09:53:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:53:50]wFMCommunicate OK [09:53:50]SAM_PROTO_GetShiftState done [09:53:50]FM_GetShiftState done [09:53:50]opened in 1724200467 [09:53:50]opened+sec_in_day 1724286867 [09:53:50]quantity*price = 20001 [09:53:50]sum+1 = 20002 [09:53:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 78 21.08.2024 09:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140061 ФПД: 165890665355474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095353&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140061&fm=165890665355474&tin=02508201610067®Number=0000000000092569&sum=20000 [09:53:51]StoreToDocumentArchive [09:53:51]shift 454 fd 140061 [09:53:51]save to /storage/0454/doc_00140061 [09:53:51]save last doc name /storage/0454/doc_00140061 to /storage/kkm_last_doc_name [09:53:51]save OK [09:53:51]Clear old archive folders... [09:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:51]tlvbuf is 00A34150 [09:53:51]SAM_PROTO_ClearQueue [09:53:51]wFMCommunicate request_size=4 [09:53:51]MH_SAM_APDU [09:53:51]CAPDU: 80 09 00 00 [09:53:51]Write to MH i2c: E2 08 00 41 2E 80 09 00 00 00 00 00 00 E1 [09:53:51]Write i2c OK [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 [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 41 2E 00 90 00 E3 [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 42 2E 80 0D 01 02 00 00 00 00 E9 [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 42 2E 00 90 00 E4 [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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 31 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 23 02 00 35 04 06 00 96 [09:53:51]Write to MH i2c: E2 02 01 43 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 31 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 23 02 00 35 04 06 00 96 00 00 76 [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 43 2E 00 90 00 E5 [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 E0 6E 2E 18 D2 [09:53:51]Write to MH i2c: E2 0D 00 44 2E 80 0D 02 02 05 00 E0 6E 2E 18 D2 00 00 5C [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 44 2E 00 90 00 E6 [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 45 2E 80 0D 03 02 00 00 00 00 EE [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 45 2E 00 15 EA 06 22 0D FE 52 F0 90 00 63 [09:53:51]RAPDU: 15 EA 06 22 0D FE 52 F0 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 46 2E 80 11 00 00 00 00 00 00 EE [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 46 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [09:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:53:51]wFMCommunicate OK [09:53:51]CreateOFDProtocolMessage done [09:53:51]OFDSenderStorePacket 140061 [09:53:51]StoreOFDPacket docnum=140061 [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 37 36 0F 01 00 00 7F 60 07 01 61 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 31 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 23 02 00 35 04 06 00 96 E0 6E 2E 18 D2 15 EA 06 22 0D FE 52 F0 [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/00140061 [09:53:51]NVStorageSaveData ofd_packets/00140061 [09:53:51]File name is /storage/ofd_packets/00140061 [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 47 2E 75 [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 47 2E 00 00 00 00 00 FF 0F 8A [09:53:51]RasterBufferAndPrint [09:53:51]line Счет N : (1)593915 [09:53:51]line ИНН: 02508201610067 [09:53:51]line Контрольно-Кассовый Чек [09:53:51]line ПРОДАЖА [09:53:51]line ТРК (МРК, ГНК) : 32 [09:53:51]line Товар: 2710124130 [09:53:51]line Аи-92-К-5 [09:53:51]line 2.950 * 67.80 [09:53:51]line = 200.01 [09:53:51]line НДС 12% НСП 1% [09:53:51]line > о реализуемом товаре [09:53:51]line ОКРУГЛЕНИЕ: -0.01 [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 Место: АЗС № 136 "Партнер Нефть" [09:53:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:53:51]line СНО: Общий режим [09:53:51]line Чек 78 21.08.2024 09:53 [09:53:51]line Смена: 454 ФФД: 1.0 [09:53:51]line ЗНМ: 0300000067 [09:53:51]line РНМ: 0000000000092569 [09:53:51]line Версия ККМ: 001 [09:53:51]line ФМ: 0000000000871776 [09:53:51]line ФД: 140061 [09:53:51]line ФПД: 165890665355474 [09:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095353&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140061&fm=165890665355474&tin=02508201610067®Number=0000000000092569&sum=20000 [09:53:51]written 0, free lines is 4095 [09:53:51]OFD Sender: Processing packet 140061 [packets to send 137, broken 136] [09:53:51]ProducePacketName [09:53:51]name=ofd_packets/00140061 [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=11 [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 37 36 0F 01 00 00 7F 60 07 01 61 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4E 00 00 00 F4 03 04 00 31 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 23 02 00 35 04 06 00 96 E0 6E 2E 18 D2 15 EA 06 22 0D FE 52 F0 [09:53:52]Write to MH i2c: 01 00 00 72 2E A0 [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 72 2E 00 00 00 00 00 D4 0C 87 [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 3292 [09:53:52]MH_Cut [09:53:52]Write to MH i2c: D1 01 00 79 2E 01 79 [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 79 2E 00 78 [09:53:52]Write to MH i2c: 01 00 00 7A 2E A8 [09:53:52]Write i2c OK [09:53:52]MH_I2C_Read... [09:53: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 37 36 4F 00 00 00 C6 45 47 00 7E 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 37 36 10 04 04 00 1D 23 02 00 F4 03 04 00 C1 5F C5 66 B6 04 01 00 00 57 E1 38 F3 CB 19 FC 58 [09:53:52]CommunicateWithHost err = 0 [09:53:52]CheckOFDResponse [09:53:52]1017 (14) - 77093643461234 [09:53:52]1041 (16) - 0000000000871776 [09:53:52]1040 (4) - 140061 [09:53:52]1012 (4) - 21.08.2024 03:32 [09:53:52]1206 (1) - 0 [09:53:52]OFD Sender: Remove packet 140061 [09:53:52]ProducePacketName [09:53:52]name=ofd_packets/00140061 [09:53:52]NVStorageDeleteData [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 7A 2E 00 00 00 00 00 FF 0F BD [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 7B 2E 80 11 00 00 00 00 00 00 23 [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 7B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [09:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 7C 2E 80 13 00 00 00 00 00 00 26 [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 7C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 7D 2E 80 13 01 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 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 7D 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A8 [09:53:53]RAPDU: 09 00 01 13 36 C5 66 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":"0000000000871776","fd.num":140061,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [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":"0000000000871776","fd.num":140061,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [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 7.Close socket [09:53:53]Sock 7.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:30]accept exits with 9 [09:55:30]New connection [09:55:30]New thread 3066908004 created [09:55:30]Thread 3066764644 joined [09:55:30]Waiting for new connection... [09:55:30] Sock 9.Parse request [09:55:30]Sock 9.Check first char [09:55:30]Sock 9.First char is OK [09:55:30]request: POST /json_proto HTTP/1.0 [09:55:30]Method: POST [09:55:30]URL: /json_proto [09:55:30]Method is POST - this is cgi request [09:55:30]url: /json_proto [09:55:30]query_string will be loaded in cgi processing [09:55:30]execute_cgi json_proto POST (null) [09:55:30]execute_cgi path=json_proto method=POST [09:55:30]POST find Content-Length [09:55:30]Host: 172.17.45.67:8080 [09:55:30]Content-Length: 677 [09:55:30]Content-Type: application/json [09:55:30] [09:55:30]POST finish read [09:55:30]Found Content-Length = 677 [09:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:55:30]execute_script... [09:55: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)593916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:55:30]POST & json_proto [09:55:30]process_json_proto [09:55:30]json parsed OK: [09:55:30]protocol is kg_v1.0 [09:55:30]action value=close_receipt [09:55:30]process_action close_receipt [09:55:30]cmd_close_receipt [09:55:30]MH_GetDate [09:55:30]Write to MH i2c: F0 00 00 7E 2E 9B [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 09 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: F0 09 00 7E 2E 00 95 B9 C5 66 5F 7F 2B 66 8C [09:55:30]GetLastDocTimeStamp 1724234033 [09:55:30]current date 1724234133 [09:55:30]FM_GetShiftState [09:55:30]SAM_PROTO_GetShiftState [09:55:30]wFMCommunicate request_size=4 [09:55:30]MH_SAM_APDU [09:55:30]CAPDU: 80 13 01 00 [09:55:30]Write to MH i2c: E2 08 00 7F 2E 80 13 01 00 00 00 00 00 2A [09:55:30]Write i2c OK [09:55:30]MH_I2C_Read... [09:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:30]Read from MH i2c: E2 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0E 00 [09:55:30]MH_I2C_Read... [09:55:30]Read from MH i2c: E2 0E 00 7F 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AA [09:55:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:55:30]wFMCommunicate OK [09:55:30]SAM_PROTO_GetShiftState done [09:55:30]FM_GetShiftState done [09:55:30]opened in 1724200467 [09:55:30]opened+sec_in_day 1724286867 [09:55:30]quantity*price = 20001 [09:55:30]sum+1 = 20002 [09:55:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 79 21.08.2024 09:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140062 ФПД: 101966247154627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095533&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140062&fm=101966247154627&tin=02508201610067®Number=0000000000092569&sum=20000 [09:55:31]StoreToDocumentArchive [09:55:31]shift 454 fd 140062 [09:55:31]save to /storage/0454/doc_00140062 [09:55:31]save last doc name /storage/0454/doc_00140062 to /storage/kkm_last_doc_name [09:55:31]save OK [09:55:31]Clear old archive folders... [09:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:31]tlvbuf is 00A68090 [09:55:31]SAM_PROTO_ClearQueue [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 09 00 00 [09:55:31]Write to MH i2c: E2 08 00 8C 2E 80 09 00 00 00 00 00 00 2C [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 8C 2E 00 90 00 2E [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]SAM_PROTO_ClearQueue done [09:55:31]KKMCreateOFDPacket [09:55:31]OFDProtocolAddRootSTLVToBuf [09:55:31]FM_MakeSignedData [09:55:31]FM_MakeSignedData [09:55:31]SAM_PROTO_SignData [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 01 02 [09:55:31]Write to MH i2c: E2 08 00 8D 2E 80 0D 01 02 00 00 00 00 34 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 8D 2E 00 90 00 2F [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]wFMCommunicate request_size=255 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 95 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 23 02 00 35 04 06 00 5C [09:55:31]Write to MH i2c: E2 02 01 8E 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 95 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 23 02 00 35 04 06 00 5C 00 00 ED [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 8E 2E 00 90 00 30 [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]wFMCommunicate request_size=10 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 02 02 05 BC DD F0 D3 C3 [09:55:31]Write to MH i2c: E2 0D 00 8F 2E 80 0D 02 02 05 00 BC DD F0 D3 C3 00 00 60 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:31]Read from MH i2c: E2 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 [09:55:31]MH_I2C_Read... [09:55:31]Read from MH i2c: E2 03 00 8F 2E 00 90 00 31 [09:55:31]RAPDU: 90 00 [09:55:31]wFMCommunicate OK [09:55:31]wFMCommunicate request_size=4 [09:55:31]MH_SAM_APDU [09:55:31]CAPDU: 80 0D 03 02 [09:55:31]Write to MH i2c: E2 08 00 90 2E 80 0D 03 02 00 00 00 00 39 [09:55:31]Write i2c OK [09:55:31]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0B 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 0B 00 90 2E 00 73 ED 69 9C CE A4 6A 4C 90 00 C7 [09:55:32]RAPDU: 73 ED 69 9C CE A4 6A 4C 90 00 [09:55:32]wFMCommunicate OK [09:55:32]SAM_PROTO_SignData done [09:55:32]FM_MakeSignedData done [09:55:32]CreateOFDProtocolMessage [09:55:32]wFMCommunicate request_size=4 [09:55:32]MH_SAM_APDU [09:55:32]CAPDU: 80 11 00 00 [09:55:32]Write to MH i2c: E2 08 00 91 2E 80 11 00 00 00 00 00 00 39 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:32]Read from MH i2c: E2 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: E2 17 00 91 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [09:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:55:32]wFMCommunicate OK [09:55:32]CreateOFDProtocolMessage done [09:55:32]OFDSenderStorePacket 140062 [09:55:32]StoreOFDPacket docnum=140062 [09:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E1 B6 07 01 34 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 95 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 23 02 00 35 04 06 00 5C BC DD F0 D3 C3 73 ED 69 9C CE A4 6A 4C [09:55:32]CheckFolder [09:55:32]dirname=/storage/ofd_packets [09:55:32]CheckFolder done [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00140062 [09:55:32]NVStorageSaveData ofd_packets/00140062 [09:55:32]File name is /storage/ofd_packets/00140062 [09:55:32]Write 301 bytes [09:55:32]NVStorageSaveData done [09:55:32]OFDSenderStorePacket done [09:55:32]KKMCreateOFDPacket done [09:55:32]NVStorageSaveData kkm_last_timestamp [09:55:32]File name is /storage/kkm_last_timestamp [09:55:32]Write 4 bytes [09:55:32]NVStorageSaveData done [09:55:32]ExternCall_PrintAddStr [09:55:32]wPrintStart [09:55:32]Write to MH i2c: 01 00 00 92 2E C0 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 92 2E 00 00 00 00 00 FF 0F D5 [09:55:32]RasterBufferAndPrint [09:55:32]line Счет N : (1)593916 [09:55:32]line ИНН: 02508201610067 [09:55:32]line Контрольно-Кассовый Чек [09:55:32]line ПРОДАЖА [09:55:32]line ТРК (МРК, ГНК) : 62 [09:55:32]line Товар: 2710124130 [09:55:32]line Аи-92-К-5 [09:55:32]line 2.950 * 67.80 [09:55:32]line = 200.01 [09:55:32]line НДС 12% НСП 1% [09:55:32]line > о реализуемом товаре [09:55:32]line ОКРУГЛЕНИЕ: -0.01 [09:55:32]line ИТОГО: 200.00 [09:55:32]line Внесено: 200.00 [09:55:32]line СДАЧА: 0.00 [09:55:32]line НСП 1% : 1.77 [09:55:32]line НДС 12% : 21.24 [09:55:32]line Наличными: 200.00 [09:55:32]line Безнал.: 0.00 [09:55:32]line Место: АЗС № 136 "Партнер Нефть" [09:55:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [09:55:32]line СНО: Общий режим [09:55:32]line Чек 79 21.08.2024 09:55 [09:55:32]line Смена: 454 ФФД: 1.0 [09:55:32]line ЗНМ: 0300000067 [09:55:32]line РНМ: 0000000000092569 [09:55:32]line Версия ККМ: 001 [09:55:32]line ФМ: 0000000000871776 [09:55:32]line ФД: 140062 [09:55:32]line ФПД: 101966247154627 [09:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T095533&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140062&fm=101966247154627&tin=02508201610067®Number=0000000000092569&sum=20000 [09:55:32]written 0, free lines is 4095 [09:55:32]OFD Sender: Processing packet 140062 [packets to send 137, broken 136] [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00140062 [09:55:32]OFD Sender: To server: pG, [09:55:32]CommunicateWithHost lk.salyk.kg:30040 [09:55:32]ConnectInit lk.salyk.kg [09:55:32]Connected sock=10 [09:55: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 37 36 0F 01 00 00 E1 B6 07 01 34 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 95 B9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 23 02 00 35 04 06 00 5C BC DD F0 D3 C3 73 ED 69 9C CE A4 6A 4C [09:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 22 F4 47 00 3C 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 23 02 00 F4 03 04 00 26 60 C5 66 B6 04 01 00 00 EB 3C 9F C9 40 59 DA E4 [09:55:32]CommunicateWithHost err = 0 [09:55:32]CheckOFDResponse [09:55:32]1017 (14) - 77093643461234 [09:55:32]1041 (16) - 0000000000871776 [09:55:32]1040 (4) - 140062 [09:55:32]1012 (4) - 21.08.2024 03:33 [09:55:32]1206 (1) - 0 [09:55:32]OFD Sender: Remove packet 140062 [09:55:32]ProducePacketName [09:55:32]name=ofd_packets/00140062 [09:55:32]NVStorageDeleteData [09:55:32]Write to MH i2c: 01 00 00 BD 2E EB [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: 01 07 00 BD 2E 00 00 00 00 00 D9 0C D7 [09:55:32]RasterBufferAndPrint [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]line [09:55:32]written 0, free lines is 3296 [09:55:32]MH_Cut [09:55:32]Write to MH i2c: D1 01 00 C4 2E 01 C4 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 01 00 [09:55:32]MH_I2C_Read... [09:55:32]Read from MH i2c: D1 01 00 C4 2E 00 C3 [09:55:32]Write to MH i2c: 01 00 00 C5 2E F3 [09:55:32]Write i2c OK [09:55:32]MH_I2C_Read... [09:55:33]OFD Sender: No OFD packet to send [09:55:33]*** Cut start [09:55:33]*** Partial cut [09:55:33]*** CUTSNS_PIN = 1 [09:55:33]*** CUTSNS_PIN = 0 [09:55:33]*** Brake cut motor [09:55:34]Read from MH i2c: 01 [09:55:34]MH_I2C_Read... [09:55:34]*** Stop cut motor [09:55:34]*** Cut end [09:55:34]Read from MH i2c: 01 07 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: 01 07 00 C5 2E 00 00 00 00 00 FF 0F 08 [09:55:34]process_action close_receipt done [09:55:34]requested_data is exist [09:55:34]produce_requested_data [09:55:34]requested_item fm.sn is exist - process it [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 11 00 00 [09:55:34]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [09:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [09:55:34]wFMCommunicate OK [09:55:34]requested_item fd.num is exist - process it [09:55:34]SAM_PROTO_GetFieldsCounters [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 00 00 [09:55:34]Write to MH i2c: E2 08 00 C7 2E 80 13 00 00 00 00 00 00 71 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 62 00 C7 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetFieldsCounters done [09:55:34]requested_item shift.num is exist - process it [09:55:34]requested_item shift.opened is exist - process it [09:55:34]req_shift_opened [09:55:34]FM_GetShiftState [09:55:34]SAM_PROTO_GetShiftState [09:55:34]wFMCommunicate request_size=4 [09:55:34]MH_SAM_APDU [09:55:34]CAPDU: 80 13 01 00 [09:55:34]Write to MH i2c: E2 08 00 C8 2E 80 13 01 00 00 00 00 00 73 [09:55:34]Write i2c OK [09:55:34]MH_I2C_Read... [09:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:34]Read from MH i2c: E2 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 [09:55:34]MH_I2C_Read... [09:55:34]Read from MH i2c: E2 0E 00 C8 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F3 [09:55:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [09:55:34]wFMCommunicate OK [09:55:34]SAM_PROTO_GetShiftState done [09:55:34]FM_GetShiftState done [09:55:34]req_shift_opened done [09:55:34]requested_item shift.open_date is exist - process it [09:55:34]req_shift_open_date [09:55:34]req_shift_open_date done [09:55:34]produce_requested_data done [09:55:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140062,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [09:55:34]process_action_free close_receipt [09:55:34]json_value_free [09:55:34]json_value_free done [09:55:34]process_json_proto returns [09:55:34]Send response to host [09:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140062,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [09:55:34]free response buf [09:55:34]execute_script done [09:55:34]execute_script returns [09:55:34]free content buf [09:55:34]Sock 9.Close socket [09:55:34]Sock 9.Thread stoped [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:40]accept exits with 7 [10:00:40]New connection [10:00:40]New thread 3066764644 created [10:00:40]Thread 3066908004 joined [10:00:40]Waiting for new connection... [10:00:40] Sock 7.Parse request [10:00:40]Sock 7.Check first char [10:00:40]Sock 7.First char is OK [10:00:40]request: POST /json_proto HTTP/1.0 [10:00:40]Method: POST [10:00:40]URL: /json_proto [10:00:40]Method is POST - this is cgi request [10:00:40]url: /json_proto [10:00:40]query_string will be loaded in cgi processing [10:00:40]execute_cgi json_proto POST (null) [10:00:40]execute_cgi path=json_proto method=POST [10:00:40]POST find Content-Length [10:00:40]Host: 172.17.45.67:8080 [10:00:40]Content-Length: 682 [10:00:40]Content-Type: application/json [10:00:40] [10:00:40]POST finish read [10:00:40]Found Content-Length = 682 [10:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:40]execute_script... [10:00: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)593917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:40]POST & json_proto [10:00:40]process_json_proto [10:00:40]json parsed OK: [10:00:40]protocol is kg_v1.0 [10:00:40]action value=close_receipt [10:00:40]process_action close_receipt [10:00:40]cmd_close_receipt [10:00:40]MH_GetDate [10:00:40]Write to MH i2c: F0 00 00 C9 2E E6 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: F0 09 00 C9 2E 00 CB BA C5 66 5F 7F 2B 66 0E [10:00:40]GetLastDocTimeStamp 1724234133 [10:00:40]current date 1724234443 [10:00:40]FM_GetShiftState [10:00:40]SAM_PROTO_GetShiftState [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 13 01 00 [10:00:40]Write to MH i2c: E2 08 00 CA 2E 80 13 01 00 00 00 00 00 75 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 CA 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F5 [10:00:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_GetShiftState done [10:00:40]FM_GetShiftState done [10:00:40]opened in 1724200467 [10:00:40]opened+sec_in_day 1724286867 [10:00:40]quantity*price = 100005 [10:00:40]sum+1 = 100006 [10:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 80 21.08.2024 10:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140063 ФПД: 194881354286574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140063&fm=194881354286574&tin=02508201610067®Number=0000000000092569&sum=100000 [10:00:41]StoreToDocumentArchive [10:00:41]shift 454 fd 140063 [10:00:41]save to /storage/0454/doc_00140063 [10:00:41]save last doc name /storage/0454/doc_00140063 to /storage/kkm_last_doc_name [10:00:41]save OK [10:00:41]Clear old archive folders... [10:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:41]tlvbuf is 00A54870 [10:00:41]SAM_PROTO_ClearQueue [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 09 00 00 [10:00:41]Write to MH i2c: E2 08 00 D7 2E 80 09 00 00 00 00 00 00 77 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 D7 2E 00 90 00 79 [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]SAM_PROTO_ClearQueue done [10:00:41]KKMCreateOFDPacket [10:00:41]OFDProtocolAddRootSTLVToBuf [10:00:41]FM_MakeSignedData [10:00:41]FM_MakeSignedData [10:00:41]SAM_PROTO_SignData [10:00:41]wFMCommunicate request_size=4 [10:00:41]MH_SAM_APDU [10:00:41]CAPDU: 80 0D 01 02 [10:00:41]Write to MH i2c: E2 08 00 D8 2E 80 0D 01 02 00 00 00 00 7F [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:41]Read from MH i2c: E2 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 [10:00:41]MH_I2C_Read... [10:00:41]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [10:00:41]RAPDU: 90 00 [10:00:41]wFMCommunicate OK [10:00:41]wFMCommunicate request_size=255 [10:00:41]MH_SAM_APDU [10:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CB BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 23 02 00 35 04 06 00 B1 [10:00:41]Write to MH i2c: E2 02 01 D9 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CB BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 23 02 00 35 04 06 00 B1 00 00 53 [10:00:41]Write i2c OK [10:00:41]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 D9 2E 00 90 00 7B [10:00:42]RAPDU: 90 00 [10:00:42]wFMCommunicate OK [10:00:42]wFMCommunicate request_size=10 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 0D 02 02 05 3E 59 E5 45 EE [10:00:42]Write to MH i2c: E2 0D 00 DA 2E 80 0D 02 02 05 00 3E 59 E5 45 EE 00 00 3B [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 03 00 DA 2E 00 90 00 7C [10:00:42]RAPDU: 90 00 [10:00:42]wFMCommunicate OK [10:00:42]wFMCommunicate request_size=4 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 0D 03 02 [10:00:42]Write to MH i2c: E2 08 00 DB 2E 80 0D 03 02 00 00 00 00 84 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0B 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 0B 00 DB 2E 00 38 C1 E3 27 57 C8 34 CB 90 00 A6 [10:00:42]RAPDU: 38 C1 E3 27 57 C8 34 CB 90 00 [10:00:42]wFMCommunicate OK [10:00:42]SAM_PROTO_SignData done [10:00:42]FM_MakeSignedData done [10:00:42]CreateOFDProtocolMessage [10:00:42]wFMCommunicate request_size=4 [10:00:42]MH_SAM_APDU [10:00:42]CAPDU: 80 11 00 00 [10:00:42]Write to MH i2c: E2 08 00 DC 2E 80 11 00 00 00 00 00 00 84 [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:42]Read from MH i2c: E2 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: E2 17 00 DC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [10:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:42]wFMCommunicate OK [10:00:42]CreateOFDProtocolMessage done [10:00:42]OFDSenderStorePacket 140063 [10:00:42]StoreOFDPacket docnum=140063 [10:00:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 0C 07 01 9A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CB BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 23 02 00 35 04 06 00 B1 3E 59 E5 45 EE 38 C1 E3 27 57 C8 34 CB [10:00:42]CheckFolder [10:00:42]dirname=/storage/ofd_packets [10:00:42]CheckFolder done [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00140063 [10:00:42]NVStorageSaveData ofd_packets/00140063 [10:00:42]File name is /storage/ofd_packets/00140063 [10:00:42]Write 301 bytes [10:00:42]NVStorageSaveData done [10:00:42]OFDSenderStorePacket done [10:00:42]KKMCreateOFDPacket done [10:00:42]NVStorageSaveData kkm_last_timestamp [10:00:42]File name is /storage/kkm_last_timestamp [10:00:42]Write 4 bytes [10:00:42]NVStorageSaveData done [10:00:42]ExternCall_PrintAddStr [10:00:42]wPrintStart [10:00:42]Write to MH i2c: 01 00 00 DD 2E 0B [10:00:42]Write i2c OK [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 [10:00:42]MH_I2C_Read... [10:00:42]Read from MH i2c: 01 07 00 DD 2E 00 00 00 00 00 FF 0F 20 [10:00:42]RasterBufferAndPrint [10:00:42]line Счет N : (1)593917 [10:00:42]line ИНН: 02508201610067 [10:00:42]line Контрольно-Кассовый Чек [10:00:42]line ПРОДАЖА [10:00:42]line ТРК (МРК, ГНК) : 52 [10:00:42]line Товар: 2710124130 [10:00:42]line Аи-92-К-5 [10:00:42]line 14.750 * 67.80 [10:00:42]line = 1000.05 [10:00:42]line НДС 12% НСП 1% [10:00:42]line > о реализуемом товаре [10:00:42]line ОКРУГЛЕНИЕ: -0.05 [10:00:42]line ИТОГО: 1000.00 [10:00:42]line Внесено: 1000.00 [10:00:42]line СДАЧА: 0.00 [10:00:42]line НСП 1% : 8.85 [10:00:42]line НДС 12% : 106.20 [10:00:42]line Наличными: 1000.00 [10:00:42]line Безнал.: 0.00 [10:00:42]line Место: АЗС № 136 "Партнер Нефть" [10:00:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:00:42]line СНО: Общий режим [10:00:42]line Чек 80 21.08.2024 10:00 [10:00:42]line Смена: 454 ФФД: 1.0 [10:00:42]line ЗНМ: 0300000067 [10:00:42]line РНМ: 0000000000092569 [10:00:42]line Версия ККМ: 001 [10:00:42]line ФМ: 0000000000871776 [10:00:42]line ФД: 140063 [10:00:42]line ФПД: 194881354286574 [10:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140063&fm=194881354286574&tin=02508201610067®Number=0000000000092569&sum=100000 [10:00:42]written 0, free lines is 4095 [10:00:42]OFD Sender: Processing packet 140063 [packets to send 137, broken 136] [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00140063 [10:00:42]OFD Sender: To server: pG, [10:00:42]CommunicateWithHost lk.salyk.kg:30040 [10:00:42]ConnectInit lk.salyk.kg [10:00:42]Connected sock=10 [10:00: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 37 36 0F 01 00 00 3E 0C 07 01 9A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CB BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 23 02 00 35 04 06 00 B1 3E 59 E5 45 EE 38 C1 E3 27 57 C8 34 CB [10:00: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 37 36 4F 00 00 00 55 2A 47 00 33 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 37 36 10 04 04 00 1F 23 02 00 F4 03 04 00 5C 61 C5 66 B6 04 01 00 00 73 01 06 BD C8 60 EE 17 [10:00:42]CommunicateWithHost err = 0 [10:00:42]CheckOFDResponse [10:00:42]1017 (14) - 77093643461234 [10:00:42]1041 (16) - 0000000000871776 [10:00:42]1040 (4) - 140063 [10:00:42]1012 (4) - 21.08.2024 03:39 [10:00:42]1206 (1) - 0 [10:00:42]OFD Sender: Remove packet 140063 [10:00:42]ProducePacketName [10:00:42]name=ofd_packets/00140063 [10:00:42]NVStorageDeleteData [10:00:43]Write to MH i2c: 01 00 00 08 2F 37 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: 01 07 00 08 2F 00 00 00 00 00 C8 0C 12 [10:00:43]RasterBufferAndPrint [10:00:43]line [10:00:43]line [10:00:43]line [10:00:43]line [10:00:43]line [10:00:43]written 0, free lines is 3279 [10:00:43]MH_Cut [10:00:43]Write to MH i2c: D1 01 00 0F 2F 01 10 [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: D1 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: D1 01 00 [10:00:43]MH_I2C_Read... [10:00:43]Read from MH i2c: D1 01 00 0F 2F 00 0F [10:00:43]Write to MH i2c: 01 00 00 10 2F 3F [10:00:43]Write i2c OK [10:00:43]MH_I2C_Read... [10:00:43]OFD Sender: No OFD packet to send [10:00:43]*** Cut start [10:00:43]*** Partial cut [10:00:43]*** CUTSNS_PIN = 1 [10:00:43]*** CUTSNS_PIN = 0 [10:00:44]*** Brake cut motor [10:00:44]Read from MH i2c: 01 [10:00:44]MH_I2C_Read... [10:00:44]*** Stop cut motor [10:00:44]*** Cut end [10:00:44]Read from MH i2c: 01 07 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: 01 07 00 10 2F 00 00 00 00 00 FF 0F 54 [10:00:44]process_action close_receipt done [10:00:44]requested_data is exist [10:00:44]produce_requested_data [10:00:44]requested_item fm.sn is exist - process it [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 11 00 00 [10:00:44]Write to MH i2c: E2 08 00 11 2F 80 11 00 00 00 00 00 00 BA [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 17 00 11 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [10:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:00:44]wFMCommunicate OK [10:00:44]requested_item fd.num is exist - process it [10:00:44]SAM_PROTO_GetFieldsCounters [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 00 00 [10:00:44]Write to MH i2c: E2 08 00 12 2F 80 13 00 00 00 00 00 00 BD [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 62 00 12 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetFieldsCounters done [10:00:44]requested_item shift.num is exist - process it [10:00:44]requested_item shift.opened is exist - process it [10:00:44]req_shift_opened [10:00:44]FM_GetShiftState [10:00:44]SAM_PROTO_GetShiftState [10:00:44]wFMCommunicate request_size=4 [10:00:44]MH_SAM_APDU [10:00:44]CAPDU: 80 13 01 00 [10:00:44]Write to MH i2c: E2 08 00 13 2F 80 13 01 00 00 00 00 00 BF [10:00:44]Write i2c OK [10:00:44]MH_I2C_Read... [10:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:44]Read from MH i2c: E2 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 [10:00:44]MH_I2C_Read... [10:00:44]Read from MH i2c: E2 0E 00 13 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3F [10:00:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:00:44]wFMCommunicate OK [10:00:44]SAM_PROTO_GetShiftState done [10:00:44]FM_GetShiftState done [10:00:44]req_shift_opened done [10:00:44]requested_item shift.open_date is exist - process it [10:00:44]req_shift_open_date [10:00:44]req_shift_open_date done [10:00:44]produce_requested_data done [10:00:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140063,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:00:44]process_action_free close_receipt [10:00:44]json_value_free [10:00:44]json_value_free done [10:00:44]process_json_proto returns [10:00:44]Send response to host [10:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140063,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:00:44]free response buf [10:00:44]execute_script done [10:00:44]execute_script returns [10:00:44]free content buf [10:00:44]Sock 7.Close socket [10:00:44]Sock 7.Thread stoped [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:05]accept exits with 9 [10:01:05]New connection [10:01:05]New thread 3066908004 created [10:01:05]Thread 3066764644 joined [10:01:05]Waiting for new connection... [10:01:05] Sock 9.Parse request [10:01:05]Sock 9.Check first char [10:01:05]Sock 9.First char is OK [10:01:05]request: POST /json_proto HTTP/1.0 [10:01:05]Method: POST [10:01:05]URL: /json_proto [10:01:05]Method is POST - this is cgi request [10:01:05]url: /json_proto [10:01:05]query_string will be loaded in cgi processing [10:01:05]execute_cgi json_proto POST (null) [10:01:05]execute_cgi path=json_proto method=POST [10:01:05]POST find Content-Length [10:01:05]Host: 172.17.45.67:8080 [10:01:05]Content-Length: 677 [10:01:05]Content-Type: application/json [10:01:05] [10:01:05]POST finish read [10:01:05]Found Content-Length = 677 [10:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:01:05]execute_script... [10:01: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)593918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:01:05]POST & json_proto [10:01:05]process_json_proto [10:01:05]json parsed OK: [10:01:05]protocol is kg_v1.0 [10:01:05]action value=close_receipt [10:01:05]process_action close_receipt [10:01:05]cmd_close_receipt [10:01:05]MH_GetDate [10:01:05]Write to MH i2c: F0 00 00 14 2F 32 [10:01:05]Write i2c OK [10:01:05]MH_I2C_Read... [10:01:05]Read from MH i2c: F0 [10:01:05]MH_I2C_Read... [10:01:05]Read from MH i2c: F0 09 00 [10:01:05]MH_I2C_Read... [10:01:05]Read from MH i2c: F0 09 00 14 2F 00 E4 BA C5 66 5F 7F 2B 66 73 [10:01:05]GetLastDocTimeStamp 1724234443 [10:01:05]current date 1724234468 [10:01:05]FM_GetShiftState [10:01:05]SAM_PROTO_GetShiftState [10:01:05]wFMCommunicate request_size=4 [10:01:05]MH_SAM_APDU [10:01:05]CAPDU: 80 13 01 00 [10:01:05]Write to MH i2c: E2 08 00 15 2F 80 13 01 00 00 00 00 00 C1 [10:01:05]Write i2c OK [10:01:05]MH_I2C_Read... [10:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:05]Read from MH i2c: E2 [10:01:05]MH_I2C_Read... [10:01:05]Read from MH i2c: E2 0E 00 [10:01:05]MH_I2C_Read... [10:01:05]Read from MH i2c: E2 0E 00 15 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 41 [10:01:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:01:05]wFMCommunicate OK [10:01:05]SAM_PROTO_GetShiftState done [10:01:05]FM_GetShiftState done [10:01:05]opened in 1724200467 [10:01:05]opened+sec_in_day 1724286867 [10:01:05]quantity*price = 20001 [10:01:05]sum+1 = 20002 [10:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 81 21.08.2024 10:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140064 ФПД: 143734288930415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140064&fm=143734288930415&tin=02508201610067®Number=0000000000092569&sum=20000 [10:01:06]StoreToDocumentArchive [10:01:06]shift 454 fd 140064 [10:01:06]save to /storage/0454/doc_00140064 [10:01:06]save last doc name /storage/0454/doc_00140064 to /storage/kkm_last_doc_name [10:01:06]save OK [10:01:06]Clear old archive folders... [10:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:06]tlvbuf is 00A0C440 [10:01:06]SAM_PROTO_ClearQueue [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 09 00 00 [10:01:06]Write to MH i2c: E2 08 00 22 2F 80 09 00 00 00 00 00 00 C3 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 22 2F 00 90 00 C5 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_ClearQueue done [10:01:06]KKMCreateOFDPacket [10:01:06]OFDProtocolAddRootSTLVToBuf [10:01:06]FM_MakeSignedData [10:01:06]FM_MakeSignedData [10:01:06]SAM_PROTO_SignData [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 0D 01 02 [10:01:06]Write to MH i2c: E2 08 00 23 2F 80 0D 01 02 00 00 00 00 CB [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 03 00 23 2F 00 90 00 C6 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]wFMCommunicate request_size=255 [10:01:06]MH_SAM_APDU [10:01: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E4 BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 23 02 00 35 04 06 00 82 [10:01:06]Write to MH i2c: E2 02 01 24 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E4 BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 23 02 00 35 04 06 00 82 00 00 FE [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 24 2F 00 90 00 C7 [10:01:07]RAPDU: 90 00 [10:01:07]wFMCommunicate OK [10:01:07]wFMCommunicate request_size=10 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 0D 02 02 05 B9 BF 3B D6 6F [10:01:07]Write to MH i2c: E2 0D 00 25 2F 80 0D 02 02 05 00 B9 BF 3B D6 6F 00 00 D0 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 03 00 25 2F 00 90 00 C8 [10:01:07]RAPDU: 90 00 [10:01:07]wFMCommunicate OK [10:01:07]wFMCommunicate request_size=4 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 0D 03 02 [10:01:07]Write to MH i2c: E2 08 00 26 2F 80 0D 03 02 00 00 00 00 D0 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 0B 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 0B 00 26 2F 00 13 B2 96 9C FA 36 25 2E 90 00 4B [10:01:07]RAPDU: 13 B2 96 9C FA 36 25 2E 90 00 [10:01:07]wFMCommunicate OK [10:01:07]SAM_PROTO_SignData done [10:01:07]FM_MakeSignedData done [10:01:07]CreateOFDProtocolMessage [10:01:07]wFMCommunicate request_size=4 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 11 00 00 [10:01:07]Write to MH i2c: E2 08 00 27 2F 80 11 00 00 00 00 00 00 D0 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:07]Read from MH i2c: E2 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 17 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: E2 17 00 27 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [10:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:01:07]wFMCommunicate OK [10:01:07]CreateOFDProtocolMessage done [10:01:07]OFDSenderStorePacket 140064 [10:01:07]StoreOFDPacket docnum=140064 [10:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DE 9B 07 01 0F 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E4 BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 23 02 00 35 04 06 00 82 B9 BF 3B D6 6F 13 B2 96 9C FA 36 25 2E [10:01:07]CheckFolder [10:01:07]dirname=/storage/ofd_packets [10:01:07]CheckFolder done [10:01:07]ProducePacketName [10:01:07]name=ofd_packets/00140064 [10:01:07]NVStorageSaveData ofd_packets/00140064 [10:01:07]File name is /storage/ofd_packets/00140064 [10:01:07]Write 301 bytes [10:01:07]NVStorageSaveData done [10:01:07]OFDSenderStorePacket done [10:01:07]KKMCreateOFDPacket done [10:01:07]NVStorageSaveData kkm_last_timestamp [10:01:07]File name is /storage/kkm_last_timestamp [10:01:07]Write 4 bytes [10:01:07]NVStorageSaveData done [10:01:07]ExternCall_PrintAddStr [10:01:07]wPrintStart [10:01:07]Write to MH i2c: 01 00 00 28 2F 57 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 07 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 07 00 28 2F 00 00 00 00 00 FF 0F 6C [10:01:07]RasterBufferAndPrint [10:01:07]line Счет N : (1)593918 [10:01:07]line ИНН: 02508201610067 [10:01:07]line Контрольно-Кассовый Чек [10:01:07]line ПРОДАЖА [10:01:07]line ТРК (МРК, ГНК) : 32 [10:01:07]line Товар: 2710124130 [10:01:07]line Аи-92-К-5 [10:01:07]line 2.950 * 67.80 [10:01:07]line = 200.01 [10:01:07]line НДС 12% НСП 1% [10:01:07]line > о реализуемом товаре [10:01:07]line ОКРУГЛЕНИЕ: -0.01 [10:01:07]line ИТОГО: 200.00 [10:01:07]line Внесено: 200.00 [10:01:07]line СДАЧА: 0.00 [10:01:07]line НСП 1% : 1.77 [10:01:07]line НДС 12% : 21.24 [10:01:07]line Наличными: 200.00 [10:01:07]line Безнал.: 0.00 [10:01:07]line Место: АЗС № 136 "Партнер Нефть" [10:01:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:01:07]line СНО: Общий режим [10:01:07]line Чек 81 21.08.2024 10:01 [10:01:07]line Смена: 454 ФФД: 1.0 [10:01:07]line ЗНМ: 0300000067 [10:01:07]line РНМ: 0000000000092569 [10:01:07]line Версия ККМ: 001 [10:01:07]line ФМ: 0000000000871776 [10:01:07]line ФД: 140064 [10:01:07]line ФПД: 143734288930415 [10:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140064&fm=143734288930415&tin=02508201610067®Number=0000000000092569&sum=20000 [10:01:07]OFD Sender: Processing packet 140064 [packets to send 137, broken 136] [10:01:07]ProducePacketName [10:01:07]name=ofd_packets/00140064 [10:01:07]OFD Sender: To server: pG, [10:01:07]CommunicateWithHost lk.salyk.kg:30040 [10:01:07]ConnectInit lk.salyk.kg [10:01:07]written 0, free lines is 4095 [10:01:07]Connected sock=10 [10:01: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 37 36 0F 01 00 00 DE 9B 07 01 0F 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E4 BA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 23 02 00 35 04 06 00 82 B9 BF 3B D6 6F 13 B2 96 9C FA 36 25 2E [10:01: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 37 36 4F 00 00 00 78 6E 47 00 D2 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 37 36 10 04 04 00 20 23 02 00 F4 03 04 00 75 61 C5 66 B6 04 01 00 00 E5 8A D1 9E 0D 1A 26 6C [10:01:08]CommunicateWithHost err = 0 [10:01:08]CheckOFDResponse [10:01:08]1017 (14) - 77093643461234 [10:01:08]1041 (16) - 0000000000871776 [10:01:08]1040 (4) - 140064 [10:01:08]1012 (4) - 21.08.2024 03:39 [10:01:08]1206 (1) - 0 [10:01:08]OFD Sender: Remove packet 140064 [10:01:08]ProducePacketName [10:01:08]name=ofd_packets/00140064 [10:01:08]NVStorageDeleteData [10:01:08]Write to MH i2c: 01 00 00 53 2F 82 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 53 2F 00 00 00 00 00 C8 0C 5D [10:01:08]RasterBufferAndPrint [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]line [10:01:08]written 0, free lines is 3278 [10:01:08]MH_Cut [10:01:08]Write to MH i2c: D1 01 00 5A 2F 01 5B [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 01 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: D1 01 00 5A 2F 00 5A [10:01:08]Write to MH i2c: 01 00 00 5B 2F 8A [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]OFD Sender: No OFD packet to send [10:01:08]*** Cut start [10:01:08]*** Partial cut [10:01:08]*** CUTSNS_PIN = 1 [10:01:08]*** CUTSNS_PIN = 0 [10:01:09]*** Brake cut motor [10:01:09]Read from MH i2c: 01 [10:01:09]MH_I2C_Read... [10:01:09]*** Stop cut motor [10:01:09]*** Cut end [10:01:09]Read from MH i2c: 01 07 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 5B 2F 00 00 00 00 00 FF 0F 9F [10:01:09]process_action close_receipt done [10:01:09]requested_data is exist [10:01:09]produce_requested_data [10:01:09]requested_item fm.sn is exist - process it [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 11 00 00 [10:01:09]Write to MH i2c: E2 08 00 5C 2F 80 11 00 00 00 00 00 00 05 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 5C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [10:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:01:09]wFMCommunicate OK [10:01:09]requested_item fd.num is exist - process it [10:01:09]SAM_PROTO_GetFieldsCounters [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 13 00 00 [10:01:09]Write to MH i2c: E2 08 00 5D 2F 80 13 00 00 00 00 00 00 08 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 62 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 62 00 5D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:09]wFMCommunicate OK [10:01:09]SAM_PROTO_GetFieldsCounters done [10:01:09]requested_item shift.num is exist - process it [10:01:09]requested_item shift.opened is exist - process it [10:01:09]req_shift_opened [10:01:09]FM_GetShiftState [10:01:09]SAM_PROTO_GetShiftState [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 13 01 00 [10:01:09]Write to MH i2c: E2 08 00 5E 2F 80 13 01 00 00 00 00 00 0A [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0E 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 0E 00 5E 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8A [10:01:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:01:09]wFMCommunicate OK [10:01:09]SAM_PROTO_GetShiftState done [10:01:09]FM_GetShiftState done [10:01:09]req_shift_opened done [10:01:09]requested_item shift.open_date is exist - process it [10:01:09]req_shift_open_date [10:01:09]req_shift_open_date done [10:01:09]produce_requested_data done [10:01:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140064,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:01:09]process_action_free close_receipt [10:01:09]json_value_free [10:01:09]json_value_free done [10:01:09]process_json_proto returns [10:01:09]Send response to host [10:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140064,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:01:09]free response buf [10:01:09]execute_script done [10:01:09]execute_script returns [10:01:09]free content buf [10:01:09]Sock 9.Close socket [10:01:09]Sock 9.Thread stoped [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:54]accept exits with 7 [10:01:54]New connection [10:01:54]New thread 3066764644 created [10:01:54]Thread 3066908004 joined [10:01:54]Waiting for new connection... [10:01:54] Sock 7.Parse request [10:01:54]Sock 7.Check first char [10:01:54]Sock 7.First char is OK [10:01:54]request: POST /json_proto HTTP/1.0 [10:01:54]Method: POST [10:01:54]URL: /json_proto [10:01:54]Method is POST - this is cgi request [10:01:54]url: /json_proto [10:01:54]query_string will be loaded in cgi processing [10:01:54]execute_cgi json_proto POST (null) [10:01:54]execute_cgi path=json_proto method=POST [10:01:54]POST find Content-Length [10:01:54]Host: 172.17.45.67:8080 [10:01:54]Content-Length: 677 [10:01:54]Content-Type: application/json [10:01:54] [10:01:54]POST finish read [10:01:54]Found Content-Length = 677 [10:01:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:54]execute_script... [10:01: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)593919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.590, "sum" : 650.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:54]POST & json_proto [10:01:54]process_json_proto [10:01:54]json parsed OK: [10:01:54]protocol is kg_v1.0 [10:01:54]action value=close_receipt [10:01:54]process_action close_receipt [10:01:54]cmd_close_receipt [10:01:54]MH_GetDate [10:01:54]Write to MH i2c: F0 00 00 5F 2F 7D [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: F0 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: F0 09 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: F0 09 00 5F 2F 00 15 BB C5 66 5F 7F 2B 66 F0 [10:01:54]GetLastDocTimeStamp 1724234468 [10:01:54]current date 1724234517 [10:01:54]FM_GetShiftState [10:01:54]SAM_PROTO_GetShiftState [10:01:54]wFMCommunicate request_size=4 [10:01:54]MH_SAM_APDU [10:01:54]CAPDU: 80 13 01 00 [10:01:54]Write to MH i2c: E2 08 00 60 2F 80 13 01 00 00 00 00 00 0C [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:54]Read from MH i2c: E2 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0E 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: E2 0E 00 60 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [10:01:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:01:54]wFMCommunicate OK [10:01:54]SAM_PROTO_GetShiftState done [10:01:54]FM_GetShiftState done [10:01:54]opened in 1724200467 [10:01:54]opened+sec_in_day 1724286867 [10:01:54]quantity*price = 65020 [10:01:54]sum+1 = 65021 [10:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 82 21.08.2024 10:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140065 ФПД: 41829122154158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100157&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140065&fm=41829122154158&tin=02508201610067®Number=0000000000092569&sum=65000 [10:01:55]StoreToDocumentArchive [10:01:55]shift 454 fd 140065 [10:01:55]save to /storage/0454/doc_00140065 [10:01:55]save last doc name /storage/0454/doc_00140065 to /storage/kkm_last_doc_name [10:01:55]save OK [10:01:55]Clear old archive folders... [10:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:55]tlvbuf is 00AE8050 [10:01:55]SAM_PROTO_ClearQueue [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 09 00 00 [10:01:55]Write to MH i2c: E2 08 00 6D 2F 80 09 00 00 00 00 00 00 0E [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 6D 2F 00 90 00 10 [10:01:55]RAPDU: 90 00 [10:01:55]wFMCommunicate OK [10:01:55]SAM_PROTO_ClearQueue done [10:01:55]KKMCreateOFDPacket [10:01:55]OFDProtocolAddRootSTLVToBuf [10:01:55]FM_MakeSignedData [10:01:55]FM_MakeSignedData [10:01:55]SAM_PROTO_SignData [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 0D 01 02 [10:01:55]Write to MH i2c: E2 08 00 6E 2F 80 0D 01 02 00 00 00 00 16 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 6E 2F 00 90 00 11 [10:01:55]RAPDU: 90 00 [10:01:55]wFMCommunicate OK [10:01:55]wFMCommunicate request_size=255 [10:01:55]MH_SAM_APDU [10:01: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 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 23 02 00 35 04 06 00 26 [10:01:55]Write to MH i2c: E2 02 01 6F 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 23 02 00 35 04 06 00 26 00 00 F2 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 03 00 6F 2F 00 90 00 12 [10:01:55]RAPDU: 90 00 [10:01:55]wFMCommunicate OK [10:01:55]wFMCommunicate request_size=10 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 0D 02 02 05 0B 19 F7 9E AE [10:01:55]Write to MH i2c: E2 0D 00 70 2F 80 0D 02 02 05 00 0B 19 F7 9E AE 00 00 8A [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 03 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 03 00 70 2F 00 90 00 13 [10:01:56]RAPDU: 90 00 [10:01:56]wFMCommunicate OK [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 0D 03 02 [10:01:56]Write to MH i2c: E2 08 00 71 2F 80 0D 03 02 00 00 00 00 1B [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0B 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 0B 00 71 2F 00 97 B7 CE 0C 2F 01 A3 EC 90 00 03 [10:01:56]RAPDU: 97 B7 CE 0C 2F 01 A3 EC 90 00 [10:01:56]wFMCommunicate OK [10:01:56]SAM_PROTO_SignData done [10:01:56]FM_MakeSignedData done [10:01:56]CreateOFDProtocolMessage [10:01:56]wFMCommunicate request_size=4 [10:01:56]MH_SAM_APDU [10:01:56]CAPDU: 80 11 00 00 [10:01:56]Write to MH i2c: E2 08 00 72 2F 80 11 00 00 00 00 00 00 1B [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:56]Read from MH i2c: E2 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 17 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: E2 17 00 72 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [10:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:01:56]wFMCommunicate OK [10:01:56]CreateOFDProtocolMessage done [10:01:56]OFDSenderStorePacket 140065 [10:01:56]StoreOFDPacket docnum=140065 [10:01:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 88 A4 07 01 20 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 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 23 02 00 35 04 06 00 26 0B 19 F7 9E AE 97 B7 CE 0C 2F 01 A3 EC [10:01:56]CheckFolder [10:01:56]dirname=/storage/ofd_packets [10:01:56]CheckFolder done [10:01:56]ProducePacketName [10:01:56]name=ofd_packets/00140065 [10:01:56]NVStorageSaveData ofd_packets/00140065 [10:01:56]File name is /storage/ofd_packets/00140065 [10:01:56]Write 301 bytes [10:01:56]NVStorageSaveData done [10:01:56]OFDSenderStorePacket done [10:01:56]KKMCreateOFDPacket done [10:01:56]NVStorageSaveData kkm_last_timestamp [10:01:56]File name is /storage/kkm_last_timestamp [10:01:56]Write 4 bytes [10:01:56]NVStorageSaveData done [10:01:56]ExternCall_PrintAddStr [10:01:56]wPrintStart [10:01:56]Write to MH i2c: 01 00 00 73 2F A2 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 07 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 07 00 73 2F 00 00 00 00 00 FF 0F B7 [10:01:56]RasterBufferAndPrint [10:01:56]line Счет N : (1)593919 [10:01:56]line ИНН: 02508201610067 [10:01:56]line Контрольно-Кассовый Чек [10:01:56]line ПРОДАЖА [10:01:56]line ТРК (МРК, ГНК) : 42 [10:01:56]line Товар: 2710124130 [10:01:56]line Аи-92-К-5 [10:01:56]line 9.590 * 67.80 [10:01:56]line = 650.20 [10:01:56]line НДС 12% НСП 1% [10:01:56]line > о реализуемом товаре [10:01:56]line ОКРУГЛЕНИЕ: -0.20 [10:01:56]line ИТОГО: 650.00 [10:01:56]line Внесено: 650.00 [10:01:56]line СДАЧА: 0.00 [10:01:56]line НСП 1% : 5.75 [10:01:56]line НДС 12% : 69.05 [10:01:56]line Наличными: 650.00 [10:01:56]line Безнал.: 0.00 [10:01:56]line Место: АЗС № 136 "Партнер Нефть" [10:01:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:01:56]line СНО: Общий режим [10:01:56]line Чек 82 21.08.2024 10:01 [10:01:56]line Смена: 454 ФФД: 1.0 [10:01:56]line ЗНМ: 0300000067 [10:01:56]line РНМ: 0000000000092569 [10:01:56]line Версия ККМ: 001 [10:01:56]line ФМ: 0000000000871776 [10:01:56]line ФД: 140065 [10:01:56]line ФПД: 41829122154158 [10:01:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100157&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140065&fm=41829122154158&tin=02508201610067®Number=0000000000092569&sum=65000 [10:01:56]OFD Sender: Processing packet 140065 [packets to send 137, broken 136] [10:01:56]ProducePacketName [10:01:56]name=ofd_packets/00140065 [10:01:56]OFD Sender: To server: pG, [10:01:56]CommunicateWithHost lk.salyk.kg:30040 [10:01:56]ConnectInit lk.salyk.kg [10:01:56]written 0, free lines is 4095 [10:01:56]Connected sock=10 [10:01: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 37 36 0F 01 00 00 88 A4 07 01 20 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 76 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 15 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 23 02 00 35 04 06 00 26 0B 19 F7 9E AE 97 B7 CE 0C 2F 01 A3 EC [10:01: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 37 36 4F 00 00 00 BF 21 47 00 FD 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 37 36 10 04 04 00 21 23 02 00 F4 03 04 00 A6 61 C5 66 B6 04 01 00 00 C0 4C 03 BD DD 33 F1 4E [10:01:56]CommunicateWithHost err = 0 [10:01:56]CheckOFDResponse [10:01:56]1017 (14) - 77093643461234 [10:01:56]1041 (16) - 0000000000871776 [10:01:56]1040 (4) - 140065 [10:01:56]1012 (4) - 21.08.2024 03:40 [10:01:56]1206 (1) - 0 [10:01:56]OFD Sender: Remove packet 140065 [10:01:56]ProducePacketName [10:01:56]name=ofd_packets/00140065 [10:01:56]NVStorageDeleteData [10:01:56]Write to MH i2c: 01 00 00 9E 2F CD [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 07 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: 01 07 00 9E 2F 00 00 00 00 00 D7 0C B7 [10:01:56]RasterBufferAndPrint [10:01:56]line [10:01:56]line [10:01:56]line [10:01:56]line [10:01:56]line [10:01:56]written 0, free lines is 3296 [10:01:56]MH_Cut [10:01:56]Write to MH i2c: D1 01 00 A5 2F 01 A6 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: D1 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: D1 01 00 [10:01:56]MH_I2C_Read... [10:01:56]Read from MH i2c: D1 01 00 A5 2F 00 A5 [10:01:56]Write to MH i2c: 01 00 00 A6 2F D5 [10:01:56]Write i2c OK [10:01:56]MH_I2C_Read... [10:01:57]OFD Sender: No OFD packet to send [10:01:57]*** Cut start [10:01:57]*** Partial cut [10:01:57]*** CUTSNS_PIN = 1 [10:01:57]*** CUTSNS_PIN = 0 [10:01:57]*** Brake cut motor [10:01:58]Read from MH i2c: 01 [10:01:58]MH_I2C_Read... [10:01:58]*** Stop cut motor [10:01:58]*** Cut end [10:01:58]Read from MH i2c: 01 07 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: 01 07 00 A6 2F 00 00 00 00 00 FF 0F EA [10:01:58]process_action close_receipt done [10:01:58]requested_data is exist [10:01:58]produce_requested_data [10:01:58]requested_item fm.sn is exist - process it [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 11 00 00 [10:01:58]Write to MH i2c: E2 08 00 A7 2F 80 11 00 00 00 00 00 00 50 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 17 00 A7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [10:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:01:58]wFMCommunicate OK [10:01:58]requested_item fd.num is exist - process it [10:01:58]SAM_PROTO_GetFieldsCounters [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 13 00 00 [10:01:58]Write to MH i2c: E2 08 00 A8 2F 80 13 00 00 00 00 00 00 53 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 62 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 62 00 A8 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [10:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_GetFieldsCounters done [10:01:58]requested_item shift.num is exist - process it [10:01:58]requested_item shift.opened is exist - process it [10:01:58]req_shift_opened [10:01:58]FM_GetShiftState [10:01:58]SAM_PROTO_GetShiftState [10:01:58]wFMCommunicate request_size=4 [10:01:58]MH_SAM_APDU [10:01:58]CAPDU: 80 13 01 00 [10:01:58]Write to MH i2c: E2 08 00 A9 2F 80 13 01 00 00 00 00 00 55 [10:01:58]Write i2c OK [10:01:58]MH_I2C_Read... [10:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:58]Read from MH i2c: E2 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0E 00 [10:01:58]MH_I2C_Read... [10:01:58]Read from MH i2c: E2 0E 00 A9 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D5 [10:01:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:01:58]wFMCommunicate OK [10:01:58]SAM_PROTO_GetShiftState done [10:01:58]FM_GetShiftState done [10:01:58]req_shift_opened done [10:01:58]requested_item shift.open_date is exist - process it [10:01:58]req_shift_open_date [10:01:58]req_shift_open_date done [10:01:58]produce_requested_data done [10:01:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140065,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:01:58]process_action_free close_receipt [10:01:58]json_value_free [10:01:58]json_value_free done [10:01:58]process_json_proto returns [10:01:58]Send response to host [10:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140065,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:01:58]free response buf [10:01:58]execute_script done [10:01:58]execute_script returns [10:01:58]free content buf [10:01:58]Sock 7.Close socket [10:01:58]Sock 7.Thread stoped [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:31]accept exits with 9 [10:04:31]New connection [10:04:31]New thread 3066908004 created [10:04:31]Thread 3066764644 joined [10:04:31]Waiting for new connection... [10:04:31] Sock 9.Parse request [10:04:31]Sock 9.Check first char [10:04:31]Sock 9.First char is OK [10:04:31]request: POST /json_proto HTTP/1.0 [10:04:31]Method: POST [10:04:31]URL: /json_proto [10:04:31]Method is POST - this is cgi request [10:04:31]url: /json_proto [10:04:31]query_string will be loaded in cgi processing [10:04:31]execute_cgi json_proto POST (null) [10:04:31]execute_cgi path=json_proto method=POST [10:04:31]POST find Content-Length [10:04:31]Host: 172.17.45.67:8080 [10:04:31]Content-Length: 678 [10:04:31]Content-Type: application/json [10:04:31] [10:04:31]POST finish read [10:04:31]Found Content-Length = 678 [10:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.070, "sum" : 750.55, "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" ] } } [10:04:31]execute_script... [10:04: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)593920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.070, "sum" : 750.55, "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" ] } } [10:04:31]POST & json_proto [10:04:31]process_json_proto [10:04:31]json parsed OK: [10:04:31]protocol is kg_v1.0 [10:04:31]action value=close_receipt [10:04:31]process_action close_receipt [10:04:31]cmd_close_receipt [10:04:31]MH_GetDate [10:04:31]Write to MH i2c: F0 00 00 AA 2F C8 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: F0 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: F0 09 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: F0 09 00 AA 2F 00 B2 BB C5 66 5F 7F 2B 66 D8 [10:04:31]GetLastDocTimeStamp 1724234517 [10:04:31]current date 1724234674 [10:04:31]FM_GetShiftState [10:04:31]SAM_PROTO_GetShiftState [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 13 01 00 [10:04:31]Write to MH i2c: E2 08 00 AB 2F 80 13 01 00 00 00 00 00 57 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 AB 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [10:04:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_GetShiftState done [10:04:31]FM_GetShiftState done [10:04:31]opened in 1724200467 [10:04:31]opened+sec_in_day 1724286867 [10:04:31]quantity*price = 75054 [10:04:31]sum+1 = 75056 [10:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.70 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 83 21.08.2024 10:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140066 ФПД: 35865397974405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100435&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140066&fm=35865397974405&tin=02508201610067®Number=0000000000092569&sum=75000 [10:04:33]StoreToDocumentArchive [10:04:33]shift 454 fd 140066 [10:04:33]save to /storage/0454/doc_00140066 [10:04:33]save last doc name /storage/0454/doc_00140066 to /storage/kkm_last_doc_name [10:04:33]save OK [10:04:33]Clear old archive folders... [10:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:33]tlvbuf is 00A1B880 [10:04:33]SAM_PROTO_ClearQueue [10:04:33]wFMCommunicate request_size=4 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 09 00 00 [10:04:33]Write to MH i2c: E2 08 00 B8 2F 80 09 00 00 00 00 00 00 59 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 B8 2F 00 90 00 5B [10:04:33]RAPDU: 90 00 [10:04:33]wFMCommunicate OK [10:04:33]SAM_PROTO_ClearQueue done [10:04:33]KKMCreateOFDPacket [10:04:33]OFDProtocolAddRootSTLVToBuf [10:04:33]FM_MakeSignedData [10:04:33]FM_MakeSignedData [10:04:33]SAM_PROTO_SignData [10:04:33]wFMCommunicate request_size=4 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 0D 01 02 [10:04:33]Write to MH i2c: E2 08 00 B9 2F 80 0D 01 02 00 00 00 00 61 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 B9 2F 00 90 00 5C [10:04:33]RAPDU: 90 00 [10:04:33]wFMCommunicate OK [10:04:33]wFMCommunicate request_size=255 [10:04:33]MH_SAM_APDU [10:04: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 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 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 22 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 53 00 00 00 F4 03 04 00 B3 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 23 02 00 35 04 06 00 20 [10:04:33]Write to MH i2c: E2 02 01 BA 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 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 22 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 53 00 00 00 F4 03 04 00 B3 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 23 02 00 35 04 06 00 20 00 00 F8 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 BA 2F 00 90 00 5D [10:04:33]RAPDU: 90 00 [10:04:33]wFMCommunicate OK [10:04:33]wFMCommunicate request_size=10 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 0D 02 02 05 9E 90 4E 55 85 [10:04:33]Write to MH i2c: E2 0D 00 BB 2F 80 0D 02 02 05 00 9E 90 4E 55 85 00 00 C4 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 03 00 BB 2F 00 90 00 5E [10:04:33]RAPDU: 90 00 [10:04:33]wFMCommunicate OK [10:04:33]wFMCommunicate request_size=4 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 0D 03 02 [10:04:33]Write to MH i2c: E2 08 00 BC 2F 80 0D 03 02 00 00 00 00 66 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 0B 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 0B 00 BC 2F 00 B7 AA 25 25 9A 63 00 8B 90 00 9A [10:04:33]RAPDU: B7 AA 25 25 9A 63 00 8B 90 00 [10:04:33]wFMCommunicate OK [10:04:33]SAM_PROTO_SignData done [10:04:33]FM_MakeSignedData done [10:04:33]CreateOFDProtocolMessage [10:04:33]wFMCommunicate request_size=4 [10:04:33]MH_SAM_APDU [10:04:33]CAPDU: 80 11 00 00 [10:04:33]Write to MH i2c: E2 08 00 BD 2F 80 11 00 00 00 00 00 00 66 [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:33]Read from MH i2c: E2 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 17 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: E2 17 00 BD 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [10:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:04:33]wFMCommunicate OK [10:04:33]CreateOFDProtocolMessage done [10:04:33]OFDSenderStorePacket 140066 [10:04:33]StoreOFDPacket docnum=140066 [10:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5F 5B 07 01 88 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 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 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 22 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 53 00 00 00 F4 03 04 00 B3 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 23 02 00 35 04 06 00 20 9E 90 4E 55 85 B7 AA 25 25 9A 63 00 8B [10:04:33]CheckFolder [10:04:33]dirname=/storage/ofd_packets [10:04:33]CheckFolder done [10:04:33]ProducePacketName [10:04:33]name=ofd_packets/00140066 [10:04:33]NVStorageSaveData ofd_packets/00140066 [10:04:33]File name is /storage/ofd_packets/00140066 [10:04:33]Write 301 bytes [10:04:33]NVStorageSaveData done [10:04:33]OFDSenderStorePacket done [10:04:33]KKMCreateOFDPacket done [10:04:33]NVStorageSaveData kkm_last_timestamp [10:04:33]File name is /storage/kkm_last_timestamp [10:04:33]Write 4 bytes [10:04:33]NVStorageSaveData done [10:04:33]ExternCall_PrintAddStr [10:04:33]wPrintStart [10:04:33]Write to MH i2c: 01 00 00 BE 2F ED [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 BE 2F 00 00 00 00 00 FF 0F 02 [10:04:33]RasterBufferAndPrint [10:04:33]line Счет N : (1)593920 [10:04:33]line ИНН: 02508201610067 [10:04:33]line Контрольно-Кассовый Чек [10:04:33]line ПРОДАЖА [10:04:33]line ТРК (МРК, ГНК) : 52 [10:04:33]line Товар: 2710124130 [10:04:33]line Аи-92-К-5 [10:04:33]line 11.070 * 67.80 [10:04:33]line = 750.55 [10:04:33]line НДС 12% НСП 1% [10:04:33]line > о реализуемом товаре [10:04:33]line ОКРУГЛЕНИЕ: -0.55 [10:04:33]line ИТОГО: 750.00 [10:04:33]line Внесено: 750.00 [10:04:33]line СДАЧА: 0.00 [10:04:33]line НСП 1% : 6.64 [10:04:33]line НДС 12% : 79.70 [10:04:33]line Наличными: 750.00 [10:04:33]line Безнал.: 0.00 [10:04:33]line Место: АЗС № 136 "Партнер Нефть" [10:04:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:04:33]line СНО: Общий режим [10:04:33]line Чек 83 21.08.2024 10:04 [10:04:33]line Смена: 454 ФФД: 1.0 [10:04:33]line ЗНМ: 0300000067 [10:04:33]line РНМ: 0000000000092569 [10:04:33]line Версия ККМ: 001 [10:04:33]line ФМ: 0000000000871776 [10:04:33]line ФД: 140066 [10:04:33]line ФПД: 35865397974405 [10:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100435&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140066&fm=35865397974405&tin=02508201610067®Number=0000000000092569&sum=75000 [10:04:33]written 0, free lines is 4095 [10:04:33]OFD Sender: Processing packet 140066 [packets to send 137, broken 136] [10:04:33]ProducePacketName [10:04:33]name=ofd_packets/00140066 [10:04:33]OFD Sender: To server: pG, [10:04:33]CommunicateWithHost lk.salyk.kg:30040 [10:04:33]ConnectInit lk.salyk.kg [10:04:34]Connected sock=10 [10:04: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 37 36 0F 01 00 00 5F 5B 07 01 88 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 3E 2B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 2F 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 22 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 53 00 00 00 F4 03 04 00 B3 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 23 02 00 35 04 06 00 20 9E 90 4E 55 85 B7 AA 25 25 9A 63 00 8B [10:04: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 37 36 4F 00 00 00 EE AE 47 00 91 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 37 36 10 04 04 00 22 23 02 00 F4 03 04 00 44 62 C5 66 B6 04 01 00 00 F4 36 73 F1 00 20 0B CC [10:04:34]CommunicateWithHost err = 0 [10:04:34]CheckOFDResponse [10:04:34]1017 (14) - 77093643461234 [10:04:34]1041 (16) - 0000000000871776 [10:04:34]1040 (4) - 140066 [10:04:34]1012 (4) - 21.08.2024 03:43 [10:04:34]1206 (1) - 0 [10:04:34]OFD Sender: Remove packet 140066 [10:04:34]ProducePacketName [10:04:34]name=ofd_packets/00140066 [10:04:34]NVStorageDeleteData [10:04:34]Write to MH i2c: 01 00 00 E9 2F 18 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 07 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: 01 07 00 E9 2F 00 00 00 00 00 CE 0C F9 [10:04:34]RasterBufferAndPrint [10:04:34]line [10:04:34]line [10:04:34]line [10:04:34]line [10:04:34]line [10:04:34]written 0, free lines is 3286 [10:04:34]MH_Cut [10:04:34]Write to MH i2c: D1 01 00 F0 2F 01 F1 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: D1 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: D1 01 00 [10:04:34]MH_I2C_Read... [10:04:34]Read from MH i2c: D1 01 00 F0 2F 00 F0 [10:04:34]Write to MH i2c: 01 00 00 F1 2F 20 [10:04:34]Write i2c OK [10:04:34]MH_I2C_Read... [10:04:34]OFD Sender: No OFD packet to send [10:04:35]*** Cut start [10:04:35]*** Partial cut [10:04:35]*** CUTSNS_PIN = 1 [10:04:35]*** CUTSNS_PIN = 0 [10:04:35]*** Brake cut motor [10:04:35]Read from MH i2c: 01 [10:04:35]MH_I2C_Read... [10:04:35]*** Stop cut motor [10:04:35]*** Cut end [10:04:35]Read from MH i2c: 01 07 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: 01 07 00 F1 2F 00 00 00 00 00 FF 0F 35 [10:04:35]process_action close_receipt done [10:04:35]requested_data is exist [10:04:35]produce_requested_data [10:04:35]requested_item fm.sn is exist - process it [10:04:35]wFMCommunicate request_size=4 [10:04:35]MH_SAM_APDU [10:04:35]CAPDU: 80 11 00 00 [10:04:35]Write to MH i2c: E2 08 00 F2 2F 80 11 00 00 00 00 00 00 9B [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:35]Read from MH i2c: E2 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 17 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 17 00 F2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [10:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:04:35]wFMCommunicate OK [10:04:35]requested_item fd.num is exist - process it [10:04:35]SAM_PROTO_GetFieldsCounters [10:04:35]wFMCommunicate request_size=4 [10:04:35]MH_SAM_APDU [10:04:35]CAPDU: 80 13 00 00 [10:04:35]Write to MH i2c: E2 08 00 F3 2F 80 13 00 00 00 00 00 00 9E [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:35]Read from MH i2c: E2 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 62 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 62 00 F3 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [10:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:35]wFMCommunicate OK [10:04:35]SAM_PROTO_GetFieldsCounters done [10:04:35]requested_item shift.num is exist - process it [10:04:35]requested_item shift.opened is exist - process it [10:04:35]req_shift_opened [10:04:35]FM_GetShiftState [10:04:35]SAM_PROTO_GetShiftState [10:04:35]wFMCommunicate request_size=4 [10:04:35]MH_SAM_APDU [10:04:35]CAPDU: 80 13 01 00 [10:04:35]Write to MH i2c: E2 08 00 F4 2F 80 13 01 00 00 00 00 00 A0 [10:04:35]Write i2c OK [10:04:35]MH_I2C_Read... [10:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:35]Read from MH i2c: E2 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 [10:04:35]MH_I2C_Read... [10:04:35]Read from MH i2c: E2 0E 00 F4 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 20 [10:04:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:04:35]wFMCommunicate OK [10:04:35]SAM_PROTO_GetShiftState done [10:04:35]FM_GetShiftState done [10:04:35]req_shift_opened done [10:04:35]requested_item shift.open_date is exist - process it [10:04:35]req_shift_open_date [10:04:36]req_shift_open_date done [10:04:36]produce_requested_data done [10:04:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140066,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:04:36]process_action_free close_receipt [10:04:36]json_value_free [10:04:36]json_value_free done [10:04:36]process_json_proto returns [10:04:36]Send response to host [10:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140066,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:04:36]free response buf [10:04:36]execute_script done [10:04:36]execute_script returns [10:04:36]free content buf [10:04:36]Sock 9.Close socket [10:04:36]Sock 9.Thread stoped [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:05]accept exits with 7 [10:05:05]New connection [10:05:05]New thread 3066764644 created [10:05:05]Thread 3066908004 joined [10:05:05]Waiting for new connection... [10:05:05] Sock 7.Parse request [10:05:05]Sock 7.Check first char [10:05:05]Sock 7.First char is OK [10:05:05]request: POST /json_proto HTTP/1.0 [10:05:05]Method: POST [10:05:05]URL: /json_proto [10:05:05]Method is POST - this is cgi request [10:05:05]url: /json_proto [10:05:05]query_string will be loaded in cgi processing [10:05:05]execute_cgi json_proto POST (null) [10:05:05]execute_cgi path=json_proto method=POST [10:05:05]POST find Content-Length [10:05:05]Host: 172.17.45.67:8080 [10:05:05]Content-Length: 682 [10:05:05]Content-Type: application/json [10:05:05] [10:05:05]POST finish read [10:05:05]Found Content-Length = 682 [10:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:05]execute_script... [10:05: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)593921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:05]POST & json_proto [10:05:05]process_json_proto [10:05:05]json parsed OK: [10:05:05]protocol is kg_v1.0 [10:05:05]action value=close_receipt [10:05:05]process_action close_receipt [10:05:05]cmd_close_receipt [10:05:05]MH_GetDate [10:05:05]Write to MH i2c: F0 00 00 F5 2F 13 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: F0 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: F0 09 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: F0 09 00 F5 2F 00 D4 BB C5 66 5F 7F 2B 66 45 [10:05:05]GetLastDocTimeStamp 1724234675 [10:05:05]current date 1724234708 [10:05:05]FM_GetShiftState [10:05:05]SAM_PROTO_GetShiftState [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 13 01 00 [10:05:05]Write to MH i2c: E2 08 00 F6 2F 80 13 01 00 00 00 00 00 A2 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 0E 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 0E 00 F6 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 22 [10:05:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:05:05]wFMCommunicate OK [10:05:05]SAM_PROTO_GetShiftState done [10:05:05]FM_GetShiftState done [10:05:05]opened in 1724200467 [10:05:05]opened+sec_in_day 1724286867 [10:05:05]quantity*price = 100005 [10:05:05]sum+1 = 100006 [10:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 84 21.08.2024 10:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140067 ФПД: 192805744401438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100508&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140067&fm=192805744401438&tin=02508201610067®Number=0000000000092569&sum=100000 [10:05:06]StoreToDocumentArchive [10:05:06]shift 454 fd 140067 [10:05:06]save to /storage/0454/doc_00140067 [10:05:06]save last doc name /storage/0454/doc_00140067 to /storage/kkm_last_doc_name [10:05:06]save OK [10:05:06]Clear old archive folders... [10:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:06]tlvbuf is 00B11F50 [10:05:06]SAM_PROTO_ClearQueue [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 09 00 00 [10:05:06]Write to MH i2c: E2 08 00 03 30 80 09 00 00 00 00 00 00 A5 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 03 30 00 90 00 A7 [10:05:06]RAPDU: 90 00 [10:05:06]wFMCommunicate OK [10:05:06]SAM_PROTO_ClearQueue done [10:05:06]KKMCreateOFDPacket [10:05:06]OFDProtocolAddRootSTLVToBuf [10:05:06]FM_MakeSignedData [10:05:06]FM_MakeSignedData [10:05:06]SAM_PROTO_SignData [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 0D 01 02 [10:05:06]Write to MH i2c: E2 08 00 04 30 80 0D 01 02 00 00 00 00 AD [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 04 30 00 90 00 A8 [10:05:06]RAPDU: 90 00 [10:05:06]wFMCommunicate OK [10:05:06]wFMCommunicate request_size=255 [10:05:06]MH_SAM_APDU [10:05: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 23 02 00 35 04 06 00 AF [10:05:06]Write to MH i2c: E2 02 01 05 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 23 02 00 35 04 06 00 AF 00 00 91 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 05 30 00 90 00 A9 [10:05:06]RAPDU: 90 00 [10:05:06]wFMCommunicate OK [10:05:06]wFMCommunicate request_size=10 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 0D 02 02 05 5B 15 E7 DC 1E [10:05:06]Write to MH i2c: E2 0D 00 06 30 80 0D 02 02 05 00 5B 15 E7 DC 1E 00 00 0B [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 06 30 00 90 00 AA [10:05:06]RAPDU: 90 00 [10:05:06]wFMCommunicate OK [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 0D 03 02 [10:05:06]Write to MH i2c: E2 08 00 07 30 80 0D 03 02 00 00 00 00 B2 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 0B 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 0B 00 07 30 00 65 25 E8 67 5A 1C 3A FE 90 00 3A [10:05:06]RAPDU: 65 25 E8 67 5A 1C 3A FE 90 00 [10:05:06]wFMCommunicate OK [10:05:06]SAM_PROTO_SignData done [10:05:06]FM_MakeSignedData done [10:05:06]CreateOFDProtocolMessage [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 11 00 00 [10:05:06]Write to MH i2c: E2 08 00 08 30 80 11 00 00 00 00 00 00 B2 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:07]Read from MH i2c: E2 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: E2 17 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: E2 17 00 08 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [10:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:05:07]wFMCommunicate OK [10:05:07]CreateOFDProtocolMessage done [10:05:07]OFDSenderStorePacket 140067 [10:05:07]StoreOFDPacket docnum=140067 [10:05:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 59 61 07 01 ED 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 23 02 00 35 04 06 00 AF 5B 15 E7 DC 1E 65 25 E8 67 5A 1C 3A FE [10:05:07]CheckFolder [10:05:07]dirname=/storage/ofd_packets [10:05:07]CheckFolder done [10:05:07]ProducePacketName [10:05:07]name=ofd_packets/00140067 [10:05:07]NVStorageSaveData ofd_packets/00140067 [10:05:07]File name is /storage/ofd_packets/00140067 [10:05:07]Write 301 bytes [10:05:07]NVStorageSaveData done [10:05:07]OFDSenderStorePacket done [10:05:07]KKMCreateOFDPacket done [10:05:07]NVStorageSaveData kkm_last_timestamp [10:05:07]File name is /storage/kkm_last_timestamp [10:05:07]Write 4 bytes [10:05:07]NVStorageSaveData done [10:05:07]ExternCall_PrintAddStr [10:05:07]wPrintStart [10:05:07]Write to MH i2c: 01 00 00 09 30 39 [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 07 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 07 00 09 30 00 00 00 00 00 FF 0F 4E [10:05:07]RasterBufferAndPrint [10:05:07]line Счет N : (1)593921 [10:05:07]line ИНН: 02508201610067 [10:05:07]line Контрольно-Кассовый Чек [10:05:07]line ПРОДАЖА [10:05:07]line ТРК (МРК, ГНК) : 42 [10:05:07]line Товар: 2710124130 [10:05:07]line Аи-92-К-5 [10:05:07]line 14.750 * 67.80 [10:05:07]line = 1000.05 [10:05:07]line НДС 12% НСП 1% [10:05:07]line > о реализуемом товаре [10:05:07]line ОКРУГЛЕНИЕ: -0.05 [10:05:07]line ИТОГО: 1000.00 [10:05:07]line Внесено: 1000.00 [10:05:07]line СДАЧА: 0.00 [10:05:07]line НСП 1% : 8.85 [10:05:07]line НДС 12% : 106.20 [10:05:07]line Наличными: 1000.00 [10:05:07]line Безнал.: 0.00 [10:05:07]line Место: АЗС № 136 "Партнер Нефть" [10:05:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:05:07]line СНО: Общий режим [10:05:07]line Чек 84 21.08.2024 10:05 [10:05:07]line Смена: 454 ФФД: 1.0 [10:05:07]line ЗНМ: 0300000067 [10:05:07]line РНМ: 0000000000092569 [10:05:07]line Версия ККМ: 001 [10:05:07]line ФМ: 0000000000871776 [10:05:07]line ФД: 140067 [10:05:07]line ФПД: 192805744401438 [10:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100508&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140067&fm=192805744401438&tin=02508201610067®Number=0000000000092569&sum=100000 [10:05:07]written 0, free lines is 4095 [10:05:07]OFD Sender: Processing packet 140067 [packets to send 137, broken 136] [10:05:07]ProducePacketName [10:05:07]name=ofd_packets/00140067 [10:05:07]OFD Sender: To server: pG, [10:05:07]CommunicateWithHost lk.salyk.kg:30040 [10:05:07]ConnectInit lk.salyk.kg [10:05:07]Connected sock=10 [10:05: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 37 36 0F 01 00 00 59 61 07 01 ED 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D4 BB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 23 02 00 35 04 06 00 AF 5B 15 E7 DC 1E 65 25 E8 67 5A 1C 3A FE [10:05:07]Write to MH i2c: 01 00 00 34 30 64 [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 07 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: 01 07 00 34 30 00 00 00 00 00 DD 0C 54 [10:05:07]RasterBufferAndPrint [10:05:07]line [10:05:07]line [10:05:07]line [10:05:07]line [10:05:07]line [10:05:07]written 0, free lines is 3298 [10:05:07]MH_Cut [10:05:07]Write to MH i2c: D1 01 00 3B 30 01 3D [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: D1 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: D1 01 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: D1 01 00 3B 30 00 3C [10:05:07]Write to MH i2c: 01 00 00 3C 30 6C [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10: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 37 36 4F 00 00 00 8D 15 47 00 22 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 37 36 10 04 04 00 23 23 02 00 F4 03 04 00 65 62 C5 66 B6 04 01 00 00 A1 82 BB D7 11 5D 8E 4F [10:05:08]CommunicateWithHost err = 0 [10:05:08]CheckOFDResponse [10:05:08]1017 (14) - 77093643461234 [10:05:08]1041 (16) - 0000000000871776 [10:05:08]1040 (4) - 140067 [10:05:08]1012 (4) - 21.08.2024 03:43 [10:05:08]1206 (1) - 0 [10:05:08]OFD Sender: Remove packet 140067 [10:05:08]ProducePacketName [10:05:08]name=ofd_packets/00140067 [10:05:08]NVStorageDeleteData [10:05:08]OFD Sender: No OFD packet to send [10:05:08]*** Cut start [10:05:08]*** Partial cut [10:05:08]*** CUTSNS_PIN = 1 [10:05:08]*** CUTSNS_PIN = 0 [10:05:08]*** Brake cut motor [10:05:09]Read from MH i2c: 01 [10:05:09]MH_I2C_Read... [10:05:09]*** Stop cut motor [10:05:09]*** Cut end [10:05:09]Read from MH i2c: 01 07 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 3C 30 00 00 00 00 00 FF 0F 81 [10:05:09]process_action close_receipt done [10:05:09]requested_data is exist [10:05:09]produce_requested_data [10:05:09]requested_item fm.sn is exist - process it [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 11 00 00 [10:05:09]Write to MH i2c: E2 08 00 3D 30 80 11 00 00 00 00 00 00 E7 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 3D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [10:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:05:09]wFMCommunicate OK [10:05:09]requested_item fd.num is exist - process it [10:05:09]SAM_PROTO_GetFieldsCounters [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 00 00 [10:05:09]Write to MH i2c: E2 08 00 3E 30 80 13 00 00 00 00 00 00 EA [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 62 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 62 00 3E 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [10:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetFieldsCounters done [10:05:09]requested_item shift.num is exist - process it [10:05:09]requested_item shift.opened is exist - process it [10:05:09]req_shift_opened [10:05:09]FM_GetShiftState [10:05:09]SAM_PROTO_GetShiftState [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 13 01 00 [10:05:09]Write to MH i2c: E2 08 00 3F 30 80 13 01 00 00 00 00 00 EC [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0E 00 3F 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6C [10:05:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_GetShiftState done [10:05:09]FM_GetShiftState done [10:05:09]req_shift_opened done [10:05:09]requested_item shift.open_date is exist - process it [10:05:09]req_shift_open_date [10:05:09]req_shift_open_date done [10:05:09]produce_requested_data done [10:05:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140067,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:05:09]process_action_free close_receipt [10:05:09]json_value_free [10:05:09]json_value_free done [10:05:09]process_json_proto returns [10:05:09]Send response to host [10:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140067,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:05:09]free response buf [10:05:09]execute_script done [10:05:09]execute_script returns [10:05:09]free content buf [10:05:09]Sock 7.Close socket [10:05:09]Sock 7.Thread stoped [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]accept exits with 9 [10:06:03]New connection [10:06:03]New thread 3066908004 created [10:06:03]Thread 3066764644 joined [10:06:03]Waiting for new connection... [10:06:03] Sock 9.Parse request [10:06:03]Sock 9.Check first char [10:06:03]Sock 9.First char is OK [10:06:03]request: POST /json_proto HTTP/1.0 [10:06:03]Method: POST [10:06:03]URL: /json_proto [10:06:03]Method is POST - this is cgi request [10:06:03]url: /json_proto [10:06:03]query_string will be loaded in cgi processing [10:06:03]execute_cgi json_proto POST (null) [10:06:03]execute_cgi path=json_proto method=POST [10:06:03]POST find Content-Length [10:06:03]Host: 172.17.45.67:8080 [10:06:03]Content-Length: 797 [10:06:03]Content-Type: application/json [10:06:03] [10:06:03]POST finish read [10:06:03]Found Content-Length = 797 [10:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:03]execute_script... [10:06: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)593922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 57.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:03]POST & json_proto [10:06:03]process_json_proto [10:06:03]json parsed OK: [10:06:03]protocol is kg_v1.0 [10:06:03]action value=close_receipt [10:06:03]process_action close_receipt [10:06:03]cmd_close_receipt [10:06:03]MH_GetDate [10:06:03]Write to MH i2c: F0 00 00 40 30 5F [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 09 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 09 00 40 30 00 0E BC C5 66 5F 7F 2B 66 CC [10:06:03]GetLastDocTimeStamp 1724234708 [10:06:03]current date 1724234766 [10:06:03]FM_GetShiftState [10:06:03]SAM_PROTO_GetShiftState [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 13 01 00 [10:06:03]Write to MH i2c: E2 08 00 41 30 80 13 01 00 00 00 00 00 EE [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0E 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0E 00 41 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6E [10:06:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:06:03]wFMCommunicate OK [10:06:03]SAM_PROTO_GetShiftState done [10:06:03]FM_GetShiftState done [10:06:03]opened in 1724200467 [10:06:03]opened+sec_in_day 1724286867 [10:06:03]quantity*price = 0 [10:06:03]sum+1 = 1 [10:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 85 21.08.2024 10:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140068 ФПД: 272069763076115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140068&fm=272069763076115&tin=02508201610067®Number=0000000000092569&sum=0 [10:06:04]StoreToDocumentArchive [10:06:04]shift 454 fd 140068 [10:06:04]save to /storage/0454/doc_00140068 [10:06:04]save last doc name /storage/0454/doc_00140068 to /storage/kkm_last_doc_name [10:06:04]save OK [10:06:04]Clear old archive folders... [10:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:06:04]tlvbuf is B6ECFC80 [10:06:04]SAM_PROTO_ClearQueue [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 09 00 00 [10:06:04]Write to MH i2c: E2 08 00 4E 30 80 09 00 00 00 00 00 00 F0 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 4E 30 00 90 00 F2 [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]SAM_PROTO_ClearQueue done [10:06:04]KKMCreateOFDPacket [10:06:04]OFDProtocolAddRootSTLVToBuf [10:06:04]FM_MakeSignedData [10:06:04]FM_MakeSignedData [10:06:04]SAM_PROTO_SignData [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 01 02 [10:06:04]Write to MH i2c: E2 08 00 4F 30 80 0D 01 02 00 00 00 00 F8 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 4F 30 00 90 00 F3 [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]wFMCommunicate request_size=255 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 55 00 00 00 F4 03 04 00 0E BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 23 02 00 35 04 06 00 [10:06:04]Write to MH i2c: E2 02 01 50 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 55 00 00 00 F4 03 04 00 0E BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 23 02 00 35 04 06 00 00 00 27 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 50 30 00 90 00 F4 [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]wFMCommunicate request_size=11 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 02 02 06 F7 72 2D 95 10 13 [10:06:04]Write to MH i2c: E2 0E 00 51 30 80 0D 02 02 06 00 F7 72 2D 95 10 13 00 00 55 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 03 02 [10:06:04]Write to MH i2c: E2 08 00 52 30 80 0D 03 02 00 00 00 00 FD [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 0B 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 0B 00 52 30 00 40 6D 13 97 1C 45 9E 01 90 00 55 [10:06:04]RAPDU: 40 6D 13 97 1C 45 9E 01 90 00 [10:06:04]wFMCommunicate OK [10:06:04]SAM_PROTO_SignData done [10:06:04]FM_MakeSignedData done [10:06:04]CreateOFDProtocolMessage [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 11 00 00 [10:06:04]Write to MH i2c: E2 08 00 53 30 80 11 00 00 00 00 00 00 FD [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 17 00 53 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [10:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:04]wFMCommunicate OK [10:06:04]CreateOFDProtocolMessage done [10:06:04]OFDSenderStorePacket 140068 [10:06:04]StoreOFDPacket docnum=140068 [10:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D1 36 08 01 33 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 55 00 00 00 F4 03 04 00 0E BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 23 02 00 35 04 06 00 F7 72 2D 95 10 13 40 6D 13 97 1C 45 9E 01 [10:06:04]CheckFolder [10:06:04]dirname=/storage/ofd_packets [10:06:04]CheckFolder done [10:06:04]ProducePacketName [10:06:04]name=ofd_packets/00140068 [10:06:04]NVStorageSaveData ofd_packets/00140068 [10:06:04]File name is /storage/ofd_packets/00140068 [10:06:04]Write 302 bytes [10:06:04]NVStorageSaveData done [10:06:04]OFDSenderStorePacket done [10:06:04]KKMCreateOFDPacket done [10:06:04]NVStorageSaveData kkm_last_timestamp [10:06:04]File name is /storage/kkm_last_timestamp [10:06:04]Write 4 bytes [10:06:04]NVStorageSaveData done [10:06:04]ExternCall_PrintAddStr [10:06:04]wPrintStart [10:06:04]Write to MH i2c: 01 00 00 54 30 84 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 FF 0F 99 [10:06:04]RasterBufferAndPrint [10:06:04]line Счет N : (1)593922 [10:06:04]line ИНН: 02508201610067 [10:06:04]line Контрольно-Кассовый Чек [10:06:04]line ПРОДАЖА [10:06:04]line ТРК (МРК, ГНК) : 34 [10:06:04]line Товар: 2710194210 [10:06:04]line ДТ(л)-К-5 [10:06:04]line 57.000 * 0.00 [10:06:04]line = 0.00 [10:06:04]line НДС 12% НСП 1% [10:06:04]line > о реализуемом товаре [10:06:04]line ИТОГО: 0.00 [10:06:04]line НСП 1% : 0.00 [10:06:04]line НДС 12% : 0.00 [10:06:04]line Наличными: 0.00 [10:06:04]line Безнал.: 0.00 [10:06:04]line Место: АЗС № 136 "Партнер Нефть" [10:06:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:06:04]line СНО: Общий режим [10:06:04]line Чек 85 21.08.2024 10:06 [10:06:04]line Смена: 454 ФФД: 1.0 [10:06:04]line ЗНМ: 0300000067 [10:06:04]line РНМ: 0000000000092569 [10:06:04]line Версия ККМ: 001 [10:06:04]line Талоны: Топливная Карта [10:06:04]line 99761 [10:06:04]line ФМ: 0000000000871776 [10:06:04]line ФД: 140068 [10:06:04]line ФПД: 272069763076115 [10:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140068&fm=272069763076115&tin=02508201610067®Number=0000000000092569&sum=0 [10:06:04]written 0, free lines is 4095 [10:06:04]OFD Sender: Processing packet 140068 [packets to send 137, broken 136] [10:06:04]ProducePacketName [10:06:04]name=ofd_packets/00140068 [10:06:05]OFD Sender: To server: pG, [10:06:05]CommunicateWithHost lk.salyk.kg:30040 [10:06:05]ConnectInit lk.salyk.kg [10:06:05]Write to MH i2c: 01 00 00 7E 30 AE [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 7E 30 00 00 00 00 00 DD 0C 9E [10:06:05]RasterBufferAndPrint [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]written 0, free lines is 3300 [10:06:05]MH_Cut [10:06:05]Write to MH i2c: D1 01 00 85 30 01 87 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 01 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 01 00 85 30 00 86 [10:06:05]Write to MH i2c: 01 00 00 86 30 B6 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Connected sock=10 [10:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 D1 36 08 01 33 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 DE 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 55 00 00 00 F4 03 04 00 0E BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 23 02 00 35 04 06 00 F7 72 2D 95 10 13 40 6D 13 97 1C 45 9E 01 [10:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 07 B1 47 00 B3 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 37 36 10 04 04 00 24 23 02 00 F4 03 04 00 9F 62 C5 66 B6 04 01 00 00 D1 96 E2 F7 63 DD 91 9C [10:06:05]CommunicateWithHost err = 0 [10:06:05]CheckOFDResponse [10:06:05]1017 (14) - 77093643461234 [10:06:05]1041 (16) - 0000000000871776 [10:06:05]1040 (4) - 140068 [10:06:05]1012 (4) - 21.08.2024 03:44 [10:06:05]1206 (1) - 0 [10:06:05]OFD Sender: Remove packet 140068 [10:06:05]ProducePacketName [10:06:05]name=ofd_packets/00140068 [10:06:05]NVStorageDeleteData [10:06:06]*** Cut start [10:06:06]*** Partial cut [10:06:06]*** CUTSNS_PIN = 1 [10:06:06]*** CUTSNS_PIN = 0 [10:06:06]OFD Sender: No OFD packet to send [10:06:06]*** Brake cut motor [10:06:06]Read from MH i2c: 01 [10:06:06]MH_I2C_Read... [10:06:06]*** Stop cut motor [10:06:06]*** Cut end [10:06:06]Read from MH i2c: 01 07 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: 01 07 00 86 30 00 00 00 00 00 FF 0F CB [10:06:06]process_action close_receipt done [10:06:06]requested_data is exist [10:06:06]produce_requested_data [10:06:06]requested_item fm.sn is exist - process it [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 11 00 00 [10:06:06]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:06]Read from MH i2c: E2 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 17 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [10:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:06]wFMCommunicate OK [10:06:06]requested_item fd.num is exist - process it [10:06:06]SAM_PROTO_GetFieldsCounters [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 13 00 00 [10:06:06]Write to MH i2c: E2 08 00 88 30 80 13 00 00 00 00 00 00 34 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:06]Read from MH i2c: E2 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 62 00 [10:06:06]MH_I2C_Read... [10:06:06]Read from MH i2c: E2 62 00 88 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:06]wFMCommunicate OK [10:06:06]SAM_PROTO_GetFieldsCounters done [10:06:06]requested_item shift.num is exist - process it [10:06:06]requested_item shift.opened is exist - process it [10:06:06]req_shift_opened [10:06:06]FM_GetShiftState [10:06:06]SAM_PROTO_GetShiftState [10:06:06]wFMCommunicate request_size=4 [10:06:06]MH_SAM_APDU [10:06:06]CAPDU: 80 13 01 00 [10:06:06]Write to MH i2c: E2 08 00 89 30 80 13 01 00 00 00 00 00 36 [10:06:06]Write i2c OK [10:06:06]MH_I2C_Read... [10:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:07]Read from MH i2c: E2 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 0E 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 0E 00 89 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B6 [10:06:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:06:07]wFMCommunicate OK [10:06:07]SAM_PROTO_GetShiftState done [10:06:07]FM_GetShiftState done [10:06:07]req_shift_opened done [10:06:07]requested_item shift.open_date is exist - process it [10:06:07]req_shift_open_date [10:06:07]req_shift_open_date done [10:06:07]produce_requested_data done [10:06:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140068,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:06:07]process_action_free close_receipt [10:06:07]json_value_free [10:06:07]json_value_free done [10:06:07]process_json_proto returns [10:06:07]Send response to host [10:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140068,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:06:07]free response buf [10:06:07]execute_script done [10:06:07]execute_script returns [10:06:07]free content buf [10:06:07]Sock 9.Close socket [10:06:07]Sock 9.Thread stoped [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:47]accept exits with 7 [10:06:47]New connection [10:06:47]New thread 3066764644 created [10:06:47]Thread 3066908004 joined [10:06:47]Waiting for new connection... [10:06:47] Sock 7.Parse request [10:06:47]Sock 7.Check first char [10:06:47]Sock 7.First char is OK [10:06:47]request: POST /json_proto HTTP/1.0 [10:06:47]Method: POST [10:06:47]URL: /json_proto [10:06:47]Method is POST - this is cgi request [10:06:47]url: /json_proto [10:06:47]query_string will be loaded in cgi processing [10:06:47]execute_cgi json_proto POST (null) [10:06:47]execute_cgi path=json_proto method=POST [10:06:47]POST find Content-Length [10:06:47]Host: 172.17.45.67:8080 [10:06:47]Content-Length: 677 [10:06:47]Content-Type: application/json [10:06:47] [10:06:47]POST finish read [10:06:47]Found Content-Length = 677 [10:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:47]execute_script... [10:06:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:47]POST & json_proto [10:06:47]process_json_proto [10:06:47]json parsed OK: [10:06:47]protocol is kg_v1.0 [10:06:47]action value=close_receipt [10:06:47]process_action close_receipt [10:06:47]cmd_close_receipt [10:06:47]MH_GetDate [10:06:47]Write to MH i2c: F0 00 00 8A 30 A9 [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: F0 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: F0 09 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: F0 09 00 8A 30 00 3A BC C5 66 5F 7F 2B 66 42 [10:06:47]GetLastDocTimeStamp 1724234766 [10:06:47]current date 1724234810 [10:06:47]FM_GetShiftState [10:06:47]SAM_PROTO_GetShiftState [10:06:47]wFMCommunicate request_size=4 [10:06:47]MH_SAM_APDU [10:06:47]CAPDU: 80 13 01 00 [10:06:47]Write to MH i2c: E2 08 00 8B 30 80 13 01 00 00 00 00 00 38 [10:06:47]Write i2c OK [10:06:47]MH_I2C_Read... [10:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:47]Read from MH i2c: E2 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0E 00 [10:06:47]MH_I2C_Read... [10:06:47]Read from MH i2c: E2 0E 00 8B 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B8 [10:06:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:06:47]wFMCommunicate OK [10:06:47]SAM_PROTO_GetShiftState done [10:06:47]FM_GetShiftState done [10:06:47]opened in 1724200467 [10:06:47]opened+sec_in_day 1724286867 [10:06:47]quantity*price = 40068 [10:06:47]sum+1 = 40069 [10:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 86 21.08.2024 10:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140069 ФПД: 267887555855239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140069&fm=267887555855239&tin=02508201610067®Number=0000000000092569&sum=40000 [10:06:48]StoreToDocumentArchive [10:06:48]shift 454 fd 140069 [10:06:48]save to /storage/0454/doc_00140069 [10:06:48]save last doc name /storage/0454/doc_00140069 to /storage/kkm_last_doc_name [10:06:48]save OK [10:06:48]Clear old archive folders... [10:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:48]tlvbuf is 00A3D710 [10:06:48]SAM_PROTO_ClearQueue [10:06:48]wFMCommunicate request_size=4 [10:06:48]MH_SAM_APDU [10:06:48]CAPDU: 80 09 00 00 [10:06:48]Write to MH i2c: E2 08 00 98 30 80 09 00 00 00 00 00 00 3A [10:06:48]Write i2c OK [10:06:48]MH_I2C_Read... [10:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 98 30 00 90 00 3C [10:06:49]RAPDU: 90 00 [10:06:49]wFMCommunicate OK [10:06:49]SAM_PROTO_ClearQueue done [10:06:49]KKMCreateOFDPacket [10:06:49]OFDProtocolAddRootSTLVToBuf [10:06:49]FM_MakeSignedData [10:06:49]FM_MakeSignedData [10:06:49]SAM_PROTO_SignData [10:06:49]wFMCommunicate request_size=4 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 0D 01 02 [10:06:49]Write to MH i2c: E2 08 00 99 30 80 0D 01 02 00 00 00 00 42 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 99 30 00 90 00 3D [10:06:49]RAPDU: 90 00 [10:06:49]wFMCommunicate OK [10:06:49]wFMCommunicate request_size=255 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3A BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 23 02 00 35 04 06 00 F3 [10:06:49]Write to MH i2c: E2 02 01 9A 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3A BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 23 02 00 35 04 06 00 F3 00 00 05 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 9A 30 00 90 00 3E [10:06:49]RAPDU: 90 00 [10:06:49]wFMCommunicate OK [10:06:49]wFMCommunicate request_size=10 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 0D 02 02 05 A4 6E 9B 43 87 [10:06:49]Write to MH i2c: E2 0D 00 9B 30 80 0D 02 02 05 00 A4 6E 9B 43 87 00 00 C6 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [10:06:49]RAPDU: 90 00 [10:06:49]wFMCommunicate OK [10:06:49]wFMCommunicate request_size=4 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 0D 03 02 [10:06:49]Write to MH i2c: E2 08 00 9C 30 80 0D 03 02 00 00 00 00 47 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 0B 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 0B 00 9C 30 00 96 F5 A0 E2 AB D0 E0 AE 90 00 5E [10:06:49]RAPDU: 96 F5 A0 E2 AB D0 E0 AE 90 00 [10:06:49]wFMCommunicate OK [10:06:49]SAM_PROTO_SignData done [10:06:49]FM_MakeSignedData done [10:06:49]CreateOFDProtocolMessage [10:06:49]wFMCommunicate request_size=4 [10:06:49]MH_SAM_APDU [10:06:49]CAPDU: 80 11 00 00 [10:06:49]Write to MH i2c: E2 08 00 9D 30 80 11 00 00 00 00 00 00 47 [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:49]Read from MH i2c: E2 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 17 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: E2 17 00 9D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [10:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:49]wFMCommunicate OK [10:06:49]CreateOFDProtocolMessage done [10:06:49]OFDSenderStorePacket 140069 [10:06:49]StoreOFDPacket docnum=140069 [10:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB 4E 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3A BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 23 02 00 35 04 06 00 F3 A4 6E 9B 43 87 96 F5 A0 E2 AB D0 E0 AE [10:06:49]CheckFolder [10:06:49]dirname=/storage/ofd_packets [10:06:49]CheckFolder done [10:06:49]ProducePacketName [10:06:49]name=ofd_packets/00140069 [10:06:49]NVStorageSaveData ofd_packets/00140069 [10:06:49]File name is /storage/ofd_packets/00140069 [10:06:49]Write 301 bytes [10:06:49]NVStorageSaveData done [10:06:49]OFDSenderStorePacket done [10:06:49]KKMCreateOFDPacket done [10:06:49]NVStorageSaveData kkm_last_timestamp [10:06:49]File name is /storage/kkm_last_timestamp [10:06:49]Write 4 bytes [10:06:49]NVStorageSaveData done [10:06:49]ExternCall_PrintAddStr [10:06:49]wPrintStart [10:06:49]Write to MH i2c: 01 00 00 9E 30 CE [10:06:49]Write i2c OK [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: 01 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: 01 07 00 [10:06:49]MH_I2C_Read... [10:06:49]Read from MH i2c: 01 07 00 9E 30 00 00 00 00 00 FF 0F E3 [10:06:49]RasterBufferAndPrint [10:06:49]line Счет N : (1)593923 [10:06:49]line ИНН: 02508201610067 [10:06:49]line Контрольно-Кассовый Чек [10:06:49]line ПРОДАЖА [10:06:49]line ТРК (МРК, ГНК) : 51 [10:06:49]line Товар: 2710124500 [10:06:49]line Аи-95-К-5 [10:06:49]line 5.400 * 74.20 [10:06:49]line = 400.68 [10:06:49]line НДС 12% НСП 1% [10:06:49]line > о реализуемом товаре [10:06:49]line ОКРУГЛЕНИЕ: -0.68 [10:06:49]line ИТОГО: 400.00 [10:06:49]line Внесено: 400.00 [10:06:49]line СДАЧА: 0.00 [10:06:49]line НСП 1% : 3.55 [10:06:49]line НДС 12% : 42.55 [10:06:49]line Наличными: 400.00 [10:06:49]line Безнал.: 0.00 [10:06:49]line Место: АЗС № 136 "Партнер Нефть" [10:06:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:06:49]line СНО: Общий режим [10:06:49]line Чек 86 21.08.2024 10:06 [10:06:49]line Смена: 454 ФФД: 1.0 [10:06:49]line ЗНМ: 0300000067 [10:06:49]line РНМ: 0000000000092569 [10:06:49]line Версия ККМ: 001 [10:06:49]line ФМ: 0000000000871776 [10:06:49]line ФД: 140069 [10:06:49]line ФПД: 267887555855239 [10:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T100650&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140069&fm=267887555855239&tin=02508201610067®Number=0000000000092569&sum=40000 [10:06:49]written 0, free lines is 4095 [10:06:49]OFD Sender: Processing packet 140069 [packets to send 137, broken 136] [10:06:49]ProducePacketName [10:06:49]name=ofd_packets/00140069 [10:06:49]OFD Sender: To server: pG, [10:06:49]CommunicateWithHost lk.salyk.kg:30040 [10:06:49]ConnectInit lk.salyk.kg [10:06:49]Connected sock=10 [10:06:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB 4E 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3A BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 23 02 00 35 04 06 00 F3 A4 6E 9B 43 87 96 F5 A0 E2 AB D0 E0 AE [10:06:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 62 6F 47 00 AF 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 37 36 10 04 04 00 25 23 02 00 F4 03 04 00 CB 62 C5 66 B6 04 01 00 00 85 F7 8A 44 EC 0B 10 78 [10:06:50]CommunicateWithHost err = 0 [10:06:50]CheckOFDResponse [10:06:50]1017 (14) - 77093643461234 [10:06:50]1041 (16) - 0000000000871776 [10:06:50]1040 (4) - 140069 [10:06:50]1012 (4) - 21.08.2024 03:45 [10:06:50]1206 (1) - 0 [10:06:50]OFD Sender: Remove packet 140069 [10:06:50]ProducePacketName [10:06:50]name=ofd_packets/00140069 [10:06:50]NVStorageDeleteData [10:06:50]Write to MH i2c: 01 00 00 C9 30 F9 [10:06:50]Write i2c OK [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: 01 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: 01 07 00 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: 01 07 00 C9 30 00 00 00 00 00 CC 0C D8 [10:06:50]RasterBufferAndPrint [10:06:50]line [10:06:50]line [10:06:50]line [10:06:50]line [10:06:50]line [10:06:50]written 0, free lines is 3282 [10:06:50]MH_Cut [10:06:50]Write to MH i2c: D1 01 00 D0 30 01 D2 [10:06:50]Write i2c OK [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: D1 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: D1 01 00 [10:06:50]MH_I2C_Read... [10:06:50]Read from MH i2c: D1 01 00 D0 30 00 D1 [10:06:50]Write to MH i2c: 01 00 00 D1 30 01 [10:06:50]Write i2c OK [10:06:50]MH_I2C_Read... [10:06:50]OFD Sender: No OFD packet to send [10:06:51]*** Cut start [10:06:51]*** Partial cut [10:06:51]*** CUTSNS_PIN = 1 [10:06:51]*** CUTSNS_PIN = 0 [10:06:51]*** Brake cut motor [10:06:51]Read from MH i2c: 01 [10:06:51]MH_I2C_Read... [10:06:51]*** Stop cut motor [10:06:51]*** Cut end [10:06:51]Read from MH i2c: 01 07 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: 01 07 00 D1 30 00 00 00 00 00 FF 0F 16 [10:06:51]process_action close_receipt done [10:06:51]requested_data is exist [10:06:51]produce_requested_data [10:06:51]requested_item fm.sn is exist - process it [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 11 00 00 [10:06:51]Write to MH i2c: E2 08 00 D2 30 80 11 00 00 00 00 00 00 7C [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 17 00 D2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [10:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:06:51]wFMCommunicate OK [10:06:51]requested_item fd.num is exist - process it [10:06:51]SAM_PROTO_GetFieldsCounters [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 13 00 00 [10:06:51]Write to MH i2c: E2 08 00 D3 30 80 13 00 00 00 00 00 00 7F [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 62 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 62 00 D3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [10:06:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_GetFieldsCounters done [10:06:51]requested_item shift.num is exist - process it [10:06:51]requested_item shift.opened is exist - process it [10:06:51]req_shift_opened [10:06:51]FM_GetShiftState [10:06:51]SAM_PROTO_GetShiftState [10:06:51]wFMCommunicate request_size=4 [10:06:51]MH_SAM_APDU [10:06:51]CAPDU: 80 13 01 00 [10:06:51]Write to MH i2c: E2 08 00 D4 30 80 13 01 00 00 00 00 00 81 [10:06:51]Write i2c OK [10:06:51]MH_I2C_Read... [10:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:51]Read from MH i2c: E2 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0E 00 [10:06:51]MH_I2C_Read... [10:06:51]Read from MH i2c: E2 0E 00 D4 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 01 [10:06:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:06:51]wFMCommunicate OK [10:06:51]SAM_PROTO_GetShiftState done [10:06:51]FM_GetShiftState done [10:06:51]req_shift_opened done [10:06:51]requested_item shift.open_date is exist - process it [10:06:51]req_shift_open_date [10:06:51]req_shift_open_date done [10:06:51]produce_requested_data done [10:06:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140069,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:06:51]process_action_free close_receipt [10:06:51]json_value_free [10:06:51]json_value_free done [10:06:51]process_json_proto returns [10:06:51]Send response to host [10:06:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140069,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:06:51]free response buf [10:06:51]execute_script done [10:06:51]execute_script returns [10:06:51]free content buf [10:06:51]Sock 7.Close socket [10:06:51]Sock 7.Thread stoped [10:06:52]int [10:06:52]Write to MH i2c: 01 00 00 D5 30 05 [10:06:52]*** FLAG_PRN_KEY set [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 D5 30 00 08 00 00 00 FF 0F 22 [10:06:52]state=0 [10:06:52]Key pressed [10:06:52]Feed [10:06:52]Write to MH i2c: D8 00 00 D6 30 DD [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D8 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D8 01 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: D8 01 00 D6 30 00 DE [10:06:52]int [10:06:52]Write to MH i2c: 01 00 00 D7 30 07 [10:06:52]Write i2c OK [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 [10:06:52]MH_I2C_Read... [10:06:52]Read from MH i2c: 01 07 00 D7 30 00 48 00 00 00 3C 00 92 [10:06:52]state=2 [10:06:52]Key pressed [10:06:53]int [10:06:53]Write to MH i2c: 01 00 00 D8 30 08 [10:06:53]*** FLAG_PRN_KEY reset [10:06:53]Write i2c OK [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 07 00 [10:06:53]MH_I2C_Read... [10:06:53]Read from MH i2c: 01 07 00 D8 30 00 00 00 00 00 F8 0F 16 [10:06:53]state=2 [10:06:53]Stop feed [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:09:59]accept exits with 9 [10:09:59]New connection [10:09:59]New thread 3066908004 created [10:09:59]Thread 3066764644 joined [10:09:59]Waiting for new connection... [10:09:59] Sock 9.Parse request [10:09:59]Sock 9.Check first char [10:09:59]Sock 9.First char is OK [10:09:59]request: POST /json_proto HTTP/1.0 [10:09:59]Method: POST [10:09:59]URL: /json_proto [10:09:59]Method is POST - this is cgi request [10:09:59]url: /json_proto [10:09:59]query_string will be loaded in cgi processing [10:09:59]execute_cgi json_proto POST (null) [10:09:59]execute_cgi path=json_proto method=POST [10:09:59]POST find Content-Length [10:09:59]Host: 172.17.45.67:8080 [10:09:59]Content-Length: 818 [10:09:59]Content-Type: application/json [10:09:59] [10:09:59]POST finish read [10:09:59]Found Content-Length = 818 [10:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]execute_script... [10:09:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:59]POST & json_proto [10:09:59]process_json_proto [10:09:59]json parsed OK: [10:09:59]protocol is kg_v1.0 [10:09:59]action value=close_receipt [10:09:59]process_action close_receipt [10:09:59]cmd_close_receipt [10:09:59]MH_GetDate [10:09:59]Write to MH i2c: F0 00 00 D9 30 F8 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: F0 09 00 D9 30 00 FA BC C5 66 5F 7F 2B 66 51 [10:09:59]GetLastDocTimeStamp 1724234810 [10:09:59]current date 1724235002 [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 DA 30 80 13 01 00 00 00 00 00 87 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 DA 30 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [10:09:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetShiftState done [10:09:59]FM_GetShiftState done [10:09:59]opened in 1724200467 [10:09:59]opened+sec_in_day 1724286867 [10:09:59]quantity*price = 50036 [10:09:59]sum+1 = 50037 [10:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 87 21.08.2024 10:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140070 ФПД: 20914746844052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140070&fm=20914746844052&tin=02508201610067®Number=0000000000092569&sum=50000 [10:10:00]StoreToDocumentArchive [10:10:00]shift 454 fd 140070 [10:10:00]save to /storage/0454/doc_00140070 [10:10:00]save last doc name /storage/0454/doc_00140070 to /storage/kkm_last_doc_name [10:10:00]save OK [10:10:00]Clear old archive folders... [10:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:00]tlvbuf is 00A79C70 [10:10:00]SAM_PROTO_ClearQueue [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 09 00 00 [10:10:00]Write to MH i2c: E2 08 00 E7 30 80 09 00 00 00 00 00 00 89 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_ClearQueue done [10:10:00]KKMCreateOFDPacket [10:10:00]OFDProtocolAddRootSTLVToBuf [10:10:00]FM_MakeSignedData [10:10:00]FM_MakeSignedData [10:10:00]SAM_PROTO_SignData [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 01 02 [10:10:00]Write to MH i2c: E2 08 00 E8 30 80 0D 01 02 00 00 00 00 91 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=255 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 23 02 00 35 04 06 00 13 [10:10:00]Write to MH i2c: E2 02 01 E9 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 23 02 00 35 04 06 00 13 00 00 77 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=10 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 02 02 05 05 98 0E 63 94 [10:10:00]Write to MH i2c: E2 0D 00 EA 30 80 0D 02 02 05 00 05 98 0E 63 94 00 00 40 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [10:10:00]RAPDU: 90 00 [10:10:00]wFMCommunicate OK [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 0D 03 02 [10:10:00]Write to MH i2c: E2 08 00 EB 30 80 0D 03 02 00 00 00 00 96 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:00]Read from MH i2c: E2 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0B 00 [10:10:00]MH_I2C_Read... [10:10:00]Read from MH i2c: E2 0B 00 EB 30 00 50 B3 57 7F 44 C0 ED 75 90 00 D6 [10:10:00]RAPDU: 50 B3 57 7F 44 C0 ED 75 90 00 [10:10:00]wFMCommunicate OK [10:10:00]SAM_PROTO_SignData done [10:10:00]FM_MakeSignedData done [10:10:00]CreateOFDProtocolMessage [10:10:00]wFMCommunicate request_size=4 [10:10:00]MH_SAM_APDU [10:10:00]CAPDU: 80 11 00 00 [10:10:00]Write to MH i2c: E2 08 00 EC 30 80 11 00 00 00 00 00 00 96 [10:10:00]Write i2c OK [10:10:00]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 17 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 17 00 EC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [10:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:01]wFMCommunicate OK [10:10:01]CreateOFDProtocolMessage done [10:10:01]OFDSenderStorePacket 140070 [10:10:01]StoreOFDPacket docnum=140070 [10:10:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 2C 07 01 A3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 23 02 00 35 04 06 00 13 05 98 0E 63 94 50 B3 57 7F 44 C0 ED 75 [10:10:01]CheckFolder [10:10:01]dirname=/storage/ofd_packets [10:10:01]CheckFolder done [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00140070 [10:10:01]NVStorageSaveData ofd_packets/00140070 [10:10:01]File name is /storage/ofd_packets/00140070 [10:10:01]Write 301 bytes [10:10:01]NVStorageSaveData done [10:10:01]OFDSenderStorePacket done [10:10:01]KKMCreateOFDPacket done [10:10:01]NVStorageSaveData kkm_last_timestamp [10:10:01]File name is /storage/kkm_last_timestamp [10:10:01]Write 4 bytes [10:10:01]NVStorageSaveData done [10:10:01]ExternCall_PrintAddStr [10:10:01]wPrintStart [10:10:01]Write to MH i2c: 01 00 00 ED 30 1D [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 ED 30 00 00 00 00 00 FF 0F 32 [10:10:01]RasterBufferAndPrint [10:10:01]line Счет N : (1)593925 [10:10:01]line ИНН: 02508201610067 [10:10:01]line Контрольно-Кассовый Чек [10:10:01]line ПРОДАЖА [10:10:01]line ТРК (МРК, ГНК) : 62 [10:10:01]line Товар: 2710124130 [10:10:01]line Аи-92-К-5 [10:10:01]line 7.380 * 67.80 [10:10:01]line = 500.36 [10:10:01]line НДС 12% НСП 1% [10:10:01]line > о реализуемом товаре [10:10:01]line ОКРУГЛЕНИЕ: -0.36 [10:10:01]line ИТОГО: 500.00 [10:10:01]line НСП 1% : 4.43 [10:10:01]line НДС 12% : 53.14 [10:10:01]line Наличными: 0.00 [10:10:01]line Безнал.: 500.00 [10:10:01]line Место: АЗС № 136 "Партнер Нефть" [10:10:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:01]line СНО: Общий режим [10:10:01]line Чек 87 21.08.2024 10:10 [10:10:01]line Смена: 454 ФФД: 1.0 [10:10:01]line ЗНМ: 0300000067 [10:10:01]line РНМ: 0000000000092569 [10:10:01]line Версия ККМ: 001 [10:10:01]line Платежная система: O! деньги [10:10:01]line ФМ: 0000000000871776 [10:10:01]line ФД: 140070 [10:10:01]line ФПД: 20914746844052 [10:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140070&fm=20914746844052&tin=02508201610067®Number=0000000000092569&sum=50000 [10:10:01]written 0, free lines is 4095 [10:10:01]OFD Sender: Processing packet 140070 [packets to send 137, broken 136] [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00140070 [10:10:01]OFD Sender: To server: pG, [10:10:01]CommunicateWithHost lk.salyk.kg:30040 [10:10:01]ConnectInit lk.salyk.kg [10:10:01]Connected sock=10 [10:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 2C 07 01 A3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 FA BC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 23 02 00 35 04 06 00 13 05 98 0E 63 94 50 B3 57 7F 44 C0 ED 75 [10:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 89 D8 47 00 55 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 37 36 10 04 04 00 26 23 02 00 F4 03 04 00 8B 63 C5 66 B6 04 01 00 00 BC CE B5 6E 5B 4B EB B9 [10:10:01]CommunicateWithHost err = 0 [10:10:01]CheckOFDResponse [10:10:01]1017 (14) - 77093643461234 [10:10:01]1041 (16) - 0000000000871776 [10:10:01]1040 (4) - 140070 [10:10:01]1012 (4) - 21.08.2024 03:48 [10:10:01]1206 (1) - 0 [10:10:01]OFD Sender: Remove packet 140070 [10:10:01]ProducePacketName [10:10:01]name=ofd_packets/00140070 [10:10:01]NVStorageDeleteData [10:10:01]Write to MH i2c: 01 00 00 18 31 49 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: 01 07 00 18 31 00 00 00 00 00 D5 0C 31 [10:10:01]RasterBufferAndPrint [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]line [10:10:01]written 0, free lines is 3291 [10:10:01]MH_Cut [10:10:01]Write to MH i2c: D1 01 00 1F 31 01 22 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 01 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: D1 01 00 1F 31 00 21 [10:10:01]Write to MH i2c: 01 00 00 20 31 51 [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:02]OFD Sender: No OFD packet to send [10:10:02]*** Cut start [10:10:02]*** Partial cut [10:10:02]*** CUTSNS_PIN = 1 [10:10:02]*** CUTSNS_PIN = 0 [10:10:02]*** Brake cut motor [10:10:03]Read from MH i2c: 01 [10:10:03]MH_I2C_Read... [10:10:03]*** Stop cut motor [10:10:03]*** Cut end [10:10:03]Read from MH i2c: 01 07 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 20 31 00 00 00 00 00 FF 0F 66 [10:10:03]process_action close_receipt done [10:10:03]requested_data is exist [10:10:03]produce_requested_data [10:10:03]requested_item fm.sn is exist - process it [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 11 00 00 [10:10:03]Write to MH i2c: E2 08 00 21 31 80 11 00 00 00 00 00 00 CC [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 21 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [10:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:03]wFMCommunicate OK [10:10:03]requested_item fd.num is exist - process it [10:10:03]SAM_PROTO_GetFieldsCounters [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 13 00 00 [10:10:03]Write to MH i2c: E2 08 00 22 31 80 13 00 00 00 00 00 00 CF [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 62 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 62 00 22 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:03]wFMCommunicate OK [10:10:03]SAM_PROTO_GetFieldsCounters done [10:10:03]requested_item shift.num is exist - process it [10:10:03]requested_item shift.opened is exist - process it [10:10:03]req_shift_opened [10:10:03]FM_GetShiftState [10:10:03]SAM_PROTO_GetShiftState [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 13 01 00 [10:10:03]Write to MH i2c: E2 08 00 23 31 80 13 01 00 00 00 00 00 D1 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0E 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0E 00 23 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 51 [10:10:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:03]wFMCommunicate OK [10:10:03]SAM_PROTO_GetShiftState done [10:10:03]FM_GetShiftState done [10:10:03]req_shift_opened done [10:10:03]requested_item shift.open_date is exist - process it [10:10:03]req_shift_open_date [10:10:03]req_shift_open_date done [10:10:03]produce_requested_data done [10:10:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140070,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:10:03]process_action_free close_receipt [10:10:03]json_value_free [10:10:03]json_value_free done [10:10:03]process_json_proto returns [10:10:03]Send response to host [10:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140070,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:10:03]free response buf [10:10:03]execute_script done [10:10:03]execute_script returns [10:10:03]free content buf [10:10:03]Sock 9.Close socket [10:10:03]Sock 9.Thread stoped [10:10:07]OFD Sender: No OFD packet to send [10:10:11]accept exits with 7 [10:10:11]New connection [10:10:11]New thread 3066764644 created [10:10:11]Thread 3066908004 joined [10:10:11]Waiting for new connection... [10:10:11] Sock 7.Parse request [10:10:11]Sock 7.Check first char [10:10:11]Sock 7.First char is OK [10:10:11]request: POST /json_proto HTTP/1.0 [10:10:11]Method: POST [10:10:11]URL: /json_proto [10:10:11]Method is POST - this is cgi request [10:10:11]url: /json_proto [10:10:11]query_string will be loaded in cgi processing [10:10:11]execute_cgi json_proto POST (null) [10:10:11]execute_cgi path=json_proto method=POST [10:10:11]POST find Content-Length [10:10:11]Host: 172.17.45.67:8080 [10:10:11]Content-Length: 677 [10:10:11]Content-Type: application/json [10:10:11] [10:10:11]POST finish read [10:10:11]Found Content-Length = 677 [10:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:11]execute_script... [10:10: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)593926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:11]POST & json_proto [10:10:11]process_json_proto [10:10:11]json parsed OK: [10:10:11]protocol is kg_v1.0 [10:10:11]action value=close_receipt [10:10:11]process_action close_receipt [10:10:11]cmd_close_receipt [10:10:11]MH_GetDate [10:10:11]Write to MH i2c: F0 00 00 24 31 44 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: F0 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: F0 09 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: F0 09 00 24 31 00 06 BD C5 66 5F 7F 2B 66 AA [10:10:11]GetLastDocTimeStamp 1724235002 [10:10:11]current date 1724235014 [10:10:11]FM_GetShiftState [10:10:11]SAM_PROTO_GetShiftState [10:10:11]wFMCommunicate request_size=4 [10:10:11]MH_SAM_APDU [10:10:11]CAPDU: 80 13 01 00 [10:10:11]Write to MH i2c: E2 08 00 25 31 80 13 01 00 00 00 00 00 D3 [10:10:11]Write i2c OK [10:10:11]MH_I2C_Read... [10:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:11]Read from MH i2c: E2 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 0E 00 [10:10:11]MH_I2C_Read... [10:10:11]Read from MH i2c: E2 0E 00 25 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 53 [10:10:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:11]wFMCommunicate OK [10:10:11]SAM_PROTO_GetShiftState done [10:10:11]FM_GetShiftState done [10:10:11]opened in 1724200467 [10:10:11]opened+sec_in_day 1724286867 [10:10:11]quantity*price = 50036 [10:10:11]sum+1 = 50037 [10:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 88 21.08.2024 10:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140071 ФПД: 60930514208306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140071&fm=60930514208306&tin=02508201610067®Number=0000000000092569&sum=50000 [10:10:12]StoreToDocumentArchive [10:10:12]shift 454 fd 140071 [10:10:12]save to /storage/0454/doc_00140071 [10:10:12]save last doc name /storage/0454/doc_00140071 to /storage/kkm_last_doc_name [10:10:12]save OK [10:10:12]Clear old archive folders... [10:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:12]tlvbuf is B6F4A010 [10:10:12]SAM_PROTO_ClearQueue [10:10:12]wFMCommunicate request_size=4 [10:10:12]MH_SAM_APDU [10:10:12]CAPDU: 80 09 00 00 [10:10:12]Write to MH i2c: E2 08 00 32 31 80 09 00 00 00 00 00 00 D5 [10:10:12]Write i2c OK [10:10:12]MH_I2C_Read... [10:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:12]Read from MH i2c: E2 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 03 00 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [10:10:12]RAPDU: 90 00 [10:10:12]wFMCommunicate OK [10:10:12]SAM_PROTO_ClearQueue done [10:10:12]KKMCreateOFDPacket [10:10:12]OFDProtocolAddRootSTLVToBuf [10:10:12]FM_MakeSignedData [10:10:12]FM_MakeSignedData [10:10:12]SAM_PROTO_SignData [10:10:12]wFMCommunicate request_size=4 [10:10:12]MH_SAM_APDU [10:10:12]CAPDU: 80 0D 01 02 [10:10:12]Write to MH i2c: E2 08 00 33 31 80 0D 01 02 00 00 00 00 DD [10:10:12]Write i2c OK [10:10:12]MH_I2C_Read... [10:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:12]Read from MH i2c: E2 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 03 00 [10:10:12]MH_I2C_Read... [10:10:12]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [10:10:12]RAPDU: 90 00 [10:10:12]wFMCommunicate OK [10:10:12]wFMCommunicate request_size=255 [10:10:12]MH_SAM_APDU [10:10: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 06 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 23 02 00 35 04 06 00 37 [10:10:12]Write to MH i2c: E2 02 01 34 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 06 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 23 02 00 35 04 06 00 37 00 00 F6 [10:10:12]Write i2c OK [10:10:12]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]wFMCommunicate request_size=10 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 0D 02 02 05 6A 7D A7 C6 32 [10:10:13]Write to MH i2c: E2 0D 00 35 31 80 0D 02 02 05 00 6A 7D A7 C6 32 00 00 70 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 03 00 35 31 00 90 00 DA [10:10:13]RAPDU: 90 00 [10:10:13]wFMCommunicate OK [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 0D 03 02 [10:10:13]Write to MH i2c: E2 08 00 36 31 80 0D 03 02 00 00 00 00 E2 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0B 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 0B 00 36 31 00 F3 DE 4C EE 46 C1 01 2C 90 00 22 [10:10:13]RAPDU: F3 DE 4C EE 46 C1 01 2C 90 00 [10:10:13]wFMCommunicate OK [10:10:13]SAM_PROTO_SignData done [10:10:13]FM_MakeSignedData done [10:10:13]CreateOFDProtocolMessage [10:10:13]wFMCommunicate request_size=4 [10:10:13]MH_SAM_APDU [10:10:13]CAPDU: 80 11 00 00 [10:10:13]Write to MH i2c: E2 08 00 37 31 80 11 00 00 00 00 00 00 E2 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:13]Read from MH i2c: E2 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: E2 17 00 37 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [10:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:13]wFMCommunicate OK [10:10:13]CreateOFDProtocolMessage done [10:10:13]OFDSenderStorePacket 140071 [10:10:13]StoreOFDPacket docnum=140071 [10:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C9 BC 07 01 EF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 06 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 23 02 00 35 04 06 00 37 6A 7D A7 C6 32 F3 DE 4C EE 46 C1 01 2C [10:10:13]CheckFolder [10:10:13]dirname=/storage/ofd_packets [10:10:13]CheckFolder done [10:10:13]ProducePacketName [10:10:13]name=ofd_packets/00140071 [10:10:13]NVStorageSaveData ofd_packets/00140071 [10:10:13]File name is /storage/ofd_packets/00140071 [10:10:13]Write 301 bytes [10:10:13]NVStorageSaveData done [10:10:13]OFDSenderStorePacket done [10:10:13]KKMCreateOFDPacket done [10:10:13]NVStorageSaveData kkm_last_timestamp [10:10:13]File name is /storage/kkm_last_timestamp [10:10:13]Write 4 bytes [10:10:13]NVStorageSaveData done [10:10:13]ExternCall_PrintAddStr [10:10:13]wPrintStart [10:10:13]Write to MH i2c: 01 00 00 38 31 69 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 38 31 00 00 00 00 00 FF 0F 7E [10:10:13]RasterBufferAndPrint [10:10:13]line Счет N : (1)593926 [10:10:13]line ИНН: 02508201610067 [10:10:13]line Контрольно-Кассовый Чек [10:10:13]line ПРОДАЖА [10:10:13]line ТРК (МРК, ГНК) : 32 [10:10:13]line Товар: 2710124130 [10:10:13]line Аи-92-К-5 [10:10:13]line 7.380 * 67.80 [10:10:13]line = 500.36 [10:10:13]line НДС 12% НСП 1% [10:10:13]line > о реализуемом товаре [10:10:13]line ОКРУГЛЕНИЕ: -0.36 [10:10:13]line ИТОГО: 500.00 [10:10:13]line Внесено: 500.00 [10:10:13]line СДАЧА: 0.00 [10:10:13]line НСП 1% : 4.43 [10:10:13]line НДС 12% : 53.14 [10:10:13]line Наличными: 500.00 [10:10:13]line Безнал.: 0.00 [10:10:13]line Место: АЗС № 136 "Партнер Нефть" [10:10:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:13]line СНО: Общий режим [10:10:13]line Чек 88 21.08.2024 10:10 [10:10:13]line Смена: 454 ФФД: 1.0 [10:10:13]line ЗНМ: 0300000067 [10:10:13]line РНМ: 0000000000092569 [10:10:13]line Версия ККМ: 001 [10:10:13]line ФМ: 0000000000871776 [10:10:13]line ФД: 140071 [10:10:13]line ФПД: 60930514208306 [10:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101014&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140071&fm=60930514208306&tin=02508201610067®Number=0000000000092569&sum=50000 [10:10:13]written 0, free lines is 4095 [10:10:13]OFD Sender: Processing packet 140071 [packets to send 137, broken 136] [10:10:13]ProducePacketName [10:10:13]name=ofd_packets/00140071 [10:10:13]OFD Sender: To server: pG, [10:10:13]CommunicateWithHost lk.salyk.kg:30040 [10:10:13]ConnectInit lk.salyk.kg [10:10:13]Connected sock=10 [10:10: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 37 36 0F 01 00 00 C9 BC 07 01 EF 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 06 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 23 02 00 35 04 06 00 37 6A 7D A7 C6 32 F3 DE 4C EE 46 C1 01 2C [10:10: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 37 36 4F 00 00 00 2A 2B 47 00 3C 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 37 36 10 04 04 00 27 23 02 00 F4 03 04 00 97 63 C5 66 B6 04 01 00 00 B2 B9 CA 9E D4 6B 7D DB [10:10:13]CommunicateWithHost err = 0 [10:10:13]CheckOFDResponse [10:10:13]1017 (14) - 77093643461234 [10:10:13]1041 (16) - 0000000000871776 [10:10:13]1040 (4) - 140071 [10:10:13]1012 (4) - 21.08.2024 03:48 [10:10:13]1206 (1) - 0 [10:10:13]OFD Sender: Remove packet 140071 [10:10:13]ProducePacketName [10:10:13]name=ofd_packets/00140071 [10:10:13]NVStorageDeleteData [10:10:13]Write to MH i2c: 01 00 00 63 31 94 [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 E2 0C 89 [10:10:13]RasterBufferAndPrint [10:10:13]line [10:10:13]line [10:10:13]line [10:10:13]line [10:10:13]line [10:10:13]written 0, free lines is 3310 [10:10:13]MH_Cut [10:10:13]Write to MH i2c: D1 01 00 6A 31 01 6D [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: D1 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: D1 01 00 [10:10:13]MH_I2C_Read... [10:10:13]Read from MH i2c: D1 01 00 6A 31 00 6C [10:10:13]Write to MH i2c: 01 00 00 6B 31 9C [10:10:13]Write i2c OK [10:10:13]MH_I2C_Read... [10:10:14]OFD Sender: No OFD packet to send [10:10:14]*** Cut start [10:10:14]*** Partial cut [10:10:14]*** CUTSNS_PIN = 1 [10:10:14]*** CUTSNS_PIN = 0 [10:10:14]*** Brake cut motor [10:10:14]Read from MH i2c: 01 [10:10:14]MH_I2C_Read... [10:10:14]*** Stop cut motor [10:10:14]*** Cut end [10:10:14]Read from MH i2c: 01 07 00 [10:10:14]MH_I2C_Read... [10:10:14]Read from MH i2c: 01 07 00 6B 31 00 00 00 00 00 FF 0F B1 [10:10:14]process_action close_receipt done [10:10:14]requested_data is exist [10:10:14]produce_requested_data [10:10:14]requested_item fm.sn is exist - process it [10:10:14]wFMCommunicate request_size=4 [10:10:14]MH_SAM_APDU [10:10:14]CAPDU: 80 11 00 00 [10:10:14]Write to MH i2c: E2 08 00 6C 31 80 11 00 00 00 00 00 00 17 [10:10:14]Write i2c OK [10:10:14]MH_I2C_Read... [10:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:15]Read from MH i2c: E2 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 17 00 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 17 00 6C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [10:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:15]wFMCommunicate OK [10:10:15]requested_item fd.num is exist - process it [10:10:15]SAM_PROTO_GetFieldsCounters [10:10:15]wFMCommunicate request_size=4 [10:10:15]MH_SAM_APDU [10:10:15]CAPDU: 80 13 00 00 [10:10:15]Write to MH i2c: E2 08 00 6D 31 80 13 00 00 00 00 00 00 1A [10:10:15]Write i2c OK [10:10:15]MH_I2C_Read... [10:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:15]Read from MH i2c: E2 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 62 00 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 62 00 6D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [10:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:15]wFMCommunicate OK [10:10:15]SAM_PROTO_GetFieldsCounters done [10:10:15]requested_item shift.num is exist - process it [10:10:15]requested_item shift.opened is exist - process it [10:10:15]req_shift_opened [10:10:15]FM_GetShiftState [10:10:15]SAM_PROTO_GetShiftState [10:10:15]wFMCommunicate request_size=4 [10:10:15]MH_SAM_APDU [10:10:15]CAPDU: 80 13 01 00 [10:10:15]Write to MH i2c: E2 08 00 6E 31 80 13 01 00 00 00 00 00 1C [10:10:15]Write i2c OK [10:10:15]MH_I2C_Read... [10:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:15]Read from MH i2c: E2 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 0E 00 [10:10:15]MH_I2C_Read... [10:10:15]Read from MH i2c: E2 0E 00 6E 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9C [10:10:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:15]wFMCommunicate OK [10:10:15]SAM_PROTO_GetShiftState done [10:10:15]FM_GetShiftState done [10:10:15]req_shift_opened done [10:10:15]requested_item shift.open_date is exist - process it [10:10:15]req_shift_open_date [10:10:15]req_shift_open_date done [10:10:15]produce_requested_data done [10:10:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140071,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:10:15]process_action_free close_receipt [10:10:15]json_value_free [10:10:15]json_value_free done [10:10:15]process_json_proto returns [10:10:15]Send response to host [10:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140071,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:10:15]free response buf [10:10:15]execute_script done [10:10:15]execute_script returns [10:10:15]free content buf [10:10:15]Sock 7.Close socket [10:10:15]Sock 7.Thread stoped [10:10:19]OFD Sender: No OFD packet to send [10:10:23]int [10:10:23]Write to MH i2c: 01 00 00 6F 31 A0 [10:10:23]*** FLAG_PRN_KEY set [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 6F 31 00 08 00 00 00 FF 0F BD [10:10:23]state=0 [10:10:23]Key pressed [10:10:23]Feed [10:10:23]Write to MH i2c: D8 00 00 70 31 78 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: D8 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: D8 01 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: D8 01 00 70 31 00 79 [10:10:23]int [10:10:23]Write to MH i2c: 01 00 00 71 31 A2 [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 71 31 00 48 00 00 00 3C 00 2D [10:10:23]state=2 [10:10:23]Key pressed [10:10:23]int [10:10:23]Write to MH i2c: 01 00 00 72 31 A3 [10:10:23]*** FLAG_PRN_KEY reset [10:10:23]Write i2c OK [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 [10:10:23]MH_I2C_Read... [10:10:23]Read from MH i2c: 01 07 00 72 31 00 00 00 00 00 F8 0F B1 [10:10:23]state=2 [10:10:23]Stop feed [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:31]accept exits with 9 [10:10:31]New connection [10:10:31]New thread 3066908004 created [10:10:31]Thread 3066764644 joined [10:10:31]Waiting for new connection... [10:10:31] Sock 9.Parse request [10:10:31]Sock 9.Check first char [10:10:31]Sock 9.First char is OK [10:10:31]request: POST /json_proto HTTP/1.0 [10:10:31]Method: POST [10:10:31]URL: /json_proto [10:10:31]Method is POST - this is cgi request [10:10:31]url: /json_proto [10:10:31]query_string will be loaded in cgi processing [10:10:31]execute_cgi json_proto POST (null) [10:10:31]execute_cgi path=json_proto method=POST [10:10:31]POST find Content-Length [10:10:31]Host: 172.17.45.67:8080 [10:10:31]Content-Length: 792 [10:10:31]Content-Type: application/json [10:10:31] [10:10:31]POST finish read [10:10:31]Found Content-Length = 792 [10:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81860", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:31]execute_script... [10:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81860", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:31]POST & json_proto [10:10:31]process_json_proto [10:10:31]json parsed OK: [10:10:31]protocol is kg_v1.0 [10:10:31]action value=close_receipt [10:10:31]process_action close_receipt [10:10:31]cmd_close_receipt [10:10:31]MH_GetDate [10:10:31]Write to MH i2c: F0 00 00 73 31 93 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: F0 09 00 73 31 00 1A BD C5 66 5F 7F 2B 66 0D [10:10:31]GetLastDocTimeStamp 1724235014 [10:10:31]current date 1724235034 [10:10:31]FM_GetShiftState [10:10:31]SAM_PROTO_GetShiftState [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 13 01 00 [10:10:31]Write to MH i2c: E2 08 00 74 31 80 13 01 00 00 00 00 00 22 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0E 00 74 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A2 [10:10:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_GetShiftState done [10:10:31]FM_GetShiftState done [10:10:31]opened in 1724200467 [10:10:31]opened+sec_in_day 1724286867 [10:10:31]quantity*price = 0 [10:10:31]sum+1 = 1 [10:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 89 21.08.2024 10:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 81860 ФМ: 0000000000871776 ФД: 140072 ФПД: 1508624777885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140072&fm=1508624777885&tin=02508201610067®Number=0000000000092569&sum=0 [10:10:32]StoreToDocumentArchive [10:10:32]shift 454 fd 140072 [10:10:32]save to /storage/0454/doc_00140072 [10:10:32]save last doc name /storage/0454/doc_00140072 to /storage/kkm_last_doc_name [10:10:32]save OK [10:10:32]Clear old archive folders... [10:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:32]tlvbuf is 00A817F0 [10:10:32]SAM_PROTO_ClearQueue [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 09 00 00 [10:10:32]Write to MH i2c: E2 08 00 81 31 80 09 00 00 00 00 00 00 24 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 81 31 00 90 00 26 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]SAM_PROTO_ClearQueue done [10:10:32]KKMCreateOFDPacket [10:10:32]OFDProtocolAddRootSTLVToBuf [10:10:32]FM_MakeSignedData [10:10:32]FM_MakeSignedData [10:10:32]SAM_PROTO_SignData [10:10:32]wFMCommunicate request_size=4 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 01 02 [10:10:32]Write to MH i2c: E2 08 00 82 31 80 0D 01 02 00 00 00 00 2C [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 82 31 00 90 00 27 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=255 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1A BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 23 02 00 35 04 06 00 01 [10:10:32]Write to MH i2c: E2 02 01 83 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1A BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 23 02 00 35 04 06 00 01 00 00 B9 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:32]Read from MH i2c: E2 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: E2 03 00 83 31 00 90 00 28 [10:10:32]RAPDU: 90 00 [10:10:32]wFMCommunicate OK [10:10:32]wFMCommunicate request_size=10 [10:10:32]MH_SAM_APDU [10:10:32]CAPDU: 80 0D 02 02 05 5F 41 0B 42 9D [10:10:32]Write to MH i2c: E2 0D 00 84 31 80 0D 02 02 05 00 5F 41 0B 42 9D 00 00 C3 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 03 00 84 31 00 90 00 29 [10:10:33]RAPDU: 90 00 [10:10:33]wFMCommunicate OK [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 0D 03 02 [10:10:33]Write to MH i2c: E2 08 00 85 31 80 0D 03 02 00 00 00 00 31 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0B 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0B 00 85 31 00 96 29 43 9C 74 9A 32 D3 90 00 E3 [10:10:33]RAPDU: 96 29 43 9C 74 9A 32 D3 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_SignData done [10:10:33]FM_MakeSignedData done [10:10:33]CreateOFDProtocolMessage [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 11 00 00 [10:10:33]Write to MH i2c: E2 08 00 86 31 80 11 00 00 00 00 00 00 31 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 86 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [10:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:33]wFMCommunicate OK [10:10:33]CreateOFDProtocolMessage done [10:10:33]OFDSenderStorePacket 140072 [10:10:33]StoreOFDPacket docnum=140072 [10:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 17 07 01 DF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1A BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 23 02 00 35 04 06 00 01 5F 41 0B 42 9D 96 29 43 9C 74 9A 32 D3 [10:10:33]CheckFolder [10:10:33]dirname=/storage/ofd_packets [10:10:33]CheckFolder done [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00140072 [10:10:33]NVStorageSaveData ofd_packets/00140072 [10:10:33]File name is /storage/ofd_packets/00140072 [10:10:33]Write 301 bytes [10:10:33]NVStorageSaveData done [10:10:33]OFDSenderStorePacket done [10:10:33]KKMCreateOFDPacket done [10:10:33]NVStorageSaveData kkm_last_timestamp [10:10:33]File name is /storage/kkm_last_timestamp [10:10:33]Write 4 bytes [10:10:33]NVStorageSaveData done [10:10:33]ExternCall_PrintAddStr [10:10:33]wPrintStart [10:10:33]Write to MH i2c: 01 00 00 87 31 B8 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 87 31 00 00 00 00 00 FF 0F CD [10:10:33]RasterBufferAndPrint [10:10:33]line Счет N : (1)593924 [10:10:33]line ИНН: 02508201610067 [10:10:33]line Контрольно-Кассовый Чек [10:10:33]line ПРОДАЖА [10:10:33]line ТРК (МРК, ГНК) : 42 [10:10:33]line Товар: 2710124130 [10:10:33]line Аи-92-К-5 [10:10:33]line 25.000 * 0.00 [10:10:33]line = 0.00 [10:10:33]line НДС 12% НСП 1% [10:10:33]line > о реализуемом товаре [10:10:33]line ИТОГО: 0.00 [10:10:33]line НСП 1% : 0.00 [10:10:33]line НДС 12% : 0.00 [10:10:33]line Наличными: 0.00 [10:10:33]line Безнал.: 0.00 [10:10:33]line Место: АЗС № 136 "Партнер Нефть" [10:10:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:33]line СНО: Общий режим [10:10:33]line Чек 89 21.08.2024 10:10 [10:10:33]line Смена: 454 ФФД: 1.0 [10:10:33]line ЗНМ: 0300000067 [10:10:33]line РНМ: 0000000000092569 [10:10:33]line Версия ККМ: 001 [10:10:33]line Талоны: Топливная Карта [10:10:33]line 81860 [10:10:33]line ФМ: 0000000000871776 [10:10:33]line ФД: 140072 [10:10:33]line ФПД: 1508624777885 [10:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101034&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140072&fm=1508624777885&tin=02508201610067®Number=0000000000092569&sum=0 [10:10:33]written 0, free lines is 4095 [10:10:33]OFD Sender: Processing packet 140072 [packets to send 137, broken 136] [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00140072 [10:10:33]OFD Sender: To server: pG, [10:10:33]CommunicateWithHost lk.salyk.kg:30040 [10:10:33]ConnectInit lk.salyk.kg [10:10:33]Connected sock=7 [10:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8F 17 07 01 DF E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1A BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 23 02 00 35 04 06 00 01 5F 41 0B 42 9D 96 29 43 9C 74 9A 32 D3 [10:10:33]Write to MH i2c: 01 00 00 B1 31 E2 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 B1 31 00 00 00 00 00 F5 0C EA [10:10:33]RasterBufferAndPrint [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]line [10:10:33]written 0, free lines is 3323 [10:10:33]MH_Cut [10:10:33]Write to MH i2c: D1 01 00 B8 31 01 BB [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: D1 01 00 B8 31 00 BA [10:10:33]Write to MH i2c: 01 00 00 B9 31 EA [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10: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 37 36 4F 00 00 00 32 50 47 00 EC 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 37 36 10 04 04 00 28 23 02 00 F4 03 04 00 AB 63 C5 66 B6 04 01 00 00 11 4B B7 04 AB F3 DF BA [10:10:33]CommunicateWithHost err = 0 [10:10:33]CheckOFDResponse [10:10:33]1017 (14) - 77093643461234 [10:10:33]1041 (16) - 0000000000871776 [10:10:33]1040 (4) - 140072 [10:10:33]1012 (4) - 21.08.2024 03:48 [10:10:33]1206 (1) - 0 [10:10:33]OFD Sender: Remove packet 140072 [10:10:33]ProducePacketName [10:10:33]name=ofd_packets/00140072 [10:10:33]NVStorageDeleteData [10:10:34]OFD Sender: No OFD packet to send [10:10:34]*** Cut start [10:10:34]*** Partial cut [10:10:34]*** CUTSNS_PIN = 1 [10:10:34]*** CUTSNS_PIN = 0 [10:10:34]*** Brake cut motor [10:10:34]Read from MH i2c: 01 [10:10:34]MH_I2C_Read... [10:10:34]*** Stop cut motor [10:10:34]*** Cut end [10:10:34]Read from MH i2c: 01 07 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 B9 31 00 00 00 00 00 FF 0F FF [10:10:34]process_action close_receipt done [10:10:34]requested_data is exist [10:10:34]produce_requested_data [10:10:34]requested_item fm.sn is exist - process it [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 11 00 00 [10:10:34]Write to MH i2c: E2 08 00 BA 31 80 11 00 00 00 00 00 00 65 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:34]Read from MH i2c: E2 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 17 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 17 00 BA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [10:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:34]wFMCommunicate OK [10:10:34]requested_item fd.num is exist - process it [10:10:34]SAM_PROTO_GetFieldsCounters [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 13 00 00 [10:10:34]Write to MH i2c: E2 08 00 BB 31 80 13 00 00 00 00 00 00 68 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 62 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 62 00 BB 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:35]wFMCommunicate OK [10:10:35]SAM_PROTO_GetFieldsCounters done [10:10:35]requested_item shift.num is exist - process it [10:10:35]requested_item shift.opened is exist - process it [10:10:35]req_shift_opened [10:10:35]FM_GetShiftState [10:10:35]SAM_PROTO_GetShiftState [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 13 01 00 [10:10:35]Write to MH i2c: E2 08 00 BC 31 80 13 01 00 00 00 00 00 6A [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0E 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0E 00 BC 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EA [10:10:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:35]wFMCommunicate OK [10:10:35]SAM_PROTO_GetShiftState done [10:10:35]FM_GetShiftState done [10:10:35]req_shift_opened done [10:10:35]requested_item shift.open_date is exist - process it [10:10:35]req_shift_open_date [10:10:35]req_shift_open_date done [10:10:35]produce_requested_data done [10:10:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140072,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:10:35]process_action_free close_receipt [10:10:35]json_value_free [10:10:35]json_value_free done [10:10:35]process_json_proto returns [10:10:35]Send response to host [10:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140072,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:10:35]free response buf [10:10:35]execute_script done [10:10:35]execute_script returns [10:10:35]free content buf [10:10:35]Sock 9.Close socket [10:10:35]Sock 9.Thread stoped [10:10:39]OFD Sender: No OFD packet to send [10:10:39]int [10:10:39]Write to MH i2c: 01 00 00 BD 31 EE [10:10:39]*** FLAG_PRN_KEY set [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 BD 31 00 08 00 00 00 FF 0F 0B [10:10:39]state=0 [10:10:39]Key pressed [10:10:39]Feed [10:10:39]Write to MH i2c: D8 00 00 BE 31 C6 [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D8 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D8 01 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: D8 01 00 BE 31 00 C7 [10:10:39]int [10:10:39]Write to MH i2c: 01 00 00 BF 31 F0 [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 BF 31 00 48 00 00 00 3C 00 7B [10:10:39]state=2 [10:10:39]Key pressed [10:10:39]int [10:10:39]Write to MH i2c: 01 00 00 C0 31 F1 [10:10:39]*** FLAG_PRN_KEY reset [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: 01 07 00 C0 31 00 00 00 00 00 FB 0F 02 [10:10:39]state=2 [10:10:39]Stop feed [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:53]accept exits with 10 [10:10:53]New connection [10:10:53]New thread 3066764644 created [10:10:53]Thread 3066908004 joined [10:10:53]Waiting for new connection... [10:10:53] Sock 10.Parse request [10:10:53]Sock 10.Check first char [10:10:53]Sock 10.First char is OK [10:10:53]request: POST /json_proto HTTP/1.0 [10:10:53]Method: POST [10:10:53]URL: /json_proto [10:10:53]Method is POST - this is cgi request [10:10:53]url: /json_proto [10:10:53]query_string will be loaded in cgi processing [10:10:53]execute_cgi json_proto POST (null) [10:10:53]execute_cgi path=json_proto method=POST [10:10:53]POST find Content-Length [10:10:53]Host: 172.17.45.67:8080 [10:10:53]Content-Length: 677 [10:10:53]Content-Type: application/json [10:10:53] [10:10:53]POST finish read [10:10:53]Found Content-Length = 677 [10:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:53]execute_script... [10:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:53]POST & json_proto [10:10:53]process_json_proto [10:10:53]json parsed OK: [10:10:53]protocol is kg_v1.0 [10:10:53]action value=close_receipt [10:10:53]process_action close_receipt [10:10:53]cmd_close_receipt [10:10:53]MH_GetDate [10:10:53]Write to MH i2c: F0 00 00 C1 31 E1 [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: F0 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: F0 09 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: F0 09 00 C1 31 00 30 BD C5 66 5F 7F 2B 66 71 [10:10:53]GetLastDocTimeStamp 1724235034 [10:10:53]current date 1724235056 [10:10:53]FM_GetShiftState [10:10:53]SAM_PROTO_GetShiftState [10:10:53]wFMCommunicate request_size=4 [10:10:53]MH_SAM_APDU [10:10:53]CAPDU: 80 13 01 00 [10:10:53]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:53]Read from MH i2c: E2 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 0E 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F0 [10:10:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:53]wFMCommunicate OK [10:10:53]SAM_PROTO_GetShiftState done [10:10:53]FM_GetShiftState done [10:10:53]opened in 1724200467 [10:10:53]opened+sec_in_day 1724286867 [10:10:53]quantity*price = 60027 [10:10:53]sum+1 = 60029 [10:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 90 21.08.2024 10:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140073 ФПД: 53738325468957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140073&fm=53738325468957&tin=02508201610067®Number=0000000000092569&sum=60000 [10:10:54]StoreToDocumentArchive [10:10:54]shift 454 fd 140073 [10:10:54]save to /storage/0454/doc_00140073 [10:10:54]save last doc name /storage/0454/doc_00140073 to /storage/kkm_last_doc_name [10:10:54]save OK [10:10:54]Clear old archive folders... [10:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:54]tlvbuf is 00A67E10 [10:10:54]SAM_PROTO_ClearQueue [10:10:54]wFMCommunicate request_size=4 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 09 00 00 [10:10:54]Write to MH i2c: E2 08 00 CF 31 80 09 00 00 00 00 00 00 72 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [10:10:54]RAPDU: 90 00 [10:10:54]wFMCommunicate OK [10:10:54]SAM_PROTO_ClearQueue done [10:10:54]KKMCreateOFDPacket [10:10:54]OFDProtocolAddRootSTLVToBuf [10:10:54]FM_MakeSignedData [10:10:54]FM_MakeSignedData [10:10:54]SAM_PROTO_SignData [10:10:54]wFMCommunicate request_size=4 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 0D 01 02 [10:10:54]Write to MH i2c: E2 08 00 D0 31 80 0D 01 02 00 00 00 00 7A [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [10:10:54]RAPDU: 90 00 [10:10:54]wFMCommunicate OK [10:10:54]wFMCommunicate request_size=255 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 30 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 23 02 00 35 04 06 00 30 [10:10:54]Write to MH i2c: E2 02 01 D1 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 30 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 23 02 00 35 04 06 00 30 00 00 28 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [10:10:54]RAPDU: 90 00 [10:10:54]wFMCommunicate OK [10:10:54]wFMCommunicate request_size=10 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 0D 02 02 05 DF ED CC E7 1D [10:10:54]Write to MH i2c: E2 0D 00 D2 31 80 0D 02 02 05 00 DF ED CC E7 1D 00 00 23 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [10:10:54]RAPDU: 90 00 [10:10:54]wFMCommunicate OK [10:10:54]wFMCommunicate request_size=4 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 0D 03 02 [10:10:54]Write to MH i2c: E2 08 00 D3 31 80 0D 03 02 00 00 00 00 7F [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 0B 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 0B 00 D3 31 00 45 20 54 69 DF B4 51 6D 90 00 F3 [10:10:54]RAPDU: 45 20 54 69 DF B4 51 6D 90 00 [10:10:54]wFMCommunicate OK [10:10:54]SAM_PROTO_SignData done [10:10:54]FM_MakeSignedData done [10:10:54]CreateOFDProtocolMessage [10:10:54]wFMCommunicate request_size=4 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 11 00 00 [10:10:54]Write to MH i2c: E2 08 00 D4 31 80 11 00 00 00 00 00 00 7F [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 17 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 17 00 D4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [10:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:54]wFMCommunicate OK [10:10:54]CreateOFDProtocolMessage done [10:10:54]OFDSenderStorePacket 140073 [10:10:54]StoreOFDPacket docnum=140073 [10:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5F 49 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 30 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 23 02 00 35 04 06 00 30 DF ED CC E7 1D 45 20 54 69 DF B4 51 6D [10:10:54]CheckFolder [10:10:54]dirname=/storage/ofd_packets [10:10:54]CheckFolder done [10:10:54]ProducePacketName [10:10:54]name=ofd_packets/00140073 [10:10:54]NVStorageSaveData ofd_packets/00140073 [10:10:54]File name is /storage/ofd_packets/00140073 [10:10:54]Write 301 bytes [10:10:54]NVStorageSaveData done [10:10:54]OFDSenderStorePacket done [10:10:54]KKMCreateOFDPacket done [10:10:54]NVStorageSaveData kkm_last_timestamp [10:10:54]File name is /storage/kkm_last_timestamp [10:10:54]Write 4 bytes [10:10:54]NVStorageSaveData done [10:10:54]ExternCall_PrintAddStr [10:10:54]wPrintStart [10:10:54]Write to MH i2c: 01 00 00 D5 31 06 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: 01 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: 01 07 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: 01 07 00 D5 31 00 00 00 00 00 FF 0F 1B [10:10:54]RasterBufferAndPrint [10:10:54]line Счет N : (1)593927 [10:10:54]line ИНН: 02508201610067 [10:10:54]line Контрольно-Кассовый Чек [10:10:54]line ПРОДАЖА [10:10:54]line ТРК (МРК, ГНК) : 51 [10:10:54]line Товар: 2710124500 [10:10:54]line Аи-95-К-5 [10:10:54]line 8.090 * 74.20 [10:10:54]line = 600.28 [10:10:54]line НДС 12% НСП 1% [10:10:54]line > о реализуемом товаре [10:10:54]line ОКРУГЛЕНИЕ: -0.28 [10:10:54]line ИТОГО: 600.00 [10:10:54]line Внесено: 600.00 [10:10:54]line СДАЧА: 0.00 [10:10:54]line НСП 1% : 5.31 [10:10:54]line НДС 12% : 63.75 [10:10:54]line Наличными: 600.00 [10:10:54]line Безнал.: 0.00 [10:10:54]line Место: АЗС № 136 "Партнер Нефть" [10:10:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:10:54]line СНО: Общий режим [10:10:54]line Чек 90 21.08.2024 10:10 [10:10:54]line Смена: 454 ФФД: 1.0 [10:10:54]line ЗНМ: 0300000067 [10:10:54]line РНМ: 0000000000092569 [10:10:54]line Версия ККМ: 001 [10:10:54]line ФМ: 0000000000871776 [10:10:54]line ФД: 140073 [10:10:54]line ФПД: 53738325468957 [10:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101056&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140073&fm=53738325468957&tin=02508201610067®Number=0000000000092569&sum=60000 [10:10:55]written 0, free lines is 4095 [10:10:55]OFD Sender: Processing packet 140073 [packets to send 137, broken 136] [10:10:55]ProducePacketName [10:10:55]name=ofd_packets/00140073 [10:10:55]OFD Sender: To server: pG, [10:10:55]CommunicateWithHost lk.salyk.kg:30040 [10:10:55]ConnectInit lk.salyk.kg [10:10:55]Connected sock=9 [10:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5F 49 07 01 48 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 30 BD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 23 02 00 35 04 06 00 30 DF ED CC E7 1D 45 20 54 69 DF B4 51 6D [10:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 42 23 47 00 AE 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 37 36 10 04 04 00 29 23 02 00 F4 03 04 00 C1 63 C5 66 B6 04 01 00 00 B4 D7 D4 A5 9A A2 DA 99 [10:10:55]CommunicateWithHost err = 0 [10:10:55]CheckOFDResponse [10:10:55]1017 (14) - 77093643461234 [10:10:55]1041 (16) - 0000000000871776 [10:10:55]1040 (4) - 140073 [10:10:55]1012 (4) - 21.08.2024 03:49 [10:10:55]1206 (1) - 0 [10:10:55]OFD Sender: Remove packet 140073 [10:10:55]ProducePacketName [10:10:55]name=ofd_packets/00140073 [10:10:55]NVStorageDeleteData [10:10:55]Write to MH i2c: 01 00 00 00 32 32 [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: 01 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: 01 07 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: 01 07 00 00 32 00 00 00 00 00 E4 0C 29 [10:10:55]RasterBufferAndPrint [10:10:55]line [10:10:55]line [10:10:55]line [10:10:55]line [10:10:55]line [10:10:55]written 0, free lines is 3306 [10:10:55]MH_Cut [10:10:55]Write to MH i2c: D1 01 00 07 32 01 0B [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: D1 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: D1 01 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: D1 01 00 07 32 00 0A [10:10:55]Write to MH i2c: 01 00 00 08 32 3A [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:56]OFD Sender: No OFD packet to send [10:10:56]*** Cut start [10:10:56]*** Partial cut [10:10:56]*** CUTSNS_PIN = 1 [10:10:56]*** CUTSNS_PIN = 0 [10:10:56]*** Brake cut motor [10:10:57]Read from MH i2c: 01 [10:10:57]MH_I2C_Read... [10:10:57]*** Stop cut motor [10:10:57]*** Cut end [10:10:57]Read from MH i2c: 01 07 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: 01 07 00 08 32 00 00 00 00 00 FF 0F 4F [10:10:57]process_action close_receipt done [10:10:57]requested_data is exist [10:10:57]produce_requested_data [10:10:57]requested_item fm.sn is exist - process it [10:10:57]wFMCommunicate request_size=4 [10:10:57]MH_SAM_APDU [10:10:57]CAPDU: 80 11 00 00 [10:10:57]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:57]Read from MH i2c: E2 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 17 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [10:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:10:57]wFMCommunicate OK [10:10:57]requested_item fd.num is exist - process it [10:10:57]SAM_PROTO_GetFieldsCounters [10:10:57]wFMCommunicate request_size=4 [10:10:57]MH_SAM_APDU [10:10:57]CAPDU: 80 13 00 00 [10:10:57]Write to MH i2c: E2 08 00 0A 32 80 13 00 00 00 00 00 00 B8 [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:57]Read from MH i2c: E2 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 62 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 62 00 0A 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:57]wFMCommunicate OK [10:10:57]SAM_PROTO_GetFieldsCounters done [10:10:57]requested_item shift.num is exist - process it [10:10:57]requested_item shift.opened is exist - process it [10:10:57]req_shift_opened [10:10:57]FM_GetShiftState [10:10:57]SAM_PROTO_GetShiftState [10:10:57]wFMCommunicate request_size=4 [10:10:57]MH_SAM_APDU [10:10:57]CAPDU: 80 13 01 00 [10:10:57]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [10:10:57]Write i2c OK [10:10:57]MH_I2C_Read... [10:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:57]Read from MH i2c: E2 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 0E 00 [10:10:57]MH_I2C_Read... [10:10:57]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3A [10:10:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:10:57]wFMCommunicate OK [10:10:57]SAM_PROTO_GetShiftState done [10:10:57]FM_GetShiftState done [10:10:57]req_shift_opened done [10:10:57]requested_item shift.open_date is exist - process it [10:10:57]req_shift_open_date [10:10:57]req_shift_open_date done [10:10:57]produce_requested_data done [10:10:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140073,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:10:57]process_action_free close_receipt [10:10:57]json_value_free [10:10:57]json_value_free done [10:10:57]process_json_proto returns [10:10:57]Send response to host [10:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140073,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:10:57]free response buf [10:10:57]execute_script done [10:10:57]execute_script returns [10:10:57]free content buf [10:10:57]Sock 10.Close socket [10:10:57]Sock 10.Thread stoped [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:42]accept exits with 7 [10:14:42]New connection [10:14:42]New thread 3066908004 created [10:14:42]Thread 3066764644 joined [10:14:42]Waiting for new connection... [10:14:42] Sock 7.Parse request [10:14:42]Sock 7.Check first char [10:14:42]Sock 7.First char is OK [10:14:42]request: POST /json_proto HTTP/1.0 [10:14:42]Method: POST [10:14:42]URL: /json_proto [10:14:42]Method is POST - this is cgi request [10:14:42]url: /json_proto [10:14:42]query_string will be loaded in cgi processing [10:14:42]execute_cgi json_proto POST (null) [10:14:42]execute_cgi path=json_proto method=POST [10:14:42]POST find Content-Length [10:14:42]Host: 172.17.45.67:8080 [10:14:42]Content-Length: 682 [10:14:42]Content-Type: application/json [10:14:42] [10:14:42]POST finish read [10:14:42]Found Content-Length = 682 [10:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:42]execute_script... [10: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)593928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:42]POST & json_proto [10:14:42]process_json_proto [10:14:42]json parsed OK: [10:14:42]protocol is kg_v1.0 [10:14:42]action value=close_receipt [10:14:42]process_action close_receipt [10:14:42]cmd_close_receipt [10:14:42]MH_GetDate [10:14:42]Write to MH i2c: F0 00 00 0C 32 2D [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 09 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: F0 09 00 0C 32 00 15 BE C5 66 5F 7F 2B 66 A3 [10:14:42]GetLastDocTimeStamp 1724235056 [10:14:42]current date 1724235285 [10:14:42]FM_GetShiftState [10:14:42]SAM_PROTO_GetShiftState [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 13 01 00 [10:14:42]Write to MH i2c: E2 08 00 0D 32 80 13 01 00 00 00 00 00 BC [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 0D 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3C [10:14:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_GetShiftState done [10:14:42]FM_GetShiftState done [10:14:42]opened in 1724200467 [10:14:42]opened+sec_in_day 1724286867 [10:14:42]quantity*price = 100021 [10:14:42]sum+1 = 100023 [10:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 91 21.08.2024 10:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140074 ФПД: 168053129232045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101445&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140074&fm=168053129232045&tin=02508201610067®Number=0000000000092569&sum=100000 [10:14:43]StoreToDocumentArchive [10:14:43]shift 454 fd 140074 [10:14:43]save to /storage/0454/doc_00140074 [10:14:43]save last doc name /storage/0454/doc_00140074 to /storage/kkm_last_doc_name [10:14:43]save OK [10:14:43]Clear old archive folders... [10:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:43]tlvbuf is 00A1B450 [10:14:43]SAM_PROTO_ClearQueue [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 09 00 00 [10:14:43]Write to MH i2c: E2 08 00 1A 32 80 09 00 00 00 00 00 00 BE [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_ClearQueue done [10:14:43]KKMCreateOFDPacket [10:14:43]OFDProtocolAddRootSTLVToBuf [10:14:43]FM_MakeSignedData [10:14:43]FM_MakeSignedData [10:14:43]SAM_PROTO_SignData [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 0D 01 02 [10:14:43]Write to MH i2c: E2 08 00 1B 32 80 0D 01 02 00 00 00 00 C6 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [10:14:43]RAPDU: 90 00 [10:14:43]wFMCommunicate OK [10:14:43]wFMCommunicate request_size=255 [10:14:43]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 15 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 23 02 00 35 04 06 00 98 [10:14:43]Write to MH i2c: E2 02 01 1C 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 15 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 23 02 00 35 04 06 00 98 00 00 83 [10:14:43]Write i2c OK [10:14:43]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 1C 32 00 90 00 C2 [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 D7 EB 12 3E AD [10:14:44]Write to MH i2c: E2 0D 00 1D 32 80 0D 02 02 05 00 D7 EB 12 3E AD 00 00 92 [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 1D 32 00 90 00 C3 [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 1E 32 80 0D 03 02 00 00 00 00 CB [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 1E 32 00 EA 5A 41 9D 54 F2 4D 80 90 00 01 [10:14:44]RAPDU: EA 5A 41 9D 54 F2 4D 80 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 1F 32 80 11 00 00 00 00 00 00 CB [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 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 22 [10:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:14:44]wFMCommunicate OK [10:14:44]CreateOFDProtocolMessage done [10:14:44]OFDSenderStorePacket 140074 [10:14:44]StoreOFDPacket docnum=140074 [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 37 36 0F 01 00 00 88 61 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 15 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 23 02 00 35 04 06 00 98 D7 EB 12 3E AD EA 5A 41 9D 54 F2 4D 80 [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/00140074 [10:14:44]NVStorageSaveData ofd_packets/00140074 [10:14:44]File name is /storage/ofd_packets/00140074 [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 20 32 52 [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 20 32 00 00 00 00 00 FF 0F 67 [10:14:44]RasterBufferAndPrint [10:14:44]line Счет N : (1)593928 [10:14:44]line ИНН: 02508201610067 [10:14:44]line Контрольно-Кассовый Чек [10:14:44]line ПРОДАЖА [10:14:44]line ТРК (МРК, ГНК) : 61 [10:14:44]line Товар: 2710124500 [10:14:44]line Аи-95-К-5 [10:14:44]line 13.480 * 74.20 [10:14:44]line = 1000.22 [10:14:44]line НДС 12% НСП 1% [10:14:44]line > о реализуемом товаре [10:14:44]line ОКРУГЛЕНИЕ: -0.22 [10:14:44]line ИТОГО: 1000.00 [10:14:44]line Внесено: 1000.00 [10:14:44]line СДАЧА: 0.00 [10:14:44]line НСП 1% : 8.85 [10:14:44]line НДС 12% : 106.22 [10:14:44]line Наличными: 1000.00 [10:14:44]line Безнал.: 0.00 [10:14:44]line Место: АЗС № 136 "Партнер Нефть" [10:14:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:14:44]line СНО: Общий режим [10:14:44]line Чек 91 21.08.2024 10:14 [10:14:44]line Смена: 454 ФФД: 1.0 [10:14:44]line ЗНМ: 0300000067 [10:14:44]line РНМ: 0000000000092569 [10:14:44]line Версия ККМ: 001 [10:14:44]line ФМ: 0000000000871776 [10:14:44]line ФД: 140074 [10:14:44]line ФПД: 168053129232045 [10:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101445&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140074&fm=168053129232045&tin=02508201610067®Number=0000000000092569&sum=100000 [10:14:44]OFD Sender: Processing packet 140074 [packets to send 137, broken 136] [10:14:44]ProducePacketName [10:14:44]name=ofd_packets/00140074 [10:14:44]OFD Sender: To server: pG, [10:14:44]CommunicateWithHost lk.salyk.kg:30040 [10:14:44]ConnectInit lk.salyk.kg [10:14:44]written 0, free lines is 4095 [10:14:44]Connected sock=10 [10:14: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 37 36 0F 01 00 00 88 61 07 01 B0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 15 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 23 02 00 35 04 06 00 98 D7 EB 12 3E AD EA 5A 41 9D 54 F2 4D 80 [10:14:45]Write to MH i2c: 01 00 00 4B 32 7D [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 4B 32 00 00 00 00 00 CB 0C 5B [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 3279 [10:14:45]MH_Cut [10:14:45]Write to MH i2c: D1 01 00 52 32 01 56 [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 52 32 00 55 [10:14:45]Write to MH i2c: 01 00 00 53 32 85 [10:14:45]Write i2c OK [10:14:45]MH_I2C_Read... [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 37 36 4F 00 00 00 96 CB 47 00 01 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 37 36 10 04 04 00 2A 23 02 00 F4 03 04 00 A6 64 C5 66 B6 04 01 00 00 E2 1A FD 9E B6 8B 70 23 [10:14:45]CommunicateWithHost err = 0 [10:14:45]CheckOFDResponse [10:14:45]1017 (14) - 77093643461234 [10:14:45]1041 (16) - 0000000000871776 [10:14:45]1040 (4) - 140074 [10:14:45]1012 (4) - 21.08.2024 03:53 [10:14:45]1206 (1) - 0 [10:14:45]OFD Sender: Remove packet 140074 [10:14:45]ProducePacketName [10:14:45]name=ofd_packets/00140074 [10:14:45]NVStorageDeleteData [10:14:45]OFD Sender: No OFD packet to send [10:14:45]*** Cut start [10:14:45]*** Partial cut [10:14:45]*** CUTSNS_PIN = 1 [10:14:45]*** CUTSNS_PIN = 0 [10:14:45]*** Brake cut motor [10:14:46]Read from MH i2c: 01 [10:14:46]MH_I2C_Read... [10:14:46]*** Stop cut motor [10:14:46]*** Cut end [10:14:46]Read from MH i2c: 01 07 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 53 32 00 00 00 00 00 FF 0F 9A [10:14:46]process_action close_receipt done [10:14:46]requested_data is exist [10:14:46]produce_requested_data [10:14:46]requested_item fm.sn is exist - process it [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 11 00 00 [10:14:46]Write to MH i2c: E2 08 00 54 32 80 11 00 00 00 00 00 00 00 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 17 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 17 00 54 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 57 [10:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:14:46]wFMCommunicate OK [10:14:46]requested_item fd.num is exist - process it [10:14:46]SAM_PROTO_GetFieldsCounters [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 13 00 00 [10:14:46]Write to MH i2c: E2 08 00 55 32 80 13 00 00 00 00 00 00 03 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 62 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 62 00 55 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:46]wFMCommunicate OK [10:14:46]SAM_PROTO_GetFieldsCounters done [10:14:46]requested_item shift.num is exist - process it [10:14:46]requested_item shift.opened is exist - process it [10:14:46]req_shift_opened [10:14:46]FM_GetShiftState [10:14:46]SAM_PROTO_GetShiftState [10:14:46]wFMCommunicate request_size=4 [10:14:46]MH_SAM_APDU [10:14:46]CAPDU: 80 13 01 00 [10:14:46]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:46]Read from MH i2c: E2 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 85 [10:14:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:14:46]wFMCommunicate OK [10:14:46]SAM_PROTO_GetShiftState done [10:14:46]FM_GetShiftState done [10:14:46]req_shift_opened done [10:14:46]requested_item shift.open_date is exist - process it [10:14:46]req_shift_open_date [10:14:46]req_shift_open_date done [10:14:46]produce_requested_data done [10:14:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140074,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:14:46]process_action_free close_receipt [10:14:46]json_value_free [10:14:46]json_value_free done [10:14:46]process_json_proto returns [10:14:46]Send response to host [10:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140074,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:14:46]free response buf [10:14:46]execute_script done [10:14:46]execute_script returns [10:14:46]free content buf [10:14:46]Sock 7.Close socket [10:14:46]Sock 7.Thread stoped [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:39]accept exits with 9 [10:15:39]New connection [10:15:39]New thread 3066764644 created [10:15:39]Thread 3066908004 joined [10:15:39]Waiting for new connection... [10:15:39] Sock 9.Parse request [10:15:39]Sock 9.Check first char [10:15:39]Sock 9.First char is OK [10:15:39]request: POST /json_proto HTTP/1.0 [10:15:39]Method: POST [10:15:39]URL: /json_proto [10:15:39]Method is POST - this is cgi request [10:15:39]url: /json_proto [10:15:39]query_string will be loaded in cgi processing [10:15:39]execute_cgi json_proto POST (null) [10:15:39]execute_cgi path=json_proto method=POST [10:15:39]POST find Content-Length [10:15:39]Host: 172.17.45.67:8080 [10:15:39]Content-Length: 819 [10:15:39]Content-Type: application/json [10:15:39] [10:15:39]POST finish read [10:15:39]Found Content-Length = 819 [10:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:39]execute_script... [10:15: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)593931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:39]POST & json_proto [10:15:39]process_json_proto [10:15:39]json parsed OK: [10:15:39]protocol is kg_v1.0 [10:15:39]action value=close_receipt [10:15:39]process_action close_receipt [10:15:39]cmd_close_receipt [10:15:39]MH_GetDate [10:15:39]Write to MH i2c: F0 00 00 57 32 78 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: F0 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: F0 09 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: F0 09 00 57 32 00 4E BE C5 66 5F 7F 2B 66 27 [10:15:39]GetLastDocTimeStamp 1724235285 [10:15:39]current date 1724235342 [10:15:39]FM_GetShiftState [10:15:39]SAM_PROTO_GetShiftState [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 13 01 00 [10:15:39]Write to MH i2c: E2 08 00 58 32 80 13 01 00 00 00 00 00 07 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0E 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0E 00 58 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 87 [10:15:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:15:39]wFMCommunicate OK [10:15:39]SAM_PROTO_GetShiftState done [10:15:39]FM_GetShiftState done [10:15:39]opened in 1724200467 [10:15:39]opened+sec_in_day 1724286867 [10:15:39]quantity*price = 80004 [10:15:39]sum+1 = 80005 [10:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 92 21.08.2024 10:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140075 ФПД: 130104392252999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101542&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140075&fm=130104392252999&tin=02508201610067®Number=0000000000092569&sum=80000 [10:15:40]StoreToDocumentArchive [10:15:40]shift 454 fd 140075 [10:15:40]save to /storage/0454/doc_00140075 [10:15:40]save last doc name /storage/0454/doc_00140075 to /storage/kkm_last_doc_name [10:15:40]save OK [10:15:40]Clear old archive folders... [10:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:40]tlvbuf is 00A67CC0 [10:15:40]SAM_PROTO_ClearQueue [10:15:40]wFMCommunicate request_size=4 [10:15:40]MH_SAM_APDU [10:15:40]CAPDU: 80 09 00 00 [10:15:40]Write to MH i2c: E2 08 00 65 32 80 09 00 00 00 00 00 00 09 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:40]OFD Sender: No OFD packet to send [10:15:40]Read from MH i2c: E2 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 03 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [10:15:40]RAPDU: 90 00 [10:15:40]wFMCommunicate OK [10:15:40]SAM_PROTO_ClearQueue done [10:15:40]KKMCreateOFDPacket [10:15:40]OFDProtocolAddRootSTLVToBuf [10:15:40]FM_MakeSignedData [10:15:40]FM_MakeSignedData [10:15:40]SAM_PROTO_SignData [10:15:40]wFMCommunicate request_size=4 [10:15:40]MH_SAM_APDU [10:15:40]CAPDU: 80 0D 01 02 [10:15:40]Write to MH i2c: E2 08 00 66 32 80 0D 01 02 00 00 00 00 11 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:40]Read from MH i2c: E2 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 03 00 [10:15:40]MH_I2C_Read... [10:15:40]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [10:15:40]RAPDU: 90 00 [10:15:40]wFMCommunicate OK [10:15:40]wFMCommunicate request_size=255 [10:15:40]MH_SAM_APDU [10:15: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 23 02 00 35 04 06 00 76 [10:15:40]Write to MH i2c: E2 02 01 67 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 23 02 00 35 04 06 00 76 00 00 67 [10:15:40]Write i2c OK [10:15:40]MH_I2C_Read... [10:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 03 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 03 00 67 32 00 90 00 0D [10:15:41]RAPDU: 90 00 [10:15:41]wFMCommunicate OK [10:15:41]wFMCommunicate request_size=10 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 0D 02 02 05 54 4A 15 7E 47 [10:15:41]Write to MH i2c: E2 0D 00 68 32 80 0D 02 02 05 00 54 4A 15 7E 47 00 00 96 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 03 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 03 00 68 32 00 90 00 0E [10:15:41]RAPDU: 90 00 [10:15:41]wFMCommunicate OK [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 0D 03 02 [10:15:41]Write to MH i2c: E2 08 00 69 32 80 0D 03 02 00 00 00 00 16 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0B 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 0B 00 69 32 00 8F A0 DF 9F E0 16 2F 05 90 00 EE [10:15:41]RAPDU: 8F A0 DF 9F E0 16 2F 05 90 00 [10:15:41]wFMCommunicate OK [10:15:41]SAM_PROTO_SignData done [10:15:41]FM_MakeSignedData done [10:15:41]CreateOFDProtocolMessage [10:15:41]wFMCommunicate request_size=4 [10:15:41]MH_SAM_APDU [10:15:41]CAPDU: 80 11 00 00 [10:15:41]Write to MH i2c: E2 08 00 6A 32 80 11 00 00 00 00 00 00 16 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:41]Read from MH i2c: E2 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 17 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: E2 17 00 6A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [10:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:15:41]wFMCommunicate OK [10:15:41]CreateOFDProtocolMessage done [10:15:41]OFDSenderStorePacket 140075 [10:15:41]StoreOFDPacket docnum=140075 [10:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4A 12 07 01 AC 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 23 02 00 35 04 06 00 76 54 4A 15 7E 47 8F A0 DF 9F E0 16 2F 05 [10:15:41]CheckFolder [10:15:41]dirname=/storage/ofd_packets [10:15:41]CheckFolder done [10:15:41]ProducePacketName [10:15:41]name=ofd_packets/00140075 [10:15:41]NVStorageSaveData ofd_packets/00140075 [10:15:41]File name is /storage/ofd_packets/00140075 [10:15:41]Write 301 bytes [10:15:41]NVStorageSaveData done [10:15:41]OFDSenderStorePacket done [10:15:41]KKMCreateOFDPacket done [10:15:41]NVStorageSaveData kkm_last_timestamp [10:15:41]File name is /storage/kkm_last_timestamp [10:15:41]Write 4 bytes [10:15:41]NVStorageSaveData done [10:15:41]ExternCall_PrintAddStr [10:15:41]wPrintStart [10:15:41]Write to MH i2c: 01 00 00 6B 32 9D [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 07 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 07 00 6B 32 00 00 00 00 00 FF 0F B2 [10:15:41]RasterBufferAndPrint [10:15:41]line Счет N : (1)593931 [10:15:41]line ИНН: 02508201610067 [10:15:41]line Контрольно-Кассовый Чек [10:15:41]line ПРОДАЖА [10:15:41]line ТРК (МРК, ГНК) : 32 [10:15:41]line Товар: 2710124130 [10:15:41]line Аи-92-К-5 [10:15:41]line 11.800 * 67.80 [10:15:41]line = 800.04 [10:15:41]line НДС 12% НСП 1% [10:15:41]line > о реализуемом товаре [10:15:41]line ОКРУГЛЕНИЕ: -0.04 [10:15:41]line ИТОГО: 800.00 [10:15:41]line НСП 1% : 7.08 [10:15:41]line НДС 12% : 84.96 [10:15:41]line Наличными: 0.00 [10:15:41]line Безнал.: 800.00 [10:15:41]line Место: АЗС № 136 "Партнер Нефть" [10:15:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:15:41]line СНО: Общий режим [10:15:41]line Чек 92 21.08.2024 10:15 [10:15:41]line Смена: 454 ФФД: 1.0 [10:15:41]line ЗНМ: 0300000067 [10:15:41]line РНМ: 0000000000092569 [10:15:41]line Версия ККМ: 001 [10:15:41]line Платежная система: O! деньги [10:15:41]line ФМ: 0000000000871776 [10:15:41]line ФД: 140075 [10:15:41]line ФПД: 130104392252999 [10:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101542&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140075&fm=130104392252999&tin=02508201610067®Number=0000000000092569&sum=80000 [10:15:41]OFD Sender: Processing packet 140075 [packets to send 137, broken 136] [10:15:41]ProducePacketName [10:15:41]name=ofd_packets/00140075 [10:15:41]OFD Sender: To server: pG, [10:15:41]CommunicateWithHost lk.salyk.kg:30040 [10:15:41]ConnectInit lk.salyk.kg [10:15:41]written 0, free lines is 4095 [10:15:41]Connected sock=10 [10:15: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 37 36 0F 01 00 00 4A 12 07 01 AC 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 4E BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 23 02 00 35 04 06 00 76 54 4A 15 7E 47 8F A0 DF 9F E0 16 2F 05 [10:15: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 37 36 4F 00 00 00 C7 50 47 00 06 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 37 36 10 04 04 00 2B 23 02 00 F4 03 04 00 DF 64 C5 66 B6 04 01 00 00 29 34 CC 27 52 15 2E 7D [10:15:41]CommunicateWithHost err = 0 [10:15:41]CheckOFDResponse [10:15:41]1017 (14) - 77093643461234 [10:15:41]1041 (16) - 0000000000871776 [10:15:41]1040 (4) - 140075 [10:15:41]1012 (4) - 21.08.2024 03:54 [10:15:41]1206 (1) - 0 [10:15:41]OFD Sender: Remove packet 140075 [10:15:41]ProducePacketName [10:15:41]name=ofd_packets/00140075 [10:15:41]NVStorageDeleteData [10:15:41]Write to MH i2c: 01 00 00 96 32 C8 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 07 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: 01 07 00 96 32 00 00 00 00 00 DF 0C BA [10:15:41]RasterBufferAndPrint [10:15:41]line [10:15:41]line [10:15:41]line [10:15:41]line [10:15:41]line [10:15:41]written 0, free lines is 3301 [10:15:41]MH_Cut [10:15:41]Write to MH i2c: D1 01 00 9D 32 01 A1 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: D1 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: D1 01 00 [10:15:41]MH_I2C_Read... [10:15:41]Read from MH i2c: D1 01 00 9D 32 00 A0 [10:15:41]Write to MH i2c: 01 00 00 9E 32 D0 [10:15:41]Write i2c OK [10:15:41]MH_I2C_Read... [10:15:42]OFD Sender: No OFD packet to send [10:15:42]*** Cut start [10:15:42]*** Partial cut [10:15:42]*** CUTSNS_PIN = 1 [10:15:42]*** CUTSNS_PIN = 0 [10:15:42]*** Brake cut motor [10:15:43]Read from MH i2c: 01 [10:15:43]MH_I2C_Read... [10:15:43]*** Stop cut motor [10:15:43]*** Cut end [10:15:43]Read from MH i2c: 01 07 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: 01 07 00 9E 32 00 00 00 00 00 FF 0F E5 [10:15:43]process_action close_receipt done [10:15:43]requested_data is exist [10:15:43]produce_requested_data [10:15:43]requested_item fm.sn is exist - process it [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 11 00 00 [10:15:43]Write to MH i2c: E2 08 00 9F 32 80 11 00 00 00 00 00 00 4B [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 17 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 17 00 9F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [10:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:15:43]wFMCommunicate OK [10:15:43]requested_item fd.num is exist - process it [10:15:43]SAM_PROTO_GetFieldsCounters [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 13 00 00 [10:15:43]Write to MH i2c: E2 08 00 A0 32 80 13 00 00 00 00 00 00 4E [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 62 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 62 00 A0 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:43]wFMCommunicate OK [10:15:43]SAM_PROTO_GetFieldsCounters done [10:15:43]requested_item shift.num is exist - process it [10:15:43]requested_item shift.opened is exist - process it [10:15:43]req_shift_opened [10:15:43]FM_GetShiftState [10:15:43]SAM_PROTO_GetShiftState [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 13 01 00 [10:15:43]Write to MH i2c: E2 08 00 A1 32 80 13 01 00 00 00 00 00 50 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0E 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0E 00 A1 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D0 [10:15:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:15:43]wFMCommunicate OK [10:15:43]SAM_PROTO_GetShiftState done [10:15:43]FM_GetShiftState done [10:15:43]req_shift_opened done [10:15:43]requested_item shift.open_date is exist - process it [10:15:43]req_shift_open_date [10:15:43]req_shift_open_date done [10:15:43]produce_requested_data done [10:15:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140075,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:15:43]process_action_free close_receipt [10:15:43]json_value_free [10:15:43]json_value_free done [10:15:43]process_json_proto returns [10:15:43]Send response to host [10:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140075,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:15:43]free response buf [10:15:43]execute_script done [10:15:43]execute_script returns [10:15:43]free content buf [10:15:43]Sock 9.Close socket [10:15:43]Sock 9.Thread stoped [10:15:47]OFD Sender: No OFD packet to send [10:15:49]accept exits with 7 [10:15:49]New connection [10:15:49]New thread 3066908004 created [10:15:49]Thread 3066764644 joined [10:15:49]Waiting for new connection... [10:15:49] Sock 7.Parse request [10:15:49]Sock 7.Check first char [10:15:49]Sock 7.First char is OK [10:15:49]request: POST /json_proto HTTP/1.0 [10:15:49]Method: POST [10:15:49]URL: /json_proto [10:15:49]Method is POST - this is cgi request [10:15:49]url: /json_proto [10:15:49]query_string will be loaded in cgi processing [10:15:49]execute_cgi json_proto POST (null) [10:15:49]execute_cgi path=json_proto method=POST [10:15:49]POST find Content-Length [10:15:49]Host: 172.17.45.67:8080 [10:15:49]Content-Length: 678 [10:15:49]Content-Type: application/json [10:15:49] [10:15:49]POST finish read [10:15:49]Found Content-Length = 678 [10:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.870, "sum" : 940.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:49]execute_script... [10:15: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)593930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.870, "sum" : 940.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:49]POST & json_proto [10:15:49]process_json_proto [10:15:49]json parsed OK: [10:15:49]protocol is kg_v1.0 [10:15:49]action value=close_receipt [10:15:49]process_action close_receipt [10:15:49]cmd_close_receipt [10:15:49]MH_GetDate [10:15:49]Write to MH i2c: F0 00 00 A2 32 C3 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 09 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 09 00 A2 32 00 58 BE C5 66 5F 7F 2B 66 7C [10:15:49]GetLastDocTimeStamp 1724235342 [10:15:49]current date 1724235352 [10:15:49]FM_GetShiftState [10:15:49]SAM_PROTO_GetShiftState [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 13 01 00 [10:15:49]Write to MH i2c: E2 08 00 A3 32 80 13 01 00 00 00 00 00 52 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 A3 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D2 [10:15:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_GetShiftState done [10:15:49]FM_GetShiftState done [10:15:49]opened in 1724200467 [10:15:49]opened+sec_in_day 1724286867 [10:15:49]quantity*price = 94038 [10:15:49]sum+1 = 94040 [10:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 940.00 Внесено: 940.00 СДАЧА: 0.00 НСП 1% : 8.32 НДС 12% : 99.86 Наличными: 940.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 93 21.08.2024 10:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140076 ФПД: 15960498706916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140076&fm=15960498706916&tin=02508201610067®Number=0000000000092569&sum=94000 [10:15:50]StoreToDocumentArchive [10:15:50]shift 454 fd 140076 [10:15:50]save to /storage/0454/doc_00140076 [10:15:50]save last doc name /storage/0454/doc_00140076 to /storage/kkm_last_doc_name [10:15:50]save OK [10:15:50]Clear old archive folders... [10:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:50]tlvbuf is 00A34150 [10:15:50]SAM_PROTO_ClearQueue [10:15:50]wFMCommunicate request_size=4 [10:15:50]MH_SAM_APDU [10:15:50]CAPDU: 80 09 00 00 [10:15:50]Write to MH i2c: E2 08 00 B0 32 80 09 00 00 00 00 00 00 54 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 B0 32 00 90 00 56 [10:15:50]RAPDU: 90 00 [10:15:50]wFMCommunicate OK [10:15:50]SAM_PROTO_ClearQueue done [10:15:50]KKMCreateOFDPacket [10:15:50]OFDProtocolAddRootSTLVToBuf [10:15:50]FM_MakeSignedData [10:15:50]FM_MakeSignedData [10:15:50]SAM_PROTO_SignData [10:15:50]wFMCommunicate request_size=4 [10:15:50]MH_SAM_APDU [10:15:50]CAPDU: 80 0D 01 02 [10:15:50]Write to MH i2c: E2 08 00 B1 32 80 0D 01 02 00 00 00 00 5C [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 B1 32 00 90 00 57 [10:15:50]RAPDU: 90 00 [10:15:50]wFMCommunicate OK [10:15:50]wFMCommunicate request_size=255 [10:15:50]MH_SAM_APDU [10:15: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 2E 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 23 02 00 35 04 06 00 0E [10:15:50]Write to MH i2c: E2 02 01 B2 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 23 02 00 35 04 06 00 0E 00 00 A1 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 B2 32 00 90 00 58 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=10 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 02 02 05 84 17 DB 19 E4 [10:15:51]Write to MH i2c: E2 0D 00 B3 32 80 0D 02 02 05 00 84 17 DB 19 E4 00 00 DC [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 B3 32 00 90 00 59 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 03 02 [10:15:51]Write to MH i2c: E2 08 00 B4 32 80 0D 03 02 00 00 00 00 61 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 B4 32 00 33 58 4D 1A 32 AA 34 CA 90 00 2E [10:15:51]RAPDU: 33 58 4D 1A 32 AA 34 CA 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_SignData done [10:15:51]FM_MakeSignedData done [10:15:51]CreateOFDProtocolMessage [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 11 00 00 [10:15:51]Write to MH i2c: E2 08 00 B5 32 80 11 00 00 00 00 00 00 61 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 B5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B8 [10:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:15:51]wFMCommunicate OK [10:15:51]CreateOFDProtocolMessage done [10:15:51]OFDSenderStorePacket 140076 [10:15:51]StoreOFDPacket docnum=140076 [10:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 65 64 07 01 F7 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 2E 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 23 02 00 35 04 06 00 0E 84 17 DB 19 E4 33 58 4D 1A 32 AA 34 CA [10:15:51]CheckFolder [10:15:51]dirname=/storage/ofd_packets [10:15:51]CheckFolder done [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00140076 [10:15:51]NVStorageSaveData ofd_packets/00140076 [10:15:51]File name is /storage/ofd_packets/00140076 [10:15:51]Write 301 bytes [10:15:51]NVStorageSaveData done [10:15:51]OFDSenderStorePacket done [10:15:51]KKMCreateOFDPacket done [10:15:51]NVStorageSaveData kkm_last_timestamp [10:15:51]File name is /storage/kkm_last_timestamp [10:15:51]Write 4 bytes [10:15:51]NVStorageSaveData done [10:15:51]ExternCall_PrintAddStr [10:15:51]wPrintStart [10:15:51]Write to MH i2c: 01 00 00 B6 32 E8 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 B6 32 00 00 00 00 00 FF 0F FD [10:15:51]RasterBufferAndPrint [10:15:51]line Счет N : (1)593930 [10:15:51]line ИНН: 02508201610067 [10:15:51]line Контрольно-Кассовый Чек [10:15:51]line ПРОДАЖА [10:15:51]line ТРК (МРК, ГНК) : 52 [10:15:51]line Товар: 2710124130 [10:15:51]line Аи-92-К-5 [10:15:51]line 13.870 * 67.80 [10:15:51]line = 940.39 [10:15:51]line НДС 12% НСП 1% [10:15:51]line > о реализуемом товаре [10:15:51]line ОКРУГЛЕНИЕ: -0.39 [10:15:51]line ИТОГО: 940.00 [10:15:51]line Внесено: 940.00 [10:15:51]line СДАЧА: 0.00 [10:15:51]line НСП 1% : 8.32 [10:15:51]line НДС 12% : 99.86 [10:15:51]line Наличными: 940.00 [10:15:51]line Безнал.: 0.00 [10:15:51]line Место: АЗС № 136 "Партнер Нефть" [10:15:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:15:51]line СНО: Общий режим [10:15:51]line Чек 93 21.08.2024 10:15 [10:15:51]line Смена: 454 ФФД: 1.0 [10:15:51]line ЗНМ: 0300000067 [10:15:51]line РНМ: 0000000000092569 [10:15:51]line Версия ККМ: 001 [10:15:51]line ФМ: 0000000000871776 [10:15:51]line ФД: 140076 [10:15:51]line ФПД: 15960498706916 [10:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140076&fm=15960498706916&tin=02508201610067®Number=0000000000092569&sum=94000 [10:15:51]written 0, free lines is 4095 [10:15:51]OFD Sender: Processing packet 140076 [packets to send 137, broken 136] [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00140076 [10:15:51]OFD Sender: To server: pG, [10:15:51]CommunicateWithHost lk.salyk.kg:30040 [10:15:51]ConnectInit lk.salyk.kg [10:15:51]Connected sock=10 [10:15: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 37 36 0F 01 00 00 65 64 07 01 F7 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 2E 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 57 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 58 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 23 02 00 35 04 06 00 0E 84 17 DB 19 E4 33 58 4D 1A 32 AA 34 CA [10:15: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 37 36 4F 00 00 00 61 5F 47 00 44 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 37 36 10 04 04 00 2C 23 02 00 F4 03 04 00 E9 64 C5 66 B6 04 01 00 00 68 51 C8 8D E9 B7 FD A3 [10:15:51]CommunicateWithHost err = 0 [10:15:51]CheckOFDResponse [10:15:51]1017 (14) - 77093643461234 [10:15:51]1041 (16) - 0000000000871776 [10:15:51]1040 (4) - 140076 [10:15:51]1012 (4) - 21.08.2024 03:54 [10:15:51]1206 (1) - 0 [10:15:51]OFD Sender: Remove packet 140076 [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00140076 [10:15:51]NVStorageDeleteData [10:15:51]Write to MH i2c: 01 00 00 E1 32 13 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 E1 32 00 00 00 00 00 05 0D 2C [10:15:51]RasterBufferAndPrint [10:15:51]line [10:15:51]line [10:15:51]line [10:15:51]line [10:15:51]line [10:15:51]written 0, free lines is 3343 [10:15:51]MH_Cut [10:15:51]Write to MH i2c: D1 01 00 E8 32 01 EC [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: D1 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: D1 01 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: D1 01 00 E8 32 00 EB [10:15:51]Write to MH i2c: 01 00 00 E9 32 1B [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:52]OFD Sender: No OFD packet to send [10:15:52]*** Cut start [10:15:52]*** Partial cut [10:15:52]*** CUTSNS_PIN = 1 [10:15:52]*** CUTSNS_PIN = 0 [10:15:52]*** Brake cut motor [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]*** Stop cut motor [10:15:53]*** Cut end [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [10:15:53]process_action close_receipt done [10:15:53]requested_data is exist [10:15:53]produce_requested_data [10:15:53]requested_item fm.sn is exist - process it [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 11 00 00 [10:15:53]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [10:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:15:53]wFMCommunicate OK [10:15:53]requested_item fd.num is exist - process it [10:15:53]SAM_PROTO_GetFieldsCounters [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 13 00 00 [10:15:53]Write to MH i2c: E2 08 00 EB 32 80 13 00 00 00 00 00 00 99 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 62 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 62 00 EB 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_GetFieldsCounters done [10:15:53]requested_item shift.num is exist - process it [10:15:53]requested_item shift.opened is exist - process it [10:15:53]req_shift_opened [10:15:53]FM_GetShiftState [10:15:53]SAM_PROTO_GetShiftState [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 13 01 00 [10:15:53]Write to MH i2c: E2 08 00 EC 32 80 13 01 00 00 00 00 00 9B [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0E 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0E 00 EC 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1B [10:15:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_GetShiftState done [10:15:53]FM_GetShiftState done [10:15:53]req_shift_opened done [10:15:53]requested_item shift.open_date is exist - process it [10:15:53]req_shift_open_date [10:15:53]req_shift_open_date done [10:15:53]produce_requested_data done [10:15:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140076,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:15:53]process_action_free close_receipt [10:15:53]json_value_free [10:15:53]json_value_free done [10:15:53]process_json_proto returns [10:15:53]Send response to host [10:15:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140076,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:15:53]free response buf [10:15:53]execute_script done [10:15:53]execute_script returns [10:15:53]free content buf [10:15:53]Sock 7.Close socket [10:15:53]Sock 7.Thread stoped [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:12]accept exits with 9 [10:16:12]New connection [10:16:12]New thread 3066764644 created [10:16:12]Thread 3066908004 joined [10:16:12]Waiting for new connection... [10:16:12] Sock 9.Parse request [10:16:12]Sock 9.Check first char [10:16:12]Sock 9.First char is OK [10:16:12]request: POST /json_proto HTTP/1.0 [10:16:12]Method: POST [10:16:12]URL: /json_proto [10:16:12]Method is POST - this is cgi request [10:16:12]url: /json_proto [10:16:12]query_string will be loaded in cgi processing [10:16:12]execute_cgi json_proto POST (null) [10:16:12]execute_cgi path=json_proto method=POST [10:16:12]POST find Content-Length [10:16:12]Host: 172.17.45.67:8080 [10:16:12]Content-Length: 838 [10:16:12]Content-Type: application/json [10:16:12] [10:16:12]POST finish read [10:16:12]Found Content-Length = 838 [10:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:12]execute_script... [10:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:12]POST & json_proto [10:16:12]process_json_proto [10:16:12]json parsed OK: [10:16:12]protocol is kg_v1.0 [10:16:12]action value=close_receipt [10:16:12]process_action close_receipt [10:16:12]cmd_close_receipt [10:16:12]MH_GetDate [10:16:12]Write to MH i2c: F0 00 00 ED 32 0E [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: F0 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: F0 09 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: F0 09 00 ED 32 00 6F BE C5 66 5F 7F 2B 66 DE [10:16:12]GetLastDocTimeStamp 1724235352 [10:16:12]current date 1724235375 [10:16:12]FM_GetShiftState [10:16:12]SAM_PROTO_GetShiftState [10:16:12]wFMCommunicate request_size=4 [10:16:12]MH_SAM_APDU [10:16:12]CAPDU: 80 13 01 00 [10:16:12]Write to MH i2c: E2 08 00 EE 32 80 13 01 00 00 00 00 00 9D [10:16:12]Write i2c OK [10:16:12]MH_I2C_Read... [10:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:12]Read from MH i2c: E2 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 0E 00 [10:16:12]MH_I2C_Read... [10:16:12]Read from MH i2c: E2 0E 00 EE 32 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1D [10:16:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:16:12]wFMCommunicate OK [10:16:12]SAM_PROTO_GetShiftState done [10:16:12]FM_GetShiftState done [10:16:12]opened in 1724200467 [10:16:12]opened+sec_in_day 1724286867 [10:16:12]quantity*price = 100021 [10:16:12]sum+1 = 100023 [10:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 94 21.08.2024 10:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140077 ФПД: 77926146116021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140077&fm=77926146116021&tin=02508201610067®Number=0000000000092569&sum=100000 [10:16:13]StoreToDocumentArchive [10:16:13]shift 454 fd 140077 [10:16:13]save to /storage/0454/doc_00140077 [10:16:13]save last doc name /storage/0454/doc_00140077 to /storage/kkm_last_doc_name [10:16:13]save OK [10:16:13]Clear old archive folders... [10:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:13]tlvbuf is 00AFA540 [10:16:13]SAM_PROTO_ClearQueue [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 09 00 00 [10:16:13]Write to MH i2c: E2 08 00 FB 32 80 09 00 00 00 00 00 00 9F [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [10:16:13]RAPDU: 90 00 [10:16:13]wFMCommunicate OK [10:16:13]SAM_PROTO_ClearQueue done [10:16:13]KKMCreateOFDPacket [10:16:13]OFDProtocolAddRootSTLVToBuf [10:16:13]FM_MakeSignedData [10:16:13]FM_MakeSignedData [10:16:13]SAM_PROTO_SignData [10:16:13]wFMCommunicate request_size=4 [10:16:13]MH_SAM_APDU [10:16:13]CAPDU: 80 0D 01 02 [10:16:13]Write to MH i2c: E2 08 00 FC 32 80 0D 01 02 00 00 00 00 A7 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:13]Read from MH i2c: E2 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 [10:16:13]MH_I2C_Read... [10:16:13]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [10:16:13]RAPDU: 90 00 [10:16:13]wFMCommunicate OK [10:16:13]wFMCommunicate request_size=255 [10:16:13]MH_SAM_APDU [10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6F BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 23 02 00 35 04 06 00 46 [10:16:13]Write to MH i2c: E2 02 01 FD 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6F BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 23 02 00 35 04 06 00 46 00 00 72 [10:16:13]Write i2c OK [10:16:13]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 03 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 03 00 FD 32 00 90 00 A3 [10:16:14]RAPDU: 90 00 [10:16:14]wFMCommunicate OK [10:16:14]wFMCommunicate request_size=10 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 0D 02 02 05 DF 98 42 09 B5 [10:16:14]Write to MH i2c: E2 0D 00 FE 32 80 0D 02 02 05 00 DF 98 42 09 B5 00 00 2B [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 03 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 03 00 FE 32 00 90 00 A4 [10:16:14]RAPDU: 90 00 [10:16:14]wFMCommunicate OK [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 0D 03 02 [10:16:14]Write to MH i2c: E2 08 00 FF 32 80 0D 03 02 00 00 00 00 AC [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0B 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 0B 00 FF 32 00 83 C5 4E 01 C9 F2 FF 4D 90 00 4B [10:16:14]RAPDU: 83 C5 4E 01 C9 F2 FF 4D 90 00 [10:16:14]wFMCommunicate OK [10:16:14]SAM_PROTO_SignData done [10:16:14]FM_MakeSignedData done [10:16:14]CreateOFDProtocolMessage [10:16:14]wFMCommunicate request_size=4 [10:16:14]MH_SAM_APDU [10:16:14]CAPDU: 80 11 00 00 [10:16:14]Write to MH i2c: E2 08 00 00 33 80 11 00 00 00 00 00 00 AD [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:14]Read from MH i2c: E2 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 17 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: E2 17 00 00 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [10:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:16:14]wFMCommunicate OK [10:16:14]CreateOFDProtocolMessage done [10:16:14]OFDSenderStorePacket 140077 [10:16:14]StoreOFDPacket docnum=140077 [10:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 96 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6F BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 23 02 00 35 04 06 00 46 DF 98 42 09 B5 83 C5 4E 01 C9 F2 FF 4D [10:16:14]CheckFolder [10:16:14]dirname=/storage/ofd_packets [10:16:14]CheckFolder done [10:16:14]ProducePacketName [10:16:14]name=ofd_packets/00140077 [10:16:14]NVStorageSaveData ofd_packets/00140077 [10:16:14]File name is /storage/ofd_packets/00140077 [10:16:14]Write 301 bytes [10:16:14]NVStorageSaveData done [10:16:14]OFDSenderStorePacket done [10:16:14]KKMCreateOFDPacket done [10:16:14]NVStorageSaveData kkm_last_timestamp [10:16:14]File name is /storage/kkm_last_timestamp [10:16:14]Write 4 bytes [10:16:14]NVStorageSaveData done [10:16:14]ExternCall_PrintAddStr [10:16:14]wPrintStart [10:16:14]Write to MH i2c: 01 00 00 01 33 34 [10:16:14]Write i2c OK [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 07 00 [10:16:14]MH_I2C_Read... [10:16:14]Read from MH i2c: 01 07 00 01 33 00 00 00 00 00 FF 0F 49 [10:16:14]RasterBufferAndPrint [10:16:14]line Счет N : (1)593929 [10:16:14]line ИНН: 02508201610067 [10:16:14]line Контрольно-Кассовый Чек [10:16:14]line ПРОДАЖА [10:16:14]line ТРК (МРК, ГНК) : 41 [10:16:14]line Товар: 2710124500 [10:16:14]line Аи-95-К-5 [10:16:14]line 13.480 * 74.20 [10:16:14]line = 1000.22 [10:16:14]line НДС 12% НСП 1% [10:16:14]line > о реализуемом товаре [10:16:14]line ОКРУГЛЕНИЕ: -0.22 [10:16:14]line ИТОГО: 1000.00 [10:16:14]line НСП 1% : 8.85 [10:16:14]line НДС 12% : 106.22 [10:16:14]line Наличными: 0.00 [10:16:14]line Безнал.: 1000.00 [10:16:14]line Место: АЗС № 136 "Партнер Нефть" [10:16:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:16:14]line СНО: Общий режим [10:16:14]line Чек 94 21.08.2024 10:16 [10:16:14]line Смена: 454 ФФД: 1.0 [10:16:14]line ЗНМ: 0300000067 [10:16:14]line РНМ: 0000000000092569 [10:16:14]line Версия ККМ: 001 [10:16:14]line Платежная система: Бакай Банк [10:16:14]line ФМ: 0000000000871776 [10:16:14]line ФД: 140077 [10:16:14]line ФПД: 77926146116021 [10:16:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101615&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140077&fm=77926146116021&tin=02508201610067®Number=0000000000092569&sum=100000 [10:16:14]OFD Sender: Processing packet 140077 [packets to send 137, broken 136] [10:16:14]ProducePacketName [10:16:14]name=ofd_packets/00140077 [10:16:14]OFD Sender: To server: pG, [10:16:14]CommunicateWithHost lk.salyk.kg:30040 [10:16:14]ConnectInit lk.salyk.kg [10:16:14]written 0, free lines is 4095 [10:16:14]Connected sock=10 [10:16: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 37 36 0F 01 00 00 96 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6F BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 23 02 00 35 04 06 00 46 DF 98 42 09 B5 83 C5 4E 01 C9 F2 FF 4D [10:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 17 6D 47 00 AE 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 37 36 10 04 04 00 2D 23 02 00 F4 03 04 00 00 65 C5 66 B6 04 01 00 00 38 FE 1F EF 8D 97 24 D0 [10:16:15]CommunicateWithHost err = 0 [10:16:15]CheckOFDResponse [10:16:15]1017 (14) - 77093643461234 [10:16:15]1041 (16) - 0000000000871776 [10:16:15]1040 (4) - 140077 [10:16:15]1012 (4) - 21.08.2024 03:54 [10:16:15]1206 (1) - 0 [10:16:15]OFD Sender: Remove packet 140077 [10:16:15]ProducePacketName [10:16:15]name=ofd_packets/00140077 [10:16:15]NVStorageDeleteData [10:16:15]Write to MH i2c: 01 00 00 2C 33 5F [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: 01 07 00 2C 33 00 00 00 00 00 D7 0C 49 [10:16:15]RasterBufferAndPrint [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]line [10:16:15]written 0, free lines is 3294 [10:16:15]MH_Cut [10:16:15]Write to MH i2c: D1 01 00 33 33 01 38 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 01 00 [10:16:15]MH_I2C_Read... [10:16:15]Read from MH i2c: D1 01 00 33 33 00 37 [10:16:15]Write to MH i2c: 01 00 00 34 33 67 [10:16:15]Write i2c OK [10:16:15]MH_I2C_Read... [10:16:15]OFD Sender: No OFD packet to send [10:16:15]*** Cut start [10:16:15]*** Partial cut [10:16:15]*** CUTSNS_PIN = 1 [10:16:15]*** CUTSNS_PIN = 0 [10:16:16]*** Brake cut motor [10:16:16]Read from MH i2c: 01 [10:16:16]MH_I2C_Read... [10:16:16]*** Stop cut motor [10:16:16]*** Cut end [10:16:16]Read from MH i2c: 01 07 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: 01 07 00 34 33 00 00 00 00 00 FF 0F 7C [10:16:16]process_action close_receipt done [10:16:16]requested_data is exist [10:16:16]produce_requested_data [10:16:16]requested_item fm.sn is exist - process it [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 11 00 00 [10:16:16]Write to MH i2c: E2 08 00 35 33 80 11 00 00 00 00 00 00 E2 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 17 00 35 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [10:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:16:16]wFMCommunicate OK [10:16:16]requested_item fd.num is exist - process it [10:16:16]SAM_PROTO_GetFieldsCounters [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 13 00 00 [10:16:16]Write to MH i2c: E2 08 00 36 33 80 13 00 00 00 00 00 00 E5 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 62 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 62 00 36 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_GetFieldsCounters done [10:16:16]requested_item shift.num is exist - process it [10:16:16]requested_item shift.opened is exist - process it [10:16:16]req_shift_opened [10:16:16]FM_GetShiftState [10:16:16]SAM_PROTO_GetShiftState [10:16:16]wFMCommunicate request_size=4 [10:16:16]MH_SAM_APDU [10:16:16]CAPDU: 80 13 01 00 [10:16:16]Write to MH i2c: E2 08 00 37 33 80 13 01 00 00 00 00 00 E7 [10:16:16]Write i2c OK [10:16:16]MH_I2C_Read... [10:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:16]Read from MH i2c: E2 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0E 00 [10:16:16]MH_I2C_Read... [10:16:16]Read from MH i2c: E2 0E 00 37 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 67 [10:16:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:16:16]wFMCommunicate OK [10:16:16]SAM_PROTO_GetShiftState done [10:16:16]FM_GetShiftState done [10:16:16]req_shift_opened done [10:16:16]requested_item shift.open_date is exist - process it [10:16:16]req_shift_open_date [10:16:16]req_shift_open_date done [10:16:16]produce_requested_data done [10:16:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140077,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:16:16]process_action_free close_receipt [10:16:16]json_value_free [10:16:16]json_value_free done [10:16:16]process_json_proto returns [10:16:16]Send response to host [10:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140077,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:16:16]free response buf [10:16:16]execute_script done [10:16:16]execute_script returns [10:16:16]free content buf [10:16:16]Sock 9.Close socket [10:16:16]Sock 9.Thread stoped [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:12]accept exits with 7 [10:18:12]New connection [10:18:12]New thread 3066908004 created [10:18:12]Thread 3066764644 joined [10:18:12]Waiting for new connection... [10:18:12] Sock 7.Parse request [10:18:12]Sock 7.Check first char [10:18:12]Sock 7.First char is OK [10:18:12]request: POST /json_proto HTTP/1.0 [10:18:12]Method: POST [10:18:12]URL: /json_proto [10:18:12]Method is POST - this is cgi request [10:18:12]url: /json_proto [10:18:12]query_string will be loaded in cgi processing [10:18:12]execute_cgi json_proto POST (null) [10:18:12]execute_cgi path=json_proto method=POST [10:18:12]POST find Content-Length [10:18:12]Host: 172.17.45.67:8080 [10:18:12]Content-Length: 677 [10:18:12]Content-Type: application/json [10:18:12] [10:18:12]POST finish read [10:18:12]Found Content-Length = 677 [10:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:12]execute_script... [10:18: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)593933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:12]POST & json_proto [10:18:12]process_json_proto [10:18:12]json parsed OK: [10:18:12]protocol is kg_v1.0 [10:18:12]action value=close_receipt [10:18:12]process_action close_receipt [10:18:12]cmd_close_receipt [10:18:12]MH_GetDate [10:18:12]Write to MH i2c: F0 00 00 38 33 5A [10:18:12]Write i2c OK [10:18:12]MH_I2C_Read... [10:18:12]Read from MH i2c: F0 [10:18:12]MH_I2C_Read... [10:18:12]Read from MH i2c: F0 09 00 [10:18:12]MH_I2C_Read... [10:18:12]Read from MH i2c: F0 09 00 38 33 00 E8 BE C5 66 5F 7F 2B 66 A3 [10:18:12]GetLastDocTimeStamp 1724235375 [10:18:12]current date 1724235496 [10:18:12]FM_GetShiftState [10:18:12]SAM_PROTO_GetShiftState [10:18:12]wFMCommunicate request_size=4 [10:18:12]MH_SAM_APDU [10:18:12]CAPDU: 80 13 01 00 [10:18:12]Write to MH i2c: E2 08 00 39 33 80 13 01 00 00 00 00 00 E9 [10:18:12]Write i2c OK [10:18:12]MH_I2C_Read... [10:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:12]Read from MH i2c: E2 [10:18:12]MH_I2C_Read... [10:18:12]Read from MH i2c: E2 0E 00 [10:18:12]MH_I2C_Read... [10:18:12]Read from MH i2c: E2 0E 00 39 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 69 [10:18:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:18:12]wFMCommunicate OK [10:18:12]SAM_PROTO_GetShiftState done [10:18:12]FM_GetShiftState done [10:18:12]opened in 1724200467 [10:18:12]opened+sec_in_day 1724286867 [10:18:12]quantity*price = 50036 [10:18:12]sum+1 = 50037 [10:18:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 95 21.08.2024 10:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140078 ФПД: 114203062718221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101816&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140078&fm=114203062718221&tin=02508201610067®Number=0000000000092569&sum=50000 [10:18:14]StoreToDocumentArchive [10:18:14]shift 454 fd 140078 [10:18:14]save to /storage/0454/doc_00140078 [10:18:14]save last doc name /storage/0454/doc_00140078 to /storage/kkm_last_doc_name [10:18:14]save OK [10:18:14]Clear old archive folders... [10:18:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:14]tlvbuf is B6ECF900 [10:18:14]SAM_PROTO_ClearQueue [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 09 00 00 [10:18:14]Write to MH i2c: E2 08 00 46 33 80 09 00 00 00 00 00 00 EB [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 46 33 00 90 00 ED [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_ClearQueue done [10:18:14]KKMCreateOFDPacket [10:18:14]OFDProtocolAddRootSTLVToBuf [10:18:14]FM_MakeSignedData [10:18:14]FM_MakeSignedData [10:18:14]SAM_PROTO_SignData [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 01 02 [10:18:14]Write to MH i2c: E2 08 00 47 33 80 0D 01 02 00 00 00 00 F3 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=255 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E8 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 23 02 00 35 04 06 00 67 [10:18:14]Write to MH i2c: E2 02 01 48 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E8 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 23 02 00 35 04 06 00 67 00 00 2D [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=10 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 02 02 05 DD F8 FC 4F 0D [10:18:14]Write to MH i2c: E2 0D 00 49 33 80 0D 02 02 05 00 DD F8 FC 4F 0D 00 00 2D [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 03 00 49 33 00 90 00 F0 [10:18:14]RAPDU: 90 00 [10:18:14]wFMCommunicate OK [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 0D 03 02 [10:18:14]Write to MH i2c: E2 08 00 4A 33 80 0D 03 02 00 00 00 00 F8 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 0B 00 4A 33 00 94 6D 13 84 8F 16 D4 AB 90 00 B5 [10:18:14]RAPDU: 94 6D 13 84 8F 16 D4 AB 90 00 [10:18:14]wFMCommunicate OK [10:18:14]SAM_PROTO_SignData done [10:18:14]FM_MakeSignedData done [10:18:14]CreateOFDProtocolMessage [10:18:14]wFMCommunicate request_size=4 [10:18:14]MH_SAM_APDU [10:18:14]CAPDU: 80 11 00 00 [10:18:14]Write to MH i2c: E2 08 00 4B 33 80 11 00 00 00 00 00 00 F8 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:14]Read from MH i2c: E2 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: E2 17 00 4B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [10:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:14]wFMCommunicate OK [10:18:14]CreateOFDProtocolMessage done [10:18:14]OFDSenderStorePacket 140078 [10:18:14]StoreOFDPacket docnum=140078 [10:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 1C 07 01 0F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E8 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 23 02 00 35 04 06 00 67 DD F8 FC 4F 0D 94 6D 13 84 8F 16 D4 AB [10:18:14]CheckFolder [10:18:14]dirname=/storage/ofd_packets [10:18:14]CheckFolder done [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00140078 [10:18:14]NVStorageSaveData ofd_packets/00140078 [10:18:14]File name is /storage/ofd_packets/00140078 [10:18:14]Write 301 bytes [10:18:14]NVStorageSaveData done [10:18:14]OFDSenderStorePacket done [10:18:14]KKMCreateOFDPacket done [10:18:14]NVStorageSaveData kkm_last_timestamp [10:18:14]File name is /storage/kkm_last_timestamp [10:18:14]Write 4 bytes [10:18:14]NVStorageSaveData done [10:18:14]ExternCall_PrintAddStr [10:18:14]wPrintStart [10:18:14]Write to MH i2c: 01 00 00 4C 33 7F [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 FF 0F 94 [10:18:14]RasterBufferAndPrint [10:18:14]line Счет N : (1)593933 [10:18:14]line ИНН: 02508201610067 [10:18:14]line Контрольно-Кассовый Чек [10:18:14]line ПРОДАЖА [10:18:14]line ТРК (МРК, ГНК) : 52 [10:18:14]line Товар: 2710124130 [10:18:14]line Аи-92-К-5 [10:18:14]line 7.380 * 67.80 [10:18:14]line = 500.36 [10:18:14]line НДС 12% НСП 1% [10:18:14]line > о реализуемом товаре [10:18:14]line ОКРУГЛЕНИЕ: -0.36 [10:18:14]line ИТОГО: 500.00 [10:18:14]line Внесено: 500.00 [10:18:14]line СДАЧА: 0.00 [10:18:14]line НСП 1% : 4.43 [10:18:14]line НДС 12% : 53.14 [10:18:14]line Наличными: 500.00 [10:18:14]line Безнал.: 0.00 [10:18:14]line Место: АЗС № 136 "Партнер Нефть" [10:18:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:18:14]line СНО: Общий режим [10:18:14]line Чек 95 21.08.2024 10:18 [10:18:14]line Смена: 454 ФФД: 1.0 [10:18:14]line ЗНМ: 0300000067 [10:18:14]line РНМ: 0000000000092569 [10:18:14]line Версия ККМ: 001 [10:18:14]line ФМ: 0000000000871776 [10:18:14]line ФД: 140078 [10:18:14]line ФПД: 114203062718221 [10:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101816&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140078&fm=114203062718221&tin=02508201610067®Number=0000000000092569&sum=50000 [10:18:14]OFD Sender: Processing packet 140078 [packets to send 137, broken 136] [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00140078 [10:18:14]OFD Sender: To server: pG, [10:18:14]CommunicateWithHost lk.salyk.kg:30040 [10:18:14]ConnectInit lk.salyk.kg [10:18:14]written 0, free lines is 4095 [10:18:15]Connected sock=10 [10:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 1C 07 01 0F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 E8 BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 23 02 00 35 04 06 00 67 DD F8 FC 4F 0D 94 6D 13 84 8F 16 D4 AB [10:18: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 37 36 4F 00 00 00 5E B1 47 00 0E 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 37 36 10 04 04 00 2E 23 02 00 F4 03 04 00 79 65 C5 66 B6 04 01 00 00 8B 6A 17 98 07 CD C2 00 [10:18:15]CommunicateWithHost err = 0 [10:18:15]CheckOFDResponse [10:18:15]1017 (14) - 77093643461234 [10:18:15]1041 (16) - 0000000000871776 [10:18:15]1040 (4) - 140078 [10:18:15]1012 (4) - 21.08.2024 03:56 [10:18:15]1206 (1) - 0 [10:18:15]OFD Sender: Remove packet 140078 [10:18:15]ProducePacketName [10:18:15]name=ofd_packets/00140078 [10:18:15]NVStorageDeleteData [10:18:15]Write to MH i2c: 01 00 00 77 33 AA [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 77 33 00 00 00 00 00 CD 0C 8A [10:18:15]RasterBufferAndPrint [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]line [10:18:15]written 0, free lines is 3284 [10:18:15]MH_Cut [10:18:15]Write to MH i2c: D1 01 00 7E 33 01 83 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: D1 01 00 7E 33 00 82 [10:18:15]Write to MH i2c: 01 00 00 7F 33 B2 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]OFD Sender: No OFD packet to send [10:18:16]*** Cut start [10:18:16]*** Partial cut [10:18:16]*** CUTSNS_PIN = 1 [10:18:16]*** CUTSNS_PIN = 0 [10:18:16]*** Brake cut motor [10:18:16]Read from MH i2c: 01 [10:18:16]MH_I2C_Read... [10:18:16]*** Stop cut motor [10:18:16]*** Cut end [10:18:16]Read from MH i2c: 01 07 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: 01 07 00 7F 33 00 00 00 00 00 FF 0F C7 [10:18:16]process_action close_receipt done [10:18:16]requested_data is exist [10:18:16]produce_requested_data [10:18:16]requested_item fm.sn is exist - process it [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 11 00 00 [10:18:16]Write to MH i2c: E2 08 00 80 33 80 11 00 00 00 00 00 00 2D [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 17 00 80 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [10:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:16]wFMCommunicate OK [10:18:16]requested_item fd.num is exist - process it [10:18:16]SAM_PROTO_GetFieldsCounters [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 13 00 00 [10:18:16]Write to MH i2c: E2 08 00 81 33 80 13 00 00 00 00 00 00 30 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 62 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 62 00 81 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [10:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_GetFieldsCounters done [10:18:16]requested_item shift.num is exist - process it [10:18:16]requested_item shift.opened is exist - process it [10:18:16]req_shift_opened [10:18:16]FM_GetShiftState [10:18:16]SAM_PROTO_GetShiftState [10:18:16]wFMCommunicate request_size=4 [10:18:16]MH_SAM_APDU [10:18:16]CAPDU: 80 13 01 00 [10:18:16]Write to MH i2c: E2 08 00 82 33 80 13 01 00 00 00 00 00 32 [10:18:16]Write i2c OK [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:16]Read from MH i2c: E2 0E 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0E 00 82 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [10:18:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_GetShiftState done [10:18:16]FM_GetShiftState done [10:18:16]req_shift_opened done [10:18:16]requested_item shift.open_date is exist - process it [10:18:16]req_shift_open_date [10:18:16]req_shift_open_date done [10:18:16]produce_requested_data done [10:18:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140078,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:18:16]process_action_free close_receipt [10:18:16]json_value_free [10:18:16]json_value_free done [10:18:16]process_json_proto returns [10:18:16]Send response to host [10:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140078,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:18:16]free response buf [10:18:16]execute_script done [10:18:16]execute_script returns [10:18:16]free content buf [10:18:16]Sock 7.Close socket [10:18:16]Sock 7.Thread stoped [10:18:17]accept exits with 9 [10:18:17]New connection [10:18:17]New thread 3066764644 created [10:18:17]Thread 3066908004 joined [10:18:17]Waiting for new connection... [10:18:17] Sock 9.Parse request [10:18:17]Sock 9.Check first char [10:18:17]Sock 9.First char is OK [10:18:17]request: POST /json_proto HTTP/1.0 [10:18:17]Method: POST [10:18:17]URL: /json_proto [10:18:17]Method is POST - this is cgi request [10:18:17]url: /json_proto [10:18:17]query_string will be loaded in cgi processing [10:18:17]execute_cgi json_proto POST (null) [10:18:17]execute_cgi path=json_proto method=POST [10:18:17]POST find Content-Length [10:18:17]Host: 172.17.45.67:8080 [10:18:17]Content-Length: 677 [10:18:17]Content-Type: application/json [10:18:17] [10:18:17]POST finish read [10:18:17]Found Content-Length = 677 [10:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:17]execute_script... [10: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)593932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:17]POST & json_proto [10:18:17]process_json_proto [10:18:17]json parsed OK: [10:18:17]protocol is kg_v1.0 [10:18:17]action value=close_receipt [10:18:17]process_action close_receipt [10:18:17]cmd_close_receipt [10:18:17]MH_GetDate [10:18:17]Write to MH i2c: F0 00 00 83 33 A5 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: F0 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: F0 09 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: F0 09 00 83 33 00 EC BE C5 66 5F 7F 2B 66 F2 [10:18:17]GetLastDocTimeStamp 1724235496 [10:18:17]current date 1724235500 [10:18:17]FM_GetShiftState [10:18:17]SAM_PROTO_GetShiftState [10:18:17]wFMCommunicate request_size=4 [10:18:17]MH_SAM_APDU [10:18:17]CAPDU: 80 13 01 00 [10:18:17]Write to MH i2c: E2 08 00 84 33 80 13 01 00 00 00 00 00 34 [10:18:17]Write i2c OK [10:18:17]MH_I2C_Read... [10:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:17]Read from MH i2c: E2 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0E 00 [10:18:17]MH_I2C_Read... [10:18:17]Read from MH i2c: E2 0E 00 84 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B4 [10:18:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:18:17]wFMCommunicate OK [10:18:17]SAM_PROTO_GetShiftState done [10:18:17]FM_GetShiftState done [10:18:17]opened in 1724200467 [10:18:17]opened+sec_in_day 1724286867 [10:18:17]quantity*price = 40002 [10:18:17]sum+1 = 40003 [10:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 96 21.08.2024 10:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140079 ФПД: 90106286176892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101820&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140079&fm=90106286176892&tin=02508201610067®Number=0000000000092569&sum=40000 [10:18:18]StoreToDocumentArchive [10:18:18]shift 454 fd 140079 [10:18:18]save to /storage/0454/doc_00140079 [10:18:18]save last doc name /storage/0454/doc_00140079 to /storage/kkm_last_doc_name [10:18:18]save OK [10:18:18]Clear old archive folders... [10:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:18]tlvbuf is 00A79B10 [10:18:18]SAM_PROTO_ClearQueue [10:18:18]wFMCommunicate request_size=4 [10:18:18]MH_SAM_APDU [10:18:18]CAPDU: 80 09 00 00 [10:18:18]Write to MH i2c: E2 08 00 91 33 80 09 00 00 00 00 00 00 36 [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:18]Read from MH i2c: E2 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 03 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [10:18:18]RAPDU: 90 00 [10:18:18]wFMCommunicate OK [10:18:18]SAM_PROTO_ClearQueue done [10:18:18]KKMCreateOFDPacket [10:18:18]OFDProtocolAddRootSTLVToBuf [10:18:18]FM_MakeSignedData [10:18:18]FM_MakeSignedData [10:18:18]SAM_PROTO_SignData [10:18:18]wFMCommunicate request_size=4 [10:18:18]MH_SAM_APDU [10:18:18]CAPDU: 80 0D 01 02 [10:18:18]Write to MH i2c: E2 08 00 92 33 80 0D 01 02 00 00 00 00 3E [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:18]Read from MH i2c: E2 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 03 00 [10:18:18]MH_I2C_Read... [10:18:18]Read from MH i2c: E2 03 00 92 33 00 90 00 39 [10:18:18]RAPDU: 90 00 [10:18:18]wFMCommunicate OK [10:18:18]wFMCommunicate request_size=255 [10:18:18]MH_SAM_APDU [10:18: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EC BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 23 02 00 35 04 06 00 51 [10:18:18]Write to MH i2c: E2 02 01 93 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EC BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 23 02 00 35 04 06 00 51 00 00 4D [10:18:18]Write i2c OK [10:18:18]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 93 33 00 90 00 3A [10:18:19]RAPDU: 90 00 [10:18:19]wFMCommunicate OK [10:18:19]wFMCommunicate request_size=10 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 0D 02 02 05 F3 81 2D FA 7C [10:18:19]Write to MH i2c: E2 0D 00 94 33 80 0D 02 02 05 00 F3 81 2D FA 7C 00 00 62 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 03 00 94 33 00 90 00 3B [10:18:19]RAPDU: 90 00 [10:18:19]wFMCommunicate OK [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 0D 03 02 [10:18:19]Write to MH i2c: E2 08 00 95 33 80 0D 03 02 00 00 00 00 43 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0B 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 0B 00 95 33 00 D0 7E 10 D8 C6 BB D9 47 90 00 1B [10:18:19]RAPDU: D0 7E 10 D8 C6 BB D9 47 90 00 [10:18:19]wFMCommunicate OK [10:18:19]SAM_PROTO_SignData done [10:18:19]FM_MakeSignedData done [10:18:19]CreateOFDProtocolMessage [10:18:19]wFMCommunicate request_size=4 [10:18:19]MH_SAM_APDU [10:18:19]CAPDU: 80 11 00 00 [10:18:19]Write to MH i2c: E2 08 00 96 33 80 11 00 00 00 00 00 00 43 [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 [10:18:19]MH_I2C_Read... [10:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:19]Read from MH i2c: E2 17 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: E2 17 00 96 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [10:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:19]wFMCommunicate OK [10:18:19]CreateOFDProtocolMessage done [10:18:19]OFDSenderStorePacket 140079 [10:18:19]StoreOFDPacket docnum=140079 [10:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 89 F5 07 01 27 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EC BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 23 02 00 35 04 06 00 51 F3 81 2D FA 7C D0 7E 10 D8 C6 BB D9 47 [10:18:19]CheckFolder [10:18:19]dirname=/storage/ofd_packets [10:18:19]CheckFolder done [10:18:19]ProducePacketName [10:18:19]name=ofd_packets/00140079 [10:18:19]NVStorageSaveData ofd_packets/00140079 [10:18:19]File name is /storage/ofd_packets/00140079 [10:18:19]Write 301 bytes [10:18:19]NVStorageSaveData done [10:18:19]OFDSenderStorePacket done [10:18:19]KKMCreateOFDPacket done [10:18:19]NVStorageSaveData kkm_last_timestamp [10:18:19]File name is /storage/kkm_last_timestamp [10:18:19]Write 4 bytes [10:18:19]NVStorageSaveData done [10:18:19]ExternCall_PrintAddStr [10:18:19]wPrintStart [10:18:19]Write to MH i2c: 01 00 00 97 33 CA [10:18:19]Write i2c OK [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: 01 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: 01 07 00 [10:18:19]MH_I2C_Read... [10:18:19]Read from MH i2c: 01 07 00 97 33 00 00 00 00 00 FF 0F DF [10:18:19]RasterBufferAndPrint [10:18:19]line Счет N : (1)593932 [10:18:19]line ИНН: 02508201610067 [10:18:19]line Контрольно-Кассовый Чек [10:18:19]line ПРОДАЖА [10:18:19]line ТРК (МРК, ГНК) : 32 [10:18:19]line Товар: 2710124130 [10:18:19]line Аи-92-К-5 [10:18:19]line 5.900 * 67.80 [10:18:19]line = 400.02 [10:18:19]line НДС 12% НСП 1% [10:18:19]line > о реализуемом товаре [10:18:19]line ОКРУГЛЕНИЕ: -0.02 [10:18:19]line ИТОГО: 400.00 [10:18:19]line Внесено: 400.00 [10:18:19]line СДАЧА: 0.00 [10:18:19]line НСП 1% : 3.54 [10:18:19]line НДС 12% : 42.48 [10:18:19]line Наличными: 400.00 [10:18:19]line Безнал.: 0.00 [10:18:19]line Место: АЗС № 136 "Партнер Нефть" [10:18:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:18:19]line СНО: Общий режим [10:18:19]line Чек 96 21.08.2024 10:18 [10:18:19]line Смена: 454 ФФД: 1.0 [10:18:19]line ЗНМ: 0300000067 [10:18:19]line РНМ: 0000000000092569 [10:18:19]line Версия ККМ: 001 [10:18:19]line ФМ: 0000000000871776 [10:18:19]line ФД: 140079 [10:18:19]line ФПД: 90106286176892 [10:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101820&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140079&fm=90106286176892&tin=02508201610067®Number=0000000000092569&sum=40000 [10:18:19]OFD Sender: Processing packet 140079 [packets to send 137, broken 136] [10:18:19]ProducePacketName [10:18:19]name=ofd_packets/00140079 [10:18:19]OFD Sender: To server: pG, [10:18:19]CommunicateWithHost lk.salyk.kg:30040 [10:18:19]ConnectInit lk.salyk.kg [10:18:19]written 0, free lines is 4095 [10:18:19]Connected sock=10 [10: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 37 36 0F 01 00 00 89 F5 07 01 27 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 EC BE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 23 02 00 35 04 06 00 51 F3 81 2D FA 7C D0 7E 10 D8 C6 BB D9 47 [10:18:20]Write to MH i2c: 01 00 00 C2 33 F5 [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 07 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: 01 07 00 C2 33 00 00 00 00 00 D5 0C DD [10:18:20]RasterBufferAndPrint [10:18:20]line [10:18:20]line [10:18:20]line [10:18:20]line [10:18:20]line [10:18:20]written 0, free lines is 3299 [10:18: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 37 36 4F 00 00 00 14 6E 47 00 FE 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 37 36 10 04 04 00 2F 23 02 00 F4 03 04 00 7E 65 C5 66 B6 04 01 00 00 1D 30 64 97 A4 B9 0A 34 [10:18:20]CommunicateWithHost err = 0 [10:18:20]CheckOFDResponse [10:18:20]1017 (14) - 77093643461234 [10:18:20]1041 (16) - 0000000000871776 [10:18:20]1040 (4) - 140079 [10:18:20]1012 (4) - 21.08.2024 03:56 [10:18:20]1206 (1) - 0 [10:18:20]OFD Sender: Remove packet 140079 [10:18:20]ProducePacketName [10:18:20]name=ofd_packets/00140079 [10:18:20]NVStorageDeleteData [10:18:20]MH_Cut [10:18:20]Write to MH i2c: D1 01 00 C9 33 01 CE [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: D1 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: D1 01 00 [10:18:20]MH_I2C_Read... [10:18:20]Read from MH i2c: D1 01 00 C9 33 00 CD [10:18:20]Write to MH i2c: 01 00 00 CA 33 FD [10:18:20]Write i2c OK [10:18:20]MH_I2C_Read... [10:18:20]OFD Sender: No OFD packet to send [10:18:20]*** Cut start [10:18:20]*** Partial cut [10:18:20]*** CUTSNS_PIN = 1 [10:18:20]*** CUTSNS_PIN = 0 [10:18:21]*** Brake cut motor [10:18:21]Read from MH i2c: 01 [10:18:21]MH_I2C_Read... [10:18:21]*** Stop cut motor [10:18:21]*** Cut end [10:18:21]Read from MH i2c: 01 07 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 FF 0F 12 [10:18:21]process_action close_receipt done [10:18:21]requested_data is exist [10:18:21]produce_requested_data [10:18:21]requested_item fm.sn is exist - process it [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 11 00 00 [10:18:21]Write to MH i2c: E2 08 00 CB 33 80 11 00 00 00 00 00 00 78 [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 17 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 17 00 CB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [10:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:18:21]wFMCommunicate OK [10:18:21]requested_item fd.num is exist - process it [10:18:21]SAM_PROTO_GetFieldsCounters [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 13 00 00 [10:18:21]Write to MH i2c: E2 08 00 CC 33 80 13 00 00 00 00 00 00 7B [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 62 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 62 00 CC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_GetFieldsCounters done [10:18:21]requested_item shift.num is exist - process it [10:18:21]requested_item shift.opened is exist - process it [10:18:21]req_shift_opened [10:18:21]FM_GetShiftState [10:18:21]SAM_PROTO_GetShiftState [10:18:21]wFMCommunicate request_size=4 [10:18:21]MH_SAM_APDU [10:18:21]CAPDU: 80 13 01 00 [10:18:21]Write to MH i2c: E2 08 00 CD 33 80 13 01 00 00 00 00 00 7D [10:18:21]Write i2c OK [10:18:21]MH_I2C_Read... [10:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:21]Read from MH i2c: E2 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0E 00 [10:18:21]MH_I2C_Read... [10:18:21]Read from MH i2c: E2 0E 00 CD 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FD [10:18:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:18:21]wFMCommunicate OK [10:18:21]SAM_PROTO_GetShiftState done [10:18:21]FM_GetShiftState done [10:18:21]req_shift_opened done [10:18:21]requested_item shift.open_date is exist - process it [10:18:21]req_shift_open_date [10:18:21]req_shift_open_date done [10:18:21]produce_requested_data done [10:18:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140079,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:18:21]process_action_free close_receipt [10:18:21]json_value_free [10:18:21]json_value_free done [10:18:21]process_json_proto returns [10:18:21]Send response to host [10:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140079,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:18:21]free response buf [10:18:21]execute_script done [10:18:21]execute_script returns [10:18:21]free content buf [10:18:21]Sock 9.Close socket [10:18:21]Sock 9.Thread stoped [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:03]accept exits with 7 [10:19:03]New connection [10:19:03]New thread 3066908004 created [10:19:03]Thread 3066764644 joined [10:19:03]Waiting for new connection... [10:19:03] Sock 7.Parse request [10:19:03]Sock 7.Check first char [10:19:03]Sock 7.First char is OK [10:19:03]request: POST /json_proto HTTP/1.0 [10:19:03]Method: POST [10:19:03]URL: /json_proto [10:19:03]Method is POST - this is cgi request [10:19:03]url: /json_proto [10:19:03]query_string will be loaded in cgi processing [10:19:03]execute_cgi json_proto POST (null) [10:19:03]execute_cgi path=json_proto method=POST [10:19:03]POST find Content-Length [10:19:03]Host: 172.17.45.67:8080 [10:19:03]Content-Length: 677 [10:19:03]Content-Type: application/json [10:19:03] [10:19:03]POST finish read [10:19:03]Found Content-Length = 677 [10:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:03]execute_script... [10:19:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:03]POST & json_proto [10:19:03]process_json_proto [10:19:03]json parsed OK: [10:19:03]protocol is kg_v1.0 [10:19:03]action value=close_receipt [10:19:03]process_action close_receipt [10:19:03]cmd_close_receipt [10:19:03]MH_GetDate [10:19:03]Write to MH i2c: F0 00 00 CE 33 F0 [10:19:03]Write i2c OK [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: F0 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: F0 09 00 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: F0 09 00 CE 33 00 1B BF C5 66 5F 7F 2B 66 6D [10:19:03]GetLastDocTimeStamp 1724235500 [10:19:03]current date 1724235547 [10:19:03]FM_GetShiftState [10:19:03]SAM_PROTO_GetShiftState [10:19:03]wFMCommunicate request_size=4 [10:19:03]MH_SAM_APDU [10:19:03]CAPDU: 80 13 01 00 [10:19:03]Write to MH i2c: E2 08 00 CF 33 80 13 01 00 00 00 00 00 7F [10:19:03]Write i2c OK [10:19:03]MH_I2C_Read... [10:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:04]Read from MH i2c: E2 [10:19:04]MH_I2C_Read... [10:19:04]Read from MH i2c: E2 0E 00 [10:19:04]MH_I2C_Read... [10:19:04]Read from MH i2c: E2 0E 00 CF 33 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FF [10:19:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:19:04]wFMCommunicate OK [10:19:04]SAM_PROTO_GetShiftState done [10:19:04]FM_GetShiftState done [10:19:04]opened in 1724200467 [10:19:04]opened+sec_in_day 1724286867 [10:19:04]quantity*price = 50036 [10:19:04]sum+1 = 50037 [10:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 97 21.08.2024 10:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140080 ФПД: 212734873706738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140080&fm=212734873706738&tin=02508201610067®Number=0000000000092569&sum=50000 [10:19:05]StoreToDocumentArchive [10:19:05]shift 454 fd 140080 [10:19:05]save to /storage/0454/doc_00140080 [10:19:05]save last doc name /storage/0454/doc_00140080 to /storage/kkm_last_doc_name [10:19:05]save OK [10:19:05]Clear old archive folders... [10:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:05]tlvbuf is 00A3D6E0 [10:19:05]SAM_PROTO_ClearQueue [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 09 00 00 [10:19:05]Write to MH i2c: E2 08 00 DC 33 80 09 00 00 00 00 00 00 81 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 DC 33 00 90 00 83 [10:19:05]RAPDU: 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_ClearQueue done [10:19:05]KKMCreateOFDPacket [10:19:05]OFDProtocolAddRootSTLVToBuf [10:19:05]FM_MakeSignedData [10:19:05]FM_MakeSignedData [10:19:05]SAM_PROTO_SignData [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 0D 01 02 [10:19:05]Write to MH i2c: E2 08 00 DD 33 80 0D 01 02 00 00 00 00 89 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 DD 33 00 90 00 84 [10:19:05]RAPDU: 90 00 [10:19:05]wFMCommunicate OK [10:19:05]wFMCommunicate request_size=255 [10:19:05]MH_SAM_APDU [10:19: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 1B BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 23 02 00 35 04 06 00 C1 [10:19:05]Write to MH i2c: E2 02 01 DE 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 1B BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 23 02 00 35 04 06 00 C1 00 00 55 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 DE 33 00 90 00 85 [10:19:05]RAPDU: 90 00 [10:19:05]wFMCommunicate OK [10:19:05]wFMCommunicate request_size=10 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 0D 02 02 05 7B 32 94 20 F2 [10:19:05]Write to MH i2c: E2 0D 00 DF 33 80 0D 02 02 05 00 7B 32 94 20 F2 00 00 E9 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 03 00 DF 33 00 90 00 86 [10:19:05]RAPDU: 90 00 [10:19:05]wFMCommunicate OK [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 0D 03 02 [10:19:05]Write to MH i2c: E2 08 00 E0 33 80 0D 03 02 00 00 00 00 8E [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0B 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0B 00 E0 33 00 2F CC 96 E7 70 05 BF 39 90 00 74 [10:19:05]RAPDU: 2F CC 96 E7 70 05 BF 39 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_SignData done [10:19:05]FM_MakeSignedData done [10:19:05]CreateOFDProtocolMessage [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 11 00 00 [10:19:05]Write to MH i2c: E2 08 00 E1 33 80 11 00 00 00 00 00 00 8E [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 17 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 17 00 E1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [10:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:19:05]wFMCommunicate OK [10:19:05]CreateOFDProtocolMessage done [10:19:05]OFDSenderStorePacket 140080 [10:19:05]StoreOFDPacket docnum=140080 [10:19:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 92 07 01 AC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 1B BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 23 02 00 35 04 06 00 C1 7B 32 94 20 F2 2F CC 96 E7 70 05 BF 39 [10:19:05]CheckFolder [10:19:05]dirname=/storage/ofd_packets [10:19:05]CheckFolder done [10:19:05]ProducePacketName [10:19:05]name=ofd_packets/00140080 [10:19:05]NVStorageSaveData ofd_packets/00140080 [10:19:05]File name is /storage/ofd_packets/00140080 [10:19:05]Write 301 bytes [10:19:05]NVStorageSaveData done [10:19:05]OFDSenderStorePacket done [10:19:05]KKMCreateOFDPacket done [10:19:05]NVStorageSaveData kkm_last_timestamp [10:19:05]File name is /storage/kkm_last_timestamp [10:19:05]Write 4 bytes [10:19:05]NVStorageSaveData done [10:19:05]ExternCall_PrintAddStr [10:19:05]wPrintStart [10:19:05]Write to MH i2c: 01 00 00 E2 33 15 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: 01 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: 01 07 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: 01 07 00 E2 33 00 00 00 00 00 FF 0F 2A [10:19:05]RasterBufferAndPrint [10:19:05]line Счет N : (1)593934 [10:19:05]line ИНН: 02508201610067 [10:19:05]line Контрольно-Кассовый Чек [10:19:05]line ПРОДАЖА [10:19:05]line ТРК (МРК, ГНК) : 62 [10:19:05]line Товар: 2710124130 [10:19:05]line Аи-92-К-5 [10:19:05]line 7.380 * 67.80 [10:19:05]line = 500.36 [10:19:05]line НДС 12% НСП 1% [10:19:05]line > о реализуемом товаре [10:19:05]line ОКРУГЛЕНИЕ: -0.36 [10:19:05]line ИТОГО: 500.00 [10:19:05]line Внесено: 500.00 [10:19:05]line СДАЧА: 0.00 [10:19:05]line НСП 1% : 4.43 [10:19:05]line НДС 12% : 53.14 [10:19:05]line Наличными: 500.00 [10:19:05]line Безнал.: 0.00 [10:19:05]line Место: АЗС № 136 "Партнер Нефть" [10:19:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:19:05]line СНО: Общий режим [10:19:05]line Чек 97 21.08.2024 10:19 [10:19:05]line Смена: 454 ФФД: 1.0 [10:19:05]line ЗНМ: 0300000067 [10:19:05]line РНМ: 0000000000092569 [10:19:05]line Версия ККМ: 001 [10:19:05]line ФМ: 0000000000871776 [10:19:05]line ФД: 140080 [10:19:05]line ФПД: 212734873706738 [10:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T101907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140080&fm=212734873706738&tin=02508201610067®Number=0000000000092569&sum=50000 [10:19:06]written 0, free lines is 4095 [10:19:06]OFD Sender: Processing packet 140080 [packets to send 137, broken 136] [10:19:06]ProducePacketName [10:19:06]name=ofd_packets/00140080 [10:19:06]OFD Sender: To server: pG, [10:19:06]CommunicateWithHost lk.salyk.kg:30040 [10:19:06]ConnectInit lk.salyk.kg [10:19:06]Connected sock=10 [10:19: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 37 36 0F 01 00 00 1E 92 07 01 AC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 1B BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 23 02 00 35 04 06 00 C1 7B 32 94 20 F2 2F CC 96 E7 70 05 BF 39 [10:19: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 37 36 4F 00 00 00 8A 9F 47 00 DA 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 37 36 10 04 04 00 30 23 02 00 F4 03 04 00 AC 65 C5 66 B6 04 01 00 00 C1 30 69 38 FD AB AB 1C [10:19:06]CommunicateWithHost err = 0 [10:19:06]CheckOFDResponse [10:19:06]1017 (14) - 77093643461234 [10:19:06]1041 (16) - 0000000000871776 [10:19:06]1040 (4) - 140080 [10:19:06]1012 (4) - 21.08.2024 03:57 [10:19:06]1206 (1) - 0 [10:19:06]OFD Sender: Remove packet 140080 [10:19:06]ProducePacketName [10:19:06]name=ofd_packets/00140080 [10:19:06]NVStorageDeleteData [10:19:06]Write to MH i2c: 01 00 00 0D 34 41 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 07 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 07 00 0D 34 00 00 00 00 00 E6 0C 3A [10:19:06]RasterBufferAndPrint [10:19:06]line [10:19:06]line [10:19:06]line [10:19:06]line [10:19:06]line [10:19:06]written 0, free lines is 3308 [10:19:06]MH_Cut [10:19:06]Write to MH i2c: D1 01 00 14 34 01 1A [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: D1 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: D1 01 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: D1 01 00 14 34 00 19 [10:19:06]Write to MH i2c: 01 00 00 15 34 49 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]OFD Sender: No OFD packet to send [10:19:07]*** Cut start [10:19:07]*** Partial cut [10:19:07]*** CUTSNS_PIN = 1 [10:19:07]*** CUTSNS_PIN = 0 [10:19:07]*** Brake cut motor [10:19:07]Read from MH i2c: 01 [10:19:07]MH_I2C_Read... [10:19:07]*** Stop cut motor [10:19:07]*** Cut end [10:19:07]Read from MH i2c: 01 07 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 15 34 00 00 00 00 00 FF 0F 5E [10:19:07]process_action close_receipt done [10:19:07]requested_data is exist [10:19:07]produce_requested_data [10:19:07]requested_item fm.sn is exist - process it [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 11 00 00 [10:19:07]Write to MH i2c: E2 08 00 16 34 80 11 00 00 00 00 00 00 C4 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 16 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [10:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:19:07]wFMCommunicate OK [10:19:07]requested_item fd.num is exist - process it [10:19:07]SAM_PROTO_GetFieldsCounters [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 13 00 00 [10:19:07]Write to MH i2c: E2 08 00 17 34 80 13 00 00 00 00 00 00 C7 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 62 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 62 00 17 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [10:19:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:07]wFMCommunicate OK [10:19:07]SAM_PROTO_GetFieldsCounters done [10:19:07]requested_item shift.num is exist - process it [10:19:07]requested_item shift.opened is exist - process it [10:19:07]req_shift_opened [10:19:07]FM_GetShiftState [10:19:07]SAM_PROTO_GetShiftState [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 13 01 00 [10:19:07]Write to MH i2c: E2 08 00 18 34 80 13 01 00 00 00 00 00 C9 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:08]Read from MH i2c: E2 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: E2 0E 00 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: E2 0E 00 18 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 49 [10:19:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:19:08]wFMCommunicate OK [10:19:08]SAM_PROTO_GetShiftState done [10:19:08]FM_GetShiftState done [10:19:08]req_shift_opened done [10:19:08]requested_item shift.open_date is exist - process it [10:19:08]req_shift_open_date [10:19:08]req_shift_open_date done [10:19:08]produce_requested_data done [10:19:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140080,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:19:08]process_action_free close_receipt [10:19:08]json_value_free [10:19:08]json_value_free done [10:19:08]process_json_proto returns [10:19:08]Send response to host [10:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140080,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:19:08]free response buf [10:19:08]execute_script done [10:19:08]execute_script returns [10:19:08]free content buf [10:19:08]Sock 7.Close socket [10:19:08]Sock 7.Thread stoped [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:45]int [10:19:45]Write to MH i2c: 01 00 00 19 34 4D [10:19:45]*** FLAG_PRN_KEY set [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 19 34 00 08 00 00 00 FF 0F 6A [10:19:45]state=0 [10:19:45]Key pressed [10:19:45]Feed [10:19:45]Write to MH i2c: D8 00 00 1A 34 25 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: D8 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: D8 01 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: D8 01 00 1A 34 00 26 [10:19:45]int [10:19:45]Write to MH i2c: 01 00 00 1B 34 4F [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 1B 34 00 48 00 00 00 3C 00 DA [10:19:45]state=2 [10:19:45]Key pressed [10:19:45]int [10:19:45]Write to MH i2c: 01 00 00 1C 34 50 [10:19:45]*** FLAG_PRN_KEY reset [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 1C 34 00 00 00 00 00 F7 0F 5D [10:19:45]state=2 [10:19:45]Stop feed [10:19:46]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:11]accept exits with 9 [10:21:11]New connection [10:21:11]New thread 3066764644 created [10:21:11]Thread 3066908004 joined [10:21:11]Waiting for new connection... [10:21:11] Sock 9.Parse request [10:21:11]Sock 9.Check first char [10:21:11]Sock 9.First char is OK [10:21:11]request: POST /json_proto HTTP/1.0 [10:21:11]Method: POST [10:21:11]URL: /json_proto [10:21:11]Method is POST - this is cgi request [10:21:11]url: /json_proto [10:21:11]query_string will be loaded in cgi processing [10:21:11]execute_cgi json_proto POST (null) [10:21:11]execute_cgi path=json_proto method=POST [10:21:11]POST find Content-Length [10:21:11]Host: 172.17.45.67:8080 [10:21:11]Content-Length: 818 [10:21:11]Content-Type: application/json [10:21:11] [10:21:11]POST finish read [10:21:11]Found Content-Length = 818 [10:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:11]execute_script... [10:21: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)593935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:11]POST & json_proto [10:21:11]process_json_proto [10:21:11]json parsed OK: [10:21:11]protocol is kg_v1.0 [10:21:11]action value=close_receipt [10:21:11]process_action close_receipt [10:21:11]cmd_close_receipt [10:21:11]MH_GetDate [10:21:11]Write to MH i2c: F0 00 00 1D 34 40 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 09 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: F0 09 00 1D 34 00 9A BF C5 66 5F 7F 2B 66 3C [10:21:11]GetLastDocTimeStamp 1724235547 [10:21:11]current date 1724235674 [10:21:11]FM_GetShiftState [10:21:11]SAM_PROTO_GetShiftState [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 13 01 00 [10:21:11]Write to MH i2c: E2 08 00 1E 34 80 13 01 00 00 00 00 00 CF [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 1E 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [10:21:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_GetShiftState done [10:21:11]FM_GetShiftState done [10:21:11]opened in 1724200467 [10:21:11]opened+sec_in_day 1724286867 [10:21:11]quantity*price = 60003 [10:21:11]sum+1 = 60004 [10:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 98 21.08.2024 10:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140081 ФПД: 44771677679554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102114&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140081&fm=44771677679554&tin=02508201610067®Number=0000000000092569&sum=60000 [10:21:12]StoreToDocumentArchive [10:21:12]shift 454 fd 140081 [10:21:12]save to /storage/0454/doc_00140081 [10:21:12]save last doc name /storage/0454/doc_00140081 to /storage/kkm_last_doc_name [10:21:12]save OK [10:21:12]Clear old archive folders... [10:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:12]tlvbuf is 00AC0700 [10:21:12]SAM_PROTO_ClearQueue [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 09 00 00 [10:21:12]Write to MH i2c: E2 08 00 2B 34 80 09 00 00 00 00 00 00 D1 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 2B 34 00 90 00 D3 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_ClearQueue done [10:21:12]KKMCreateOFDPacket [10:21:12]OFDProtocolAddRootSTLVToBuf [10:21:12]FM_MakeSignedData [10:21:12]FM_MakeSignedData [10:21:12]SAM_PROTO_SignData [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 01 02 [10:21:12]Write to MH i2c: E2 08 00 2C 34 80 0D 01 02 00 00 00 00 D9 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 2C 34 00 90 00 D4 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=255 [10:21:12]MH_SAM_APDU [10:21: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 9A BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 23 02 00 35 04 06 00 28 [10:21:12]Write to MH i2c: E2 02 01 2D 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 9A BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 23 02 00 35 04 06 00 28 00 00 54 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 2D 34 00 90 00 D5 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=10 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 02 02 05 B8 37 F1 AF C2 [10:21:12]Write to MH i2c: E2 0D 00 2E 34 80 0D 02 02 05 00 B8 37 F1 AF C2 00 00 37 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 2E 34 00 90 00 D6 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 03 02 [10:21:12]Write to MH i2c: E2 08 00 2F 34 80 0D 03 02 00 00 00 00 DE [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 2F 34 00 88 90 F6 BF 66 12 22 6B 90 00 B1 [10:21:12]RAPDU: 88 90 F6 BF 66 12 22 6B 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_SignData done [10:21:12]FM_MakeSignedData done [10:21:12]CreateOFDProtocolMessage [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 11 00 00 [10:21:12]Write to MH i2c: E2 08 00 30 34 80 11 00 00 00 00 00 00 DE [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 30 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [10:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:21:12]wFMCommunicate OK [10:21:12]CreateOFDProtocolMessage done [10:21:12]OFDSenderStorePacket 140081 [10:21:12]StoreOFDPacket docnum=140081 [10:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 18 D3 07 01 30 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 9A BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 23 02 00 35 04 06 00 28 B8 37 F1 AF C2 88 90 F6 BF 66 12 22 6B [10:21:12]CheckFolder [10:21:12]dirname=/storage/ofd_packets [10:21:12]CheckFolder done [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00140081 [10:21:12]NVStorageSaveData ofd_packets/00140081 [10:21:12]File name is /storage/ofd_packets/00140081 [10:21:12]Write 301 bytes [10:21:12]NVStorageSaveData done [10:21:12]OFDSenderStorePacket done [10:21:12]KKMCreateOFDPacket done [10:21:12]NVStorageSaveData kkm_last_timestamp [10:21:12]File name is /storage/kkm_last_timestamp [10:21:12]Write 4 bytes [10:21:12]NVStorageSaveData done [10:21:12]ExternCall_PrintAddStr [10:21:12]wPrintStart [10:21:12]Write to MH i2c: 01 00 00 31 34 65 [10:21:12]OFD Sender: Processing packet 140081 [packets to send 137, broken 136] [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00140081 [10:21:12]OFD Sender: To server: pG, [10:21:12]CommunicateWithHost lk.salyk.kg:30040 [10:21:12]ConnectInit lk.salyk.kg [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 31 34 00 00 00 00 00 FF 0F 7A [10:21:12]RasterBufferAndPrint [10:21:12]line Счет N : (1)593935 [10:21:12]line ИНН: 02508201610067 [10:21:12]line Контрольно-Кассовый Чек [10:21:12]line ПРОДАЖА [10:21:12]line ТРК (МРК, ГНК) : 32 [10:21:12]line Товар: 2710124130 [10:21:12]line Аи-92-К-5 [10:21:12]line 8.850 * 67.80 [10:21:12]line = 600.03 [10:21:12]line НДС 12% НСП 1% [10:21:12]line > о реализуемом товаре [10:21:12]line ОКРУГЛЕНИЕ: -0.03 [10:21:12]line ИТОГО: 600.00 [10:21:12]line НСП 1% : 5.31 [10:21:12]line НДС 12% : 63.72 [10:21:12]line Наличными: 0.00 [10:21:12]line Безнал.: 600.00 [10:21:12]line Место: АЗС № 136 "Партнер Нефть" [10:21:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:21:12]line СНО: Общий режим [10:21:12]line Чек 98 21.08.2024 10:21 [10:21:12]line Смена: 454 ФФД: 1.0 [10:21:12]line ЗНМ: 0300000067 [10:21:12]line РНМ: 0000000000092569 [10:21:12]line Версия ККМ: 001 [10:21:12]line Платежная система: O! деньги [10:21:12]line ФМ: 0000000000871776 [10:21:12]line ФД: 140081 [10:21:12]line ФПД: 44771677679554 [10:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102114&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140081&fm=44771677679554&tin=02508201610067®Number=0000000000092569&sum=60000 [10:21:12]written 0, free lines is 4095 [10:21:13]Connected sock=10 [10:21: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 37 36 0F 01 00 00 18 D3 07 01 30 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 9A BF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 23 02 00 35 04 06 00 28 B8 37 F1 AF C2 88 90 F6 BF 66 12 22 6B [10:21: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 37 36 4F 00 00 00 8C 74 47 00 CA 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 37 36 10 04 04 00 31 23 02 00 F4 03 04 00 2B 66 C5 66 B6 04 01 00 00 5B 75 C3 B0 40 B7 38 82 [10:21:13]CommunicateWithHost err = 0 [10:21:13]CheckOFDResponse [10:21:13]1017 (14) - 77093643461234 [10:21:13]1041 (16) - 0000000000871776 [10:21:13]1040 (4) - 140081 [10:21:13]1012 (4) - 21.08.2024 03:59 [10:21:13]1206 (1) - 0 [10:21:13]OFD Sender: Remove packet 140081 [10:21:13]ProducePacketName [10:21:13]name=ofd_packets/00140081 [10:21:13]NVStorageDeleteData [10:21:13]Write to MH i2c: 01 00 00 5C 34 90 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 5C 34 00 00 00 00 00 E6 0C 89 [10:21:13]RasterBufferAndPrint [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]written 0, free lines is 3309 [10:21:13]MH_Cut [10:21:13]Write to MH i2c: D1 01 00 63 34 01 69 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 63 34 00 68 [10:21:13]Write to MH i2c: 01 00 00 64 34 98 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]OFD Sender: No OFD packet to send [10:21:14]*** Cut start [10:21:14]*** Partial cut [10:21:14]*** CUTSNS_PIN = 1 [10:21:14]*** CUTSNS_PIN = 0 [10:21:14]*** Brake cut motor [10:21:14]Read from MH i2c: 01 [10:21:14]MH_I2C_Read... [10:21:14]*** Stop cut motor [10:21:14]*** Cut end [10:21:14]Read from MH i2c: 01 07 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 64 34 00 00 00 00 00 FF 0F AD [10:21:14]process_action close_receipt done [10:21:14]requested_data is exist [10:21:14]produce_requested_data [10:21:14]requested_item fm.sn is exist - process it [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 11 00 00 [10:21:14]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [10:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:21:14]wFMCommunicate OK [10:21:14]requested_item fd.num is exist - process it [10:21:14]SAM_PROTO_GetFieldsCounters [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 00 00 [10:21:14]Write to MH i2c: E2 08 00 66 34 80 13 00 00 00 00 00 00 16 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 66 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetFieldsCounters done [10:21:14]requested_item shift.num is exist - process it [10:21:14]requested_item shift.opened is exist - process it [10:21:14]req_shift_opened [10:21:14]FM_GetShiftState [10:21:14]SAM_PROTO_GetShiftState [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 01 00 [10:21:14]Write to MH i2c: E2 08 00 67 34 80 13 01 00 00 00 00 00 18 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 67 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [10:21:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetShiftState done [10:21:14]FM_GetShiftState done [10:21:14]req_shift_opened done [10:21:14]requested_item shift.open_date is exist - process it [10:21:14]req_shift_open_date [10:21:14]req_shift_open_date done [10:21:14]produce_requested_data done [10:21:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140081,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:21:14]process_action_free close_receipt [10:21:14]json_value_free [10:21:14]json_value_free done [10:21:14]process_json_proto returns [10:21:14]Send response to host [10:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140081,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:21:14]free response buf [10:21:14]execute_script done [10:21:14]execute_script returns [10:21:14]free content buf [10:21:14]Sock 9.Close socket [10:21:14]Sock 9.Thread stoped [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22: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:07]accept exits with 7 [10:23:07]New connection [10:23:07]New thread 3066908004 created [10:23:07]Thread 3066764644 joined [10:23:07]Waiting for new connection... [10:23:07] Sock 7.Parse request [10:23:07]Sock 7.Check first char [10:23:07]Sock 7.First char is OK [10:23:07]request: POST /json_proto HTTP/1.0 [10:23:07]Method: POST [10:23:07]URL: /json_proto [10:23:07]Method is POST - this is cgi request [10:23:07]url: /json_proto [10:23:07]query_string will be loaded in cgi processing [10:23:07]execute_cgi json_proto POST (null) [10:23:07]execute_cgi path=json_proto method=POST [10:23:07]POST find Content-Length [10:23:07]Host: 172.17.45.67:8080 [10:23:07]Content-Length: 682 [10:23:07]Content-Type: application/json [10:23:07] [10:23:07]POST finish read [10:23:07]Found Content-Length = 682 [10:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:07]execute_script... [10: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)593936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:07]POST & json_proto [10:23:07]process_json_proto [10:23:07]json parsed OK: [10:23:07]protocol is kg_v1.0 [10:23:07]action value=close_receipt [10:23:07]process_action close_receipt [10:23:07]cmd_close_receipt [10:23:07]MH_GetDate [10:23:07]Write to MH i2c: F0 00 00 68 34 8B [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 09 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: F0 09 00 68 34 00 0E C0 C5 66 5F 7F 2B 66 FC [10:23:07]GetLastDocTimeStamp 1724235674 [10:23:07]current date 1724235790 [10:23:07]FM_GetShiftState [10:23:07]SAM_PROTO_GetShiftState [10:23:07]wFMCommunicate request_size=4 [10:23:07]MH_SAM_APDU [10:23:07]CAPDU: 80 13 01 00 [10:23:07]Write to MH i2c: E2 08 00 69 34 80 13 01 00 00 00 00 00 1A [10:23:07]Write i2c OK [10:23:07]MH_I2C_Read... [10:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:07]Read from MH i2c: E2 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 0E 00 [10:23:07]MH_I2C_Read... [10:23:07]Read from MH i2c: E2 0E 00 69 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9A [10:23:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:23:07]wFMCommunicate OK [10:23:07]SAM_PROTO_GetShiftState done [10:23:07]FM_GetShiftState done [10:23:07]opened in 1724200467 [10:23:07]opened+sec_in_day 1724286867 [10:23:07]quantity*price = 100005 [10:23:07]sum+1 = 100006 [10:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 99 21.08.2024 10:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140082 ФПД: 124358155764831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102310&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140082&fm=124358155764831&tin=02508201610067®Number=0000000000092569&sum=100000 [10:23:08]StoreToDocumentArchive [10:23:08]shift 454 fd 140082 [10:23:08]save to /storage/0454/doc_00140082 [10:23:08]save last doc name /storage/0454/doc_00140082 to /storage/kkm_last_doc_name [10:23:08]save OK [10:23:08]Clear old archive folders... [10:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:08]tlvbuf is 00B51350 [10:23:08]SAM_PROTO_ClearQueue [10:23:08]wFMCommunicate request_size=4 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 09 00 00 [10:23:08]Write to MH i2c: E2 08 00 76 34 80 09 00 00 00 00 00 00 1C [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 76 34 00 90 00 1E [10:23:08]RAPDU: 90 00 [10:23:08]wFMCommunicate OK [10:23:08]SAM_PROTO_ClearQueue done [10:23:08]KKMCreateOFDPacket [10:23:08]OFDProtocolAddRootSTLVToBuf [10:23:08]FM_MakeSignedData [10:23:08]FM_MakeSignedData [10:23:08]SAM_PROTO_SignData [10:23:08]wFMCommunicate request_size=4 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 0D 01 02 [10:23:08]Write to MH i2c: E2 08 00 77 34 80 0D 01 02 00 00 00 00 24 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [10:23:08]RAPDU: 90 00 [10:23:08]wFMCommunicate OK [10:23:08]wFMCommunicate request_size=255 [10:23:08]MH_SAM_APDU [10: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0E C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 23 02 00 35 04 06 00 71 [10:23:08]Write to MH i2c: E2 02 01 78 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0E C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 23 02 00 35 04 06 00 71 00 00 27 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:09]OFD Sender: No OFD packet to send [10:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=10 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 02 02 05 1A 63 B3 04 5F [10:23:09]Write to MH i2c: E2 0D 00 79 34 80 0D 02 02 05 00 1A 63 B3 04 5F 00 00 C4 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 03 02 [10:23:09]Write to MH i2c: E2 08 00 7A 34 80 0D 03 02 00 00 00 00 29 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0B 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 0B 00 7A 34 00 95 A9 3A 2A 01 64 F4 4A 90 00 6F [10:23:09]RAPDU: 95 A9 3A 2A 01 64 F4 4A 90 00 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_SignData done [10:23:09]FM_MakeSignedData done [10:23:09]CreateOFDProtocolMessage [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 11 00 00 [10:23:09]Write to MH i2c: E2 08 00 7B 34 80 11 00 00 00 00 00 00 29 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:09]Read from MH i2c: E2 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: E2 17 00 7B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [10:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:09]wFMCommunicate OK [10:23:09]CreateOFDProtocolMessage done [10:23:09]OFDSenderStorePacket 140082 [10:23:09]StoreOFDPacket docnum=140082 [10:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 69 E0 07 01 FD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0E C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 23 02 00 35 04 06 00 71 1A 63 B3 04 5F 95 A9 3A 2A 01 64 F4 4A [10:23:09]CheckFolder [10:23:09]dirname=/storage/ofd_packets [10:23:09]CheckFolder done [10:23:09]ProducePacketName [10:23:09]name=ofd_packets/00140082 [10:23:09]NVStorageSaveData ofd_packets/00140082 [10:23:09]File name is /storage/ofd_packets/00140082 [10:23:09]Write 301 bytes [10:23:09]NVStorageSaveData done [10:23:09]OFDSenderStorePacket done [10:23:09]KKMCreateOFDPacket done [10:23:09]NVStorageSaveData kkm_last_timestamp [10:23:09]File name is /storage/kkm_last_timestamp [10:23:09]Write 4 bytes [10:23:09]NVStorageSaveData done [10:23:09]ExternCall_PrintAddStr [10:23:09]wPrintStart [10:23:09]Write to MH i2c: 01 00 00 7C 34 B0 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 [10:23:09]MH_I2C_Read... [10:23:09]Read from MH i2c: 01 07 00 7C 34 00 00 00 00 00 FF 0F C5 [10:23:09]RasterBufferAndPrint [10:23:09]line Счет N : (1)593936 [10:23:09]line ИНН: 02508201610067 [10:23:09]line Контрольно-Кассовый Чек [10:23:09]line ПРОДАЖА [10:23:09]line ТРК (МРК, ГНК) : 52 [10:23:09]line Товар: 2710124130 [10:23:09]line Аи-92-К-5 [10:23:09]line 14.750 * 67.80 [10:23:09]line = 1000.05 [10:23:09]line НДС 12% НСП 1% [10:23:09]line > о реализуемом товаре [10:23:09]line ОКРУГЛЕНИЕ: -0.05 [10:23:09]line ИТОГО: 1000.00 [10:23:09]line Внесено: 1000.00 [10:23:09]line СДАЧА: 0.00 [10:23:09]line НСП 1% : 8.85 [10:23:09]line НДС 12% : 106.20 [10:23:09]line Наличными: 1000.00 [10:23:09]line Безнал.: 0.00 [10:23:09]line Место: АЗС № 136 "Партнер Нефть" [10:23:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:23:09]line СНО: Общий режим [10:23:09]line Чек 99 21.08.2024 10:23 [10:23:09]line Смена: 454 ФФД: 1.0 [10:23:09]line ЗНМ: 0300000067 [10:23:09]line РНМ: 0000000000092569 [10:23:09]line Версия ККМ: 001 [10:23:09]line ФМ: 0000000000871776 [10:23:09]line ФД: 140082 [10:23:09]line ФПД: 124358155764831 [10:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102310&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140082&fm=124358155764831&tin=02508201610067®Number=0000000000092569&sum=100000 [10:23:09]OFD Sender: Processing packet 140082 [packets to send 137, broken 136] [10:23:09]ProducePacketName [10:23:09]name=ofd_packets/00140082 [10:23:09]OFD Sender: To server: pG, [10:23:09]CommunicateWithHost lk.salyk.kg:30040 [10:23:09]ConnectInit lk.salyk.kg [10:23:09]written 0, free lines is 4095 [10:23:09]Connected sock=10 [10: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 37 36 0F 01 00 00 69 E0 07 01 FD 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 0E C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 23 02 00 35 04 06 00 71 1A 63 B3 04 5F 95 A9 3A 2A 01 64 F4 4A [10:23: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 37 36 4F 00 00 00 68 BD 47 00 03 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 37 36 10 04 04 00 32 23 02 00 F4 03 04 00 9F 66 C5 66 B6 04 01 00 00 F5 1C 8A DC 90 EE 32 EE [10:23:10]CommunicateWithHost err = 0 [10:23:10]CheckOFDResponse [10:23:10]1017 (14) - 77093643461234 [10:23:10]1041 (16) - 0000000000871776 [10:23:10]1040 (4) - 140082 [10:23:10]1012 (4) - 21.08.2024 04:01 [10:23:10]1206 (1) - 0 [10:23:10]OFD Sender: Remove packet 140082 [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00140082 [10:23:10]NVStorageDeleteData [10:23:10]Write to MH i2c: 01 00 00 A7 34 DB [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 DD 0C CB [10:23:10]RasterBufferAndPrint [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]line [10:23:10]written 0, free lines is 3298 [10:23:10]MH_Cut [10:23:10]Write to MH i2c: D1 01 00 AE 34 01 B4 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 01 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: D1 01 00 AE 34 00 B3 [10:23:10]Write to MH i2c: 01 00 00 AF 34 E3 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]OFD Sender: No OFD packet to send [10:23:10]*** Cut start [10:23:10]*** Partial cut [10:23:10]*** CUTSNS_PIN = 1 [10:23:10]*** CUTSNS_PIN = 0 [10:23:11]*** Brake cut motor [10:23:11]Read from MH i2c: 01 [10:23:11]MH_I2C_Read... [10:23:11]*** Stop cut motor [10:23:11]*** Cut end [10:23:11]Read from MH i2c: 01 07 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [10:23:11]process_action close_receipt done [10:23:11]requested_data is exist [10:23:11]produce_requested_data [10:23:11]requested_item fm.sn is exist - process it [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 11 00 00 [10:23:11]Write to MH i2c: E2 08 00 B0 34 80 11 00 00 00 00 00 00 5E [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 17 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 17 00 B0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [10:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:23:11]wFMCommunicate OK [10:23:11]requested_item fd.num is exist - process it [10:23:11]SAM_PROTO_GetFieldsCounters [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 13 00 00 [10:23:11]Write to MH i2c: E2 08 00 B1 34 80 13 00 00 00 00 00 00 61 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 62 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 62 00 B1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_GetFieldsCounters done [10:23:11]requested_item shift.num is exist - process it [10:23:11]requested_item shift.opened is exist - process it [10:23:11]req_shift_opened [10:23:11]FM_GetShiftState [10:23:11]SAM_PROTO_GetShiftState [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 13 01 00 [10:23:11]Write to MH i2c: E2 08 00 B2 34 80 13 01 00 00 00 00 00 63 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 0E 00 B2 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [10:23:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_GetShiftState done [10:23:11]FM_GetShiftState done [10:23:11]req_shift_opened done [10:23:11]requested_item shift.open_date is exist - process it [10:23:11]req_shift_open_date [10:23:11]req_shift_open_date done [10:23:11]produce_requested_data done [10:23:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140082,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:23:11]process_action_free close_receipt [10:23:11]json_value_free [10:23:11]json_value_free done [10:23:11]process_json_proto returns [10:23:11]Send response to host [10:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140082,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:23:11]free response buf [10:23:11]execute_script done [10:23:11]execute_script returns [10:23:11]free content buf [10:23:11]Sock 7.Close socket [10:23:11]Sock 7.Thread stoped [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]accept exits with 9 [10:24:10]New connection [10:24:10]New thread 3066764644 created [10:24:10]Thread 3066908004 joined [10:24:10]Waiting for new connection... [10:24:10] Sock 9.Parse request [10:24:10]Sock 9.Check first char [10:24:10]Sock 9.First char is OK [10:24:10]request: POST /json_proto HTTP/1.0 [10:24:10]Method: POST [10:24:10]URL: /json_proto [10:24:10]Method is POST - this is cgi request [10:24:10]url: /json_proto [10:24:10]query_string will be loaded in cgi processing [10:24:10]execute_cgi json_proto POST (null) [10:24:10]execute_cgi path=json_proto method=POST [10:24:10]POST find Content-Length [10:24:10]Host: 172.17.45.67:8080 [10:24:10]Content-Length: 659 [10:24:10]Content-Type: application/json [10:24:10] [10:24:10]POST finish read [10:24:10]Found Content-Length = 659 [10:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:24:10]execute_script... [10:24: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)593939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:24:10]POST & json_proto [10:24:10]process_json_proto [10:24:10]json parsed OK: [10:24:10]protocol is kg_v1.0 [10:24:10]action value=close_receipt [10:24:10]process_action close_receipt [10:24:10]cmd_close_receipt [10:24:10]MH_GetDate [10:24:10]Write to MH i2c: F0 00 00 B3 34 D6 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: F0 09 00 B3 34 00 4D C0 C5 66 5F 7F 2B 66 86 [10:24:10]GetLastDocTimeStamp 1724235790 [10:24:10]current date 1724235853 [10:24:10]FM_GetShiftState [10:24:10]SAM_PROTO_GetShiftState [10:24:10]wFMCommunicate request_size=4 [10:24:10]MH_SAM_APDU [10:24:10]CAPDU: 80 13 01 00 [10:24:10]Write to MH i2c: E2 08 00 B4 34 80 13 01 00 00 00 00 00 65 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:10]Read from MH i2c: E2 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: E2 0E 00 B4 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E5 [10:24:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:10]wFMCommunicate OK [10:24:10]SAM_PROTO_GetShiftState done [10:24:10]FM_GetShiftState done [10:24:10]opened in 1724200467 [10:24:10]opened+sec_in_day 1724286867 [10:24:10]quantity*price = 70038 [10:24:10]sum+1 = 70039 [10:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 100 21.08.2024 10:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140083 ФПД: 161891494115188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140083&fm=161891494115188&tin=02508201610067®Number=0000000000092569&sum=70000 [10:24:11]StoreToDocumentArchive [10:24:11]shift 454 fd 140083 [10:24:11]save to /storage/0454/doc_00140083 [10:24:11]save last doc name /storage/0454/doc_00140083 to /storage/kkm_last_doc_name [10:24:11]save OK [10:24:11]Clear old archive folders... [10:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:24:11]tlvbuf is 00A07970 [10:24:11]SAM_PROTO_ClearQueue [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 09 00 00 [10:24:11]Write to MH i2c: E2 08 00 C1 34 80 09 00 00 00 00 00 00 67 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 C1 34 00 90 00 69 [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_ClearQueue done [10:24:11]KKMCreateOFDPacket [10:24:11]OFDProtocolAddRootSTLVToBuf [10:24:11]FM_MakeSignedData [10:24:11]FM_MakeSignedData [10:24:11]SAM_PROTO_SignData [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 01 02 [10:24:11]Write to MH i2c: E2 08 00 C2 34 80 0D 01 02 00 00 00 00 6F [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=253 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 4D C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 23 02 00 35 04 06 00 93 3D 4C FF B7 74 [10:24:11]Write to MH i2c: E2 00 01 C3 34 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 4D C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 23 02 00 35 04 06 00 93 3D 4C FF B7 74 00 00 5C [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [10:24:11]RAPDU: 90 00 [10:24:11]wFMCommunicate OK [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 0D 03 02 [10:24:11]Write to MH i2c: E2 08 00 C4 34 80 0D 03 02 00 00 00 00 73 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0B 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0B 00 C4 34 00 F7 1D 17 92 D4 9D 92 75 90 00 A9 [10:24:11]RAPDU: F7 1D 17 92 D4 9D 92 75 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_SignData done [10:24:11]FM_MakeSignedData done [10:24:11]CreateOFDProtocolMessage [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 11 00 00 [10:24:11]Write to MH i2c: E2 08 00 C5 34 80 11 00 00 00 00 00 00 73 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 C5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [10:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:11]wFMCommunicate OK [10:24:11]CreateOFDProtocolMessage done [10:24:11]OFDSenderStorePacket 140083 [10:24:11]StoreOFDPacket docnum=140083 [10:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 7D E8 00 01 35 2B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 4D C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 23 02 00 35 04 06 00 93 3D 4C FF B7 74 F7 1D 17 92 D4 9D 92 75 [10:24:11]CheckFolder [10:24:11]dirname=/storage/ofd_packets [10:24:11]CheckFolder done [10:24:11]ProducePacketName [10:24:11]name=ofd_packets/00140083 [10:24:11]NVStorageSaveData ofd_packets/00140083 [10:24:11]File name is /storage/ofd_packets/00140083 [10:24:11]Write 294 bytes [10:24:11]NVStorageSaveData done [10:24:11]OFDSenderStorePacket done [10:24:11]KKMCreateOFDPacket done [10:24:11]NVStorageSaveData kkm_last_timestamp [10:24:11]File name is /storage/kkm_last_timestamp [10:24:11]Write 4 bytes [10:24:11]NVStorageSaveData done [10:24:11]ExternCall_PrintAddStr [10:24:11]wPrintStart [10:24:11]Write to MH i2c: 01 00 00 C6 34 FA [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 FF 0F 0F [10:24:11]RasterBufferAndPrint [10:24:11]line Счет N : (1)593939 [10:24:11]line ИНН: 02508201610067 [10:24:11]line Контрольно-Кассовый Чек [10:24:11]line ПРОДАЖА [10:24:11]line ТРК (МРК, ГНК) : 33 [10:24:11]line Товар: 2710124130 [10:24:11]line SU-92 [10:24:11]line 10.180 * 68.80 [10:24:11]line = 700.38 [10:24:11]line НДС 12% НСП 1% [10:24:11]line > о реализуемом товаре [10:24:11]line ОКРУГЛЕНИЕ: -0.38 [10:24:11]line ИТОГО: 700.00 [10:24:11]line Внесено: 700.00 [10:24:11]line СДАЧА: 0.00 [10:24:11]line НСП 1% : 6.20 [10:24:11]line НДС 12% : 74.38 [10:24:11]line Наличными: 700.00 [10:24:11]line Безнал.: 0.00 [10:24:11]line Место: АЗС № 136 "Партнер Нефть" [10:24:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:11]line СНО: Общий режим [10:24:11]line Чек 100 21.08.2024 10:24 [10:24:11]line Смена: 454 ФФД: 1.0 [10:24:11]line ЗНМ: 0300000067 [10:24:11]line РНМ: 0000000000092569 [10:24:11]line Версия ККМ: 001 [10:24:11]line ФМ: 0000000000871776 [10:24:11]line ФД: 140083 [10:24:11]line ФПД: 161891494115188 [10:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102413&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140083&fm=161891494115188&tin=02508201610067®Number=0000000000092569&sum=70000 [10:24:12]OFD Sender: Processing packet 140083 [packets to send 137, broken 136] [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00140083 [10:24:12]OFD Sender: To server: pG, [10:24:12]CommunicateWithHost lk.salyk.kg:30040 [10:24:12]ConnectInit lk.salyk.kg [10:24:12]written 0, free lines is 4095 [10:24:12]Connected sock=10 [10:24: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 37 36 08 01 00 00 7D E8 00 01 35 2B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 4D C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 23 02 00 35 04 06 00 93 3D 4C FF B7 74 F7 1D 17 92 D4 9D 92 75 [10:24: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 37 36 4F 00 00 00 C8 DB 47 00 90 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 37 36 10 04 04 00 33 23 02 00 F4 03 04 00 DE 66 C5 66 B6 04 01 00 00 79 37 D6 E5 34 3A 65 DD [10:24:12]CommunicateWithHost err = 0 [10:24:12]CheckOFDResponse [10:24:12]1017 (14) - 77093643461234 [10:24:12]1041 (16) - 0000000000871776 [10:24:12]1040 (4) - 140083 [10:24:12]1012 (4) - 21.08.2024 04:02 [10:24:12]1206 (1) - 0 [10:24:12]OFD Sender: Remove packet 140083 [10:24:12]ProducePacketName [10:24:12]name=ofd_packets/00140083 [10:24:12]NVStorageDeleteData [10:24:12]Write to MH i2c: 01 00 00 F1 34 25 [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 F1 34 00 00 00 00 00 CD 0C 05 [10:24:12]RasterBufferAndPrint [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]line [10:24:12]written 0, free lines is 3283 [10:24:12]MH_Cut [10:24:12]Write to MH i2c: D1 01 00 F8 34 01 FE [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: D1 01 00 F8 34 00 FD [10:24:12]Write to MH i2c: 01 00 00 F9 34 2D [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:13]OFD Sender: No OFD packet to send [10:24:13]*** Cut start [10:24:13]*** Partial cut [10:24:13]*** CUTSNS_PIN = 1 [10:24:13]*** CUTSNS_PIN = 0 [10:24:13]*** Brake cut motor [10:24:14]Read from MH i2c: 01 [10:24:14]MH_I2C_Read... [10:24:14]*** Stop cut motor [10:24:14]*** Cut end [10:24:14]Read from MH i2c: 01 07 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: 01 07 00 F9 34 00 00 00 00 00 FF 0F 42 [10:24:14]process_action close_receipt done [10:24:14]requested_data is exist [10:24:14]produce_requested_data [10:24:14]requested_item fm.sn is exist - process it [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 11 00 00 [10:24:14]Write to MH i2c: E2 08 00 FA 34 80 11 00 00 00 00 00 00 A8 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 17 00 FA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [10:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:14]wFMCommunicate OK [10:24:14]requested_item fd.num is exist - process it [10:24:14]SAM_PROTO_GetFieldsCounters [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 00 00 [10:24:14]Write to MH i2c: E2 08 00 FB 34 80 13 00 00 00 00 00 00 AB [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 62 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 62 00 FB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetFieldsCounters done [10:24:14]requested_item shift.num is exist - process it [10:24:14]requested_item shift.opened is exist - process it [10:24:14]req_shift_opened [10:24:14]FM_GetShiftState [10:24:14]SAM_PROTO_GetShiftState [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 01 00 [10:24:14]Write to MH i2c: E2 08 00 FC 34 80 13 01 00 00 00 00 00 AD [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 FC 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2D [10:24:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetShiftState done [10:24:14]FM_GetShiftState done [10:24:14]req_shift_opened done [10:24:14]requested_item shift.open_date is exist - process it [10:24:14]req_shift_open_date [10:24:14]req_shift_open_date done [10:24:14]produce_requested_data done [10:24:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140083,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:24:14]process_action_free close_receipt [10:24:14]json_value_free [10:24:14]json_value_free done [10:24:14]process_json_proto returns [10:24:14]Send response to host [10:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140083,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:24:14]free response buf [10:24:14]execute_script done [10:24:14]execute_script returns [10:24:14]free content buf [10:24:14]Sock 9.Close socket [10:24:14]Sock 9.Thread stoped [10:24:14]accept exits with 7 [10:24:14]New connection [10:24:14]New thread 3066908004 created [10:24:14]Thread 3066764644 joined [10:24:14]Waiting for new connection... [10:24:14] Sock 7.Parse request [10:24:14]Sock 7.Check first char [10:24:14]Sock 7.First char is OK [10:24:14]request: POST /json_proto HTTP/1.0 [10:24:14]Method: POST [10:24:14]URL: /json_proto [10:24:14]Method is POST - this is cgi request [10:24:14]url: /json_proto [10:24:14]query_string will be loaded in cgi processing [10:24:14]execute_cgi json_proto POST (null) [10:24:14]execute_cgi path=json_proto method=POST [10:24:14]POST find Content-Length [10:24:14]Host: 172.17.45.67:8080 [10:24:14]Content-Length: 677 [10:24:14]Content-Type: application/json [10:24:14] [10:24:14]POST finish read [10:24:14]Found Content-Length = 677 [10:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:14]execute_script... [10:24:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:14]POST & json_proto [10:24:14]process_json_proto [10:24:14]json parsed OK: [10:24:14]protocol is kg_v1.0 [10:24:14]action value=close_receipt [10:24:14]process_action close_receipt [10:24:14]cmd_close_receipt [10:24:14]MH_GetDate [10:24:14]Write to MH i2c: F0 00 00 FD 34 20 [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 09 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: F0 09 00 FD 34 00 51 C0 C5 66 5F 7F 2B 66 D4 [10:24:14]GetLastDocTimeStamp 1724235853 [10:24:14]current date 1724235857 [10:24:14]FM_GetShiftState [10:24:14]SAM_PROTO_GetShiftState [10:24:14]wFMCommunicate request_size=4 [10:24:14]MH_SAM_APDU [10:24:14]CAPDU: 80 13 01 00 [10:24:14]Write to MH i2c: E2 08 00 FE 34 80 13 01 00 00 00 00 00 AF [10:24:14]Write i2c OK [10:24:14]MH_I2C_Read... [10:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:14]Read from MH i2c: E2 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 [10:24:14]MH_I2C_Read... [10:24:14]Read from MH i2c: E2 0E 00 FE 34 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2F [10:24:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:14]wFMCommunicate OK [10:24:14]SAM_PROTO_GetShiftState done [10:24:14]FM_GetShiftState done [10:24:14]opened in 1724200467 [10:24:14]opened+sec_in_day 1724286867 [10:24:14]quantity*price = 50036 [10:24:14]sum+1 = 50037 [10:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 101 21.08.2024 10:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140084 ФПД: 48321934113569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140084&fm=48321934113569&tin=02508201610067®Number=0000000000092569&sum=50000 [10:24:16]StoreToDocumentArchive [10:24:16]shift 454 fd 140084 [10:24:16]save to /storage/0454/doc_00140084 [10:24:16]save last doc name /storage/0454/doc_00140084 to /storage/kkm_last_doc_name [10:24:16]save OK [10:24:16]Clear old archive folders... [10:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:16]tlvbuf is 00B1E160 [10:24:16]SAM_PROTO_ClearQueue [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 09 00 00 [10:24:16]Write to MH i2c: E2 08 00 0B 35 80 09 00 00 00 00 00 00 B2 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 0B 35 00 90 00 B4 [10:24:16]RAPDU: 90 00 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_ClearQueue done [10:24:16]KKMCreateOFDPacket [10:24:16]OFDProtocolAddRootSTLVToBuf [10:24:16]FM_MakeSignedData [10:24:16]FM_MakeSignedData [10:24:16]SAM_PROTO_SignData [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 0D 01 02 [10:24:16]Write to MH i2c: E2 08 00 0C 35 80 0D 01 02 00 00 00 00 BA [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [10:24:16]RAPDU: 90 00 [10:24:16]wFMCommunicate OK [10:24:16]wFMCommunicate request_size=255 [10:24:16]MH_SAM_APDU [10:24: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 51 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 23 02 00 35 04 06 00 2B [10:24:16]Write to MH i2c: E2 02 01 0D 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 51 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 23 02 00 35 04 06 00 2B 00 00 2F [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [10:24:16]RAPDU: 90 00 [10:24:16]wFMCommunicate OK [10:24:16]wFMCommunicate request_size=10 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 0D 02 02 05 F2 D3 B7 BB 21 [10:24:16]Write to MH i2c: E2 0D 00 0E 35 80 0D 02 02 05 00 F2 D3 B7 BB 21 00 00 1F [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [10:24:16]RAPDU: 90 00 [10:24:16]wFMCommunicate OK [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 0D 03 02 [10:24:16]Write to MH i2c: E2 08 00 0F 35 80 0D 03 02 00 00 00 00 BF [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0B 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0B 00 0F 35 00 DD 89 78 AA 13 0D 1D B4 90 00 39 [10:24:16]RAPDU: DD 89 78 AA 13 0D 1D B4 90 00 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_SignData done [10:24:16]FM_MakeSignedData done [10:24:16]CreateOFDProtocolMessage [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 11 00 00 [10:24:16]Write to MH i2c: E2 08 00 10 35 80 11 00 00 00 00 00 00 BF [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 17 00 10 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [10:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:16]wFMCommunicate OK [10:24:16]CreateOFDProtocolMessage done [10:24:16]OFDSenderStorePacket 140084 [10:24:16]StoreOFDPacket docnum=140084 [10:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 40 72 07 01 62 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 51 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 23 02 00 35 04 06 00 2B F2 D3 B7 BB 21 DD 89 78 AA 13 0D 1D B4 [10:24:16]CheckFolder [10:24:16]dirname=/storage/ofd_packets [10:24:16]CheckFolder done [10:24:16]ProducePacketName [10:24:16]name=ofd_packets/00140084 [10:24:16]NVStorageSaveData ofd_packets/00140084 [10:24:16]File name is /storage/ofd_packets/00140084 [10:24:16]Write 301 bytes [10:24:16]NVStorageSaveData done [10:24:16]OFDSenderStorePacket done [10:24:16]KKMCreateOFDPacket done [10:24:16]NVStorageSaveData kkm_last_timestamp [10:24:16]File name is /storage/kkm_last_timestamp [10:24:16]Write 4 bytes [10:24:16]NVStorageSaveData done [10:24:16]ExternCall_PrintAddStr [10:24:16]wPrintStart [10:24:16]Write to MH i2c: 01 00 00 11 35 46 [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: 01 07 00 11 35 00 00 00 00 00 FF 0F 5B [10:24:16]RasterBufferAndPrint [10:24:16]line Счет N : (1)593937 [10:24:16]line ИНН: 02508201610067 [10:24:16]line Контрольно-Кассовый Чек [10:24:16]line ПРОДАЖА [10:24:16]line ТРК (МРК, ГНК) : 42 [10:24:16]line Товар: 2710124130 [10:24:16]line Аи-92-К-5 [10:24:16]line 7.380 * 67.80 [10:24:16]line = 500.36 [10:24:16]line НДС 12% НСП 1% [10:24:16]line > о реализуемом товаре [10:24:16]line ОКРУГЛЕНИЕ: -0.36 [10:24:16]line ИТОГО: 500.00 [10:24:16]line Внесено: 500.00 [10:24:16]line СДАЧА: 0.00 [10:24:16]line НСП 1% : 4.43 [10:24:16]line НДС 12% : 53.14 [10:24:16]line Наличными: 500.00 [10:24:16]line Безнал.: 0.00 [10:24:16]line Место: АЗС № 136 "Партнер Нефть" [10:24:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:16]line СНО: Общий режим [10:24:16]line Чек 101 21.08.2024 10:24 [10:24:16]line Смена: 454 ФФД: 1.0 [10:24:16]line ЗНМ: 0300000067 [10:24:16]line РНМ: 0000000000092569 [10:24:16]line Версия ККМ: 001 [10:24:16]line ФМ: 0000000000871776 [10:24:16]line ФД: 140084 [10:24:16]line ФПД: 48321934113569 [10:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140084&fm=48321934113569&tin=02508201610067®Number=0000000000092569&sum=50000 [10:24:17]OFD Sender: Processing packet 140084 [packets to send 137, broken 136] [10:24:17]ProducePacketName [10:24:17]name=ofd_packets/00140084 [10:24:17]written 0, free lines is 4095 [10:24:17]OFD Sender: To server: pG, [10:24:17]CommunicateWithHost lk.salyk.kg:30040 [10:24:17]ConnectInit lk.salyk.kg [10:24:17]Connected sock=10 [10:24: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 37 36 0F 01 00 00 40 72 07 01 62 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 51 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 23 02 00 35 04 06 00 2B F2 D3 B7 BB 21 DD 89 78 AA 13 0D 1D B4 [10:24: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 37 36 4F 00 00 00 84 75 47 00 E2 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 37 36 10 04 04 00 34 23 02 00 F4 03 04 00 E3 66 C5 66 B6 04 01 00 00 F0 D3 64 0C 5C 9C 91 0F [10:24:17]CommunicateWithHost err = 0 [10:24:17]CheckOFDResponse [10:24:17]1017 (14) - 77093643461234 [10:24:17]1041 (16) - 0000000000871776 [10:24:17]1040 (4) - 140084 [10:24:17]1012 (4) - 21.08.2024 04:02 [10:24:17]1206 (1) - 0 [10:24:17]OFD Sender: Remove packet 140084 [10:24:17]ProducePacketName [10:24:17]name=ofd_packets/00140084 [10:24:17]NVStorageDeleteData [10:24:17]Write to MH i2c: 01 00 00 3C 35 71 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 3C 35 00 00 00 00 00 E1 0C 65 [10:24:17]RasterBufferAndPrint [10:24:17]line [10:24:17]line [10:24:17]line [10:24:17]line [10:24:17]line [10:24:17]written 0, free lines is 3312 [10:24:17]MH_Cut [10:24:17]Write to MH i2c: D1 01 00 43 35 01 4A [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: D1 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: D1 01 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: D1 01 00 43 35 00 49 [10:24:17]Write to MH i2c: 01 00 00 44 35 79 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:18]OFD Sender: No OFD packet to send [10:24:18]*** Cut start [10:24:18]*** Partial cut [10:24:18]*** CUTSNS_PIN = 1 [10:24:18]*** CUTSNS_PIN = 0 [10:24:18]*** Brake cut motor [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]*** Stop cut motor [10:24:18]*** Cut end [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 44 35 00 00 00 00 00 FF 0F 8E [10:24:18]process_action close_receipt done [10:24:18]requested_data is exist [10:24:18]produce_requested_data [10:24:18]requested_item fm.sn is exist - process it [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 11 00 00 [10:24:18]Write to MH i2c: E2 08 00 45 35 80 11 00 00 00 00 00 00 F4 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 45 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [10:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:18]wFMCommunicate OK [10:24:18]requested_item fd.num is exist - process it [10:24:18]SAM_PROTO_GetFieldsCounters [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 13 00 00 [10:24:18]Write to MH i2c: E2 08 00 46 35 80 13 00 00 00 00 00 00 F7 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:19]Read from MH i2c: E2 [10:24:19]MH_I2C_Read... [10:24:19]Read from MH i2c: E2 62 00 [10:24:19]MH_I2C_Read... [10:24:19]Read from MH i2c: E2 62 00 46 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:19]wFMCommunicate OK [10:24:19]SAM_PROTO_GetFieldsCounters done [10:24:19]requested_item shift.num is exist - process it [10:24:19]requested_item shift.opened is exist - process it [10:24:19]req_shift_opened [10:24:19]FM_GetShiftState [10:24:19]SAM_PROTO_GetShiftState [10:24:19]wFMCommunicate request_size=4 [10:24:19]MH_SAM_APDU [10:24:19]CAPDU: 80 13 01 00 [10:24:19]Write to MH i2c: E2 08 00 47 35 80 13 01 00 00 00 00 00 F9 [10:24:19]Write i2c OK [10:24:19]MH_I2C_Read... [10:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:19]Read from MH i2c: E2 [10:24:19]MH_I2C_Read... [10:24:19]Read from MH i2c: E2 0E 00 [10:24:19]MH_I2C_Read... [10:24:19]Read from MH i2c: E2 0E 00 47 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [10:24:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:19]wFMCommunicate OK [10:24:19]SAM_PROTO_GetShiftState done [10:24:19]FM_GetShiftState done [10:24:19]req_shift_opened done [10:24:19]requested_item shift.open_date is exist - process it [10:24:19]req_shift_open_date [10:24:19]req_shift_open_date done [10:24:19]produce_requested_data done [10:24:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140084,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:24:19]process_action_free close_receipt [10:24:19]json_value_free [10:24:19]json_value_free done [10:24:19]process_json_proto returns [10:24:19]Send response to host [10:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140084,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:24:19]free response buf [10:24:19]execute_script done [10:24:19]execute_script returns [10:24:19]free content buf [10:24:19]Sock 7.Close socket [10:24:19]Sock 7.Thread stoped [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:29]accept exits with 9 [10:24:29]New connection [10:24:29]New thread 3066764644 created [10:24:29]Thread 3066908004 joined [10:24:29]Waiting for new connection... [10:24:29] Sock 9.Parse request [10:24:29]Sock 9.Check first char [10:24:29]Sock 9.First char is OK [10:24:29]request: POST /json_proto HTTP/1.0 [10:24:29]Method: POST [10:24:29]URL: /json_proto [10:24:29]Method is POST - this is cgi request [10:24:29]url: /json_proto [10:24:29]query_string will be loaded in cgi processing [10:24:29]execute_cgi json_proto POST (null) [10:24:29]execute_cgi path=json_proto method=POST [10:24:29]POST find Content-Length [10:24:29]Host: 172.17.45.67:8080 [10:24:29]Content-Length: 682 [10:24:29]Content-Type: application/json [10:24:29] [10:24:29]POST finish read [10:24:29]Found Content-Length = 682 [10:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:29]execute_script... [10:24:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:29]POST & json_proto [10:24:29]process_json_proto [10:24:29]json parsed OK: [10:24:29]protocol is kg_v1.0 [10:24:29]action value=close_receipt [10:24:29]process_action close_receipt [10:24:29]cmd_close_receipt [10:24:29]MH_GetDate [10:24:29]Write to MH i2c: F0 00 00 48 35 6C [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 09 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: F0 09 00 48 35 00 60 C0 C5 66 5F 7F 2B 66 2F [10:24:29]GetLastDocTimeStamp 1724235857 [10:24:29]current date 1724235872 [10:24:29]FM_GetShiftState [10:24:29]SAM_PROTO_GetShiftState [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 13 01 00 [10:24:29]Write to MH i2c: E2 08 00 49 35 80 13 01 00 00 00 00 00 FB [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0E 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0E 00 49 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [10:24:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:29]wFMCommunicate OK [10:24:29]SAM_PROTO_GetShiftState done [10:24:29]FM_GetShiftState done [10:24:29]opened in 1724200467 [10:24:29]opened+sec_in_day 1724286867 [10:24:29]quantity*price = 100005 [10:24:29]sum+1 = 100006 [10:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 102 21.08.2024 10:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140085 ФПД: 219528227865220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140085&fm=219528227865220&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:30]StoreToDocumentArchive [10:24:30]shift 454 fd 140085 [10:24:30]save to /storage/0454/doc_00140085 [10:24:30]save last doc name /storage/0454/doc_00140085 to /storage/kkm_last_doc_name [10:24:30]save OK [10:24:30]Clear old archive folders... [10:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:30]tlvbuf is B6D9D810 [10:24:30]SAM_PROTO_ClearQueue [10:24:30]wFMCommunicate request_size=4 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 09 00 00 [10:24:30]Write to MH i2c: E2 08 00 56 35 80 09 00 00 00 00 00 00 FD [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 03 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [10:24:30]RAPDU: 90 00 [10:24:30]wFMCommunicate OK [10:24:30]SAM_PROTO_ClearQueue done [10:24:30]KKMCreateOFDPacket [10:24:30]OFDProtocolAddRootSTLVToBuf [10:24:30]FM_MakeSignedData [10:24:30]FM_MakeSignedData [10:24:30]SAM_PROTO_SignData [10:24:30]wFMCommunicate request_size=4 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 0D 01 02 [10:24:30]Write to MH i2c: E2 08 00 57 35 80 0D 01 02 00 00 00 00 05 [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 03 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [10:24:30]RAPDU: 90 00 [10:24:30]wFMCommunicate OK [10:24:30]wFMCommunicate request_size=255 [10:24:30]MH_SAM_APDU [10:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 23 02 00 35 04 06 00 C7 [10:24:30]Write to MH i2c: E2 02 01 58 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 23 02 00 35 04 06 00 C7 00 00 B6 [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]wFMCommunicate request_size=10 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 02 02 05 A8 E6 0A 42 84 [10:24:31]Write to MH i2c: E2 0D 00 59 35 80 0D 02 02 05 00 A8 E6 0A 42 84 00 00 70 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 03 00 59 35 00 90 00 02 [10:24:31]RAPDU: 90 00 [10:24:31]wFMCommunicate OK [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 0D 03 02 [10:24:31]Write to MH i2c: E2 08 00 5A 35 80 0D 03 02 00 00 00 00 0A [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 0B 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 0B 00 5A 35 00 08 E9 E3 8B E6 1E 59 22 90 00 E9 [10:24:31]RAPDU: 08 E9 E3 8B E6 1E 59 22 90 00 [10:24:31]wFMCommunicate OK [10:24:31]SAM_PROTO_SignData done [10:24:31]FM_MakeSignedData done [10:24:31]CreateOFDProtocolMessage [10:24:31]wFMCommunicate request_size=4 [10:24:31]MH_SAM_APDU [10:24:31]CAPDU: 80 11 00 00 [10:24:31]Write to MH i2c: E2 08 00 5B 35 80 11 00 00 00 00 00 00 0A [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:31]Read from MH i2c: E2 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 17 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: E2 17 00 5B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [10:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:31]wFMCommunicate OK [10:24:31]CreateOFDProtocolMessage done [10:24:31]OFDSenderStorePacket 140085 [10:24:31]StoreOFDPacket docnum=140085 [10:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 47 61 07 01 E7 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 23 02 00 35 04 06 00 C7 A8 E6 0A 42 84 08 E9 E3 8B E6 1E 59 22 [10:24:31]CheckFolder [10:24:31]dirname=/storage/ofd_packets [10:24:31]CheckFolder done [10:24:31]ProducePacketName [10:24:31]name=ofd_packets/00140085 [10:24:31]NVStorageSaveData ofd_packets/00140085 [10:24:31]File name is /storage/ofd_packets/00140085 [10:24:31]Write 301 bytes [10:24:31]NVStorageSaveData done [10:24:31]OFDSenderStorePacket done [10:24:31]KKMCreateOFDPacket done [10:24:31]NVStorageSaveData kkm_last_timestamp [10:24:31]File name is /storage/kkm_last_timestamp [10:24:31]Write 4 bytes [10:24:31]NVStorageSaveData done [10:24:31]ExternCall_PrintAddStr [10:24:31]wPrintStart [10:24:31]Write to MH i2c: 01 00 00 5C 35 91 [10:24:31]OFD Sender: Processing packet 140085 [packets to send 137, broken 136] [10:24:31]ProducePacketName [10:24:31]name=ofd_packets/00140085 [10:24:31]OFD Sender: To server: pG, [10:24:31]CommunicateWithHost lk.salyk.kg:30040 [10:24:31]ConnectInit lk.salyk.kg [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 5C 35 00 00 00 00 00 FF 0F A6 [10:24:31]RasterBufferAndPrint [10:24:31]line Счет N : (1)593938 [10:24:31]line ИНН: 02508201610067 [10:24:31]line Контрольно-Кассовый Чек [10:24:31]line ПРОДАЖА [10:24:31]line ТРК (МРК, ГНК) : 62 [10:24:31]line Товар: 2710124130 [10:24:31]line Аи-92-К-5 [10:24:31]line 14.750 * 67.80 [10:24:31]line = 1000.05 [10:24:31]line НДС 12% НСП 1% [10:24:31]line > о реализуемом товаре [10:24:31]line ОКРУГЛЕНИЕ: -0.05 [10:24:31]line ИТОГО: 1000.00 [10:24:31]line Внесено: 1000.00 [10:24:31]line СДАЧА: 0.00 [10:24:31]line НСП 1% : 8.85 [10:24:31]line НДС 12% : 106.20 [10:24:31]line Наличными: 1000.00 [10:24:31]line Безнал.: 0.00 [10:24:31]line Место: АЗС № 136 "Партнер Нефть" [10:24:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:24:31]line СНО: Общий режим [10:24:31]line Чек 102 21.08.2024 10:24 [10:24:31]line Смена: 454 ФФД: 1.0 [10:24:31]line ЗНМ: 0300000067 [10:24:31]line РНМ: 0000000000092569 [10:24:31]line Версия ККМ: 001 [10:24:31]line ФМ: 0000000000871776 [10:24:31]line ФД: 140085 [10:24:31]line ФПД: 219528227865220 [10:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140085&fm=219528227865220&tin=02508201610067®Number=0000000000092569&sum=100000 [10:24:31]written 0, free lines is 4095 [10:24:31]Connected sock=10 [10:24: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 37 36 0F 01 00 00 47 61 07 01 E7 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 23 02 00 35 04 06 00 C7 A8 E6 0A 42 84 08 E9 E3 8B E6 1E 59 22 [10:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 2A ED 47 00 01 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 37 36 10 04 04 00 35 23 02 00 F4 03 04 00 F1 66 C5 66 B6 04 01 00 00 4A 70 3A F1 FB C7 A1 5E [10:24:31]CommunicateWithHost err = 0 [10:24:31]CheckOFDResponse [10:24:31]1017 (14) - 77093643461234 [10:24:31]1041 (16) - 0000000000871776 [10:24:31]1040 (4) - 140085 [10:24:31]1012 (4) - 21.08.2024 04:02 [10:24:31]1206 (1) - 0 [10:24:31]OFD Sender: Remove packet 140085 [10:24:31]ProducePacketName [10:24:31]name=ofd_packets/00140085 [10:24:31]NVStorageDeleteData [10:24:31]Write to MH i2c: 01 00 00 87 35 BC [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: 01 07 00 87 35 00 00 00 00 00 E6 0C B5 [10:24:31]RasterBufferAndPrint [10:24:31]line [10:24:31]line [10:24:31]line [10:24:31]line [10:24:31]line [10:24:31]written 0, free lines is 3317 [10:24:31]MH_Cut [10:24:31]Write to MH i2c: D1 01 00 8E 35 01 95 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: D1 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: D1 01 00 [10:24:31]MH_I2C_Read... [10:24:31]Read from MH i2c: D1 01 00 8E 35 00 94 [10:24:31]Write to MH i2c: 01 00 00 8F 35 C4 [10:24:31]Write i2c OK [10:24:31]MH_I2C_Read... [10:24:32]OFD Sender: No OFD packet to send [10:24:32]*** Cut start [10:24:32]*** Partial cut [10:24:32]*** CUTSNS_PIN = 1 [10:24:32]*** CUTSNS_PIN = 0 [10:24:32]*** Brake cut motor [10:24:33]Read from MH i2c: 01 [10:24:33]MH_I2C_Read... [10:24:33]*** Stop cut motor [10:24:33]*** Cut end [10:24:33]Read from MH i2c: 01 07 00 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: 01 07 00 8F 35 00 00 00 00 00 FF 0F D9 [10:24:33]process_action close_receipt done [10:24:33]requested_data is exist [10:24:33]produce_requested_data [10:24:33]requested_item fm.sn is exist - process it [10:24:33]wFMCommunicate request_size=4 [10:24:33]MH_SAM_APDU [10:24:33]CAPDU: 80 11 00 00 [10:24:33]Write to MH i2c: E2 08 00 90 35 80 11 00 00 00 00 00 00 3F [10:24:33]Write i2c OK [10:24:33]MH_I2C_Read... [10:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:33]Read from MH i2c: E2 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 17 00 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 17 00 90 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [10:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:24:33]wFMCommunicate OK [10:24:33]requested_item fd.num is exist - process it [10:24:33]SAM_PROTO_GetFieldsCounters [10:24:33]wFMCommunicate request_size=4 [10:24:33]MH_SAM_APDU [10:24:33]CAPDU: 80 13 00 00 [10:24:33]Write to MH i2c: E2 08 00 91 35 80 13 00 00 00 00 00 00 42 [10:24:33]Write i2c OK [10:24:33]MH_I2C_Read... [10:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:33]Read from MH i2c: E2 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 62 00 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 62 00 91 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [10:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:33]wFMCommunicate OK [10:24:33]SAM_PROTO_GetFieldsCounters done [10:24:33]requested_item shift.num is exist - process it [10:24:33]requested_item shift.opened is exist - process it [10:24:33]req_shift_opened [10:24:33]FM_GetShiftState [10:24:33]SAM_PROTO_GetShiftState [10:24:33]wFMCommunicate request_size=4 [10:24:33]MH_SAM_APDU [10:24:33]CAPDU: 80 13 01 00 [10:24:33]Write to MH i2c: E2 08 00 92 35 80 13 01 00 00 00 00 00 44 [10:24:33]Write i2c OK [10:24:33]MH_I2C_Read... [10:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:33]Read from MH i2c: E2 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 0E 00 [10:24:33]MH_I2C_Read... [10:24:33]Read from MH i2c: E2 0E 00 92 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [10:24:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:24:33]wFMCommunicate OK [10:24:33]SAM_PROTO_GetShiftState done [10:24:33]FM_GetShiftState done [10:24:33]req_shift_opened done [10:24:33]requested_item shift.open_date is exist - process it [10:24:33]req_shift_open_date [10:24:33]req_shift_open_date done [10:24:33]produce_requested_data done [10:24:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140085,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:24:33]process_action_free close_receipt [10:24:33]json_value_free [10:24:33]json_value_free done [10:24:33]process_json_proto returns [10:24:33]Send response to host [10:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140085,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:24:33]free response buf [10:24:33]execute_script done [10:24:33]execute_script returns [10:24:33]free content buf [10:24:33]Sock 9.Close socket [10:24:33]Sock 9.Thread stoped [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:20]int [10:25:20]Write to MH i2c: 01 00 00 93 35 C8 [10:25:20]*** FLAG_PRN_KEY set [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 93 35 00 08 00 00 00 FF 0F E5 [10:25:20]state=0 [10:25:20]Key pressed [10:25:20]Feed [10:25:20]Write to MH i2c: D8 00 00 94 35 A0 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: D8 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: D8 01 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: D8 01 00 94 35 00 A1 [10:25:20]int [10:25:20]Write to MH i2c: 01 00 00 95 35 CA [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 95 35 00 48 00 00 00 3C 00 55 [10:25:20]state=2 [10:25:20]Key pressed [10:25:20]int [10:25:20]Write to MH i2c: 01 00 00 96 35 CB [10:25:20]*** FLAG_PRN_KEY reset [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 96 35 00 00 00 00 00 F8 0F D9 [10:25:20]state=2 [10:25:20]Stop feed [10:25:22]OFD Sender: No OFD packet to send [10:25:26]accept exits with 7 [10:25:26]New connection [10:25:26]New thread 3066908004 created [10:25:26]Thread 3066764644 joined [10:25:26]Waiting for new connection... [10:25:26] Sock 7.Parse request [10:25:26]Sock 7.Check first char [10:25:26]Sock 7.First char is OK [10:25:26]request: POST /json_proto HTTP/1.0 [10:25:26]Method: POST [10:25:26]URL: /json_proto [10:25:26]Method is POST - this is cgi request [10:25:26]url: /json_proto [10:25:26]query_string will be loaded in cgi processing [10:25:26]execute_cgi json_proto POST (null) [10:25:26]execute_cgi path=json_proto method=POST [10:25:26]POST find Content-Length [10:25:26]Host: 172.17.45.67:8080 [10:25:26]Content-Length: 678 [10:25:26]Content-Type: application/json [10:25:26] [10:25:26]POST finish read [10:25:26]Found Content-Length = 678 [10:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [10:25:26]execute_script... [10:25: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)593940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [10:25:26]POST & json_proto [10:25:26]process_json_proto [10:25:26]json parsed OK: [10:25:26]protocol is kg_v1.0 [10:25:26]action value=close_receipt [10:25:26]process_action close_receipt [10:25:26]cmd_close_receipt [10:25:26]MH_GetDate [10:25:26]Write to MH i2c: F0 00 00 97 35 BB [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: F0 09 00 97 35 00 99 C0 C5 66 5F 7F 2B 66 B7 [10:25:26]GetLastDocTimeStamp 1724235872 [10:25:26]current date 1724235929 [10:25:26]FM_GetShiftState [10:25:26]SAM_PROTO_GetShiftState [10:25:26]wFMCommunicate request_size=4 [10:25:26]MH_SAM_APDU [10:25:26]CAPDU: 80 13 01 00 [10:25:26]Write to MH i2c: E2 08 00 98 35 80 13 01 00 00 00 00 00 4A [10:25:26]Write i2c OK [10:25:26]MH_I2C_Read... [10:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:26]Read from MH i2c: E2 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 [10:25:26]MH_I2C_Read... [10:25:26]Read from MH i2c: E2 0E 00 98 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CA [10:25:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:25:26]wFMCommunicate OK [10:25:26]SAM_PROTO_GetShiftState done [10:25:26]FM_GetShiftState done [10:25:26]opened in 1724200467 [10:25:26]opened+sec_in_day 1724286867 [10:25:26]quantity*price = 75016 [10:25:26]sum+1 = 75017 [10:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 103 21.08.2024 10:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140086 ФПД: 110898418858297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102529&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140086&fm=110898418858297&tin=02508201610067®Number=0000000000092569&sum=75000 [10:25:27]StoreToDocumentArchive [10:25:27]shift 454 fd 140086 [10:25:27]save to /storage/0454/doc_00140086 [10:25:27]save last doc name /storage/0454/doc_00140086 to /storage/kkm_last_doc_name [10:25:27]save OK [10:25:27]Clear old archive folders... [10:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:27]tlvbuf is 00A083F0 [10:25:27]SAM_PROTO_ClearQueue [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 09 00 00 [10:25:27]Write to MH i2c: E2 08 00 A5 35 80 09 00 00 00 00 00 00 4C [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:27]Read from MH i2c: E2 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 [10:25:27]MH_I2C_Read... [10:25:27]Read from MH i2c: E2 03 00 A5 35 00 90 00 4E [10:25:27]RAPDU: 90 00 [10:25:27]wFMCommunicate OK [10:25:27]SAM_PROTO_ClearQueue done [10:25:27]KKMCreateOFDPacket [10:25:27]OFDProtocolAddRootSTLVToBuf [10:25:27]FM_MakeSignedData [10:25:27]FM_MakeSignedData [10:25:27]SAM_PROTO_SignData [10:25:27]wFMCommunicate request_size=4 [10:25:27]MH_SAM_APDU [10:25:27]CAPDU: 80 0D 01 02 [10:25:27]Write to MH i2c: E2 08 00 A6 35 80 0D 01 02 00 00 00 00 54 [10:25:27]Write i2c OK [10:25:27]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 A6 35 00 90 00 4F [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=255 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 67 00 00 00 F4 03 04 00 99 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 23 02 00 35 04 06 00 64 [10:25:28]Write to MH i2c: E2 02 01 A7 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 67 00 00 00 F4 03 04 00 99 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 23 02 00 35 04 06 00 64 00 00 D9 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 A7 35 00 90 00 50 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=10 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 02 02 05 DC 8C DC B9 39 [10:25:28]Write to MH i2c: E2 0D 00 A8 35 80 0D 02 02 05 00 DC 8C DC B9 39 00 00 97 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 03 00 A8 35 00 90 00 51 [10:25:28]RAPDU: 90 00 [10:25:28]wFMCommunicate OK [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 0D 03 02 [10:25:28]Write to MH i2c: E2 08 00 A9 35 80 0D 03 02 00 00 00 00 59 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 0B 00 A9 35 00 02 36 B3 B4 BA C6 26 C1 90 00 60 [10:25:28]RAPDU: 02 36 B3 B4 BA C6 26 C1 90 00 [10:25:28]wFMCommunicate OK [10:25:28]SAM_PROTO_SignData done [10:25:28]FM_MakeSignedData done [10:25:28]CreateOFDProtocolMessage [10:25:28]wFMCommunicate request_size=4 [10:25:28]MH_SAM_APDU [10:25:28]CAPDU: 80 11 00 00 [10:25:28]Write to MH i2c: E2 08 00 AA 35 80 11 00 00 00 00 00 00 59 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:28]Read from MH i2c: E2 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: E2 17 00 AA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B0 [10:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:25:28]wFMCommunicate OK [10:25:28]CreateOFDProtocolMessage done [10:25:28]OFDSenderStorePacket 140086 [10:25:28]StoreOFDPacket docnum=140086 [10:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 78 B5 07 01 6A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 67 00 00 00 F4 03 04 00 99 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 23 02 00 35 04 06 00 64 DC 8C DC B9 39 02 36 B3 B4 BA C6 26 C1 [10:25:28]CheckFolder [10:25:28]dirname=/storage/ofd_packets [10:25:28]CheckFolder done [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00140086 [10:25:28]NVStorageSaveData ofd_packets/00140086 [10:25:28]File name is /storage/ofd_packets/00140086 [10:25:28]Write 301 bytes [10:25:28]NVStorageSaveData done [10:25:28]OFDSenderStorePacket done [10:25:28]KKMCreateOFDPacket done [10:25:28]NVStorageSaveData kkm_last_timestamp [10:25:28]File name is /storage/kkm_last_timestamp [10:25:28]Write 4 bytes [10:25:28]NVStorageSaveData done [10:25:28]ExternCall_PrintAddStr [10:25:28]wPrintStart [10:25:28]Write to MH i2c: 01 00 00 AB 35 E0 [10:25:28]Write i2c OK [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 [10:25:28]MH_I2C_Read... [10:25:28]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 FF 0F F5 [10:25:28]RasterBufferAndPrint [10:25:28]line Счет N : (1)593940 [10:25:28]line ИНН: 02508201610067 [10:25:28]line Контрольно-Кассовый Чек [10:25:28]line ПРОДАЖА [10:25:28]line ТРК (МРК, ГНК) : 51 [10:25:28]line Товар: 2710124500 [10:25:28]line Аи-95-К-5 [10:25:28]line 10.110 * 74.20 [10:25:28]line = 750.16 [10:25:28]line НДС 12% НСП 1% [10:25:28]line > о реализуемом товаре [10:25:28]line ОКРУГЛЕНИЕ: -0.16 [10:25:28]line ИТОГО: 750.00 [10:25:28]line Внесено: 750.00 [10:25:28]line СДАЧА: 0.00 [10:25:28]line НСП 1% : 6.64 [10:25:28]line НДС 12% : 79.66 [10:25:28]line Наличными: 750.00 [10:25:28]line Безнал.: 0.00 [10:25:28]line Место: АЗС № 136 "Партнер Нефть" [10:25:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:25:28]line СНО: Общий режим [10:25:28]line Чек 103 21.08.2024 10:25 [10:25:28]line Смена: 454 ФФД: 1.0 [10:25:28]line ЗНМ: 0300000067 [10:25:28]line РНМ: 0000000000092569 [10:25:28]line Версия ККМ: 001 [10:25:28]line ФМ: 0000000000871776 [10:25:28]line ФД: 140086 [10:25:28]line ФПД: 110898418858297 [10:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102529&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140086&fm=110898418858297&tin=02508201610067®Number=0000000000092569&sum=75000 [10:25:28]written 0, free lines is 4095 [10:25:28]OFD Sender: Processing packet 140086 [packets to send 137, broken 136] [10:25:28]ProducePacketName [10:25:28]name=ofd_packets/00140086 [10:25:28]OFD Sender: To server: pG, [10:25:28]CommunicateWithHost lk.salyk.kg:30040 [10:25:28]ConnectInit lk.salyk.kg [10:25:29]Connected sock=11 [10:25: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 37 36 0F 01 00 00 78 B5 07 01 6A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 67 00 00 00 F4 03 04 00 99 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 23 02 00 35 04 06 00 64 DC 8C DC B9 39 02 36 B3 B4 BA C6 26 C1 [10:25:29]Write to MH i2c: 01 00 00 D6 35 0B [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 07 00 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: 01 07 00 D6 35 00 00 00 00 00 DD 0C FB [10:25:29]RasterBufferAndPrint [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]line [10:25:29]written 0, free lines is 3299 [10:25:29]MH_Cut [10:25:29]Write to MH i2c: D1 01 00 DD 35 01 E4 [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 01 00 [10:25:29]MH_I2C_Read... [10:25:29]Read from MH i2c: D1 01 00 DD 35 00 E3 [10:25:29]Write to MH i2c: 01 00 00 DE 35 13 [10:25:29]Write i2c OK [10:25:29]MH_I2C_Read... [10:25: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 37 36 4F 00 00 00 49 E4 47 00 1F 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 37 36 10 04 04 00 36 23 02 00 F4 03 04 00 2B 67 C5 66 B6 04 01 00 00 E6 E7 6B CF 90 35 9A B5 [10:25:29]CommunicateWithHost err = 0 [10:25:29]CheckOFDResponse [10:25:29]1017 (14) - 77093643461234 [10:25:29]1041 (16) - 0000000000871776 [10:25:29]1040 (4) - 140086 [10:25:29]1012 (4) - 21.08.2024 04:03 [10:25:29]1206 (1) - 0 [10:25:29]OFD Sender: Remove packet 140086 [10:25:29]ProducePacketName [10:25:29]name=ofd_packets/00140086 [10:25:29]NVStorageDeleteData [10:25:29]OFD Sender: No OFD packet to send [10:25:29]*** Cut start [10:25:29]*** Partial cut [10:25:29]*** CUTSNS_PIN = 1 [10:25:30]*** CUTSNS_PIN = 0 [10:25:30]*** Brake cut motor [10:25:30]Read from MH i2c: 01 [10:25:30]MH_I2C_Read... [10:25:30]*** Stop cut motor [10:25:30]*** Cut end [10:25:30]Read from MH i2c: 01 07 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: 01 07 00 DE 35 00 00 00 00 00 FF 0F 28 [10:25:30]process_action close_receipt done [10:25:30]requested_data is exist [10:25:30]produce_requested_data [10:25:30]requested_item fm.sn is exist - process it [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 11 00 00 [10:25:30]Write to MH i2c: E2 08 00 DF 35 80 11 00 00 00 00 00 00 8E [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 17 00 DF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E5 [10:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:25:30]wFMCommunicate OK [10:25:30]requested_item fd.num is exist - process it [10:25:30]SAM_PROTO_GetFieldsCounters [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 13 00 00 [10:25:30]Write to MH i2c: E2 08 00 E0 35 80 13 00 00 00 00 00 00 91 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 62 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 62 00 E0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_GetFieldsCounters done [10:25:30]requested_item shift.num is exist - process it [10:25:30]requested_item shift.opened is exist - process it [10:25:30]req_shift_opened [10:25:30]FM_GetShiftState [10:25:30]SAM_PROTO_GetShiftState [10:25:30]wFMCommunicate request_size=4 [10:25:30]MH_SAM_APDU [10:25:30]CAPDU: 80 13 01 00 [10:25:30]Write to MH i2c: E2 08 00 E1 35 80 13 01 00 00 00 00 00 93 [10:25:30]Write i2c OK [10:25:30]MH_I2C_Read... [10:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:30]Read from MH i2c: E2 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0E 00 [10:25:30]MH_I2C_Read... [10:25:30]Read from MH i2c: E2 0E 00 E1 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 13 [10:25:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:25:30]wFMCommunicate OK [10:25:30]SAM_PROTO_GetShiftState done [10:25:30]FM_GetShiftState done [10:25:30]req_shift_opened done [10:25:30]requested_item shift.open_date is exist - process it [10:25:30]req_shift_open_date [10:25:30]req_shift_open_date done [10:25:30]produce_requested_data done [10:25:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140086,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:25:30]process_action_free close_receipt [10:25:30]json_value_free [10:25:30]json_value_free done [10:25:30]process_json_proto returns [10:25:30]Send response to host [10:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140086,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:25:30]free response buf [10:25:30]execute_script done [10:25:30]execute_script returns [10:25:30]free content buf [10:25:30]Sock 7.Close socket [10:25:30]Sock 7.Thread stoped [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:28]accept exits with 9 [10:26:28]New connection [10:26:28]New thread 3066764644 created [10:26:28]Thread 3066908004 joined [10:26:28]Waiting for new connection... [10:26:28] Sock 9.Parse request [10:26:28]Sock 9.Check first char [10:26:28]Sock 9.First char is OK [10:26:28]request: POST /json_proto HTTP/1.0 [10:26:28]Method: POST [10:26:28]URL: /json_proto [10:26:28]Method is POST - this is cgi request [10:26:28]url: /json_proto [10:26:28]query_string will be loaded in cgi processing [10:26:28]execute_cgi json_proto POST (null) [10:26:28]execute_cgi path=json_proto method=POST [10:26:28]POST find Content-Length [10:26:28]Host: 172.17.45.67:8080 [10:26:28]Content-Length: 677 [10:26:28]Content-Type: application/json [10:26:28] [10:26:28]POST finish read [10:26:28]Found Content-Length = 677 [10:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:28]execute_script... [10:26: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)593941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:28]POST & json_proto [10:26:28]process_json_proto [10:26:28]json parsed OK: [10:26:28]protocol is kg_v1.0 [10:26:28]action value=close_receipt [10:26:28]process_action close_receipt [10:26:28]cmd_close_receipt [10:26:28]MH_GetDate [10:26:28]Write to MH i2c: F0 00 00 E2 35 06 [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 09 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: F0 09 00 E2 35 00 D7 C0 C5 66 5F 7F 2B 66 40 [10:26:28]GetLastDocTimeStamp 1724235929 [10:26:28]current date 1724235991 [10:26:28]FM_GetShiftState [10:26:28]SAM_PROTO_GetShiftState [10:26:28]wFMCommunicate request_size=4 [10:26:28]MH_SAM_APDU [10:26:28]CAPDU: 80 13 01 00 [10:26:28]Write to MH i2c: E2 08 00 E3 35 80 13 01 00 00 00 00 00 95 [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:28]Read from MH i2c: E2 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 0E 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 0E 00 E3 35 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 15 [10:26:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:26:28]wFMCommunicate OK [10:26:28]SAM_PROTO_GetShiftState done [10:26:28]FM_GetShiftState done [10:26:28]opened in 1724200467 [10:26:28]opened+sec_in_day 1724286867 [10:26:28]quantity*price = 50036 [10:26:28]sum+1 = 50037 [10:26:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 104 21.08.2024 10:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140087 ФПД: 155694330953795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140087&fm=155694330953795&tin=02508201610067®Number=0000000000092569&sum=50000 [10:26:29]StoreToDocumentArchive [10:26:29]shift 454 fd 140087 [10:26:29]save to /storage/0454/doc_00140087 [10:26:29]save last doc name /storage/0454/doc_00140087 to /storage/kkm_last_doc_name [10:26:29]save OK [10:26:29]Clear old archive folders... [10:26:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:29]tlvbuf is B6D9D7D0 [10:26:29]SAM_PROTO_ClearQueue [10:26:29]wFMCommunicate request_size=4 [10:26:29]MH_SAM_APDU [10:26:29]CAPDU: 80 09 00 00 [10:26:29]Write to MH i2c: E2 08 00 F0 35 80 09 00 00 00 00 00 00 97 [10:26:29]Write i2c OK [10:26:29]MH_I2C_Read... [10:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:29]Read from MH i2c: E2 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 03 00 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 03 00 F0 35 00 90 00 99 [10:26:29]RAPDU: 90 00 [10:26:29]wFMCommunicate OK [10:26:29]SAM_PROTO_ClearQueue done [10:26:29]KKMCreateOFDPacket [10:26:29]OFDProtocolAddRootSTLVToBuf [10:26:29]FM_MakeSignedData [10:26:29]FM_MakeSignedData [10:26:29]SAM_PROTO_SignData [10:26:29]wFMCommunicate request_size=4 [10:26:29]MH_SAM_APDU [10:26:29]CAPDU: 80 0D 01 02 [10:26:29]Write to MH i2c: E2 08 00 F1 35 80 0D 01 02 00 00 00 00 9F [10:26:29]Write i2c OK [10:26:29]MH_I2C_Read... [10:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:29]Read from MH i2c: E2 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 03 00 [10:26:29]MH_I2C_Read... [10:26:29]Read from MH i2c: E2 03 00 F1 35 00 90 00 9A [10:26:29]RAPDU: 90 00 [10:26:29]wFMCommunicate OK [10:26:29]wFMCommunicate request_size=255 [10:26:29]MH_SAM_APDU [10:26: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D7 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 23 02 00 35 04 06 00 8D [10:26:29]Write to MH i2c: E2 02 01 F2 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D7 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 23 02 00 35 04 06 00 8D 00 00 02 [10:26:29]Write i2c OK [10:26:29]MH_I2C_Read... [10:26:30]OFD Sender: No OFD packet to send [10:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 F2 35 00 90 00 9B [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]wFMCommunicate request_size=10 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 02 02 05 9A 69 4A 40 43 [10:26:30]Write to MH i2c: E2 0D 00 F3 35 80 0D 02 02 05 00 9A 69 4A 40 43 00 00 7C [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 03 00 F3 35 00 90 00 9C [10:26:30]RAPDU: 90 00 [10:26:30]wFMCommunicate OK [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 0D 03 02 [10:26:30]Write to MH i2c: E2 08 00 F4 35 80 0D 03 02 00 00 00 00 A4 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 0B 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 0B 00 F4 35 00 8E C4 AB 18 AA 44 31 6F 90 00 48 [10:26:30]RAPDU: 8E C4 AB 18 AA 44 31 6F 90 00 [10:26:30]wFMCommunicate OK [10:26:30]SAM_PROTO_SignData done [10:26:30]FM_MakeSignedData done [10:26:30]CreateOFDProtocolMessage [10:26:30]wFMCommunicate request_size=4 [10:26:30]MH_SAM_APDU [10:26:30]CAPDU: 80 11 00 00 [10:26:30]Write to MH i2c: E2 08 00 F5 35 80 11 00 00 00 00 00 00 A4 [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:30]Read from MH i2c: E2 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 17 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: E2 17 00 F5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FB [10:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:26:30]wFMCommunicate OK [10:26:30]CreateOFDProtocolMessage done [10:26:30]OFDSenderStorePacket 140087 [10:26:30]StoreOFDPacket docnum=140087 [10:26:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F0 C8 07 01 E0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D7 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 23 02 00 35 04 06 00 8D 9A 69 4A 40 43 8E C4 AB 18 AA 44 31 6F [10:26:30]CheckFolder [10:26:30]dirname=/storage/ofd_packets [10:26:30]CheckFolder done [10:26:30]ProducePacketName [10:26:30]name=ofd_packets/00140087 [10:26:30]NVStorageSaveData ofd_packets/00140087 [10:26:30]File name is /storage/ofd_packets/00140087 [10:26:30]Write 301 bytes [10:26:30]NVStorageSaveData done [10:26:30]OFDSenderStorePacket done [10:26:30]KKMCreateOFDPacket done [10:26:30]NVStorageSaveData kkm_last_timestamp [10:26:30]File name is /storage/kkm_last_timestamp [10:26:30]Write 4 bytes [10:26:30]NVStorageSaveData done [10:26:30]ExternCall_PrintAddStr [10:26:30]wPrintStart [10:26:30]Write to MH i2c: 01 00 00 F6 35 2B [10:26:30]Write i2c OK [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 07 00 [10:26:30]MH_I2C_Read... [10:26:30]Read from MH i2c: 01 07 00 F6 35 00 00 00 00 00 FF 0F 40 [10:26:30]RasterBufferAndPrint [10:26:30]line Счет N : (1)593941 [10:26:30]line ИНН: 02508201610067 [10:26:30]line Контрольно-Кассовый Чек [10:26:30]line ПРОДАЖА [10:26:30]line ТРК (МРК, ГНК) : 32 [10:26:30]line Товар: 2710124130 [10:26:30]line Аи-92-К-5 [10:26:30]line 7.380 * 67.80 [10:26:30]line = 500.36 [10:26:30]line НДС 12% НСП 1% [10:26:30]line > о реализуемом товаре [10:26:30]line ОКРУГЛЕНИЕ: -0.36 [10:26:30]line ИТОГО: 500.00 [10:26:30]line Внесено: 500.00 [10:26:30]line СДАЧА: 0.00 [10:26:30]line НСП 1% : 4.43 [10:26:30]line НДС 12% : 53.14 [10:26:30]line Наличными: 500.00 [10:26:30]line Безнал.: 0.00 [10:26:30]line Место: АЗС № 136 "Партнер Нефть" [10:26:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:26:30]line СНО: Общий режим [10:26:30]line Чек 104 21.08.2024 10:26 [10:26:30]line Смена: 454 ФФД: 1.0 [10:26:30]line ЗНМ: 0300000067 [10:26:30]line РНМ: 0000000000092569 [10:26:30]line Версия ККМ: 001 [10:26:30]line ФМ: 0000000000871776 [10:26:30]line ФД: 140087 [10:26:30]line ФПД: 155694330953795 [10:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T102631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140087&fm=155694330953795&tin=02508201610067®Number=0000000000092569&sum=50000 [10:26:30]OFD Sender: Processing packet 140087 [packets to send 137, broken 136] [10:26:30]ProducePacketName [10:26:30]name=ofd_packets/00140087 [10:26:30]OFD Sender: To server: pG, [10:26:30]CommunicateWithHost lk.salyk.kg:30040 [10:26:30]ConnectInit lk.salyk.kg [10:26:30]written 0, free lines is 4095 [10:26:30]Connected sock=10 [10:26: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 37 36 0F 01 00 00 F0 C8 07 01 E0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D7 C0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 23 02 00 35 04 06 00 8D 9A 69 4A 40 43 8E C4 AB 18 AA 44 31 6F [10:26: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 37 36 4F 00 00 00 4F 3F 47 00 06 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 37 36 10 04 04 00 37 23 02 00 F4 03 04 00 68 67 C5 66 B6 04 01 00 00 83 11 D4 EC 30 E1 21 9F [10:26:31]CommunicateWithHost err = 0 [10:26:31]CheckOFDResponse [10:26:31]1017 (14) - 77093643461234 [10:26:31]1041 (16) - 0000000000871776 [10:26:31]1040 (4) - 140087 [10:26:31]1012 (4) - 21.08.2024 04:04 [10:26:31]1206 (1) - 0 [10:26:31]OFD Sender: Remove packet 140087 [10:26:31]ProducePacketName [10:26:31]name=ofd_packets/00140087 [10:26:31]NVStorageDeleteData [10:26:31]Write to MH i2c: 01 00 00 21 36 57 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 07 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: 01 07 00 21 36 00 00 00 00 00 D8 0C 42 [10:26:31]RasterBufferAndPrint [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]line [10:26:31]written 0, free lines is 3296 [10:26:31]MH_Cut [10:26:31]Write to MH i2c: D1 01 00 28 36 01 30 [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 01 00 [10:26:31]MH_I2C_Read... [10:26:31]Read from MH i2c: D1 01 00 28 36 00 2F [10:26:31]Write to MH i2c: 01 00 00 29 36 5F [10:26:31]Write i2c OK [10:26:31]MH_I2C_Read... [10:26:31]OFD Sender: No OFD packet to send [10:26:31]*** Cut start [10:26:31]*** Partial cut [10:26:31]*** CUTSNS_PIN = 1 [10:26:31]*** CUTSNS_PIN = 0 [10:26:32]*** Brake cut motor [10:26:32]Read from MH i2c: 01 [10:26:32]MH_I2C_Read... [10:26:32]*** Stop cut motor [10:26:32]*** Cut end [10:26:32]Read from MH i2c: 01 07 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: 01 07 00 29 36 00 00 00 00 00 FF 0F 74 [10:26:32]process_action close_receipt done [10:26:32]requested_data is exist [10:26:32]produce_requested_data [10:26:32]requested_item fm.sn is exist - process it [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 11 00 00 [10:26:32]Write to MH i2c: E2 08 00 2A 36 80 11 00 00 00 00 00 00 DA [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 17 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 17 00 2A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [10:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:26:32]wFMCommunicate OK [10:26:32]requested_item fd.num is exist - process it [10:26:32]SAM_PROTO_GetFieldsCounters [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 13 00 00 [10:26:32]Write to MH i2c: E2 08 00 2B 36 80 13 00 00 00 00 00 00 DD [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 62 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 62 00 2B 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [10:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:32]wFMCommunicate OK [10:26:32]SAM_PROTO_GetFieldsCounters done [10:26:32]requested_item shift.num is exist - process it [10:26:32]requested_item shift.opened is exist - process it [10:26:32]req_shift_opened [10:26:32]FM_GetShiftState [10:26:32]SAM_PROTO_GetShiftState [10:26:32]wFMCommunicate request_size=4 [10:26:32]MH_SAM_APDU [10:26:32]CAPDU: 80 13 01 00 [10:26:32]Write to MH i2c: E2 08 00 2C 36 80 13 01 00 00 00 00 00 DF [10:26:32]Write i2c OK [10:26:32]MH_I2C_Read... [10:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:32]Read from MH i2c: E2 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 [10:26:32]MH_I2C_Read... [10:26:32]Read from MH i2c: E2 0E 00 2C 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [10:26:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:26:32]wFMCommunicate OK [10:26:32]SAM_PROTO_GetShiftState done [10:26:32]FM_GetShiftState done [10:26:32]req_shift_opened done [10:26:32]requested_item shift.open_date is exist - process it [10:26:32]req_shift_open_date [10:26:32]req_shift_open_date done [10:26:32]produce_requested_data done [10:26:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140087,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:26:32]process_action_free close_receipt [10:26:32]json_value_free [10:26:32]json_value_free done [10:26:32]process_json_proto returns [10:26:32]Send response to host [10:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140087,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:26:32]free response buf [10:26:32]execute_script done [10:26:32]execute_script returns [10:26:32]free content buf [10:26:32]Sock 9.Close socket [10:26:32]Sock 9.Thread stoped [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:00]accept exits with 7 [10:31:00]New connection [10:31:00]New thread 3066908004 created [10:31:00]Thread 3066764644 joined [10:31:00]Waiting for new connection... [10:31:00] Sock 7.Parse request [10:31:00]Sock 7.Check first char [10:31:00]Sock 7.First char is OK [10:31:00]request: POST /json_proto HTTP/1.0 [10:31:00]Method: POST [10:31:00]URL: /json_proto [10:31:00]Method is POST - this is cgi request [10:31:00]url: /json_proto [10:31:00]query_string will be loaded in cgi processing [10:31:00]execute_cgi json_proto POST (null) [10:31:00]execute_cgi path=json_proto method=POST [10:31:00]POST find Content-Length [10:31:00]Host: 172.17.45.67:8080 [10:31:00]Content-Length: 678 [10:31:00]Content-Type: application/json [10:31:00] [10:31:00]POST finish read [10:31:00]Found Content-Length = 678 [10:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:00]execute_script... [10: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)593942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:00]POST & json_proto [10:31:00]process_json_proto [10:31:00]json parsed OK: [10:31:00]protocol is kg_v1.0 [10:31:00]action value=close_receipt [10:31:00]process_action close_receipt [10:31:00]cmd_close_receipt [10:31:00]MH_GetDate [10:31:00]Write to MH i2c: F0 00 00 2D 36 52 [10:31:00]Write i2c OK [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: F0 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: F0 09 00 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: F0 09 00 2D 36 00 E7 C1 C5 66 5F 7F 2B 66 9D [10:31:00]GetLastDocTimeStamp 1724235991 [10:31:00]current date 1724236263 [10:31:00]FM_GetShiftState [10:31:00]SAM_PROTO_GetShiftState [10:31:00]wFMCommunicate request_size=4 [10:31:00]MH_SAM_APDU [10:31:00]CAPDU: 80 13 01 00 [10:31:00]Write to MH i2c: E2 08 00 2E 36 80 13 01 00 00 00 00 00 E1 [10:31:00]Write i2c OK [10:31:00]MH_I2C_Read... [10:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:00]Read from MH i2c: E2 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: E2 0E 00 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: E2 0E 00 2E 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [10:31:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:31:00]wFMCommunicate OK [10:31:00]SAM_PROTO_GetShiftState done [10:31:00]FM_GetShiftState done [10:31:00]opened in 1724200467 [10:31:00]opened+sec_in_day 1724286867 [10:31:00]quantity*price = 90038 [10:31:00]sum+1 = 90039 [10:31:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 105 21.08.2024 10:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140088 ФПД: 243037885279056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103103&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140088&fm=243037885279056&tin=02508201610067®Number=0000000000092569&sum=90000 [10:31:01]StoreToDocumentArchive [10:31:01]shift 454 fd 140088 [10:31:01]save to /storage/0454/doc_00140088 [10:31:01]save last doc name /storage/0454/doc_00140088 to /storage/kkm_last_doc_name [10:31:01]save OK [10:31:01]Clear old archive folders... [10:31:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:01]tlvbuf is 00A0A860 [10:31:01]SAM_PROTO_ClearQueue [10:31:01]wFMCommunicate request_size=4 [10:31:01]MH_SAM_APDU [10:31:01]CAPDU: 80 09 00 00 [10:31:01]Write to MH i2c: E2 08 00 3B 36 80 09 00 00 00 00 00 00 E3 [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 [10:31:01]MH_I2C_Read... [10:31:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:01]Read from MH i2c: E2 03 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 3B 36 00 90 00 E5 [10:31:01]RAPDU: 90 00 [10:31:01]wFMCommunicate OK [10:31:01]SAM_PROTO_ClearQueue done [10:31:01]KKMCreateOFDPacket [10:31:01]OFDProtocolAddRootSTLVToBuf [10:31:01]FM_MakeSignedData [10:31:01]FM_MakeSignedData [10:31:01]SAM_PROTO_SignData [10:31:01]wFMCommunicate request_size=4 [10:31:01]MH_SAM_APDU [10:31:01]CAPDU: 80 0D 01 02 [10:31:01]Write to MH i2c: E2 08 00 3C 36 80 0D 01 02 00 00 00 00 EB [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:01]Read from MH i2c: E2 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 3C 36 00 90 00 E6 [10:31:01]RAPDU: 90 00 [10:31:01]wFMCommunicate OK [10:31:01]wFMCommunicate request_size=255 [10:31:01]MH_SAM_APDU [10: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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 23 02 00 35 04 06 00 DD [10:31:01]Write to MH i2c: E2 02 01 3D 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 23 02 00 35 04 06 00 DD 00 00 7A [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:01]Read from MH i2c: E2 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 3D 36 00 90 00 E7 [10:31:01]RAPDU: 90 00 [10:31:01]wFMCommunicate OK [10:31:01]wFMCommunicate request_size=10 [10:31:01]MH_SAM_APDU [10:31:01]CAPDU: 80 0D 02 02 05 0A AA D1 AB 50 [10:31:01]Write to MH i2c: E2 0D 00 3E 36 80 0D 02 02 05 00 0A AA D1 AB 50 00 00 78 [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:01]Read from MH i2c: E2 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 [10:31:01]MH_I2C_Read... [10:31:01]Read from MH i2c: E2 03 00 3E 36 00 90 00 E8 [10:31:01]RAPDU: 90 00 [10:31:01]wFMCommunicate OK [10:31:01]wFMCommunicate request_size=4 [10:31:01]MH_SAM_APDU [10:31:01]CAPDU: 80 0D 03 02 [10:31:01]Write to MH i2c: E2 08 00 3F 36 80 0D 03 02 00 00 00 00 F0 [10:31:01]Write i2c OK [10:31:01]MH_I2C_Read... [10:31:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:02]Read from MH i2c: E2 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 0B 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 0B 00 3F 36 00 F8 97 1B B6 3C 60 47 4A 90 00 7E [10:31:02]RAPDU: F8 97 1B B6 3C 60 47 4A 90 00 [10:31:02]wFMCommunicate OK [10:31:02]SAM_PROTO_SignData done [10:31:02]FM_MakeSignedData done [10:31:02]CreateOFDProtocolMessage [10:31:02]wFMCommunicate request_size=4 [10:31:02]MH_SAM_APDU [10:31:02]CAPDU: 80 11 00 00 [10:31:02]Write to MH i2c: E2 08 00 40 36 80 11 00 00 00 00 00 00 F0 [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]OFD Sender: No OFD packet to send [10:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:02]Read from MH i2c: E2 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 17 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: E2 17 00 40 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [10:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:02]wFMCommunicate OK [10:31:02]CreateOFDProtocolMessage done [10:31:02]OFDSenderStorePacket 140088 [10:31:02]StoreOFDPacket docnum=140088 [10:31:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 88 07 01 3B 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 23 02 00 35 04 06 00 DD 0A AA D1 AB 50 F8 97 1B B6 3C 60 47 4A [10:31:02]CheckFolder [10:31:02]dirname=/storage/ofd_packets [10:31:02]CheckFolder done [10:31:02]ProducePacketName [10:31:02]name=ofd_packets/00140088 [10:31:02]NVStorageSaveData ofd_packets/00140088 [10:31:02]File name is /storage/ofd_packets/00140088 [10:31:02]Write 301 bytes [10:31:02]NVStorageSaveData done [10:31:02]OFDSenderStorePacket done [10:31:02]KKMCreateOFDPacket done [10:31:02]NVStorageSaveData kkm_last_timestamp [10:31:02]File name is /storage/kkm_last_timestamp [10:31:02]Write 4 bytes [10:31:02]NVStorageSaveData done [10:31:02]ExternCall_PrintAddStr [10:31:02]wPrintStart [10:31:02]Write to MH i2c: 01 00 00 41 36 77 [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 07 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 07 00 41 36 00 00 00 00 00 FF 0F 8C [10:31:02]RasterBufferAndPrint [10:31:02]line Счет N : (1)593942 [10:31:02]line ИНН: 02508201610067 [10:31:02]line Контрольно-Кассовый Чек [10:31:02]line ПРОДАЖА [10:31:02]line ТРК (МРК, ГНК) : 32 [10:31:02]line Товар: 2710124130 [10:31:02]line Аи-92-К-5 [10:31:02]line 13.280 * 67.80 [10:31:02]line = 900.38 [10:31:02]line НДС 12% НСП 1% [10:31:02]line > о реализуемом товаре [10:31:02]line ОКРУГЛЕНИЕ: -0.38 [10:31:02]line ИТОГО: 900.00 [10:31:02]line Внесено: 900.00 [10:31:02]line СДАЧА: 0.00 [10:31:02]line НСП 1% : 7.97 [10:31:02]line НДС 12% : 95.62 [10:31:02]line Наличными: 900.00 [10:31:02]line Безнал.: 0.00 [10:31:02]line Место: АЗС № 136 "Партнер Нефть" [10:31:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:31:02]line СНО: Общий режим [10:31:02]line Чек 105 21.08.2024 10:31 [10:31:02]line Смена: 454 ФФД: 1.0 [10:31:02]line ЗНМ: 0300000067 [10:31:02]line РНМ: 0000000000092569 [10:31:02]line Версия ККМ: 001 [10:31:02]line ФМ: 0000000000871776 [10:31:02]line ФД: 140088 [10:31:02]line ФПД: 243037885279056 [10:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103103&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140088&fm=243037885279056&tin=02508201610067®Number=0000000000092569&sum=90000 [10:31:02]OFD Sender: Processing packet 140088 [packets to send 137, broken 136] [10:31:02]ProducePacketName [10:31:02]name=ofd_packets/00140088 [10:31:02]OFD Sender: To server: pG, [10:31:02]CommunicateWithHost lk.salyk.kg:30040 [10:31:02]ConnectInit lk.salyk.kg [10:31:02]written 0, free lines is 4095 [10:31:02]Connected sock=10 [10: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 37 36 0F 01 00 00 5D 88 07 01 3B 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 23 02 00 35 04 06 00 DD 0A AA D1 AB 50 F8 97 1B B6 3C 60 47 4A [10: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 37 36 4F 00 00 00 FC E9 47 00 A9 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 23 02 00 F4 03 04 00 78 68 C5 66 B6 04 01 00 00 9A E1 53 CD 4E E9 D7 C9 [10:31:02]CommunicateWithHost err = 0 [10:31:02]CheckOFDResponse [10:31:02]1017 (14) - 77093643461234 [10:31:02]1041 (16) - 0000000000871776 [10:31:02]1040 (4) - 140088 [10:31:02]1012 (4) - 21.08.2024 04:09 [10:31:02]1206 (1) - 0 [10:31:02]OFD Sender: Remove packet 140088 [10:31:02]ProducePacketName [10:31:02]name=ofd_packets/00140088 [10:31:02]NVStorageDeleteData [10:31:02]Write to MH i2c: 01 00 00 6C 36 A2 [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 07 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: 01 07 00 6C 36 00 00 00 00 00 DF 0C 94 [10:31:02]RasterBufferAndPrint [10:31:02]line [10:31:02]line [10:31:02]line [10:31:02]line [10:31:02]line [10:31:02]written 0, free lines is 3300 [10:31:02]MH_Cut [10:31:02]Write to MH i2c: D1 01 00 73 36 01 7B [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: D1 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: D1 01 00 [10:31:02]MH_I2C_Read... [10:31:02]Read from MH i2c: D1 01 00 73 36 00 7A [10:31:02]Write to MH i2c: 01 00 00 74 36 AA [10:31:02]Write i2c OK [10:31:02]MH_I2C_Read... [10:31:03]OFD Sender: No OFD packet to send [10:31:03]*** Cut start [10:31:03]*** Partial cut [10:31:03]*** CUTSNS_PIN = 1 [10:31:03]*** CUTSNS_PIN = 0 [10:31:03]*** Brake cut motor [10:31:04]Read from MH i2c: 01 [10:31:04]MH_I2C_Read... [10:31:04]*** Stop cut motor [10:31:04]*** Cut end [10:31:04]Read from MH i2c: 01 07 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: 01 07 00 74 36 00 00 00 00 00 FF 0F BF [10:31:04]process_action close_receipt done [10:31:04]requested_data is exist [10:31:04]produce_requested_data [10:31:04]requested_item fm.sn is exist - process it [10:31:04]wFMCommunicate request_size=4 [10:31:04]MH_SAM_APDU [10:31:04]CAPDU: 80 11 00 00 [10:31:04]Write to MH i2c: E2 08 00 75 36 80 11 00 00 00 00 00 00 25 [10:31:04]Write i2c OK [10:31:04]MH_I2C_Read... [10:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:04]Read from MH i2c: E2 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 17 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 17 00 75 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [10:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:04]wFMCommunicate OK [10:31:04]requested_item fd.num is exist - process it [10:31:04]SAM_PROTO_GetFieldsCounters [10:31:04]wFMCommunicate request_size=4 [10:31:04]MH_SAM_APDU [10:31:04]CAPDU: 80 13 00 00 [10:31:04]Write to MH i2c: E2 08 00 76 36 80 13 00 00 00 00 00 00 28 [10:31:04]Write i2c OK [10:31:04]MH_I2C_Read... [10:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:04]Read from MH i2c: E2 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 62 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 62 00 76 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:04]wFMCommunicate OK [10:31:04]SAM_PROTO_GetFieldsCounters done [10:31:04]requested_item shift.num is exist - process it [10:31:04]requested_item shift.opened is exist - process it [10:31:04]req_shift_opened [10:31:04]FM_GetShiftState [10:31:04]SAM_PROTO_GetShiftState [10:31:04]wFMCommunicate request_size=4 [10:31:04]MH_SAM_APDU [10:31:04]CAPDU: 80 13 01 00 [10:31:04]Write to MH i2c: E2 08 00 77 36 80 13 01 00 00 00 00 00 2A [10:31:04]Write i2c OK [10:31:04]MH_I2C_Read... [10:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:04]Read from MH i2c: E2 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 0E 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 0E 00 77 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AA [10:31:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:31:04]wFMCommunicate OK [10:31:04]SAM_PROTO_GetShiftState done [10:31:04]FM_GetShiftState done [10:31:04]req_shift_opened done [10:31:04]requested_item shift.open_date is exist - process it [10:31:04]req_shift_open_date [10:31:04]req_shift_open_date done [10:31:04]produce_requested_data done [10:31:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140088,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:31:04]process_action_free close_receipt [10:31:04]json_value_free [10:31:04]json_value_free done [10:31:04]process_json_proto returns [10:31:04]Send response to host [10:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140088,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:31:04]free response buf [10:31:04]execute_script done [10:31:04]execute_script returns [10:31:04]free content buf [10:31:04]Sock 7.Close socket [10:31:04]Sock 7.Thread stoped [10:31:04]accept exits with 9 [10:31:04]New connection [10:31:04]New thread 3066764644 created [10:31:04]Thread 3066908004 joined [10:31:04]Waiting for new connection... [10:31:04] Sock 9.Parse request [10:31:04]Sock 9.Check first char [10:31:04]Sock 9.First char is OK [10:31:04]request: POST /json_proto HTTP/1.0 [10:31:04]Method: POST [10:31:04]URL: /json_proto [10:31:04]Method is POST - this is cgi request [10:31:04]url: /json_proto [10:31:04]query_string will be loaded in cgi processing [10:31:04]execute_cgi json_proto POST (null) [10:31:04]execute_cgi path=json_proto method=POST [10:31:04]POST find Content-Length [10:31:04]Host: 172.17.45.67:8080 [10:31:04]Content-Length: 678 [10:31:04]Content-Type: application/json [10:31:04] [10:31:04]POST finish read [10:31:04]Found Content-Length = 678 [10:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:04]execute_script... [10:31:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:04]POST & json_proto [10:31:04]process_json_proto [10:31:04]json parsed OK: [10:31:04]protocol is kg_v1.0 [10:31:04]action value=close_receipt [10:31:04]process_action close_receipt [10:31:04]cmd_close_receipt [10:31:04]MH_GetDate [10:31:04]Write to MH i2c: F0 00 00 78 36 9D [10:31:04]Write i2c OK [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: F0 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: F0 09 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: F0 09 00 78 36 00 EB C1 C5 66 5F 7F 2B 66 EC [10:31:04]GetLastDocTimeStamp 1724236263 [10:31:04]current date 1724236267 [10:31:04]FM_GetShiftState [10:31:04]SAM_PROTO_GetShiftState [10:31:04]wFMCommunicate request_size=4 [10:31:04]MH_SAM_APDU [10:31:04]CAPDU: 80 13 01 00 [10:31:04]Write to MH i2c: E2 08 00 79 36 80 13 01 00 00 00 00 00 2C [10:31:04]Write i2c OK [10:31:04]MH_I2C_Read... [10:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:04]Read from MH i2c: E2 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 0E 00 [10:31:04]MH_I2C_Read... [10:31:04]Read from MH i2c: E2 0E 00 79 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [10:31:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:31:04]wFMCommunicate OK [10:31:04]SAM_PROTO_GetShiftState done [10:31:04]FM_GetShiftState done [10:31:04]opened in 1724200467 [10:31:04]opened+sec_in_day 1724286867 [10:31:04]quantity*price = 70037 [10:31:04]sum+1 = 70038 [10:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 106 21.08.2024 10:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140089 ФПД: 97816081711476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140089&fm=97816081711476&tin=02508201610067®Number=0000000000092569&sum=70000 [10:31:06]StoreToDocumentArchive [10:31:06]shift 454 fd 140089 [10:31:06]save to /storage/0454/doc_00140089 [10:31:06]save last doc name /storage/0454/doc_00140089 to /storage/kkm_last_doc_name [10:31:06]save OK [10:31:06]Clear old archive folders... [10:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:06]tlvbuf is 00B4C4B0 [10:31:06]SAM_PROTO_ClearQueue [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 09 00 00 [10:31:06]Write to MH i2c: E2 08 00 86 36 80 09 00 00 00 00 00 00 2E [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 86 36 00 90 00 30 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]SAM_PROTO_ClearQueue done [10:31:06]KKMCreateOFDPacket [10:31:06]OFDProtocolAddRootSTLVToBuf [10:31:06]FM_MakeSignedData [10:31:06]FM_MakeSignedData [10:31:06]SAM_PROTO_SignData [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 01 02 [10:31:06]Write to MH i2c: E2 08 00 87 36 80 0D 01 02 00 00 00 00 36 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 87 36 00 90 00 31 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=255 [10:31:06]MH_SAM_APDU [10:31: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EC C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 23 02 00 35 04 06 00 58 [10:31:06]Write to MH i2c: E2 02 01 88 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EC C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 23 02 00 35 04 06 00 58 00 00 65 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 88 36 00 90 00 32 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=10 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 02 02 05 F6 94 CD C1 74 [10:31:06]Write to MH i2c: E2 0D 00 89 36 80 0D 02 02 05 00 F6 94 CD C1 74 00 00 CF [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 03 00 89 36 00 90 00 33 [10:31:06]RAPDU: 90 00 [10:31:06]wFMCommunicate OK [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 0D 03 02 [10:31:06]Write to MH i2c: E2 08 00 8A 36 80 0D 03 02 00 00 00 00 3B [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0B 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0B 00 8A 36 00 61 CB BE DA C1 76 DB 21 90 00 33 [10:31:06]RAPDU: 61 CB BE DA C1 76 DB 21 90 00 [10:31:06]wFMCommunicate OK [10:31:06]SAM_PROTO_SignData done [10:31:06]FM_MakeSignedData done [10:31:06]CreateOFDProtocolMessage [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 11 00 00 [10:31:06]Write to MH i2c: E2 08 00 8B 36 80 11 00 00 00 00 00 00 3B [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 17 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 17 00 8B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [10:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:06]wFMCommunicate OK [10:31:06]CreateOFDProtocolMessage done [10:31:06]OFDSenderStorePacket 140089 [10:31:06]StoreOFDPacket docnum=140089 [10:31:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 EF 07 01 EF 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EC C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 23 02 00 35 04 06 00 58 F6 94 CD C1 74 61 CB BE DA C1 76 DB 21 [10:31:07]CheckFolder [10:31:07]dirname=/storage/ofd_packets [10:31:07]CheckFolder done [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00140089 [10:31:07]NVStorageSaveData ofd_packets/00140089 [10:31:07]File name is /storage/ofd_packets/00140089 [10:31:07]Write 301 bytes [10:31:07]NVStorageSaveData done [10:31:07]OFDSenderStorePacket done [10:31:07]KKMCreateOFDPacket done [10:31:07]NVStorageSaveData kkm_last_timestamp [10:31:07]File name is /storage/kkm_last_timestamp [10:31:07]Write 4 bytes [10:31:07]NVStorageSaveData done [10:31:07]ExternCall_PrintAddStr [10:31:07]wPrintStart [10:31:07]Write to MH i2c: 01 00 00 8C 36 C2 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 8C 36 00 00 00 00 00 FF 0F D7 [10:31:07]RasterBufferAndPrint [10:31:07]line Счет N : (1)593943 [10:31:07]line ИНН: 02508201610067 [10:31:07]line Контрольно-Кассовый Чек [10:31:07]line ПРОДАЖА [10:31:07]line ТРК (МРК, ГНК) : 42 [10:31:07]line Товар: 2710124130 [10:31:07]line Аи-92-К-5 [10:31:07]line 10.330 * 67.80 [10:31:07]line = 700.37 [10:31:07]line НДС 12% НСП 1% [10:31:07]line > о реализуемом товаре [10:31:07]line ОКРУГЛЕНИЕ: -0.37 [10:31:07]line ИТОГО: 700.00 [10:31:07]line Внесено: 700.00 [10:31:07]line СДАЧА: 0.00 [10:31:07]line НСП 1% : 6.20 [10:31:07]line НДС 12% : 74.38 [10:31:07]line Наличными: 700.00 [10:31:07]line Безнал.: 0.00 [10:31:07]line Место: АЗС № 136 "Партнер Нефть" [10:31:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:31:07]line СНО: Общий режим [10:31:07]line Чек 106 21.08.2024 10:31 [10:31:07]line Смена: 454 ФФД: 1.0 [10:31:07]line ЗНМ: 0300000067 [10:31:07]line РНМ: 0000000000092569 [10:31:07]line Версия ККМ: 001 [10:31:07]line ФМ: 0000000000871776 [10:31:07]line ФД: 140089 [10:31:07]line ФПД: 97816081711476 [10:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140089&fm=97816081711476&tin=02508201610067®Number=0000000000092569&sum=70000 [10:31:07]written 0, free lines is 4095 [10:31:07]OFD Sender: Processing packet 140089 [packets to send 137, broken 136] [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00140089 [10:31:07]OFD Sender: To server: pG, [10:31:07]CommunicateWithHost lk.salyk.kg:30040 [10:31:07]ConnectInit lk.salyk.kg [10:31:07]Connected sock=11 [10:31: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 37 36 0F 01 00 00 B7 EF 07 01 EF 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 EC C1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 23 02 00 35 04 06 00 58 F6 94 CD C1 74 61 CB BE DA C1 76 DB 21 [10:31:07]Write to MH i2c: 01 00 00 B7 36 ED [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 B7 36 00 00 00 00 00 CD 0C CD [10:31:07]RasterBufferAndPrint [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]line [10:31:07]written 0, free lines is 3290 [10:31:07]MH_Cut [10:31:07]Write to MH i2c: D1 01 00 BE 36 01 C6 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 01 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: D1 01 00 BE 36 00 C5 [10:31:07]Write to MH i2c: 01 00 00 BF 36 F5 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 18 68 47 00 A4 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 37 36 10 04 04 00 39 23 02 00 F4 03 04 00 7D 68 C5 66 B6 04 01 00 00 08 CE D8 82 61 98 F2 EC [10:31:07]CommunicateWithHost err = 0 [10:31:07]CheckOFDResponse [10:31:07]1017 (14) - 77093643461234 [10:31:07]1041 (16) - 0000000000871776 [10:31:07]1040 (4) - 140089 [10:31:07]1012 (4) - 21.08.2024 04:09 [10:31:07]1206 (1) - 0 [10:31:07]OFD Sender: Remove packet 140089 [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00140089 [10:31:07]NVStorageDeleteData [10:31:08]OFD Sender: No OFD packet to send [10:31:08]*** Cut start [10:31:08]*** Partial cut [10:31:08]*** CUTSNS_PIN = 1 [10:31:08]*** CUTSNS_PIN = 0 [10:31:08]*** Brake cut motor [10:31:08]Read from MH i2c: 01 [10:31:08]MH_I2C_Read... [10:31:08]*** Stop cut motor [10:31:08]*** Cut end [10:31:08]Read from MH i2c: 01 07 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 07 00 BF 36 00 00 00 00 00 FF 0F 0A [10:31:08]process_action close_receipt done [10:31:08]requested_data is exist [10:31:08]produce_requested_data [10:31:08]requested_item fm.sn is exist - process it [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 11 00 00 [10:31:08]Write to MH i2c: E2 08 00 C0 36 80 11 00 00 00 00 00 00 70 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 17 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 17 00 C0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C7 [10:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:31:09]wFMCommunicate OK [10:31:09]requested_item fd.num is exist - process it [10:31:09]SAM_PROTO_GetFieldsCounters [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 13 00 00 [10:31:09]Write to MH i2c: E2 08 00 C1 36 80 13 00 00 00 00 00 00 73 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:09]Read from MH i2c: E2 62 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 62 00 C1 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [10:31:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:09]wFMCommunicate OK [10:31:09]SAM_PROTO_GetFieldsCounters done [10:31:09]requested_item shift.num is exist - process it [10:31:09]requested_item shift.opened is exist - process it [10:31:09]req_shift_opened [10:31:09]FM_GetShiftState [10:31:09]SAM_PROTO_GetShiftState [10:31:09]wFMCommunicate request_size=4 [10:31:09]MH_SAM_APDU [10:31:09]CAPDU: 80 13 01 00 [10:31:09]Write to MH i2c: E2 08 00 C2 36 80 13 01 00 00 00 00 00 75 [10:31:09]Write i2c OK [10:31:09]MH_I2C_Read... [10:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:09]Read from MH i2c: E2 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 [10:31:09]MH_I2C_Read... [10:31:09]Read from MH i2c: E2 0E 00 C2 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F5 [10:31:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:31:09]wFMCommunicate OK [10:31:09]SAM_PROTO_GetShiftState done [10:31:09]FM_GetShiftState done [10:31:09]req_shift_opened done [10:31:09]requested_item shift.open_date is exist - process it [10:31:09]req_shift_open_date [10:31:09]req_shift_open_date done [10:31:09]produce_requested_data done [10:31:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140089,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:31:09]process_action_free close_receipt [10:31:09]json_value_free [10:31:09]json_value_free done [10:31:09]process_json_proto returns [10:31:09]Send response to host [10:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140089,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:31:09]free response buf [10:31:09]execute_script done [10:31:09]execute_script returns [10:31:09]free content buf [10:31:09]Sock 9.Close socket [10:31:09]Sock 9.Thread stoped [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:11]accept exits with 7 [10:32:11]New connection [10:32:11]New thread 3066908004 created [10:32:11]Thread 3066764644 joined [10:32:11]Waiting for new connection... [10:32:11] Sock 7.Parse request [10:32:11]Sock 7.Check first char [10:32:11]Sock 7.First char is OK [10:32:11]request: POST /json_proto HTTP/1.0 [10:32:11]Method: POST [10:32:11]URL: /json_proto [10:32:11]Method is POST - this is cgi request [10:32:11]url: /json_proto [10:32:11]query_string will be loaded in cgi processing [10:32:11]execute_cgi json_proto POST (null) [10:32:11]execute_cgi path=json_proto method=POST [10:32:11]POST find Content-Length [10:32:11]Host: 172.17.45.67:8080 [10:32:11]Content-Length: 677 [10:32:11]Content-Type: application/json [10:32:11] [10:32:11]POST finish read [10:32:11]Found Content-Length = 677 [10:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:11]execute_script... [10:32: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)593944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:11]POST & json_proto [10:32:11]process_json_proto [10:32:11]json parsed OK: [10:32:11]protocol is kg_v1.0 [10:32:11]action value=close_receipt [10:32:11]process_action close_receipt [10:32:11]cmd_close_receipt [10:32:11]MH_GetDate [10:32:11]Write to MH i2c: F0 00 00 C3 36 E8 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 09 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: F0 09 00 C3 36 00 2E C2 C5 66 5F 7F 2B 66 7B [10:32:11]GetLastDocTimeStamp 1724236268 [10:32:11]current date 1724236334 [10:32:11]FM_GetShiftState [10:32:11]SAM_PROTO_GetShiftState [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 13 01 00 [10:32:11]Write to MH i2c: E2 08 00 C4 36 80 13 01 00 00 00 00 00 77 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 C4 36 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F7 [10:32:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetShiftState done [10:32:11]FM_GetShiftState done [10:32:11]opened in 1724200467 [10:32:11]opened+sec_in_day 1724286867 [10:32:11]quantity*price = 50036 [10:32:11]sum+1 = 50037 [10:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 107 21.08.2024 10:32 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140090 ФПД: 230612693840327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140090&fm=230612693840327&tin=02508201610067®Number=0000000000092569&sum=50000 [10:32:12]StoreToDocumentArchive [10:32:12]shift 454 fd 140090 [10:32:12]save to /storage/0454/doc_00140090 [10:32:12]save last doc name /storage/0454/doc_00140090 to /storage/kkm_last_doc_name [10:32:12]save OK [10:32:12]Clear old archive folders... [10:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:12]tlvbuf is 00A54830 [10:32:12]SAM_PROTO_ClearQueue [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 09 00 00 [10:32:12]Write to MH i2c: E2 08 00 D1 36 80 09 00 00 00 00 00 00 79 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 D1 36 00 90 00 7B [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_ClearQueue done [10:32:12]KKMCreateOFDPacket [10:32:12]OFDProtocolAddRootSTLVToBuf [10:32:12]FM_MakeSignedData [10:32:12]FM_MakeSignedData [10:32:12]SAM_PROTO_SignData [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 01 02 [10:32:12]Write to MH i2c: E2 08 00 D2 36 80 0D 01 02 00 00 00 00 81 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 D2 36 00 90 00 7C [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=255 [10:32:12]MH_SAM_APDU [10:32: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2E C2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 23 02 00 35 04 06 00 D1 [10:32:12]Write to MH i2c: E2 02 01 D3 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2E C2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 23 02 00 35 04 06 00 D1 00 00 87 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 D3 36 00 90 00 7D [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=10 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 02 02 05 BD B3 B2 71 C7 [10:32:12]Write to MH i2c: E2 0D 00 D4 36 80 0D 02 02 05 00 BD B3 B2 71 C7 00 00 E8 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 03 00 D4 36 00 90 00 7E [10:32:12]RAPDU: 90 00 [10:32:12]wFMCommunicate OK [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 0D 03 02 [10:32:12]Write to MH i2c: E2 08 00 D5 36 80 0D 03 02 00 00 00 00 86 [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0B 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0B 00 D5 36 00 1D 8A 3D 92 70 76 76 38 90 00 91 [10:32:13]RAPDU: 1D 8A 3D 92 70 76 76 38 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_SignData done [10:32:13]FM_MakeSignedData done [10:32:13]CreateOFDProtocolMessage [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 11 00 00 [10:32:13]Write to MH i2c: E2 08 00 D6 36 80 11 00 00 00 00 00 00 86 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 D6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DD [10:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:13]wFMCommunicate OK [10:32:13]CreateOFDProtocolMessage done [10:32:13]OFDSenderStorePacket 140090 [10:32:13]StoreOFDPacket docnum=140090 [10:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D2 C2 07 01 3D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2E C2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 23 02 00 35 04 06 00 D1 BD B3 B2 71 C7 1D 8A 3D 92 70 76 76 38 [10:32:13]CheckFolder [10:32:13]dirname=/storage/ofd_packets [10:32:13]CheckFolder done [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00140090 [10:32:13]NVStorageSaveData ofd_packets/00140090 [10:32:13]File name is /storage/ofd_packets/00140090 [10:32:13]Write 301 bytes [10:32:13]NVStorageSaveData done [10:32:13]OFDSenderStorePacket done [10:32:13]KKMCreateOFDPacket done [10:32:13]NVStorageSaveData kkm_last_timestamp [10:32:13]File name is /storage/kkm_last_timestamp [10:32:13]Write 4 bytes [10:32:13]NVStorageSaveData done [10:32:13]ExternCall_PrintAddStr [10:32:13]wPrintStart [10:32:13]Write to MH i2c: 01 00 00 D7 36 0D [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 D7 36 00 00 00 00 00 FF 0F 22 [10:32:13]RasterBufferAndPrint [10:32:13]line Счет N : (1)593944 [10:32:13]line ИНН: 02508201610067 [10:32:13]line Контрольно-Кассовый Чек [10:32:13]line ПРОДАЖА [10:32:13]line ТРК (МРК, ГНК) : 62 [10:32:13]line Товар: 2710124130 [10:32:13]line Аи-92-К-5 [10:32:13]line 7.380 * 67.80 [10:32:13]line = 500.36 [10:32:13]line НДС 12% НСП 1% [10:32:13]line > о реализуемом товаре [10:32:13]line ОКРУГЛЕНИЕ: -0.36 [10:32:13]line ИТОГО: 500.00 [10:32:13]line Внесено: 500.00 [10:32:13]line СДАЧА: 0.00 [10:32:13]line НСП 1% : 4.43 [10:32:13]line НДС 12% : 53.14 [10:32:13]line Наличными: 500.00 [10:32:13]line Безнал.: 0.00 [10:32:13]line Место: АЗС № 136 "Партнер Нефть" [10:32:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:32:13]line СНО: Общий режим [10:32:13]line Чек 107 21.08.2024 10:32 [10:32:13]line Смена: 454 ФФД: 1.0 [10:32:13]line ЗНМ: 0300000067 [10:32:13]line РНМ: 0000000000092569 [10:32:13]line Версия ККМ: 001 [10:32:13]line ФМ: 0000000000871776 [10:32:13]line ФД: 140090 [10:32:13]line ФПД: 230612693840327 [10:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140090&fm=230612693840327&tin=02508201610067®Number=0000000000092569&sum=50000 [10:32:13]OFD Sender: Processing packet 140090 [packets to send 137, broken 136] [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00140090 [10:32:13]OFD Sender: To server: pG, [10:32:13]CommunicateWithHost lk.salyk.kg:30040 [10:32:13]ConnectInit lk.salyk.kg [10:32:13]written 0, free lines is 4095 [10:32:13]Connected sock=10 [10:32: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 37 36 0F 01 00 00 D2 C2 07 01 3D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2E C2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 23 02 00 35 04 06 00 D1 BD B3 B2 71 C7 1D 8A 3D 92 70 76 76 38 [10:32: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 37 36 4F 00 00 00 EF 9F 47 00 8B 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 37 36 10 04 04 00 3A 23 02 00 F4 03 04 00 BF 68 C5 66 B6 04 01 00 00 FC 00 B1 55 20 42 F7 AA [10:32:13]CommunicateWithHost err = 0 [10:32:13]CheckOFDResponse [10:32:13]1017 (14) - 77093643461234 [10:32:13]1041 (16) - 0000000000871776 [10:32:13]1040 (4) - 140090 [10:32:13]1012 (4) - 21.08.2024 04:10 [10:32:13]1206 (1) - 0 [10:32:13]OFD Sender: Remove packet 140090 [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00140090 [10:32:13]NVStorageDeleteData [10:32:13]Write to MH i2c: 01 00 00 02 37 39 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 02 37 00 00 00 00 00 D4 0C 20 [10:32:13]RasterBufferAndPrint [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]line [10:32:13]written 0, free lines is 3292 [10:32:13]MH_Cut [10:32:13]Write to MH i2c: D1 01 00 09 37 01 12 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: D1 01 00 09 37 00 11 [10:32:13]Write to MH i2c: 01 00 00 0A 37 41 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:14]OFD Sender: No OFD packet to send [10:32:14]*** Cut start [10:32:14]*** Partial cut [10:32:14]*** CUTSNS_PIN = 1 [10:32:14]*** CUTSNS_PIN = 0 [10:32:14]*** Brake cut motor [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]*** Stop cut motor [10:32:15]*** Cut end [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 0A 37 00 00 00 00 00 FF 0F 56 [10:32:15]process_action close_receipt done [10:32:15]requested_data is exist [10:32:15]produce_requested_data [10:32:15]requested_item fm.sn is exist - process it [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 11 00 00 [10:32:15]Write to MH i2c: E2 08 00 0B 37 80 11 00 00 00 00 00 00 BC [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 0B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [10:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:32:15]wFMCommunicate OK [10:32:15]requested_item fd.num is exist - process it [10:32:15]SAM_PROTO_GetFieldsCounters [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 13 00 00 [10:32:15]Write to MH i2c: E2 08 00 0C 37 80 13 00 00 00 00 00 00 BF [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 62 00 0C 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetFieldsCounters done [10:32:15]requested_item shift.num is exist - process it [10:32:15]requested_item shift.opened is exist - process it [10:32:15]req_shift_opened [10:32:15]FM_GetShiftState [10:32:15]SAM_PROTO_GetShiftState [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 13 01 00 [10:32:15]Write to MH i2c: E2 08 00 0D 37 80 13 01 00 00 00 00 00 C1 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0E 00 0D 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 41 [10:32:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_GetShiftState done [10:32:15]FM_GetShiftState done [10:32:15]req_shift_opened done [10:32:15]requested_item shift.open_date is exist - process it [10:32:15]req_shift_open_date [10:32:15]req_shift_open_date done [10:32:15]produce_requested_data done [10:32:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140090,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:32:15]process_action_free close_receipt [10:32:15]json_value_free [10:32:15]json_value_free done [10:32:15]process_json_proto returns [10:32:15]Send response to host [10:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140090,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:32:15]free response buf [10:32:15]execute_script done [10:32:15]execute_script returns [10:32:15]free content buf [10:32:15]Sock 7.Close socket [10:32:15]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:30]recv_with_timeout no data received [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:46]accept exits with 9 [10:37:46]New connection [10:37:46]New thread 3066764644 created [10:37:46]Thread 3066908004 joined [10:37:46]Waiting for new connection... [10:37:46] Sock 9.Parse request [10:37:46]Sock 9.Check first char [10:37:46]Sock 9.First char is OK [10:37:46]request: POST /json_proto HTTP/1.0 [10:37:46]Method: POST [10:37:46]URL: /json_proto [10:37:46]Method is POST - this is cgi request [10:37:46]url: /json_proto [10:37:46]query_string will be loaded in cgi processing [10:37:46]execute_cgi json_proto POST (null) [10:37:46]execute_cgi path=json_proto method=POST [10:37:46]POST find Content-Length [10:37:46]Host: 172.17.45.67:8080 [10:37:46]Content-Length: 677 [10:37:46]Content-Type: application/json [10:37:46] [10:37:46]POST finish read [10:37:46]Found Content-Length = 677 [10:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:46]execute_script... [10:37: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)593945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:46]POST & json_proto [10:37:46]process_json_proto [10:37:46]json parsed OK: [10:37:46]protocol is kg_v1.0 [10:37:46]action value=close_receipt [10:37:46]process_action close_receipt [10:37:46]cmd_close_receipt [10:37:46]MH_GetDate [10:37:46]Write to MH i2c: F0 00 00 0E 37 34 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 09 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: F0 09 00 0E 37 00 7E C3 C5 66 5F 7F 2B 66 18 [10:37:46]GetLastDocTimeStamp 1724236334 [10:37:46]current date 1724236670 [10:37:46]FM_GetShiftState [10:37:46]SAM_PROTO_GetShiftState [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 01 00 [10:37:46]Write to MH i2c: E2 08 00 0F 37 80 13 01 00 00 00 00 00 C3 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:47]Read from MH i2c: E2 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 0E 00 [10:37:47]MH_I2C_Read... [10:37:47]Read from MH i2c: E2 0E 00 0F 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [10:37:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:37:47]wFMCommunicate OK [10:37:47]SAM_PROTO_GetShiftState done [10:37:47]FM_GetShiftState done [10:37:47]opened in 1724200467 [10:37:47]opened+sec_in_day 1724286867 [10:37:47]quantity*price = 30035 [10:37:47]sum+1 = 30036 [10:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 108 21.08.2024 10:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140091 ФПД: 158580874637469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103750&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140091&fm=158580874637469&tin=02508201610067®Number=0000000000092569&sum=30000 [10:37:48]StoreToDocumentArchive [10:37:48]shift 454 fd 140091 [10:37:48]save to /storage/0454/doc_00140091 [10:37:48]save last doc name /storage/0454/doc_00140091 to /storage/kkm_last_doc_name [10:37:48]save OK [10:37:48]Clear old archive folders... [10:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:48]tlvbuf is 00A67E20 [10:37:48]SAM_PROTO_ClearQueue [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 09 00 00 [10:37:48]Write to MH i2c: E2 08 00 1C 37 80 09 00 00 00 00 00 00 C5 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 1C 37 00 90 00 C7 [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_ClearQueue done [10:37:48]KKMCreateOFDPacket [10:37:48]OFDProtocolAddRootSTLVToBuf [10:37:48]FM_MakeSignedData [10:37:48]FM_MakeSignedData [10:37:48]SAM_PROTO_SignData [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 01 02 [10:37:48]Write to MH i2c: E2 08 00 1D 37 80 0D 01 02 00 00 00 00 CD [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 1D 37 00 90 00 C8 [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]wFMCommunicate request_size=255 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 7E C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 23 02 00 35 04 06 00 90 [10:37:48]Write to MH i2c: E2 02 01 1E 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 7E C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 23 02 00 35 04 06 00 90 00 00 04 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 1E 37 00 90 00 C9 [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]wFMCommunicate request_size=10 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 02 02 05 3A 7C B3 70 9D [10:37:48]Write to MH i2c: E2 0D 00 1F 37 80 0D 02 02 05 00 3A 7C B3 70 9D 00 00 50 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 03 00 1F 37 00 90 00 CA [10:37:48]RAPDU: 90 00 [10:37:48]wFMCommunicate OK [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 0D 03 02 [10:37:48]Write to MH i2c: E2 08 00 20 37 80 0D 03 02 00 00 00 00 D2 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0B 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0B 00 20 37 00 4B 99 8F 0B A2 2F 03 26 90 00 4B [10:37:48]RAPDU: 4B 99 8F 0B A2 2F 03 26 90 00 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_SignData done [10:37:48]FM_MakeSignedData done [10:37:48]CreateOFDProtocolMessage [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 11 00 00 [10:37:48]Write to MH i2c: E2 08 00 21 37 80 11 00 00 00 00 00 00 D2 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 17 00 21 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [10:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:48]wFMCommunicate OK [10:37:48]CreateOFDProtocolMessage done [10:37:48]OFDSenderStorePacket 140091 [10:37:48]StoreOFDPacket docnum=140091 [10:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 54 07 01 7A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 7E C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 23 02 00 35 04 06 00 90 3A 7C B3 70 9D 4B 99 8F 0B A2 2F 03 26 [10:37:48]CheckFolder [10:37:48]dirname=/storage/ofd_packets [10:37:48]CheckFolder done [10:37:48]ProducePacketName [10:37:48]name=ofd_packets/00140091 [10:37:48]NVStorageSaveData ofd_packets/00140091 [10:37:48]File name is /storage/ofd_packets/00140091 [10:37:48]Write 301 bytes [10:37:48]NVStorageSaveData done [10:37:48]OFDSenderStorePacket done [10:37:48]KKMCreateOFDPacket done [10:37:48]NVStorageSaveData kkm_last_timestamp [10:37:48]File name is /storage/kkm_last_timestamp [10:37:48]Write 4 bytes [10:37:48]NVStorageSaveData done [10:37:48]ExternCall_PrintAddStr [10:37:48]wPrintStart [10:37:48]Write to MH i2c: 01 00 00 22 37 59 [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: 01 07 00 22 37 00 00 00 00 00 FF 0F 6E [10:37:48]RasterBufferAndPrint [10:37:48]line Счет N : (1)593945 [10:37:48]line ИНН: 02508201610067 [10:37:48]line Контрольно-Кассовый Чек [10:37:48]line ПРОДАЖА [10:37:48]line ТРК (МРК, ГНК) : 42 [10:37:48]line Товар: 2710124130 [10:37:48]line Аи-92-К-5 [10:37:48]line 4.430 * 67.80 [10:37:48]line = 300.35 [10:37:48]line НДС 12% НСП 1% [10:37:48]line > о реализуемом товаре [10:37:48]line ОКРУГЛЕНИЕ: -0.35 [10:37:48]line ИТОГО: 300.00 [10:37:48]line Внесено: 300.00 [10:37:48]line СДАЧА: 0.00 [10:37:48]line НСП 1% : 2.66 [10:37:48]line НДС 12% : 31.90 [10:37:48]line Наличными: 300.00 [10:37:48]line Безнал.: 0.00 [10:37:48]line Место: АЗС № 136 "Партнер Нефть" [10:37:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:37:48]line СНО: Общий режим [10:37:48]line Чек 108 21.08.2024 10:37 [10:37:48]line Смена: 454 ФФД: 1.0 [10:37:48]line ЗНМ: 0300000067 [10:37:48]line РНМ: 0000000000092569 [10:37:48]line Версия ККМ: 001 [10:37:48]line ФМ: 0000000000871776 [10:37:48]line ФД: 140091 [10:37:48]line ФПД: 158580874637469 [10:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103750&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140091&fm=158580874637469&tin=02508201610067®Number=0000000000092569&sum=30000 [10:37:49]written 0, free lines is 4095 [10:37:49]OFD Sender: Processing packet 140091 [packets to send 137, broken 136] [10:37:49]ProducePacketName [10:37:49]name=ofd_packets/00140091 [10:37:49]OFD Sender: To server: pG, [10:37:49]CommunicateWithHost lk.salyk.kg:30040 [10:37:49]ConnectInit lk.salyk.kg [10:37:49]Write to MH i2c: 01 00 00 4D 37 84 [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: 01 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: 01 07 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: 01 07 00 4D 37 00 00 00 00 00 C7 0C 5E [10:37:49]RasterBufferAndPrint [10:37:49]line [10:37:49]line [10:37:49]line [10:37:49]line [10:37:49]line [10:37:49]written 0, free lines is 3277 [10:37:49]MH_Cut [10:37:49]Write to MH i2c: D1 01 00 54 37 01 5D [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: D1 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: D1 01 00 [10:37:49]MH_I2C_Read... [10:37:49]Read from MH i2c: D1 01 00 54 37 00 5C [10:37:49]Write to MH i2c: 01 00 00 55 37 8C [10:37:49]Write i2c OK [10:37:49]MH_I2C_Read... [10:37:50]*** Cut start [10:37:50]*** Partial cut [10:37:50]*** CUTSNS_PIN = 1 [10:37:50]*** CUTSNS_PIN = 0 [10:37:50]*** Brake cut motor [10:37:50]Read from MH i2c: 01 [10:37:50]MH_I2C_Read... [10:37:50]*** Stop cut motor [10:37:50]*** Cut end [10:37:50]Read from MH i2c: 01 07 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 55 37 00 00 00 00 00 FF 0F A1 [10:37:50]process_action close_receipt done [10:37:50]requested_data is exist [10:37:50]produce_requested_data [10:37:50]requested_item fm.sn is exist - process it [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 11 00 00 [10:37:50]Write to MH i2c: E2 08 00 56 37 80 11 00 00 00 00 00 00 07 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 56 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5E [10:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:37:50]wFMCommunicate OK [10:37:50]requested_item fd.num is exist - process it [10:37:50]SAM_PROTO_GetFieldsCounters [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 13 00 00 [10:37:50]Write to MH i2c: E2 08 00 57 37 80 13 00 00 00 00 00 00 0A [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 62 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 62 00 57 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:37:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_GetFieldsCounters done [10:37:50]requested_item shift.num is exist - process it [10:37:50]requested_item shift.opened is exist - process it [10:37:50]req_shift_opened [10:37:50]FM_GetShiftState [10:37:50]SAM_PROTO_GetShiftState [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 13 01 00 [10:37:50]Write to MH i2c: E2 08 00 58 37 80 13 01 00 00 00 00 00 0C [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:51]Read from MH i2c: E2 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0E 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: E2 0E 00 58 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [10:37:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:37:51]wFMCommunicate OK [10:37:51]SAM_PROTO_GetShiftState done [10:37:51]FM_GetShiftState done [10:37:51]req_shift_opened done [10:37:51]requested_item shift.open_date is exist - process it [10:37:51]req_shift_open_date [10:37:51]req_shift_open_date done [10:37:51]produce_requested_data done [10:37:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140091,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:37:51]process_action_free close_receipt [10:37:51]json_value_free [10:37:51]json_value_free done [10:37:51]process_json_proto returns [10:37:51]Send response to host [10:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140091,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:37:51]free response buf [10:37:51]execute_script done [10:37:51]execute_script returns [10:37:51]free content buf [10:37:51]Sock 9.Close socket [10:37:51]Sock 9.Thread stoped [10:38:26]accept exits with 7 [10:38:26]New connection [10:38:26]New thread 3066908004 created [10:38:26]Thread 3066764644 joined [10:38:26]Waiting for new connection... [10:38:26] Sock 7.Parse request [10:38:26]Sock 7.Check first char [10:38:26]Sock 7.First char is OK [10:38:26]request: POST /json_proto HTTP/1.0 [10:38:26]Method: POST [10:38:26]URL: /json_proto [10:38:26]Method is POST - this is cgi request [10:38:26]url: /json_proto [10:38:26]query_string will be loaded in cgi processing [10:38:26]execute_cgi json_proto POST (null) [10:38:26]execute_cgi path=json_proto method=POST [10:38:26]POST find Content-Length [10:38:26]Host: 172.17.45.67:8080 [10:38:26]Content-Length: 677 [10:38:26]Content-Type: application/json [10:38:26] [10:38:26]POST finish read [10:38:26]Found Content-Length = 677 [10:38:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:26]execute_script... [10:38: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)593946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:26]POST & json_proto [10:38:26]process_json_proto [10:38:26]json parsed OK: [10:38:26]protocol is kg_v1.0 [10:38:26]action value=close_receipt [10:38:26]process_action close_receipt [10:38:26]cmd_close_receipt [10:38:26]MH_GetDate [10:38:26]Write to MH i2c: F0 00 00 59 37 7F [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 09 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: F0 09 00 59 37 00 A6 C3 C5 66 5F 7F 2B 66 8B [10:38:26]GetLastDocTimeStamp 1724236670 [10:38:26]current date 1724236710 [10:38:26]FM_GetShiftState [10:38:26]SAM_PROTO_GetShiftState [10:38:26]wFMCommunicate request_size=4 [10:38:26]MH_SAM_APDU [10:38:26]CAPDU: 80 13 01 00 [10:38:26]Write to MH i2c: E2 08 00 5A 37 80 13 01 00 00 00 00 00 0E [10:38:26]Write i2c OK [10:38:26]MH_I2C_Read... [10:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:26]Read from MH i2c: E2 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0E 00 [10:38:26]MH_I2C_Read... [10:38:26]Read from MH i2c: E2 0E 00 5A 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [10:38:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:38:26]wFMCommunicate OK [10:38:26]SAM_PROTO_GetShiftState done [10:38:26]FM_GetShiftState done [10:38:26]opened in 1724200467 [10:38:26]opened+sec_in_day 1724286867 [10:38:26]quantity*price = 50036 [10:38:26]sum+1 = 50037 [10:38:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 109 21.08.2024 10:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140092 ФПД: 180767655910399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140092&fm=180767655910399&tin=02508201610067®Number=0000000000092569&sum=50000 [10:38:28]StoreToDocumentArchive [10:38:28]shift 454 fd 140092 [10:38:28]save to /storage/0454/doc_00140092 [10:38:28]save last doc name /storage/0454/doc_00140092 to /storage/kkm_last_doc_name [10:38:28]save OK [10:38:28]Clear old archive folders... [10:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:28]tlvbuf is 00A3CD00 [10:38:28]SAM_PROTO_ClearQueue [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 09 00 00 [10:38:28]Write to MH i2c: E2 08 00 67 37 80 09 00 00 00 00 00 00 10 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 67 37 00 90 00 12 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_ClearQueue done [10:38:28]KKMCreateOFDPacket [10:38:28]OFDProtocolAddRootSTLVToBuf [10:38:28]FM_MakeSignedData [10:38:28]FM_MakeSignedData [10:38:28]SAM_PROTO_SignData [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 0D 01 02 [10:38:28]Write to MH i2c: E2 08 00 68 37 80 0D 01 02 00 00 00 00 18 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 68 37 00 90 00 13 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]wFMCommunicate request_size=255 [10:38:28]MH_SAM_APDU [10: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 23 02 00 35 04 06 00 A4 [10:38:28]Write to MH i2c: E2 02 01 69 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 23 02 00 35 04 06 00 A4 00 00 6E [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 69 37 00 90 00 14 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]wFMCommunicate request_size=10 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 0D 02 02 05 68 3F EA DB FF [10:38:28]Write to MH i2c: E2 0D 00 6A 37 80 0D 02 02 05 00 68 3F EA DB FF 00 00 90 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 03 00 6A 37 00 90 00 15 [10:38:28]RAPDU: 90 00 [10:38:28]wFMCommunicate OK [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 0D 03 02 [10:38:28]Write to MH i2c: E2 08 00 6B 37 80 0D 03 02 00 00 00 00 1D [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0B 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 0B 00 6B 37 00 9F D9 68 40 2D 27 9E AF 90 00 DF [10:38:28]RAPDU: 9F D9 68 40 2D 27 9E AF 90 00 [10:38:28]wFMCommunicate OK [10:38:28]SAM_PROTO_SignData done [10:38:28]FM_MakeSignedData done [10:38:28]CreateOFDProtocolMessage [10:38:28]wFMCommunicate request_size=4 [10:38:28]MH_SAM_APDU [10:38:28]CAPDU: 80 11 00 00 [10:38:28]Write to MH i2c: E2 08 00 6C 37 80 11 00 00 00 00 00 00 1D [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:28]Read from MH i2c: E2 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 17 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: E2 17 00 6C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [10:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:38:28]wFMCommunicate OK [10:38:28]CreateOFDProtocolMessage done [10:38:28]OFDSenderStorePacket 140092 [10:38:28]StoreOFDPacket docnum=140092 [10:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 80 AA 07 01 AD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 23 02 00 35 04 06 00 A4 68 3F EA DB FF 9F D9 68 40 2D 27 9E AF [10:38:28]CheckFolder [10:38:28]dirname=/storage/ofd_packets [10:38:28]CheckFolder done [10:38:28]ProducePacketName [10:38:28]name=ofd_packets/00140092 [10:38:28]NVStorageSaveData ofd_packets/00140092 [10:38:28]File name is /storage/ofd_packets/00140092 [10:38:28]Write 301 bytes [10:38:28]NVStorageSaveData done [10:38:28]OFDSenderStorePacket done [10:38:28]KKMCreateOFDPacket done [10:38:28]NVStorageSaveData kkm_last_timestamp [10:38:28]File name is /storage/kkm_last_timestamp [10:38:28]Write 4 bytes [10:38:28]NVStorageSaveData done [10:38:28]ExternCall_PrintAddStr [10:38:28]wPrintStart [10:38:28]Write to MH i2c: 01 00 00 6D 37 A4 [10:38:28]Write i2c OK [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 07 00 [10:38:28]MH_I2C_Read... [10:38:28]Read from MH i2c: 01 07 00 6D 37 00 00 00 00 00 FF 0F B9 [10:38:28]RasterBufferAndPrint [10:38:28]line Счет N : (1)593946 [10:38:28]line ИНН: 02508201610067 [10:38:28]line Контрольно-Кассовый Чек [10:38:28]line ПРОДАЖА [10:38:28]line ТРК (МРК, ГНК) : 52 [10:38:28]line Товар: 2710124130 [10:38:28]line Аи-92-К-5 [10:38:28]line 7.380 * 67.80 [10:38:28]line = 500.36 [10:38:28]line НДС 12% НСП 1% [10:38:28]line > о реализуемом товаре [10:38:28]line ОКРУГЛЕНИЕ: -0.36 [10:38:28]line ИТОГО: 500.00 [10:38:28]line Внесено: 500.00 [10:38:28]line СДАЧА: 0.00 [10:38:28]line НСП 1% : 4.43 [10:38:28]line НДС 12% : 53.14 [10:38:28]line Наличными: 500.00 [10:38:28]line Безнал.: 0.00 [10:38:28]line Место: АЗС № 136 "Партнер Нефть" [10:38:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:38:28]line СНО: Общий режим [10:38:28]line Чек 109 21.08.2024 10:38 [10:38:28]line Смена: 454 ФФД: 1.0 [10:38:28]line ЗНМ: 0300000067 [10:38:28]line РНМ: 0000000000092569 [10:38:28]line Версия ККМ: 001 [10:38:28]line ФМ: 0000000000871776 [10:38:28]line ФД: 140092 [10:38:28]line ФПД: 180767655910399 [10:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T103830&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140092&fm=180767655910399&tin=02508201610067®Number=0000000000092569&sum=50000 [10:38:28]written 0, free lines is 4095 [10:38:29]Write to MH i2c: 01 00 00 98 37 CF [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 98 37 00 00 00 00 00 CD 0C AF [10:38:29]RasterBufferAndPrint [10:38:29]line [10:38:29]line [10:38:29]line [10:38:29]line [10:38:29]line [10:38:29]written 0, free lines is 3285 [10:38:29]MH_Cut [10:38:29]Write to MH i2c: D1 01 00 9F 37 01 A8 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: D1 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: D1 01 00 [10:38:29]MH_I2C_Read... [10:38:29]Read from MH i2c: D1 01 00 9F 37 00 A7 [10:38:29]Write to MH i2c: 01 00 00 A0 37 D7 [10:38:29]Write i2c OK [10:38:29]MH_I2C_Read... [10:38:30]*** Cut start [10:38:30]*** Partial cut [10:38:30]*** CUTSNS_PIN = 1 [10:38:30]*** CUTSNS_PIN = 0 [10:38:30]*** Brake cut motor [10:38:30]Read from MH i2c: 01 [10:38:30]MH_I2C_Read... [10:38:30]*** Stop cut motor [10:38:30]*** Cut end [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 A0 37 00 00 00 00 00 FF 0F EC [10:38:30]process_action close_receipt done [10:38:30]requested_data is exist [10:38:30]produce_requested_data [10:38:30]requested_item fm.sn is exist - process it [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 11 00 00 [10:38:30]Write to MH i2c: E2 08 00 A1 37 80 11 00 00 00 00 00 00 52 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 17 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 17 00 A1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [10:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:38:30]wFMCommunicate OK [10:38:30]requested_item fd.num is exist - process it [10:38:30]SAM_PROTO_GetFieldsCounters [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 13 00 00 [10:38:30]Write to MH i2c: E2 08 00 A2 37 80 13 00 00 00 00 00 00 55 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 62 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 62 00 A2 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [10:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_GetFieldsCounters done [10:38:30]requested_item shift.num is exist - process it [10:38:30]requested_item shift.opened is exist - process it [10:38:30]req_shift_opened [10:38:30]FM_GetShiftState [10:38:30]SAM_PROTO_GetShiftState [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 13 01 00 [10:38:30]Write to MH i2c: E2 08 00 A3 37 80 13 01 00 00 00 00 00 57 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0E 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0E 00 A3 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [10:38:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_GetShiftState done [10:38:30]FM_GetShiftState done [10:38:30]req_shift_opened done [10:38:30]requested_item shift.open_date is exist - process it [10:38:30]req_shift_open_date [10:38:30]req_shift_open_date done [10:38:30]produce_requested_data done [10:38:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140092,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:38:30]process_action_free close_receipt [10:38:30]json_value_free [10:38:30]json_value_free done [10:38:30]process_json_proto returns [10:38:30]Send response to host [10:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140092,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:38:30]free response buf [10:38:30]execute_script done [10:38:30]execute_script returns [10:38:30]free content buf [10:38:30]Sock 7.Close socket [10:38:30]Sock 7.Thread stoped [10:40:00]ConnectInit Can't connect to host [10:40:00]CommunicateWithHost connect error [10:40:00]CommunicateWithHost err = -1 [10:40:00]OFD Sender: Server communicate error [10:40:00]OFD Sender: Processing packet 140091 [packets to send 138, broken 136] [10:40:00]ProducePacketName [10:40:00]name=ofd_packets/00140091 [10:40:00]OFD Sender: To server: pG, [10:40:00]CommunicateWithHost lk.salyk.kg:30040 [10:40:00]ConnectInit lk.salyk.kg [10:40:00]Connected sock=7 [10:40: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 37 36 0F 01 00 00 C0 54 07 01 7A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 7E C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 23 02 00 35 04 06 00 90 3A 7C B3 70 9D 4B 99 8F 0B A2 2F 03 26 [10:40: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 37 36 4F 00 00 00 F5 D6 47 00 32 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 37 36 10 04 04 00 3B 23 02 00 F4 03 04 00 92 6A C5 66 B6 04 01 00 00 78 1B 12 FA 51 24 B2 20 [10:40:01]CommunicateWithHost err = 0 [10:40:01]CheckOFDResponse [10:40:01]1017 (14) - 77093643461234 [10:40:01]1041 (16) - 0000000000871776 [10:40:01]1040 (4) - 140091 [10:40:01]1012 (4) - 21.08.2024 04:18 [10:40:01]1206 (1) - 0 [10:40:01]OFD Sender: Remove packet 140091 [10:40:01]ProducePacketName [10:40:01]name=ofd_packets/00140091 [10:40:01]NVStorageDeleteData [10:40:01]OFD Sender: Processing packet 140092 [packets to send 137, broken 136] [10:40:01]ProducePacketName [10:40:01]name=ofd_packets/00140092 [10:40:01]OFD Sender: To server: pG, [10:40:01]CommunicateWithHost lk.salyk.kg:30040 [10:40:01]ConnectInit lk.salyk.kg [10:40:01]Connected sock=10 [10:40: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 37 36 0F 01 00 00 80 AA 07 01 AD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A6 C3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 23 02 00 35 04 06 00 A4 68 3F EA DB FF 9F D9 68 40 2D 27 9E AF [10: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 37 36 4F 00 00 00 55 94 47 00 E0 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 37 36 10 04 04 00 3C 23 02 00 F4 03 04 00 93 6A C5 66 B6 04 01 00 00 3C ED 0C 9B C9 2A 98 05 [10:40:02]CommunicateWithHost err = 0 [10:40:02]CheckOFDResponse [10:40:02]1017 (14) - 77093643461234 [10:40:02]1041 (16) - 0000000000871776 [10:40:02]1040 (4) - 140092 [10:40:02]1012 (4) - 21.08.2024 04:18 [10:40:02]1206 (1) - 0 [10:40:02]OFD Sender: Remove packet 140092 [10:40:02]ProducePacketName [10:40:02]name=ofd_packets/00140092 [10:40:02]NVStorageDeleteData [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:13]accept exits with 9 [10:41:13]New connection [10:41:13]New thread 3066764644 created [10:41:13]Thread 3066908004 joined [10:41:13]Waiting for new connection... [10:41:13] Sock 9.Parse request [10:41:13]Sock 9.Check first char [10:41:13]Sock 9.First char is OK [10:41:13]request: POST /json_proto HTTP/1.0 [10:41:13]Method: POST [10:41:13]URL: /json_proto [10:41:13]Method is POST - this is cgi request [10:41:13]url: /json_proto [10:41:13]query_string will be loaded in cgi processing [10:41:13]execute_cgi json_proto POST (null) [10:41:13]execute_cgi path=json_proto method=POST [10:41:13]POST find Content-Length [10:41:13]Host: 172.17.45.67:8080 [10:41:13]Content-Length: 677 [10:41:13]Content-Type: application/json [10:41:13] [10:41:13]POST finish read [10:41:13]Found Content-Length = 677 [10:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13]execute_script... [10:41: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)593947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13]POST & json_proto [10:41:13]process_json_proto [10:41:13]json parsed OK: [10:41:13]protocol is kg_v1.0 [10:41:13]action value=close_receipt [10:41:13]process_action close_receipt [10:41:13]cmd_close_receipt [10:41:13]MH_GetDate [10:41:13]Write to MH i2c: F0 00 00 A4 37 CA [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: F0 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: F0 09 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: F0 09 00 A4 37 00 4C C4 C5 66 5F 7F 2B 66 7D [10:41:13]GetLastDocTimeStamp 1724236710 [10:41:13]current date 1724236876 [10:41:13]FM_GetShiftState [10:41:13]SAM_PROTO_GetShiftState [10:41:13]wFMCommunicate request_size=4 [10:41:13]MH_SAM_APDU [10:41:13]CAPDU: 80 13 01 00 [10:41:13]Write to MH i2c: E2 08 00 A5 37 80 13 01 00 00 00 00 00 59 [10:41:13]Write i2c OK [10:41:13]MH_I2C_Read... [10:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:13]Read from MH i2c: E2 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0E 00 [10:41:13]MH_I2C_Read... [10:41:13]Read from MH i2c: E2 0E 00 A5 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [10:41:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:41:13]wFMCommunicate OK [10:41:13]SAM_PROTO_GetShiftState done [10:41:13]FM_GetShiftState done [10:41:13]opened in 1724200467 [10:41:13]opened+sec_in_day 1724286867 [10:41:13]quantity*price = 50036 [10:41:13]sum+1 = 50037 [10:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 110 21.08.2024 10:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140093 ФПД: 277254719062332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104116&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140093&fm=277254719062332&tin=02508201610067®Number=0000000000092569&sum=50000 [10:41:14]StoreToDocumentArchive [10:41:14]shift 454 fd 140093 [10:41:14]save to /storage/0454/doc_00140093 [10:41:14]save last doc name /storage/0454/doc_00140093 to /storage/kkm_last_doc_name [10:41:14]save OK [10:41:14]Clear old archive folders... [10:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:14]tlvbuf is 00A3D590 [10:41:14]SAM_PROTO_ClearQueue [10:41:14]wFMCommunicate request_size=4 [10:41:14]MH_SAM_APDU [10:41:14]CAPDU: 80 09 00 00 [10:41:14]Write to MH i2c: E2 08 00 B2 37 80 09 00 00 00 00 00 00 5B [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:14]Read from MH i2c: E2 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 03 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 03 00 B2 37 00 90 00 5D [10:41:14]RAPDU: 90 00 [10:41:14]wFMCommunicate OK [10:41:14]SAM_PROTO_ClearQueue done [10:41:14]KKMCreateOFDPacket [10:41:14]OFDProtocolAddRootSTLVToBuf [10:41:14]FM_MakeSignedData [10:41:14]FM_MakeSignedData [10:41:14]SAM_PROTO_SignData [10:41:14]wFMCommunicate request_size=4 [10:41:14]MH_SAM_APDU [10:41:14]CAPDU: 80 0D 01 02 [10:41:14]Write to MH i2c: E2 08 00 B3 37 80 0D 01 02 00 00 00 00 63 [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:14]Read from MH i2c: E2 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 03 00 [10:41:14]MH_I2C_Read... [10:41:14]Read from MH i2c: E2 03 00 B3 37 00 90 00 5E [10:41:14]RAPDU: 90 00 [10:41:14]wFMCommunicate OK [10:41:14]wFMCommunicate request_size=255 [10:41:14]MH_SAM_APDU [10:41: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4C C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 23 02 00 35 04 06 00 FC [10:41:14]Write to MH i2c: E2 02 01 B4 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4C C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 23 02 00 35 04 06 00 FC 00 00 BA [10:41:14]Write i2c OK [10:41:14]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 B4 37 00 90 00 5F [10:41:15]RAPDU: 90 00 [10:41:15]wFMCommunicate OK [10:41:15]wFMCommunicate request_size=10 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 0D 02 02 05 29 65 0A C1 3C [10:41:15]Write to MH i2c: E2 0D 00 B5 37 80 0D 02 02 05 00 29 65 0A C1 3C 00 00 05 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 03 00 B5 37 00 90 00 60 [10:41:15]RAPDU: 90 00 [10:41:15]wFMCommunicate OK [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 0D 03 02 [10:41:15]Write to MH i2c: E2 08 00 B6 37 80 0D 03 02 00 00 00 00 68 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0B 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 0B 00 B6 37 00 27 D4 02 6D 44 0A 2A 33 90 00 7E [10:41:15]RAPDU: 27 D4 02 6D 44 0A 2A 33 90 00 [10:41:15]wFMCommunicate OK [10:41:15]SAM_PROTO_SignData done [10:41:15]FM_MakeSignedData done [10:41:15]CreateOFDProtocolMessage [10:41:15]wFMCommunicate request_size=4 [10:41:15]MH_SAM_APDU [10:41:15]CAPDU: 80 11 00 00 [10:41:15]Write to MH i2c: E2 08 00 B7 37 80 11 00 00 00 00 00 00 68 [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:15]Read from MH i2c: E2 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: E2 17 00 B7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [10:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:41:15]wFMCommunicate OK [10:41:15]CreateOFDProtocolMessage done [10:41:15]OFDSenderStorePacket 140093 [10:41:15]StoreOFDPacket docnum=140093 [10:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 78 07 01 59 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4C C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 23 02 00 35 04 06 00 FC 29 65 0A C1 3C 27 D4 02 6D 44 0A 2A 33 [10:41:15]CheckFolder [10:41:15]dirname=/storage/ofd_packets [10:41:15]CheckFolder done [10:41:15]ProducePacketName [10:41:15]name=ofd_packets/00140093 [10:41:15]NVStorageSaveData ofd_packets/00140093 [10:41:15]File name is /storage/ofd_packets/00140093 [10:41:15]Write 301 bytes [10:41:15]NVStorageSaveData done [10:41:15]OFDSenderStorePacket done [10:41:15]KKMCreateOFDPacket done [10:41:15]NVStorageSaveData kkm_last_timestamp [10:41:15]File name is /storage/kkm_last_timestamp [10:41:15]Write 4 bytes [10:41:15]NVStorageSaveData done [10:41:15]ExternCall_PrintAddStr [10:41:15]wPrintStart [10:41:15]Write to MH i2c: 01 00 00 B8 37 EF [10:41:15]Write i2c OK [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 07 00 [10:41:15]MH_I2C_Read... [10:41:15]Read from MH i2c: 01 07 00 B8 37 00 00 00 00 00 FF 0F 04 [10:41:15]RasterBufferAndPrint [10:41:15]line Счет N : (1)593947 [10:41:15]line ИНН: 02508201610067 [10:41:15]line Контрольно-Кассовый Чек [10:41:15]line ПРОДАЖА [10:41:15]line ТРК (МРК, ГНК) : 52 [10:41:15]line Товар: 2710124130 [10:41:15]line Аи-92-К-5 [10:41:15]line 7.380 * 67.80 [10:41:15]line = 500.36 [10:41:15]line НДС 12% НСП 1% [10:41:15]line > о реализуемом товаре [10:41:15]line ОКРУГЛЕНИЕ: -0.36 [10:41:15]line ИТОГО: 500.00 [10:41:15]line Внесено: 500.00 [10:41:15]line СДАЧА: 0.00 [10:41:15]line НСП 1% : 4.43 [10:41:15]line НДС 12% : 53.14 [10:41:15]line Наличными: 500.00 [10:41:15]line Безнал.: 0.00 [10:41:15]line Место: АЗС № 136 "Партнер Нефть" [10:41:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:41:15]line СНО: Общий режим [10:41:15]line Чек 110 21.08.2024 10:41 [10:41:15]line Смена: 454 ФФД: 1.0 [10:41:15]line ЗНМ: 0300000067 [10:41:15]line РНМ: 0000000000092569 [10:41:15]line Версия ККМ: 001 [10:41:15]line ФМ: 0000000000871776 [10:41:15]line ФД: 140093 [10:41:15]line ФПД: 277254719062332 [10:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104116&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140093&fm=277254719062332&tin=02508201610067®Number=0000000000092569&sum=50000 [10:41:15]written 0, free lines is 4095 [10:41:15]OFD Sender: Processing packet 140093 [packets to send 137, broken 136] [10:41:15]ProducePacketName [10:41:15]name=ofd_packets/00140093 [10:41:15]OFD Sender: To server: pG, [10:41:15]CommunicateWithHost lk.salyk.kg:30040 [10:41:15]ConnectInit lk.salyk.kg [10:41:15]Connected sock=10 [10:41: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 37 36 0F 01 00 00 29 78 07 01 59 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 4C C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 23 02 00 35 04 06 00 FC 29 65 0A C1 3C 27 D4 02 6D 44 0A 2A 33 [10:41:16]Write to MH i2c: 01 00 00 E3 37 1A [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41: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 37 36 4F 00 00 00 84 19 47 00 21 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 37 36 10 04 04 00 3D 23 02 00 F4 03 04 00 DD 6A C5 66 B6 04 01 00 00 DE 6E 1D AA 07 54 61 7E [10:41:16]CommunicateWithHost err = 0 [10:41:16]CheckOFDResponse [10:41:16]1017 (14) - 77093643461234 [10:41:16]1041 (16) - 0000000000871776 [10:41:16]1040 (4) - 140093 [10:41:16]1012 (4) - 21.08.2024 04:19 [10:41:16]1206 (1) - 0 [10:41:16]OFD Sender: Remove packet 140093 [10:41:16]ProducePacketName [10:41:16]name=ofd_packets/00140093 [10:41:16]NVStorageDeleteData [10:41:16]Read from MH i2c: 01 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: 01 07 00 E3 37 00 00 00 00 00 CD 0C FA [10:41:16]RasterBufferAndPrint [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]line [10:41:16]written 0, free lines is 3293 [10:41:16]MH_Cut [10:41:16]Write to MH i2c: D1 01 00 EA 37 01 F3 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 01 00 [10:41:16]MH_I2C_Read... [10:41:16]Read from MH i2c: D1 01 00 EA 37 00 F2 [10:41:16]Write to MH i2c: 01 00 00 EB 37 22 [10:41:16]Write i2c OK [10:41:16]MH_I2C_Read... [10:41:16]OFD Sender: No OFD packet to send [10:41:16]*** Cut start [10:41:16]*** Partial cut [10:41:16]*** CUTSNS_PIN = 1 [10:41:16]*** CUTSNS_PIN = 0 [10:41:17]*** Brake cut motor [10:41:17]Read from MH i2c: 01 [10:41:17]MH_I2C_Read... [10:41:17]*** Stop cut motor [10:41:17]*** Cut end [10:41:17]Read from MH i2c: 01 07 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: 01 07 00 EB 37 00 00 00 00 00 FF 0F 37 [10:41:17]process_action close_receipt done [10:41:17]requested_data is exist [10:41:17]produce_requested_data [10:41:17]requested_item fm.sn is exist - process it [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 11 00 00 [10:41:17]Write to MH i2c: E2 08 00 EC 37 80 11 00 00 00 00 00 00 9D [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 17 00 EC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [10:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:41:17]wFMCommunicate OK [10:41:17]requested_item fd.num is exist - process it [10:41:17]SAM_PROTO_GetFieldsCounters [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 13 00 00 [10:41:17]Write to MH i2c: E2 08 00 ED 37 80 13 00 00 00 00 00 00 A0 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 62 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 62 00 ED 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [10:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_GetFieldsCounters done [10:41:17]requested_item shift.num is exist - process it [10:41:17]requested_item shift.opened is exist - process it [10:41:17]req_shift_opened [10:41:17]FM_GetShiftState [10:41:17]SAM_PROTO_GetShiftState [10:41:17]wFMCommunicate request_size=4 [10:41:17]MH_SAM_APDU [10:41:17]CAPDU: 80 13 01 00 [10:41:17]Write to MH i2c: E2 08 00 EE 37 80 13 01 00 00 00 00 00 A2 [10:41:17]Write i2c OK [10:41:17]MH_I2C_Read... [10:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:17]Read from MH i2c: E2 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0E 00 [10:41:17]MH_I2C_Read... [10:41:17]Read from MH i2c: E2 0E 00 EE 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 22 [10:41:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:41:17]wFMCommunicate OK [10:41:17]SAM_PROTO_GetShiftState done [10:41:17]FM_GetShiftState done [10:41:17]req_shift_opened done [10:41:17]requested_item shift.open_date is exist - process it [10:41:17]req_shift_open_date [10:41:17]req_shift_open_date done [10:41:17]produce_requested_data done [10:41:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140093,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:41:17]process_action_free close_receipt [10:41:17]json_value_free [10:41:17]json_value_free done [10:41:17]process_json_proto returns [10:41:17]Send response to host [10:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140093,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:41:17]free response buf [10:41:17]execute_script done [10:41:17]execute_script returns [10:41:17]free content buf [10:41:17]Sock 9.Close socket [10:41:17]Sock 9.Thread stoped [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]accept exits with 7 [10:43:36]New connection [10:43:36]New thread 3066908004 created [10:43:36]Thread 3066764644 joined [10:43:36]Waiting for new connection... [10:43:36] Sock 7.Parse request [10:43:36]Sock 7.Check first char [10:43:36]Sock 7.First char is OK [10:43:36]request: POST /json_proto HTTP/1.0 [10:43:36]Method: POST [10:43:36]URL: /json_proto [10:43:36]Method is POST - this is cgi request [10:43:36]url: /json_proto [10:43:36]query_string will be loaded in cgi processing [10:43:36]execute_cgi json_proto POST (null) [10:43:36]execute_cgi path=json_proto method=POST [10:43:36]POST find Content-Length [10:43:36]Host: 172.17.45.67:8080 [10:43:36]Content-Length: 677 [10:43:36]Content-Type: application/json [10:43:36] [10:43:36]POST finish read [10:43:36]Found Content-Length = 677 [10:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:36]execute_script... [10:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.640, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:36]POST & json_proto [10:43:36]process_json_proto [10:43:36]json parsed OK: [10:43:36]protocol is kg_v1.0 [10:43:36]action value=close_receipt [10:43:36]process_action close_receipt [10:43:36]cmd_close_receipt [10:43:36]MH_GetDate [10:43:36]Write to MH i2c: F0 00 00 EF 37 15 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: F0 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: F0 09 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: F0 09 00 EF 37 00 DB C4 C5 66 5F 7F 2B 66 57 [10:43:36]GetLastDocTimeStamp 1724236876 [10:43:36]current date 1724237019 [10:43:36]FM_GetShiftState [10:43:36]SAM_PROTO_GetShiftState [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 13 01 00 [10:43:36]Write to MH i2c: E2 08 00 F0 37 80 13 01 00 00 00 00 00 A4 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 F0 37 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 24 [10:43:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_GetShiftState done [10:43:36]FM_GetShiftState done [10:43:36]opened in 1724200467 [10:43:36]opened+sec_in_day 1724286867 [10:43:36]quantity*price = 45019 [10:43:36]sum+1 = 45020 [10:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 111 21.08.2024 10:43 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140094 ФПД: 66752649193045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104339&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140094&fm=66752649193045&tin=02508201610067®Number=0000000000092569&sum=45000 [10:43:37]StoreToDocumentArchive [10:43:37]shift 454 fd 140094 [10:43:37]save to /storage/0454/doc_00140094 [10:43:37]save last doc name /storage/0454/doc_00140094 to /storage/kkm_last_doc_name [10:43:37]save OK [10:43:37]Clear old archive folders... [10:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:37]tlvbuf is 00AEEA50 [10:43:37]SAM_PROTO_ClearQueue [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 09 00 00 [10:43:37]Write to MH i2c: E2 08 00 FD 37 80 09 00 00 00 00 00 00 A6 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 FD 37 00 90 00 A8 [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]SAM_PROTO_ClearQueue done [10:43:37]KKMCreateOFDPacket [10:43:37]OFDProtocolAddRootSTLVToBuf [10:43:37]FM_MakeSignedData [10:43:37]FM_MakeSignedData [10:43:37]SAM_PROTO_SignData [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 0D 01 02 [10:43:37]Write to MH i2c: E2 08 00 FE 37 80 0D 01 02 00 00 00 00 AE [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 FE 37 00 90 00 A9 [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=255 [10:43:37]MH_SAM_APDU [10:43: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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DB C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 23 02 00 35 04 06 00 3C [10:43:37]Write to MH i2c: E2 02 01 FF 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DB C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 23 02 00 35 04 06 00 3C 00 00 C6 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 FF 37 00 90 00 AA [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=10 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 0D 02 02 05 B6 0F F1 66 55 [10:43:37]Write to MH i2c: E2 0D 00 00 38 80 0D 02 02 05 00 B6 0F F1 66 55 00 00 2D [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 03 00 00 38 00 90 00 AC [10:43:37]RAPDU: 90 00 [10:43:37]wFMCommunicate OK [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 0D 03 02 [10:43:37]Write to MH i2c: E2 08 00 01 38 80 0D 03 02 00 00 00 00 B4 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0B 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0B 00 01 38 00 31 FA 10 41 FB DF 7A A8 90 00 2D [10:43:37]RAPDU: 31 FA 10 41 FB DF 7A A8 90 00 [10:43:37]wFMCommunicate OK [10:43:37]SAM_PROTO_SignData done [10:43:37]FM_MakeSignedData done [10:43:37]CreateOFDProtocolMessage [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 11 00 00 [10:43:37]Write to MH i2c: E2 08 00 02 38 80 11 00 00 00 00 00 00 B4 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 02 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [10:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:43:37]wFMCommunicate OK [10:43:37]CreateOFDProtocolMessage done [10:43:37]OFDSenderStorePacket 140094 [10:43:37]StoreOFDPacket docnum=140094 [10:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 36 EA 07 01 F8 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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DB C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 23 02 00 35 04 06 00 3C B6 0F F1 66 55 31 FA 10 41 FB DF 7A A8 [10:43:37]CheckFolder [10:43:37]dirname=/storage/ofd_packets [10:43:37]CheckFolder done [10:43:37]ProducePacketName [10:43:37]name=ofd_packets/00140094 [10:43:37]NVStorageSaveData ofd_packets/00140094 [10:43:37]File name is /storage/ofd_packets/00140094 [10:43:37]Write 301 bytes [10:43:37]NVStorageSaveData done [10:43:37]OFDSenderStorePacket done [10:43:37]KKMCreateOFDPacket done [10:43:37]NVStorageSaveData kkm_last_timestamp [10:43:37]File name is /storage/kkm_last_timestamp [10:43:37]Write 4 bytes [10:43:37]NVStorageSaveData done [10:43:37]ExternCall_PrintAddStr [10:43:37]wPrintStart [10:43:37]Write to MH i2c: 01 00 00 03 38 3B [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 07 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 07 00 03 38 00 00 00 00 00 FF 0F 50 [10:43:37]RasterBufferAndPrint [10:43:37]line Счет N : (1)593948 [10:43:37]line ИНН: 02508201610067 [10:43:37]line Контрольно-Кассовый Чек [10:43:37]line ПРОДАЖА [10:43:37]line ТРК (МРК, ГНК) : 42 [10:43:37]line Товар: 2710124130 [10:43:37]line Аи-92-К-5 [10:43:37]line 6.640 * 67.80 [10:43:37]line = 450.19 [10:43:37]line НДС 12% НСП 1% [10:43:37]line > о реализуемом товаре [10:43:37]line ОКРУГЛЕНИЕ: -0.19 [10:43:37]line ИТОГО: 450.00 [10:43:37]line Внесено: 450.00 [10:43:37]line СДАЧА: 0.00 [10:43:37]line НСП 1% : 3.98 [10:43:37]line НДС 12% : 47.81 [10:43:37]line Наличными: 450.00 [10:43:37]line Безнал.: 0.00 [10:43:37]line Место: АЗС № 136 "Партнер Нефть" [10:43:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:43:37]line СНО: Общий режим [10:43:37]line Чек 111 21.08.2024 10:43 [10:43:37]line Смена: 454 ФФД: 1.0 [10:43:37]line ЗНМ: 0300000067 [10:43:37]line РНМ: 0000000000092569 [10:43:37]line Версия ККМ: 001 [10:43:37]line ФМ: 0000000000871776 [10:43:37]line ФД: 140094 [10:43:37]line ФПД: 66752649193045 [10:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104339&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140094&fm=66752649193045&tin=02508201610067®Number=0000000000092569&sum=45000 [10:43:37]written 0, free lines is 4095 [10:43:37]OFD Sender: Processing packet 140094 [packets to send 137, broken 136] [10:43:37]ProducePacketName [10:43:37]name=ofd_packets/00140094 [10:43:37]OFD Sender: To server: pG, [10:43:37]CommunicateWithHost lk.salyk.kg:30040 [10:43:37]ConnectInit lk.salyk.kg [10:43:38]Connected sock=9 [10:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 36 EA 07 01 F8 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 F0 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 DB C4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 23 02 00 35 04 06 00 3C B6 0F F1 66 55 31 FA 10 41 FB DF 7A A8 [10:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1A 72 47 00 D1 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 37 36 10 04 04 00 3E 23 02 00 F4 03 04 00 6C 6B C5 66 B6 04 01 00 00 2F 7A A7 DD 53 70 BA 71 [10:43:38]CommunicateWithHost err = 0 [10:43:38]CheckOFDResponse [10:43:38]1017 (14) - 77093643461234 [10:43:38]1041 (16) - 0000000000871776 [10:43:38]1040 (4) - 140094 [10:43:38]1012 (4) - 21.08.2024 04:22 [10:43:38]1206 (1) - 0 [10:43:38]OFD Sender: Remove packet 140094 [10:43:38]ProducePacketName [10:43:38]name=ofd_packets/00140094 [10:43:38]NVStorageDeleteData [10:43:38]Write to MH i2c: 01 00 00 2E 38 66 [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 07 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: 01 07 00 2E 38 00 00 00 00 00 CE 0C 47 [10:43:38]RasterBufferAndPrint [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]line [10:43:38]written 0, free lines is 3285 [10:43:38]MH_Cut [10:43:38]Write to MH i2c: D1 01 00 35 38 01 3F [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 01 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: D1 01 00 35 38 00 3E [10:43:38]Write to MH i2c: 01 00 00 36 38 6E [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]OFD Sender: No OFD packet to send [10:43:39]*** Cut start [10:43:39]*** Partial cut [10:43:39]*** CUTSNS_PIN = 1 [10:43:39]*** CUTSNS_PIN = 0 [10:43:39]*** Brake cut motor [10:43:39]Read from MH i2c: 01 [10:43:39]MH_I2C_Read... [10:43:39]*** Stop cut motor [10:43:39]*** Cut end [10:43:39]Read from MH i2c: 01 07 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: 01 07 00 36 38 00 00 00 00 00 FF 0F 83 [10:43:39]process_action close_receipt done [10:43:39]requested_data is exist [10:43:39]produce_requested_data [10:43:39]requested_item fm.sn is exist - process it [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 11 00 00 [10:43:39]Write to MH i2c: E2 08 00 37 38 80 11 00 00 00 00 00 00 E9 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 17 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 17 00 37 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [10:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:43:39]wFMCommunicate OK [10:43:39]requested_item fd.num is exist - process it [10:43:39]SAM_PROTO_GetFieldsCounters [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 13 00 00 [10:43:39]Write to MH i2c: E2 08 00 38 38 80 13 00 00 00 00 00 00 EC [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 62 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 62 00 38 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [10:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:39]wFMCommunicate OK [10:43:39]SAM_PROTO_GetFieldsCounters done [10:43:39]requested_item shift.num is exist - process it [10:43:39]requested_item shift.opened is exist - process it [10:43:39]req_shift_opened [10:43:39]FM_GetShiftState [10:43:39]SAM_PROTO_GetShiftState [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 13 01 00 [10:43:39]Write to MH i2c: E2 08 00 39 38 80 13 01 00 00 00 00 00 EE [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:39]Read from MH i2c: E2 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 [10:43:39]MH_I2C_Read... [10:43:39]Read from MH i2c: E2 0E 00 39 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6E [10:43:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:43:39]wFMCommunicate OK [10:43:39]SAM_PROTO_GetShiftState done [10:43:39]FM_GetShiftState done [10:43:39]req_shift_opened done [10:43:39]requested_item shift.open_date is exist - process it [10:43:39]req_shift_open_date [10:43:39]req_shift_open_date done [10:43:39]produce_requested_data done [10:43:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140094,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:43:39]process_action_free close_receipt [10:43:39]json_value_free [10:43:39]json_value_free done [10:43:39]process_json_proto returns [10:43:39]Send response to host [10:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140094,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:43:39]free response buf [10:43:39]execute_script done [10:43:39]execute_script returns [10:43:39]free content buf [10:43:39]Sock 7.Close socket [10:43:39]Sock 7.Thread stoped [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]accept exits with 10 [10:44:13]New connection [10:44:13]New thread 3066764644 created [10:44:13]Thread 3066908004 joined [10:44:13]Waiting for new connection... [10:44:13] Sock 10.Parse request [10:44:13]Sock 10.Check first char [10:44:13]Sock 10.First char is OK [10:44:13]request: POST /json_proto HTTP/1.0 [10:44:13]Method: POST [10:44:13]URL: /json_proto [10:44:13]Method is POST - this is cgi request [10:44:13]url: /json_proto [10:44:13]query_string will be loaded in cgi processing [10:44:13]execute_cgi json_proto POST (null) [10:44:13]execute_cgi path=json_proto method=POST [10:44:13]POST find Content-Length [10:44:13]Host: 172.17.45.67:8080 [10:44:13]Content-Length: 677 [10:44:13]Content-Type: application/json [10:44:13] [10:44:13]POST finish read [10:44:13]Found Content-Length = 677 [10:44:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:13]execute_script... [10:44: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)593949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:13]POST & json_proto [10:44:13]process_json_proto [10:44:13]json parsed OK: [10:44:13]protocol is kg_v1.0 [10:44:13]action value=close_receipt [10:44:13]process_action close_receipt [10:44:13]cmd_close_receipt [10:44:13]MH_GetDate [10:44:13]Write to MH i2c: F0 00 00 3A 38 61 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: F0 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: F0 09 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: F0 09 00 3A 38 00 00 C5 C5 66 5F 7F 2B 66 C9 [10:44:13]GetLastDocTimeStamp 1724237019 [10:44:13]current date 1724237056 [10:44:13]FM_GetShiftState [10:44:13]SAM_PROTO_GetShiftState [10:44:13]wFMCommunicate request_size=4 [10:44:13]MH_SAM_APDU [10:44:13]CAPDU: 80 13 01 00 [10:44:13]Write to MH i2c: E2 08 00 3B 38 80 13 01 00 00 00 00 00 F0 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:13]Read from MH i2c: E2 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 0E 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 0E 00 3B 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [10:44:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:44:13]wFMCommunicate OK [10:44:13]SAM_PROTO_GetShiftState done [10:44:13]FM_GetShiftState done [10:44:13]opened in 1724200467 [10:44:13]opened+sec_in_day 1724286867 [10:44:13]quantity*price = 30035 [10:44:13]sum+1 = 30036 [10:44:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 112 21.08.2024 10:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140095 ФПД: 5617604975209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140095&fm=5617604975209&tin=02508201610067®Number=0000000000092569&sum=30000 [10:44:14]StoreToDocumentArchive [10:44:14]shift 454 fd 140095 [10:44:14]save to /storage/0454/doc_00140095 [10:44:14]save last doc name /storage/0454/doc_00140095 to /storage/kkm_last_doc_name [10:44:14]save OK [10:44:14]Clear old archive folders... [10:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:14]tlvbuf is 00B5B240 [10:44:14]SAM_PROTO_ClearQueue [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 09 00 00 [10:44:14]Write to MH i2c: E2 08 00 48 38 80 09 00 00 00 00 00 00 F2 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 03 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 03 00 48 38 00 90 00 F4 [10:44:14]RAPDU: 90 00 [10:44:14]wFMCommunicate OK [10:44:14]SAM_PROTO_ClearQueue done [10:44:14]KKMCreateOFDPacket [10:44:14]OFDProtocolAddRootSTLVToBuf [10:44:14]FM_MakeSignedData [10:44:14]FM_MakeSignedData [10:44:14]SAM_PROTO_SignData [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 0D 01 02 [10:44:14]Write to MH i2c: E2 08 00 49 38 80 0D 01 02 00 00 00 00 FA [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 03 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 03 00 49 38 00 90 00 F5 [10:44:14]RAPDU: 90 00 [10:44:14]wFMCommunicate OK [10:44:14]wFMCommunicate request_size=255 [10:44:14]MH_SAM_APDU [10:44: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 C5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 23 02 00 35 04 06 00 05 [10:44:14]Write to MH i2c: E2 02 01 4A 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 C5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 23 02 00 35 04 06 00 05 00 00 32 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 03 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 03 00 4A 38 00 90 00 F6 [10:44:15]RAPDU: 90 00 [10:44:15]wFMCommunicate OK [10:44:15]wFMCommunicate request_size=10 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 0D 02 02 05 1B F3 59 5A 69 [10:44:15]Write to MH i2c: E2 0D 00 4B 38 80 0D 02 02 05 00 1B F3 59 5A 69 00 00 31 [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 03 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 03 00 4B 38 00 90 00 F7 [10:44:15]RAPDU: 90 00 [10:44:15]wFMCommunicate OK [10:44:15]wFMCommunicate request_size=4 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 0D 03 02 [10:44:15]Write to MH i2c: E2 08 00 4C 38 80 0D 03 02 00 00 00 00 FF [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 0B 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 0B 00 4C 38 00 28 62 65 98 64 70 F2 B0 90 00 FD [10:44:15]RAPDU: 28 62 65 98 64 70 F2 B0 90 00 [10:44:15]wFMCommunicate OK [10:44:15]SAM_PROTO_SignData done [10:44:15]FM_MakeSignedData done [10:44:15]CreateOFDProtocolMessage [10:44:15]wFMCommunicate request_size=4 [10:44:15]MH_SAM_APDU [10:44:15]CAPDU: 80 11 00 00 [10:44:15]Write to MH i2c: E2 08 00 4D 38 80 11 00 00 00 00 00 00 FF [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:15]Read from MH i2c: E2 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 17 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: E2 17 00 4D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [10:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:44:15]wFMCommunicate OK [10:44:15]CreateOFDProtocolMessage done [10:44:15]OFDSenderStorePacket 140095 [10:44:15]StoreOFDPacket docnum=140095 [10:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 20 DE 07 01 65 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 C5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 23 02 00 35 04 06 00 05 1B F3 59 5A 69 28 62 65 98 64 70 F2 B0 [10:44:15]CheckFolder [10:44:15]dirname=/storage/ofd_packets [10:44:15]CheckFolder done [10:44:15]ProducePacketName [10:44:15]name=ofd_packets/00140095 [10:44:15]NVStorageSaveData ofd_packets/00140095 [10:44:15]File name is /storage/ofd_packets/00140095 [10:44:15]Write 301 bytes [10:44:15]NVStorageSaveData done [10:44:15]OFDSenderStorePacket done [10:44:15]KKMCreateOFDPacket done [10:44:15]NVStorageSaveData kkm_last_timestamp [10:44:15]File name is /storage/kkm_last_timestamp [10:44:15]Write 4 bytes [10:44:15]NVStorageSaveData done [10:44:15]ExternCall_PrintAddStr [10:44:15]wPrintStart [10:44:15]Write to MH i2c: 01 00 00 4E 38 86 [10:44:15]Write i2c OK [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: 01 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: 01 07 00 [10:44:15]MH_I2C_Read... [10:44:15]Read from MH i2c: 01 07 00 4E 38 00 00 00 00 00 FF 0F 9B [10:44:15]RasterBufferAndPrint [10:44:15]line Счет N : (1)593949 [10:44:15]line ИНН: 02508201610067 [10:44:15]line Контрольно-Кассовый Чек [10:44:15]line ПРОДАЖА [10:44:15]line ТРК (МРК, ГНК) : 52 [10:44:15]line Товар: 2710124130 [10:44:15]line Аи-92-К-5 [10:44:15]line 4.430 * 67.80 [10:44:15]line = 300.35 [10:44:15]line НДС 12% НСП 1% [10:44:15]line > о реализуемом товаре [10:44:15]line ОКРУГЛЕНИЕ: -0.35 [10:44:15]line ИТОГО: 300.00 [10:44:15]line Внесено: 300.00 [10:44:15]line СДАЧА: 0.00 [10:44:15]line НСП 1% : 2.66 [10:44:15]line НДС 12% : 31.90 [10:44:15]line Наличными: 300.00 [10:44:15]line Безнал.: 0.00 [10:44:15]line Место: АЗС № 136 "Партнер Нефть" [10:44:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:44:15]line СНО: Общий режим [10:44:15]line Чек 112 21.08.2024 10:44 [10:44:15]line Смена: 454 ФФД: 1.0 [10:44:15]line ЗНМ: 0300000067 [10:44:15]line РНМ: 0000000000092569 [10:44:15]line Версия ККМ: 001 [10:44:15]line ФМ: 0000000000871776 [10:44:15]line ФД: 140095 [10:44:15]line ФПД: 5617604975209 [10:44:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104416&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140095&fm=5617604975209&tin=02508201610067®Number=0000000000092569&sum=30000 [10:44:15]OFD Sender: Processing packet 140095 [packets to send 137, broken 136] [10:44:15]ProducePacketName [10:44:15]name=ofd_packets/00140095 [10:44:15]OFD Sender: To server: pG, [10:44:15]CommunicateWithHost lk.salyk.kg:30040 [10:44:15]ConnectInit lk.salyk.kg [10:44:15]written 0, free lines is 4095 [10:44:15]Connected sock=9 [10:44: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 37 36 0F 01 00 00 20 DE 07 01 65 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 C5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 23 02 00 35 04 06 00 05 1B F3 59 5A 69 28 62 65 98 64 70 F2 B0 [10:44: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 37 36 4F 00 00 00 2C AF 47 00 7E 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 37 36 10 04 04 00 3F 23 02 00 F4 03 04 00 91 6B C5 66 B6 04 01 00 00 18 31 6C 15 82 DB 9A 62 [10:44:16]CommunicateWithHost err = 0 [10:44:16]CheckOFDResponse [10:44:16]1017 (14) - 77093643461234 [10:44:16]1041 (16) - 0000000000871776 [10:44:16]1040 (4) - 140095 [10:44:16]1012 (4) - 21.08.2024 04:22 [10:44:16]1206 (1) - 0 [10:44:16]OFD Sender: Remove packet 140095 [10:44:16]ProducePacketName [10:44:16]name=ofd_packets/00140095 [10:44:16]NVStorageDeleteData [10:44:16]Write to MH i2c: 01 00 00 79 38 B1 [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: 01 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: 01 07 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: 01 07 00 79 38 00 00 00 00 00 D8 0C 9C [10:44:16]RasterBufferAndPrint [10:44:16]line [10:44:16]line [10:44:16]line [10:44:16]line [10:44:16]line [10:44:16]written 0, free lines is 3295 [10:44:16]MH_Cut [10:44:16]Write to MH i2c: D1 01 00 80 38 01 8A [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: D1 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: D1 01 00 [10:44:16]MH_I2C_Read... [10:44:16]Read from MH i2c: D1 01 00 80 38 00 89 [10:44:16]Write to MH i2c: 01 00 00 81 38 B9 [10:44:16]Write i2c OK [10:44:16]MH_I2C_Read... [10:44:16]OFD Sender: No OFD packet to send [10:44:16]*** Cut start [10:44:16]*** Partial cut [10:44:16]*** CUTSNS_PIN = 1 [10:44:16]*** CUTSNS_PIN = 0 [10:44:16]*** Brake cut motor [10:44:17]Read from MH i2c: 01 [10:44:17]MH_I2C_Read... [10:44:17]*** Stop cut motor [10:44:17]*** Cut end [10:44:17]Read from MH i2c: 01 07 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: 01 07 00 81 38 00 00 00 00 00 FF 0F CE [10:44:17]process_action close_receipt done [10:44:17]requested_data is exist [10:44:17]produce_requested_data [10:44:17]requested_item fm.sn is exist - process it [10:44:17]wFMCommunicate request_size=4 [10:44:17]MH_SAM_APDU [10:44:17]CAPDU: 80 11 00 00 [10:44:17]Write to MH i2c: E2 08 00 82 38 80 11 00 00 00 00 00 00 34 [10:44:17]Write i2c OK [10:44:17]MH_I2C_Read... [10:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:17]Read from MH i2c: E2 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 17 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 17 00 82 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [10:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:44:17]wFMCommunicate OK [10:44:17]requested_item fd.num is exist - process it [10:44:17]SAM_PROTO_GetFieldsCounters [10:44:17]wFMCommunicate request_size=4 [10:44:17]MH_SAM_APDU [10:44:17]CAPDU: 80 13 00 00 [10:44:17]Write to MH i2c: E2 08 00 83 38 80 13 00 00 00 00 00 00 37 [10:44:17]Write i2c OK [10:44:17]MH_I2C_Read... [10:44:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:17]Read from MH i2c: E2 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 62 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 62 00 83 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [10:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:17]wFMCommunicate OK [10:44:17]SAM_PROTO_GetFieldsCounters done [10:44:17]requested_item shift.num is exist - process it [10:44:17]requested_item shift.opened is exist - process it [10:44:17]req_shift_opened [10:44:17]FM_GetShiftState [10:44:17]SAM_PROTO_GetShiftState [10:44:17]wFMCommunicate request_size=4 [10:44:17]MH_SAM_APDU [10:44:17]CAPDU: 80 13 01 00 [10:44:17]Write to MH i2c: E2 08 00 84 38 80 13 01 00 00 00 00 00 39 [10:44:17]Write i2c OK [10:44:17]MH_I2C_Read... [10:44:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:17]Read from MH i2c: E2 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 0E 00 [10:44:17]MH_I2C_Read... [10:44:17]Read from MH i2c: E2 0E 00 84 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B9 [10:44:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:44:17]wFMCommunicate OK [10:44:17]SAM_PROTO_GetShiftState done [10:44:17]FM_GetShiftState done [10:44:17]req_shift_opened done [10:44:17]requested_item shift.open_date is exist - process it [10:44:17]req_shift_open_date [10:44:17]req_shift_open_date done [10:44:17]produce_requested_data done [10:44:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140095,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:44:17]process_action_free close_receipt [10:44:17]json_value_free [10:44:17]json_value_free done [10:44:17]process_json_proto returns [10:44:17]Send response to host [10:44:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140095,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:44:17]free response buf [10:44:17]execute_script done [10:44:17]execute_script returns [10:44:17]free content buf [10:44:17]Sock 10.Close socket [10:44:17]Sock 10.Thread stoped [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:28]int [10:45:28]Write to MH i2c: 01 00 00 85 38 BD [10:45:28]*** FLAG_PRN_KEY set [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 85 38 00 08 00 00 00 FF 0F DA [10:45:28]state=0 [10:45:28]Key pressed [10:45:28]Feed [10:45:28]Write to MH i2c: D8 00 00 86 38 95 [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: D8 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: D8 01 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: D8 01 00 86 38 00 96 [10:45:28]int [10:45:28]Write to MH i2c: 01 00 00 87 38 BF [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 87 38 00 48 00 00 00 3C 00 4A [10:45:28]state=2 [10:45:28]Key pressed [10:45:28]int [10:45:28]Write to MH i2c: 01 00 00 88 38 C0 [10:45:28]*** FLAG_PRN_KEY reset [10:45:28]Write i2c OK [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 [10:45:28]MH_I2C_Read... [10:45:28]Read from MH i2c: 01 07 00 88 38 00 00 00 00 00 F9 0F CF [10:45:28]state=2 [10:45:28]Stop feed [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46: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:44]accept exits with 7 [10:49:44]New connection [10:49:44]New thread 3066908004 created [10:49:44]Thread 3066764644 joined [10:49:44]Waiting for new connection... [10:49:44] Sock 7.Parse request [10:49:44]Sock 7.Check first char [10:49:44]Sock 7.First char is OK [10:49:44]request: POST /json_proto HTTP/1.0 [10:49:44]Method: POST [10:49:44]URL: /json_proto [10:49:44]Method is POST - this is cgi request [10:49:44]url: /json_proto [10:49:44]query_string will be loaded in cgi processing [10:49:44]execute_cgi json_proto POST (null) [10:49:44]execute_cgi path=json_proto method=POST [10:49:44]POST find Content-Length [10:49:44]Host: 172.17.45.67:8080 [10:49:44]Content-Length: 677 [10:49:44]Content-Type: application/json [10:49:44] [10:49:44]POST finish read [10:49:44]Found Content-Length = 677 [10:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:44]execute_script... [10: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)593950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:44]POST & json_proto [10:49:44]process_json_proto [10:49:44]json parsed OK: [10:49:44]protocol is kg_v1.0 [10:49:44]action value=close_receipt [10:49:44]process_action close_receipt [10:49:44]cmd_close_receipt [10:49:44]MH_GetDate [10:49:44]Write to MH i2c: F0 00 00 89 38 B0 [10:49:44]Write i2c OK [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: F0 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: F0 09 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: F0 09 00 89 38 00 4B C6 C5 66 5F 7F 2B 66 64 [10:49:44]GetLastDocTimeStamp 1724237056 [10:49:44]current date 1724237387 [10:49:44]FM_GetShiftState [10:49:44]SAM_PROTO_GetShiftState [10:49:44]wFMCommunicate request_size=4 [10:49:44]MH_SAM_APDU [10:49:44]CAPDU: 80 13 01 00 [10:49:44]Write to MH i2c: E2 08 00 8A 38 80 13 01 00 00 00 00 00 3F [10:49:44]Write i2c OK [10:49:44]MH_I2C_Read... [10:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:44]Read from MH i2c: E2 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 0E 00 [10:49:44]MH_I2C_Read... [10:49:44]Read from MH i2c: E2 0E 00 8A 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [10:49:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:49:44]wFMCommunicate OK [10:49:44]SAM_PROTO_GetShiftState done [10:49:44]FM_GetShiftState done [10:49:44]opened in 1724200467 [10:49:44]opened+sec_in_day 1724286867 [10:49:44]quantity*price = 50036 [10:49:44]sum+1 = 50037 [10:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 113 21.08.2024 10:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140096 ФПД: 43710135410087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140096&fm=43710135410087&tin=02508201610067®Number=0000000000092569&sum=50000 [10:49:45]StoreToDocumentArchive [10:49:45]shift 454 fd 140096 [10:49:45]save to /storage/0454/doc_00140096 [10:49:45]save last doc name /storage/0454/doc_00140096 to /storage/kkm_last_doc_name [10:49:45]save OK [10:49:45]Clear old archive folders... [10:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:45]tlvbuf is 00AA3CD0 [10:49:45]SAM_PROTO_ClearQueue [10:49:45]wFMCommunicate request_size=4 [10:49:45]MH_SAM_APDU [10:49:45]CAPDU: 80 09 00 00 [10:49:45]Write to MH i2c: E2 08 00 97 38 80 09 00 00 00 00 00 00 41 [10:49:45]Write i2c OK [10:49:45]MH_I2C_Read... [10:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:45]Read from MH i2c: E2 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 03 00 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 03 00 97 38 00 90 00 43 [10:49:45]RAPDU: 90 00 [10:49:45]wFMCommunicate OK [10:49:45]SAM_PROTO_ClearQueue done [10:49:45]KKMCreateOFDPacket [10:49:45]OFDProtocolAddRootSTLVToBuf [10:49:45]FM_MakeSignedData [10:49:45]FM_MakeSignedData [10:49:45]SAM_PROTO_SignData [10:49:45]wFMCommunicate request_size=4 [10:49:45]MH_SAM_APDU [10:49:45]CAPDU: 80 0D 01 02 [10:49:45]Write to MH i2c: E2 08 00 98 38 80 0D 01 02 00 00 00 00 49 [10:49:45]Write i2c OK [10:49:45]MH_I2C_Read... [10:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:45]Read from MH i2c: E2 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 03 00 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 03 00 98 38 00 90 00 44 [10:49:45]RAPDU: 90 00 [10:49:45]wFMCommunicate OK [10:49:45]wFMCommunicate request_size=255 [10:49:45]MH_SAM_APDU [10:49: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4B C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 23 02 00 35 04 06 00 27 [10:49:45]Write to MH i2c: E2 02 01 99 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4B C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 23 02 00 35 04 06 00 27 00 00 D2 [10:49:45]Write i2c OK [10:49:45]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 99 38 00 90 00 45 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]wFMCommunicate request_size=10 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 0D 02 02 05 C1 0F 18 1D A7 [10:49:46]Write to MH i2c: E2 0D 00 9A 38 80 0D 02 02 05 00 C1 0F 18 1D A7 00 00 02 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 9A 38 00 90 00 46 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 0D 03 02 [10:49:46]Write to MH i2c: E2 08 00 9B 38 80 0D 03 02 00 00 00 00 4E [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 0B 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 0B 00 9B 38 00 07 3E D2 9F 4D 69 3A 94 90 00 89 [10:49:46]RAPDU: 07 3E D2 9F 4D 69 3A 94 90 00 [10:49:46]wFMCommunicate OK [10:49:46]SAM_PROTO_SignData done [10:49:46]FM_MakeSignedData done [10:49:46]CreateOFDProtocolMessage [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 11 00 00 [10:49:46]Write to MH i2c: E2 08 00 9C 38 80 11 00 00 00 00 00 00 4E [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 17 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 17 00 9C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [10:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:49:46]wFMCommunicate OK [10:49:46]CreateOFDProtocolMessage done [10:49:46]OFDSenderStorePacket 140096 [10:49:46]StoreOFDPacket docnum=140096 [10:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 83 60 07 01 0B E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4B C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 23 02 00 35 04 06 00 27 C1 0F 18 1D A7 07 3E D2 9F 4D 69 3A 94 [10:49:46]CheckFolder [10:49:46]dirname=/storage/ofd_packets [10:49:46]CheckFolder done [10:49:46]ProducePacketName [10:49:46]name=ofd_packets/00140096 [10:49:46]NVStorageSaveData ofd_packets/00140096 [10:49:46]File name is /storage/ofd_packets/00140096 [10:49:46]Write 301 bytes [10:49:46]NVStorageSaveData done [10:49:46]OFDSenderStorePacket done [10:49:46]KKMCreateOFDPacket done [10:49:46]NVStorageSaveData kkm_last_timestamp [10:49:46]File name is /storage/kkm_last_timestamp [10:49:46]Write 4 bytes [10:49:46]NVStorageSaveData done [10:49:46]ExternCall_PrintAddStr [10:49:46]wPrintStart [10:49:46]Write to MH i2c: 01 00 00 9D 38 D5 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: 01 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: 01 07 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: 01 07 00 9D 38 00 00 00 00 00 FF 0F EA [10:49:46]RasterBufferAndPrint [10:49:46]line Счет N : (1)593950 [10:49:46]line ИНН: 02508201610067 [10:49:46]line Контрольно-Кассовый Чек [10:49:46]line ПРОДАЖА [10:49:46]line ТРК (МРК, ГНК) : 42 [10:49:46]line Товар: 2710124130 [10:49:46]line Аи-92-К-5 [10:49:46]line 7.380 * 67.80 [10:49:46]line = 500.36 [10:49:46]line НДС 12% НСП 1% [10:49:46]line > о реализуемом товаре [10:49:46]line ОКРУГЛЕНИЕ: -0.36 [10:49:46]line ИТОГО: 500.00 [10:49:46]line Внесено: 500.00 [10:49:46]line СДАЧА: 0.00 [10:49:46]line НСП 1% : 4.43 [10:49:46]line НДС 12% : 53.14 [10:49:46]line Наличными: 500.00 [10:49:46]line Безнал.: 0.00 [10:49:46]line Место: АЗС № 136 "Партнер Нефть" [10:49:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:49:46]line СНО: Общий режим [10:49:46]line Чек 113 21.08.2024 10:49 [10:49:46]line Смена: 454 ФФД: 1.0 [10:49:46]line ЗНМ: 0300000067 [10:49:46]line РНМ: 0000000000092569 [10:49:46]line Версия ККМ: 001 [10:49:46]line ФМ: 0000000000871776 [10:49:46]line ФД: 140096 [10:49:46]line ФПД: 43710135410087 [10:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T104947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140096&fm=43710135410087&tin=02508201610067®Number=0000000000092569&sum=50000 [10:49:46]written 0, free lines is 4095 [10:49:46]OFD Sender: Processing packet 140096 [packets to send 137, broken 136] [10:49:46]ProducePacketName [10:49:46]name=ofd_packets/00140096 [10:49:46]OFD Sender: To server: pG, [10:49:46]CommunicateWithHost lk.salyk.kg:30040 [10:49:46]ConnectInit lk.salyk.kg [10:49:46]Connected sock=11 [10: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 37 36 0F 01 00 00 83 60 07 01 0B E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4B C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 23 02 00 35 04 06 00 27 C1 0F 18 1D A7 07 3E D2 9F 4D 69 3A 94 [10: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 37 36 4F 00 00 00 D8 AD 47 00 73 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 23 02 00 F4 03 04 00 DC 6C C5 66 B6 04 01 00 00 5E 5F E9 8A B4 5F 8D 86 [10:49:47]CommunicateWithHost err = 0 [10:49:47]CheckOFDResponse [10:49:47]1017 (14) - 77093643461234 [10:49:47]1041 (16) - 0000000000871776 [10:49:47]1040 (4) - 140096 [10:49:47]1012 (4) - 21.08.2024 04:28 [10:49:47]1206 (1) - 0 [10:49:47]OFD Sender: Remove packet 140096 [10:49:47]ProducePacketName [10:49:47]name=ofd_packets/00140096 [10:49:47]NVStorageDeleteData [10:49:47]Write to MH i2c: 01 00 00 C8 38 00 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 C8 38 00 00 00 00 00 DD 0C F0 [10:49:47]RasterBufferAndPrint [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]written 0, free lines is 3300 [10:49:47]MH_Cut [10:49:47]Write to MH i2c: D1 01 00 CF 38 01 D9 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 01 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 01 00 CF 38 00 D8 [10:49:47]Write to MH i2c: 01 00 00 D0 38 08 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]OFD Sender: No OFD packet to send [10:49:47]*** Cut start [10:49:47]*** Partial cut [10:49:47]*** CUTSNS_PIN = 1 [10:49:47]*** CUTSNS_PIN = 0 [10:49:48]*** Brake cut motor [10:49:48]Read from MH i2c: 01 [10:49:48]MH_I2C_Read... [10:49:48]*** Stop cut motor [10:49:48]*** Cut end [10:49:48]Read from MH i2c: 01 07 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: 01 07 00 D0 38 00 00 00 00 00 FF 0F 1D [10:49:48]process_action close_receipt done [10:49:48]requested_data is exist [10:49:48]produce_requested_data [10:49:48]requested_item fm.sn is exist - process it [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 11 00 00 [10:49:48]Write to MH i2c: E2 08 00 D1 38 80 11 00 00 00 00 00 00 83 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 17 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 17 00 D1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [10:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:49:48]wFMCommunicate OK [10:49:48]requested_item fd.num is exist - process it [10:49:48]SAM_PROTO_GetFieldsCounters [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 13 00 00 [10:49:48]Write to MH i2c: E2 08 00 D2 38 80 13 00 00 00 00 00 00 86 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 62 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 62 00 D2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:48]wFMCommunicate OK [10:49:48]SAM_PROTO_GetFieldsCounters done [10:49:48]requested_item shift.num is exist - process it [10:49:48]requested_item shift.opened is exist - process it [10:49:48]req_shift_opened [10:49:48]FM_GetShiftState [10:49:48]SAM_PROTO_GetShiftState [10:49:48]wFMCommunicate request_size=4 [10:49:48]MH_SAM_APDU [10:49:48]CAPDU: 80 13 01 00 [10:49:48]Write to MH i2c: E2 08 00 D3 38 80 13 01 00 00 00 00 00 88 [10:49:48]Write i2c OK [10:49:48]MH_I2C_Read... [10:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:48]Read from MH i2c: E2 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0E 00 [10:49:48]MH_I2C_Read... [10:49:48]Read from MH i2c: E2 0E 00 D3 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 08 [10:49:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:49:48]wFMCommunicate OK [10:49:48]SAM_PROTO_GetShiftState done [10:49:48]FM_GetShiftState done [10:49:48]req_shift_opened done [10:49:48]requested_item shift.open_date is exist - process it [10:49:48]req_shift_open_date [10:49:48]req_shift_open_date done [10:49:48]produce_requested_data done [10:49:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140096,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:49:48]process_action_free close_receipt [10:49:48]json_value_free [10:49:48]json_value_free done [10:49:48]process_json_proto returns [10:49:48]Send response to host [10:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140096,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:49:48]free response buf [10:49:48]execute_script done [10:49:48]execute_script returns [10:49:48]free content buf [10:49:48]Sock 7.Close socket [10:49:48]Sock 7.Thread stoped [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:23]accept exits with 9 [10:51:23]New connection [10:51:23]New thread 3066764644 created [10:51:23]Thread 3066908004 joined [10:51:23]Waiting for new connection... [10:51:23] Sock 9.Parse request [10:51:23]Sock 9.Check first char [10:51:23]Sock 9.First char is OK [10:51:23]request: POST /json_proto HTTP/1.0 [10:51:23]Method: POST [10:51:23]URL: /json_proto [10:51:23]Method is POST - this is cgi request [10:51:23]url: /json_proto [10:51:23]query_string will be loaded in cgi processing [10:51:23]execute_cgi json_proto POST (null) [10:51:23]execute_cgi path=json_proto method=POST [10:51:23]POST find Content-Length [10:51:23]Host: 172.17.45.67:8080 [10:51:23]Content-Length: 677 [10:51:23]Content-Type: application/json [10:51:23] [10:51:23]POST finish read [10:51:23]Found Content-Length = 677 [10:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:51:23]execute_script... [10:51:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:51:23]POST & json_proto [10:51:23]process_json_proto [10:51:23]json parsed OK: [10:51:23]protocol is kg_v1.0 [10:51:23]action value=close_receipt [10:51:23]process_action close_receipt [10:51:23]cmd_close_receipt [10:51:23]MH_GetDate [10:51:23]Write to MH i2c: F0 00 00 D4 38 FB [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 09 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 09 00 D4 38 00 AE C6 C5 66 5F 7F 2B 66 12 [10:51:23]GetLastDocTimeStamp 1724237387 [10:51:23]current date 1724237486 [10:51:23]FM_GetShiftState [10:51:23]SAM_PROTO_GetShiftState [10:51:23]wFMCommunicate request_size=4 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 13 01 00 [10:51:23]Write to MH i2c: E2 08 00 D5 38 80 13 01 00 00 00 00 00 8A [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 D5 38 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0A [10:51:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:51:23]wFMCommunicate OK [10:51:23]SAM_PROTO_GetShiftState done [10:51:23]FM_GetShiftState done [10:51:23]opened in 1724200467 [10:51:23]opened+sec_in_day 1724286867 [10:51:23]quantity*price = 60003 [10:51:23]sum+1 = 60004 [10:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 114 21.08.2024 10:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140097 ФПД: 247580728115076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105126&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140097&fm=247580728115076&tin=02508201610067®Number=0000000000092569&sum=60000 [10:51:24]StoreToDocumentArchive [10:51:24]shift 454 fd 140097 [10:51:24]save to /storage/0454/doc_00140097 [10:51:24]save last doc name /storage/0454/doc_00140097 to /storage/kkm_last_doc_name [10:51:24]save OK [10:51:24]Clear old archive folders... [10:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:24]tlvbuf is B6ECF920 [10:51:24]SAM_PROTO_ClearQueue [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 09 00 00 [10:51:24]Write to MH i2c: E2 08 00 E2 38 80 09 00 00 00 00 00 00 8C [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 E2 38 00 90 00 8E [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]SAM_PROTO_ClearQueue done [10:51:24]KKMCreateOFDPacket [10:51:24]OFDProtocolAddRootSTLVToBuf [10:51:24]FM_MakeSignedData [10:51:24]FM_MakeSignedData [10:51:24]SAM_PROTO_SignData [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 01 02 [10:51:24]Write to MH i2c: E2 08 00 E3 38 80 0D 01 02 00 00 00 00 94 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 E3 38 00 90 00 8F [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=255 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 23 02 00 35 04 06 00 E1 [10:51:24]Write to MH i2c: E2 02 01 E4 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 23 02 00 35 04 06 00 E1 00 00 03 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 E4 38 00 90 00 90 [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=10 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 02 02 05 2C 61 5A 3F 84 [10:51:24]Write to MH i2c: E2 0D 00 E5 38 80 0D 02 02 05 00 2C 61 5A 3F 84 00 00 4B [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 03 02 [10:51:24]Write to MH i2c: E2 08 00 E6 38 80 0D 03 02 00 00 00 00 99 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0B 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0B 00 E6 38 00 E4 AB 73 A0 45 E6 CB 92 90 00 C4 [10:51:25]RAPDU: E4 AB 73 A0 45 E6 CB 92 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_SignData done [10:51:25]FM_MakeSignedData done [10:51:25]CreateOFDProtocolMessage [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 11 00 00 [10:51:25]Write to MH i2c: E2 08 00 E7 38 80 11 00 00 00 00 00 00 99 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 E7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [10:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:51:25]wFMCommunicate OK [10:51:25]CreateOFDProtocolMessage done [10:51:25]OFDSenderStorePacket 140097 [10:51:25]StoreOFDPacket docnum=140097 [10:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D 9E 07 01 39 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 23 02 00 35 04 06 00 E1 2C 61 5A 3F 84 E4 AB 73 A0 45 E6 CB 92 [10:51:25]CheckFolder [10:51:25]dirname=/storage/ofd_packets [10:51:25]CheckFolder done [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00140097 [10:51:25]NVStorageSaveData ofd_packets/00140097 [10:51:25]File name is /storage/ofd_packets/00140097 [10:51:25]Write 301 bytes [10:51:25]NVStorageSaveData done [10:51:25]OFDSenderStorePacket done [10:51:25]KKMCreateOFDPacket done [10:51:25]NVStorageSaveData kkm_last_timestamp [10:51:25]File name is /storage/kkm_last_timestamp [10:51:25]Write 4 bytes [10:51:25]NVStorageSaveData done [10:51:25]ExternCall_PrintAddStr [10:51:25]wPrintStart [10:51:25]Write to MH i2c: 01 00 00 E8 38 20 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 E8 38 00 00 00 00 00 FF 0F 35 [10:51:25]RasterBufferAndPrint [10:51:25]line Счет N : (1)593951 [10:51:25]line ИНН: 02508201610067 [10:51:25]line Контрольно-Кассовый Чек [10:51:25]line ПРОДАЖА [10:51:25]line ТРК (МРК, ГНК) : 62 [10:51:25]line Товар: 2710124130 [10:51:25]line Аи-92-К-5 [10:51:25]line 8.850 * 67.80 [10:51:25]line = 600.03 [10:51:25]line НДС 12% НСП 1% [10:51:25]line > о реализуемом товаре [10:51:25]line ОКРУГЛЕНИЕ: -0.03 [10:51:25]line ИТОГО: 600.00 [10:51:25]line Внесено: 600.00 [10:51:25]line СДАЧА: 0.00 [10:51:25]line НСП 1% : 5.31 [10:51:25]line НДС 12% : 63.72 [10:51:25]line Наличными: 600.00 [10:51:25]line Безнал.: 0.00 [10:51:25]line Место: АЗС № 136 "Партнер Нефть" [10:51:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:51:25]line СНО: Общий режим [10:51:25]line Чек 114 21.08.2024 10:51 [10:51:25]line Смена: 454 ФФД: 1.0 [10:51:25]line ЗНМ: 0300000067 [10:51:25]line РНМ: 0000000000092569 [10:51:25]line Версия ККМ: 001 [10:51:25]line ФМ: 0000000000871776 [10:51:25]line ФД: 140097 [10:51:25]line ФПД: 247580728115076 [10:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105126&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140097&fm=247580728115076&tin=02508201610067®Number=0000000000092569&sum=60000 [10:51:25]written 0, free lines is 4095 [10:51:25]OFD Sender: Processing packet 140097 [packets to send 137, broken 136] [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00140097 [10:51:25]OFD Sender: To server: pG, [10:51:25]CommunicateWithHost lk.salyk.kg:30040 [10:51:25]ConnectInit lk.salyk.kg [10:51:25]Connected sock=7 [10:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8D 9E 07 01 39 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE C6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 23 02 00 35 04 06 00 E1 2C 61 5A 3F 84 E4 AB 73 A0 45 E6 CB 92 [10:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E1 E3 47 00 3A 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 37 36 10 04 04 00 41 23 02 00 F4 03 04 00 3F 6D C5 66 B6 04 01 00 00 55 69 13 12 B5 CD 7C 3F [10:51:25]CommunicateWithHost err = 0 [10:51:25]CheckOFDResponse [10:51:25]1017 (14) - 77093643461234 [10:51:25]1041 (16) - 0000000000871776 [10:51:25]1040 (4) - 140097 [10:51:25]1012 (4) - 21.08.2024 04:29 [10:51:25]1206 (1) - 0 [10:51:25]OFD Sender: Remove packet 140097 [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00140097 [10:51:25]NVStorageDeleteData [10:51:25]Write to MH i2c: 01 00 00 13 39 4C [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 13 39 00 00 00 00 00 D6 0C 35 [10:51:25]RasterBufferAndPrint [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]written 0, free lines is 3293 [10:51:25]MH_Cut [10:51:25]Write to MH i2c: D1 01 00 1A 39 01 25 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 01 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 01 00 1A 39 00 24 [10:51:25]Write to MH i2c: 01 00 00 1B 39 54 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:26]OFD Sender: No OFD packet to send [10:51:26]*** Cut start [10:51:26]*** Partial cut [10:51:26]*** CUTSNS_PIN = 1 [10:51:26]*** CUTSNS_PIN = 0 [10:51:26]*** Brake cut motor [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]*** Stop cut motor [10:51:27]*** Cut end [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 1B 39 00 00 00 00 00 FF 0F 69 [10:51:27]process_action close_receipt done [10:51:27]requested_data is exist [10:51:27]produce_requested_data [10:51:27]requested_item fm.sn is exist - process it [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 11 00 00 [10:51:27]Write to MH i2c: E2 08 00 1C 39 80 11 00 00 00 00 00 00 CF [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 1C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [10:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:51:27]wFMCommunicate OK [10:51:27]requested_item fd.num is exist - process it [10:51:27]SAM_PROTO_GetFieldsCounters [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 13 00 00 [10:51:27]Write to MH i2c: E2 08 00 1D 39 80 13 00 00 00 00 00 00 D2 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 62 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 62 00 1D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [10:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_GetFieldsCounters done [10:51:27]requested_item shift.num is exist - process it [10:51:27]requested_item shift.opened is exist - process it [10:51:27]req_shift_opened [10:51:27]FM_GetShiftState [10:51:27]SAM_PROTO_GetShiftState [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 13 01 00 [10:51:27]Write to MH i2c: E2 08 00 1E 39 80 13 01 00 00 00 00 00 D4 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 1E 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 54 [10:51:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_GetShiftState done [10:51:27]FM_GetShiftState done [10:51:27]req_shift_opened done [10:51:27]requested_item shift.open_date is exist - process it [10:51:27]req_shift_open_date [10:51:27]req_shift_open_date done [10:51:27]produce_requested_data done [10:51:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140097,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:51:27]process_action_free close_receipt [10:51:27]json_value_free [10:51:27]json_value_free done [10:51:27]process_json_proto returns [10:51:27]Send response to host [10:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140097,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:51:27]free response buf [10:51:27]execute_script done [10:51:27]execute_script returns [10:51:27]free content buf [10:51:27]Sock 9.Close socket [10:51:27]Sock 9.Thread stoped [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:23]accept exits with 10 [10:59:23]New connection [10:59:23]New thread 3066908004 created [10:59:23]Thread 3066764644 joined [10:59:23]Waiting for new connection... [10:59:23] Sock 10.Parse request [10:59:23]Sock 10.Check first char [10:59:23]Sock 10.First char is OK [10:59:23]request: POST /json_proto HTTP/1.0 [10:59:23]Method: POST [10:59:23]URL: /json_proto [10:59:23]Method is POST - this is cgi request [10:59:23]url: /json_proto [10:59:23]query_string will be loaded in cgi processing [10:59:23]execute_cgi json_proto POST (null) [10:59:23]execute_cgi path=json_proto method=POST [10:59:23]POST find Content-Length [10:59:23]Host: 172.17.45.67:8080 [10:59:23]Content-Length: 663 [10:59:23]Content-Type: application/json [10:59:23] [10:59:23]POST finish read [10:59:23]Found Content-Length = 663 [10:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:23]execute_script... [10:59: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)593952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:23]POST & json_proto [10:59:23]process_json_proto [10:59:23]json parsed OK: [10:59:23]protocol is kg_v1.0 [10:59:23]action value=close_receipt [10:59:23]process_action close_receipt [10:59:23]cmd_close_receipt [10:59:23]MH_GetDate [10:59:23]Write to MH i2c: F0 00 00 1F 39 47 [10:59:23]Write i2c OK [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 09 00 [10:59:23]MH_I2C_Read... [10:59:23]Read from MH i2c: F0 09 00 1F 39 00 8E C8 C5 66 5F 7F 2B 66 40 [10:59:23]GetLastDocTimeStamp 1724237486 [10:59:23]current date 1724237966 [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 20 39 80 13 01 00 00 00 00 00 D6 [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 20 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 56 [10:59:23]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [10:59:23]opened+sec_in_day 1724286867 [10:59:23]quantity*price = 100035 [10:59:23]sum+1 = 100036 [10:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 115 21.08.2024 10:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140098 ФПД: 210311915811384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140098&fm=210311915811384&tin=02508201610067®Number=0000000000092569&sum=100000 [10:59:24]StoreToDocumentArchive [10:59:24]shift 454 fd 140098 [10:59:24]save to /storage/0454/doc_00140098 [10:59:24]save last doc name /storage/0454/doc_00140098 to /storage/kkm_last_doc_name [10:59:24]save OK [10:59:24]Clear old archive folders... [10:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:59:24]tlvbuf is 00AE7F00 [10:59:24]SAM_PROTO_ClearQueue [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 09 00 00 [10:59:24]Write to MH i2c: E2 08 00 2D 39 80 09 00 00 00 00 00 00 D8 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 2D 39 00 90 00 DA [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]SAM_PROTO_ClearQueue done [10:59:24]KKMCreateOFDPacket [10:59:24]OFDProtocolAddRootSTLVToBuf [10:59:24]FM_MakeSignedData [10:59:24]FM_MakeSignedData [10:59:24]SAM_PROTO_SignData [10:59:24]wFMCommunicate request_size=4 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 0D 01 02 [10:59:24]Write to MH i2c: E2 08 00 2E 39 80 0D 01 02 00 00 00 00 E0 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:24]Read from MH i2c: E2 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 [10:59:24]MH_I2C_Read... [10:59:24]Read from MH i2c: E2 03 00 2E 39 00 90 00 DB [10:59:24]RAPDU: 90 00 [10:59:24]wFMCommunicate OK [10:59:24]wFMCommunicate request_size=253 [10:59:24]MH_SAM_APDU [10:59:24]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 8E C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 23 02 00 35 04 06 00 BF 47 0F 08 B2 38 [10:59:24]Write to MH i2c: E2 00 01 2F 39 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 8E C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 23 02 00 35 04 06 00 BF 47 0F 08 B2 38 00 00 81 [10:59:24]Write i2c OK [10:59:24]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 03 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 03 00 2F 39 00 90 00 DC [10:59:25]RAPDU: 90 00 [10:59:25]wFMCommunicate OK [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 0D 03 02 [10:59:25]Write to MH i2c: E2 08 00 30 39 80 0D 03 02 00 00 00 00 E4 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0B 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0B 00 30 39 00 21 92 89 B4 A8 C1 BB 13 90 00 0C [10:59:25]RAPDU: 21 92 89 B4 A8 C1 BB 13 90 00 [10:59:25]wFMCommunicate OK [10:59:25]SAM_PROTO_SignData done [10:59:25]FM_MakeSignedData done [10:59:25]CreateOFDProtocolMessage [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 11 00 00 [10:59:25]Write to MH i2c: E2 08 00 31 39 80 11 00 00 00 00 00 00 E4 [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 17 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 17 00 31 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [10:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:59:25]wFMCommunicate OK [10:59:25]CreateOFDProtocolMessage done [10:59:25]OFDSenderStorePacket 140098 [10:59:25]StoreOFDPacket docnum=140098 [10:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 5A A0 00 01 A6 E7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 8E C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 23 02 00 35 04 06 00 BF 47 0F 08 B2 38 21 92 89 B4 A8 C1 BB 13 [10:59:25]CheckFolder [10:59:25]dirname=/storage/ofd_packets [10:59:25]CheckFolder done [10:59:25]ProducePacketName [10:59:25]name=ofd_packets/00140098 [10:59:25]NVStorageSaveData ofd_packets/00140098 [10:59:25]File name is /storage/ofd_packets/00140098 [10:59:25]Write 294 bytes [10:59:25]NVStorageSaveData done [10:59:25]OFDSenderStorePacket done [10:59:25]KKMCreateOFDPacket done [10:59:25]NVStorageSaveData kkm_last_timestamp [10:59:25]File name is /storage/kkm_last_timestamp [10:59:25]Write 4 bytes [10:59:25]NVStorageSaveData done [10:59:25]ExternCall_PrintAddStr [10:59:25]wPrintStart [10:59:25]Write to MH i2c: 01 00 00 32 39 6B [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 07 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: 01 07 00 32 39 00 00 00 00 00 FF 0F 80 [10:59:25]RasterBufferAndPrint [10:59:25]line Счет N : (1)593952 [10:59:25]line ИНН: 02508201610067 [10:59:25]line Контрольно-Кассовый Чек [10:59:25]line ПРОДАЖА [10:59:25]line ТРК (МРК, ГНК) : 43 [10:59:25]line Товар: 2710124130 [10:59:25]line SU-92 [10:59:25]line 14.540 * 68.80 [10:59:25]line = 1000.35 [10:59:25]line НДС 12% НСП 1% [10:59:25]line > о реализуемом товаре [10:59:25]line ОКРУГЛЕНИЕ: -0.35 [10:59:25]line ИТОГО: 1000.00 [10:59:25]line Внесено: 1000.00 [10:59:25]line СДАЧА: 0.00 [10:59:25]line НСП 1% : 8.85 [10:59:25]line НДС 12% : 106.23 [10:59:25]line Наличными: 1000.00 [10:59:25]line Безнал.: 0.00 [10:59:25]line Место: АЗС № 136 "Партнер Нефть" [10:59:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:59:25]line СНО: Общий режим [10:59:25]line Чек 115 21.08.2024 10:59 [10:59:25]line Смена: 454 ФФД: 1.0 [10:59:25]line ЗНМ: 0300000067 [10:59:25]line РНМ: 0000000000092569 [10:59:25]line Версия ККМ: 001 [10:59:25]line ФМ: 0000000000871776 [10:59:25]line ФД: 140098 [10:59:25]line ФПД: 210311915811384 [10:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105926&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140098&fm=210311915811384&tin=02508201610067®Number=0000000000092569&sum=100000 [10:59:25]OFD Sender: Processing packet 140098 [packets to send 137, broken 136] [10:59:25]ProducePacketName [10:59:25]name=ofd_packets/00140098 [10:59:25]OFD Sender: To server: pG, [10:59:25]CommunicateWithHost lk.salyk.kg:30040 [10:59:25]ConnectInit lk.salyk.kg [10:59:25]written 0, free lines is 4095 [10:59:25]Connected sock=9 [10:59: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 37 36 08 01 00 00 5A A0 00 01 A6 E7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 8E C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 23 02 00 35 04 06 00 BF 47 0F 08 B2 38 21 92 89 B4 A8 C1 BB 13 [10:59: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 37 36 4F 00 00 00 A8 ED 47 00 8A 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 37 36 10 04 04 00 42 23 02 00 F4 03 04 00 1F 6F C5 66 B6 04 01 00 00 27 A8 24 DF 26 28 32 4F [10:59:26]CommunicateWithHost err = 0 [10:59:26]CheckOFDResponse [10:59:26]1017 (14) - 77093643461234 [10:59:26]1041 (16) - 0000000000871776 [10:59:26]1040 (4) - 140098 [10:59:26]1012 (4) - 21.08.2024 04:37 [10:59:26]1206 (1) - 0 [10:59:26]OFD Sender: Remove packet 140098 [10:59:26]ProducePacketName [10:59:26]name=ofd_packets/00140098 [10:59:26]NVStorageDeleteData [10:59:26]Write to MH i2c: 01 00 00 5D 39 96 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: 01 07 00 5D 39 00 00 00 00 00 D0 0C 79 [10:59:26]RasterBufferAndPrint [10:59:26]line [10:59:26]line [10:59:26]line [10:59:26]line [10:59:26]line [10:59:26]written 0, free lines is 3285 [10:59:26]MH_Cut [10:59:26]Write to MH i2c: D1 01 00 64 39 01 6F [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: D1 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: D1 01 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: D1 01 00 64 39 00 6E [10:59:26]Write to MH i2c: 01 00 00 65 39 9E [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]OFD Sender: No OFD packet to send [10:59:26]*** Cut start [10:59:26]*** Partial cut [10:59:26]*** CUTSNS_PIN = 1 [10:59:26]*** CUTSNS_PIN = 0 [10:59:27]*** Brake cut motor [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]*** Stop cut motor [10:59:27]*** Cut end [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 65 39 00 00 00 00 00 FF 0F B3 [10:59:27]process_action close_receipt done [10:59:27]requested_data is exist [10:59:27]produce_requested_data [10:59:27]requested_item fm.sn is exist - process it [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 11 00 00 [10:59:27]Write to MH i2c: E2 08 00 66 39 80 11 00 00 00 00 00 00 19 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 66 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [10:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:59:27]wFMCommunicate OK [10:59:27]requested_item fd.num is exist - process it [10:59:27]SAM_PROTO_GetFieldsCounters [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 13 00 00 [10:59:27]Write to MH i2c: E2 08 00 67 39 80 13 00 00 00 00 00 00 1C [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 62 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 62 00 67 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [10:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_GetFieldsCounters done [10:59:27]requested_item shift.num is exist - process it [10:59:27]requested_item shift.opened is exist - process it [10:59:27]req_shift_opened [10:59:27]FM_GetShiftState [10:59:27]SAM_PROTO_GetShiftState [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 13 01 00 [10:59:27]Write to MH i2c: E2 08 00 68 39 80 13 01 00 00 00 00 00 1E [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0E 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0E 00 68 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [10:59:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_GetShiftState done [10:59:27]FM_GetShiftState done [10:59:27]req_shift_opened done [10:59:27]requested_item shift.open_date is exist - process it [10:59:27]req_shift_open_date [10:59:27]req_shift_open_date done [10:59:27]produce_requested_data done [10:59:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140098,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:59:27]process_action_free close_receipt [10:59:27]json_value_free [10:59:27]json_value_free done [10:59:27]process_json_proto returns [10:59:27]Send response to host [10:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140098,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:59:27]free response buf [10:59:27]execute_script done [10:59:27]execute_script returns [10:59:27]free content buf [10:59:27]Sock 10.Close socket [10:59:27]Sock 10.Thread stoped [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:49]accept exits with 7 [10:59:49]New connection [10:59:49]New thread 3066764644 created [10:59:49]Thread 3066908004 joined [10:59:49]Waiting for new connection... [10:59:49] Sock 7.Parse request [10:59:49]Sock 7.Check first char [10:59:49]Sock 7.First char is OK [10:59:49]request: POST /json_proto HTTP/1.0 [10:59:49]Method: POST [10:59:49]URL: /json_proto [10:59:49]Method is POST - this is cgi request [10:59:49]url: /json_proto [10:59:49]query_string will be loaded in cgi processing [10:59:49]execute_cgi json_proto POST (null) [10:59:49]execute_cgi path=json_proto method=POST [10:59:49]POST find Content-Length [10:59:49]Host: 172.17.45.67:8080 [10:59:49]Content-Length: 677 [10:59:49]Content-Type: application/json [10:59:49] [10:59:49]POST finish read [10:59:49]Found Content-Length = 677 [10:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:49]execute_script... [10:59: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)593953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:49]POST & json_proto [10:59:49]process_json_proto [10:59:49]json parsed OK: [10:59:49]protocol is kg_v1.0 [10:59:49]action value=close_receipt [10:59:49]process_action close_receipt [10:59:49]cmd_close_receipt [10:59:49]MH_GetDate [10:59:49]Write to MH i2c: F0 00 00 69 39 91 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: F0 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: F0 09 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: F0 09 00 69 39 00 A9 C8 C5 66 5F 7F 2B 66 A5 [10:59:49]GetLastDocTimeStamp 1724237966 [10:59:49]current date 1724237993 [10:59:49]FM_GetShiftState [10:59:49]SAM_PROTO_GetShiftState [10:59:49]wFMCommunicate request_size=4 [10:59:49]MH_SAM_APDU [10:59:49]CAPDU: 80 13 01 00 [10:59:49]Write to MH i2c: E2 08 00 6A 39 80 13 01 00 00 00 00 00 20 [10:59:49]Write i2c OK [10:59:49]MH_I2C_Read... [10:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:49]Read from MH i2c: E2 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 [10:59:49]MH_I2C_Read... [10:59:49]Read from MH i2c: E2 0E 00 6A 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [10:59:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:59:49]wFMCommunicate OK [10:59:49]SAM_PROTO_GetShiftState done [10:59:49]FM_GetShiftState done [10:59:49]opened in 1724200467 [10:59:49]opened+sec_in_day 1724286867 [10:59:49]quantity*price = 40068 [10:59:49]sum+1 = 40069 [10:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 116 21.08.2024 10:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140099 ФПД: 146841742746805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140099&fm=146841742746805&tin=02508201610067®Number=0000000000092569&sum=40000 [10:59:51]StoreToDocumentArchive [10:59:51]shift 454 fd 140099 [10:59:51]save to /storage/0454/doc_00140099 [10:59:51]save last doc name /storage/0454/doc_00140099 to /storage/kkm_last_doc_name [10:59:51]save OK [10:59:51]Clear old archive folders... [10:59:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:51]tlvbuf is 00A6A230 [10:59:51]SAM_PROTO_ClearQueue [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 09 00 00 [10:59:51]Write to MH i2c: E2 08 00 77 39 80 09 00 00 00 00 00 00 22 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 77 39 00 90 00 24 [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_ClearQueue done [10:59:51]KKMCreateOFDPacket [10:59:51]OFDProtocolAddRootSTLVToBuf [10:59:51]FM_MakeSignedData [10:59:51]FM_MakeSignedData [10:59:51]SAM_PROTO_SignData [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 01 02 [10:59:51]Write to MH i2c: E2 08 00 78 39 80 0D 01 02 00 00 00 00 2A [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 78 39 00 90 00 25 [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=255 [10:59:51]MH_SAM_APDU [10:59: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A9 C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 23 02 00 35 04 06 00 85 [10:59:51]Write to MH i2c: E2 02 01 79 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A9 C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 23 02 00 35 04 06 00 85 00 00 36 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 79 39 00 90 00 26 [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=10 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 02 02 05 8D 41 EA 24 B5 [10:59:51]Write to MH i2c: E2 0D 00 7A 39 80 0D 02 02 05 00 8D 41 EA 24 B5 00 00 C8 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 03 00 7A 39 00 90 00 27 [10:59:51]RAPDU: 90 00 [10:59:51]wFMCommunicate OK [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 0D 03 02 [10:59:51]Write to MH i2c: E2 08 00 7B 39 80 0D 03 02 00 00 00 00 2F [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0B 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 0B 00 7B 39 00 DC 53 BA 09 35 92 80 93 90 00 FC [10:59:51]RAPDU: DC 53 BA 09 35 92 80 93 90 00 [10:59:51]wFMCommunicate OK [10:59:51]SAM_PROTO_SignData done [10:59:51]FM_MakeSignedData done [10:59:51]CreateOFDProtocolMessage [10:59:51]wFMCommunicate request_size=4 [10:59:51]MH_SAM_APDU [10:59:51]CAPDU: 80 11 00 00 [10:59:51]Write to MH i2c: E2 08 00 7C 39 80 11 00 00 00 00 00 00 2F [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:51]Read from MH i2c: E2 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: E2 17 00 7C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [10:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:59:51]wFMCommunicate OK [10:59:51]CreateOFDProtocolMessage done [10:59:51]OFDSenderStorePacket 140099 [10:59:51]StoreOFDPacket docnum=140099 [10:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7D C1 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A9 C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 23 02 00 35 04 06 00 85 8D 41 EA 24 B5 DC 53 BA 09 35 92 80 93 [10:59:51]CheckFolder [10:59:51]dirname=/storage/ofd_packets [10:59:51]CheckFolder done [10:59:51]ProducePacketName [10:59:51]name=ofd_packets/00140099 [10:59:51]NVStorageSaveData ofd_packets/00140099 [10:59:51]File name is /storage/ofd_packets/00140099 [10:59:51]Write 301 bytes [10:59:51]NVStorageSaveData done [10:59:51]OFDSenderStorePacket done [10:59:51]KKMCreateOFDPacket done [10:59:51]NVStorageSaveData kkm_last_timestamp [10:59:51]File name is /storage/kkm_last_timestamp [10:59:51]Write 4 bytes [10:59:51]OFD Sender: Processing packet 140099 [packets to send 137, broken 136] [10:59:51]ProducePacketName [10:59:51]name=ofd_packets/00140099 [10:59:51]OFD Sender: To server: pG, [10:59:51]CommunicateWithHost lk.salyk.kg:30040 [10:59:51]ConnectInit lk.salyk.kg [10:59:51]NVStorageSaveData done [10:59:51]ExternCall_PrintAddStr [10:59:51]wPrintStart [10:59:51]Write to MH i2c: 01 00 00 7D 39 B6 [10:59:51]Write i2c OK [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 [10:59:51]MH_I2C_Read... [10:59:51]Read from MH i2c: 01 07 00 7D 39 00 00 00 00 00 FF 0F CB [10:59:51]RasterBufferAndPrint [10:59:51]line Счет N : (1)593953 [10:59:51]line ИНН: 02508201610067 [10:59:51]line Контрольно-Кассовый Чек [10:59:51]line ПРОДАЖА [10:59:51]line ТРК (МРК, ГНК) : 51 [10:59:51]line Товар: 2710124500 [10:59:51]line Аи-95-К-5 [10:59:51]line 5.400 * 74.20 [10:59:51]line = 400.68 [10:59:51]line НДС 12% НСП 1% [10:59:51]line > о реализуемом товаре [10:59:51]line ОКРУГЛЕНИЕ: -0.68 [10:59:51]line ИТОГО: 400.00 [10:59:51]line Внесено: 400.00 [10:59:51]line СДАЧА: 0.00 [10:59:51]line НСП 1% : 3.55 [10:59:51]line НДС 12% : 42.55 [10:59:51]line Наличными: 400.00 [10:59:51]line Безнал.: 0.00 [10:59:51]line Место: АЗС № 136 "Партнер Нефть" [10:59:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [10:59:51]line СНО: Общий режим [10:59:51]line Чек 116 21.08.2024 10:59 [10:59:51]line Смена: 454 ФФД: 1.0 [10:59:51]line ЗНМ: 0300000067 [10:59:51]line РНМ: 0000000000092569 [10:59:51]line Версия ККМ: 001 [10:59:51]line ФМ: 0000000000871776 [10:59:51]line ФД: 140099 [10:59:51]line ФПД: 146841742746805 [10:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T105953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140099&fm=146841742746805&tin=02508201610067®Number=0000000000092569&sum=40000 [10:59:51]Connected sock=11 [10:59: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 37 36 0F 01 00 00 7D C1 07 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 A9 C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 23 02 00 35 04 06 00 85 8D 41 EA 24 B5 DC 53 BA 09 35 92 80 93 [10:59:51]written 0, free lines is 4095 [10:59: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 37 36 4F 00 00 00 85 78 47 00 AC 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 37 36 10 04 04 00 43 23 02 00 F4 03 04 00 39 6F C5 66 B6 04 01 00 00 97 1E 9B 4A 8D DD 79 FB [10:59:52]CommunicateWithHost err = 0 [10:59:52]CheckOFDResponse [10:59:52]1017 (14) - 77093643461234 [10:59:52]1041 (16) - 0000000000871776 [10:59:52]1040 (4) - 140099 [10:59:52]1012 (4) - 21.08.2024 04:38 [10:59:52]1206 (1) - 0 [10:59:52]OFD Sender: Remove packet 140099 [10:59:52]ProducePacketName [10:59:52]name=ofd_packets/00140099 [10:59:52]NVStorageDeleteData [10:59:52]Write to MH i2c: 01 00 00 A8 39 E1 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: 01 07 00 A8 39 00 00 00 00 00 C7 0C BB [10:59:52]RasterBufferAndPrint [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]line [10:59:52]written 0, free lines is 3281 [10:59:52]MH_Cut [10:59:52]Write to MH i2c: D1 01 00 AF 39 01 BA [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 01 00 [10:59:52]MH_I2C_Read... [10:59:52]Read from MH i2c: D1 01 00 AF 39 00 B9 [10:59:52]Write to MH i2c: 01 00 00 B0 39 E9 [10:59:52]Write i2c OK [10:59:52]MH_I2C_Read... [10:59:52]OFD Sender: No OFD packet to send [10:59:53]*** Cut start [10:59:53]*** Partial cut [10:59:53]*** CUTSNS_PIN = 1 [10:59:53]*** CUTSNS_PIN = 0 [10:59:53]*** Brake cut motor [10:59:53]Read from MH i2c: 01 [10:59:53]MH_I2C_Read... [10:59:53]*** Stop cut motor [10:59:53]*** Cut end [10:59:53]Read from MH i2c: 01 07 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: 01 07 00 B0 39 00 00 00 00 00 FF 0F FE [10:59:53]process_action close_receipt done [10:59:53]requested_data is exist [10:59:53]produce_requested_data [10:59:53]requested_item fm.sn is exist - process it [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 11 00 00 [10:59:53]Write to MH i2c: E2 08 00 B1 39 80 11 00 00 00 00 00 00 64 [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 17 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 17 00 B1 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [10:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [10:59:53]wFMCommunicate OK [10:59:53]requested_item fd.num is exist - process it [10:59:53]SAM_PROTO_GetFieldsCounters [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 13 00 00 [10:59:53]Write to MH i2c: E2 08 00 B2 39 80 13 00 00 00 00 00 00 67 [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 62 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 62 00 B2 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [10:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:53]wFMCommunicate OK [10:59:53]SAM_PROTO_GetFieldsCounters done [10:59:53]requested_item shift.num is exist - process it [10:59:53]requested_item shift.opened is exist - process it [10:59:53]req_shift_opened [10:59:53]FM_GetShiftState [10:59:53]SAM_PROTO_GetShiftState [10:59:53]wFMCommunicate request_size=4 [10:59:53]MH_SAM_APDU [10:59:53]CAPDU: 80 13 01 00 [10:59:53]Write to MH i2c: E2 08 00 B3 39 80 13 01 00 00 00 00 00 69 [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:53]Read from MH i2c: E2 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 0E 00 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: E2 0E 00 B3 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [10:59:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [10:59:53]wFMCommunicate OK [10:59:53]SAM_PROTO_GetShiftState done [10:59:53]FM_GetShiftState done [10:59:53]req_shift_opened done [10:59:53]requested_item shift.open_date is exist - process it [10:59:53]req_shift_open_date [10:59:53]req_shift_open_date done [10:59:53]produce_requested_data done [10:59:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140099,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [10:59:53]process_action_free close_receipt [10:59:53]json_value_free [10:59:53]json_value_free done [10:59:53]process_json_proto returns [10:59:53]Send response to host [10:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140099,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [10:59:53]free response buf [10:59:53]execute_script done [10:59:53]execute_script returns [10:59:53]free content buf [10:59:53]Sock 7.Close socket [10:59:53]Sock 7.Thread stoped [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:40]accept exits with 9 [11:00:40]New connection [11:00:40]New thread 3066908004 created [11:00:40]Thread 3066764644 joined [11:00:40]Waiting for new connection... [11:00:40] Sock 9.Parse request [11:00:40]Sock 9.Check first char [11:00:40]Sock 9.First char is OK [11:00:40]request: POST /json_proto HTTP/1.0 [11:00:40]Method: POST [11:00:40]URL: /json_proto [11:00:40]Method is POST - this is cgi request [11:00:40]url: /json_proto [11:00:40]query_string will be loaded in cgi processing [11:00:40]execute_cgi json_proto POST (null) [11:00:40]execute_cgi path=json_proto method=POST [11:00:40]POST find Content-Length [11:00:40]Host: 172.17.45.67:8080 [11:00:40]Content-Length: 677 [11:00:40]Content-Type: application/json [11:00:40] [11:00:40]POST finish read [11:00:40]Found Content-Length = 677 [11:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:40]execute_script... [11:00: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)593954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.120, "sum" : 550.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:40]POST & json_proto [11:00:40]process_json_proto [11:00:40]json parsed OK: [11:00:40]protocol is kg_v1.0 [11:00:40]action value=close_receipt [11:00:40]process_action close_receipt [11:00:40]cmd_close_receipt [11:00:40]MH_GetDate [11:00:40]Write to MH i2c: F0 00 00 B4 39 DC [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: F0 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: F0 09 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: F0 09 00 B4 39 00 DB C8 C5 66 5F 7F 2B 66 22 [11:00:40]GetLastDocTimeStamp 1724237993 [11:00:40]current date 1724238043 [11:00:40]FM_GetShiftState [11:00:40]SAM_PROTO_GetShiftState [11:00:40]wFMCommunicate request_size=4 [11:00:40]MH_SAM_APDU [11:00:40]CAPDU: 80 13 01 00 [11:00:40]Write to MH i2c: E2 08 00 B5 39 80 13 01 00 00 00 00 00 6B [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:40]Read from MH i2c: E2 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 0E 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: E2 0E 00 B5 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [11:00:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:00:40]wFMCommunicate OK [11:00:40]SAM_PROTO_GetShiftState done [11:00:40]FM_GetShiftState done [11:00:40]opened in 1724200467 [11:00:40]opened+sec_in_day 1724286867 [11:00:40]quantity*price = 55053 [11:00:40]sum+1 = 55055 [11:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 117 21.08.2024 11:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140100 ФПД: 97723739073201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140100&fm=97723739073201&tin=02508201610067®Number=0000000000092569&sum=55000 [11:00:41]StoreToDocumentArchive [11:00:41]shift 454 fd 140100 [11:00:41]save to /storage/0454/doc_00140100 [11:00:41]save last doc name /storage/0454/doc_00140100 to /storage/kkm_last_doc_name [11:00:41]save OK [11:00:41]Clear old archive folders... [11:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:41]tlvbuf is B6ECFD80 [11:00:41]SAM_PROTO_ClearQueue [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 09 00 00 [11:00:41]Write to MH i2c: E2 08 00 C2 39 80 09 00 00 00 00 00 00 6D [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 C2 39 00 90 00 6F [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]SAM_PROTO_ClearQueue done [11:00:41]KKMCreateOFDPacket [11:00:41]OFDProtocolAddRootSTLVToBuf [11:00:41]FM_MakeSignedData [11:00:41]FM_MakeSignedData [11:00:41]SAM_PROTO_SignData [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 0D 01 02 [11:00:41]Write to MH i2c: E2 08 00 C3 39 80 0D 01 02 00 00 00 00 75 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 C3 39 00 90 00 70 [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]wFMCommunicate request_size=255 [11:00:41]MH_SAM_APDU [11:00: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 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DB C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 23 02 00 35 04 06 00 58 [11:00:41]Write to MH i2c: E2 02 01 C4 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DB C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 23 02 00 35 04 06 00 58 00 00 D6 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 C4 39 00 90 00 71 [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]wFMCommunicate request_size=10 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 0D 02 02 05 E1 14 C0 EA B1 [11:00:41]Write to MH i2c: E2 0D 00 C5 39 80 0D 02 02 05 00 E1 14 C0 EA B1 00 00 D2 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 03 00 C5 39 00 90 00 72 [11:00:41]RAPDU: 90 00 [11:00:41]wFMCommunicate OK [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 0D 03 02 [11:00:41]Write to MH i2c: E2 08 00 C6 39 80 0D 03 02 00 00 00 00 7A [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0B 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 0B 00 C6 39 00 71 7E A2 F9 92 44 15 12 90 00 02 [11:00:41]RAPDU: 71 7E A2 F9 92 44 15 12 90 00 [11:00:41]wFMCommunicate OK [11:00:41]SAM_PROTO_SignData done [11:00:41]FM_MakeSignedData done [11:00:41]CreateOFDProtocolMessage [11:00:41]wFMCommunicate request_size=4 [11:00:41]MH_SAM_APDU [11:00:41]CAPDU: 80 11 00 00 [11:00:41]Write to MH i2c: E2 08 00 C7 39 80 11 00 00 00 00 00 00 7A [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:41]Read from MH i2c: E2 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 17 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: E2 17 00 C7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [11:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:00:41]wFMCommunicate OK [11:00:41]CreateOFDProtocolMessage done [11:00:41]OFDSenderStorePacket 140100 [11:00:41]StoreOFDPacket docnum=140100 [11:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 90 15 07 01 76 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 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DB C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 23 02 00 35 04 06 00 58 E1 14 C0 EA B1 71 7E A2 F9 92 44 15 12 [11:00:41]CheckFolder [11:00:41]dirname=/storage/ofd_packets [11:00:41]CheckFolder done [11:00:41]ProducePacketName [11:00:41]name=ofd_packets/00140100 [11:00:41]NVStorageSaveData ofd_packets/00140100 [11:00:41]File name is /storage/ofd_packets/00140100 [11:00:41]Write 301 bytes [11:00:41]NVStorageSaveData done [11:00:41]OFDSenderStorePacket done [11:00:41]KKMCreateOFDPacket done [11:00:41]NVStorageSaveData kkm_last_timestamp [11:00:41]File name is /storage/kkm_last_timestamp [11:00:41]Write 4 bytes [11:00:41]NVStorageSaveData done [11:00:41]ExternCall_PrintAddStr [11:00:41]wPrintStart [11:00:41]Write to MH i2c: 01 00 00 C8 39 01 [11:00:41]Write i2c OK [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: 01 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: 01 07 00 [11:00:41]MH_I2C_Read... [11:00:41]Read from MH i2c: 01 07 00 C8 39 00 00 00 00 00 FF 0F 16 [11:00:41]RasterBufferAndPrint [11:00:41]line Счет N : (1)593954 [11:00:41]line ИНН: 02508201610067 [11:00:41]line Контрольно-Кассовый Чек [11:00:41]line ПРОДАЖА [11:00:41]line ТРК (МРК, ГНК) : 32 [11:00:41]line Товар: 2710124130 [11:00:41]line Аи-92-К-5 [11:00:41]line 8.120 * 67.80 [11:00:41]line = 550.54 [11:00:41]line НДС 12% НСП 1% [11:00:41]line > о реализуемом товаре [11:00:41]line ОКРУГЛЕНИЕ: -0.54 [11:00:41]line ИТОГО: 550.00 [11:00:41]line Внесено: 550.00 [11:00:41]line СДАЧА: 0.00 [11:00:41]line НСП 1% : 4.87 [11:00:41]line НДС 12% : 58.46 [11:00:41]line Наличными: 550.00 [11:00:41]line Безнал.: 0.00 [11:00:41]line Место: АЗС № 136 "Партнер Нефть" [11:00:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:00:41]line СНО: Общий режим [11:00:41]line Чек 117 21.08.2024 11:00 [11:00:41]line Смена: 454 ФФД: 1.0 [11:00:41]line ЗНМ: 0300000067 [11:00:41]line РНМ: 0000000000092569 [11:00:41]line Версия ККМ: 001 [11:00:41]line ФМ: 0000000000871776 [11:00:41]line ФД: 140100 [11:00:41]line ФПД: 97723739073201 [11:00:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140100&fm=97723739073201&tin=02508201610067®Number=0000000000092569&sum=55000 [11:00:42]OFD Sender: Processing packet 140100 [packets to send 137, broken 136] [11:00:42]ProducePacketName [11:00:42]name=ofd_packets/00140100 [11:00:42]OFD Sender: To server: pG, [11:00:42]CommunicateWithHost lk.salyk.kg:30040 [11:00:42]ConnectInit lk.salyk.kg [11:00:42]written 0, free lines is 4095 [11:00:42]Connected sock=10 [11:00: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 37 36 0F 01 00 00 90 15 07 01 76 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 B8 1F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 0E D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 DB C8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 23 02 00 35 04 06 00 58 E1 14 C0 EA B1 71 7E A2 F9 92 44 15 12 [11:00: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 37 36 4F 00 00 00 E2 1A 47 00 20 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 37 36 10 04 04 00 44 23 02 00 F4 03 04 00 6C 6F C5 66 B6 04 01 00 00 7E 97 0B D7 9F 3B 14 A9 [11:00:42]CommunicateWithHost err = 0 [11:00:42]CheckOFDResponse [11:00:42]1017 (14) - 77093643461234 [11:00:42]1041 (16) - 0000000000871776 [11:00:42]1040 (4) - 140100 [11:00:42]1012 (4) - 21.08.2024 04:39 [11:00:42]1206 (1) - 0 [11:00:42]OFD Sender: Remove packet 140100 [11:00:42]ProducePacketName [11:00:42]name=ofd_packets/00140100 [11:00:42]NVStorageDeleteData [11:00:42]Write to MH i2c: 01 00 00 F3 39 2C [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: 01 07 00 F3 39 00 00 00 00 00 D8 0C 17 [11:00:42]RasterBufferAndPrint [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]line [11:00:42]written 0, free lines is 3295 [11:00:42]MH_Cut [11:00:42]Write to MH i2c: D1 01 00 FA 39 01 05 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 01 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: D1 01 00 FA 39 00 04 [11:00:42]Write to MH i2c: 01 00 00 FB 39 34 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:43]OFD Sender: No OFD packet to send [11:00:43]*** Cut start [11:00:43]*** Partial cut [11:00:43]*** CUTSNS_PIN = 1 [11:00:43]*** CUTSNS_PIN = 0 [11:00:43]*** Brake cut motor [11:00:44]Read from MH i2c: 01 [11:00:44]MH_I2C_Read... [11:00:44]*** Stop cut motor [11:00:44]*** Cut end [11:00:44]Read from MH i2c: 01 07 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: 01 07 00 FB 39 00 00 00 00 00 FF 0F 49 [11:00:44]process_action close_receipt done [11:00:44]requested_data is exist [11:00:44]produce_requested_data [11:00:44]requested_item fm.sn is exist - process it [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 11 00 00 [11:00:44]Write to MH i2c: E2 08 00 FC 39 80 11 00 00 00 00 00 00 AF [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 FC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [11:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:00:44]wFMCommunicate OK [11:00:44]requested_item fd.num is exist - process it [11:00:44]SAM_PROTO_GetFieldsCounters [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 00 00 [11:00:44]Write to MH i2c: E2 08 00 FD 39 80 13 00 00 00 00 00 00 B2 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 62 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 62 00 FD 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_GetFieldsCounters done [11:00:44]requested_item shift.num is exist - process it [11:00:44]requested_item shift.opened is exist - process it [11:00:44]req_shift_opened [11:00:44]FM_GetShiftState [11:00:44]SAM_PROTO_GetShiftState [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 13 01 00 [11:00:44]Write to MH i2c: E2 08 00 FE 39 80 13 01 00 00 00 00 00 B4 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0E 00 FE 39 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 34 [11:00:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_GetShiftState done [11:00:44]FM_GetShiftState done [11:00:44]req_shift_opened done [11:00:44]requested_item shift.open_date is exist - process it [11:00:44]req_shift_open_date [11:00:44]req_shift_open_date done [11:00:44]produce_requested_data done [11:00:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140100,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:00:44]process_action_free close_receipt [11:00:44]json_value_free [11:00:44]json_value_free done [11:00:44]process_json_proto returns [11:00:44]Send response to host [11:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140100,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:00:44]free response buf [11:00:44]execute_script done [11:00:44]execute_script returns [11:00:44]free content buf [11:00:44]Sock 9.Close socket [11:00:44]Sock 9.Thread stoped [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:10]accept exits with 7 [11:05:10]New connection [11:05:10]New thread 3066764644 created [11:05:10]Thread 3066908004 joined [11:05:10]Waiting for new connection... [11:05:10] Sock 7.Parse request [11:05:10]Sock 7.Check first char [11:05:10]Sock 7.First char is OK [11:05:10]request: POST /json_proto HTTP/1.0 [11:05:10]Method: POST [11:05:10]URL: /json_proto [11:05:10]Method is POST - this is cgi request [11:05:10]url: /json_proto [11:05:10]query_string will be loaded in cgi processing [11:05:10]execute_cgi json_proto POST (null) [11:05:10]execute_cgi path=json_proto method=POST [11:05:10]POST find Content-Length [11:05:10]Host: 172.17.45.67:8080 [11:05:10]Content-Length: 677 [11:05:10]Content-Type: application/json [11:05:10] [11:05:10]POST finish read [11:05:10]Found Content-Length = 677 [11:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:10]execute_script... [11:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:10]POST & json_proto [11:05:10]process_json_proto [11:05:10]json parsed OK: [11:05:10]protocol is kg_v1.0 [11:05:10]action value=close_receipt [11:05:10]process_action close_receipt [11:05:10]cmd_close_receipt [11:05:10]MH_GetDate [11:05:10]Write to MH i2c: F0 00 00 FF 39 27 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: F0 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: F0 09 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: F0 09 00 FF 39 00 E9 C9 C5 66 5F 7F 2B 66 7C [11:05:10]GetLastDocTimeStamp 1724238043 [11:05:10]current date 1724238313 [11:05:10]FM_GetShiftState [11:05:10]SAM_PROTO_GetShiftState [11:05:10]wFMCommunicate request_size=4 [11:05:10]MH_SAM_APDU [11:05:10]CAPDU: 80 13 01 00 [11:05:10]Write to MH i2c: E2 08 00 00 3A 80 13 01 00 00 00 00 00 B7 [11:05:10]Write i2c OK [11:05:10]MH_I2C_Read... [11:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:10]Read from MH i2c: E2 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 0E 00 [11:05:10]MH_I2C_Read... [11:05:10]Read from MH i2c: E2 0E 00 00 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 37 [11:05:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:05:10]wFMCommunicate OK [11:05:10]SAM_PROTO_GetShiftState done [11:05:10]FM_GetShiftState done [11:05:10]opened in 1724200467 [11:05:10]opened+sec_in_day 1724286867 [11:05:10]quantity*price = 50010 [11:05:10]sum+1 = 50012 [11:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 118 21.08.2024 11:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140101 ФПД: 138958932741466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140101&fm=138958932741466&tin=02508201610067®Number=0000000000092569&sum=50000 [11:05:11]StoreToDocumentArchive [11:05:11]shift 454 fd 140101 [11:05:11]save to /storage/0454/doc_00140101 [11:05:11]save last doc name /storage/0454/doc_00140101 to /storage/kkm_last_doc_name [11:05:11]save OK [11:05:11]Clear old archive folders... [11:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:11]tlvbuf is B6D9D240 [11:05:11]SAM_PROTO_ClearQueue [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 09 00 00 [11:05:11]Write to MH i2c: E2 08 00 0D 3A 80 09 00 00 00 00 00 00 B9 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 0D 3A 00 90 00 BB [11:05:11]RAPDU: 90 00 [11:05:11]wFMCommunicate OK [11:05:11]SAM_PROTO_ClearQueue done [11:05:11]KKMCreateOFDPacket [11:05:11]OFDProtocolAddRootSTLVToBuf [11:05:11]FM_MakeSignedData [11:05:11]FM_MakeSignedData [11:05:11]SAM_PROTO_SignData [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 0D 01 02 [11:05:11]Write to MH i2c: E2 08 00 0E 3A 80 0D 01 02 00 00 00 00 C1 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 0E 3A 00 90 00 BC [11:05:11]RAPDU: 90 00 [11:05:11]wFMCommunicate OK [11:05:11]wFMCommunicate request_size=255 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E9 C9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 23 02 00 35 04 06 00 7E [11:05:11]Write to MH i2c: E2 02 01 0F 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E9 C9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 23 02 00 35 04 06 00 7E 00 00 34 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 0F 3A 00 90 00 BD [11:05:11]RAPDU: 90 00 [11:05:11]wFMCommunicate OK [11:05:11]wFMCommunicate request_size=10 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 0D 02 02 05 61 E5 D3 0D 5A [11:05:11]Write to MH i2c: E2 0D 00 10 3A 80 0D 02 02 05 00 61 E5 D3 0D 5A 00 00 4E [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [11:05:11]RAPDU: 90 00 [11:05:11]wFMCommunicate OK [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 0D 03 02 [11:05:11]Write to MH i2c: E2 08 00 11 3A 80 0D 03 02 00 00 00 00 C6 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0B 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0B 00 11 3A 00 A3 BC EC 11 20 E8 94 BC 90 00 7B [11:05:11]RAPDU: A3 BC EC 11 20 E8 94 BC 90 00 [11:05:11]wFMCommunicate OK [11:05:11]SAM_PROTO_SignData done [11:05:11]FM_MakeSignedData done [11:05:11]CreateOFDProtocolMessage [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 11 00 00 [11:05:11]Write to MH i2c: E2 08 00 12 3A 80 11 00 00 00 00 00 00 C6 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:12]Read from MH i2c: E2 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 17 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 17 00 12 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [11:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:12]wFMCommunicate OK [11:05:12]CreateOFDProtocolMessage done [11:05:12]OFDSenderStorePacket 140101 [11:05:12]StoreOFDPacket docnum=140101 [11:05:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 38 07 01 4E F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E9 C9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 23 02 00 35 04 06 00 7E 61 E5 D3 0D 5A A3 BC EC 11 20 E8 94 BC [11:05:12]CheckFolder [11:05:12]dirname=/storage/ofd_packets [11:05:12]CheckFolder done [11:05:12]ProducePacketName [11:05:12]name=ofd_packets/00140101 [11:05:12]NVStorageSaveData ofd_packets/00140101 [11:05:12]File name is /storage/ofd_packets/00140101 [11:05:12]Write 301 bytes [11:05:12]NVStorageSaveData done [11:05:12]OFDSenderStorePacket done [11:05:12]KKMCreateOFDPacket done [11:05:12]NVStorageSaveData kkm_last_timestamp [11:05:12]File name is /storage/kkm_last_timestamp [11:05:12]Write 4 bytes [11:05:12]NVStorageSaveData done [11:05:12]ExternCall_PrintAddStr [11:05:12]wPrintStart [11:05:12]Write to MH i2c: 01 00 00 13 3A 4D [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 07 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 07 00 13 3A 00 00 00 00 00 FF 0F 62 [11:05:12]RasterBufferAndPrint [11:05:12]line Счет N : (1)593955 [11:05:12]line ИНН: 02508201610067 [11:05:12]line Контрольно-Кассовый Чек [11:05:12]line ПРОДАЖА [11:05:12]line ТРК (МРК, ГНК) : 31 [11:05:12]line Товар: 2710124500 [11:05:12]line Аи-95-К-5 [11:05:12]line 6.740 * 74.20 [11:05:12]line = 500.11 [11:05:12]line НДС 12% НСП 1% [11:05:12]line > о реализуемом товаре [11:05:12]line ОКРУГЛЕНИЕ: -0.11 [11:05:12]line ИТОГО: 500.00 [11:05:12]line Внесено: 500.00 [11:05:12]line СДАЧА: 0.00 [11:05:12]line НСП 1% : 4.43 [11:05:12]line НДС 12% : 53.11 [11:05:12]line Наличными: 500.00 [11:05:12]line Безнал.: 0.00 [11:05:12]line Место: АЗС № 136 "Партнер Нефть" [11:05:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:05:12]line СНО: Общий режим [11:05:12]line Чек 118 21.08.2024 11:05 [11:05:12]line Смена: 454 ФФД: 1.0 [11:05:12]line ЗНМ: 0300000067 [11:05:12]line РНМ: 0000000000092569 [11:05:12]line Версия ККМ: 001 [11:05:12]line ФМ: 0000000000871776 [11:05:12]line ФД: 140101 [11:05:12]line ФПД: 138958932741466 [11:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110513&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140101&fm=138958932741466&tin=02508201610067®Number=0000000000092569&sum=50000 [11:05:12]written 0, free lines is 4095 [11:05:12]OFD Sender: Processing packet 140101 [packets to send 137, broken 136] [11:05:12]ProducePacketName [11:05:12]name=ofd_packets/00140101 [11:05:12]OFD Sender: To server: pG, [11:05:12]CommunicateWithHost lk.salyk.kg:30040 [11:05:12]ConnectInit lk.salyk.kg [11:05:12]Connected sock=10 [11:05:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AA 38 07 01 4E F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 E9 C9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 23 02 00 35 04 06 00 7E 61 E5 D3 0D 5A A3 BC EC 11 20 E8 94 BC [11:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 03 7F 47 00 13 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 23 02 00 F4 03 04 00 7A 70 C5 66 B6 04 01 00 00 45 05 81 D1 5F E8 D5 81 [11:05:12]CommunicateWithHost err = 0 [11:05:12]CheckOFDResponse [11:05:12]1017 (14) - 77093643461234 [11:05:12]1041 (16) - 0000000000871776 [11:05:12]1040 (4) - 140101 [11:05:12]1012 (4) - 21.08.2024 04:43 [11:05:12]1206 (1) - 0 [11:05:12]OFD Sender: Remove packet 140101 [11:05:12]ProducePacketName [11:05:12]name=ofd_packets/00140101 [11:05:12]NVStorageDeleteData [11:05:12]Write to MH i2c: 01 00 00 3E 3A 78 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 07 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: 01 07 00 3E 3A 00 00 00 00 00 D8 0C 63 [11:05:12]RasterBufferAndPrint [11:05:12]line [11:05:12]line [11:05:12]line [11:05:12]line [11:05:12]line [11:05:12]written 0, free lines is 3296 [11:05:12]MH_Cut [11:05:12]Write to MH i2c: D1 01 00 45 3A 01 51 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: D1 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: D1 01 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: D1 01 00 45 3A 00 50 [11:05:12]Write to MH i2c: 01 00 00 46 3A 80 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:13]OFD Sender: No OFD packet to send [11:05:13]*** Cut start [11:05:13]*** Partial cut [11:05:13]*** CUTSNS_PIN = 1 [11:05:13]*** CUTSNS_PIN = 0 [11:05:13]*** Brake cut motor [11:05:14]Read from MH i2c: 01 [11:05:14]MH_I2C_Read... [11:05:14]*** Stop cut motor [11:05:14]*** Cut end [11:05:14]Read from MH i2c: 01 07 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 07 00 46 3A 00 00 00 00 00 FF 0F 95 [11:05:14]process_action close_receipt done [11:05:14]requested_data is exist [11:05:14]produce_requested_data [11:05:14]requested_item fm.sn is exist - process it [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 11 00 00 [11:05:14]Write to MH i2c: E2 08 00 47 3A 80 11 00 00 00 00 00 00 FB [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 17 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 17 00 47 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [11:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:05:14]wFMCommunicate OK [11:05:14]requested_item fd.num is exist - process it [11:05:14]SAM_PROTO_GetFieldsCounters [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 13 00 00 [11:05:14]Write to MH i2c: E2 08 00 48 3A 80 13 00 00 00 00 00 00 FE [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 62 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 62 00 48 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [11:05:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:14]wFMCommunicate OK [11:05:14]SAM_PROTO_GetFieldsCounters done [11:05:14]requested_item shift.num is exist - process it [11:05:14]requested_item shift.opened is exist - process it [11:05:14]req_shift_opened [11:05:14]FM_GetShiftState [11:05:14]SAM_PROTO_GetShiftState [11:05:14]wFMCommunicate request_size=4 [11:05:14]MH_SAM_APDU [11:05:14]CAPDU: 80 13 01 00 [11:05:14]Write to MH i2c: E2 08 00 49 3A 80 13 01 00 00 00 00 00 00 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:14]Read from MH i2c: E2 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0E 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: E2 0E 00 49 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 80 [11:05:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:05:14]wFMCommunicate OK [11:05:14]SAM_PROTO_GetShiftState done [11:05:14]FM_GetShiftState done [11:05:14]req_shift_opened done [11:05:14]requested_item shift.open_date is exist - process it [11:05:14]req_shift_open_date [11:05:14]req_shift_open_date done [11:05:14]produce_requested_data done [11:05:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140101,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:05:14]process_action_free close_receipt [11:05:14]json_value_free [11:05:14]json_value_free done [11:05:14]process_json_proto returns [11:05:14]Send response to host [11:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140101,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:05:14]free response buf [11:05:14]execute_script done [11:05:14]execute_script returns [11:05:14]free content buf [11:05:14]Sock 7.Close socket [11:05:14]Sock 7.Thread stoped [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:23]accept exits with 9 [11:09:23]New connection [11:09:23]New thread 3066908004 created [11:09:23]Thread 3066764644 joined [11:09:23]Waiting for new connection... [11:09:23] Sock 9.Parse request [11:09:23]Sock 9.Check first char [11:09:23]Sock 9.First char is OK [11:09:23]request: POST /json_proto HTTP/1.0 [11:09:23]Method: POST [11:09:23]URL: /json_proto [11:09:23]Method is POST - this is cgi request [11:09:23]url: /json_proto [11:09:23]query_string will be loaded in cgi processing [11:09:23]execute_cgi json_proto POST (null) [11:09:23]execute_cgi path=json_proto method=POST [11:09:23]POST find Content-Length [11:09:23]Host: 172.17.45.67:8080 [11:09:23]Content-Length: 677 [11:09:23]Content-Type: application/json [11:09:23] [11:09:23]POST finish read [11:09:23]Found Content-Length = 677 [11:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:23]execute_script... [11:09: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)593956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:23]POST & json_proto [11:09:23]process_json_proto [11:09:23]json parsed OK: [11:09:23]protocol is kg_v1.0 [11:09:23]action value=close_receipt [11:09:23]process_action close_receipt [11:09:23]cmd_close_receipt [11:09:23]MH_GetDate [11:09:23]Write to MH i2c: F0 00 00 4A 3A 73 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: F0 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: F0 09 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: F0 09 00 4A 3A 00 E7 CA C5 66 5F 7F 2B 66 C7 [11:09:23]GetLastDocTimeStamp 1724238313 [11:09:23]current date 1724238567 [11:09:23]FM_GetShiftState [11:09:23]SAM_PROTO_GetShiftState [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 13 01 00 [11:09:23]Write to MH i2c: E2 08 00 4B 3A 80 13 01 00 00 00 00 00 02 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:24]Read from MH i2c: E2 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 0E 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: E2 0E 00 4B 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 82 [11:09:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:09:24]wFMCommunicate OK [11:09:24]SAM_PROTO_GetShiftState done [11:09:24]FM_GetShiftState done [11:09:24]opened in 1724200467 [11:09:24]opened+sec_in_day 1724286867 [11:09:24]quantity*price = 30035 [11:09:24]sum+1 = 30036 [11:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 119 21.08.2024 11:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140102 ФПД: 9480717655863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140102&fm=9480717655863&tin=02508201610067®Number=0000000000092569&sum=30000 [11:09:25]StoreToDocumentArchive [11:09:25]shift 454 fd 140102 [11:09:25]save to /storage/0454/doc_00140102 [11:09:25]save last doc name /storage/0454/doc_00140102 to /storage/kkm_last_doc_name [11:09:25]save OK [11:09:25]Clear old archive folders... [11:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:25]tlvbuf is B6D9D1A0 [11:09:25]SAM_PROTO_ClearQueue [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 09 00 00 [11:09:25]Write to MH i2c: E2 08 00 58 3A 80 09 00 00 00 00 00 00 04 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 58 3A 00 90 00 06 [11:09:25]RAPDU: 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_ClearQueue done [11:09:25]KKMCreateOFDPacket [11:09:25]OFDProtocolAddRootSTLVToBuf [11:09:25]FM_MakeSignedData [11:09:25]FM_MakeSignedData [11:09:25]SAM_PROTO_SignData [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 0D 01 02 [11:09:25]Write to MH i2c: E2 08 00 59 3A 80 0D 01 02 00 00 00 00 0C [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 59 3A 00 90 00 07 [11:09:25]RAPDU: 90 00 [11:09:25]wFMCommunicate OK [11:09:25]wFMCommunicate request_size=255 [11:09:25]MH_SAM_APDU [11:09: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E7 CA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 23 02 00 35 04 06 00 08 [11:09:25]Write to MH i2c: E2 02 01 5A 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E7 CA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 23 02 00 35 04 06 00 08 00 00 41 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 5A 3A 00 90 00 08 [11:09:25]RAPDU: 90 00 [11:09:25]wFMCommunicate OK [11:09:25]wFMCommunicate request_size=10 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 0D 02 02 05 9F 66 CE DF 37 [11:09:25]Write to MH i2c: E2 0D 00 5B 3A 80 0D 02 02 05 00 9F 66 CE DF 37 00 00 02 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 03 00 5B 3A 00 90 00 09 [11:09:25]RAPDU: 90 00 [11:09:25]wFMCommunicate OK [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 0D 03 02 [11:09:25]Write to MH i2c: E2 08 00 5C 3A 80 0D 03 02 00 00 00 00 11 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0B 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0B 00 5C 3A 00 ED 91 AC 55 EB D7 F9 C0 90 00 0C [11:09:25]RAPDU: ED 91 AC 55 EB D7 F9 C0 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_SignData done [11:09:25]FM_MakeSignedData done [11:09:25]CreateOFDProtocolMessage [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 11 00 00 [11:09:25]Write to MH i2c: E2 08 00 5D 3A 80 11 00 00 00 00 00 00 11 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 5D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [11:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:09:25]wFMCommunicate OK [11:09:25]CreateOFDProtocolMessage done [11:09:25]OFDSenderStorePacket 140102 [11:09:25]StoreOFDPacket docnum=140102 [11:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8C FC 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E7 CA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 23 02 00 35 04 06 00 08 9F 66 CE DF 37 ED 91 AC 55 EB D7 F9 C0 [11:09:25]CheckFolder [11:09:25]dirname=/storage/ofd_packets [11:09:25]CheckFolder done [11:09:25]ProducePacketName [11:09:25]name=ofd_packets/00140102 [11:09:25]NVStorageSaveData ofd_packets/00140102 [11:09:25]File name is /storage/ofd_packets/00140102 [11:09:25]Write 301 bytes [11:09:25]NVStorageSaveData done [11:09:25]OFDSenderStorePacket done [11:09:25]KKMCreateOFDPacket done [11:09:25]NVStorageSaveData kkm_last_timestamp [11:09:25]File name is /storage/kkm_last_timestamp [11:09:25]Write 4 bytes [11:09:25]NVStorageSaveData done [11:09:25]ExternCall_PrintAddStr [11:09:25]wPrintStart [11:09:25]Write to MH i2c: 01 00 00 5E 3A 98 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 07 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 07 00 5E 3A 00 00 00 00 00 FF 0F AD [11:09:25]RasterBufferAndPrint [11:09:25]line Счет N : (1)593956 [11:09:25]line ИНН: 02508201610067 [11:09:25]line Контрольно-Кассовый Чек [11:09:25]line ПРОДАЖА [11:09:25]line ТРК (МРК, ГНК) : 42 [11:09:25]line Товар: 2710124130 [11:09:25]line Аи-92-К-5 [11:09:25]line 4.430 * 67.80 [11:09:25]line = 300.35 [11:09:25]line НДС 12% НСП 1% [11:09:25]line > о реализуемом товаре [11:09:25]line ОКРУГЛЕНИЕ: -0.35 [11:09:25]line ИТОГО: 300.00 [11:09:25]line Внесено: 300.00 [11:09:25]line СДАЧА: 0.00 [11:09:25]line НСП 1% : 2.66 [11:09:25]line НДС 12% : 31.90 [11:09:25]line Наличными: 300.00 [11:09:25]line Безнал.: 0.00 [11:09:25]line Место: АЗС № 136 "Партнер Нефть" [11:09:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:09:25]line СНО: Общий режим [11:09:25]line Чек 119 21.08.2024 11:09 [11:09:25]line Смена: 454 ФФД: 1.0 [11:09:25]line ЗНМ: 0300000067 [11:09:25]line РНМ: 0000000000092569 [11:09:25]line Версия ККМ: 001 [11:09:25]line ФМ: 0000000000871776 [11:09:25]line ФД: 140102 [11:09:25]line ФПД: 9480717655863 [11:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T110927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140102&fm=9480717655863&tin=02508201610067®Number=0000000000092569&sum=30000 [11:09:26]written 0, free lines is 4095 [11:09:26]OFD Sender: Processing packet 140102 [packets to send 137, broken 136] [11:09:26]ProducePacketName [11:09:26]name=ofd_packets/00140102 [11:09:26]OFD Sender: To server: pG, [11:09:26]CommunicateWithHost lk.salyk.kg:30040 [11:09:26]ConnectInit lk.salyk.kg [11:09:26]Connected sock=10 [11:09: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 37 36 0F 01 00 00 8C FC 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 E7 CA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 23 02 00 35 04 06 00 08 9F 66 CE DF 37 ED 91 AC 55 EB D7 F9 C0 [11:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D3 2D 47 00 8C 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 37 36 10 04 04 00 46 23 02 00 F4 03 04 00 78 71 C5 66 B6 04 01 00 00 12 72 81 B0 D9 12 B4 16 [11:09:26]CommunicateWithHost err = 0 [11:09:26]CheckOFDResponse [11:09:26]1017 (14) - 77093643461234 [11:09:26]1041 (16) - 0000000000871776 [11:09:26]1040 (4) - 140102 [11:09:26]1012 (4) - 21.08.2024 04:47 [11:09:26]1206 (1) - 0 [11:09:26]OFD Sender: Remove packet 140102 [11:09:26]ProducePacketName [11:09:26]name=ofd_packets/00140102 [11:09:26]NVStorageDeleteData [11:09:26]Write to MH i2c: 01 00 00 89 3A C3 [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: 01 07 00 89 3A 00 00 00 00 00 D4 0C AA [11:09:26]RasterBufferAndPrint [11:09:26]line [11:09:26]line [11:09:26]line [11:09:26]line [11:09:26]line [11:09:26]written 0, free lines is 3290 [11:09:26]MH_Cut [11:09:26]Write to MH i2c: D1 01 00 90 3A 01 9C [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: D1 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: D1 01 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: D1 01 00 90 3A 00 9B [11:09:26]Write to MH i2c: 01 00 00 91 3A CB [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]OFD Sender: No OFD packet to send [11:09:27]*** Cut start [11:09:27]*** Partial cut [11:09:27]*** CUTSNS_PIN = 1 [11:09:27]*** CUTSNS_PIN = 0 [11:09:27]*** Brake cut motor [11:09:27]Read from MH i2c: 01 [11:09:27]MH_I2C_Read... [11:09:27]*** Stop cut motor [11:09:27]*** Cut end [11:09:27]Read from MH i2c: 01 07 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: 01 07 00 91 3A 00 00 00 00 00 FF 0F E0 [11:09:27]process_action close_receipt done [11:09:27]requested_data is exist [11:09:27]produce_requested_data [11:09:27]requested_item fm.sn is exist - process it [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 11 00 00 [11:09:27]Write to MH i2c: E2 08 00 92 3A 80 11 00 00 00 00 00 00 46 [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 17 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 17 00 92 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [11:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:09:27]wFMCommunicate OK [11:09:27]requested_item fd.num is exist - process it [11:09:27]SAM_PROTO_GetFieldsCounters [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 13 00 00 [11:09:27]Write to MH i2c: E2 08 00 93 3A 80 13 00 00 00 00 00 00 49 [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 62 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 62 00 93 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:27]wFMCommunicate OK [11:09:27]SAM_PROTO_GetFieldsCounters done [11:09:27]requested_item shift.num is exist - process it [11:09:27]requested_item shift.opened is exist - process it [11:09:27]req_shift_opened [11:09:27]FM_GetShiftState [11:09:27]SAM_PROTO_GetShiftState [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 13 01 00 [11:09:27]Write to MH i2c: E2 08 00 94 3A 80 13 01 00 00 00 00 00 4B [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:28]Read from MH i2c: E2 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 0E 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 0E 00 94 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CB [11:09:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:09:28]wFMCommunicate OK [11:09:28]SAM_PROTO_GetShiftState done [11:09:28]FM_GetShiftState done [11:09:28]req_shift_opened done [11:09:28]requested_item shift.open_date is exist - process it [11:09:28]req_shift_open_date [11:09:28]req_shift_open_date done [11:09:28]produce_requested_data done [11:09:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140102,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:09:28]process_action_free close_receipt [11:09:28]json_value_free [11:09:28]json_value_free done [11:09:28]process_json_proto returns [11:09:28]Send response to host [11:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140102,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:09:28]free response buf [11:09:28]execute_script done [11:09:28]execute_script returns [11:09:28]free content buf [11:09:28]Sock 9.Close socket [11:09:28]Sock 9.Thread stoped [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:09]accept exits with 7 [11:10:09]New connection [11:10:09]New thread 3066764644 created [11:10:09]Thread 3066908004 joined [11:10:09]Waiting for new connection... [11:10:09] Sock 7.Parse request [11:10:09]Sock 7.Check first char [11:10:09]Sock 7.First char is OK [11:10:09]request: POST /json_proto HTTP/1.0 [11:10:09]Method: POST [11:10:09]URL: /json_proto [11:10:09]Method is POST - this is cgi request [11:10:09]url: /json_proto [11:10:09]query_string will be loaded in cgi processing [11:10:09]execute_cgi json_proto POST (null) [11:10:09]execute_cgi path=json_proto method=POST [11:10:09]POST find Content-Length [11:10:09]Host: 172.17.45.67:8080 [11:10:09]Content-Length: 677 [11:10:09]Content-Type: application/json [11:10:09] [11:10:09]POST finish read [11:10:09]Found Content-Length = 677 [11:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:09]execute_script... [11:10: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)593957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:09]POST & json_proto [11:10:09]process_json_proto [11:10:09]json parsed OK: [11:10:09]protocol is kg_v1.0 [11:10:09]action value=close_receipt [11:10:09]process_action close_receipt [11:10:09]cmd_close_receipt [11:10:09]MH_GetDate [11:10:09]Write to MH i2c: F0 00 00 95 3A BE [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 09 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 09 00 95 3A 00 15 CB C5 66 5F 7F 2B 66 41 [11:10:09]GetLastDocTimeStamp 1724238567 [11:10:09]current date 1724238613 [11:10:09]FM_GetShiftState [11:10:09]SAM_PROTO_GetShiftState [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 13 01 00 [11:10:09]Write to MH i2c: E2 08 00 96 3A 80 13 01 00 00 00 00 00 4D [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0E 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0E 00 96 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CD [11:10:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:10:09]wFMCommunicate OK [11:10:09]SAM_PROTO_GetShiftState done [11:10:09]FM_GetShiftState done [11:10:09]opened in 1724200467 [11:10:09]opened+sec_in_day 1724286867 [11:10:09]quantity*price = 50036 [11:10:09]sum+1 = 50037 [11:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 120 21.08.2024 11:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140103 ФПД: 143981071441742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111013&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140103&fm=143981071441742&tin=02508201610067®Number=0000000000092569&sum=50000 [11:10:11]StoreToDocumentArchive [11:10:11]shift 454 fd 140103 [11:10:11]save to /storage/0454/doc_00140103 [11:10:11]save last doc name /storage/0454/doc_00140103 to /storage/kkm_last_doc_name [11:10:11]save OK [11:10:11]Clear old archive folders... [11:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:11]tlvbuf is B6F4A010 [11:10:11]SAM_PROTO_ClearQueue [11:10:11]wFMCommunicate request_size=4 [11:10:11]MH_SAM_APDU [11:10:11]CAPDU: 80 09 00 00 [11:10:11]Write to MH i2c: E2 08 00 A3 3A 80 09 00 00 00 00 00 00 4F [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:11]Read from MH i2c: E2 03 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 A3 3A 00 90 00 51 [11:10:11]RAPDU: 90 00 [11:10:11]wFMCommunicate OK [11:10:11]SAM_PROTO_ClearQueue done [11:10:11]KKMCreateOFDPacket [11:10:11]OFDProtocolAddRootSTLVToBuf [11:10:11]FM_MakeSignedData [11:10:11]FM_MakeSignedData [11:10:11]SAM_PROTO_SignData [11:10:11]wFMCommunicate request_size=4 [11:10:11]MH_SAM_APDU [11:10:11]CAPDU: 80 0D 01 02 [11:10:11]Write to MH i2c: E2 08 00 A4 3A 80 0D 01 02 00 00 00 00 57 [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 A4 3A 00 90 00 52 [11:10:11]RAPDU: 90 00 [11:10:11]wFMCommunicate OK [11:10:11]wFMCommunicate request_size=255 [11:10:11]MH_SAM_APDU [11:10: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 23 02 00 35 04 06 00 82 [11:10:11]Write to MH i2c: E2 02 01 A5 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 23 02 00 35 04 06 00 82 00 00 18 [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:11]Read from MH i2c: E2 03 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [11:10:11]RAPDU: 90 00 [11:10:11]wFMCommunicate OK [11:10:11]wFMCommunicate request_size=10 [11:10:11]MH_SAM_APDU [11:10:11]CAPDU: 80 0D 02 02 05 F3 34 9E 1F 4E [11:10:11]Write to MH i2c: E2 0D 00 A6 3A 80 0D 02 02 05 00 F3 34 9E 1F 4E 00 00 96 [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 03 00 A6 3A 00 90 00 54 [11:10:11]RAPDU: 90 00 [11:10:11]wFMCommunicate OK [11:10:11]wFMCommunicate request_size=4 [11:10:11]MH_SAM_APDU [11:10:11]CAPDU: 80 0D 03 02 [11:10:11]Write to MH i2c: E2 08 00 A7 3A 80 0D 03 02 00 00 00 00 5C [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 0B 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 0B 00 A7 3A 00 EB A7 F6 E2 2E C8 D5 86 90 00 18 [11:10:11]RAPDU: EB A7 F6 E2 2E C8 D5 86 90 00 [11:10:11]wFMCommunicate OK [11:10:11]SAM_PROTO_SignData done [11:10:11]FM_MakeSignedData done [11:10:11]CreateOFDProtocolMessage [11:10:11]wFMCommunicate request_size=4 [11:10:11]MH_SAM_APDU [11:10:11]CAPDU: 80 11 00 00 [11:10:11]Write to MH i2c: E2 08 00 A8 3A 80 11 00 00 00 00 00 00 5C [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:11]Read from MH i2c: E2 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 17 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: E2 17 00 A8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [11:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:11]wFMCommunicate OK [11:10:11]CreateOFDProtocolMessage done [11:10:11]OFDSenderStorePacket 140103 [11:10:11]StoreOFDPacket docnum=140103 [11:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 A6 07 01 99 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 23 02 00 35 04 06 00 82 F3 34 9E 1F 4E EB A7 F6 E2 2E C8 D5 86 [11:10:11]CheckFolder [11:10:11]dirname=/storage/ofd_packets [11:10:11]CheckFolder done [11:10:11]ProducePacketName [11:10:11]name=ofd_packets/00140103 [11:10:11]NVStorageSaveData ofd_packets/00140103 [11:10:11]File name is /storage/ofd_packets/00140103 [11:10:11]Write 301 bytes [11:10:11]NVStorageSaveData done [11:10:11]OFDSenderStorePacket done [11:10:11]KKMCreateOFDPacket done [11:10:11]NVStorageSaveData kkm_last_timestamp [11:10:11]File name is /storage/kkm_last_timestamp [11:10:11]Write 4 bytes [11:10:11]NVStorageSaveData done [11:10:11]ExternCall_PrintAddStr [11:10:11]wPrintStart [11:10:11]Write to MH i2c: 01 00 00 A9 3A E3 [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 07 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 07 00 A9 3A 00 00 00 00 00 FF 0F F8 [11:10:11]RasterBufferAndPrint [11:10:11]line Счет N : (1)593957 [11:10:11]line ИНН: 02508201610067 [11:10:11]line Контрольно-Кассовый Чек [11:10:11]line ПРОДАЖА [11:10:11]line ТРК (МРК, ГНК) : 52 [11:10:11]line Товар: 2710124130 [11:10:11]line Аи-92-К-5 [11:10:11]line 7.380 * 67.80 [11:10:11]line = 500.36 [11:10:11]line НДС 12% НСП 1% [11:10:11]line > о реализуемом товаре [11:10:11]line ОКРУГЛЕНИЕ: -0.36 [11:10:11]line ИТОГО: 500.00 [11:10:11]line Внесено: 500.00 [11:10:11]line СДАЧА: 0.00 [11:10:11]line НСП 1% : 4.43 [11:10:11]line НДС 12% : 53.14 [11:10:11]line Наличными: 500.00 [11:10:11]line Безнал.: 0.00 [11:10:11]line Место: АЗС № 136 "Партнер Нефть" [11:10:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:10:11]line СНО: Общий режим [11:10:11]line Чек 120 21.08.2024 11:10 [11:10:11]line Смена: 454 ФФД: 1.0 [11:10:11]line ЗНМ: 0300000067 [11:10:11]line РНМ: 0000000000092569 [11:10:11]line Версия ККМ: 001 [11:10:11]line ФМ: 0000000000871776 [11:10:11]line ФД: 140103 [11:10:11]line ФПД: 143981071441742 [11:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111013&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140103&fm=143981071441742&tin=02508201610067®Number=0000000000092569&sum=50000 [11:10:11]OFD Sender: Processing packet 140103 [packets to send 137, broken 136] [11:10:11]ProducePacketName [11:10:11]name=ofd_packets/00140103 [11:10:11]OFD Sender: To server: pG, [11:10:11]CommunicateWithHost lk.salyk.kg:30040 [11:10:11]ConnectInit lk.salyk.kg [11:10:11]written 0, free lines is 4095 [11:10:12]Connected sock=10 [11:10: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 37 36 0F 01 00 00 62 A6 07 01 99 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 23 02 00 35 04 06 00 82 F3 34 9E 1F 4E EB A7 F6 E2 2E C8 D5 86 [11:10: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 37 36 4F 00 00 00 74 7F 47 00 34 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 37 36 10 04 04 00 47 23 02 00 F4 03 04 00 A6 71 C5 66 B6 04 01 00 00 8A FA 5D B0 29 D3 04 EF [11:10:12]CommunicateWithHost err = 0 [11:10:12]CheckOFDResponse [11:10:12]1017 (14) - 77093643461234 [11:10:12]1041 (16) - 0000000000871776 [11:10:12]1040 (4) - 140103 [11:10:12]1012 (4) - 21.08.2024 04:48 [11:10:12]1206 (1) - 0 [11:10:12]OFD Sender: Remove packet 140103 [11:10:12]ProducePacketName [11:10:12]name=ofd_packets/00140103 [11:10:12]NVStorageDeleteData [11:10:12]Write to MH i2c: 01 00 00 D4 3A 0E [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: 01 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: 01 07 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: 01 07 00 D4 3A 00 00 00 00 00 D4 0C F5 [11:10:12]RasterBufferAndPrint [11:10:12]line [11:10:12]line [11:10:12]line [11:10:12]line [11:10:12]line [11:10:12]written 0, free lines is 3293 [11:10:12]MH_Cut [11:10:12]Write to MH i2c: D1 01 00 DB 3A 01 E7 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: D1 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: D1 01 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: D1 01 00 DB 3A 00 E6 [11:10:12]Write to MH i2c: 01 00 00 DC 3A 16 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]OFD Sender: No OFD packet to send [11:10:13]*** Cut start [11:10:13]*** Partial cut [11:10:13]*** CUTSNS_PIN = 1 [11:10:13]*** CUTSNS_PIN = 0 [11:10:13]*** Brake cut motor [11:10:13]Read from MH i2c: 01 [11:10:13]MH_I2C_Read... [11:10:13]*** Stop cut motor [11:10:13]*** Cut end [11:10:13]Read from MH i2c: 01 07 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: 01 07 00 DC 3A 00 00 00 00 00 FF 0F 2B [11:10:13]process_action close_receipt done [11:10:13]requested_data is exist [11:10:13]produce_requested_data [11:10:13]requested_item fm.sn is exist - process it [11:10:13]wFMCommunicate request_size=4 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 11 00 00 [11:10:13]Write to MH i2c: E2 08 00 DD 3A 80 11 00 00 00 00 00 00 91 [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:13]Read from MH i2c: E2 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 17 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 17 00 DD 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [11:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:13]wFMCommunicate OK [11:10:13]requested_item fd.num is exist - process it [11:10:13]SAM_PROTO_GetFieldsCounters [11:10:13]wFMCommunicate request_size=4 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 13 00 00 [11:10:13]Write to MH i2c: E2 08 00 DE 3A 80 13 00 00 00 00 00 00 94 [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:13]Read from MH i2c: E2 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 62 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 62 00 DE 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:13]wFMCommunicate OK [11:10:13]SAM_PROTO_GetFieldsCounters done [11:10:13]requested_item shift.num is exist - process it [11:10:13]requested_item shift.opened is exist - process it [11:10:13]req_shift_opened [11:10:13]FM_GetShiftState [11:10:13]SAM_PROTO_GetShiftState [11:10:13]wFMCommunicate request_size=4 [11:10:13]MH_SAM_APDU [11:10:13]CAPDU: 80 13 01 00 [11:10:13]Write to MH i2c: E2 08 00 DF 3A 80 13 01 00 00 00 00 00 96 [11:10:13]Write i2c OK [11:10:13]MH_I2C_Read... [11:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:13]Read from MH i2c: E2 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 0E 00 [11:10:13]MH_I2C_Read... [11:10:13]Read from MH i2c: E2 0E 00 DF 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [11:10:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:10:13]wFMCommunicate OK [11:10:13]SAM_PROTO_GetShiftState done [11:10:13]FM_GetShiftState done [11:10:13]req_shift_opened done [11:10:13]requested_item shift.open_date is exist - process it [11:10:13]req_shift_open_date [11:10:13]req_shift_open_date done [11:10:13]produce_requested_data done [11:10:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140103,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:10:13]process_action_free close_receipt [11:10:13]json_value_free [11:10:13]json_value_free done [11:10:13]process_json_proto returns [11:10:13]Send response to host [11:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140103,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:10:13]free response buf [11:10:13]execute_script done [11:10:13]execute_script returns [11:10:13]free content buf [11:10:13]Sock 7.Close socket [11:10:13]Sock 7.Thread stoped [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:10:58]accept exits with 9 [11:10:58]New connection [11:10:58]New thread 3066908004 created [11:10:58]Thread 3066764644 joined [11:10:58]Waiting for new connection... [11:10:58] Sock 9.Parse request [11:10:58]Sock 9.Check first char [11:10:58]Sock 9.First char is OK [11:10:58]request: POST /json_proto HTTP/1.0 [11:10:58]Method: POST [11:10:58]URL: /json_proto [11:10:58]Method is POST - this is cgi request [11:10:58]url: /json_proto [11:10:58]query_string will be loaded in cgi processing [11:10:58]execute_cgi json_proto POST (null) [11:10:58]execute_cgi path=json_proto method=POST [11:10:58]POST find Content-Length [11:10:58]Host: 172.17.45.67:8080 [11:10:58]Content-Length: 663 [11:10:58]Content-Type: application/json [11:10:58] [11:10:58]POST finish read [11:10:58]Found Content-Length = 663 [11:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:58]execute_script... [11:10: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)593958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:58]POST & json_proto [11:10:58]process_json_proto [11:10:58]json parsed OK: [11:10:58]protocol is kg_v1.0 [11:10:58]action value=close_receipt [11:10:58]process_action close_receipt [11:10:58]cmd_close_receipt [11:10:58]MH_GetDate [11:10:58]Write to MH i2c: F0 00 00 E0 3A 09 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: F0 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: F0 09 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: F0 09 00 E0 3A 00 45 CB C5 66 5F 7F 2B 66 BC [11:10:58]GetLastDocTimeStamp 1724238613 [11:10:58]current date 1724238661 [11:10:58]FM_GetShiftState [11:10:58]SAM_PROTO_GetShiftState [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 13 01 00 [11:10:58]Write to MH i2c: E2 08 00 E1 3A 80 13 01 00 00 00 00 00 98 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0E 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 0E 00 E1 3A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [11:10:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_GetShiftState done [11:10:58]FM_GetShiftState done [11:10:58]opened in 1724200467 [11:10:58]opened+sec_in_day 1724286867 [11:10:58]quantity*price = 100035 [11:10:58]sum+1 = 100036 [11:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 121 21.08.2024 11:11 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140104 ФПД: 119689614919152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140104&fm=119689614919152&tin=02508201610067®Number=0000000000092569&sum=100000 [11:10:59]StoreToDocumentArchive [11:10:59]shift 454 fd 140104 [11:10:59]save to /storage/0454/doc_00140104 [11:10:59]save last doc name /storage/0454/doc_00140104 to /storage/kkm_last_doc_name [11:10:59]save OK [11:10:59]Clear old archive folders... [11:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:10:59]tlvbuf is 00A07190 [11:10:59]SAM_PROTO_ClearQueue [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 09 00 00 [11:10:59]Write to MH i2c: E2 08 00 EE 3A 80 09 00 00 00 00 00 00 9A [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 EE 3A 00 90 00 9C [11:10:59]RAPDU: 90 00 [11:10:59]wFMCommunicate OK [11:10:59]SAM_PROTO_ClearQueue done [11:10:59]KKMCreateOFDPacket [11:10:59]OFDProtocolAddRootSTLVToBuf [11:10:59]FM_MakeSignedData [11:10:59]FM_MakeSignedData [11:10:59]SAM_PROTO_SignData [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 0D 01 02 [11:10:59]Write to MH i2c: E2 08 00 EF 3A 80 0D 01 02 00 00 00 00 A2 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 EF 3A 00 90 00 9D [11:10:59]RAPDU: 90 00 [11:10:59]wFMCommunicate OK [11:10:59]wFMCommunicate request_size=253 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 23 02 00 35 04 06 00 6C DB 68 FB 05 F0 [11:10:59]Write to MH i2c: E2 00 01 F0 3A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 23 02 00 35 04 06 00 6C DB 68 FB 05 F0 00 00 A1 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 F0 3A 00 90 00 9E [11:10:59]RAPDU: 90 00 [11:10:59]wFMCommunicate OK [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 0D 03 02 [11:10:59]Write to MH i2c: E2 08 00 F1 3A 80 0D 03 02 00 00 00 00 A6 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 0B 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 0B 00 F1 3A 00 FB D7 39 71 09 AC 75 2E 90 00 7B [11:10:59]RAPDU: FB D7 39 71 09 AC 75 2E 90 00 [11:10:59]wFMCommunicate OK [11:10:59]SAM_PROTO_SignData done [11:10:59]FM_MakeSignedData done [11:10:59]CreateOFDProtocolMessage [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 11 00 00 [11:10:59]Write to MH i2c: E2 08 00 F2 3A 80 11 00 00 00 00 00 00 A6 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 17 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 17 00 F2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [11:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:10:59]wFMCommunicate OK [11:10:59]CreateOFDProtocolMessage done [11:10:59]OFDSenderStorePacket 140104 [11:10:59]StoreOFDPacket docnum=140104 [11:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 42 4E 00 01 DC 74 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 23 02 00 35 04 06 00 6C DB 68 FB 05 F0 FB D7 39 71 09 AC 75 2E [11:10:59]CheckFolder [11:10:59]dirname=/storage/ofd_packets [11:10:59]CheckFolder done [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00140104 [11:10:59]NVStorageSaveData ofd_packets/00140104 [11:10:59]File name is /storage/ofd_packets/00140104 [11:10:59]Write 294 bytes [11:10:59]NVStorageSaveData done [11:10:59]OFDSenderStorePacket done [11:10:59]KKMCreateOFDPacket done [11:10:59]NVStorageSaveData kkm_last_timestamp [11:10:59]File name is /storage/kkm_last_timestamp [11:10:59]Write 4 bytes [11:10:59]NVStorageSaveData done [11:10:59]ExternCall_PrintAddStr [11:10:59]wPrintStart [11:10:59]Write to MH i2c: 01 00 00 F3 3A 2D [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 F3 3A 00 00 00 00 00 FF 0F 42 [11:10:59]RasterBufferAndPrint [11:10:59]line Счет N : (1)593958 [11:10:59]line ИНН: 02508201610067 [11:10:59]line Контрольно-Кассовый Чек [11:10:59]line ПРОДАЖА [11:10:59]line ТРК (МРК, ГНК) : 63 [11:10:59]line Товар: 2710124130 [11:10:59]line SU-92 [11:10:59]line 14.540 * 68.80 [11:10:59]line = 1000.35 [11:10:59]line НДС 12% НСП 1% [11:10:59]line > о реализуемом товаре [11:10:59]line ОКРУГЛЕНИЕ: -0.35 [11:10:59]line ИТОГО: 1000.00 [11:10:59]line Внесено: 1000.00 [11:10:59]line СДАЧА: 0.00 [11:10:59]line НСП 1% : 8.85 [11:10:59]line НДС 12% : 106.23 [11:10:59]line Наличными: 1000.00 [11:10:59]line Безнал.: 0.00 [11:10:59]line Место: АЗС № 136 "Партнер Нефть" [11:10:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:10:59]line СНО: Общий режим [11:10:59]line Чек 121 21.08.2024 11:11 [11:10:59]line Смена: 454 ФФД: 1.0 [11:10:59]line ЗНМ: 0300000067 [11:10:59]line РНМ: 0000000000092569 [11:10:59]line Версия ККМ: 001 [11:10:59]line ФМ: 0000000000871776 [11:10:59]line ФД: 140104 [11:10:59]line ФПД: 119689614919152 [11:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111101&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140104&fm=119689614919152&tin=02508201610067®Number=0000000000092569&sum=100000 [11:10:59]OFD Sender: Processing packet 140104 [packets to send 137, broken 136] [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00140104 [11:10:59]OFD Sender: To server: pG, [11:10:59]CommunicateWithHost lk.salyk.kg:30040 [11:10:59]ConnectInit lk.salyk.kg [11:10:59]written 0, free lines is 4095 [11:11:00]Connected sock=10 [11:11: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 37 36 08 01 00 00 42 4E 00 01 DC 74 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 45 CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 23 02 00 35 04 06 00 6C DB 68 FB 05 F0 FB D7 39 71 09 AC 75 2E [11:11: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 37 36 4F 00 00 00 08 7E 47 00 9F 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 37 36 10 04 04 00 48 23 02 00 F4 03 04 00 D6 71 C5 66 B6 04 01 00 00 28 15 70 04 5C FE 5E AD [11:11:00]CommunicateWithHost err = 0 [11:11:00]CheckOFDResponse [11:11:00]1017 (14) - 77093643461234 [11:11:00]1041 (16) - 0000000000871776 [11:11:00]1040 (4) - 140104 [11:11:00]1012 (4) - 21.08.2024 04:49 [11:11:00]1206 (1) - 0 [11:11:00]OFD Sender: Remove packet 140104 [11:11:00]ProducePacketName [11:11:00]name=ofd_packets/00140104 [11:11:00]NVStorageDeleteData [11:11:00]Write to MH i2c: 01 00 00 1E 3B 59 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 1E 3B 00 00 00 00 00 CE 0C 3A [11:11:00]RasterBufferAndPrint [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]written 0, free lines is 3284 [11:11:00]MH_Cut [11:11:00]Write to MH i2c: D1 01 00 25 3B 01 32 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 01 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 01 00 25 3B 00 31 [11:11:00]Write to MH i2c: 01 00 00 26 3B 61 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]OFD Sender: No OFD packet to send [11:11:01]*** Cut start [11:11:01]*** Partial cut [11:11:01]*** CUTSNS_PIN = 1 [11:11:01]*** CUTSNS_PIN = 0 [11:11:01]*** Brake cut motor [11:11:01]Read from MH i2c: 01 [11:11:01]MH_I2C_Read... [11:11:01]*** Stop cut motor [11:11:01]*** Cut end [11:11:01]Read from MH i2c: 01 07 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: 01 07 00 26 3B 00 00 00 00 00 FF 0F 76 [11:11:01]process_action close_receipt done [11:11:01]requested_data is exist [11:11:01]produce_requested_data [11:11:01]requested_item fm.sn is exist - process it [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 11 00 00 [11:11:01]Write to MH i2c: E2 08 00 27 3B 80 11 00 00 00 00 00 00 DC [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 27 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [11:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:11:01]wFMCommunicate OK [11:11:01]requested_item fd.num is exist - process it [11:11:01]SAM_PROTO_GetFieldsCounters [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 00 00 [11:11:01]Write to MH i2c: E2 08 00 28 3B 80 13 00 00 00 00 00 00 DF [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 28 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetFieldsCounters done [11:11:01]requested_item shift.num is exist - process it [11:11:01]requested_item shift.opened is exist - process it [11:11:01]req_shift_opened [11:11:01]FM_GetShiftState [11:11:01]SAM_PROTO_GetShiftState [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 01 00 [11:11:01]Write to MH i2c: E2 08 00 29 3B 80 13 01 00 00 00 00 00 E1 [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:02]Read from MH i2c: E2 [11:11:02]MH_I2C_Read... [11:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:02]Read from MH i2c: E2 0E 00 [11:11:02]MH_I2C_Read... [11:11:02]Read from MH i2c: E2 0E 00 29 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [11:11:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:11:02]wFMCommunicate OK [11:11:02]SAM_PROTO_GetShiftState done [11:11:02]FM_GetShiftState done [11:11:02]req_shift_opened done [11:11:02]requested_item shift.open_date is exist - process it [11:11:02]req_shift_open_date [11:11:02]req_shift_open_date done [11:11:02]produce_requested_data done [11:11:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140104,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:11:02]process_action_free close_receipt [11:11:02]json_value_free [11:11:02]json_value_free done [11:11:02]process_json_proto returns [11:11:02]Send response to host [11:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140104,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:11:02]free response buf [11:11:02]execute_script done [11:11:02]execute_script returns [11:11:02]free content buf [11:11:02]Sock 9.Close socket [11:11:02]Sock 9.Thread stoped [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:11]accept exits with 7 [11:12:11]New connection [11:12:11]New thread 3066764644 created [11:12:11]Thread 3066908004 joined [11:12:11]Waiting for new connection... [11:12:11] Sock 7.Parse request [11:12:11]Sock 7.Check first char [11:12:11]Sock 7.First char is OK [11:12:11]request: POST /json_proto HTTP/1.0 [11:12:11]Method: POST [11:12:11]URL: /json_proto [11:12:11]Method is POST - this is cgi request [11:12:11]url: /json_proto [11:12:11]query_string will be loaded in cgi processing [11:12:11]execute_cgi json_proto POST (null) [11:12:11]execute_cgi path=json_proto method=POST [11:12:11]POST find Content-Length [11:12:11]Host: 172.17.45.67:8080 [11:12:11]Content-Length: 682 [11:12:11]Content-Type: application/json [11:12:11] [11:12:11]POST finish read [11:12:11]Found Content-Length = 682 [11:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:11]execute_script... [11:12: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)593959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:11]POST & json_proto [11:12:11]process_json_proto [11:12:11]json parsed OK: [11:12:11]protocol is kg_v1.0 [11:12:11]action value=close_receipt [11:12:11]process_action close_receipt [11:12:11]cmd_close_receipt [11:12:11]MH_GetDate [11:12:11]Write to MH i2c: F0 00 00 2A 3B 54 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: F0 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: F0 09 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: F0 09 00 2A 3B 00 8F CB C5 66 5F 7F 2B 66 51 [11:12:11]GetLastDocTimeStamp 1724238661 [11:12:11]current date 1724238735 [11:12:11]FM_GetShiftState [11:12:11]SAM_PROTO_GetShiftState [11:12:11]wFMCommunicate request_size=4 [11:12:11]MH_SAM_APDU [11:12:11]CAPDU: 80 13 01 00 [11:12:11]Write to MH i2c: E2 08 00 2B 3B 80 13 01 00 00 00 00 00 E3 [11:12:11]Write i2c OK [11:12:11]MH_I2C_Read... [11:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:11]Read from MH i2c: E2 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0E 00 [11:12:11]MH_I2C_Read... [11:12:11]Read from MH i2c: E2 0E 00 2B 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [11:12:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:12:11]wFMCommunicate OK [11:12:11]SAM_PROTO_GetShiftState done [11:12:11]FM_GetShiftState done [11:12:11]opened in 1724200467 [11:12:11]opened+sec_in_day 1724286867 [11:12:11]quantity*price = 100005 [11:12:11]sum+1 = 100006 [11:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 122 21.08.2024 11:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140105 ФПД: 271061818337042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111215&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140105&fm=271061818337042&tin=02508201610067®Number=0000000000092569&sum=100000 [11:12:13]StoreToDocumentArchive [11:12:13]shift 454 fd 140105 [11:12:13]save to /storage/0454/doc_00140105 [11:12:13]save last doc name /storage/0454/doc_00140105 to /storage/kkm_last_doc_name [11:12:13]save OK [11:12:13]Clear old archive folders... [11:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:13]tlvbuf is 00A07E80 [11:12:13]SAM_PROTO_ClearQueue [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 09 00 00 [11:12:13]Write to MH i2c: E2 08 00 38 3B 80 09 00 00 00 00 00 00 E5 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 38 3B 00 90 00 E7 [11:12:13]RAPDU: 90 00 [11:12:13]wFMCommunicate OK [11:12:13]SAM_PROTO_ClearQueue done [11:12:13]KKMCreateOFDPacket [11:12:13]OFDProtocolAddRootSTLVToBuf [11:12:13]FM_MakeSignedData [11:12:13]FM_MakeSignedData [11:12:13]SAM_PROTO_SignData [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 0D 01 02 [11:12:13]Write to MH i2c: E2 08 00 39 3B 80 0D 01 02 00 00 00 00 ED [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 39 3B 00 90 00 E8 [11:12:13]RAPDU: 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=255 [11:12:13]MH_SAM_APDU [11: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 23 02 00 35 04 06 00 F6 [11:12:13]Write to MH i2c: E2 02 01 3A 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 23 02 00 35 04 06 00 F6 00 00 2F [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [11:12:13]RAPDU: 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=10 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 0D 02 02 05 87 7F 64 E7 12 [11:12:13]Write to MH i2c: E2 0D 00 3B 3B 80 0D 02 02 05 00 87 7F 64 E7 12 00 00 5D [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [11:12:13]RAPDU: 90 00 [11:12:13]wFMCommunicate OK [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 0D 03 02 [11:12:13]Write to MH i2c: E2 08 00 3C 3B 80 0D 03 02 00 00 00 00 F2 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 0B 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 0B 00 3C 3B 00 9D B7 F0 36 CB AD F1 EE 90 00 C4 [11:12:13]RAPDU: 9D B7 F0 36 CB AD F1 EE 90 00 [11:12:13]wFMCommunicate OK [11:12:13]SAM_PROTO_SignData done [11:12:13]FM_MakeSignedData done [11:12:13]CreateOFDProtocolMessage [11:12:13]wFMCommunicate request_size=4 [11:12:13]MH_SAM_APDU [11:12:13]CAPDU: 80 11 00 00 [11:12:13]Write to MH i2c: E2 08 00 3D 3B 80 11 00 00 00 00 00 00 F2 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:13]Read from MH i2c: E2 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 17 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: E2 17 00 3D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [11:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:13]wFMCommunicate OK [11:12:13]CreateOFDProtocolMessage done [11:12:13]OFDSenderStorePacket 140105 [11:12:13]StoreOFDPacket docnum=140105 [11:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 A7 07 01 23 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 23 02 00 35 04 06 00 F6 87 7F 64 E7 12 9D B7 F0 36 CB AD F1 EE [11:12:13]CheckFolder [11:12:13]dirname=/storage/ofd_packets [11:12:13]CheckFolder done [11:12:13]ProducePacketName [11:12:13]name=ofd_packets/00140105 [11:12:13]NVStorageSaveData ofd_packets/00140105 [11:12:13]File name is /storage/ofd_packets/00140105 [11:12:13]Write 301 bytes [11:12:13]NVStorageSaveData done [11:12:13]OFDSenderStorePacket done [11:12:13]KKMCreateOFDPacket done [11:12:13]NVStorageSaveData kkm_last_timestamp [11:12:13]File name is /storage/kkm_last_timestamp [11:12:13]Write 4 bytes [11:12:13]NVStorageSaveData done [11:12:13]ExternCall_PrintAddStr [11:12:13]wPrintStart [11:12:13]Write to MH i2c: 01 00 00 3E 3B 79 [11:12:13]Write i2c OK [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: 01 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: 01 07 00 [11:12:13]MH_I2C_Read... [11:12:13]Read from MH i2c: 01 07 00 3E 3B 00 00 00 00 00 FF 0F 8E [11:12:13]RasterBufferAndPrint [11:12:13]line Счет N : (1)593959 [11:12:13]line ИНН: 02508201610067 [11:12:13]line Контрольно-Кассовый Чек [11:12:13]line ПРОДАЖА [11:12:13]line ТРК (МРК, ГНК) : 32 [11:12:13]line Товар: 2710124130 [11:12:13]line Аи-92-К-5 [11:12:13]line 14.750 * 67.80 [11:12:13]line = 1000.05 [11:12:13]line НДС 12% НСП 1% [11:12:13]line > о реализуемом товаре [11:12:13]line ОКРУГЛЕНИЕ: -0.05 [11:12:13]line ИТОГО: 1000.00 [11:12:13]line Внесено: 1000.00 [11:12:13]line СДАЧА: 0.00 [11:12:13]line НСП 1% : 8.85 [11:12:13]line НДС 12% : 106.20 [11:12:13]line Наличными: 1000.00 [11:12:13]line Безнал.: 0.00 [11:12:13]line Место: АЗС № 136 "Партнер Нефть" [11:12:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:12:13]line СНО: Общий режим [11:12:13]line Чек 122 21.08.2024 11:12 [11:12:13]line Смена: 454 ФФД: 1.0 [11:12:13]line ЗНМ: 0300000067 [11:12:13]line РНМ: 0000000000092569 [11:12:13]line Версия ККМ: 001 [11:12:13]line ФМ: 0000000000871776 [11:12:13]line ФД: 140105 [11:12:13]line ФПД: 271061818337042 [11:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111215&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140105&fm=271061818337042&tin=02508201610067®Number=0000000000092569&sum=100000 [11:12:13]written 0, free lines is 4095 [11:12:13]OFD Sender: Processing packet 140105 [packets to send 137, broken 136] [11:12:13]ProducePacketName [11:12:13]name=ofd_packets/00140105 [11:12:13]OFD Sender: To server: pG, [11:12:13]CommunicateWithHost lk.salyk.kg:30040 [11:12:13]ConnectInit lk.salyk.kg [11:12:13]Connected sock=11 [11:12: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 37 36 0F 01 00 00 C0 A7 07 01 23 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F CB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 23 02 00 35 04 06 00 F6 87 7F 64 E7 12 9D B7 F0 36 CB AD F1 EE [11:12:14]Write to MH i2c: 01 00 00 69 3B A4 [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: 01 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: 01 07 00 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: 01 07 00 69 3B 00 00 00 00 00 DD 0C 94 [11:12:14]RasterBufferAndPrint [11:12:14]line [11:12:14]line [11:12:14]line [11:12:14]line [11:12:14]line [11:12:14]written 0, free lines is 3299 [11:12:14]MH_Cut [11:12:14]Write to MH i2c: D1 01 00 70 3B 01 7D [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: D1 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: D1 01 00 [11:12:14]MH_I2C_Read... [11:12:14]Read from MH i2c: D1 01 00 70 3B 00 7C [11:12:14]Write to MH i2c: 01 00 00 71 3B AC [11:12:14]Write i2c OK [11:12:14]MH_I2C_Read... [11: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 37 36 4F 00 00 00 2A B2 47 00 5A 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 37 36 10 04 04 00 49 23 02 00 F4 03 04 00 20 72 C5 66 B6 04 01 00 00 C6 2F 54 0E E1 27 A6 2C [11:12:14]CommunicateWithHost err = 0 [11:12:14]CheckOFDResponse [11:12:14]1017 (14) - 77093643461234 [11:12:14]1041 (16) - 0000000000871776 [11:12:14]1040 (4) - 140105 [11:12:14]1012 (4) - 21.08.2024 04:50 [11:12:14]1206 (1) - 0 [11:12:14]OFD Sender: Remove packet 140105 [11:12:14]ProducePacketName [11:12:14]name=ofd_packets/00140105 [11:12:14]NVStorageDeleteData [11:12:14]OFD Sender: No OFD packet to send [11:12:14]*** Cut start [11:12:14]*** Partial cut [11:12:14]*** CUTSNS_PIN = 1 [11:12:14]*** CUTSNS_PIN = 0 [11:12:15]*** Brake cut motor [11:12:15]Read from MH i2c: 01 [11:12:15]MH_I2C_Read... [11:12:15]*** Stop cut motor [11:12:15]*** Cut end [11:12:15]Read from MH i2c: 01 07 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: 01 07 00 71 3B 00 00 00 00 00 FF 0F C1 [11:12:15]process_action close_receipt done [11:12:15]requested_data is exist [11:12:15]produce_requested_data [11:12:15]requested_item fm.sn is exist - process it [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 11 00 00 [11:12:15]Write to MH i2c: E2 08 00 72 3B 80 11 00 00 00 00 00 00 27 [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 17 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 17 00 72 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [11:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:12:15]wFMCommunicate OK [11:12:15]requested_item fd.num is exist - process it [11:12:15]SAM_PROTO_GetFieldsCounters [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 13 00 00 [11:12:15]Write to MH i2c: E2 08 00 73 3B 80 13 00 00 00 00 00 00 2A [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 62 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 62 00 73 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:15]wFMCommunicate OK [11:12:15]SAM_PROTO_GetFieldsCounters done [11:12:15]requested_item shift.num is exist - process it [11:12:15]requested_item shift.opened is exist - process it [11:12:15]req_shift_opened [11:12:15]FM_GetShiftState [11:12:15]SAM_PROTO_GetShiftState [11:12:15]wFMCommunicate request_size=4 [11:12:15]MH_SAM_APDU [11:12:15]CAPDU: 80 13 01 00 [11:12:15]Write to MH i2c: E2 08 00 74 3B 80 13 01 00 00 00 00 00 2C [11:12:15]Write i2c OK [11:12:15]MH_I2C_Read... [11:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:15]Read from MH i2c: E2 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 0E 00 [11:12:15]MH_I2C_Read... [11:12:15]Read from MH i2c: E2 0E 00 74 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [11:12:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:12:15]wFMCommunicate OK [11:12:15]SAM_PROTO_GetShiftState done [11:12:15]FM_GetShiftState done [11:12:15]req_shift_opened done [11:12:15]requested_item shift.open_date is exist - process it [11:12:15]req_shift_open_date [11:12:15]req_shift_open_date done [11:12:15]produce_requested_data done [11:12:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140105,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:12:15]process_action_free close_receipt [11:12:15]json_value_free [11:12:15]json_value_free done [11:12:15]process_json_proto returns [11:12:15]Send response to host [11:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140105,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:12:15]free response buf [11:12:15]execute_script done [11:12:15]execute_script returns [11:12:15]free content buf [11:12:15]Sock 7.Close socket [11:12:15]Sock 7.Thread stoped [11:12:16]int [11:12:16]Write to MH i2c: 01 00 00 75 3B B0 [11:12:16]*** FLAG_PRN_PAP1 set [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 75 3B 00 01 00 00 00 FF 0F C6 [11:12:16]state=0 [11:12:16]No paper [11:12:16]int [11:12:16]Write to MH i2c: 01 00 00 76 3B B1 [11:12:16]*** FLAG_PRN_PAP2 set [11:12:16]Write i2c OK [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 [11:12:16]MH_I2C_Read... [11:12:16]Read from MH i2c: 01 07 00 76 3B 00 03 00 00 00 FF 0F C9 [11:12:16]state=0 [11:12:16]No paper [11:12:16]Cover opened [11:12:19]OFD Sender: No OFD packet to send [11:12:21]Write to MH i2c: 01 00 00 77 3B B2 [11:12:21]Write i2c OK [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 [11:12:21]MH_I2C_Read... [11:12:21]Read from MH i2c: 01 07 00 77 3B 00 03 00 00 00 FF 0F CA [11:12:21]state=3 [11:12:21]No paper [11:12:21]Cover opened [11:12:24]OFD Sender: No OFD packet to send [11:12:26]Write to MH i2c: 01 00 00 78 3B B3 [11:12:26]Write i2c OK [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 07 00 [11:12:26]MH_I2C_Read... [11:12:26]Read from MH i2c: 01 07 00 78 3B 00 03 00 00 00 FF 0F CB [11:12:26]state=3 [11:12:26]No paper [11:12:26]Cover opened [11:12:29]int [11:12:29]Write to MH i2c: 01 00 00 79 3B B4 [11:12:29]*** FLAG_PRN_PAP2 reset [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 79 3B 00 01 00 00 00 FF 0F CA [11:12:29]state=3 [11:12:29]No paper [11:12:29]Cover closed [11:12:29]int [11:12:29]Write to MH i2c: 01 00 00 7A 3B B5 [11:12:29]*** FLAG_PRN_PAP2 set [11:12:29]Write i2c OK [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 [11:12:29]MH_I2C_Read... [11:12:29]Read from MH i2c: 01 07 00 7A 3B 00 03 00 00 00 FF 0F CD [11:12:29]state=0 [11:12:29]No paper [11:12:29]Cover opened [11:12:29]OFD Sender: No OFD packet to send [11:12:32]int [11:12:32]Write to MH i2c: 01 00 00 7B 3B B6 [11:12:32]*** FLAG_PRN_PAP2 reset [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 7B 3B 00 01 00 00 00 FF 0F CC [11:12:32]state=3 [11:12:32]No paper [11:12:32]Cover closed [11:12:32]int [11:12:32]Write to MH i2c: 01 00 00 7C 3B B7 [11:12:32]*** FLAG_PRN_PAP1 reset [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 7C 3B 00 00 00 00 00 FF 0F CC [11:12:32]state=0 [11:12:32]int [11:12:32]Write to MH i2c: 01 00 00 7D 3B B8 [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 7D 3B 00 00 00 00 00 FF 0F CD [11:12:32]state=0 [11:12:32]int [11:12:32]Write to MH i2c: 01 00 00 7E 3B B9 [11:12:32]*** FLAG_PRN_PAP1 set [11:12:32]*** FLAG_PRN_PAP1 reset [11:12:32]*** FLAG_PRN_PAP1 set [11:12:32]Write i2c OK [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 [11:12:32]MH_I2C_Read... [11:12:32]Read from MH i2c: 01 07 00 7E 3B 00 01 00 00 00 FF 0F CF [11:12:32]state=0 [11:12:32]No paper [11:12:33]int [11:12:33]Write to MH i2c: 01 00 00 7F 3B BA [11:12:33]*** FLAG_PRN_PAP2 set [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 7F 3B 00 03 00 00 00 FF 0F D2 [11:12:33]state=0 [11:12:33]No paper [11:12:33]Cover opened [11:12:33]int [11:12:33]Write to MH i2c: 01 00 00 80 3B BB [11:12:33]*** FLAG_PRN_PAP2 reset [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 80 3B 00 01 00 00 00 FF 0F D1 [11:12:33]state=3 [11:12:33]No paper [11:12:33]Cover closed [11:12:33]int [11:12:33]Write to MH i2c: 01 00 00 81 3B BC [11:12:33]*** FLAG_PRN_PAP1 reset [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 81 3B 00 00 00 00 00 FF 0F D1 [11:12:33]state=0 [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:45]int [11:12:45]Write to MH i2c: 01 00 00 82 3B BD [11:12:45]*** FLAG_PRN_KEY set [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 82 3B 00 08 00 00 00 FF 0F DA [11:12:45]state=0 [11:12:45]Key pressed [11:12:45]Feed [11:12:45]Write to MH i2c: D8 00 00 83 3B 95 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D8 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D8 01 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: D8 01 00 83 3B 00 96 [11:12:45]int [11:12:45]Write to MH i2c: 01 00 00 84 3B BF [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 84 3B 00 48 00 00 00 3C 00 4A [11:12:45]state=2 [11:12:45]Key pressed [11:12:45]int [11:12:45]Write to MH i2c: 01 00 00 85 3B C0 [11:12:45]*** FLAG_PRN_KEY reset [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 85 3B 00 00 00 00 00 FF 0F D5 [11:12:45]state=2 [11:12:45]Stop feed [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:07]accept exits with 9 [11:14:07]New connection [11:14:07]New thread 3066908004 created [11:14:07]Thread 3066764644 joined [11:14:07]Waiting for new connection... [11:14:07] Sock 9.Parse request [11:14:07]Sock 9.Check first char [11:14:07]Sock 9.First char is OK [11:14:07]request: POST /json_proto HTTP/1.0 [11:14:07]Method: POST [11:14:07]URL: /json_proto [11:14:07]Method is POST - this is cgi request [11:14:07]url: /json_proto [11:14:07]query_string will be loaded in cgi processing [11:14:07]execute_cgi json_proto POST (null) [11:14:07]execute_cgi path=json_proto method=POST [11:14:07]POST find Content-Length [11:14:07]Host: 172.17.45.67:8080 [11:14:07]Content-Length: 677 [11:14:07]Content-Type: application/json [11:14:07] [11:14:07]POST finish read [11:14:07]Found Content-Length = 677 [11:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:07]execute_script... [11:14: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)593960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:07]POST & json_proto [11:14:07]process_json_proto [11:14:07]json parsed OK: [11:14:07]protocol is kg_v1.0 [11:14:07]action value=close_receipt [11:14:07]process_action close_receipt [11:14:07]cmd_close_receipt [11:14:07]MH_GetDate [11:14:07]Write to MH i2c: F0 00 00 86 3B B0 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: F0 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: F0 09 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: F0 09 00 86 3B 00 02 CC C5 66 5F 7F 2B 66 21 [11:14:07]GetLastDocTimeStamp 1724238735 [11:14:07]current date 1724238850 [11:14:07]FM_GetShiftState [11:14:07]SAM_PROTO_GetShiftState [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 13 01 00 [11:14:07]Write to MH i2c: E2 08 00 87 3B 80 13 01 00 00 00 00 00 3F [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 87 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [11:14:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetShiftState done [11:14:07]FM_GetShiftState done [11:14:07]opened in 1724200467 [11:14:07]opened+sec_in_day 1724286867 [11:14:07]quantity*price = 50036 [11:14:07]sum+1 = 50037 [11:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 123 21.08.2024 11:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140106 ФПД: 226350793614825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111410&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140106&fm=226350793614825&tin=02508201610067®Number=0000000000092569&sum=50000 [11:14:08]StoreToDocumentArchive [11:14:08]shift 454 fd 140106 [11:14:08]save to /storage/0454/doc_00140106 [11:14:08]save last doc name /storage/0454/doc_00140106 to /storage/kkm_last_doc_name [11:14:08]save OK [11:14:08]Clear old archive folders... [11:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:08]tlvbuf is 00A6A3B0 [11:14:08]SAM_PROTO_ClearQueue [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 09 00 00 [11:14:08]Write to MH i2c: E2 08 00 94 3B 80 09 00 00 00 00 00 00 41 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 94 3B 00 90 00 43 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_ClearQueue done [11:14:08]KKMCreateOFDPacket [11:14:08]OFDProtocolAddRootSTLVToBuf [11:14:08]FM_MakeSignedData [11:14:08]FM_MakeSignedData [11:14:08]SAM_PROTO_SignData [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 01 02 [11:14:08]Write to MH i2c: E2 08 00 95 3B 80 0D 01 02 00 00 00 00 49 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]wFMCommunicate request_size=255 [11:14:08]MH_SAM_APDU [11:14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 23 02 00 35 04 06 00 CD [11:14:08]Write to MH i2c: E2 02 01 96 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 23 02 00 35 04 06 00 CD 00 00 49 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 96 3B 00 90 00 45 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]wFMCommunicate request_size=10 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 02 02 05 DD 66 A5 E5 E9 [11:14:08]Write to MH i2c: E2 0D 00 97 3B 80 0D 02 02 05 00 DD 66 A5 E5 E9 00 00 0C [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 03 00 97 3B 00 90 00 46 [11:14:09]RAPDU: 90 00 [11:14:09]wFMCommunicate OK [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 0D 03 02 [11:14:09]Write to MH i2c: E2 08 00 98 3B 80 0D 03 02 00 00 00 00 4E [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 0B 00 98 3B 00 47 A0 1F 40 A9 F9 9D 9B 90 00 6F [11:14:09]RAPDU: 47 A0 1F 40 A9 F9 9D 9B 90 00 [11:14:09]wFMCommunicate OK [11:14:09]SAM_PROTO_SignData done [11:14:09]FM_MakeSignedData done [11:14:09]CreateOFDProtocolMessage [11:14:09]wFMCommunicate request_size=4 [11:14:09]MH_SAM_APDU [11:14:09]CAPDU: 80 11 00 00 [11:14:09]Write to MH i2c: E2 08 00 99 3B 80 11 00 00 00 00 00 00 4E [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:09]Read from MH i2c: E2 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: E2 17 00 99 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [11:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:14:09]wFMCommunicate OK [11:14:09]CreateOFDProtocolMessage done [11:14:09]OFDSenderStorePacket 140106 [11:14:09]StoreOFDPacket docnum=140106 [11:14:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 FD 07 01 E5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 23 02 00 35 04 06 00 CD DD 66 A5 E5 E9 47 A0 1F 40 A9 F9 9D 9B [11:14:09]CheckFolder [11:14:09]dirname=/storage/ofd_packets [11:14:09]CheckFolder done [11:14:09]ProducePacketName [11:14:09]name=ofd_packets/00140106 [11:14:09]NVStorageSaveData ofd_packets/00140106 [11:14:09]File name is /storage/ofd_packets/00140106 [11:14:09]Write 301 bytes [11:14:09]NVStorageSaveData done [11:14:09]OFDSenderStorePacket done [11:14:09]KKMCreateOFDPacket done [11:14:09]NVStorageSaveData kkm_last_timestamp [11:14:09]File name is /storage/kkm_last_timestamp [11:14:09]Write 4 bytes [11:14:09]NVStorageSaveData done [11:14:09]ExternCall_PrintAddStr [11:14:09]wPrintStart [11:14:09]Write to MH i2c: 01 00 00 9A 3B D5 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 9A 3B 00 00 00 00 00 FF 0F EA [11:14:09]RasterBufferAndPrint [11:14:09]line Счет N : (1)593960 [11:14:09]line ИНН: 02508201610067 [11:14:09]line Контрольно-Кассовый Чек [11:14:09]line ПРОДАЖА [11:14:09]line ТРК (МРК, ГНК) : 62 [11:14:09]line Товар: 2710124130 [11:14:09]line Аи-92-К-5 [11:14:09]line 7.380 * 67.80 [11:14:09]line = 500.36 [11:14:09]line НДС 12% НСП 1% [11:14:09]line > о реализуемом товаре [11:14:09]line ОКРУГЛЕНИЕ: -0.36 [11:14:09]line ИТОГО: 500.00 [11:14:09]line Внесено: 500.00 [11:14:09]line СДАЧА: 0.00 [11:14:09]line НСП 1% : 4.43 [11:14:09]line НДС 12% : 53.14 [11:14:09]line Наличными: 500.00 [11:14:09]line Безнал.: 0.00 [11:14:09]line Место: АЗС № 136 "Партнер Нефть" [11:14:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:14:09]line СНО: Общий режим [11:14:09]line Чек 123 21.08.2024 11:14 [11:14:09]line Смена: 454 ФФД: 1.0 [11:14:09]line ЗНМ: 0300000067 [11:14:09]line РНМ: 0000000000092569 [11:14:09]line Версия ККМ: 001 [11:14:09]line ФМ: 0000000000871776 [11:14:09]line ФД: 140106 [11:14:09]line ФПД: 226350793614825 [11:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111410&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140106&fm=226350793614825&tin=02508201610067®Number=0000000000092569&sum=50000 [11:14:09]OFD Sender: Processing packet 140106 [packets to send 137, broken 136] [11:14:09]ProducePacketName [11:14:09]name=ofd_packets/00140106 [11:14:09]OFD Sender: To server: pG, [11:14:09]CommunicateWithHost lk.salyk.kg:30040 [11:14:09]ConnectInit lk.salyk.kg [11:14:09]written 0, free lines is 4095 [11:14:09]Connected sock=10 [11:14: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 37 36 0F 01 00 00 93 FD 07 01 E5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 23 02 00 35 04 06 00 CD DD 66 A5 E5 E9 47 A0 1F 40 A9 F9 9D 9B [11:14: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 37 36 4F 00 00 00 4F A9 47 00 AC 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 37 36 10 04 04 00 4A 23 02 00 F4 03 04 00 93 72 C5 66 B6 04 01 00 00 16 B1 1D 7A E7 D5 92 4A [11:14:09]CommunicateWithHost err = 0 [11:14:09]CheckOFDResponse [11:14:09]1017 (14) - 77093643461234 [11:14:09]1041 (16) - 0000000000871776 [11:14:09]1040 (4) - 140106 [11:14:09]1012 (4) - 21.08.2024 04:52 [11:14:09]1206 (1) - 0 [11:14:09]OFD Sender: Remove packet 140106 [11:14:09]ProducePacketName [11:14:09]name=ofd_packets/00140106 [11:14:09]NVStorageDeleteData [11:14:09]Write to MH i2c: 01 00 00 C5 3B 00 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 C5 3B 00 00 00 00 00 D8 0C EB [11:14:09]RasterBufferAndPrint [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]written 0, free lines is 3296 [11:14:09]MH_Cut [11:14:09]Write to MH i2c: D1 01 00 CC 3B 01 D9 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 01 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 01 00 CC 3B 00 D8 [11:14:09]Write to MH i2c: 01 00 00 CD 3B 08 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:10]OFD Sender: No OFD packet to send [11:14:10]*** Cut start [11:14:10]*** Partial cut [11:14:10]*** CUTSNS_PIN = 1 [11:14:10]*** CUTSNS_PIN = 0 [11:14:10]*** Brake cut motor [11:14:11]Read from MH i2c: 01 [11:14:11]MH_I2C_Read... [11:14:11]*** Stop cut motor [11:14:11]*** Cut end [11:14:11]Read from MH i2c: 01 07 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 FF 0F 1D [11:14:11]process_action close_receipt done [11:14:11]requested_data is exist [11:14:11]produce_requested_data [11:14:11]requested_item fm.sn is exist - process it [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 11 00 00 [11:14:11]Write to MH i2c: E2 08 00 CE 3B 80 11 00 00 00 00 00 00 83 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 17 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 17 00 CE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [11:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:14:11]wFMCommunicate OK [11:14:11]requested_item fd.num is exist - process it [11:14:11]SAM_PROTO_GetFieldsCounters [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 13 00 00 [11:14:11]Write to MH i2c: E2 08 00 CF 3B 80 13 00 00 00 00 00 00 86 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 62 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 62 00 CF 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:11]wFMCommunicate OK [11:14:11]SAM_PROTO_GetFieldsCounters done [11:14:11]requested_item shift.num is exist - process it [11:14:11]requested_item shift.opened is exist - process it [11:14:11]req_shift_opened [11:14:11]FM_GetShiftState [11:14:11]SAM_PROTO_GetShiftState [11:14:11]wFMCommunicate request_size=4 [11:14:11]MH_SAM_APDU [11:14:11]CAPDU: 80 13 01 00 [11:14:11]Write to MH i2c: E2 08 00 D0 3B 80 13 01 00 00 00 00 00 88 [11:14:11]Write i2c OK [11:14:11]MH_I2C_Read... [11:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:11]Read from MH i2c: E2 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 0E 00 [11:14:11]MH_I2C_Read... [11:14:11]Read from MH i2c: E2 0E 00 D0 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 08 [11:14:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:14:11]wFMCommunicate OK [11:14:11]SAM_PROTO_GetShiftState done [11:14:11]FM_GetShiftState done [11:14:11]req_shift_opened done [11:14:11]requested_item shift.open_date is exist - process it [11:14:11]req_shift_open_date [11:14:11]req_shift_open_date done [11:14:11]produce_requested_data done [11:14:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140106,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:14:11]process_action_free close_receipt [11:14:11]json_value_free [11:14:11]json_value_free done [11:14:11]process_json_proto returns [11:14:11]Send response to host [11:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140106,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:14:11]free response buf [11:14:11]execute_script done [11:14:11]execute_script returns [11:14:11]free content buf [11:14:11]Sock 9.Close socket [11:14:11]Sock 9.Thread stoped [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:08]accept exits with 7 [11:15:08]New connection [11:15:08]New thread 3066764644 created [11:15:08]Thread 3066908004 joined [11:15:08]Waiting for new connection... [11:15:08] Sock 7.Parse request [11:15:08]Sock 7.Check first char [11:15:08]Sock 7.First char is OK [11:15:08]request: POST /json_proto HTTP/1.0 [11:15:08]Method: POST [11:15:08]URL: /json_proto [11:15:08]Method is POST - this is cgi request [11:15:08]url: /json_proto [11:15:08]query_string will be loaded in cgi processing [11:15:08]execute_cgi json_proto POST (null) [11:15:08]execute_cgi path=json_proto method=POST [11:15:08]POST find Content-Length [11:15:08]Host: 172.17.45.67:8080 [11:15:08]Content-Length: 658 [11:15:08]Content-Type: application/json [11:15:08] [11:15:08]POST finish read [11:15:08]Found Content-Length = 658 [11:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]execute_script... [11:15: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)593961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.000, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:08]POST & json_proto [11:15:08]process_json_proto [11:15:08]json parsed OK: [11:15:08]protocol is kg_v1.0 [11:15:08]action value=close_receipt [11:15:08]process_action close_receipt [11:15:08]cmd_close_receipt [11:15:08]MH_GetDate [11:15:08]Write to MH i2c: F0 00 00 D1 3B FB [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: F0 09 00 D1 3B 00 3F CC C5 66 5F 7F 2B 66 A9 [11:15:08]GetLastDocTimeStamp 1724238850 [11:15:08]current date 1724238911 [11:15:08]FM_GetShiftState [11:15:08]SAM_PROTO_GetShiftState [11:15:08]wFMCommunicate request_size=4 [11:15:08]MH_SAM_APDU [11:15:08]CAPDU: 80 13 01 00 [11:15:08]Write to MH i2c: E2 08 00 D2 3B 80 13 01 00 00 00 00 00 8A [11:15:08]Write i2c OK [11:15:08]MH_I2C_Read... [11:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:08]Read from MH i2c: E2 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 [11:15:08]MH_I2C_Read... [11:15:08]Read from MH i2c: E2 0E 00 D2 3B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0A [11:15:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:15:08]wFMCommunicate OK [11:15:08]SAM_PROTO_GetShiftState done [11:15:08]FM_GetShiftState done [11:15:08]opened in 1724200467 [11:15:08]opened+sec_in_day 1724286867 [11:15:08]quantity*price = 55040 [11:15:08]sum+1 = 55041 [11:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 124 21.08.2024 11:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140107 ФПД: 126702390004126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140107&fm=126702390004126&tin=02508201610067®Number=0000000000092569&sum=55000 [11:15:09]StoreToDocumentArchive [11:15:09]shift 454 fd 140107 [11:15:09]save to /storage/0454/doc_00140107 [11:15:09]save last doc name /storage/0454/doc_00140107 to /storage/kkm_last_doc_name [11:15:09]save OK [11:15:09]Clear old archive folders... [11:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:15:09]tlvbuf is 00A3CFC0 [11:15:09]SAM_PROTO_ClearQueue [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 09 00 00 [11:15:09]Write to MH i2c: E2 08 00 DF 3B 80 09 00 00 00 00 00 00 8C [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 DF 3B 00 90 00 8E [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_ClearQueue done [11:15:09]KKMCreateOFDPacket [11:15:09]OFDProtocolAddRootSTLVToBuf [11:15:09]FM_MakeSignedData [11:15:09]FM_MakeSignedData [11:15:09]SAM_PROTO_SignData [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 01 02 [11:15:09]Write to MH i2c: E2 08 00 E0 3B 80 0D 01 02 00 00 00 00 94 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 E0 3B 00 90 00 8F [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=253 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3F CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 23 02 00 35 04 06 00 73 3C 32 F2 C9 9E [11:15:09]Write to MH i2c: E2 00 01 E1 3B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3F CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 23 02 00 35 04 06 00 73 3C 32 F2 C9 9E 00 00 D8 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 03 00 E1 3B 00 90 00 90 [11:15:09]RAPDU: 90 00 [11:15:09]wFMCommunicate OK [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 0D 03 02 [11:15:09]Write to MH i2c: E2 08 00 E2 3B 80 0D 03 02 00 00 00 00 98 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0B 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 0B 00 E2 3B 00 CF 32 CB 83 A9 6C 58 96 90 00 EB [11:15:09]RAPDU: CF 32 CB 83 A9 6C 58 96 90 00 [11:15:09]wFMCommunicate OK [11:15:09]SAM_PROTO_SignData done [11:15:09]FM_MakeSignedData done [11:15:09]CreateOFDProtocolMessage [11:15:09]wFMCommunicate request_size=4 [11:15:09]MH_SAM_APDU [11:15:09]CAPDU: 80 11 00 00 [11:15:09]Write to MH i2c: E2 08 00 E3 3B 80 11 00 00 00 00 00 00 98 [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:09]Read from MH i2c: E2 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: E2 17 00 E3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [11:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:15:09]wFMCommunicate OK [11:15:09]CreateOFDProtocolMessage done [11:15:09]OFDSenderStorePacket 140107 [11:15:09]StoreOFDPacket docnum=140107 [11:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 57 46 00 01 E6 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3F CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 23 02 00 35 04 06 00 73 3C 32 F2 C9 9E CF 32 CB 83 A9 6C 58 96 [11:15:09]CheckFolder [11:15:09]dirname=/storage/ofd_packets [11:15:09]CheckFolder done [11:15:09]ProducePacketName [11:15:09]name=ofd_packets/00140107 [11:15:09]NVStorageSaveData ofd_packets/00140107 [11:15:09]File name is /storage/ofd_packets/00140107 [11:15:09]Write 294 bytes [11:15:09]NVStorageSaveData done [11:15:09]OFDSenderStorePacket done [11:15:09]KKMCreateOFDPacket done [11:15:09]NVStorageSaveData kkm_last_timestamp [11:15:09]File name is /storage/kkm_last_timestamp [11:15:09]Write 4 bytes [11:15:09]NVStorageSaveData done [11:15:09]ExternCall_PrintAddStr [11:15:09]wPrintStart [11:15:09]Write to MH i2c: 01 00 00 E4 3B 1F [11:15:09]Write i2c OK [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 07 00 [11:15:09]MH_I2C_Read... [11:15:09]Read from MH i2c: 01 07 00 E4 3B 00 00 00 00 00 FF 0F 34 [11:15:09]RasterBufferAndPrint [11:15:09]line Счет N : (1)593961 [11:15:09]line ИНН: 02508201610067 [11:15:09]line Контрольно-Кассовый Чек [11:15:09]line ПРОДАЖА [11:15:09]line ТРК (МРК, ГНК) : 43 [11:15:09]line Товар: 2710124130 [11:15:09]line SU-92 [11:15:09]line 8.000 * 68.80 [11:15:09]line = 550.40 [11:15:09]line НДС 12% НСП 1% [11:15:09]line > о реализуемом товаре [11:15:09]line ОКРУГЛЕНИЕ: -0.40 [11:15:09]line ИТОГО: 550.00 [11:15:09]line Внесено: 550.00 [11:15:09]line СДАЧА: 0.00 [11:15:09]line НСП 1% : 4.87 [11:15:09]line НДС 12% : 58.45 [11:15:09]line Наличными: 550.00 [11:15:09]line Безнал.: 0.00 [11:15:09]line Место: АЗС № 136 "Партнер Нефть" [11:15:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:15:09]line СНО: Общий режим [11:15:09]line Чек 124 21.08.2024 11:15 [11:15:09]line Смена: 454 ФФД: 1.0 [11:15:09]line ЗНМ: 0300000067 [11:15:09]line РНМ: 0000000000092569 [11:15:09]line Версия ККМ: 001 [11:15:09]line ФМ: 0000000000871776 [11:15:09]line ФД: 140107 [11:15:09]line ФПД: 126702390004126 [11:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140107&fm=126702390004126&tin=02508201610067®Number=0000000000092569&sum=55000 [11:15:10]OFD Sender: Processing packet 140107 [packets to send 137, broken 136] [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00140107 [11:15:10]OFD Sender: To server: pG, [11:15:10]CommunicateWithHost lk.salyk.kg:30040 [11:15:10]ConnectInit lk.salyk.kg [11:15:10]written 0, free lines is 4095 [11:15:10]Connected sock=10 [11:15: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 37 36 08 01 00 00 57 46 00 01 E6 1A 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3F CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 23 02 00 35 04 06 00 73 3C 32 F2 C9 9E CF 32 CB 83 A9 6C 58 96 [11:15: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 37 36 4F 00 00 00 8E 83 47 00 2C 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 37 36 10 04 04 00 4B 23 02 00 F4 03 04 00 D0 72 C5 66 B6 04 01 00 00 3D D8 4B 0D 92 BA 10 F1 [11:15:10]CommunicateWithHost err = 0 [11:15:10]CheckOFDResponse [11:15:10]1017 (14) - 77093643461234 [11:15:10]1041 (16) - 0000000000871776 [11:15:10]1040 (4) - 140107 [11:15:10]1012 (4) - 21.08.2024 04:53 [11:15:10]1206 (1) - 0 [11:15:10]OFD Sender: Remove packet 140107 [11:15:10]ProducePacketName [11:15:10]name=ofd_packets/00140107 [11:15:10]NVStorageDeleteData [11:15:10]Write to MH i2c: 01 00 00 0F 3C 4B [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 0F 3C 00 00 00 00 00 CE 0C 2C [11:15:10]RasterBufferAndPrint [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]line [11:15:10]written 0, free lines is 3286 [11:15:10]MH_Cut [11:15:10]Write to MH i2c: D1 01 00 16 3C 01 24 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 01 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: D1 01 00 16 3C 00 23 [11:15:10]Write to MH i2c: 01 00 00 17 3C 53 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:11]OFD Sender: No OFD packet to send [11:15:11]*** Cut start [11:15:11]*** Partial cut [11:15:11]*** CUTSNS_PIN = 1 [11:15:11]*** CUTSNS_PIN = 0 [11:15:11]*** Brake cut motor [11:15:12]Read from MH i2c: 01 [11:15:12]MH_I2C_Read... [11:15:12]*** Stop cut motor [11:15:12]*** Cut end [11:15:12]Read from MH i2c: 01 07 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: 01 07 00 17 3C 00 00 00 00 00 FF 0F 68 [11:15:12]process_action close_receipt done [11:15:12]requested_data is exist [11:15:12]produce_requested_data [11:15:12]requested_item fm.sn is exist - process it [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 11 00 00 [11:15:12]Write to MH i2c: E2 08 00 18 3C 80 11 00 00 00 00 00 00 CE [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 17 00 18 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [11:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:15:12]wFMCommunicate OK [11:15:12]requested_item fd.num is exist - process it [11:15:12]SAM_PROTO_GetFieldsCounters [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 13 00 00 [11:15:12]Write to MH i2c: E2 08 00 19 3C 80 13 00 00 00 00 00 00 D1 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 62 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 62 00 19 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [11:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:12]wFMCommunicate OK [11:15:12]SAM_PROTO_GetFieldsCounters done [11:15:12]requested_item shift.num is exist - process it [11:15:12]requested_item shift.opened is exist - process it [11:15:12]req_shift_opened [11:15:12]FM_GetShiftState [11:15:12]SAM_PROTO_GetShiftState [11:15:12]wFMCommunicate request_size=4 [11:15:12]MH_SAM_APDU [11:15:12]CAPDU: 80 13 01 00 [11:15:12]Write to MH i2c: E2 08 00 1A 3C 80 13 01 00 00 00 00 00 D3 [11:15:12]Write i2c OK [11:15:12]MH_I2C_Read... [11:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:12]Read from MH i2c: E2 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0E 00 [11:15:12]MH_I2C_Read... [11:15:12]Read from MH i2c: E2 0E 00 1A 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 53 [11:15:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:15:12]wFMCommunicate OK [11:15:12]SAM_PROTO_GetShiftState done [11:15:12]FM_GetShiftState done [11:15:12]req_shift_opened done [11:15:12]requested_item shift.open_date is exist - process it [11:15:12]req_shift_open_date [11:15:12]req_shift_open_date done [11:15:12]produce_requested_data done [11:15:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140107,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:15:12]process_action_free close_receipt [11:15:12]json_value_free [11:15:12]json_value_free done [11:15:12]process_json_proto returns [11:15:12]Send response to host [11:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140107,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:15:12]free response buf [11:15:12]execute_script done [11:15:12]execute_script returns [11:15:12]free content buf [11:15:12]Sock 7.Close socket [11:15:12]Sock 7.Thread stoped [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:44]accept exits with 9 [11:16:44]New connection [11:16:44]New thread 3066908004 created [11:16:44]Thread 3066764644 joined [11:16:44]Waiting for new connection... [11:16:44] Sock 9.Parse request [11:16:44]Sock 9.Check first char [11:16:44]Sock 9.First char is OK [11:16:44]request: POST /json_proto HTTP/1.0 [11:16:44]Method: POST [11:16:44]URL: /json_proto [11:16:44]Method is POST - this is cgi request [11:16:44]url: /json_proto [11:16:44]query_string will be loaded in cgi processing [11:16:44]execute_cgi json_proto POST (null) [11:16:44]execute_cgi path=json_proto method=POST [11:16:44]POST find Content-Length [11:16:44]Host: 172.17.45.67:8080 [11:16:44]Content-Length: 677 [11:16:44]Content-Type: application/json [11:16:44] [11:16:44]POST finish read [11:16:44]Found Content-Length = 677 [11:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:16:44]execute_script... [11:16: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)593962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:16:44]POST & json_proto [11:16:44]process_json_proto [11:16:44]json parsed OK: [11:16:44]protocol is kg_v1.0 [11:16:44]action value=close_receipt [11:16:44]process_action close_receipt [11:16:44]cmd_close_receipt [11:16:44]MH_GetDate [11:16:44]Write to MH i2c: F0 00 00 1B 3C 46 [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 1B 3C 00 A0 CC C5 66 5F 7F 2B 66 55 [11:16:44]GetLastDocTimeStamp 1724238911 [11:16:44]current date 1724239008 [11:16:44]FM_GetShiftState [11:16:44]SAM_PROTO_GetShiftState [11:16:44]wFMCommunicate request_size=4 [11:16:44]MH_SAM_APDU [11:16:44]CAPDU: 80 13 01 00 [11:16:44]Write to MH i2c: E2 08 00 1C 3C 80 13 01 00 00 00 00 00 D5 [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:44]Read from MH i2c: E2 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: E2 0E 00 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: E2 0E 00 1C 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 55 [11:16:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:16:44]wFMCommunicate OK [11:16:44]SAM_PROTO_GetShiftState done [11:16:44]FM_GetShiftState done [11:16:44]opened in 1724200467 [11:16:44]opened+sec_in_day 1724286867 [11:16:44]quantity*price = 20034 [11:16:44]sum+1 = 20035 [11:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 125 21.08.2024 11:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140108 ФПД: 201884737443701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111648&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140108&fm=201884737443701&tin=02508201610067®Number=0000000000092569&sum=20000 [11:16:46]StoreToDocumentArchive [11:16:46]shift 454 fd 140108 [11:16:46]save to /storage/0454/doc_00140108 [11:16:46]save last doc name /storage/0454/doc_00140108 to /storage/kkm_last_doc_name [11:16:46]save OK [11:16:46]Clear old archive folders... [11:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:46]tlvbuf is B6F4D3F0 [11:16:46]SAM_PROTO_ClearQueue [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 09 00 00 [11:16:46]Write to MH i2c: E2 08 00 29 3C 80 09 00 00 00 00 00 00 D7 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 29 3C 00 90 00 D9 [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_ClearQueue done [11:16:46]KKMCreateOFDPacket [11:16:46]OFDProtocolAddRootSTLVToBuf [11:16:46]FM_MakeSignedData [11:16:46]FM_MakeSignedData [11:16:46]SAM_PROTO_SignData [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 01 02 [11:16:46]Write to MH i2c: E2 08 00 2A 3C 80 0D 01 02 00 00 00 00 DF [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 2A 3C 00 90 00 DA [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=255 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 A0 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 23 02 00 35 04 06 00 B7 [11:16:46]Write to MH i2c: E2 02 01 2B 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 A0 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 23 02 00 35 04 06 00 B7 00 00 1C [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]OFD Sender: No OFD packet to send [11:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=10 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 02 02 05 9C F4 0F 97 75 [11:16:46]Write to MH i2c: E2 0D 00 2C 3C 80 0D 02 02 05 00 9C F4 0F 97 75 00 00 97 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 2C 3C 00 90 00 DC [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 03 02 [11:16:46]Write to MH i2c: E2 08 00 2D 3C 80 0D 03 02 00 00 00 00 E4 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 2D 3C 00 84 52 1B 4F C1 1D E0 23 90 00 06 [11:16:46]RAPDU: 84 52 1B 4F C1 1D E0 23 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_SignData done [11:16:46]FM_MakeSignedData done [11:16:46]CreateOFDProtocolMessage [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 11 00 00 [11:16:46]Write to MH i2c: E2 08 00 2E 3C 80 11 00 00 00 00 00 00 E4 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 2E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [11:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:16:46]wFMCommunicate OK [11:16:46]CreateOFDProtocolMessage done [11:16:46]OFDSenderStorePacket 140108 [11:16:46]StoreOFDPacket docnum=140108 [11:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3D 8E 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 A0 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 23 02 00 35 04 06 00 B7 9C F4 0F 97 75 84 52 1B 4F C1 1D E0 23 [11:16:46]CheckFolder [11:16:46]dirname=/storage/ofd_packets [11:16:46]CheckFolder done [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00140108 [11:16:46]NVStorageSaveData ofd_packets/00140108 [11:16:46]File name is /storage/ofd_packets/00140108 [11:16:46]Write 301 bytes [11:16:46]NVStorageSaveData done [11:16:46]OFDSenderStorePacket done [11:16:46]KKMCreateOFDPacket done [11:16:46]NVStorageSaveData kkm_last_timestamp [11:16:46]File name is /storage/kkm_last_timestamp [11:16:46]Write 4 bytes [11:16:46]NVStorageSaveData done [11:16:46]ExternCall_PrintAddStr [11:16:46]wPrintStart [11:16:46]Write to MH i2c: 01 00 00 2F 3C 6B [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 2F 3C 00 00 00 00 00 FF 0F 80 [11:16:46]RasterBufferAndPrint [11:16:46]line Счет N : (1)593962 [11:16:46]line ИНН: 02508201610067 [11:16:46]line Контрольно-Кассовый Чек [11:16:46]line ПРОДАЖА [11:16:46]line ТРК (МРК, ГНК) : 51 [11:16:46]line Товар: 2710124500 [11:16:46]line Аи-95-К-5 [11:16:46]line 2.700 * 74.20 [11:16:46]line = 200.34 [11:16:46]line НДС 12% НСП 1% [11:16:46]line > о реализуемом товаре [11:16:46]line ОКРУГЛЕНИЕ: -0.34 [11:16:46]line ИТОГО: 200.00 [11:16:46]line Внесено: 200.00 [11:16:46]line СДАЧА: 0.00 [11:16:46]line НСП 1% : 1.77 [11:16:46]line НДС 12% : 21.27 [11:16:46]line Наличными: 200.00 [11:16:46]line Безнал.: 0.00 [11:16:46]line Место: АЗС № 136 "Партнер Нефть" [11:16:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:16:46]line СНО: Общий режим [11:16:46]line Чек 125 21.08.2024 11:16 [11:16:46]line Смена: 454 ФФД: 1.0 [11:16:46]line ЗНМ: 0300000067 [11:16:46]line РНМ: 0000000000092569 [11:16:46]line Версия ККМ: 001 [11:16:46]line ФМ: 0000000000871776 [11:16:46]line ФД: 140108 [11:16:46]line ФПД: 201884737443701 [11:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111648&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140108&fm=201884737443701&tin=02508201610067®Number=0000000000092569&sum=20000 [11:16:46]OFD Sender: Processing packet 140108 [packets to send 137, broken 136] [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00140108 [11:16:46]OFD Sender: To server: pG, [11:16:46]CommunicateWithHost lk.salyk.kg:30040 [11:16:46]ConnectInit lk.salyk.kg [11:16:46]written 0, free lines is 4095 [11:16:47]Connected sock=10 [11: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 37 36 0F 01 00 00 3D 8E 07 01 A9 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 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 A0 CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 23 02 00 35 04 06 00 B7 9C F4 0F 97 75 84 52 1B 4F C1 1D E0 23 [11:16:47]Write to MH i2c: 01 00 00 5A 3C 96 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 5A 3C 00 00 00 00 00 D2 0C 7B [11:16:47]RasterBufferAndPrint [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]written 0, free lines is 3286 [11: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 37 36 4F 00 00 00 B7 5B 47 00 CF 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 37 36 10 04 04 00 4C 23 02 00 F4 03 04 00 31 73 C5 66 B6 04 01 00 00 66 12 4F A6 BA 12 89 76 [11:16:47]CommunicateWithHost err = 0 [11:16:47]CheckOFDResponse [11:16:47]1017 (14) - 77093643461234 [11:16:47]1041 (16) - 0000000000871776 [11:16:47]1040 (4) - 140108 [11:16:47]1012 (4) - 21.08.2024 04:55 [11:16:47]1206 (1) - 0 [11:16:47]OFD Sender: Remove packet 140108 [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00140108 [11:16:47]NVStorageDeleteData [11:16:47]MH_Cut [11:16:47]Write to MH i2c: D1 01 00 61 3C 01 6F [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 61 3C 00 6E [11:16:47]Write to MH i2c: 01 00 00 62 3C 9E [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]OFD Sender: No OFD packet to send [11:16:48]*** Cut start [11:16:48]*** Partial cut [11:16:48]*** CUTSNS_PIN = 1 [11:16:48]*** CUTSNS_PIN = 0 [11:16:48]*** Brake cut motor [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]*** Stop cut motor [11:16:48]*** Cut end [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 62 3C 00 00 00 00 00 FF 0F B3 [11:16:48]process_action close_receipt done [11:16:48]requested_data is exist [11:16:48]produce_requested_data [11:16:48]requested_item fm.sn is exist - process it [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 63 3C 80 11 00 00 00 00 00 00 19 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 63 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:16:48]wFMCommunicate OK [11:16:48]requested_item fd.num is exist - process it [11:16:48]SAM_PROTO_GetFieldsCounters [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 00 00 [11:16:48]Write to MH i2c: E2 08 00 64 3C 80 13 00 00 00 00 00 00 1C [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 64 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [11:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetFieldsCounters done [11:16:48]requested_item shift.num is exist - process it [11:16:48]requested_item shift.opened is exist - process it [11:16:48]req_shift_opened [11:16:48]FM_GetShiftState [11:16:48]SAM_PROTO_GetShiftState [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 01 00 [11:16:48]Write to MH i2c: E2 08 00 65 3C 80 13 01 00 00 00 00 00 1E [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 65 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [11:16:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetShiftState done [11:16:48]FM_GetShiftState done [11:16:48]req_shift_opened done [11:16:48]requested_item shift.open_date is exist - process it [11:16:48]req_shift_open_date [11:16:48]req_shift_open_date done [11:16:48]produce_requested_data done [11:16:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140108,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:16:48]process_action_free close_receipt [11:16:48]json_value_free [11:16:48]json_value_free done [11:16:48]process_json_proto returns [11:16:48]Send response to host [11:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140108,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:16:48]free response buf [11:16:48]execute_script done [11:16:48]execute_script returns [11:16:48]free content buf [11:16:48]Sock 9.Close socket [11:16:48]Sock 9.Thread stoped [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:13]accept exits with 7 [11:17:13]New connection [11:17:13]New thread 3066764644 created [11:17:13]Thread 3066908004 joined [11:17:13]Waiting for new connection... [11:17:13] Sock 7.Parse request [11:17:13]Sock 7.Check first char [11:17:13]Sock 7.First char is OK [11:17:13]request: POST /json_proto HTTP/1.0 [11:17:13]Method: POST [11:17:13]URL: /json_proto [11:17:13]Method is POST - this is cgi request [11:17:13]url: /json_proto [11:17:13]query_string will be loaded in cgi processing [11:17:13]execute_cgi json_proto POST (null) [11:17:13]execute_cgi path=json_proto method=POST [11:17:13]POST find Content-Length [11:17:13]Host: 172.17.45.67:8080 [11:17:13]Content-Length: 677 [11:17:13]Content-Type: application/json [11:17:13] [11:17:13]POST finish read [11:17:13]Found Content-Length = 677 [11:17:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:13]execute_script... [11:17:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:13]POST & json_proto [11:17:13]process_json_proto [11:17:13]json parsed OK: [11:17:13]protocol is kg_v1.0 [11:17:13]action value=close_receipt [11:17:13]process_action close_receipt [11:17:13]cmd_close_receipt [11:17:13]MH_GetDate [11:17:13]Write to MH i2c: F0 00 00 66 3C 91 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: F0 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: F0 09 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: F0 09 00 66 3C 00 BD CC C5 66 5F 7F 2B 66 BD [11:17:13]GetLastDocTimeStamp 1724239008 [11:17:13]current date 1724239037 [11:17:13]FM_GetShiftState [11:17:13]SAM_PROTO_GetShiftState [11:17:13]wFMCommunicate request_size=4 [11:17:13]MH_SAM_APDU [11:17:13]CAPDU: 80 13 01 00 [11:17:13]Write to MH i2c: E2 08 00 67 3C 80 13 01 00 00 00 00 00 20 [11:17:13]Write i2c OK [11:17:13]MH_I2C_Read... [11:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:13]Read from MH i2c: E2 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 0E 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: E2 0E 00 67 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [11:17:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:17:13]wFMCommunicate OK [11:17:13]SAM_PROTO_GetShiftState done [11:17:13]FM_GetShiftState done [11:17:13]opened in 1724200467 [11:17:13]opened+sec_in_day 1724286867 [11:17:13]quantity*price = 40002 [11:17:13]sum+1 = 40003 [11:17:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 126 21.08.2024 11:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140109 ФПД: 146747590342802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111717&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140109&fm=146747590342802&tin=02508201610067®Number=0000000000092569&sum=40000 [11:17:15]StoreToDocumentArchive [11:17:15]shift 454 fd 140109 [11:17:15]save to /storage/0454/doc_00140109 [11:17:15]save last doc name /storage/0454/doc_00140109 to /storage/kkm_last_doc_name [11:17:15]save OK [11:17:15]Clear old archive folders... [11:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:15]tlvbuf is 00A1AF10 [11:17:15]SAM_PROTO_ClearQueue [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 09 00 00 [11:17:15]Write to MH i2c: E2 08 00 74 3C 80 09 00 00 00 00 00 00 22 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 74 3C 00 90 00 24 [11:17:15]RAPDU: 90 00 [11:17:15]wFMCommunicate OK [11:17:15]SAM_PROTO_ClearQueue done [11:17:15]KKMCreateOFDPacket [11:17:15]OFDProtocolAddRootSTLVToBuf [11:17:15]FM_MakeSignedData [11:17:15]FM_MakeSignedData [11:17:15]SAM_PROTO_SignData [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 0D 01 02 [11:17:15]Write to MH i2c: E2 08 00 75 3C 80 0D 01 02 00 00 00 00 2A [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 75 3C 00 90 00 25 [11:17:15]RAPDU: 90 00 [11:17:15]wFMCommunicate OK [11:17:15]wFMCommunicate request_size=255 [11:17:15]MH_SAM_APDU [11:17: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 23 02 00 35 04 06 00 85 [11:17:15]Write to MH i2c: E2 02 01 76 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 23 02 00 35 04 06 00 85 00 00 88 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 76 3C 00 90 00 26 [11:17:15]RAPDU: 90 00 [11:17:15]wFMCommunicate OK [11:17:15]wFMCommunicate request_size=10 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 0D 02 02 05 77 55 FE 78 92 [11:17:15]Write to MH i2c: E2 0D 00 77 3C 80 0D 02 02 05 00 77 55 FE 78 92 00 00 0B [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 03 00 77 3C 00 90 00 27 [11:17:15]RAPDU: 90 00 [11:17:15]wFMCommunicate OK [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 0D 03 02 [11:17:15]Write to MH i2c: E2 08 00 78 3C 80 0D 03 02 00 00 00 00 2F [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0B 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 0B 00 78 3C 00 62 B5 F1 0A DB 70 D1 8F 90 00 ED [11:17:15]RAPDU: 62 B5 F1 0A DB 70 D1 8F 90 00 [11:17:15]wFMCommunicate OK [11:17:15]SAM_PROTO_SignData done [11:17:15]FM_MakeSignedData done [11:17:15]CreateOFDProtocolMessage [11:17:15]wFMCommunicate request_size=4 [11:17:15]MH_SAM_APDU [11:17:15]CAPDU: 80 11 00 00 [11:17:15]Write to MH i2c: E2 08 00 79 3C 80 11 00 00 00 00 00 00 2F [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:15]Read from MH i2c: E2 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 17 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: E2 17 00 79 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [11:17:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:15]wFMCommunicate OK [11:17:15]CreateOFDProtocolMessage done [11:17:15]OFDSenderStorePacket 140109 [11:17:15]StoreOFDPacket docnum=140109 [11:17:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 10 07 01 78 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 23 02 00 35 04 06 00 85 77 55 FE 78 92 62 B5 F1 0A DB 70 D1 8F [11:17:15]CheckFolder [11:17:15]dirname=/storage/ofd_packets [11:17:15]CheckFolder done [11:17:15]ProducePacketName [11:17:15]name=ofd_packets/00140109 [11:17:15]NVStorageSaveData ofd_packets/00140109 [11:17:15]File name is /storage/ofd_packets/00140109 [11:17:15]Write 301 bytes [11:17:15]NVStorageSaveData done [11:17:15]OFDSenderStorePacket done [11:17:15]KKMCreateOFDPacket done [11:17:15]NVStorageSaveData kkm_last_timestamp [11:17:15]File name is /storage/kkm_last_timestamp [11:17:15]Write 4 bytes [11:17:15]NVStorageSaveData done [11:17:15]ExternCall_PrintAddStr [11:17:15]wPrintStart [11:17:15]Write to MH i2c: 01 00 00 7A 3C B6 [11:17:15]Write i2c OK [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: 01 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: 01 07 00 [11:17:15]MH_I2C_Read... [11:17:15]Read from MH i2c: 01 07 00 7A 3C 00 00 00 00 00 FF 0F CB [11:17:15]RasterBufferAndPrint [11:17:15]line Счет N : (1)593963 [11:17:15]line ИНН: 02508201610067 [11:17:15]line Контрольно-Кассовый Чек [11:17:15]line ПРОДАЖА [11:17:15]line ТРК (МРК, ГНК) : 62 [11:17:15]line Товар: 2710124130 [11:17:15]line Аи-92-К-5 [11:17:15]line 5.900 * 67.80 [11:17:15]line = 400.02 [11:17:15]line НДС 12% НСП 1% [11:17:15]line > о реализуемом товаре [11:17:15]line ОКРУГЛЕНИЕ: -0.02 [11:17:15]line ИТОГО: 400.00 [11:17:15]line Внесено: 400.00 [11:17:15]line СДАЧА: 0.00 [11:17:15]line НСП 1% : 3.54 [11:17:15]line НДС 12% : 42.48 [11:17:15]line Наличными: 400.00 [11:17:15]line Безнал.: 0.00 [11:17:15]line Место: АЗС № 136 "Партнер Нефть" [11:17:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:17:15]line СНО: Общий режим [11:17:15]line Чек 126 21.08.2024 11:17 [11:17:15]line Смена: 454 ФФД: 1.0 [11:17:15]line ЗНМ: 0300000067 [11:17:15]line РНМ: 0000000000092569 [11:17:15]line Версия ККМ: 001 [11:17:15]line ФМ: 0000000000871776 [11:17:15]line ФД: 140109 [11:17:15]line ФПД: 146747590342802 [11:17:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T111717&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140109&fm=146747590342802&tin=02508201610067®Number=0000000000092569&sum=40000 [11:17:15]OFD Sender: Processing packet 140109 [packets to send 137, broken 136] [11:17:15]ProducePacketName [11:17:15]name=ofd_packets/00140109 [11:17:15]OFD Sender: To server: pG, [11:17:15]CommunicateWithHost lk.salyk.kg:30040 [11:17:15]ConnectInit lk.salyk.kg [11:17:15]written 0, free lines is 4095 [11:17:16]Connected sock=10 [11:17: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 37 36 0F 01 00 00 FF 10 07 01 78 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BD CC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 23 02 00 35 04 06 00 85 77 55 FE 78 92 62 B5 F1 0A DB 70 D1 8F [11:17: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 37 36 4F 00 00 00 7F 9F 47 00 76 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 37 36 10 04 04 00 4D 23 02 00 F4 03 04 00 4E 73 C5 66 B6 04 01 00 00 AD EB 1E BA A3 B9 11 50 [11:17:16]CommunicateWithHost err = 0 [11:17:16]CheckOFDResponse [11:17:16]1017 (14) - 77093643461234 [11:17:16]1041 (16) - 0000000000871776 [11:17:16]1040 (4) - 140109 [11:17:16]1012 (4) - 21.08.2024 04:55 [11:17:16]1206 (1) - 0 [11:17:16]OFD Sender: Remove packet 140109 [11:17:16]ProducePacketName [11:17:16]name=ofd_packets/00140109 [11:17:16]NVStorageDeleteData [11:17:16]Write to MH i2c: 01 00 00 A5 3C E1 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 A5 3C 00 00 00 00 00 D9 0C CD [11:17:16]RasterBufferAndPrint [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]written 0, free lines is 3298 [11:17:16]MH_Cut [11:17:16]Write to MH i2c: D1 01 00 AC 3C 01 BA [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 01 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 01 00 AC 3C 00 B9 [11:17:16]Write to MH i2c: 01 00 00 AD 3C E9 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]OFD Sender: No OFD packet to send [11:17:17]*** Cut start [11:17:17]*** Partial cut [11:17:17]*** CUTSNS_PIN = 1 [11:17:17]*** CUTSNS_PIN = 0 [11:17:17]*** Brake cut motor [11:17:17]Read from MH i2c: 01 [11:17:17]MH_I2C_Read... [11:17:17]*** Stop cut motor [11:17:17]*** Cut end [11:17:17]Read from MH i2c: 01 07 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 AD 3C 00 00 00 00 00 FF 0F FE [11:17:17]process_action close_receipt done [11:17:17]requested_data is exist [11:17:17]produce_requested_data [11:17:17]requested_item fm.sn is exist - process it [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 11 00 00 [11:17:17]Write to MH i2c: E2 08 00 AE 3C 80 11 00 00 00 00 00 00 64 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 AE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [11:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:17:17]wFMCommunicate OK [11:17:17]requested_item fd.num is exist - process it [11:17:17]SAM_PROTO_GetFieldsCounters [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 13 00 00 [11:17:17]Write to MH i2c: E2 08 00 AF 3C 80 13 00 00 00 00 00 00 67 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 62 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 62 00 AF 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_GetFieldsCounters done [11:17:17]requested_item shift.num is exist - process it [11:17:17]requested_item shift.opened is exist - process it [11:17:17]req_shift_opened [11:17:17]FM_GetShiftState [11:17:17]SAM_PROTO_GetShiftState [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 13 01 00 [11:17:17]Write to MH i2c: E2 08 00 B0 3C 80 13 01 00 00 00 00 00 69 [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:17]Read from MH i2c: E2 0E 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0E 00 B0 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [11:17:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_GetShiftState done [11:17:17]FM_GetShiftState done [11:17:17]req_shift_opened done [11:17:17]requested_item shift.open_date is exist - process it [11:17:17]req_shift_open_date [11:17:17]req_shift_open_date done [11:17:17]produce_requested_data done [11:17:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140109,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:17:17]process_action_free close_receipt [11:17:17]json_value_free [11:17:17]json_value_free done [11:17:17]process_json_proto returns [11:17:17]Send response to host [11:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140109,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:17:17]free response buf [11:17:17]execute_script done [11:17:17]execute_script returns [11:17:17]free content buf [11:17:17]Sock 7.Close socket [11:17:17]Sock 7.Thread stoped [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:46]accept exits with 9 [11:20:46]New connection [11:20:46]New thread 3066908004 created [11:20:46]Thread 3066764644 joined [11:20:46]Waiting for new connection... [11:20:46] Sock 9.Parse request [11:20:46]Sock 9.Check first char [11:20:46]Sock 9.First char is OK [11:20:46]request: POST /json_proto HTTP/1.0 [11:20:46]Method: POST [11:20:46]URL: /json_proto [11:20:46]Method is POST - this is cgi request [11:20:46]url: /json_proto [11:20:46]query_string will be loaded in cgi processing [11:20:46]execute_cgi json_proto POST (null) [11:20:46]execute_cgi path=json_proto method=POST [11:20:46]POST find Content-Length [11:20:46]Host: 172.17.45.67:8080 [11:20:46]Content-Length: 658 [11:20:46]Content-Type: application/json [11:20:46] [11:20:46]POST finish read [11:20:46]Found Content-Length = 658 [11:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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:20:46]execute_script... [11:20: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)593964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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:20:46]POST & json_proto [11:20:46]process_json_proto [11:20:46]json parsed OK: [11:20:46]protocol is kg_v1.0 [11:20:46]action value=close_receipt [11:20:46]process_action close_receipt [11:20:46]cmd_close_receipt [11:20:46]MH_GetDate [11:20:46]Write to MH i2c: F0 00 00 B1 3C DC [11:20:46]Write i2c OK [11:20:46]MH_I2C_Read... [11:20:46]Read from MH i2c: F0 [11:20:46]MH_I2C_Read... [11:20:46]Read from MH i2c: F0 09 00 [11:20:46]MH_I2C_Read... [11:20:46]Read from MH i2c: F0 09 00 B1 3C 00 92 CD C5 66 5F 7F 2B 66 DE [11:20:46]GetLastDocTimeStamp 1724239037 [11:20:46]current date 1724239250 [11:20:46]FM_GetShiftState [11:20:46]SAM_PROTO_GetShiftState [11:20:46]wFMCommunicate request_size=4 [11:20:46]MH_SAM_APDU [11:20:46]CAPDU: 80 13 01 00 [11:20:46]Write to MH i2c: E2 08 00 B2 3C 80 13 01 00 00 00 00 00 6B [11:20:46]Write i2c OK [11:20:46]MH_I2C_Read... [11:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:46]Read from MH i2c: E2 [11:20:46]MH_I2C_Read... [11:20:46]Read from MH i2c: E2 0E 00 [11:20:46]MH_I2C_Read... [11:20:46]Read from MH i2c: E2 0E 00 B2 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [11:20:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:20:46]wFMCommunicate OK [11:20:46]SAM_PROTO_GetShiftState done [11:20:46]FM_GetShiftState done [11:20:46]opened in 1724200467 [11:20:46]opened+sec_in_day 1724286867 [11:20:46]quantity*price = 30065 [11:20:46]sum+1 = 30067 [11:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.93 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 127 21.08.2024 11:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140110 ФПД: 259914315877193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140110&fm=259914315877193&tin=02508201610067®Number=0000000000092569&sum=30000 [11:20:47]StoreToDocumentArchive [11:20:47]shift 454 fd 140110 [11:20:47]save to /storage/0454/doc_00140110 [11:20:47]save last doc name /storage/0454/doc_00140110 to /storage/kkm_last_doc_name [11:20:47]save OK [11:20:47]Clear old archive folders... [11:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:20:47]tlvbuf is 00A80CD0 [11:20:47]SAM_PROTO_ClearQueue [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 09 00 00 [11:20:47]Write to MH i2c: E2 08 00 BF 3C 80 09 00 00 00 00 00 00 6D [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 BF 3C 00 90 00 6F [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_ClearQueue done [11:20:48]KKMCreateOFDPacket [11:20:48]OFDProtocolAddRootSTLVToBuf [11:20:48]FM_MakeSignedData [11:20:48]FM_MakeSignedData [11:20:48]SAM_PROTO_SignData [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 01 02 [11:20:48]Write to MH i2c: E2 08 00 C0 3C 80 0D 01 02 00 00 00 00 75 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 C0 3C 00 90 00 70 [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=253 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 92 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 23 02 00 35 04 06 00 EC 64 04 78 4B 49 [11:20:48]Write to MH i2c: E2 00 01 C1 3C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 92 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 23 02 00 35 04 06 00 EC 64 04 78 4B 49 00 00 B8 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 C1 3C 00 90 00 71 [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 03 02 [11:20:48]Write to MH i2c: E2 08 00 C2 3C 80 0D 03 02 00 00 00 00 79 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0B 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0B 00 C2 3C 00 72 F8 F7 F3 05 02 5B C5 90 00 F5 [11:20:48]RAPDU: 72 F8 F7 F3 05 02 5B C5 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_SignData done [11:20:48]FM_MakeSignedData done [11:20:48]CreateOFDProtocolMessage [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 11 00 00 [11:20:48]Write to MH i2c: E2 08 00 C3 3C 80 11 00 00 00 00 00 00 79 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 17 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 17 00 C3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [11:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:20:48]wFMCommunicate OK [11:20:48]CreateOFDProtocolMessage done [11:20:48]OFDSenderStorePacket 140110 [11:20:48]StoreOFDPacket docnum=140110 [11:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 6D 31 00 01 7C EF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 92 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 23 02 00 35 04 06 00 EC 64 04 78 4B 49 72 F8 F7 F3 05 02 5B C5 [11:20:48]CheckFolder [11:20:48]dirname=/storage/ofd_packets [11:20:48]CheckFolder done [11:20:48]ProducePacketName [11:20:48]name=ofd_packets/00140110 [11:20:48]NVStorageSaveData ofd_packets/00140110 [11:20:48]File name is /storage/ofd_packets/00140110 [11:20:48]Write 294 bytes [11:20:48]NVStorageSaveData done [11:20:48]OFDSenderStorePacket done [11:20:48]KKMCreateOFDPacket done [11:20:48]NVStorageSaveData kkm_last_timestamp [11:20:48]File name is /storage/kkm_last_timestamp [11:20:48]Write 4 bytes [11:20:48]NVStorageSaveData done [11:20:48]ExternCall_PrintAddStr [11:20:48]wPrintStart [11:20:48]Write to MH i2c: 01 00 00 C4 3C 00 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 C4 3C 00 00 00 00 00 FF 0F 15 [11:20:48]RasterBufferAndPrint [11:20:48]line Счет N : (1)593964 [11:20:48]line ИНН: 02508201610067 [11:20:48]line Контрольно-Кассовый Чек [11:20:48]line ПРОДАЖА [11:20:48]line ТРК (МРК, ГНК) : 53 [11:20:48]line Товар: 2710124130 [11:20:48]line SU-92 [11:20:48]line 4.370 * 68.80 [11:20:48]line = 300.66 [11:20:48]line НДС 12% НСП 1% [11:20:48]line > о реализуемом товаре [11:20:48]line ОКРУГЛЕНИЕ: -0.66 [11:20:48]line ИТОГО: 300.00 [11:20:48]line Внесено: 300.00 [11:20:48]line СДАЧА: 0.00 [11:20:48]line НСП 1% : 2.66 [11:20:48]line НДС 12% : 31.93 [11:20:48]line Наличными: 300.00 [11:20:48]line Безнал.: 0.00 [11:20:48]line Место: АЗС № 136 "Партнер Нефть" [11:20:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:20:48]line СНО: Общий режим [11:20:48]line Чек 127 21.08.2024 11:20 [11:20:48]line Смена: 454 ФФД: 1.0 [11:20:48]line ЗНМ: 0300000067 [11:20:48]line РНМ: 0000000000092569 [11:20:48]line Версия ККМ: 001 [11:20:48]line ФМ: 0000000000871776 [11:20:48]line ФД: 140110 [11:20:48]line ФПД: 259914315877193 [11:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140110&fm=259914315877193&tin=02508201610067®Number=0000000000092569&sum=30000 [11:20:48]OFD Sender: Processing packet 140110 [packets to send 137, broken 136] [11:20:48]ProducePacketName [11:20:48]name=ofd_packets/00140110 [11:20:48]OFD Sender: To server: pG, [11:20:48]CommunicateWithHost lk.salyk.kg:30040 [11:20:48]ConnectInit lk.salyk.kg [11:20:48]written 0, free lines is 4095 [11:20:48]Connected sock=10 [11:20: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 37 36 08 01 00 00 6D 31 00 01 7C EF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 92 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 23 02 00 35 04 06 00 EC 64 04 78 4B 49 72 F8 F7 F3 05 02 5B C5 [11:20: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 37 36 4F 00 00 00 EF 22 47 00 AC 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 37 36 10 04 04 00 4E 23 02 00 F4 03 04 00 23 74 C5 66 B6 04 01 00 00 2A AA EF AD 05 F1 69 27 [11:20:49]CommunicateWithHost err = 0 [11:20:49]CheckOFDResponse [11:20:49]1017 (14) - 77093643461234 [11:20:49]1041 (16) - 0000000000871776 [11:20:49]1040 (4) - 140110 [11:20:49]1012 (4) - 21.08.2024 04:59 [11:20:49]1206 (1) - 0 [11:20:49]OFD Sender: Remove packet 140110 [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00140110 [11:20:49]NVStorageDeleteData [11:20:49]Write to MH i2c: 01 00 00 EF 3C 2B [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 EF 3C 00 00 00 00 00 CD 0C 0B [11:20:49]RasterBufferAndPrint [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]written 0, free lines is 3283 [11:20:49]MH_Cut [11:20:49]Write to MH i2c: D1 01 00 F6 3C 01 04 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 01 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: D1 01 00 F6 3C 00 03 [11:20:49]Write to MH i2c: 01 00 00 F7 3C 33 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]OFD Sender: No OFD packet to send [11:20:50]*** Cut start [11:20:50]*** Partial cut [11:20:50]*** CUTSNS_PIN = 1 [11:20:50]*** CUTSNS_PIN = 0 [11:20:50]*** Brake cut motor [11:20:50]Read from MH i2c: 01 [11:20:50]MH_I2C_Read... [11:20:50]*** Stop cut motor [11:20:50]*** Cut end [11:20:50]Read from MH i2c: 01 07 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: 01 07 00 F7 3C 00 00 00 00 00 FF 0F 48 [11:20:50]process_action close_receipt done [11:20:50]requested_data is exist [11:20:50]produce_requested_data [11:20:50]requested_item fm.sn is exist - process it [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 11 00 00 [11:20:50]Write to MH i2c: E2 08 00 F8 3C 80 11 00 00 00 00 00 00 AE [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 17 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 17 00 F8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 05 [11:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:20:50]wFMCommunicate OK [11:20:50]requested_item fd.num is exist - process it [11:20:50]SAM_PROTO_GetFieldsCounters [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 13 00 00 [11:20:50]Write to MH i2c: E2 08 00 F9 3C 80 13 00 00 00 00 00 00 B1 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 62 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 62 00 F9 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:50]wFMCommunicate OK [11:20:50]SAM_PROTO_GetFieldsCounters done [11:20:50]requested_item shift.num is exist - process it [11:20:50]requested_item shift.opened is exist - process it [11:20:50]req_shift_opened [11:20:50]FM_GetShiftState [11:20:50]SAM_PROTO_GetShiftState [11:20:50]wFMCommunicate request_size=4 [11:20:50]MH_SAM_APDU [11:20:50]CAPDU: 80 13 01 00 [11:20:50]Write to MH i2c: E2 08 00 FA 3C 80 13 01 00 00 00 00 00 B3 [11:20:50]Write i2c OK [11:20:50]MH_I2C_Read... [11:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:50]Read from MH i2c: E2 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 0E 00 [11:20:50]MH_I2C_Read... [11:20:50]Read from MH i2c: E2 0E 00 FA 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 33 [11:20:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:20:50]wFMCommunicate OK [11:20:50]SAM_PROTO_GetShiftState done [11:20:50]FM_GetShiftState done [11:20:50]req_shift_opened done [11:20:50]requested_item shift.open_date is exist - process it [11:20:50]req_shift_open_date [11:20:50]req_shift_open_date done [11:20:50]produce_requested_data done [11:20:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140110,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:20:50]process_action_free close_receipt [11:20:50]json_value_free [11:20:50]json_value_free done [11:20:50]process_json_proto returns [11:20:50]Send response to host [11:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140110,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:20:50]free response buf [11:20:50]execute_script done [11:20:50]execute_script returns [11:20:50]free content buf [11:20:50]Sock 9.Close socket [11:20:50]Sock 9.Thread stoped [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:26]accept exits with 7 [11:22:26]New connection [11:22:26]New thread 3066764644 created [11:22:26]Thread 3066908004 joined [11:22:26]Waiting for new connection... [11:22:26] Sock 7.Parse request [11:22:26]Sock 7.Check first char [11:22:26]Sock 7.First char is OK [11:22:26]request: POST /json_proto HTTP/1.0 [11:22:26]Method: POST [11:22:26]URL: /json_proto [11:22:26]Method is POST - this is cgi request [11:22:26]url: /json_proto [11:22:26]query_string will be loaded in cgi processing [11:22:26]execute_cgi json_proto POST (null) [11:22:26]execute_cgi path=json_proto method=POST [11:22:26]POST find Content-Length [11:22:26]Host: 172.17.45.67:8080 [11:22:26]Content-Length: 677 [11:22:26]Content-Type: application/json [11:22:26] [11:22:26]POST finish read [11:22:26]Found Content-Length = 677 [11:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:26]execute_script... [11:22: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)593966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:26]POST & json_proto [11:22:26]process_json_proto [11:22:26]json parsed OK: [11:22:26]protocol is kg_v1.0 [11:22:26]action value=close_receipt [11:22:26]process_action close_receipt [11:22:26]cmd_close_receipt [11:22:26]MH_GetDate [11:22:26]Write to MH i2c: F0 00 00 FB 3C 26 [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: F0 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: F0 09 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: F0 09 00 FB 3C 00 F5 CD C5 66 5F 7F 2B 66 8B [11:22:26]GetLastDocTimeStamp 1724239250 [11:22:26]current date 1724239349 [11:22:26]FM_GetShiftState [11:22:26]SAM_PROTO_GetShiftState [11:22:26]wFMCommunicate request_size=4 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 13 01 00 [11:22:26]Write to MH i2c: E2 08 00 FC 3C 80 13 01 00 00 00 00 00 B5 [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 0E 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 0E 00 FC 3C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 35 [11:22:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:22:26]wFMCommunicate OK [11:22:26]SAM_PROTO_GetShiftState done [11:22:26]FM_GetShiftState done [11:22:26]opened in 1724200467 [11:22:26]opened+sec_in_day 1724286867 [11:22:26]quantity*price = 30035 [11:22:26]sum+1 = 30036 [11:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 128 21.08.2024 11:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140111 ФПД: 461480360405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112229&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140111&fm=461480360405&tin=02508201610067®Number=0000000000092569&sum=30000 [11:22:27]StoreToDocumentArchive [11:22:27]shift 454 fd 140111 [11:22:27]save to /storage/0454/doc_00140111 [11:22:27]save last doc name /storage/0454/doc_00140111 to /storage/kkm_last_doc_name [11:22:27]save OK [11:22:27]Clear old archive folders... [11:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:27]tlvbuf is 00AA3A40 [11:22:27]SAM_PROTO_ClearQueue [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 09 00 00 [11:22:27]Write to MH i2c: E2 08 00 09 3D 80 09 00 00 00 00 00 00 B8 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 09 3D 00 90 00 BA [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_ClearQueue done [11:22:27]KKMCreateOFDPacket [11:22:27]OFDProtocolAddRootSTLVToBuf [11:22:27]FM_MakeSignedData [11:22:27]FM_MakeSignedData [11:22:27]SAM_PROTO_SignData [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 0D 01 02 [11:22:27]Write to MH i2c: E2 08 00 0A 3D 80 0D 01 02 00 00 00 00 C0 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 0A 3D 00 90 00 BB [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]wFMCommunicate request_size=255 [11:22:27]MH_SAM_APDU [11:22: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F5 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 23 02 00 35 04 06 00 00 [11:22:27]Write to MH i2c: E2 02 01 0B 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F5 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 23 02 00 35 04 06 00 00 00 00 10 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 0B 3D 00 90 00 BC [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]wFMCommunicate request_size=10 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 0D 02 02 05 6B 72 5F 79 D5 [11:22:27]Write to MH i2c: E2 0D 00 0C 3D 80 0D 02 02 05 00 6B 72 5F 79 D5 00 00 57 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 03 00 0C 3D 00 90 00 BD [11:22:27]RAPDU: 90 00 [11:22:27]wFMCommunicate OK [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 0D 03 02 [11:22:27]Write to MH i2c: E2 08 00 0D 3D 80 0D 03 02 00 00 00 00 C5 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0B 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0B 00 0D 3D 00 1A 8D E9 2C C2 EC EC 33 90 00 4F [11:22:27]RAPDU: 1A 8D E9 2C C2 EC EC 33 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_SignData done [11:22:27]FM_MakeSignedData done [11:22:27]CreateOFDProtocolMessage [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 11 00 00 [11:22:27]Write to MH i2c: E2 08 00 0E 3D 80 11 00 00 00 00 00 00 C5 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 17 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 17 00 0E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [11:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:22:27]wFMCommunicate OK [11:22:27]CreateOFDProtocolMessage done [11:22:27]OFDSenderStorePacket 140111 [11:22:27]StoreOFDPacket docnum=140111 [11:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B 98 07 01 86 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F5 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 23 02 00 35 04 06 00 00 6B 72 5F 79 D5 1A 8D E9 2C C2 EC EC 33 [11:22:27]CheckFolder [11:22:27]dirname=/storage/ofd_packets [11:22:27]CheckFolder done [11:22:27]ProducePacketName [11:22:27]name=ofd_packets/00140111 [11:22:27]NVStorageSaveData ofd_packets/00140111 [11:22:27]File name is /storage/ofd_packets/00140111 [11:22:27]Write 301 bytes [11:22:27]NVStorageSaveData done [11:22:27]OFDSenderStorePacket done [11:22:27]KKMCreateOFDPacket done [11:22:27]NVStorageSaveData kkm_last_timestamp [11:22:27]File name is /storage/kkm_last_timestamp [11:22:27]Write 4 bytes [11:22:27]NVStorageSaveData done [11:22:27]ExternCall_PrintAddStr [11:22:27]wPrintStart [11:22:27]Write to MH i2c: 01 00 00 0F 3D 4C [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 0F 3D 00 00 00 00 00 FF 0F 61 [11:22:27]RasterBufferAndPrint [11:22:27]line Счет N : (1)593966 [11:22:27]line ИНН: 02508201610067 [11:22:27]line Контрольно-Кассовый Чек [11:22:27]line ПРОДАЖА [11:22:27]line ТРК (МРК, ГНК) : 42 [11:22:27]line Товар: 2710124130 [11:22:27]line Аи-92-К-5 [11:22:27]line 4.430 * 67.80 [11:22:27]line = 300.35 [11:22:27]line НДС 12% НСП 1% [11:22:27]line > о реализуемом товаре [11:22:27]line ОКРУГЛЕНИЕ: -0.35 [11:22:27]line ИТОГО: 300.00 [11:22:27]line Внесено: 300.00 [11:22:27]line СДАЧА: 0.00 [11:22:27]line НСП 1% : 2.66 [11:22:27]line НДС 12% : 31.90 [11:22:27]line Наличными: 300.00 [11:22:27]line Безнал.: 0.00 [11:22:27]line Место: АЗС № 136 "Партнер Нефть" [11:22:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:22:27]line СНО: Общий режим [11:22:27]line Чек 128 21.08.2024 11:22 [11:22:27]line Смена: 454 ФФД: 1.0 [11:22:27]line ЗНМ: 0300000067 [11:22:27]line РНМ: 0000000000092569 [11:22:27]line Версия ККМ: 001 [11:22:27]line ФМ: 0000000000871776 [11:22:27]line ФД: 140111 [11:22:27]line ФПД: 461480360405 [11:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112229&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140111&fm=461480360405&tin=02508201610067®Number=0000000000092569&sum=30000 [11:22:28]written 0, free lines is 4095 [11:22:28]OFD Sender: Processing packet 140111 [packets to send 137, broken 136] [11:22:28]ProducePacketName [11:22:28]name=ofd_packets/00140111 [11:22:28]OFD Sender: To server: pG, [11:22:28]CommunicateWithHost lk.salyk.kg:30040 [11:22:28]ConnectInit lk.salyk.kg [11:22:28]Connected sock=9 [11:22: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 37 36 0F 01 00 00 2B 98 07 01 86 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 F5 CD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 23 02 00 35 04 06 00 00 6B 72 5F 79 D5 1A 8D E9 2C C2 EC EC 33 [11:22: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 37 36 4F 00 00 00 93 2F 47 00 79 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 37 36 10 04 04 00 4F 23 02 00 F4 03 04 00 86 74 C5 66 B6 04 01 00 00 11 30 97 3E 72 27 4C 8A [11:22:28]CommunicateWithHost err = 0 [11:22:28]CheckOFDResponse [11:22:28]1017 (14) - 77093643461234 [11:22:28]1041 (16) - 0000000000871776 [11:22:28]1040 (4) - 140111 [11:22:28]1012 (4) - 21.08.2024 05:00 [11:22:28]1206 (1) - 0 [11:22:28]OFD Sender: Remove packet 140111 [11:22:28]ProducePacketName [11:22:28]name=ofd_packets/00140111 [11:22:28]NVStorageDeleteData [11:22:28]Write to MH i2c: 01 00 00 3A 3D 77 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 07 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 07 00 3A 3D 00 00 00 00 00 D6 0C 60 [11:22:28]RasterBufferAndPrint [11:22:28]line [11:22:28]line [11:22:28]line [11:22:28]line [11:22:28]line [11:22:28]written 0, free lines is 3297 [11:22:28]MH_Cut [11:22:28]Write to MH i2c: D1 01 00 41 3D 01 50 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 01 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: D1 01 00 41 3D 00 4F [11:22:28]Write to MH i2c: 01 00 00 42 3D 7F [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:29]OFD Sender: No OFD packet to send [11:22:29]*** Cut start [11:22:29]*** Partial cut [11:22:29]*** CUTSNS_PIN = 1 [11:22:29]*** CUTSNS_PIN = 0 [11:22:29]*** Brake cut motor [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]*** Stop cut motor [11:22:29]*** Cut end [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 42 3D 00 00 00 00 00 FF 0F 94 [11:22:29]process_action close_receipt done [11:22:29]requested_data is exist [11:22:29]produce_requested_data [11:22:29]requested_item fm.sn is exist - process it [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 11 00 00 [11:22:29]Write to MH i2c: E2 08 00 43 3D 80 11 00 00 00 00 00 00 FA [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 17 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 17 00 43 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [11:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:22:30]wFMCommunicate OK [11:22:30]requested_item fd.num is exist - process it [11:22:30]SAM_PROTO_GetFieldsCounters [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 13 00 00 [11:22:30]Write to MH i2c: E2 08 00 44 3D 80 13 00 00 00 00 00 00 FD [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 62 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 62 00 44 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:30]wFMCommunicate OK [11:22:30]SAM_PROTO_GetFieldsCounters done [11:22:30]requested_item shift.num is exist - process it [11:22:30]requested_item shift.opened is exist - process it [11:22:30]req_shift_opened [11:22:30]FM_GetShiftState [11:22:30]SAM_PROTO_GetShiftState [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 13 01 00 [11:22:30]Write to MH i2c: E2 08 00 45 3D 80 13 01 00 00 00 00 00 FF [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:30]Read from MH i2c: E2 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 0E 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: E2 0E 00 45 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7F [11:22:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:22:30]wFMCommunicate OK [11:22:30]SAM_PROTO_GetShiftState done [11:22:30]FM_GetShiftState done [11:22:30]req_shift_opened done [11:22:30]requested_item shift.open_date is exist - process it [11:22:30]req_shift_open_date [11:22:30]req_shift_open_date done [11:22:30]produce_requested_data done [11:22:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140111,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:22:30]process_action_free close_receipt [11:22:30]json_value_free [11:22:30]json_value_free done [11:22:30]process_json_proto returns [11:22:30]Send response to host [11:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140111,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:22:30]free response buf [11:22:30]execute_script done [11:22:30]execute_script returns [11:22:30]free content buf [11:22:30]Sock 7.Close socket [11:22:30]Sock 7.Thread stoped [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:02]int [11:23:02]Write to MH i2c: 01 00 00 46 3D 83 [11:23:02]*** FLAG_PRN_KEY set [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 46 3D 00 08 00 00 00 FF 0F A0 [11:23:02]state=0 [11:23:02]Key pressed [11:23:02]Feed [11:23:02]Write to MH i2c: D8 00 00 47 3D 5B [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: D8 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: D8 01 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: D8 01 00 47 3D 00 5C [11:23:02]int [11:23:02]Write to MH i2c: 01 00 00 48 3D 85 [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 48 3D 00 48 00 00 00 3C 00 10 [11:23:02]state=2 [11:23:02]Key pressed [11:23:03]int [11:23:03]Write to MH i2c: 01 00 00 49 3D 86 [11:23:03]*** FLAG_PRN_KEY reset [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 49 3D 00 00 00 00 00 F5 0F 91 [11:23:03]state=2 [11:23:03]Stop feed [11:23:04]OFD Sender: No OFD packet to send [11:23:05]accept exits with 10 [11:23:05]New connection [11:23:05]New thread 3066908004 created [11:23:05]Thread 3066764644 joined [11:23:05]Waiting for new connection... [11:23:05] Sock 10.Parse request [11:23:05]Sock 10.Check first char [11:23:05]Sock 10.First char is OK [11:23:05]request: POST /json_proto HTTP/1.0 [11:23:05]Method: POST [11:23:05]URL: /json_proto [11:23:05]Method is POST - this is cgi request [11:23:05]url: /json_proto [11:23:05]query_string will be loaded in cgi processing [11:23:05]execute_cgi json_proto POST (null) [11:23:05]execute_cgi path=json_proto method=POST [11:23:05]POST find Content-Length [11:23:05]Host: 172.17.45.67:8080 [11:23:05]Content-Length: 677 [11:23:05]Content-Type: application/json [11:23:05] [11:23:05]POST finish read [11:23:05]Found Content-Length = 677 [11:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.880, "sum" : 510.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:05]execute_script... [11: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)593967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.880, "sum" : 510.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:05]POST & json_proto [11:23:05]process_json_proto [11:23:05]json parsed OK: [11:23:05]protocol is kg_v1.0 [11:23:05]action value=close_receipt [11:23:05]process_action close_receipt [11:23:05]cmd_close_receipt [11:23:05]MH_GetDate [11:23:05]Write to MH i2c: F0 00 00 4A 3D 76 [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 4A 3D 00 1C CE C5 66 5F 7F 2B 66 03 [11:23:05]GetLastDocTimeStamp 1724239349 [11:23:05]current date 1724239388 [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 4B 3D 80 13 01 00 00 00 00 00 05 [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 4B 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 85 [11:23:05]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [11:23:05]opened+sec_in_day 1724286867 [11:23:05]quantity*price = 51049 [11:23:05]sum+1 = 51051 [11:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.21 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 129 21.08.2024 11:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140112 ФПД: 191386754387752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140112&fm=191386754387752&tin=02508201610067®Number=0000000000092569&sum=51000 [11:23:06]StoreToDocumentArchive [11:23:06]shift 454 fd 140112 [11:23:06]save to /storage/0454/doc_00140112 [11:23:06]save last doc name /storage/0454/doc_00140112 to /storage/kkm_last_doc_name [11:23:06]save OK [11:23:06]Clear old archive folders... [11:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:06]tlvbuf is B6F4D300 [11:23:06]SAM_PROTO_ClearQueue [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 09 00 00 [11:23:06]Write to MH i2c: E2 08 00 58 3D 80 09 00 00 00 00 00 00 07 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 58 3D 00 90 00 09 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_ClearQueue done [11:23:06]KKMCreateOFDPacket [11:23:06]OFDProtocolAddRootSTLVToBuf [11:23:06]FM_MakeSignedData [11:23:06]FM_MakeSignedData [11:23:06]SAM_PROTO_SignData [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 01 02 [11:23:06]Write to MH i2c: E2 08 00 59 3D 80 0D 01 02 00 00 00 00 0F [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 59 3D 00 90 00 0A [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=255 [11:23:06]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 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 1C CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 23 02 00 35 04 06 00 AE [11:23:06]Write to MH i2c: E2 02 01 5A 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 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 1C CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 23 02 00 35 04 06 00 AE 00 00 EF [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 03 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 03 00 5A 3D 00 90 00 0B [11:23:07]RAPDU: 90 00 [11:23:07]wFMCommunicate OK [11:23:07]wFMCommunicate request_size=10 [11:23:07]MH_SAM_APDU [11:23:07]CAPDU: 80 0D 02 02 05 10 B3 82 8F 28 [11:23:07]Write to MH i2c: E2 0D 00 5B 3D 80 0D 02 02 05 00 10 B3 82 8F 28 00 00 18 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 03 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 03 00 5B 3D 00 90 00 0C [11:23:07]RAPDU: 90 00 [11:23:07]wFMCommunicate OK [11:23:07]wFMCommunicate request_size=4 [11:23:07]MH_SAM_APDU [11:23:07]CAPDU: 80 0D 03 02 [11:23:07]Write to MH i2c: E2 08 00 5C 3D 80 0D 03 02 00 00 00 00 14 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 0B 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 0B 00 5C 3D 00 82 25 81 BA 6E 5B 1A BA 90 00 94 [11:23:07]RAPDU: 82 25 81 BA 6E 5B 1A BA 90 00 [11:23:07]wFMCommunicate OK [11:23:07]SAM_PROTO_SignData done [11:23:07]FM_MakeSignedData done [11:23:07]CreateOFDProtocolMessage [11:23:07]wFMCommunicate request_size=4 [11:23:07]MH_SAM_APDU [11:23:07]CAPDU: 80 11 00 00 [11:23:07]Write to MH i2c: E2 08 00 5D 3D 80 11 00 00 00 00 00 00 14 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:07]Read from MH i2c: E2 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 17 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: E2 17 00 5D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [11:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:07]wFMCommunicate OK [11:23:07]CreateOFDProtocolMessage done [11:23:07]OFDSenderStorePacket 140112 [11:23:07]StoreOFDPacket docnum=140112 [11:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 29 E8 07 01 51 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 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 1C CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 23 02 00 35 04 06 00 AE 10 B3 82 8F 28 82 25 81 BA 6E 5B 1A BA [11:23:07]CheckFolder [11:23:07]dirname=/storage/ofd_packets [11:23:07]CheckFolder done [11:23:07]ProducePacketName [11:23:07]name=ofd_packets/00140112 [11:23:07]NVStorageSaveData ofd_packets/00140112 [11:23:07]File name is /storage/ofd_packets/00140112 [11:23:07]Write 301 bytes [11:23:07]NVStorageSaveData done [11:23:07]OFDSenderStorePacket done [11:23:07]KKMCreateOFDPacket done [11:23:07]NVStorageSaveData kkm_last_timestamp [11:23:07]File name is /storage/kkm_last_timestamp [11:23:07]Write 4 bytes [11:23:07]NVStorageSaveData done [11:23:07]ExternCall_PrintAddStr [11:23:07]wPrintStart [11:23:07]Write to MH i2c: 01 00 00 5E 3D 9B [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 5E 3D 00 00 00 00 00 FF 0F B0 [11:23:07]RasterBufferAndPrint [11:23:07]line Счет N : (1)593967 [11:23:07]line ИНН: 02508201610067 [11:23:07]line Контрольно-Кассовый Чек [11:23:07]line ПРОДАЖА [11:23:07]line ТРК (МРК, ГНК) : 51 [11:23:07]line Товар: 2710124500 [11:23:07]line Аи-95-К-5 [11:23:07]line 6.880 * 74.20 [11:23:07]line = 510.50 [11:23:07]line НДС 12% НСП 1% [11:23:07]line > о реализуемом товаре [11:23:07]line ОКРУГЛЕНИЕ: -0.50 [11:23:07]line ИТОГО: 510.00 [11:23:07]line Внесено: 510.00 [11:23:07]line СДАЧА: 0.00 [11:23:07]line НСП 1% : 4.52 [11:23:07]line НДС 12% : 54.21 [11:23:07]line Наличными: 510.00 [11:23:07]line Безнал.: 0.00 [11:23:07]line Место: АЗС № 136 "Партнер Нефть" [11:23:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:23:07]line СНО: Общий режим [11:23:07]line Чек 129 21.08.2024 11:23 [11:23:07]line Смена: 454 ФФД: 1.0 [11:23:07]line ЗНМ: 0300000067 [11:23:07]line РНМ: 0000000000092569 [11:23:07]line Версия ККМ: 001 [11:23:07]line ФМ: 0000000000871776 [11:23:07]line ФД: 140112 [11:23:07]line ФПД: 191386754387752 [11:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140112&fm=191386754387752&tin=02508201610067®Number=0000000000092569&sum=51000 [11:23:07]written 0, free lines is 4095 [11:23:07]OFD Sender: Processing packet 140112 [packets to send 137, broken 136] [11:23:07]ProducePacketName [11:23:07]name=ofd_packets/00140112 [11:23:07]OFD Sender: To server: pG, [11:23:07]CommunicateWithHost lk.salyk.kg:30040 [11:23:07]ConnectInit lk.salyk.kg [11:23:07]Connected sock=9 [11: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 37 36 0F 01 00 00 29 E8 07 01 51 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6A C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 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 1C CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 23 02 00 35 04 06 00 AE 10 B3 82 8F 28 82 25 81 BA 6E 5B 1A BA [11:23: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 37 36 4F 00 00 00 77 23 47 00 3F 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 37 36 10 04 04 00 50 23 02 00 F4 03 04 00 AD 74 C5 66 B6 04 01 00 00 C4 0F F7 74 02 37 A3 CC [11:23:08]CommunicateWithHost err = 0 [11:23:08]CheckOFDResponse [11:23:08]1017 (14) - 77093643461234 [11:23:08]1041 (16) - 0000000000871776 [11:23:08]1040 (4) - 140112 [11:23:08]1012 (4) - 21.08.2024 05:01 [11:23:08]1206 (1) - 0 [11:23:08]OFD Sender: Remove packet 140112 [11:23:08]ProducePacketName [11:23:08]name=ofd_packets/00140112 [11:23:08]NVStorageDeleteData [11:23:08]Write to MH i2c: 01 00 00 89 3D C6 [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 07 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: 01 07 00 89 3D 00 00 00 00 00 E1 0C BA [11:23:08]RasterBufferAndPrint [11:23:08]line [11:23:08]line [11:23:08]line [11:23:08]line [11:23:08]line [11:23:08]written 0, free lines is 3305 [11:23:08]MH_Cut [11:23:08]Write to MH i2c: D1 01 00 90 3D 01 9F [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: D1 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: D1 01 00 [11:23:08]MH_I2C_Read... [11:23:08]Read from MH i2c: D1 01 00 90 3D 00 9E [11:23:08]Write to MH i2c: 01 00 00 91 3D CE [11:23:08]Write i2c OK [11:23:08]MH_I2C_Read... [11:23:08]OFD Sender: No OFD packet to send [11:23:08]*** Cut start [11:23:08]*** Partial cut [11:23:08]*** CUTSNS_PIN = 1 [11:23:08]*** CUTSNS_PIN = 0 [11:23:09]*** Brake cut motor [11:23:09]Read from MH i2c: 01 [11:23:09]MH_I2C_Read... [11:23:09]*** Stop cut motor [11:23:09]*** Cut end [11:23:09]Read from MH i2c: 01 07 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 91 3D 00 00 00 00 00 FF 0F E3 [11:23:09]process_action close_receipt done [11:23:09]requested_data is exist [11:23:09]produce_requested_data [11:23:09]requested_item fm.sn is exist - process it [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 11 00 00 [11:23:09]Write to MH i2c: E2 08 00 92 3D 80 11 00 00 00 00 00 00 49 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 92 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [11:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:09]wFMCommunicate OK [11:23:09]requested_item fd.num is exist - process it [11:23:09]SAM_PROTO_GetFieldsCounters [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 00 00 [11:23:09]Write to MH i2c: E2 08 00 93 3D 80 13 00 00 00 00 00 00 4C [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 93 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetFieldsCounters done [11:23:09]requested_item shift.num is exist - process it [11:23:09]requested_item shift.opened is exist - process it [11:23:09]req_shift_opened [11:23:09]FM_GetShiftState [11:23:09]SAM_PROTO_GetShiftState [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 01 00 [11:23:09]Write to MH i2c: E2 08 00 94 3D 80 13 01 00 00 00 00 00 4E [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 94 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CE [11:23:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetShiftState done [11:23:09]FM_GetShiftState done [11:23:09]req_shift_opened done [11:23:09]requested_item shift.open_date is exist - process it [11:23:09]req_shift_open_date [11:23:09]req_shift_open_date done [11:23:09]produce_requested_data done [11:23:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140112,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:23:09]process_action_free close_receipt [11:23:09]json_value_free [11:23:09]json_value_free done [11:23:09]process_json_proto returns [11:23:09]Send response to host [11:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140112,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:23:09]free response buf [11:23:09]execute_script done [11:23:09]execute_script returns [11:23:09]free content buf [11:23:09]Sock 10.Close socket [11:23:09]Sock 10.Thread stoped [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:28]accept exits with 7 [11:23:28]New connection [11:23:28]New thread 3066764644 created [11:23:28]Thread 3066908004 joined [11:23:28]Waiting for new connection... [11:23:28] Sock 7.Parse request [11:23:28]Sock 7.Check first char [11:23:28]Sock 7.First char is OK [11:23:28]request: POST /json_proto HTTP/1.0 [11:23:28]Method: POST [11:23:28]URL: /json_proto [11:23:28]Method is POST - this is cgi request [11:23:28]url: /json_proto [11:23:28]query_string will be loaded in cgi processing [11:23:28]execute_cgi json_proto POST (null) [11:23:28]execute_cgi path=json_proto method=POST [11:23:28]POST find Content-Length [11:23:28]Host: 172.17.45.67:8080 [11:23:28]Content-Length: 682 [11:23:28]Content-Type: application/json [11:23:28] [11:23:28]POST finish read [11:23:28]Found Content-Length = 682 [11:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:28]execute_script... [11:23: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)593965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.390, "sum" : 2700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:28]POST & json_proto [11:23:28]process_json_proto [11:23:28]json parsed OK: [11:23:28]protocol is kg_v1.0 [11:23:28]action value=close_receipt [11:23:28]process_action close_receipt [11:23:28]cmd_close_receipt [11:23:28]MH_GetDate [11:23:28]Write to MH i2c: F0 00 00 95 3D C1 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: F0 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: F0 09 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: F0 09 00 95 3D 00 34 CE C5 66 5F 7F 2B 66 66 [11:23:28]GetLastDocTimeStamp 1724239388 [11:23:28]current date 1724239412 [11:23:28]FM_GetShiftState [11:23:28]SAM_PROTO_GetShiftState [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 13 01 00 [11:23:28]Write to MH i2c: E2 08 00 96 3D 80 13 01 00 00 00 00 00 50 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0E 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0E 00 96 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D0 [11:23:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:23:28]wFMCommunicate OK [11:23:28]SAM_PROTO_GetShiftState done [11:23:28]FM_GetShiftState done [11:23:28]opened in 1724200467 [11:23:28]opened+sec_in_day 1724286867 [11:23:28]quantity*price = 270013 [11:23:28]sum+1 = 270015 [11:23:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.89 НДС 12% : 286.74 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 130 21.08.2024 11:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140113 ФПД: 182315335303667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140113&fm=182315335303667&tin=02508201610067®Number=0000000000092569&sum=270000 [11:23:29]StoreToDocumentArchive [11:23:29]shift 454 fd 140113 [11:23:29]save to /storage/0454/doc_00140113 [11:23:29]save last doc name /storage/0454/doc_00140113 to /storage/kkm_last_doc_name [11:23:29]save OK [11:23:29]Clear old archive folders... [11:23:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:29]tlvbuf is B6ECF4D0 [11:23:29]SAM_PROTO_ClearQueue [11:23:29]wFMCommunicate request_size=4 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 09 00 00 [11:23:29]Write to MH i2c: E2 08 00 A3 3D 80 09 00 00 00 00 00 00 52 [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:29]Read from MH i2c: E2 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 03 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 03 00 A3 3D 00 90 00 54 [11:23:29]RAPDU: 90 00 [11:23:29]wFMCommunicate OK [11:23:29]SAM_PROTO_ClearQueue done [11:23:29]KKMCreateOFDPacket [11:23:29]OFDProtocolAddRootSTLVToBuf [11:23:29]FM_MakeSignedData [11:23:29]FM_MakeSignedData [11:23:29]SAM_PROTO_SignData [11:23:29]wFMCommunicate request_size=4 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 0D 01 02 [11:23:29]Write to MH i2c: E2 08 00 A4 3D 80 0D 01 02 00 00 00 00 5A [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:29]Read from MH i2c: E2 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 03 00 [11:23:29]MH_I2C_Read... [11:23:29]Read from MH i2c: E2 03 00 A4 3D 00 90 00 55 [11:23:29]RAPDU: 90 00 [11:23:29]wFMCommunicate OK [11:23:29]wFMCommunicate request_size=255 [11:23:29]MH_SAM_APDU [11:23:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 02 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 82 00 00 00 F4 03 04 00 34 CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 23 02 00 35 04 06 00 A5 [11:23:29]Write to MH i2c: E2 02 01 A5 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 02 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 82 00 00 00 F4 03 04 00 34 CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 23 02 00 35 04 06 00 A5 00 00 23 [11:23:29]Write i2c OK [11:23:29]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 03 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 03 00 A5 3D 00 90 00 56 [11:23:30]RAPDU: 90 00 [11:23:30]wFMCommunicate OK [11:23:30]wFMCommunicate request_size=10 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 0D 02 02 05 D0 98 CC 41 F3 [11:23:30]Write to MH i2c: E2 0D 00 A6 3D 80 0D 02 02 05 00 D0 98 CC 41 F3 00 00 CF [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 03 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 03 00 A6 3D 00 90 00 57 [11:23:30]RAPDU: 90 00 [11:23:30]wFMCommunicate OK [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 0D 03 02 [11:23:30]Write to MH i2c: E2 08 00 A7 3D 80 0D 03 02 00 00 00 00 5F [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0B 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0B 00 A7 3D 00 4A 52 67 AC 55 34 75 34 90 00 41 [11:23:30]RAPDU: 4A 52 67 AC 55 34 75 34 90 00 [11:23:30]wFMCommunicate OK [11:23:30]SAM_PROTO_SignData done [11:23:30]FM_MakeSignedData done [11:23:30]CreateOFDProtocolMessage [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 11 00 00 [11:23:30]Write to MH i2c: E2 08 00 A8 3D 80 11 00 00 00 00 00 00 5F [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 17 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 17 00 A8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B6 [11:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:30]wFMCommunicate OK [11:23:30]CreateOFDProtocolMessage done [11:23:30]OFDSenderStorePacket 140113 [11:23:30]StoreOFDPacket docnum=140113 [11:23:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF 02 07 01 3F 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 02 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 82 00 00 00 F4 03 04 00 34 CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 23 02 00 35 04 06 00 A5 D0 98 CC 41 F3 4A 52 67 AC 55 34 75 34 [11:23:30]CheckFolder [11:23:30]dirname=/storage/ofd_packets [11:23:30]CheckFolder done [11:23:30]ProducePacketName [11:23:30]name=ofd_packets/00140113 [11:23:30]NVStorageSaveData ofd_packets/00140113 [11:23:30]File name is /storage/ofd_packets/00140113 [11:23:30]Write 301 bytes [11:23:30]NVStorageSaveData done [11:23:30]OFDSenderStorePacket done [11:23:30]KKMCreateOFDPacket done [11:23:30]NVStorageSaveData kkm_last_timestamp [11:23:30]File name is /storage/kkm_last_timestamp [11:23:30]Write 4 bytes [11:23:30]NVStorageSaveData done [11:23:30]ExternCall_PrintAddStr [11:23:30]wPrintStart [11:23:30]Write to MH i2c: 01 00 00 A9 3D E6 [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 07 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 07 00 A9 3D 00 00 00 00 00 FF 0F FB [11:23:30]RasterBufferAndPrint [11:23:30]line Счет N : (1)593965 [11:23:30]line ИНН: 02508201610067 [11:23:30]line Контрольно-Кассовый Чек [11:23:30]line ПРОДАЖА [11:23:30]line ТРК (МРК, ГНК) : 31 [11:23:30]line Товар: 2710124500 [11:23:30]line Аи-95-К-5 [11:23:30]line 36.390 * 74.20 [11:23:30]line = 2700.14 [11:23:30]line НДС 12% НСП 1% [11:23:30]line > о реализуемом товаре [11:23:30]line ОКРУГЛЕНИЕ: -0.14 [11:23:30]line ИТОГО: 2700.00 [11:23:30]line Внесено: 2700.00 [11:23:30]line СДАЧА: 0.00 [11:23:30]line НСП 1% : 23.89 [11:23:30]line НДС 12% : 286.74 [11:23:30]line Наличными: 2700.00 [11:23:30]line Безнал.: 0.00 [11:23:30]line Место: АЗС № 136 "Партнер Нефть" [11:23:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:23:30]line СНО: Общий режим [11:23:30]line Чек 130 21.08.2024 11:23 [11:23:30]line Смена: 454 ФФД: 1.0 [11:23:30]line ЗНМ: 0300000067 [11:23:30]line РНМ: 0000000000092569 [11:23:30]line Версия ККМ: 001 [11:23:30]line ФМ: 0000000000871776 [11:23:30]line ФД: 140113 [11:23:30]line ФПД: 182315335303667 [11:23:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140113&fm=182315335303667&tin=02508201610067®Number=0000000000092569&sum=270000 [11:23:30]OFD Sender: Processing packet 140113 [packets to send 137, broken 136] [11:23:30]ProducePacketName [11:23:30]name=ofd_packets/00140113 [11:23:30]OFD Sender: To server: pG, [11:23:30]CommunicateWithHost lk.salyk.kg:30040 [11:23:30]ConnectInit lk.salyk.kg [11:23:30]written 0, free lines is 4095 [11:23:30]Connected sock=11 [11:23: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 37 36 0F 01 00 00 FF 02 07 01 3F 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 8E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 02 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 82 00 00 00 F4 03 04 00 34 CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 23 02 00 35 04 06 00 A5 D0 98 CC 41 F3 4A 52 67 AC 55 34 75 34 [11:23: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 37 36 4F 00 00 00 7A C6 47 00 29 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 37 36 10 04 04 00 51 23 02 00 F4 03 04 00 C5 74 C5 66 B6 04 01 00 00 DB 24 43 22 39 CE F8 32 [11:23:31]CommunicateWithHost err = 0 [11:23:31]CheckOFDResponse [11:23:31]1017 (14) - 77093643461234 [11:23:31]1041 (16) - 0000000000871776 [11:23:31]1040 (4) - 140113 [11:23:31]1012 (4) - 21.08.2024 05:01 [11:23:31]1206 (1) - 0 [11:23:31]OFD Sender: Remove packet 140113 [11:23:31]ProducePacketName [11:23:31]name=ofd_packets/00140113 [11:23:31]NVStorageDeleteData [11:23:31]Write to MH i2c: 01 00 00 D4 3D 11 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 07 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: 01 07 00 D4 3D 00 00 00 00 00 E0 0C 04 [11:23:31]RasterBufferAndPrint [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]line [11:23:31]written 0, free lines is 3302 [11:23:31]MH_Cut [11:23:31]Write to MH i2c: D1 01 00 DB 3D 01 EA [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 01 00 [11:23:31]MH_I2C_Read... [11:23:31]Read from MH i2c: D1 01 00 DB 3D 00 E9 [11:23:31]Write to MH i2c: 01 00 00 DC 3D 19 [11:23:31]Write i2c OK [11:23:31]MH_I2C_Read... [11:23:31]OFD Sender: No OFD packet to send [11:23:31]*** Cut start [11:23:31]*** Partial cut [11:23:31]*** CUTSNS_PIN = 1 [11:23:31]*** CUTSNS_PIN = 0 [11:23:32]*** Brake cut motor [11:23:32]Read from MH i2c: 01 [11:23:32]MH_I2C_Read... [11:23:32]*** Stop cut motor [11:23:32]*** Cut end [11:23:32]Read from MH i2c: 01 07 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: 01 07 00 DC 3D 00 00 00 00 00 FF 0F 2E [11:23:32]process_action close_receipt done [11:23:32]requested_data is exist [11:23:32]produce_requested_data [11:23:32]requested_item fm.sn is exist - process it [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 11 00 00 [11:23:32]Write to MH i2c: E2 08 00 DD 3D 80 11 00 00 00 00 00 00 94 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 17 00 DD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [11:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:23:32]wFMCommunicate OK [11:23:32]requested_item fd.num is exist - process it [11:23:32]SAM_PROTO_GetFieldsCounters [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 00 00 [11:23:32]Write to MH i2c: E2 08 00 DE 3D 80 13 00 00 00 00 00 00 97 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 62 00 DE 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetFieldsCounters done [11:23:32]requested_item shift.num is exist - process it [11:23:32]requested_item shift.opened is exist - process it [11:23:32]req_shift_opened [11:23:32]FM_GetShiftState [11:23:32]SAM_PROTO_GetShiftState [11:23:32]wFMCommunicate request_size=4 [11:23:32]MH_SAM_APDU [11:23:32]CAPDU: 80 13 01 00 [11:23:32]Write to MH i2c: E2 08 00 DF 3D 80 13 01 00 00 00 00 00 99 [11:23:32]Write i2c OK [11:23:32]MH_I2C_Read... [11:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:32]Read from MH i2c: E2 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 [11:23:32]MH_I2C_Read... [11:23:32]Read from MH i2c: E2 0E 00 DF 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 19 [11:23:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:23:32]wFMCommunicate OK [11:23:32]SAM_PROTO_GetShiftState done [11:23:32]FM_GetShiftState done [11:23:32]req_shift_opened done [11:23:32]requested_item shift.open_date is exist - process it [11:23:32]req_shift_open_date [11:23:32]req_shift_open_date done [11:23:32]produce_requested_data done [11:23:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140113,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:23:32]process_action_free close_receipt [11:23:32]json_value_free [11:23:32]json_value_free done [11:23:32]process_json_proto returns [11:23:32]Send response to host [11:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140113,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:23:32]free response buf [11:23:32]execute_script done [11:23:32]execute_script returns [11:23:32]free content buf [11:23:32]Sock 7.Close socket [11:23:32]Sock 7.Thread stoped [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:35]accept exits with 9 [11:26:35]New connection [11:26:35]New thread 3066908004 created [11:26:35]Thread 3066764644 joined [11:26:35]Waiting for new connection... [11:26:35] Sock 9.Parse request [11:26:35]Sock 9.Check first char [11:26:35]Sock 9.First char is OK [11:26:35]request: POST /json_proto HTTP/1.0 [11:26:35]Method: POST [11:26:35]URL: /json_proto [11:26:35]Method is POST - this is cgi request [11:26:35]url: /json_proto [11:26:35]query_string will be loaded in cgi processing [11:26:35]execute_cgi json_proto POST (null) [11:26:35]execute_cgi path=json_proto method=POST [11:26:35]POST find Content-Length [11:26:35]Host: 172.17.45.67:8080 [11:26:35]Content-Length: 682 [11:26:35]Content-Type: application/json [11:26:35] [11:26:35]POST finish read [11:26:35]Found Content-Length = 682 [11:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:26:35]execute_script... [11:26: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)593968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:26:35]POST & json_proto [11:26:35]process_json_proto [11:26:35]json parsed OK: [11:26:35]protocol is kg_v1.0 [11:26:35]action value=close_receipt [11:26:35]process_action close_receipt [11:26:35]cmd_close_receipt [11:26:35]MH_GetDate [11:26:35]Write to MH i2c: F0 00 00 E0 3D 0C [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: F0 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: F0 09 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: F0 09 00 E0 3D 00 EE CE C5 66 5F 7F 2B 66 6B [11:26:35]GetLastDocTimeStamp 1724239412 [11:26:35]current date 1724239598 [11:26:35]FM_GetShiftState [11:26:35]SAM_PROTO_GetShiftState [11:26:35]wFMCommunicate request_size=4 [11:26:35]MH_SAM_APDU [11:26:35]CAPDU: 80 13 01 00 [11:26:35]Write to MH i2c: E2 08 00 E1 3D 80 13 01 00 00 00 00 00 9B [11:26:35]Write i2c OK [11:26:35]MH_I2C_Read... [11:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:35]Read from MH i2c: E2 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0E 00 [11:26:35]MH_I2C_Read... [11:26:35]Read from MH i2c: E2 0E 00 E1 3D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1B [11:26:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:26:35]wFMCommunicate OK [11:26:35]SAM_PROTO_GetShiftState done [11:26:35]FM_GetShiftState done [11:26:35]opened in 1724200467 [11:26:35]opened+sec_in_day 1724286867 [11:26:35]quantity*price = 50063 [11:26:35]sum+1 = 50064 [11:26: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 131 21.08.2024 11:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140114 ФПД: 144925425651422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140114&fm=144925425651422&tin=02508201610067®Number=0000000000092569&sum=50000 [11:26:36]StoreToDocumentArchive [11:26:36]shift 454 fd 140114 [11:26:36]save to /storage/0454/doc_00140114 [11:26:36]save last doc name /storage/0454/doc_00140114 to /storage/kkm_last_doc_name [11:26:36]save OK [11:26:36]Clear old archive folders... [11:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:36]tlvbuf is 00B63FE0 [11:26:36]SAM_PROTO_ClearQueue [11:26:36]wFMCommunicate request_size=4 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 09 00 00 [11:26:36]Write to MH i2c: E2 08 00 EE 3D 80 09 00 00 00 00 00 00 9D [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 EE 3D 00 90 00 9F [11:26:36]RAPDU: 90 00 [11:26:36]wFMCommunicate OK [11:26:36]SAM_PROTO_ClearQueue done [11:26:36]KKMCreateOFDPacket [11:26:36]OFDProtocolAddRootSTLVToBuf [11:26:36]FM_MakeSignedData [11:26:36]FM_MakeSignedData [11:26:36]SAM_PROTO_SignData [11:26:36]wFMCommunicate request_size=4 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 0D 01 02 [11:26:36]Write to MH i2c: E2 08 00 EF 3D 80 0D 01 02 00 00 00 00 A5 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:36]Read from MH i2c: E2 03 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 EF 3D 00 90 00 A0 [11:26:36]RAPDU: 90 00 [11:26:36]wFMCommunicate OK [11:26:36]wFMCommunicate request_size=255 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 F4 03 04 00 EE CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 23 02 00 35 04 06 00 [11:26:36]Write to MH i2c: E2 02 01 F0 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 F4 03 04 00 EE CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 23 02 00 35 04 06 00 00 00 4C [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 F0 3D 00 90 00 A1 [11:26:36]RAPDU: 90 00 [11:26:36]wFMCommunicate OK [11:26:36]wFMCommunicate request_size=11 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 0D 02 02 06 83 CF 14 83 CE DE [11:26:36]Write to MH i2c: E2 0E 00 F1 3D 80 0D 02 02 06 00 83 CF 14 83 CE DE 00 00 49 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [11:26:36]RAPDU: 90 00 [11:26:36]wFMCommunicate OK [11:26:36]wFMCommunicate request_size=4 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 0D 03 02 [11:26:36]Write to MH i2c: E2 08 00 F2 3D 80 0D 03 02 00 00 00 00 AA [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 0B 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 0B 00 F2 3D 00 8E A9 A1 6A 2A EE E5 24 90 00 0E [11:26:36]RAPDU: 8E A9 A1 6A 2A EE E5 24 90 00 [11:26:36]wFMCommunicate OK [11:26:36]SAM_PROTO_SignData done [11:26:36]FM_MakeSignedData done [11:26:36]CreateOFDProtocolMessage [11:26:36]wFMCommunicate request_size=4 [11:26:36]MH_SAM_APDU [11:26:36]CAPDU: 80 11 00 00 [11:26:36]Write to MH i2c: E2 08 00 F3 3D 80 11 00 00 00 00 00 00 AA [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:36]Read from MH i2c: E2 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 17 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: E2 17 00 F3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 01 [11:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:26:36]wFMCommunicate OK [11:26:36]CreateOFDProtocolMessage done [11:26:36]OFDSenderStorePacket 140114 [11:26:36]StoreOFDPacket docnum=140114 [11:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 91 1F 08 01 51 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 F4 03 04 00 EE CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 23 02 00 35 04 06 00 83 CF 14 83 CE DE 8E A9 A1 6A 2A EE E5 24 [11:26:36]CheckFolder [11:26:36]dirname=/storage/ofd_packets [11:26:36]CheckFolder done [11:26:36]ProducePacketName [11:26:36]name=ofd_packets/00140114 [11:26:36]NVStorageSaveData ofd_packets/00140114 [11:26:36]File name is /storage/ofd_packets/00140114 [11:26:36]Write 302 bytes [11:26:36]NVStorageSaveData done [11:26:36]OFDSenderStorePacket done [11:26:36]KKMCreateOFDPacket done [11:26:36]NVStorageSaveData kkm_last_timestamp [11:26:36]File name is /storage/kkm_last_timestamp [11:26:36]Write 4 bytes [11:26:36]NVStorageSaveData done [11:26:36]ExternCall_PrintAddStr [11:26:36]wPrintStart [11:26:36]Write to MH i2c: 01 00 00 F4 3D 31 [11:26:36]Write i2c OK [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 [11:26:36]MH_I2C_Read... [11:26:36]Read from MH i2c: 01 07 00 F4 3D 00 00 00 00 00 FF 0F 46 [11:26:36]RasterBufferAndPrint [11:26:36]line Счет N : (1)593968 [11:26:36]line ИНН: 02508201610067 [11:26:36]line Контрольно-Кассовый Чек [11:26:36]line ПРОДАЖА [11:26:36]line ТРК (МРК, ГНК) : 44 [11:26:36]line Товар: 2710194210 [11:26:36]line ДТ(л)-К-5 [11:26:36]line 6.570 * 76.20 [11:26:36]line = 500.63 [11:26:36]line НДС 12% НСП 1% [11:26:36]line > о реализуемом товаре [11:26:36]line ОКРУГЛЕНИЕ: -0.63 [11:26:36]line ИТОГО: 500.00 [11:26:36]line Внесено: 500.00 [11:26:36]line СДАЧА: 0.00 [11:26:36]line НСП 1% : 4.43 [11:26:36]line НДС 12% : 53.16 [11:26:36]line Наличными: 500.00 [11:26:36]line Безнал.: 0.00 [11:26:36]line Место: АЗС № 136 "Партнер Нефть" [11:26:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:26:36]line СНО: Общий режим [11:26:36]line Чек 131 21.08.2024 11:26 [11:26:36]line Смена: 454 ФФД: 1.0 [11:26:36]line ЗНМ: 0300000067 [11:26:36]line РНМ: 0000000000092569 [11:26:36]line Версия ККМ: 001 [11:26:36]line ФМ: 0000000000871776 [11:26:36]line ФД: 140114 [11:26:36]line ФПД: 144925425651422 [11:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112638&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140114&fm=144925425651422&tin=02508201610067®Number=0000000000092569&sum=50000 [11:26:36]written 0, free lines is 4095 [11:26:36]OFD Sender: Processing packet 140114 [packets to send 137, broken 136] [11:26:36]ProducePacketName [11:26:36]name=ofd_packets/00140114 [11:26:36]OFD Sender: To server: pG, [11:26:36]CommunicateWithHost lk.salyk.kg:30040 [11:26:36]ConnectInit lk.salyk.kg [11:26:37]Connected sock=10 [11:26: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 37 36 10 01 00 00 91 1F 08 01 51 68 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 F4 03 04 00 EE CE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 23 02 00 35 04 06 00 83 CF 14 83 CE DE 8E A9 A1 6A 2A EE E5 24 [11:26:37]Write to MH i2c: 01 00 00 1F 3E 5D [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: 01 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: 01 07 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: 01 07 00 1F 3E 00 00 00 00 00 D9 0C 49 [11:26:37]RasterBufferAndPrint [11:26:37]line [11:26:37]line [11:26:37]line [11:26:37]line [11:26:37]line [11:26:37]written 0, free lines is 3297 [11:26:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 37 CC 47 00 3C 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 37 36 10 04 04 00 52 23 02 00 F4 03 04 00 7F 75 C5 66 B6 04 01 00 00 9B C4 B0 52 0A 0D 4B CA [11:26:37]CommunicateWithHost err = 0 [11:26:37]CheckOFDResponse [11:26:37]1017 (14) - 77093643461234 [11:26:37]1041 (16) - 0000000000871776 [11:26:37]1040 (4) - 140114 [11:26:37]1012 (4) - 21.08.2024 05:05 [11:26:37]1206 (1) - 0 [11:26:37]OFD Sender: Remove packet 140114 [11:26:37]ProducePacketName [11:26:37]name=ofd_packets/00140114 [11:26:37]NVStorageDeleteData [11:26:37]MH_Cut [11:26:37]Write to MH i2c: D1 01 00 26 3E 01 36 [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: D1 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: D1 01 00 [11:26:37]MH_I2C_Read... [11:26:37]Read from MH i2c: D1 01 00 26 3E 00 35 [11:26:37]Write to MH i2c: 01 00 00 27 3E 65 [11:26:37]Write i2c OK [11:26:37]MH_I2C_Read... [11:26:37]OFD Sender: No OFD packet to send [11:26:38]*** Cut start [11:26:38]*** Partial cut [11:26:38]*** CUTSNS_PIN = 1 [11:26:38]*** CUTSNS_PIN = 0 [11:26:38]*** Brake cut motor [11:26:38]Read from MH i2c: 01 [11:26:38]MH_I2C_Read... [11:26:38]*** Stop cut motor [11:26:38]*** Cut end [11:26:38]Read from MH i2c: 01 07 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: 01 07 00 27 3E 00 00 00 00 00 FF 0F 7A [11:26:38]process_action close_receipt done [11:26:38]requested_data is exist [11:26:38]produce_requested_data [11:26:38]requested_item fm.sn is exist - process it [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 11 00 00 [11:26:38]Write to MH i2c: E2 08 00 28 3E 80 11 00 00 00 00 00 00 E0 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 17 00 28 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 37 [11:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:26:38]wFMCommunicate OK [11:26:38]requested_item fd.num is exist - process it [11:26:38]SAM_PROTO_GetFieldsCounters [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 00 00 [11:26:38]Write to MH i2c: E2 08 00 29 3E 80 13 00 00 00 00 00 00 E3 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 62 00 29 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetFieldsCounters done [11:26:38]requested_item shift.num is exist - process it [11:26:38]requested_item shift.opened is exist - process it [11:26:38]req_shift_opened [11:26:38]FM_GetShiftState [11:26:38]SAM_PROTO_GetShiftState [11:26:38]wFMCommunicate request_size=4 [11:26:38]MH_SAM_APDU [11:26:38]CAPDU: 80 13 01 00 [11:26:38]Write to MH i2c: E2 08 00 2A 3E 80 13 01 00 00 00 00 00 E5 [11:26:38]Write i2c OK [11:26:38]MH_I2C_Read... [11:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:38]Read from MH i2c: E2 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 [11:26:38]MH_I2C_Read... [11:26:38]Read from MH i2c: E2 0E 00 2A 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 65 [11:26:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:26:38]wFMCommunicate OK [11:26:38]SAM_PROTO_GetShiftState done [11:26:38]FM_GetShiftState done [11:26:38]req_shift_opened done [11:26:38]requested_item shift.open_date is exist - process it [11:26:38]req_shift_open_date [11:26:38]req_shift_open_date done [11:26:38]produce_requested_data done [11:26:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140114,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:26:38]process_action_free close_receipt [11:26:38]json_value_free [11:26:38]json_value_free done [11:26:38]process_json_proto returns [11:26:38]Send response to host [11:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140114,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:26:38]free response buf [11:26:38]execute_script done [11:26:38]execute_script returns [11:26:38]free content buf [11:26:38]Sock 9.Close socket [11:26:38]Sock 9.Thread stoped [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:55]accept exits with 7 [11:27:55]New connection [11:27:56]New thread 3066764644 created [11:27:56]Thread 3066908004 joined [11:27:56]Waiting for new connection... [11:27:56] Sock 7.Parse request [11:27:56]Sock 7.Check first char [11:27:56]Sock 7.First char is OK [11:27:56]request: POST /json_proto HTTP/1.0 [11:27:56]Method: POST [11:27:56]URL: /json_proto [11:27:56]Method is POST - this is cgi request [11:27:56]url: /json_proto [11:27:56]query_string will be loaded in cgi processing [11:27:56]execute_cgi json_proto POST (null) [11:27:56]execute_cgi path=json_proto method=POST [11:27:56]POST find Content-Length [11:27:56]Host: 172.17.45.67:8080 [11:27:56]Content-Length: 818 [11:27:56]Content-Type: application/json [11:27:56] [11:27:56]POST finish read [11:27:56]Found Content-Length = 818 [11:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:56]execute_script... [11:27: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)593969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:56]POST & json_proto [11:27:56]process_json_proto [11:27:56]json parsed OK: [11:27:56]protocol is kg_v1.0 [11:27:56]action value=close_receipt [11:27:56]process_action close_receipt [11:27:56]cmd_close_receipt [11:27:56]MH_GetDate [11:27:56]Write to MH i2c: F0 00 00 2B 3E 58 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: F0 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: F0 09 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: F0 09 00 2B 3E 00 3F CF C5 66 5F 7F 2B 66 09 [11:27:56]GetLastDocTimeStamp 1724239598 [11:27:56]current date 1724239679 [11:27:56]FM_GetShiftState [11:27:56]SAM_PROTO_GetShiftState [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 13 01 00 [11:27:56]Write to MH i2c: E2 08 00 2C 3E 80 13 01 00 00 00 00 00 E7 [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 0E 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 0E 00 2C 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 67 [11:27:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:27:56]wFMCommunicate OK [11:27:56]SAM_PROTO_GetShiftState done [11:27:56]FM_GetShiftState done [11:27:56]opened in 1724200467 [11:27:56]opened+sec_in_day 1724286867 [11:27:56]quantity*price = 40002 [11:27:56]sum+1 = 40003 [11:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 132 21.08.2024 11:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140115 ФПД: 95725503708272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112759&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140115&fm=95725503708272&tin=02508201610067®Number=0000000000092569&sum=40000 [11:27:57]StoreToDocumentArchive [11:27:57]shift 454 fd 140115 [11:27:57]save to /storage/0454/doc_00140115 [11:27:57]save last doc name /storage/0454/doc_00140115 to /storage/kkm_last_doc_name [11:27:57]save OK [11:27:57]Clear old archive folders... [11:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:57]tlvbuf is 00ABFD90 [11:27:57]SAM_PROTO_ClearQueue [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 09 00 00 [11:27:57]Write to MH i2c: E2 08 00 39 3E 80 09 00 00 00 00 00 00 E9 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 39 3E 00 90 00 EB [11:27:57]RAPDU: 90 00 [11:27:57]wFMCommunicate OK [11:27:57]SAM_PROTO_ClearQueue done [11:27:57]KKMCreateOFDPacket [11:27:57]OFDProtocolAddRootSTLVToBuf [11:27:57]FM_MakeSignedData [11:27:57]FM_MakeSignedData [11:27:57]SAM_PROTO_SignData [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 0D 01 02 [11:27:57]Write to MH i2c: E2 08 00 3A 3E 80 0D 01 02 00 00 00 00 F1 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 3A 3E 00 90 00 EC [11:27:57]RAPDU: 90 00 [11:27:57]wFMCommunicate OK [11:27:57]wFMCommunicate request_size=255 [11:27:57]MH_SAM_APDU [11:27: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 3F CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 23 02 00 35 04 06 00 57 [11:27:57]Write to MH i2c: E2 02 01 3B 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 3F CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 23 02 00 35 04 06 00 57 00 00 B2 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 3B 3E 00 90 00 ED [11:27:57]RAPDU: 90 00 [11:27:57]wFMCommunicate OK [11:27:57]wFMCommunicate request_size=10 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 0D 02 02 05 0F D4 A4 FC 70 [11:27:57]Write to MH i2c: E2 0D 00 3C 3E 80 0D 02 02 05 00 0F D4 A4 FC 70 00 00 F1 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 03 00 3C 3E 00 90 00 EE [11:27:57]RAPDU: 90 00 [11:27:57]wFMCommunicate OK [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 0D 03 02 [11:27:57]Write to MH i2c: E2 08 00 3D 3E 80 0D 03 02 00 00 00 00 F6 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 0B 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 0B 00 3D 3E 00 D9 D6 02 9A FA 4E 54 09 90 00 E7 [11:27:57]RAPDU: D9 D6 02 9A FA 4E 54 09 90 00 [11:27:57]wFMCommunicate OK [11:27:57]SAM_PROTO_SignData done [11:27:57]FM_MakeSignedData done [11:27:57]CreateOFDProtocolMessage [11:27:57]wFMCommunicate request_size=4 [11:27:57]MH_SAM_APDU [11:27:57]CAPDU: 80 11 00 00 [11:27:57]Write to MH i2c: E2 08 00 3E 3E 80 11 00 00 00 00 00 00 F6 [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:57]Read from MH i2c: E2 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 17 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: E2 17 00 3E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [11:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:27:57]wFMCommunicate OK [11:27:57]CreateOFDProtocolMessage done [11:27:57]OFDSenderStorePacket 140115 [11:27:57]StoreOFDPacket docnum=140115 [11:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE 78 07 01 13 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 3F CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 23 02 00 35 04 06 00 57 0F D4 A4 FC 70 D9 D6 02 9A FA 4E 54 09 [11:27:57]CheckFolder [11:27:57]dirname=/storage/ofd_packets [11:27:57]CheckFolder done [11:27:57]ProducePacketName [11:27:57]name=ofd_packets/00140115 [11:27:57]NVStorageSaveData ofd_packets/00140115 [11:27:57]File name is /storage/ofd_packets/00140115 [11:27:57]Write 301 bytes [11:27:57]NVStorageSaveData done [11:27:57]OFDSenderStorePacket done [11:27:57]KKMCreateOFDPacket done [11:27:57]NVStorageSaveData kkm_last_timestamp [11:27:57]File name is /storage/kkm_last_timestamp [11:27:57]Write 4 bytes [11:27:57]NVStorageSaveData done [11:27:57]ExternCall_PrintAddStr [11:27:57]wPrintStart [11:27:57]Write to MH i2c: 01 00 00 3F 3E 7D [11:27:57]Write i2c OK [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 07 00 [11:27:57]MH_I2C_Read... [11:27:57]Read from MH i2c: 01 07 00 3F 3E 00 00 00 00 00 FF 0F 92 [11:27:57]RasterBufferAndPrint [11:27:57]line Счет N : (1)593969 [11:27:57]line ИНН: 02508201610067 [11:27:57]line Контрольно-Кассовый Чек [11:27:57]line ПРОДАЖА [11:27:57]line ТРК (МРК, ГНК) : 62 [11:27:57]line Товар: 2710124130 [11:27:57]line Аи-92-К-5 [11:27:57]line 5.900 * 67.80 [11:27:57]line = 400.02 [11:27:57]line НДС 12% НСП 1% [11:27:57]line > о реализуемом товаре [11:27:57]line ОКРУГЛЕНИЕ: -0.02 [11:27:57]line ИТОГО: 400.00 [11:27:57]line НСП 1% : 3.54 [11:27:57]line НДС 12% : 42.48 [11:27:57]line Наличными: 0.00 [11:27:57]line Безнал.: 400.00 [11:27:57]line Место: АЗС № 136 "Партнер Нефть" [11:27:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:27:57]line СНО: Общий режим [11:27:57]line Чек 132 21.08.2024 11:27 [11:27:57]line Смена: 454 ФФД: 1.0 [11:27:57]line ЗНМ: 0300000067 [11:27:57]line РНМ: 0000000000092569 [11:27:57]line Версия ККМ: 001 [11:27:57]line Платежная система: O! деньги [11:27:57]line ФМ: 0000000000871776 [11:27:57]line ФД: 140115 [11:27:57]line ФПД: 95725503708272 [11:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112759&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140115&fm=95725503708272&tin=02508201610067®Number=0000000000092569&sum=40000 [11:27:58]written 0, free lines is 4095 [11:27:58]OFD Sender: Processing packet 140115 [packets to send 137, broken 136] [11:27:58]ProducePacketName [11:27:58]name=ofd_packets/00140115 [11:27:58]OFD Sender: To server: pG, [11:27:58]CommunicateWithHost lk.salyk.kg:30040 [11:27:58]ConnectInit lk.salyk.kg [11:27:58]Connected sock=10 [11:27: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 37 36 0F 01 00 00 AE 78 07 01 13 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 3F CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 23 02 00 35 04 06 00 57 0F D4 A4 FC 70 D9 D6 02 9A FA 4E 54 09 [11:27: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 37 36 4F 00 00 00 33 6D 47 00 CE 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 37 36 10 04 04 00 53 23 02 00 F4 03 04 00 D0 75 C5 66 B6 04 01 00 00 A4 01 CE DB 31 1D 4C E7 [11:27:58]CommunicateWithHost err = 0 [11:27:58]CheckOFDResponse [11:27:58]1017 (14) - 77093643461234 [11:27:58]1041 (16) - 0000000000871776 [11:27:58]1040 (4) - 140115 [11:27:58]1012 (4) - 21.08.2024 05:06 [11:27:58]1206 (1) - 0 [11:27:58]OFD Sender: Remove packet 140115 [11:27:58]ProducePacketName [11:27:58]name=ofd_packets/00140115 [11:27:58]NVStorageDeleteData [11:27:58]Write to MH i2c: 01 00 00 6A 3E A8 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: 01 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: 01 07 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: 01 07 00 6A 3E 00 00 00 00 00 DF 0C 9A [11:27:58]RasterBufferAndPrint [11:27:58]line [11:27:58]line [11:27:58]line [11:27:58]line [11:27:58]line [11:27:58]written 0, free lines is 3304 [11:27:58]MH_Cut [11:27:58]Write to MH i2c: D1 01 00 71 3E 01 81 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: D1 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: D1 01 00 [11:27:58]MH_I2C_Read... [11:27:58]Read from MH i2c: D1 01 00 71 3E 00 80 [11:27:58]Write to MH i2c: 01 00 00 72 3E B0 [11:27:58]Write i2c OK [11:27:58]MH_I2C_Read... [11:27:58]OFD Sender: No OFD packet to send [11:27:59]*** Cut start [11:27:59]*** Partial cut [11:27:59]*** CUTSNS_PIN = 1 [11:27:59]*** CUTSNS_PIN = 0 [11:27:59]*** Brake cut motor [11:27:59]Read from MH i2c: 01 [11:27:59]MH_I2C_Read... [11:27:59]*** Stop cut motor [11:27:59]*** Cut end [11:27:59]Read from MH i2c: 01 07 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: 01 07 00 72 3E 00 00 00 00 00 FF 0F C5 [11:27:59]process_action close_receipt done [11:27:59]requested_data is exist [11:27:59]produce_requested_data [11:27:59]requested_item fm.sn is exist - process it [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 11 00 00 [11:27:59]Write to MH i2c: E2 08 00 73 3E 80 11 00 00 00 00 00 00 2B [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:59]Read from MH i2c: E2 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 17 00 [11:27:59]MH_I2C_Read... [11:27:59]Read from MH i2c: E2 17 00 73 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 82 [11:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:27:59]wFMCommunicate OK [11:27:59]requested_item fd.num is exist - process it [11:27:59]SAM_PROTO_GetFieldsCounters [11:27:59]wFMCommunicate request_size=4 [11:27:59]MH_SAM_APDU [11:27:59]CAPDU: 80 13 00 00 [11:27:59]Write to MH i2c: E2 08 00 74 3E 80 13 00 00 00 00 00 00 2E [11:27:59]Write i2c OK [11:27:59]MH_I2C_Read... [11:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:00]Read from MH i2c: E2 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: E2 62 00 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: E2 62 00 74 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [11:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:00]wFMCommunicate OK [11:28:00]SAM_PROTO_GetFieldsCounters done [11:28:00]requested_item shift.num is exist - process it [11:28:00]requested_item shift.opened is exist - process it [11:28:00]req_shift_opened [11:28:00]FM_GetShiftState [11:28:00]SAM_PROTO_GetShiftState [11:28:00]wFMCommunicate request_size=4 [11:28:00]MH_SAM_APDU [11:28:00]CAPDU: 80 13 01 00 [11:28:00]Write to MH i2c: E2 08 00 75 3E 80 13 01 00 00 00 00 00 30 [11:28:00]Write i2c OK [11:28:00]MH_I2C_Read... [11:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:00]Read from MH i2c: E2 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: E2 0E 00 [11:28:00]MH_I2C_Read... [11:28:00]Read from MH i2c: E2 0E 00 75 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B0 [11:28:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:28:00]wFMCommunicate OK [11:28:00]SAM_PROTO_GetShiftState done [11:28:00]FM_GetShiftState done [11:28:00]req_shift_opened done [11:28:00]requested_item shift.open_date is exist - process it [11:28:00]req_shift_open_date [11:28:00]req_shift_open_date done [11:28:00]produce_requested_data done [11:28:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140115,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:28:00]process_action_free close_receipt [11:28:00]json_value_free [11:28:00]json_value_free done [11:28:00]process_json_proto returns [11:28:00]Send response to host [11:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140115,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:28:00]free response buf [11:28:00]execute_script done [11:28:00]execute_script returns [11:28:00]free content buf [11:28:00]Sock 7.Close socket [11:28:00]Sock 7.Thread stoped [11:28:02]accept exits with 9 [11:28:02]New connection [11:28:02]New thread 3066908004 created [11:28:02]Thread 3066764644 joined [11:28:02]Waiting for new connection... [11:28:02] Sock 9.Parse request [11:28:02]Sock 9.Check first char [11:28:02]Sock 9.First char is OK [11:28:02]request: POST /json_proto HTTP/1.0 [11:28:02]Method: POST [11:28:02]URL: /json_proto [11:28:02]Method is POST - this is cgi request [11:28:02]url: /json_proto [11:28:02]query_string will be loaded in cgi processing [11:28:02]execute_cgi json_proto POST (null) [11:28:02]execute_cgi path=json_proto method=POST [11:28:02]POST find Content-Length [11:28:02]Host: 172.17.45.67:8080 [11:28:02]Content-Length: 818 [11:28:02]Content-Type: application/json [11:28:02] [11:28:02]POST finish read [11:28:02]Found Content-Length = 818 [11:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]execute_script... [11:28:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]POST & json_proto [11:28:02]process_json_proto [11:28:02]json parsed OK: [11:28:02]protocol is kg_v1.0 [11:28:02]action value=close_receipt [11:28:02]process_action close_receipt [11:28:02]cmd_close_receipt [11:28:02]MH_GetDate [11:28:02]Write to MH i2c: F0 00 00 76 3E A3 [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 76 3E 00 45 CF C5 66 5F 7F 2B 66 5A [11:28:02]GetLastDocTimeStamp 1724239679 [11:28:02]current date 1724239685 [11:28:02]FM_GetShiftState [11:28:02]SAM_PROTO_GetShiftState [11:28:02]wFMCommunicate request_size=4 [11:28:02]MH_SAM_APDU [11:28:02]CAPDU: 80 13 01 00 [11:28:02]Write to MH i2c: E2 08 00 77 3E 80 13 01 00 00 00 00 00 32 [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 77 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [11:28:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetShiftState done [11:28:02]FM_GetShiftState done [11:28:02]opened in 1724200467 [11:28:02]opened+sec_in_day 1724286867 [11:28:02]quantity*price = 50036 [11:28:02]sum+1 = 50037 [11:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 133 21.08.2024 11:28 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140116 ФПД: 26985664521256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140116&fm=26985664521256&tin=02508201610067®Number=0000000000092569&sum=50000 [11:28:03]StoreToDocumentArchive [11:28:03]shift 454 fd 140116 [11:28:03]save to /storage/0454/doc_00140116 [11:28:03]save last doc name /storage/0454/doc_00140116 to /storage/kkm_last_doc_name [11:28:03]save OK [11:28:03]Clear old archive folders... [11:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:03]tlvbuf is 00B14F30 [11:28:03]SAM_PROTO_ClearQueue [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 09 00 00 [11:28:03]Write to MH i2c: E2 08 00 84 3E 80 09 00 00 00 00 00 00 34 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 84 3E 00 90 00 36 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_ClearQueue done [11:28:03]KKMCreateOFDPacket [11:28:03]OFDProtocolAddRootSTLVToBuf [11:28:03]FM_MakeSignedData [11:28:03]FM_MakeSignedData [11:28:03]SAM_PROTO_SignData [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 01 02 [11:28:03]Write to MH i2c: E2 08 00 85 3E 80 0D 01 02 00 00 00 00 3C [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 85 3E 00 90 00 37 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=255 [11:28:03]MH_SAM_APDU [11:28: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 45 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 23 02 00 35 04 06 00 18 [11:28:03]Write to MH i2c: E2 02 01 86 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 45 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 23 02 00 35 04 06 00 18 00 00 E1 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 86 3E 00 90 00 38 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=10 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 02 02 05 8B 16 F2 A4 28 [11:28:03]Write to MH i2c: E2 0D 00 87 3E 80 0D 02 02 05 00 8B 16 F2 A4 28 00 00 A8 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 87 3E 00 90 00 39 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 03 02 [11:28:03]Write to MH i2c: E2 08 00 88 3E 80 0D 03 02 00 00 00 00 41 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 88 3E 00 12 D3 A2 32 01 27 5D E4 90 00 64 [11:28:03]RAPDU: 12 D3 A2 32 01 27 5D E4 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_SignData done [11:28:03]FM_MakeSignedData done [11:28:03]CreateOFDProtocolMessage [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 11 00 00 [11:28:03]Write to MH i2c: E2 08 00 89 3E 80 11 00 00 00 00 00 00 41 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 89 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [11:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:03]wFMCommunicate OK [11:28:03]CreateOFDProtocolMessage done [11:28:03]OFDSenderStorePacket 140116 [11:28:03]StoreOFDPacket docnum=140116 [11:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB DC 07 01 15 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 45 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 23 02 00 35 04 06 00 18 8B 16 F2 A4 28 12 D3 A2 32 01 27 5D E4 [11:28:03]CheckFolder [11:28:03]dirname=/storage/ofd_packets [11:28:03]CheckFolder done [11:28:03]ProducePacketName [11:28:03]name=ofd_packets/00140116 [11:28:03]NVStorageSaveData ofd_packets/00140116 [11:28:03]File name is /storage/ofd_packets/00140116 [11:28:03]Write 301 bytes [11:28:03]NVStorageSaveData done [11:28:03]OFDSenderStorePacket done [11:28:03]KKMCreateOFDPacket done [11:28:03]NVStorageSaveData kkm_last_timestamp [11:28:03]File name is /storage/kkm_last_timestamp [11:28:03]Write 4 bytes [11:28:03]NVStorageSaveData done [11:28:03]ExternCall_PrintAddStr [11:28:03]wPrintStart [11:28:03]Write to MH i2c: 01 00 00 8A 3E C8 [11:28:03]OFD Sender: Processing packet 140116 [packets to send 137, broken 136] [11:28:03]ProducePacketName [11:28:03]name=ofd_packets/00140116 [11:28:03]OFD Sender: To server: pG, [11:28:03]CommunicateWithHost lk.salyk.kg:30040 [11:28:03]ConnectInit lk.salyk.kg [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 8A 3E 00 00 00 00 00 FF 0F DD [11:28:03]RasterBufferAndPrint [11:28:03]line Счет N : (1)593970 [11:28:03]line ИНН: 02508201610067 [11:28:03]line Контрольно-Кассовый Чек [11:28:03]line ПРОДАЖА [11:28:03]line ТРК (МРК, ГНК) : 32 [11:28:03]line Товар: 2710124130 [11:28:03]line Аи-92-К-5 [11:28:03]line 7.380 * 67.80 [11:28:03]line = 500.36 [11:28:03]line НДС 12% НСП 1% [11:28:03]line > о реализуемом товаре [11:28:03]line ОКРУГЛЕНИЕ: -0.36 [11:28:03]line ИТОГО: 500.00 [11:28:03]line НСП 1% : 4.43 [11:28:03]line НДС 12% : 53.14 [11:28:03]line Наличными: 0.00 [11:28:03]line Безнал.: 500.00 [11:28:03]line Место: АЗС № 136 "Партнер Нефть" [11:28:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:28:03]line СНО: Общий режим [11:28:03]line Чек 133 21.08.2024 11:28 [11:28:03]line Смена: 454 ФФД: 1.0 [11:28:03]line ЗНМ: 0300000067 [11:28:03]line РНМ: 0000000000092569 [11:28:03]line Версия ККМ: 001 [11:28:03]line Платежная система: O! деньги [11:28:03]line ФМ: 0000000000871776 [11:28:03]line ФД: 140116 [11:28:03]line ФПД: 26985664521256 [11:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140116&fm=26985664521256&tin=02508201610067®Number=0000000000092569&sum=50000 [11:28:03]written 0, free lines is 4095 [11:28:04]Connected sock=10 [11:28: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 37 36 0F 01 00 00 EB DC 07 01 15 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 45 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 23 02 00 35 04 06 00 18 8B 16 F2 A4 28 12 D3 A2 32 01 27 5D E4 [11:28: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 37 36 4F 00 00 00 69 3D 47 00 40 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 37 36 10 04 04 00 54 23 02 00 F4 03 04 00 D6 75 C5 66 B6 04 01 00 00 8E 56 FD 63 C4 A6 1A AB [11:28:04]CommunicateWithHost err = 0 [11:28:04]CheckOFDResponse [11:28:04]1017 (14) - 77093643461234 [11:28:04]1041 (16) - 0000000000871776 [11:28:04]1040 (4) - 140116 [11:28:04]1012 (4) - 21.08.2024 05:06 [11:28:04]1206 (1) - 0 [11:28:04]OFD Sender: Remove packet 140116 [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00140116 [11:28:04]NVStorageDeleteData [11:28:04]Write to MH i2c: 01 00 00 B5 3E F3 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 B5 3E 00 00 00 00 00 E0 0C E6 [11:28:04]RasterBufferAndPrint [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]written 0, free lines is 3306 [11:28:04]MH_Cut [11:28:04]Write to MH i2c: D1 01 00 BC 3E 01 CC [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 BC 3E 00 CB [11:28:04]Write to MH i2c: 01 00 00 BD 3E FB [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]OFD Sender: No OFD packet to send [11:28:05]*** Cut start [11:28:05]*** Partial cut [11:28:05]*** CUTSNS_PIN = 1 [11:28:05]*** CUTSNS_PIN = 0 [11:28:05]*** Brake cut motor [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]*** Stop cut motor [11:28:05]*** Cut end [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 BD 3E 00 00 00 00 00 FF 0F 10 [11:28:05]process_action close_receipt done [11:28:05]requested_data is exist [11:28:05]produce_requested_data [11:28:05]requested_item fm.sn is exist - process it [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 11 00 00 [11:28:05]Write to MH i2c: E2 08 00 BE 3E 80 11 00 00 00 00 00 00 76 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:05]Read from MH i2c: E2 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 17 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 17 00 BE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [11:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:28:05]wFMCommunicate OK [11:28:05]requested_item fd.num is exist - process it [11:28:05]SAM_PROTO_GetFieldsCounters [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 13 00 00 [11:28:05]Write to MH i2c: E2 08 00 BF 3E 80 13 00 00 00 00 00 00 79 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:05]Read from MH i2c: E2 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 62 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 62 00 BF 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [11:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:05]wFMCommunicate OK [11:28:05]SAM_PROTO_GetFieldsCounters done [11:28:05]requested_item shift.num is exist - process it [11:28:05]requested_item shift.opened is exist - process it [11:28:05]req_shift_opened [11:28:05]FM_GetShiftState [11:28:05]SAM_PROTO_GetShiftState [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 13 01 00 [11:28:05]Write to MH i2c: E2 08 00 C0 3E 80 13 01 00 00 00 00 00 7B [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:05]Read from MH i2c: E2 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 0E 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 0E 00 C0 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [11:28:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:28:05]wFMCommunicate OK [11:28:05]SAM_PROTO_GetShiftState done [11:28:05]FM_GetShiftState done [11:28:05]req_shift_opened done [11:28:05]requested_item shift.open_date is exist - process it [11:28:05]req_shift_open_date [11:28:05]req_shift_open_date done [11:28:05]produce_requested_data done [11:28:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140116,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:28:05]process_action_free close_receipt [11:28:05]json_value_free [11:28:05]json_value_free done [11:28:05]process_json_proto returns [11:28:05]Send response to host [11:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140116,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:28:05]free response buf [11:28:05]execute_script done [11:28:05]execute_script returns [11:28:05]free content buf [11:28:05]Sock 9.Close socket [11:28:05]Sock 9.Thread stoped [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:41]int [11:28:41]Write to MH i2c: 01 00 00 C1 3E FF [11:28:41]*** FLAG_PRN_KEY set [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 C1 3E 00 08 00 00 00 FF 0F 1C [11:28:41]state=0 [11:28:41]Key pressed [11:28:41]Feed [11:28:41]Write to MH i2c: D8 00 00 C2 3E D7 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: D8 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: D8 01 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: D8 01 00 C2 3E 00 D8 [11:28:41]int [11:28:41]Write to MH i2c: 01 00 00 C3 3E 01 [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 C3 3E 00 48 00 00 00 3C 00 8C [11:28:41]state=2 [11:28:41]Key pressed [11:28:41]int [11:28:41]Write to MH i2c: 01 00 00 C4 3E 02 [11:28:41]*** FLAG_PRN_KEY reset [11:28:41]Write i2c OK [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 [11:28:41]MH_I2C_Read... [11:28:41]Read from MH i2c: 01 07 00 C4 3E 00 00 00 00 00 FB 0F 13 [11:28:41]state=2 [11:28:41]Stop feed [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:47]accept exits with 7 [11:29:47]New connection [11:29:47]New thread 3066764644 created [11:29:47]Thread 3066908004 joined [11:29:47]Waiting for new connection... [11:29:47] Sock 7.Parse request [11:29:47]Sock 7.Check first char [11:29:47]Sock 7.First char is OK [11:29:47]request: POST /json_proto HTTP/1.0 [11:29:47]Method: POST [11:29:47]URL: /json_proto [11:29:47]Method is POST - this is cgi request [11:29:47]url: /json_proto [11:29:47]query_string will be loaded in cgi processing [11:29:47]execute_cgi json_proto POST (null) [11:29:47]execute_cgi path=json_proto method=POST [11:29:47]POST find Content-Length [11:29:47]Host: 172.17.45.67:8080 [11:29:47]Content-Length: 677 [11:29:47]Content-Type: application/json [11:29:47] [11:29:47]POST finish read [11:29:47]Found Content-Length = 677 [11:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:47]execute_script... [11:29:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:47]POST & json_proto [11:29:47]process_json_proto [11:29:47]json parsed OK: [11:29:47]protocol is kg_v1.0 [11:29:47]action value=close_receipt [11:29:47]process_action close_receipt [11:29:47]cmd_close_receipt [11:29:47]MH_GetDate [11:29:47]Write to MH i2c: F0 00 00 C5 3E F2 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 09 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 09 00 C5 3E 00 AE CF C5 66 5F 7F 2B 66 12 [11:29:47]GetLastDocTimeStamp 1724239685 [11:29:47]current date 1724239790 [11:29:47]FM_GetShiftState [11:29:47]SAM_PROTO_GetShiftState [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 13 01 00 [11:29:47]Write to MH i2c: E2 08 00 C6 3E 80 13 01 00 00 00 00 00 81 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 C6 3E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 01 [11:29:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_GetShiftState done [11:29:47]FM_GetShiftState done [11:29:47]opened in 1724200467 [11:29:47]opened+sec_in_day 1724286867 [11:29:47]quantity*price = 50036 [11:29:47]sum+1 = 50037 [11:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 134 21.08.2024 11:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140117 ФПД: 161569067862996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140117&fm=161569067862996&tin=02508201610067®Number=0000000000092569&sum=50000 [11:29:48]StoreToDocumentArchive [11:29:48]shift 454 fd 140117 [11:29:48]save to /storage/0454/doc_00140117 [11:29:48]save last doc name /storage/0454/doc_00140117 to /storage/kkm_last_doc_name [11:29:48]save OK [11:29:48]Clear old archive folders... [11:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:48]tlvbuf is 00ABFED0 [11:29:48]SAM_PROTO_ClearQueue [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 09 00 00 [11:29:48]Write to MH i2c: E2 08 00 D3 3E 80 09 00 00 00 00 00 00 83 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 D3 3E 00 90 00 85 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_ClearQueue done [11:29:48]KKMCreateOFDPacket [11:29:48]OFDProtocolAddRootSTLVToBuf [11:29:48]FM_MakeSignedData [11:29:48]FM_MakeSignedData [11:29:48]SAM_PROTO_SignData [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 01 02 [11:29:48]Write to MH i2c: E2 08 00 D4 3E 80 0D 01 02 00 00 00 00 8B [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 D4 3E 00 90 00 86 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]wFMCommunicate request_size=255 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 23 02 00 35 04 06 00 92 [11:29:48]Write to MH i2c: E2 02 01 D5 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 23 02 00 35 04 06 00 92 00 00 15 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 D5 3E 00 90 00 87 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]wFMCommunicate request_size=10 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 0D 02 02 05 F2 3A E5 8B D4 [11:29:49]Write to MH i2c: E2 0D 00 D6 3E 80 0D 02 02 05 00 F2 3A E5 8B D4 00 00 08 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 D6 3E 00 90 00 88 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 0D 03 02 [11:29:49]Write to MH i2c: E2 08 00 D7 3E 80 0D 03 02 00 00 00 00 90 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0B 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0B 00 D7 3E 00 90 35 4E E5 92 F9 54 45 90 00 AD [11:29:49]RAPDU: 90 35 4E E5 92 F9 54 45 90 00 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_SignData done [11:29:49]FM_MakeSignedData done [11:29:49]CreateOFDProtocolMessage [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 11 00 00 [11:29:49]Write to MH i2c: E2 08 00 D8 3E 80 11 00 00 00 00 00 00 90 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 D8 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [11:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:49]wFMCommunicate OK [11:29:49]CreateOFDProtocolMessage done [11:29:49]OFDSenderStorePacket 140117 [11:29:49]StoreOFDPacket docnum=140117 [11:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 28 7A 07 01 FA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 23 02 00 35 04 06 00 92 F2 3A E5 8B D4 90 35 4E E5 92 F9 54 45 [11:29:49]CheckFolder [11:29:49]dirname=/storage/ofd_packets [11:29:49]CheckFolder done [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00140117 [11:29:49]NVStorageSaveData ofd_packets/00140117 [11:29:49]File name is /storage/ofd_packets/00140117 [11:29:49]Write 301 bytes [11:29:49]NVStorageSaveData done [11:29:49]OFDSenderStorePacket done [11:29:49]KKMCreateOFDPacket done [11:29:49]NVStorageSaveData kkm_last_timestamp [11:29:49]File name is /storage/kkm_last_timestamp [11:29:49]Write 4 bytes [11:29:49]NVStorageSaveData done [11:29:49]ExternCall_PrintAddStr [11:29:49]wPrintStart [11:29:49]Write to MH i2c: 01 00 00 D9 3E 17 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 D9 3E 00 00 00 00 00 FF 0F 2C [11:29:49]RasterBufferAndPrint [11:29:49]line Счет N : (1)593971 [11:29:49]line ИНН: 02508201610067 [11:29:49]line Контрольно-Кассовый Чек [11:29:49]line ПРОДАЖА [11:29:49]line ТРК (МРК, ГНК) : 42 [11:29:49]line Товар: 2710124130 [11:29:49]line Аи-92-К-5 [11:29:49]line 7.380 * 67.80 [11:29:49]line = 500.36 [11:29:49]line НДС 12% НСП 1% [11:29:49]line > о реализуемом товаре [11:29:49]line ОКРУГЛЕНИЕ: -0.36 [11:29:49]line ИТОГО: 500.00 [11:29:49]line Внесено: 500.00 [11:29:49]line СДАЧА: 0.00 [11:29:49]line НСП 1% : 4.43 [11:29:49]line НДС 12% : 53.14 [11:29:49]line Наличными: 500.00 [11:29:49]line Безнал.: 0.00 [11:29:49]line Место: АЗС № 136 "Партнер Нефть" [11:29:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:29:49]line СНО: Общий режим [11:29:49]line Чек 134 21.08.2024 11:29 [11:29:49]line Смена: 454 ФФД: 1.0 [11:29:49]line ЗНМ: 0300000067 [11:29:49]line РНМ: 0000000000092569 [11:29:49]line Версия ККМ: 001 [11:29:49]line ФМ: 0000000000871776 [11:29:49]line ФД: 140117 [11:29:49]line ФПД: 161569067862996 [11:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T112950&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140117&fm=161569067862996&tin=02508201610067®Number=0000000000092569&sum=50000 [11:29:49]written 0, free lines is 4095 [11:29:49]OFD Sender: Processing packet 140117 [packets to send 137, broken 136] [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00140117 [11:29:49]OFD Sender: To server: pG, [11:29:49]CommunicateWithHost lk.salyk.kg:30040 [11:29:49]ConnectInit lk.salyk.kg [11:29:49]Connected sock=10 [11:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 28 7A 07 01 FA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 23 02 00 35 04 06 00 92 F2 3A E5 8B D4 90 35 4E E5 92 F9 54 45 [11:29: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 37 36 4F 00 00 00 89 55 47 00 7B 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 37 36 10 04 04 00 55 23 02 00 F4 03 04 00 3F 76 C5 66 B6 04 01 00 00 3B 3B 72 09 DF A5 E6 7E [11:29:49]CommunicateWithHost err = 0 [11:29:49]CheckOFDResponse [11:29:49]1017 (14) - 77093643461234 [11:29:49]1041 (16) - 0000000000871776 [11:29:49]1040 (4) - 140117 [11:29:49]1012 (4) - 21.08.2024 05:08 [11:29:49]1206 (1) - 0 [11:29:49]OFD Sender: Remove packet 140117 [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00140117 [11:29:49]NVStorageDeleteData [11:29:50]Write to MH i2c: 01 00 00 04 3F 43 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 04 3F 00 00 00 00 00 D6 0C 2C [11:29:50]RasterBufferAndPrint [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]written 0, free lines is 3294 [11:29:50]MH_Cut [11:29:50]Write to MH i2c: D1 01 00 0B 3F 01 1C [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: D1 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: D1 01 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: D1 01 00 0B 3F 00 1B [11:29:50]Write to MH i2c: 01 00 00 0C 3F 4B [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]OFD Sender: No OFD packet to send [11:29:50]*** Cut start [11:29:50]*** Partial cut [11:29:50]*** CUTSNS_PIN = 1 [11:29:50]*** CUTSNS_PIN = 0 [11:29:50]*** Brake cut motor [11:29:51]Read from MH i2c: 01 [11:29:51]MH_I2C_Read... [11:29:51]*** Stop cut motor [11:29:51]*** Cut end [11:29:51]Read from MH i2c: 01 07 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: 01 07 00 0C 3F 00 00 00 00 00 FF 0F 60 [11:29:51]process_action close_receipt done [11:29:51]requested_data is exist [11:29:51]produce_requested_data [11:29:51]requested_item fm.sn is exist - process it [11:29:51]wFMCommunicate request_size=4 [11:29:51]MH_SAM_APDU [11:29:51]CAPDU: 80 11 00 00 [11:29:51]Write to MH i2c: E2 08 00 0D 3F 80 11 00 00 00 00 00 00 C6 [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:51]Read from MH i2c: E2 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 17 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 17 00 0D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [11:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:29:51]wFMCommunicate OK [11:29:51]requested_item fd.num is exist - process it [11:29:51]SAM_PROTO_GetFieldsCounters [11:29:51]wFMCommunicate request_size=4 [11:29:51]MH_SAM_APDU [11:29:51]CAPDU: 80 13 00 00 [11:29:51]Write to MH i2c: E2 08 00 0E 3F 80 13 00 00 00 00 00 00 C9 [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:51]Read from MH i2c: E2 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 62 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 62 00 0E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:51]wFMCommunicate OK [11:29:51]SAM_PROTO_GetFieldsCounters done [11:29:51]requested_item shift.num is exist - process it [11:29:51]requested_item shift.opened is exist - process it [11:29:51]req_shift_opened [11:29:51]FM_GetShiftState [11:29:51]SAM_PROTO_GetShiftState [11:29:51]wFMCommunicate request_size=4 [11:29:51]MH_SAM_APDU [11:29:51]CAPDU: 80 13 01 00 [11:29:51]Write to MH i2c: E2 08 00 0F 3F 80 13 01 00 00 00 00 00 CB [11:29:51]Write i2c OK [11:29:51]MH_I2C_Read... [11:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:51]Read from MH i2c: E2 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 0E 00 [11:29:51]MH_I2C_Read... [11:29:51]Read from MH i2c: E2 0E 00 0F 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4B [11:29:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:29:51]wFMCommunicate OK [11:29:51]SAM_PROTO_GetShiftState done [11:29:51]FM_GetShiftState done [11:29:51]req_shift_opened done [11:29:51]requested_item shift.open_date is exist - process it [11:29:51]req_shift_open_date [11:29:51]req_shift_open_date done [11:29:51]produce_requested_data done [11:29:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140117,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:29:51]process_action_free close_receipt [11:29:51]json_value_free [11:29:51]json_value_free done [11:29:51]process_json_proto returns [11:29:51]Send response to host [11:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140117,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:29:51]free response buf [11:29:51]execute_script done [11:29:51]execute_script returns [11:29:51]free content buf [11:29:51]Sock 7.Close socket [11:29:51]Sock 7.Thread stoped [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:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:30:56]accept exits with 9 [11:30:56]New connection [11:30:56]New thread 3066908004 created [11:30:56]Thread 3066764644 joined [11:30:56]Waiting for new connection... [11:30:56] Sock 9.Parse request [11:30:56]Sock 9.Check first char [11:30:56]Sock 9.First char is OK [11:30:56]request: POST /json_proto HTTP/1.0 [11:30:56]Method: POST [11:30:56]URL: /json_proto [11:30:56]Method is POST - this is cgi request [11:30:56]url: /json_proto [11:30:56]query_string will be loaded in cgi processing [11:30:56]execute_cgi json_proto POST (null) [11:30:56]execute_cgi path=json_proto method=POST [11:30:56]POST find Content-Length [11:30:56]Host: 172.17.45.67:8080 [11:30:56]Content-Length: 677 [11:30:56]Content-Type: application/json [11:30:56] [11:30:56]POST finish read [11:30:56]Found Content-Length = 677 [11:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:30:56]execute_script... [11: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)593972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:30:56]POST & json_proto [11:30:56]process_json_proto [11:30:56]json parsed OK: [11:30:56]protocol is kg_v1.0 [11:30:56]action value=close_receipt [11:30:56]process_action close_receipt [11:30:56]cmd_close_receipt [11:30:56]MH_GetDate [11:30:56]Write to MH i2c: F0 00 00 10 3F 3E [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: F0 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: F0 09 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: F0 09 00 10 3F 00 F3 CF C5 66 5F 7F 2B 66 A3 [11:30:56]GetLastDocTimeStamp 1724239790 [11:30:56]current date 1724239859 [11:30:56]FM_GetShiftState [11:30:56]SAM_PROTO_GetShiftState [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 13 01 00 [11:30:56]Write to MH i2c: E2 08 00 11 3F 80 13 01 00 00 00 00 00 CD [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 11 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4D [11:30:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetShiftState done [11:30:56]FM_GetShiftState done [11:30:56]opened in 1724200467 [11:30:56]opened+sec_in_day 1724286867 [11:30:56]quantity*price = 20001 [11:30:56]sum+1 = 20002 [11:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 135 21.08.2024 11:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140118 ФПД: 62255323974763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113059&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140118&fm=62255323974763&tin=02508201610067®Number=0000000000092569&sum=20000 [11:30:57]StoreToDocumentArchive [11:30:57]shift 454 fd 140118 [11:30:57]save to /storage/0454/doc_00140118 [11:30:57]save last doc name /storage/0454/doc_00140118 to /storage/kkm_last_doc_name [11:30:57]save OK [11:30:57]Clear old archive folders... [11:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:57]tlvbuf is 00B510E0 [11:30:57]SAM_PROTO_ClearQueue [11:30:57]wFMCommunicate request_size=4 [11:30:57]MH_SAM_APDU [11:30:57]CAPDU: 80 09 00 00 [11:30:57]Write to MH i2c: E2 08 00 1E 3F 80 09 00 00 00 00 00 00 CF [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 1E 3F 00 90 00 D1 [11:30:57]RAPDU: 90 00 [11:30:57]wFMCommunicate OK [11:30:57]SAM_PROTO_ClearQueue done [11:30:57]KKMCreateOFDPacket [11:30:57]OFDProtocolAddRootSTLVToBuf [11:30:57]FM_MakeSignedData [11:30:57]FM_MakeSignedData [11:30:57]SAM_PROTO_SignData [11:30:57]wFMCommunicate request_size=4 [11:30:57]MH_SAM_APDU [11:30:57]CAPDU: 80 0D 01 02 [11:30:57]Write to MH i2c: E2 08 00 1F 3F 80 0D 01 02 00 00 00 00 D7 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 1F 3F 00 90 00 D2 [11:30:57]RAPDU: 90 00 [11:30:57]wFMCommunicate OK [11:30:57]wFMCommunicate request_size=255 [11:30:57]MH_SAM_APDU [11:30: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 F3 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 23 02 00 35 04 06 00 38 [11:30:57]Write to MH i2c: E2 02 01 20 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 F3 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 23 02 00 35 04 06 00 38 00 00 50 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 20 3F 00 90 00 D3 [11:30:57]RAPDU: 90 00 [11:30:57]wFMCommunicate OK [11:30:57]wFMCommunicate request_size=10 [11:30:57]MH_SAM_APDU [11:30:57]CAPDU: 80 0D 02 02 05 9E F2 78 8C 6B [11:30:57]Write to MH i2c: E2 0D 00 21 3F 80 0D 02 02 05 00 9E F2 78 8C 6B 00 00 E3 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 03 00 21 3F 00 90 00 D4 [11:30:57]RAPDU: 90 00 [11:30:57]wFMCommunicate OK [11:30:57]wFMCommunicate request_size=4 [11:30:57]MH_SAM_APDU [11:30:57]CAPDU: 80 0D 03 02 [11:30:57]Write to MH i2c: E2 08 00 22 3F 80 0D 03 02 00 00 00 00 DC [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 0B 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 0B 00 22 3F 00 9C 9E EF 80 4C 31 CE E5 90 00 B6 [11:30:57]RAPDU: 9C 9E EF 80 4C 31 CE E5 90 00 [11:30:57]wFMCommunicate OK [11:30:57]SAM_PROTO_SignData done [11:30:57]FM_MakeSignedData done [11:30:57]CreateOFDProtocolMessage [11:30:57]wFMCommunicate request_size=4 [11:30:57]MH_SAM_APDU [11:30:57]CAPDU: 80 11 00 00 [11:30:57]Write to MH i2c: E2 08 00 23 3F 80 11 00 00 00 00 00 00 DC [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:57]Read from MH i2c: E2 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 17 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: E2 17 00 23 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [11:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:30:57]wFMCommunicate OK [11:30:57]CreateOFDProtocolMessage done [11:30:57]OFDSenderStorePacket 140118 [11:30:57]StoreOFDPacket docnum=140118 [11:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 A6 07 01 A4 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 F3 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 23 02 00 35 04 06 00 38 9E F2 78 8C 6B 9C 9E EF 80 4C 31 CE E5 [11:30:57]CheckFolder [11:30:57]dirname=/storage/ofd_packets [11:30:57]CheckFolder done [11:30:57]ProducePacketName [11:30:57]name=ofd_packets/00140118 [11:30:57]NVStorageSaveData ofd_packets/00140118 [11:30:57]File name is /storage/ofd_packets/00140118 [11:30:57]Write 301 bytes [11:30:57]NVStorageSaveData done [11:30:57]OFDSenderStorePacket done [11:30:57]KKMCreateOFDPacket done [11:30:57]NVStorageSaveData kkm_last_timestamp [11:30:57]File name is /storage/kkm_last_timestamp [11:30:57]Write 4 bytes [11:30:57]NVStorageSaveData done [11:30:57]ExternCall_PrintAddStr [11:30:57]wPrintStart [11:30:57]Write to MH i2c: 01 00 00 24 3F 63 [11:30:57]Write i2c OK [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 07 00 [11:30:57]MH_I2C_Read... [11:30:57]Read from MH i2c: 01 07 00 24 3F 00 00 00 00 00 FF 0F 78 [11:30:57]RasterBufferAndPrint [11:30:57]line Счет N : (1)593972 [11:30:57]line ИНН: 02508201610067 [11:30:57]line Контрольно-Кассовый Чек [11:30:57]line ПРОДАЖА [11:30:57]line ТРК (МРК, ГНК) : 52 [11:30:57]line Товар: 2710124130 [11:30:57]line Аи-92-К-5 [11:30:57]line 2.950 * 67.80 [11:30:57]line = 200.01 [11:30:57]line НДС 12% НСП 1% [11:30:57]line > о реализуемом товаре [11:30:57]line ОКРУГЛЕНИЕ: -0.01 [11:30:57]line ИТОГО: 200.00 [11:30:57]line Внесено: 200.00 [11:30:57]line СДАЧА: 0.00 [11:30:57]line НСП 1% : 1.77 [11:30:57]line НДС 12% : 21.24 [11:30:57]line Наличными: 200.00 [11:30:57]line Безнал.: 0.00 [11:30:57]line Место: АЗС № 136 "Партнер Нефть" [11:30:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:30:57]line СНО: Общий режим [11:30:57]line Чек 135 21.08.2024 11:30 [11:30:57]line Смена: 454 ФФД: 1.0 [11:30:57]line ЗНМ: 0300000067 [11:30:57]line РНМ: 0000000000092569 [11:30:57]line Версия ККМ: 001 [11:30:57]line ФМ: 0000000000871776 [11:30:57]line ФД: 140118 [11:30:57]line ФПД: 62255323974763 [11:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113059&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140118&fm=62255323974763&tin=02508201610067®Number=0000000000092569&sum=20000 [11:30:58]written 0, free lines is 4095 [11:30:58]OFD Sender: Processing packet 140118 [packets to send 137, broken 136] [11:30:58]ProducePacketName [11:30:58]name=ofd_packets/00140118 [11:30:58]OFD Sender: To server: pG, [11:30:58]CommunicateWithHost lk.salyk.kg:30040 [11:30:58]ConnectInit lk.salyk.kg [11:30:58]Connected sock=10 [11:30: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 37 36 0F 01 00 00 51 A6 07 01 A4 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 87 00 00 00 F4 03 04 00 F3 CF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 23 02 00 35 04 06 00 38 9E F2 78 8C 6B 9C 9E EF 80 4C 31 CE E5 [11:30: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 37 36 4F 00 00 00 7E 23 47 00 04 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 37 36 10 04 04 00 56 23 02 00 F4 03 04 00 84 76 C5 66 B6 04 01 00 00 0E 25 B0 A7 CE D0 99 AC [11:30:58]CommunicateWithHost err = 0 [11:30:58]CheckOFDResponse [11:30:58]1017 (14) - 77093643461234 [11:30:58]1041 (16) - 0000000000871776 [11:30:58]1040 (4) - 140118 [11:30:58]1012 (4) - 21.08.2024 05:09 [11:30:58]1206 (1) - 0 [11:30:58]OFD Sender: Remove packet 140118 [11:30:58]ProducePacketName [11:30:58]name=ofd_packets/00140118 [11:30:58]NVStorageDeleteData [11:30:58]Write to MH i2c: 01 00 00 4F 3F 8E [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: 01 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: 01 07 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: 01 07 00 4F 3F 00 00 00 00 00 CD 0C 6E [11:30:58]RasterBufferAndPrint [11:30:58]line [11:30:58]line [11:30:58]line [11:30:58]line [11:30:58]line [11:30:58]written 0, free lines is 3283 [11:30:58]MH_Cut [11:30:58]Write to MH i2c: D1 01 00 56 3F 01 67 [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: D1 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: D1 01 00 [11:30:58]MH_I2C_Read... [11:30:58]Read from MH i2c: D1 01 00 56 3F 00 66 [11:30:58]Write to MH i2c: 01 00 00 57 3F 96 [11:30:58]Write i2c OK [11:30:58]MH_I2C_Read... [11:30:59]OFD Sender: No OFD packet to send [11:30:59]*** Cut start [11:30:59]*** Partial cut [11:30:59]*** CUTSNS_PIN = 1 [11:30:59]*** CUTSNS_PIN = 0 [11:30:59]*** Brake cut motor [11:30:59]Read from MH i2c: 01 [11:30:59]MH_I2C_Read... [11:30:59]*** Stop cut motor [11:30:59]*** Cut end [11:30:59]Read from MH i2c: 01 07 00 [11:30:59]MH_I2C_Read... [11:30:59]Read from MH i2c: 01 07 00 57 3F 00 00 00 00 00 FF 0F AB [11:30:59]process_action close_receipt done [11:30:59]requested_data is exist [11:30:59]produce_requested_data [11:30:59]requested_item fm.sn is exist - process it [11:30:59]wFMCommunicate request_size=4 [11:30:59]MH_SAM_APDU [11:30:59]CAPDU: 80 11 00 00 [11:30:59]Write to MH i2c: E2 08 00 58 3F 80 11 00 00 00 00 00 00 11 [11:30:59]Write i2c OK [11:30:59]MH_I2C_Read... [11:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:00]Read from MH i2c: E2 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 17 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 17 00 58 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [11:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:31:00]wFMCommunicate OK [11:31:00]requested_item fd.num is exist - process it [11:31:00]SAM_PROTO_GetFieldsCounters [11:31:00]wFMCommunicate request_size=4 [11:31:00]MH_SAM_APDU [11:31:00]CAPDU: 80 13 00 00 [11:31:00]Write to MH i2c: E2 08 00 59 3F 80 13 00 00 00 00 00 00 14 [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:00]Read from MH i2c: E2 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 62 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 62 00 59 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:00]wFMCommunicate OK [11:31:00]SAM_PROTO_GetFieldsCounters done [11:31:00]requested_item shift.num is exist - process it [11:31:00]requested_item shift.opened is exist - process it [11:31:00]req_shift_opened [11:31:00]FM_GetShiftState [11:31:00]SAM_PROTO_GetShiftState [11:31:00]wFMCommunicate request_size=4 [11:31:00]MH_SAM_APDU [11:31:00]CAPDU: 80 13 01 00 [11:31:00]Write to MH i2c: E2 08 00 5A 3F 80 13 01 00 00 00 00 00 16 [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 [11:31:00]MH_I2C_Read... [11:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:00]Read from MH i2c: E2 0E 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: E2 0E 00 5A 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 96 [11:31:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:31:00]wFMCommunicate OK [11:31:00]SAM_PROTO_GetShiftState done [11:31:00]FM_GetShiftState done [11:31:00]req_shift_opened done [11:31:00]requested_item shift.open_date is exist - process it [11:31:00]req_shift_open_date [11:31:00]req_shift_open_date done [11:31:00]produce_requested_data done [11:31:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140118,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:31:00]process_action_free close_receipt [11:31:00]json_value_free [11:31:00]json_value_free done [11:31:00]process_json_proto returns [11:31:00]Send response to host [11:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140118,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:31:00]free response buf [11:31:00]execute_script done [11:31:00]execute_script returns [11:31:00]free content buf [11:31:00]Sock 9.Close socket [11:31:00]Sock 9.Thread stoped [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:29]accept exits with 7 [11:33:29]New connection [11:33:29]New thread 3066764644 created [11:33:29]Thread 3066908004 joined [11:33:29]Waiting for new connection... [11:33:29] Sock 7.Parse request [11:33:29]Sock 7.Check first char [11:33:29]Sock 7.First char is OK [11:33:29]request: POST /json_proto HTTP/1.0 [11:33:29]Method: POST [11:33:29]URL: /json_proto [11:33:29]Method is POST - this is cgi request [11:33:29]url: /json_proto [11:33:29]query_string will be loaded in cgi processing [11:33:29]execute_cgi json_proto POST (null) [11:33:29]execute_cgi path=json_proto method=POST [11:33:29]POST find Content-Length [11:33:29]Host: 172.17.45.67:8080 [11:33:29]Content-Length: 800 [11:33:29]Content-Type: application/json [11:33:29] [11:33:29]POST finish read [11:33:29]Found Content-Length = 800 [11:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4122398", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:29]execute_script... [11:33: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)593973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4122398", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:29]POST & json_proto [11:33:29]process_json_proto [11:33:29]json parsed OK: [11:33:29]protocol is kg_v1.0 [11:33:29]action value=close_receipt [11:33:29]process_action close_receipt [11:33:29]cmd_close_receipt [11:33:29]MH_GetDate [11:33:29]Write to MH i2c: F0 00 00 5B 3F 89 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: F0 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: F0 09 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: F0 09 00 5B 3F 00 8C D0 C5 66 5F 7F 2B 66 88 [11:33:29]GetLastDocTimeStamp 1724239859 [11:33:29]current date 1724240012 [11:33:29]FM_GetShiftState [11:33:29]SAM_PROTO_GetShiftState [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 01 00 [11:33:29]Write to MH i2c: E2 08 00 5C 3F 80 13 01 00 00 00 00 00 18 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 5C 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [11:33:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetShiftState done [11:33:29]FM_GetShiftState done [11:33:29]opened in 1724200467 [11:33:29]opened+sec_in_day 1724286867 [11:33:29]quantity*price = 0 [11:33:29]sum+1 = 1 [11:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 136 21.08.2024 11:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 4122398 ФМ: 0000000000871776 ФД: 140119 ФПД: 229950925235676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140119&fm=229950925235676&tin=02508201610067®Number=0000000000092569&sum=0 [11:33:30]StoreToDocumentArchive [11:33:30]shift 454 fd 140119 [11:33:30]save to /storage/0454/doc_00140119 [11:33:30]save last doc name /storage/0454/doc_00140119 to /storage/kkm_last_doc_name [11:33:30]save OK [11:33:30]Clear old archive folders... [11:33:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:30]tlvbuf is B6D9D010 [11:33:30]SAM_PROTO_ClearQueue [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 09 00 00 [11:33:30]Write to MH i2c: E2 08 00 69 3F 80 09 00 00 00 00 00 00 1A [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 03 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 03 00 69 3F 00 90 00 1C [11:33:30]RAPDU: 90 00 [11:33:30]wFMCommunicate OK [11:33:30]SAM_PROTO_ClearQueue done [11:33:30]KKMCreateOFDPacket [11:33:30]OFDProtocolAddRootSTLVToBuf [11:33:30]FM_MakeSignedData [11:33:30]FM_MakeSignedData [11:33:30]SAM_PROTO_SignData [11:33:30]wFMCommunicate request_size=4 [11:33:30]MH_SAM_APDU [11:33:30]CAPDU: 80 0D 01 02 [11:33:30]Write to MH i2c: E2 08 00 6A 3F 80 0D 01 02 00 00 00 00 22 [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 03 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 03 00 6A 3F 00 90 00 1D [11:33:30]RAPDU: 90 00 [11:33:30]wFMCommunicate OK [11:33:30]wFMCommunicate request_size=255 [11:33:30]MH_SAM_APDU [11:33: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 8C D0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 23 02 00 35 04 06 00 D1 [11:33:30]Write to MH i2c: E2 02 01 6B 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 8C D0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 23 02 00 35 04 06 00 D1 00 00 90 [11:33:30]Write i2c OK [11:33:30]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 03 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 03 00 6B 3F 00 90 00 1E [11:33:31]RAPDU: 90 00 [11:33:31]wFMCommunicate OK [11:33:31]wFMCommunicate request_size=10 [11:33:31]MH_SAM_APDU [11:33:31]CAPDU: 80 0D 02 02 05 23 9F 36 E5 DC [11:33:31]Write to MH i2c: E2 0D 00 6C 3F 80 0D 02 02 05 00 23 9F 36 E5 DC 00 00 E8 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 03 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 03 00 6C 3F 00 90 00 1F [11:33:31]RAPDU: 90 00 [11:33:31]wFMCommunicate OK [11:33:31]wFMCommunicate request_size=4 [11:33:31]MH_SAM_APDU [11:33:31]CAPDU: 80 0D 03 02 [11:33:31]Write to MH i2c: E2 08 00 6D 3F 80 0D 03 02 00 00 00 00 27 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 0B 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 0B 00 6D 3F 00 86 F1 A1 0C 04 7F 73 FC 90 00 3E [11:33:31]RAPDU: 86 F1 A1 0C 04 7F 73 FC 90 00 [11:33:31]wFMCommunicate OK [11:33:31]SAM_PROTO_SignData done [11:33:31]FM_MakeSignedData done [11:33:31]CreateOFDProtocolMessage [11:33:31]wFMCommunicate request_size=4 [11:33:31]MH_SAM_APDU [11:33:31]CAPDU: 80 11 00 00 [11:33:31]Write to MH i2c: E2 08 00 6E 3F 80 11 00 00 00 00 00 00 27 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:31]Read from MH i2c: E2 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 17 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: E2 17 00 6E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [11:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:33:31]wFMCommunicate OK [11:33:31]CreateOFDProtocolMessage done [11:33:31]OFDSenderStorePacket 140119 [11:33:31]StoreOFDPacket docnum=140119 [11:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 D8 07 01 2D 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 8C D0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 23 02 00 35 04 06 00 D1 23 9F 36 E5 DC 86 F1 A1 0C 04 7F 73 FC [11:33:31]CheckFolder [11:33:31]dirname=/storage/ofd_packets [11:33:31]CheckFolder done [11:33:31]ProducePacketName [11:33:31]name=ofd_packets/00140119 [11:33:31]NVStorageSaveData ofd_packets/00140119 [11:33:31]File name is /storage/ofd_packets/00140119 [11:33:31]Write 301 bytes [11:33:31]NVStorageSaveData done [11:33:31]OFDSenderStorePacket done [11:33:31]KKMCreateOFDPacket done [11:33:31]NVStorageSaveData kkm_last_timestamp [11:33:31]File name is /storage/kkm_last_timestamp [11:33:31]Write 4 bytes [11:33:31]NVStorageSaveData done [11:33:31]ExternCall_PrintAddStr [11:33:31]wPrintStart [11:33:31]Write to MH i2c: 01 00 00 6F 3F AE [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 07 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 07 00 6F 3F 00 00 00 00 00 FF 0F C3 [11:33:31]RasterBufferAndPrint [11:33:31]line Счет N : (1)593973 [11:33:31]line ИНН: 02508201610067 [11:33:31]line Контрольно-Кассовый Чек [11:33:31]line ПРОДАЖА [11:33:31]line ТРК (МРК, ГНК) : 32 [11:33:31]line Товар: 2710124130 [11:33:31]line Аи-92-К-5 [11:33:31]line 10.000 * 0.00 [11:33:31]line = 0.00 [11:33:31]line НДС 12% НСП 1% [11:33:31]line > о реализуемом товаре [11:33:31]line ИТОГО: 0.00 [11:33:31]line НСП 1% : 0.00 [11:33:31]line НДС 12% : 0.00 [11:33:31]line Наличными: 0.00 [11:33:31]line Безнал.: 0.00 [11:33:31]line Место: АЗС № 136 "Партнер Нефть" [11:33:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:33:31]line СНО: Общий режим [11:33:31]line Чек 136 21.08.2024 11:33 [11:33:31]line Смена: 454 ФФД: 1.0 [11:33:31]line ЗНМ: 0300000067 [11:33:31]line РНМ: 0000000000092569 [11:33:31]line Версия ККМ: 001 [11:33:31]line Талоны: Топливные Талоны [11:33:31]line 4122398 [11:33:31]line ФМ: 0000000000871776 [11:33:31]line ФД: 140119 [11:33:31]line ФПД: 229950925235676 [11:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140119&fm=229950925235676&tin=02508201610067®Number=0000000000092569&sum=0 [11:33:31]written 0, free lines is 4095 [11:33:31]OFD Sender: Processing packet 140119 [packets to send 137, broken 136] [11:33:31]ProducePacketName [11:33:31]name=ofd_packets/00140119 [11:33:31]OFD Sender: To server: pG, [11:33:31]CommunicateWithHost lk.salyk.kg:30040 [11:33:31]ConnectInit lk.salyk.kg [11:33:31]Write to MH i2c: 01 00 00 99 3F D8 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 07 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: 01 07 00 99 3F 00 00 00 00 00 DD 0C C8 [11:33:31]RasterBufferAndPrint [11:33:31]line [11:33:31]line [11:33:31]line [11:33:31]line [11:33:31]line [11:33:31]written 0, free lines is 3300 [11:33:31]MH_Cut [11:33:31]Write to MH i2c: D1 01 00 A0 3F 01 B1 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: D1 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: D1 01 00 [11:33:31]MH_I2C_Read... [11:33:31]Read from MH i2c: D1 01 00 A0 3F 00 B0 [11:33:31]Write to MH i2c: 01 00 00 A1 3F E0 [11:33:31]Write i2c OK [11:33:31]MH_I2C_Read... [11:33:31]Connected sock=10 [11:33: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 37 36 0F 01 00 00 91 D8 07 01 2D 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 8C D0 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 23 02 00 35 04 06 00 D1 23 9F 36 E5 DC 86 F1 A1 0C 04 7F 73 FC [11:33: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 37 36 4F 00 00 00 36 AD 47 00 D4 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 37 36 10 04 04 00 57 23 02 00 F4 03 04 00 1D 77 C5 66 B6 04 01 00 00 7A 2C 76 30 78 A3 97 EE [11:33:31]CommunicateWithHost err = 0 [11:33:31]CheckOFDResponse [11:33:31]1017 (14) - 77093643461234 [11:33:31]1041 (16) - 0000000000871776 [11:33:31]1040 (4) - 140119 [11:33:31]1012 (4) - 21.08.2024 05:11 [11:33:31]1206 (1) - 0 [11:33:31]OFD Sender: Remove packet 140119 [11:33:31]ProducePacketName [11:33:31]name=ofd_packets/00140119 [11:33:31]NVStorageDeleteData [11:33:32]*** Cut start [11:33:32]*** Partial cut [11:33:32]*** CUTSNS_PIN = 1 [11:33:32]*** CUTSNS_PIN = 0 [11:33:32]OFD Sender: No OFD packet to send [11:33:32]*** Brake cut motor [11:33:32]Read from MH i2c: 01 [11:33:32]MH_I2C_Read... [11:33:32]*** Stop cut motor [11:33:32]*** Cut end [11:33:32]Read from MH i2c: 01 07 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: 01 07 00 A1 3F 00 00 00 00 00 FF 0F F5 [11:33:32]process_action close_receipt done [11:33:32]requested_data is exist [11:33:32]produce_requested_data [11:33:32]requested_item fm.sn is exist - process it [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 11 00 00 [11:33:32]Write to MH i2c: E2 08 00 A2 3F 80 11 00 00 00 00 00 00 5B [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 17 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 17 00 A2 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [11:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:33:32]wFMCommunicate OK [11:33:32]requested_item fd.num is exist - process it [11:33:32]SAM_PROTO_GetFieldsCounters [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 13 00 00 [11:33:32]Write to MH i2c: E2 08 00 A3 3F 80 13 00 00 00 00 00 00 5E [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 62 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 62 00 A3 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [11:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:33]wFMCommunicate OK [11:33:33]SAM_PROTO_GetFieldsCounters done [11:33:33]requested_item shift.num is exist - process it [11:33:33]requested_item shift.opened is exist - process it [11:33:33]req_shift_opened [11:33:33]FM_GetShiftState [11:33:33]SAM_PROTO_GetShiftState [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 13 01 00 [11:33:33]Write to MH i2c: E2 08 00 A4 3F 80 13 01 00 00 00 00 00 60 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0E 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0E 00 A4 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E0 [11:33:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:33:33]wFMCommunicate OK [11:33:33]SAM_PROTO_GetShiftState done [11:33:33]FM_GetShiftState done [11:33:33]req_shift_opened done [11:33:33]requested_item shift.open_date is exist - process it [11:33:33]req_shift_open_date [11:33:33]req_shift_open_date done [11:33:33]produce_requested_data done [11:33:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140119,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:33:33]process_action_free close_receipt [11:33:33]json_value_free [11:33:33]json_value_free done [11:33:33]process_json_proto returns [11:33:33]Send response to host [11:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140119,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:33:33]free response buf [11:33:33]execute_script done [11:33:33]execute_script returns [11:33:33]free content buf [11:33:33]Sock 7.Close socket [11:33:33]Sock 7.Thread stoped [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:44]accept exits with 9 [11:35:44]New connection [11:35:44]New thread 3066908004 created [11:35:44]Thread 3066764644 joined [11:35:44]Waiting for new connection... [11:35:44] Sock 9.Parse request [11:35:44]Sock 9.Check first char [11:35:44]Sock 9.First char is OK [11:35:44]request: POST /json_proto HTTP/1.0 [11:35:44]Method: POST [11:35:44]URL: /json_proto [11:35:44]Method is POST - this is cgi request [11:35:44]url: /json_proto [11:35:44]query_string will be loaded in cgi processing [11:35:44]execute_cgi json_proto POST (null) [11:35:44]execute_cgi path=json_proto method=POST [11:35:44]POST find Content-Length [11:35:44]Host: 172.17.45.67:8080 [11:35:44]Content-Length: 683 [11:35:44]Content-Type: application/json [11:35:44] [11:35:44]POST finish read [11:35:44]Found Content-Length = 683 [11:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:35:44]execute_script... [11:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:35:44]POST & json_proto [11:35:44]process_json_proto [11:35:44]json parsed OK: [11:35:44]protocol is kg_v1.0 [11:35:44]action value=close_receipt [11:35:44]process_action close_receipt [11:35:44]cmd_close_receipt [11:35:44]MH_GetDate [11:35:44]Write to MH i2c: F0 00 00 A5 3F D3 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 09 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: F0 09 00 A5 3F 00 13 D1 C5 66 5F 7F 2B 66 5A [11:35:44]GetLastDocTimeStamp 1724240012 [11:35:44]current date 1724240147 [11:35:44]FM_GetShiftState [11:35:44]SAM_PROTO_GetShiftState [11:35:44]wFMCommunicate request_size=4 [11:35:44]MH_SAM_APDU [11:35:44]CAPDU: 80 13 01 00 [11:35:44]Write to MH i2c: E2 08 00 A6 3F 80 13 01 00 00 00 00 00 62 [11:35:44]Write i2c OK [11:35:44]MH_I2C_Read... [11:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:44]Read from MH i2c: E2 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 [11:35:44]MH_I2C_Read... [11:35:44]Read from MH i2c: E2 0E 00 A6 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E2 [11:35:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:35:44]wFMCommunicate OK [11:35:44]SAM_PROTO_GetShiftState done [11:35:44]FM_GetShiftState done [11:35:44]opened in 1724200467 [11:35:44]opened+sec_in_day 1724286867 [11:35:44]quantity*price = 90068 [11:35:44]sum+1 = 90069 [11:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 137 21.08.2024 11:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140120 ФПД: 240943178318770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140120&fm=240943178318770&tin=02508201610067®Number=0000000000092569&sum=90000 [11:35:45]StoreToDocumentArchive [11:35:45]shift 454 fd 140120 [11:35:45]save to /storage/0454/doc_00140120 [11:35:45]save last doc name /storage/0454/doc_00140120 to /storage/kkm_last_doc_name [11:35:45]save OK [11:35:45]Clear old archive folders... [11:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:35:45]tlvbuf is 00A549A0 [11:35:45]SAM_PROTO_ClearQueue [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 09 00 00 [11:35:45]Write to MH i2c: E2 08 00 B3 3F 80 09 00 00 00 00 00 00 64 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 B3 3F 00 90 00 66 [11:35:45]RAPDU: 90 00 [11:35:45]wFMCommunicate OK [11:35:45]SAM_PROTO_ClearQueue done [11:35:45]KKMCreateOFDPacket [11:35:45]OFDProtocolAddRootSTLVToBuf [11:35:45]FM_MakeSignedData [11:35:45]FM_MakeSignedData [11:35:45]SAM_PROTO_SignData [11:35:45]wFMCommunicate request_size=4 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 0D 01 02 [11:35:45]Write to MH i2c: E2 08 00 B4 3F 80 0D 01 02 00 00 00 00 6C [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:45]Read from MH i2c: E2 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 [11:35:45]MH_I2C_Read... [11:35:45]Read from MH i2c: E2 03 00 B4 3F 00 90 00 67 [11:35:45]RAPDU: 90 00 [11:35:45]wFMCommunicate OK [11:35:45]wFMCommunicate request_size=255 [11:35:45]MH_SAM_APDU [11:35:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 89 00 00 00 F4 03 04 00 13 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 23 02 00 35 04 06 00 [11:35:45]Write to MH i2c: E2 02 01 B5 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 89 00 00 00 F4 03 04 00 13 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 23 02 00 35 04 06 00 00 00 88 [11:35:45]Write i2c OK [11:35:45]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 B5 3F 00 90 00 68 [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=11 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 02 02 06 DB 22 F4 8E 03 B2 [11:35:46]Write to MH i2c: E2 0E 00 B6 3F 80 0D 02 02 06 00 DB 22 F4 8E 03 B2 00 00 AF [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 03 00 B6 3F 00 90 00 69 [11:35:46]RAPDU: 90 00 [11:35:46]wFMCommunicate OK [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 0D 03 02 [11:35:46]Write to MH i2c: E2 08 00 B7 3F 80 0D 03 02 00 00 00 00 71 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 0B 00 B7 3F 00 AF 5C B0 5C E5 97 9D 1E 90 00 C0 [11:35:46]RAPDU: AF 5C B0 5C E5 97 9D 1E 90 00 [11:35:46]wFMCommunicate OK [11:35:46]SAM_PROTO_SignData done [11:35:46]FM_MakeSignedData done [11:35:46]CreateOFDProtocolMessage [11:35:46]wFMCommunicate request_size=4 [11:35:46]MH_SAM_APDU [11:35:46]CAPDU: 80 11 00 00 [11:35:46]Write to MH i2c: E2 08 00 B8 3F 80 11 00 00 00 00 00 00 71 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:46]Read from MH i2c: E2 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: E2 17 00 B8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [11:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:35:46]wFMCommunicate OK [11:35:46]CreateOFDProtocolMessage done [11:35:46]OFDSenderStorePacket 140120 [11:35:46]StoreOFDPacket docnum=140120 [11:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A8 45 08 01 56 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 89 00 00 00 F4 03 04 00 13 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 23 02 00 35 04 06 00 DB 22 F4 8E 03 B2 AF 5C B0 5C E5 97 9D 1E [11:35:46]CheckFolder [11:35:46]dirname=/storage/ofd_packets [11:35:46]CheckFolder done [11:35:46]ProducePacketName [11:35:46]name=ofd_packets/00140120 [11:35:46]NVStorageSaveData ofd_packets/00140120 [11:35:46]File name is /storage/ofd_packets/00140120 [11:35:46]Write 302 bytes [11:35:46]NVStorageSaveData done [11:35:46]OFDSenderStorePacket done [11:35:46]KKMCreateOFDPacket done [11:35:46]NVStorageSaveData kkm_last_timestamp [11:35:46]File name is /storage/kkm_last_timestamp [11:35:46]Write 4 bytes [11:35:46]NVStorageSaveData done [11:35:46]ExternCall_PrintAddStr [11:35:46]wPrintStart [11:35:46]Write to MH i2c: 01 00 00 B9 3F F8 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 B9 3F 00 00 00 00 00 FF 0F 0D [11:35:46]RasterBufferAndPrint [11:35:46]line Счет N : (1)593974 [11:35:46]line ИНН: 02508201610067 [11:35:46]line Контрольно-Кассовый Чек [11:35:46]line ПРОДАЖА [11:35:46]line ТРК (МРК, ГНК) : 44 [11:35:46]line Товар: 2710194210 [11:35:46]line ДТ(л)-К-5 [11:35:46]line 11.820 * 76.20 [11:35:46]line = 900.68 [11:35:46]line НДС 12% НСП 1% [11:35:46]line > о реализуемом товаре [11:35:46]line ОКРУГЛЕНИЕ: -0.68 [11:35:46]line ИТОГО: 900.00 [11:35:46]line Внесено: 900.00 [11:35:46]line СДАЧА: 0.00 [11:35:46]line НСП 1% : 7.97 [11:35:46]line НДС 12% : 95.65 [11:35:46]line Наличными: 900.00 [11:35:46]line Безнал.: 0.00 [11:35:46]line Место: АЗС № 136 "Партнер Нефть" [11:35:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:35:46]line СНО: Общий режим [11:35:46]line Чек 137 21.08.2024 11:35 [11:35:46]line Смена: 454 ФФД: 1.0 [11:35:46]line ЗНМ: 0300000067 [11:35:46]line РНМ: 0000000000092569 [11:35:46]line Версия ККМ: 001 [11:35:46]line ФМ: 0000000000871776 [11:35:46]line ФД: 140120 [11:35:46]line ФПД: 240943178318770 [11:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140120&fm=240943178318770&tin=02508201610067®Number=0000000000092569&sum=90000 [11:35:46]OFD Sender: Processing packet 140120 [packets to send 137, broken 136] [11:35:46]ProducePacketName [11:35:46]name=ofd_packets/00140120 [11:35:46]OFD Sender: To server: pG, [11:35:46]CommunicateWithHost lk.salyk.kg:30040 [11:35:46]ConnectInit lk.salyk.kg [11:35:46]written 0, free lines is 4095 [11:35:46]Connected sock=11 [11:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A8 45 08 01 56 F7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 89 00 00 00 F4 03 04 00 13 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 23 02 00 35 04 06 00 DB 22 F4 8E 03 B2 AF 5C B0 5C E5 97 9D 1E [11:35:46]Write to MH i2c: 01 00 00 E4 3F 23 [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: 01 07 00 E4 3F 00 00 00 00 00 D9 0C 0F [11:35:46]RasterBufferAndPrint [11:35:46]line [11:35:46]line [11:35:46]line [11:35:46]line [11:35:46]line [11:35:46]written 0, free lines is 3297 [11:35:46]MH_Cut [11:35:46]Write to MH i2c: D1 01 00 EB 3F 01 FC [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: D1 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: D1 01 00 [11:35:46]MH_I2C_Read... [11:35:46]Read from MH i2c: D1 01 00 EB 3F 00 FB [11:35:46]Write to MH i2c: 01 00 00 EC 3F 2B [11:35:46]Write i2c OK [11:35:46]MH_I2C_Read... [11:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8D 80 47 00 19 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 37 36 10 04 04 00 58 23 02 00 F4 03 04 00 A4 77 C5 66 B6 04 01 00 00 DB 2F 49 52 BE C9 B8 B7 [11:35:47]CommunicateWithHost err = 0 [11:35:47]CheckOFDResponse [11:35:47]1017 (14) - 77093643461234 [11:35:47]1041 (16) - 0000000000871776 [11:35:47]1040 (4) - 140120 [11:35:47]1012 (4) - 21.08.2024 05:14 [11:35:47]1206 (1) - 0 [11:35:47]OFD Sender: Remove packet 140120 [11:35:47]ProducePacketName [11:35:47]name=ofd_packets/00140120 [11:35:47]NVStorageDeleteData [11:35:47]OFD Sender: No OFD packet to send [11:35:47]*** Cut start [11:35:47]*** Partial cut [11:35:47]*** CUTSNS_PIN = 1 [11:35:47]*** CUTSNS_PIN = 0 [11:35:47]*** Brake cut motor [11:35:48]Read from MH i2c: 01 [11:35:48]MH_I2C_Read... [11:35:48]*** Stop cut motor [11:35:48]*** Cut end [11:35:48]Read from MH i2c: 01 07 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: 01 07 00 EC 3F 00 00 00 00 00 FF 0F 40 [11:35:48]process_action close_receipt done [11:35:48]requested_data is exist [11:35:48]produce_requested_data [11:35:48]requested_item fm.sn is exist - process it [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 11 00 00 [11:35:48]Write to MH i2c: E2 08 00 ED 3F 80 11 00 00 00 00 00 00 A6 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 17 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 17 00 ED 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [11:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:35:48]wFMCommunicate OK [11:35:48]requested_item fd.num is exist - process it [11:35:48]SAM_PROTO_GetFieldsCounters [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 13 00 00 [11:35:48]Write to MH i2c: E2 08 00 EE 3F 80 13 00 00 00 00 00 00 A9 [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 62 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 62 00 EE 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [11:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:48]wFMCommunicate OK [11:35:48]SAM_PROTO_GetFieldsCounters done [11:35:48]requested_item shift.num is exist - process it [11:35:48]requested_item shift.opened is exist - process it [11:35:48]req_shift_opened [11:35:48]FM_GetShiftState [11:35:48]SAM_PROTO_GetShiftState [11:35:48]wFMCommunicate request_size=4 [11:35:48]MH_SAM_APDU [11:35:48]CAPDU: 80 13 01 00 [11:35:48]Write to MH i2c: E2 08 00 EF 3F 80 13 01 00 00 00 00 00 AB [11:35:48]Write i2c OK [11:35:48]MH_I2C_Read... [11:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:48]Read from MH i2c: E2 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 0E 00 [11:35:48]MH_I2C_Read... [11:35:48]Read from MH i2c: E2 0E 00 EF 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2B [11:35:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:35:48]wFMCommunicate OK [11:35:48]SAM_PROTO_GetShiftState done [11:35:48]FM_GetShiftState done [11:35:48]req_shift_opened done [11:35:48]requested_item shift.open_date is exist - process it [11:35:48]req_shift_open_date [11:35:48]req_shift_open_date done [11:35:48]produce_requested_data done [11:35:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140120,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:35:48]process_action_free close_receipt [11:35:48]json_value_free [11:35:48]json_value_free done [11:35:48]process_json_proto returns [11:35:48]Send response to host [11:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140120,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:35:48]free response buf [11:35:48]execute_script done [11:35:48]execute_script returns [11:35:48]free content buf [11:35:48]Sock 9.Close socket [11:35:48]Sock 9.Thread stoped [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:44]accept exits with 7 [11:38:44]New connection [11:38:44]New thread 3066764644 created [11:38:44] Sock 7.Parse request [11:38:44]Thread 3066908004 joined [11:38:44]Sock 7.Check first char [11:38:44]Waiting for new connection... [11:38:44]Sock 7.First char is OK [11:38:44]request: POST /json_proto HTTP/1.0 [11:38:44]Method: POST [11:38:44]URL: /json_proto [11:38:44]Method is POST - this is cgi request [11:38:44]url: /json_proto [11:38:44]query_string will be loaded in cgi processing [11:38:44]execute_cgi json_proto POST (null) [11:38:44]execute_cgi path=json_proto method=POST [11:38:44]POST find Content-Length [11:38:44]Host: 172.17.45.67:8080 [11:38:44]Content-Length: 677 [11:38:44]Content-Type: application/json [11:38:44] [11:38:44]POST finish read [11:38:44]Found Content-Length = 677 [11:38:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [11:38:44]execute_script... [11:38: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)593975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [11:38:44]POST & json_proto [11:38:44]process_json_proto [11:38:44]json parsed OK: [11:38:44]protocol is kg_v1.0 [11:38:44]action value=close_receipt [11:38:44]process_action close_receipt [11:38:44]cmd_close_receipt [11:38:44]MH_GetDate [11:38:44]Write to MH i2c: F0 00 00 F0 3F 1E [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: F0 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: F0 09 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: F0 09 00 F0 3F 00 C7 D1 C5 66 5F 7F 2B 66 59 [11:38:44]GetLastDocTimeStamp 1724240147 [11:38:44]current date 1724240327 [11:38:44]FM_GetShiftState [11:38:44]SAM_PROTO_GetShiftState [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 13 01 00 [11:38:44]Write to MH i2c: E2 08 00 F1 3F 80 13 01 00 00 00 00 00 AD [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0E 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0E 00 F1 3F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2D [11:38:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_GetShiftState done [11:38:44]FM_GetShiftState done [11:38:44]opened in 1724200467 [11:38:44]opened+sec_in_day 1724286867 [11:38:44]quantity*price = 35052 [11:38:44]sum+1 = 35054 [11:38:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 138 21.08.2024 11:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140121 ФПД: 19819458895613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113847&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140121&fm=19819458895613&tin=02508201610067®Number=0000000000092569&sum=35000 [11:38:45]StoreToDocumentArchive [11:38:45]shift 454 fd 140121 [11:38:45]save to /storage/0454/doc_00140121 [11:38:45]save last doc name /storage/0454/doc_00140121 to /storage/kkm_last_doc_name [11:38:45]save OK [11:38:45]Clear old archive folders... [11:38:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:45]tlvbuf is 00A1B580 [11:38:45]SAM_PROTO_ClearQueue [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 09 00 00 [11:38:45]Write to MH i2c: E2 08 00 FE 3F 80 09 00 00 00 00 00 00 AF [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 FE 3F 00 90 00 B1 [11:38:45]RAPDU: 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_ClearQueue done [11:38:45]KKMCreateOFDPacket [11:38:45]OFDProtocolAddRootSTLVToBuf [11:38:45]FM_MakeSignedData [11:38:45]FM_MakeSignedData [11:38:45]SAM_PROTO_SignData [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 0D 01 02 [11:38:45]Write to MH i2c: E2 08 00 FF 3F 80 0D 01 02 00 00 00 00 B7 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 FF 3F 00 90 00 B2 [11:38:45]RAPDU: 90 00 [11:38:45]wFMCommunicate OK [11:38:45]wFMCommunicate request_size=255 [11:38:45]MH_SAM_APDU [11:38: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 8A 00 00 00 F4 03 04 00 C7 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 23 02 00 35 04 06 00 12 [11:38:45]Write to MH i2c: E2 02 01 00 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 8A 00 00 00 F4 03 04 00 C7 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 23 02 00 35 04 06 00 12 00 00 10 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 00 40 00 90 00 B4 [11:38:45]RAPDU: 90 00 [11:38:45]wFMCommunicate OK [11:38:45]wFMCommunicate request_size=10 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 0D 02 02 05 06 93 CE 9E FD [11:38:45]Write to MH i2c: E2 0D 00 01 40 80 0D 02 02 05 00 06 93 CE 9E FD 00 00 C7 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 03 00 01 40 00 90 00 B5 [11:38:45]RAPDU: 90 00 [11:38:45]wFMCommunicate OK [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 0D 03 02 [11:38:45]Write to MH i2c: E2 08 00 02 40 80 0D 03 02 00 00 00 00 BD [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0B 00 02 40 00 4E 74 79 42 B2 55 E5 13 90 00 3A [11:38:45]RAPDU: 4E 74 79 42 B2 55 E5 13 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_SignData done [11:38:45]FM_MakeSignedData done [11:38:45]CreateOFDProtocolMessage [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 11 00 00 [11:38:45]Write to MH i2c: E2 08 00 03 40 80 11 00 00 00 00 00 00 BD [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 03 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [11:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:38:45]wFMCommunicate OK [11:38:45]CreateOFDProtocolMessage done [11:38:45]OFDSenderStorePacket 140121 [11:38:45]StoreOFDPacket docnum=140121 [11:38:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 E1 07 01 46 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 8A 00 00 00 F4 03 04 00 C7 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 23 02 00 35 04 06 00 12 06 93 CE 9E FD 4E 74 79 42 B2 55 E5 13 [11:38:45]CheckFolder [11:38:45]dirname=/storage/ofd_packets [11:38:45]CheckFolder done [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00140121 [11:38:45]NVStorageSaveData ofd_packets/00140121 [11:38:45]File name is /storage/ofd_packets/00140121 [11:38:45]Write 301 bytes [11:38:45]NVStorageSaveData done [11:38:45]OFDSenderStorePacket done [11:38:45]KKMCreateOFDPacket done [11:38:45]NVStorageSaveData kkm_last_timestamp [11:38:45]File name is /storage/kkm_last_timestamp [11:38:45]Write 4 bytes [11:38:45]NVStorageSaveData done [11:38:45]ExternCall_PrintAddStr [11:38:45]wPrintStart [11:38:45]Write to MH i2c: 01 00 00 04 40 44 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 04 40 00 00 00 00 00 FF 0F 59 [11:38:45]RasterBufferAndPrint [11:38:45]line Счет N : (1)593975 [11:38:45]line ИНН: 02508201610067 [11:38:45]line Контрольно-Кассовый Чек [11:38:45]line ПРОДАЖА [11:38:45]line ТРК (МРК, ГНК) : 32 [11:38:45]line Товар: 2710124130 [11:38:45]line Аи-92-К-5 [11:38:45]line 5.170 * 67.80 [11:38:45]line = 350.53 [11:38:45]line НДС 12% НСП 1% [11:38:45]line > о реализуемом товаре [11:38:45]line ОКРУГЛЕНИЕ: -0.53 [11:38:45]line ИТОГО: 350.00 [11:38:45]line Внесено: 350.00 [11:38:45]line СДАЧА: 0.00 [11:38:45]line НСП 1% : 3.10 [11:38:45]line НДС 12% : 37.22 [11:38:45]line Наличными: 350.00 [11:38:45]line Безнал.: 0.00 [11:38:45]line Место: АЗС № 136 "Партнер Нефть" [11:38:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:38:45]line СНО: Общий режим [11:38:45]line Чек 138 21.08.2024 11:38 [11:38:45]line Смена: 454 ФФД: 1.0 [11:38:45]line ЗНМ: 0300000067 [11:38:45]line РНМ: 0000000000092569 [11:38:45]line Версия ККМ: 001 [11:38:45]line ФМ: 0000000000871776 [11:38:45]line ФД: 140121 [11:38:45]line ФПД: 19819458895613 [11:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113847&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140121&fm=19819458895613&tin=02508201610067®Number=0000000000092569&sum=35000 [11:38:46]written 0, free lines is 4095 [11:38:46]OFD Sender: Processing packet 140121 [packets to send 137, broken 136] [11:38:46]ProducePacketName [11:38:46]name=ofd_packets/00140121 [11:38:46]OFD Sender: To server: pG, [11:38:46]CommunicateWithHost lk.salyk.kg:30040 [11:38:46]ConnectInit lk.salyk.kg [11:38:46]Connected sock=10 [11:38: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 37 36 0F 01 00 00 62 E1 07 01 46 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 8A 00 00 00 F4 03 04 00 C7 D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 23 02 00 35 04 06 00 12 06 93 CE 9E FD 4E 74 79 42 B2 55 E5 13 [11:38: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 37 36 4F 00 00 00 C8 F3 47 00 8C 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 23 02 00 F4 03 04 00 58 78 C5 66 B6 04 01 00 00 70 FC 09 E3 FD E8 C3 55 [11:38:46]CommunicateWithHost err = 0 [11:38:46]CheckOFDResponse [11:38:46]1017 (14) - 77093643461234 [11:38:46]1041 (16) - 0000000000871776 [11:38:46]1040 (4) - 140121 [11:38:46]1012 (4) - 21.08.2024 05:17 [11:38:46]1206 (1) - 0 [11:38:46]OFD Sender: Remove packet 140121 [11:38:46]ProducePacketName [11:38:46]name=ofd_packets/00140121 [11:38:46]NVStorageDeleteData [11:38:46]Write to MH i2c: 01 00 00 2F 40 6F [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 07 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: 01 07 00 2F 40 00 00 00 00 00 D0 0C 52 [11:38:46]RasterBufferAndPrint [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]line [11:38:46]written 0, free lines is 3287 [11:38:46]MH_Cut [11:38:46]Write to MH i2c: D1 01 00 36 40 01 48 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 01 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: D1 01 00 36 40 00 47 [11:38:46]Write to MH i2c: 01 00 00 37 40 77 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:47]OFD Sender: No OFD packet to send [11:38:47]*** Cut start [11:38:47]*** Partial cut [11:38:47]*** CUTSNS_PIN = 1 [11:38:47]*** CUTSNS_PIN = 0 [11:38:47]*** Brake cut motor [11:38:47]Read from MH i2c: 01 [11:38:47]MH_I2C_Read... [11:38:47]*** Stop cut motor [11:38:47]*** Cut end [11:38:47]Read from MH i2c: 01 07 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 37 40 00 00 00 00 00 FF 0F 8C [11:38:47]process_action close_receipt done [11:38:47]requested_data is exist [11:38:47]produce_requested_data [11:38:47]requested_item fm.sn is exist - process it [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 11 00 00 [11:38:47]Write to MH i2c: E2 08 00 38 40 80 11 00 00 00 00 00 00 F2 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 38 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [11:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:38:47]wFMCommunicate OK [11:38:47]requested_item fd.num is exist - process it [11:38:47]SAM_PROTO_GetFieldsCounters [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 13 00 00 [11:38:47]Write to MH i2c: E2 08 00 39 40 80 13 00 00 00 00 00 00 F5 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 62 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 62 00 39 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [11:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_GetFieldsCounters done [11:38:48]requested_item shift.num is exist - process it [11:38:48]requested_item shift.opened is exist - process it [11:38:48]req_shift_opened [11:38:48]FM_GetShiftState [11:38:48]SAM_PROTO_GetShiftState [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 13 01 00 [11:38:48]Write to MH i2c: E2 08 00 3A 40 80 13 01 00 00 00 00 00 F7 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 3A 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 77 [11:38:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_GetShiftState done [11:38:48]FM_GetShiftState done [11:38:48]req_shift_opened done [11:38:48]requested_item shift.open_date is exist - process it [11:38:48]req_shift_open_date [11:38:48]req_shift_open_date done [11:38:48]produce_requested_data done [11:38:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140121,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:38:48]process_action_free close_receipt [11:38:48]json_value_free [11:38:48]json_value_free done [11:38:48]process_json_proto returns [11:38:48]Send response to host [11:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140121,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:38:48]free response buf [11:38:48]execute_script done [11:38:48]execute_script returns [11:38:48]free content buf [11:38:48]Sock 7.Close socket [11:38:48]Sock 7.Thread stoped [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:38]accept exits with 9 [11:39:38]New connection [11:39:38]New thread 3066908004 created [11:39:38]Thread 3066764644 joined [11:39:38]Waiting for new connection... [11:39:38] Sock 9.Parse request [11:39:38]Sock 9.Check first char [11:39:38]Sock 9.First char is OK [11:39:38]request: POST /json_proto HTTP/1.0 [11:39:38]Method: POST [11:39:38]URL: /json_proto [11:39:38]Method is POST - this is cgi request [11:39:38]url: /json_proto [11:39:38]query_string will be loaded in cgi processing [11:39:38]execute_cgi json_proto POST (null) [11:39:38]execute_cgi path=json_proto method=POST [11:39:38]POST find Content-Length [11:39:38]Host: 172.17.45.67:8080 [11:39:38]Content-Length: 677 [11:39:38]Content-Type: application/json [11:39:38] [11:39:38]POST finish read [11:39:38]Found Content-Length = 677 [11:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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:39:38]execute_script... [11:39: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)593976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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:39:38]POST & json_proto [11:39:38]process_json_proto [11:39:38]json parsed OK: [11:39:38]protocol is kg_v1.0 [11:39:38]action value=close_receipt [11:39:38]process_action close_receipt [11:39:38]cmd_close_receipt [11:39:38]MH_GetDate [11:39:38]Write to MH i2c: F0 00 00 3B 40 6A [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 09 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 09 00 3B 40 00 FE D1 C5 66 5F 7F 2B 66 DC [11:39:38]GetLastDocTimeStamp 1724240327 [11:39:38]current date 1724240382 [11:39:38]FM_GetShiftState [11:39:38]SAM_PROTO_GetShiftState [11:39:38]wFMCommunicate request_size=4 [11:39:38]MH_SAM_APDU [11:39:38]CAPDU: 80 13 01 00 [11:39:38]Write to MH i2c: E2 08 00 3C 40 80 13 01 00 00 00 00 00 F9 [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:38]Read from MH i2c: E2 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 3C 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [11:39:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:39:38]wFMCommunicate OK [11:39:38]SAM_PROTO_GetShiftState done [11:39:38]FM_GetShiftState done [11:39:38]opened in 1724200467 [11:39:38]opened+sec_in_day 1724286867 [11:39:38]quantity*price = 25018 [11:39:38]sum+1 = 25019 [11:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 139 21.08.2024 11:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140122 ФПД: 148906664144289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113942&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140122&fm=148906664144289&tin=02508201610067®Number=0000000000092569&sum=25000 [11:39:39]StoreToDocumentArchive [11:39:39]shift 454 fd 140122 [11:39:39]save to /storage/0454/doc_00140122 [11:39:39]save last doc name /storage/0454/doc_00140122 to /storage/kkm_last_doc_name [11:39:39]save OK [11:39:39]Clear old archive folders... [11:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:39]tlvbuf is B6F4D830 [11:39:39]SAM_PROTO_ClearQueue [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 09 00 00 [11:39:39]Write to MH i2c: E2 08 00 49 40 80 09 00 00 00 00 00 00 FB [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 49 40 00 90 00 FD [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_ClearQueue done [11:39:39]KKMCreateOFDPacket [11:39:39]OFDProtocolAddRootSTLVToBuf [11:39:39]FM_MakeSignedData [11:39:39]FM_MakeSignedData [11:39:39]SAM_PROTO_SignData [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 01 02 [11:39:39]Write to MH i2c: E2 08 00 4A 40 80 0D 01 02 00 00 00 00 03 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 4A 40 00 90 00 FE [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]wFMCommunicate request_size=255 [11:39:39]MH_SAM_APDU [11:39: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 8B 00 00 00 F4 03 04 00 FE D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 23 02 00 35 04 06 00 87 [11:39:39]Write to MH i2c: E2 02 01 4B 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 8B 00 00 00 F4 03 04 00 FE D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 23 02 00 35 04 06 00 87 00 00 EC [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 4B 40 00 90 00 FF [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]wFMCommunicate request_size=10 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 0D 02 02 05 6E 08 D2 2D A1 [11:39:40]Write to MH i2c: E2 0D 00 4C 40 80 0D 02 02 05 00 6E 08 D2 2D A1 00 00 26 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 4C 40 00 90 00 00 [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 0D 03 02 [11:39:40]Write to MH i2c: E2 08 00 4D 40 80 0D 03 02 00 00 00 00 08 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0B 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0B 00 4D 40 00 E8 9E B2 9F CF 02 9E 61 90 00 B0 [11:39:40]RAPDU: E8 9E B2 9F CF 02 9E 61 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_SignData done [11:39:40]FM_MakeSignedData done [11:39:40]CreateOFDProtocolMessage [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 11 00 00 [11:39:40]Write to MH i2c: E2 08 00 4E 40 80 11 00 00 00 00 00 00 08 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 4E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [11:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:40]wFMCommunicate OK [11:39:40]CreateOFDProtocolMessage done [11:39:40]OFDSenderStorePacket 140122 [11:39:40]StoreOFDPacket docnum=140122 [11:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 15 77 07 01 2B 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 8B 00 00 00 F4 03 04 00 FE D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 23 02 00 35 04 06 00 87 6E 08 D2 2D A1 E8 9E B2 9F CF 02 9E 61 [11:39:40]CheckFolder [11:39:40]dirname=/storage/ofd_packets [11:39:40]CheckFolder done [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00140122 [11:39:40]NVStorageSaveData ofd_packets/00140122 [11:39:40]File name is /storage/ofd_packets/00140122 [11:39:40]Write 301 bytes [11:39:40]NVStorageSaveData done [11:39:40]OFDSenderStorePacket done [11:39:40]KKMCreateOFDPacket done [11:39:40]NVStorageSaveData kkm_last_timestamp [11:39:40]File name is /storage/kkm_last_timestamp [11:39:40]Write 4 bytes [11:39:40]NVStorageSaveData done [11:39:40]ExternCall_PrintAddStr [11:39:40]wPrintStart [11:39:40]Write to MH i2c: 01 00 00 4F 40 8F [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 4F 40 00 00 00 00 00 FF 0F A4 [11:39:40]RasterBufferAndPrint [11:39:40]line Счет N : (1)593976 [11:39:40]line ИНН: 02508201610067 [11:39:40]line Контрольно-Кассовый Чек [11:39:40]line ПРОДАЖА [11:39:40]line ТРК (МРК, ГНК) : 52 [11:39:40]line Товар: 2710124130 [11:39:40]line Аи-92-К-5 [11:39:40]line 3.690 * 67.80 [11:39:40]line = 250.18 [11:39:40]line НДС 12% НСП 1% [11:39:40]line > о реализуемом товаре [11:39:40]line ОКРУГЛЕНИЕ: -0.18 [11:39:40]line ИТОГО: 250.00 [11:39:40]line Внесено: 250.00 [11:39:40]line СДАЧА: 0.00 [11:39:40]line НСП 1% : 2.21 [11:39:40]line НДС 12% : 26.57 [11:39:40]line Наличными: 250.00 [11:39:40]line Безнал.: 0.00 [11:39:40]line Место: АЗС № 136 "Партнер Нефть" [11:39:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:39:40]line СНО: Общий режим [11:39:40]line Чек 139 21.08.2024 11:39 [11:39:40]line Смена: 454 ФФД: 1.0 [11:39:40]line ЗНМ: 0300000067 [11:39:40]line РНМ: 0000000000092569 [11:39:40]line Версия ККМ: 001 [11:39:40]line ФМ: 0000000000871776 [11:39:40]line ФД: 140122 [11:39:40]line ФПД: 148906664144289 [11:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T113942&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140122&fm=148906664144289&tin=02508201610067®Number=0000000000092569&sum=25000 [11:39:40]written 0, free lines is 4095 [11:39:40]OFD Sender: Processing packet 140122 [packets to send 137, broken 136] [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00140122 [11:39:40]OFD Sender: To server: pG, [11:39:40]CommunicateWithHost lk.salyk.kg:30040 [11:39:40]ConnectInit lk.salyk.kg [11:39:40]Connected sock=10 [11:39: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 37 36 0F 01 00 00 15 77 07 01 2B 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 8B 00 00 00 F4 03 04 00 FE D1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 23 02 00 35 04 06 00 87 6E 08 D2 2D A1 E8 9E B2 9F CF 02 9E 61 [11:39: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 37 36 4F 00 00 00 02 5A 47 00 62 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 37 36 10 04 04 00 5A 23 02 00 F4 03 04 00 8E 78 C5 66 B6 04 01 00 00 91 2C 8C 72 69 2F D1 EB [11:39:41]CommunicateWithHost err = 0 [11:39:41]CheckOFDResponse [11:39:41]1017 (14) - 77093643461234 [11:39:41]1041 (16) - 0000000000871776 [11:39:41]1040 (4) - 140122 [11:39:41]1012 (4) - 21.08.2024 05:18 [11:39:41]1206 (1) - 0 [11:39:41]OFD Sender: Remove packet 140122 [11:39:41]ProducePacketName [11:39:41]name=ofd_packets/00140122 [11:39:41]NVStorageDeleteData [11:39:41]Write to MH i2c: 01 00 00 7A 40 BA [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 7A 40 00 00 00 00 00 D8 0C A5 [11:39:41]RasterBufferAndPrint [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]written 0, free lines is 3297 [11:39:41]MH_Cut [11:39:41]Write to MH i2c: D1 01 00 81 40 01 93 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 01 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 01 00 81 40 00 92 [11:39:41]Write to MH i2c: 01 00 00 82 40 C2 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]OFD Sender: No OFD packet to send [11:39:41]*** Cut start [11:39:41]*** Partial cut [11:39:41]*** CUTSNS_PIN = 1 [11:39:41]*** CUTSNS_PIN = 0 [11:39:42]*** Brake cut motor [11:39:42]Read from MH i2c: 01 [11:39:42]MH_I2C_Read... [11:39:42]*** Stop cut motor [11:39:42]*** Cut end [11:39:42]Read from MH i2c: 01 07 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 82 40 00 00 00 00 00 FF 0F D7 [11:39:42]process_action close_receipt done [11:39:42]requested_data is exist [11:39:42]produce_requested_data [11:39:42]requested_item fm.sn is exist - process it [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 11 00 00 [11:39:42]Write to MH i2c: E2 08 00 83 40 80 11 00 00 00 00 00 00 3D [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 17 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 17 00 83 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [11:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:39:42]wFMCommunicate OK [11:39:42]requested_item fd.num is exist - process it [11:39:42]SAM_PROTO_GetFieldsCounters [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 13 00 00 [11:39:42]Write to MH i2c: E2 08 00 84 40 80 13 00 00 00 00 00 00 40 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 62 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 62 00 84 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [11:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:42]wFMCommunicate OK [11:39:42]SAM_PROTO_GetFieldsCounters done [11:39:42]requested_item shift.num is exist - process it [11:39:42]requested_item shift.opened is exist - process it [11:39:42]req_shift_opened [11:39:42]FM_GetShiftState [11:39:42]SAM_PROTO_GetShiftState [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 13 01 00 [11:39:42]Write to MH i2c: E2 08 00 85 40 80 13 01 00 00 00 00 00 42 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 0E 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 0E 00 85 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C2 [11:39:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:39:42]wFMCommunicate OK [11:39:42]SAM_PROTO_GetShiftState done [11:39:42]FM_GetShiftState done [11:39:42]req_shift_opened done [11:39:42]requested_item shift.open_date is exist - process it [11:39:42]req_shift_open_date [11:39:42]req_shift_open_date done [11:39:42]produce_requested_data done [11:39:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140122,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:39:42]process_action_free close_receipt [11:39:42]json_value_free [11:39:42]json_value_free done [11:39:42]process_json_proto returns [11:39:42]Send response to host [11:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140122,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:39:42]free response buf [11:39:42]execute_script done [11:39:42]execute_script returns [11:39:42]free content buf [11:39:42]Sock 9.Close socket [11:39:42]Sock 9.Thread stoped [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:35]accept exits with 7 [11:42:35]New connection [11:42:35]New thread 3066764644 created [11:42:35]Thread 3066908004 joined [11:42:35]Waiting for new connection... [11:42:35] Sock 7.Parse request [11:42:35]Sock 7.Check first char [11:42:35]Sock 7.First char is OK [11:42:35]request: POST /json_proto HTTP/1.0 [11:42:35]Method: POST [11:42:35]URL: /json_proto [11:42:35]Method is POST - this is cgi request [11:42:35]url: /json_proto [11:42:35]query_string will be loaded in cgi processing [11:42:35]execute_cgi json_proto POST (null) [11:42:35]execute_cgi path=json_proto method=POST [11:42:35]POST find Content-Length [11:42:35]Host: 172.17.45.67:8080 [11:42:35]Content-Length: 678 [11:42:35]Content-Type: application/json [11:42:35] [11:42:35]POST finish read [11:42:35]Found Content-Length = 678 [11:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:35]execute_script... [11:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:35]POST & json_proto [11:42:35]process_json_proto [11:42:35]json parsed OK: [11:42:35]protocol is kg_v1.0 [11:42:35]action value=close_receipt [11:42:35]process_action close_receipt [11:42:35]cmd_close_receipt [11:42:35]MH_GetDate [11:42:35]Write to MH i2c: F0 00 00 86 40 B5 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: F0 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: F0 09 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: F0 09 00 86 40 00 AE D2 C5 66 5F 7F 2B 66 D8 [11:42:35]GetLastDocTimeStamp 1724240382 [11:42:35]current date 1724240558 [11:42:35]FM_GetShiftState [11:42:35]SAM_PROTO_GetShiftState [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 13 01 00 [11:42:35]Write to MH i2c: E2 08 00 87 40 80 13 01 00 00 00 00 00 44 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 0E 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 0E 00 87 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [11:42:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:42:35]wFMCommunicate OK [11:42:35]SAM_PROTO_GetShiftState done [11:42:35]FM_GetShiftState done [11:42:35]opened in 1724200467 [11:42:35]opened+sec_in_day 1724286867 [11:42:35]quantity*price = 80004 [11:42:35]sum+1 = 80005 [11:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 140 21.08.2024 11:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140123 ФПД: 115303746793750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140123&fm=115303746793750&tin=02508201610067®Number=0000000000092569&sum=80000 [11:42:36]StoreToDocumentArchive [11:42:36]shift 454 fd 140123 [11:42:36]save to /storage/0454/doc_00140123 [11:42:36]save last doc name /storage/0454/doc_00140123 to /storage/kkm_last_doc_name [11:42:36]save OK [11:42:36]Clear old archive folders... [11:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:36]tlvbuf is 00A953C0 [11:42:36]SAM_PROTO_ClearQueue [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 09 00 00 [11:42:36]Write to MH i2c: E2 08 00 94 40 80 09 00 00 00 00 00 00 46 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 94 40 00 90 00 48 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_ClearQueue done [11:42:36]KKMCreateOFDPacket [11:42:36]OFDProtocolAddRootSTLVToBuf [11:42:36]FM_MakeSignedData [11:42:36]FM_MakeSignedData [11:42:36]SAM_PROTO_SignData [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 01 02 [11:42:36]Write to MH i2c: E2 08 00 95 40 80 0D 01 02 00 00 00 00 4E [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 95 40 00 90 00 49 [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=255 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 23 02 00 35 04 06 00 68 [11:42:36]Write to MH i2c: E2 02 01 96 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 23 02 00 35 04 06 00 68 00 00 6A [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 96 40 00 90 00 4A [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=10 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 02 02 05 DE 3E DE 71 16 [11:42:36]Write to MH i2c: E2 0D 00 97 40 80 0D 02 02 05 00 DE 3E DE 71 16 00 00 DC [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 03 00 97 40 00 90 00 4B [11:42:36]RAPDU: 90 00 [11:42:36]wFMCommunicate OK [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 0D 03 02 [11:42:36]Write to MH i2c: E2 08 00 98 40 80 0D 03 02 00 00 00 00 53 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 0B 00 98 40 00 19 99 7A C2 FC 4C 75 51 90 00 50 [11:42:36]RAPDU: 19 99 7A C2 FC 4C 75 51 90 00 [11:42:36]wFMCommunicate OK [11:42:36]SAM_PROTO_SignData done [11:42:36]FM_MakeSignedData done [11:42:36]CreateOFDProtocolMessage [11:42:36]wFMCommunicate request_size=4 [11:42:36]MH_SAM_APDU [11:42:36]CAPDU: 80 11 00 00 [11:42:36]Write to MH i2c: E2 08 00 99 40 80 11 00 00 00 00 00 00 53 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:36]Read from MH i2c: E2 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: E2 17 00 99 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [11:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:36]wFMCommunicate OK [11:42:36]CreateOFDProtocolMessage done [11:42:36]OFDSenderStorePacket 140123 [11:42:36]StoreOFDPacket docnum=140123 [11:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 8D 07 01 48 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 23 02 00 35 04 06 00 68 DE 3E DE 71 16 19 99 7A C2 FC 4C 75 51 [11:42:36]CheckFolder [11:42:36]dirname=/storage/ofd_packets [11:42:36]CheckFolder done [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00140123 [11:42:36]NVStorageSaveData ofd_packets/00140123 [11:42:36]File name is /storage/ofd_packets/00140123 [11:42:36]Write 301 bytes [11:42:36]NVStorageSaveData done [11:42:36]OFDSenderStorePacket done [11:42:36]KKMCreateOFDPacket done [11:42:36]NVStorageSaveData kkm_last_timestamp [11:42:36]File name is /storage/kkm_last_timestamp [11:42:36]Write 4 bytes [11:42:36]NVStorageSaveData done [11:42:36]ExternCall_PrintAddStr [11:42:36]wPrintStart [11:42:36]Write to MH i2c: 01 00 00 9A 40 DA [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 9A 40 00 00 00 00 00 FF 0F EF [11:42:36]RasterBufferAndPrint [11:42:36]line Счет N : (1)593977 [11:42:36]line ИНН: 02508201610067 [11:42:36]line Контрольно-Кассовый Чек [11:42:36]line ПРОДАЖА [11:42:36]line ТРК (МРК, ГНК) : 62 [11:42:36]line Товар: 2710124130 [11:42:36]line Аи-92-К-5 [11:42:36]line 11.800 * 67.80 [11:42:36]line = 800.04 [11:42:36]line НДС 12% НСП 1% [11:42:36]line > о реализуемом товаре [11:42:36]line ОКРУГЛЕНИЕ: -0.04 [11:42:36]line ИТОГО: 800.00 [11:42:36]line Внесено: 800.00 [11:42:36]line СДАЧА: 0.00 [11:42:36]line НСП 1% : 7.08 [11:42:36]line НДС 12% : 84.96 [11:42:36]line Наличными: 800.00 [11:42:36]line Безнал.: 0.00 [11:42:36]line Место: АЗС № 136 "Партнер Нефть" [11:42:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:42:36]line СНО: Общий режим [11:42:36]line Чек 140 21.08.2024 11:42 [11:42:36]line Смена: 454 ФФД: 1.0 [11:42:36]line ЗНМ: 0300000067 [11:42:36]line РНМ: 0000000000092569 [11:42:36]line Версия ККМ: 001 [11:42:36]line ФМ: 0000000000871776 [11:42:36]line ФД: 140123 [11:42:36]line ФПД: 115303746793750 [11:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114238&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140123&fm=115303746793750&tin=02508201610067®Number=0000000000092569&sum=80000 [11:42:36]written 0, free lines is 4095 [11:42:36]OFD Sender: Processing packet 140123 [packets to send 137, broken 136] [11:42:36]ProducePacketName [11:42:36]name=ofd_packets/00140123 [11:42:36]OFD Sender: To server: pG, [11:42:36]CommunicateWithHost lk.salyk.kg:30040 [11:42:36]ConnectInit lk.salyk.kg [11:42:36]Connected sock=10 [11:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 98 8D 07 01 48 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 23 02 00 35 04 06 00 68 DE 3E DE 71 16 19 99 7A C2 FC 4C 75 51 [11:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 20 5F 47 00 10 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 37 36 10 04 04 00 5B 23 02 00 F4 03 04 00 3F 79 C5 66 B6 04 01 00 00 10 2E 17 81 57 BB 50 5B [11:42:37]CommunicateWithHost err = 0 [11:42:37]CheckOFDResponse [11:42:37]1017 (14) - 77093643461234 [11:42:37]1041 (16) - 0000000000871776 [11:42:37]1040 (4) - 140123 [11:42:37]1012 (4) - 21.08.2024 05:21 [11:42:37]1206 (1) - 0 [11:42:37]OFD Sender: Remove packet 140123 [11:42:37]ProducePacketName [11:42:37]name=ofd_packets/00140123 [11:42:37]NVStorageDeleteData [11:42:37]Write to MH i2c: 01 00 00 C5 40 05 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 C5 40 00 00 00 00 00 DA 0C F2 [11:42:37]RasterBufferAndPrint [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]line [11:42:37]written 0, free lines is 3301 [11:42:37]MH_Cut [11:42:37]Write to MH i2c: D1 01 00 CC 40 01 DE [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: D1 01 00 CC 40 00 DD [11:42:37]Write to MH i2c: 01 00 00 CD 40 0D [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]OFD Sender: No OFD packet to send [11:42:37]*** Cut start [11:42:37]*** Partial cut [11:42:37]*** CUTSNS_PIN = 1 [11:42:37]*** CUTSNS_PIN = 0 [11:42:38]*** Brake cut motor [11:42:38]Read from MH i2c: 01 [11:42:38]MH_I2C_Read... [11:42:38]*** Stop cut motor [11:42:38]*** Cut end [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 CD 40 00 00 00 00 00 FF 0F 22 [11:42:38]process_action close_receipt done [11:42:38]requested_data is exist [11:42:38]produce_requested_data [11:42:38]requested_item fm.sn is exist - process it [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 CE 40 80 11 00 00 00 00 00 00 88 [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 CE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [11:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:42:38]wFMCommunicate OK [11:42:38]requested_item fd.num is exist - process it [11:42:38]SAM_PROTO_GetFieldsCounters [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 00 00 [11:42:38]Write to MH i2c: E2 08 00 CF 40 80 13 00 00 00 00 00 00 8B [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 62 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 62 00 CF 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [11:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_GetFieldsCounters done [11:42:38]requested_item shift.num is exist - process it [11:42:38]requested_item shift.opened is exist - process it [11:42:38]req_shift_opened [11:42:38]FM_GetShiftState [11:42:38]SAM_PROTO_GetShiftState [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 01 00 [11:42:38]Write to MH i2c: E2 08 00 D0 40 80 13 01 00 00 00 00 00 8D [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 D0 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0D [11:42:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_GetShiftState done [11:42:38]FM_GetShiftState done [11:42:38]req_shift_opened done [11:42:38]requested_item shift.open_date is exist - process it [11:42:38]req_shift_open_date [11:42:38]req_shift_open_date done [11:42:38]produce_requested_data done [11:42:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140123,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:42:38]process_action_free close_receipt [11:42:38]json_value_free [11:42:38]json_value_free done [11:42:38]process_json_proto returns [11:42:38]Send response to host [11:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140123,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:42:38]free response buf [11:42:38]execute_script done [11:42:38]execute_script returns [11:42:38]free content buf [11:42:38]Sock 7.Close socket [11:42:38]Sock 7.Thread stoped [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:16]accept exits with 9 [11:43:16]New connection [11:43:16]New thread 3066908004 created [11:43:16]Thread 3066764644 joined [11:43:16]Waiting for new connection... [11:43:16] Sock 9.Parse request [11:43:16]Sock 9.Check first char [11:43:16]Sock 9.First char is OK [11:43:16]request: POST /json_proto HTTP/1.0 [11:43:16]Method: POST [11:43:16]URL: /json_proto [11:43:16]Method is POST - this is cgi request [11:43:16]url: /json_proto [11:43:16]query_string will be loaded in cgi processing [11:43:16]execute_cgi json_proto POST (null) [11:43:16]execute_cgi path=json_proto method=POST [11:43:16]POST find Content-Length [11:43:16]Host: 172.17.45.67:8080 [11:43:16]Content-Length: 658 [11:43:16]Content-Type: application/json [11:43:16] [11:43:16]POST finish read [11:43:16]Found Content-Length = 658 [11:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "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:43:16]execute_script... [11:43: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)593978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "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:43:17]POST & json_proto [11:43:17]process_json_proto [11:43:17]json parsed OK: [11:43:17]protocol is kg_v1.0 [11:43:17]action value=close_receipt [11:43:17]process_action close_receipt [11:43:17]cmd_close_receipt [11:43:17]MH_GetDate [11:43:17]Write to MH i2c: F0 00 00 D1 40 00 [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: F0 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: F0 09 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: F0 09 00 D1 40 00 D8 D2 C5 66 5F 7F 2B 66 4D [11:43:17]GetLastDocTimeStamp 1724240558 [11:43:17]current date 1724240600 [11:43:17]FM_GetShiftState [11:43:17]SAM_PROTO_GetShiftState [11:43:17]wFMCommunicate request_size=4 [11:43:17]MH_SAM_APDU [11:43:17]CAPDU: 80 13 01 00 [11:43:17]Write to MH i2c: E2 08 00 D2 40 80 13 01 00 00 00 00 00 8F [11:43:17]Write i2c OK [11:43:17]MH_I2C_Read... [11:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:17]Read from MH i2c: E2 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 0E 00 [11:43:17]MH_I2C_Read... [11:43:17]Read from MH i2c: E2 0E 00 D2 40 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0F [11:43:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:43:17]wFMCommunicate OK [11:43:17]SAM_PROTO_GetShiftState done [11:43:17]FM_GetShiftState done [11:43:17]opened in 1724200467 [11:43:17]opened+sec_in_day 1724286867 [11:43:17]quantity*price = 20020 [11:43:17]sum+1 = 20022 [11:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 141 21.08.2024 11:43 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140124 ФПД: 83602278338341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140124&fm=83602278338341&tin=02508201610067®Number=0000000000092569&sum=20000 [11:43:18]StoreToDocumentArchive [11:43:18]shift 454 fd 140124 [11:43:18]save to /storage/0454/doc_00140124 [11:43:18]save last doc name /storage/0454/doc_00140124 to /storage/kkm_last_doc_name [11:43:18]save OK [11:43:18]Clear old archive folders... [11:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:43:18]tlvbuf is 00B51380 [11:43:18]SAM_PROTO_ClearQueue [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 09 00 00 [11:43:18]Write to MH i2c: E2 08 00 DF 40 80 09 00 00 00 00 00 00 91 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 DF 40 00 90 00 93 [11:43:18]RAPDU: 90 00 [11:43:18]wFMCommunicate OK [11:43:18]SAM_PROTO_ClearQueue done [11:43:18]KKMCreateOFDPacket [11:43:18]OFDProtocolAddRootSTLVToBuf [11:43:18]FM_MakeSignedData [11:43:18]FM_MakeSignedData [11:43:18]SAM_PROTO_SignData [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 0D 01 02 [11:43:18]Write to MH i2c: E2 08 00 E0 40 80 0D 01 02 00 00 00 00 99 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 E0 40 00 90 00 94 [11:43:18]RAPDU: 90 00 [11:43:18]wFMCommunicate OK [11:43:18]wFMCommunicate request_size=253 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D8 D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 23 02 00 35 04 06 00 4C 09 2C 1A 4F 25 [11:43:18]Write to MH i2c: E2 00 01 E1 40 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D8 D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 23 02 00 35 04 06 00 4C 09 2C 1A 4F 25 00 00 DD [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 03 00 E1 40 00 90 00 95 [11:43:18]RAPDU: 90 00 [11:43:18]wFMCommunicate OK [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 0D 03 02 [11:43:18]Write to MH i2c: E2 08 00 E2 40 80 0D 03 02 00 00 00 00 9D [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0B 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0B 00 E2 40 00 A3 8E 78 C1 C6 21 28 DE 90 00 F5 [11:43:18]RAPDU: A3 8E 78 C1 C6 21 28 DE 90 00 [11:43:18]wFMCommunicate OK [11:43:18]SAM_PROTO_SignData done [11:43:18]FM_MakeSignedData done [11:43:18]CreateOFDProtocolMessage [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 11 00 00 [11:43:18]Write to MH i2c: E2 08 00 E3 40 80 11 00 00 00 00 00 00 9D [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 17 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 17 00 E3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [11:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:43:18]wFMCommunicate OK [11:43:18]CreateOFDProtocolMessage done [11:43:18]OFDSenderStorePacket 140124 [11:43:18]StoreOFDPacket docnum=140124 [11:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 DD 7B 00 01 C8 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D8 D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 23 02 00 35 04 06 00 4C 09 2C 1A 4F 25 A3 8E 78 C1 C6 21 28 DE [11:43:18]CheckFolder [11:43:18]dirname=/storage/ofd_packets [11:43:18]CheckFolder done [11:43:18]ProducePacketName [11:43:18]name=ofd_packets/00140124 [11:43:18]NVStorageSaveData ofd_packets/00140124 [11:43:18]File name is /storage/ofd_packets/00140124 [11:43:18]Write 294 bytes [11:43:18]NVStorageSaveData done [11:43:18]OFDSenderStorePacket done [11:43:18]KKMCreateOFDPacket done [11:43:18]NVStorageSaveData kkm_last_timestamp [11:43:18]File name is /storage/kkm_last_timestamp [11:43:18]Write 4 bytes [11:43:18]NVStorageSaveData done [11:43:18]ExternCall_PrintAddStr [11:43:18]wPrintStart [11:43:18]Write to MH i2c: 01 00 00 E4 40 24 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: 01 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: 01 07 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: 01 07 00 E4 40 00 00 00 00 00 FF 0F 39 [11:43:18]RasterBufferAndPrint [11:43:18]line Счет N : (1)593978 [11:43:18]line ИНН: 02508201610067 [11:43:18]line Контрольно-Кассовый Чек [11:43:18]line ПРОДАЖА [11:43:18]line ТРК (МРК, ГНК) : 33 [11:43:18]line Товар: 2710124130 [11:43:18]line SU-92 [11:43:18]line 2.910 * 68.80 [11:43:18]line = 200.21 [11:43:18]line НДС 12% НСП 1% [11:43:18]line > о реализуемом товаре [11:43:18]line ОКРУГЛЕНИЕ: -0.21 [11:43:18]line ИТОГО: 200.00 [11:43:18]line Внесено: 200.00 [11:43:18]line СДАЧА: 0.00 [11:43:18]line НСП 1% : 1.77 [11:43:18]line НДС 12% : 21.26 [11:43:18]line Наличными: 200.00 [11:43:18]line Безнал.: 0.00 [11:43:18]line Место: АЗС № 136 "Партнер Нефть" [11:43:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:43:18]line СНО: Общий режим [11:43:18]line Чек 141 21.08.2024 11:43 [11:43:18]line Смена: 454 ФФД: 1.0 [11:43:18]line ЗНМ: 0300000067 [11:43:18]line РНМ: 0000000000092569 [11:43:18]line Версия ККМ: 001 [11:43:18]line ФМ: 0000000000871776 [11:43:18]line ФД: 140124 [11:43:18]line ФПД: 83602278338341 [11:43:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114320&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140124&fm=83602278338341&tin=02508201610067®Number=0000000000092569&sum=20000 [11:43:18]OFD Sender: Processing packet 140124 [packets to send 137, broken 136] [11:43:18]ProducePacketName [11:43:18]name=ofd_packets/00140124 [11:43:18]OFD Sender: To server: pG, [11:43:18]CommunicateWithHost lk.salyk.kg:30040 [11:43:18]ConnectInit lk.salyk.kg [11:43:18]written 0, free lines is 4095 [11:43:19]Connected sock=10 [11:43: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 37 36 08 01 00 00 DD 7B 00 01 C8 82 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D8 D2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 23 02 00 35 04 06 00 4C 09 2C 1A 4F 25 A3 8E 78 C1 C6 21 28 DE [11:43: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 37 36 4F 00 00 00 2B 9B 47 00 13 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 37 36 10 04 04 00 5C 23 02 00 F4 03 04 00 69 79 C5 66 B6 04 01 00 00 9A 4A D3 89 E2 F5 DC 81 [11:43:19]CommunicateWithHost err = 0 [11:43:19]CheckOFDResponse [11:43:19]1017 (14) - 77093643461234 [11:43:19]1041 (16) - 0000000000871776 [11:43:19]1040 (4) - 140124 [11:43:19]1012 (4) - 21.08.2024 05:21 [11:43:19]1206 (1) - 0 [11:43:19]OFD Sender: Remove packet 140124 [11:43:19]ProducePacketName [11:43:19]name=ofd_packets/00140124 [11:43:19]NVStorageDeleteData [11:43:19]Write to MH i2c: 01 00 00 0F 41 50 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: 01 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: 01 07 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: 01 07 00 0F 41 00 00 00 00 00 D6 0C 39 [11:43:19]RasterBufferAndPrint [11:43:19]line [11:43:19]line [11:43:19]line [11:43:19]line [11:43:19]line [11:43:19]written 0, free lines is 3294 [11:43:19]MH_Cut [11:43:19]Write to MH i2c: D1 01 00 16 41 01 29 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: D1 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: D1 01 00 [11:43:19]MH_I2C_Read... [11:43:19]Read from MH i2c: D1 01 00 16 41 00 28 [11:43:19]Write to MH i2c: 01 00 00 17 41 58 [11:43:19]Write i2c OK [11:43:19]MH_I2C_Read... [11:43:19]OFD Sender: No OFD packet to send [11:43:20]*** Cut start [11:43:20]*** Partial cut [11:43:20]*** CUTSNS_PIN = 1 [11:43:20]*** CUTSNS_PIN = 0 [11:43:20]*** Brake cut motor [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]*** Stop cut motor [11:43:20]*** Cut end [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 17 41 00 00 00 00 00 FF 0F 6D [11:43:20]process_action close_receipt done [11:43:20]requested_data is exist [11:43:20]produce_requested_data [11:43:20]requested_item fm.sn is exist - process it [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 11 00 00 [11:43:20]Write to MH i2c: E2 08 00 18 41 80 11 00 00 00 00 00 00 D3 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 18 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [11:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:43:20]wFMCommunicate OK [11:43:20]requested_item fd.num is exist - process it [11:43:20]SAM_PROTO_GetFieldsCounters [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 00 00 [11:43:20]Write to MH i2c: E2 08 00 19 41 80 13 00 00 00 00 00 00 D6 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 62 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 62 00 19 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [11:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_GetFieldsCounters done [11:43:20]requested_item shift.num is exist - process it [11:43:20]requested_item shift.opened is exist - process it [11:43:20]req_shift_opened [11:43:20]FM_GetShiftState [11:43:20]SAM_PROTO_GetShiftState [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 01 00 [11:43:20]Write to MH i2c: E2 08 00 1A 41 80 13 01 00 00 00 00 00 D8 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:21]Read from MH i2c: E2 0E 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 0E 00 1A 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 58 [11:43:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:43:21]wFMCommunicate OK [11:43:21]SAM_PROTO_GetShiftState done [11:43:21]FM_GetShiftState done [11:43:21]req_shift_opened done [11:43:21]requested_item shift.open_date is exist - process it [11:43:21]req_shift_open_date [11:43:21]req_shift_open_date done [11:43:21]produce_requested_data done [11:43:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140124,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:43:21]process_action_free close_receipt [11:43:21]json_value_free [11:43:21]json_value_free done [11:43:21]process_json_proto returns [11:43:21]Send response to host [11:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140124,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:43:21]free response buf [11:43:21]execute_script done [11:43:21]execute_script returns [11:43:21]free content buf [11:43:21]Sock 9.Close socket [11:43:21]Sock 9.Thread stoped [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44: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:00]accept exits with 7 [11:45:00]New connection [11:45:00]New thread 3066764644 created [11:45:00]Thread 3066908004 joined [11:45:00]Waiting for new connection... [11:45:00] Sock 7.Parse request [11:45:00]Sock 7.Check first char [11:45:00]Sock 7.First char is OK [11:45:00]request: POST /json_proto HTTP/1.0 [11:45:00]Method: POST [11:45:00]URL: /json_proto [11:45:00]Method is POST - this is cgi request [11:45:00]url: /json_proto [11:45:00]query_string will be loaded in cgi processing [11:45:00]execute_cgi json_proto POST (null) [11:45:00]execute_cgi path=json_proto method=POST [11:45:00]POST find Content-Length [11:45:00]Host: 172.17.45.67:8080 [11:45:00]Content-Length: 678 [11:45:00]Content-Type: application/json [11:45:00] [11:45:00]POST finish read [11:45:00]Found Content-Length = 678 [11:45:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:00]execute_script... [11:45: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)593979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:00]POST & json_proto [11:45:00]process_json_proto [11:45:00]json parsed OK: [11:45:00]protocol is kg_v1.0 [11:45:00]action value=close_receipt [11:45:00]process_action close_receipt [11:45:00]cmd_close_receipt [11:45:00]MH_GetDate [11:45:00]Write to MH i2c: F0 00 00 1B 41 4B [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: F0 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: F0 09 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: F0 09 00 1B 41 00 40 D3 C5 66 5F 7F 2B 66 01 [11:45:00]GetLastDocTimeStamp 1724240600 [11:45:00]current date 1724240704 [11:45:00]FM_GetShiftState [11:45:00]SAM_PROTO_GetShiftState [11:45:00]wFMCommunicate request_size=4 [11:45:00]MH_SAM_APDU [11:45:00]CAPDU: 80 13 01 00 [11:45:00]Write to MH i2c: E2 08 00 1C 41 80 13 01 00 00 00 00 00 DA [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:00]Read from MH i2c: E2 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 0E 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 0E 00 1C 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5A [11:45:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:45:00]wFMCommunicate OK [11:45:00]SAM_PROTO_GetShiftState done [11:45:00]FM_GetShiftState done [11:45:00]opened in 1724200467 [11:45:00]opened+sec_in_day 1724286867 [11:45:00]quantity*price = 70037 [11:45:00]sum+1 = 70038 [11:45:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 142 21.08.2024 11:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140125 ФПД: 195698777944595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114504&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140125&fm=195698777944595&tin=02508201610067®Number=0000000000092569&sum=70000 [11:45:02]StoreToDocumentArchive [11:45:02]shift 454 fd 140125 [11:45:02]save to /storage/0454/doc_00140125 [11:45:02]save last doc name /storage/0454/doc_00140125 to /storage/kkm_last_doc_name [11:45:02]save OK [11:45:02]Clear old archive folders... [11:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:02]tlvbuf is 00AC03A0 [11:45:02]SAM_PROTO_ClearQueue [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 09 00 00 [11:45:02]Write to MH i2c: E2 08 00 29 41 80 09 00 00 00 00 00 00 DC [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 29 41 00 90 00 DE [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_ClearQueue done [11:45:02]KKMCreateOFDPacket [11:45:02]OFDProtocolAddRootSTLVToBuf [11:45:02]FM_MakeSignedData [11:45:02]FM_MakeSignedData [11:45:02]SAM_PROTO_SignData [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 01 02 [11:45:02]Write to MH i2c: E2 08 00 2A 41 80 0D 01 02 00 00 00 00 E4 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 2A 41 00 90 00 DF [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=255 [11:45:02]MH_SAM_APDU [11:45: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 40 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 23 02 00 35 04 06 00 B1 [11:45:02]Write to MH i2c: E2 02 01 2B 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 40 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 23 02 00 35 04 06 00 B1 00 00 1A [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 2B 41 00 90 00 E0 [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=10 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 02 02 05 FC AC 24 72 13 [11:45:02]Write to MH i2c: E2 0D 00 2C 41 80 0D 02 02 05 00 FC AC 24 72 13 00 00 42 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 03 00 2C 41 00 90 00 E1 [11:45:02]RAPDU: 90 00 [11:45:02]wFMCommunicate OK [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 0D 03 02 [11:45:02]Write to MH i2c: E2 08 00 2D 41 80 0D 03 02 00 00 00 00 E9 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0B 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0B 00 2D 41 00 53 BD 2A 13 74 34 7E CC 90 00 29 [11:45:02]RAPDU: 53 BD 2A 13 74 34 7E CC 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_SignData done [11:45:02]FM_MakeSignedData done [11:45:02]CreateOFDProtocolMessage [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 11 00 00 [11:45:02]Write to MH i2c: E2 08 00 2E 41 80 11 00 00 00 00 00 00 E9 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 17 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 17 00 2E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [11:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:02]wFMCommunicate OK [11:45:02]CreateOFDProtocolMessage done [11:45:02]OFDSenderStorePacket 140125 [11:45:02]StoreOFDPacket docnum=140125 [11:45:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 64 B1 07 01 83 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 40 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 23 02 00 35 04 06 00 B1 FC AC 24 72 13 53 BD 2A 13 74 34 7E CC [11:45:02]CheckFolder [11:45:02]dirname=/storage/ofd_packets [11:45:02]CheckFolder done [11:45:02]ProducePacketName [11:45:02]name=ofd_packets/00140125 [11:45:02]NVStorageSaveData ofd_packets/00140125 [11:45:02]File name is /storage/ofd_packets/00140125 [11:45:02]Write 301 bytes [11:45:02]NVStorageSaveData done [11:45:02]OFDSenderStorePacket done [11:45:02]KKMCreateOFDPacket done [11:45:02]NVStorageSaveData kkm_last_timestamp [11:45:02]File name is /storage/kkm_last_timestamp [11:45:02]Write 4 bytes [11:45:02]NVStorageSaveData done [11:45:02]ExternCall_PrintAddStr [11:45:02]wPrintStart [11:45:02]Write to MH i2c: 01 00 00 2F 41 70 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 07 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: 01 07 00 2F 41 00 00 00 00 00 FF 0F 85 [11:45:02]RasterBufferAndPrint [11:45:02]line Счет N : (1)593979 [11:45:02]line ИНН: 02508201610067 [11:45:02]line Контрольно-Кассовый Чек [11:45:02]line ПРОДАЖА [11:45:02]line ТРК (МРК, ГНК) : 52 [11:45:02]line Товар: 2710124130 [11:45:02]line Аи-92-К-5 [11:45:02]line 10.330 * 67.80 [11:45:02]line = 700.37 [11:45:02]line НДС 12% НСП 1% [11:45:02]line > о реализуемом товаре [11:45:02]line ОКРУГЛЕНИЕ: -0.37 [11:45:02]line ИТОГО: 700.00 [11:45:02]line Внесено: 700.00 [11:45:02]line СДАЧА: 0.00 [11:45:02]line НСП 1% : 6.20 [11:45:02]line НДС 12% : 74.38 [11:45:02]line Наличными: 700.00 [11:45:02]line Безнал.: 0.00 [11:45:02]line Место: АЗС № 136 "Партнер Нефть" [11:45:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:45:02]line СНО: Общий режим [11:45:02]line Чек 142 21.08.2024 11:45 [11:45:02]line Смена: 454 ФФД: 1.0 [11:45:02]line ЗНМ: 0300000067 [11:45:02]line РНМ: 0000000000092569 [11:45:02]line Версия ККМ: 001 [11:45:02]line ФМ: 0000000000871776 [11:45:02]line ФД: 140125 [11:45:02]line ФПД: 195698777944595 [11:45:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114504&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140125&fm=195698777944595&tin=02508201610067®Number=0000000000092569&sum=70000 [11:45:02]written 0, free lines is 4095 [11:45:02]OFD Sender: Processing packet 140125 [packets to send 137, broken 136] [11:45:02]ProducePacketName [11:45:02]name=ofd_packets/00140125 [11:45:02]OFD Sender: To server: pG, [11:45:02]CommunicateWithHost lk.salyk.kg:30040 [11:45:02]ConnectInit lk.salyk.kg [11:45:03]Connected sock=10 [11:45: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 37 36 0F 01 00 00 64 B1 07 01 83 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 40 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 23 02 00 35 04 06 00 B1 FC AC 24 72 13 53 BD 2A 13 74 34 7E CC [11:45:03]Write to MH i2c: 01 00 00 5A 41 9B [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: 01 07 00 5A 41 00 00 00 00 00 D3 0C 81 [11:45:03]RasterBufferAndPrint [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]line [11:45:03]written 0, free lines is 3290 [11:45:03]MH_Cut [11:45:03]Write to MH i2c: D1 01 00 61 41 01 74 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 01 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: D1 01 00 61 41 00 73 [11:45:03]Write to MH i2c: 01 00 00 62 41 A3 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45: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 37 36 4F 00 00 00 DF F5 47 00 B8 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 37 36 10 04 04 00 5D 23 02 00 F4 03 04 00 D1 79 C5 66 B6 04 01 00 00 1F 09 CF 3D 4A D6 1A 31 [11:45:03]CommunicateWithHost err = 0 [11:45:03]CheckOFDResponse [11:45:03]1017 (14) - 77093643461234 [11:45:03]1041 (16) - 0000000000871776 [11:45:03]1040 (4) - 140125 [11:45:03]1012 (4) - 21.08.2024 05:23 [11:45:03]1206 (1) - 0 [11:45:03]OFD Sender: Remove packet 140125 [11:45:03]ProducePacketName [11:45:03]name=ofd_packets/00140125 [11:45:03]NVStorageDeleteData [11:45:04]OFD Sender: No OFD packet to send [11:45:04]*** Cut start [11:45:04]*** Partial cut [11:45:04]*** CUTSNS_PIN = 1 [11:45:04]*** CUTSNS_PIN = 0 [11:45:04]*** Brake cut motor [11:45:04]Read from MH i2c: 01 [11:45:04]MH_I2C_Read... [11:45:04]*** Stop cut motor [11:45:04]*** Cut end [11:45:04]Read from MH i2c: 01 07 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 07 00 62 41 00 00 00 00 00 FF 0F B8 [11:45:04]process_action close_receipt done [11:45:04]requested_data is exist [11:45:04]produce_requested_data [11:45:04]requested_item fm.sn is exist - process it [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 11 00 00 [11:45:04]Write to MH i2c: E2 08 00 63 41 80 11 00 00 00 00 00 00 1E [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 17 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 17 00 63 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [11:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:04]wFMCommunicate OK [11:45:04]requested_item fd.num is exist - process it [11:45:04]SAM_PROTO_GetFieldsCounters [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 13 00 00 [11:45:04]Write to MH i2c: E2 08 00 64 41 80 13 00 00 00 00 00 00 21 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 62 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 62 00 64 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [11:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:04]wFMCommunicate OK [11:45:04]SAM_PROTO_GetFieldsCounters done [11:45:04]requested_item shift.num is exist - process it [11:45:04]requested_item shift.opened is exist - process it [11:45:04]req_shift_opened [11:45:04]FM_GetShiftState [11:45:04]SAM_PROTO_GetShiftState [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 13 01 00 [11:45:04]Write to MH i2c: E2 08 00 65 41 80 13 01 00 00 00 00 00 23 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0E 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0E 00 65 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A3 [11:45:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:45:04]wFMCommunicate OK [11:45:04]SAM_PROTO_GetShiftState done [11:45:04]FM_GetShiftState done [11:45:04]req_shift_opened done [11:45:04]requested_item shift.open_date is exist - process it [11:45:04]req_shift_open_date [11:45:04]req_shift_open_date done [11:45:04]produce_requested_data done [11:45:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140125,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:45:04]process_action_free close_receipt [11:45:04]json_value_free [11:45:04]json_value_free done [11:45:04]process_json_proto returns [11:45:04]Send response to host [11:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140125,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:45:04]free response buf [11:45:04]execute_script done [11:45:04]execute_script returns [11:45:04]free content buf [11:45:04]Sock 7.Close socket [11:45:04]Sock 7.Thread stoped [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:52]accept exits with 9 [11:45:52]New connection [11:45:52]New thread 3066908004 created [11:45:52]Thread 3066764644 joined [11:45:52]Waiting for new connection... [11:45:52] Sock 9.Parse request [11:45:52]Sock 9.Check first char [11:45:52]Sock 9.First char is OK [11:45:52]request: POST /json_proto HTTP/1.0 [11:45:52]Method: POST [11:45:52]URL: /json_proto [11:45:52]Method is POST - this is cgi request [11:45:52]url: /json_proto [11:45:52]query_string will be loaded in cgi processing [11:45:52]execute_cgi json_proto POST (null) [11:45:52]execute_cgi path=json_proto method=POST [11:45:52]POST find Content-Length [11:45:52]Host: 172.17.45.67:8080 [11:45:52]Content-Length: 677 [11:45:52]Content-Type: application/json [11:45:52] [11:45:52]POST finish read [11:45:52]Found Content-Length = 677 [11:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:45:52]execute_script... [11:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:45:52]POST & json_proto [11:45:52]process_json_proto [11:45:52]json parsed OK: [11:45:52]protocol is kg_v1.0 [11:45:52]action value=close_receipt [11:45:52]process_action close_receipt [11:45:52]cmd_close_receipt [11:45:52]MH_GetDate [11:45:52]Write to MH i2c: F0 00 00 66 41 96 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 09 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: F0 09 00 66 41 00 73 D3 C5 66 5F 7F 2B 66 7F [11:45:52]GetLastDocTimeStamp 1724240704 [11:45:52]current date 1724240755 [11:45:52]FM_GetShiftState [11:45:52]SAM_PROTO_GetShiftState [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 13 01 00 [11:45:52]Write to MH i2c: E2 08 00 67 41 80 13 01 00 00 00 00 00 25 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0E 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0E 00 67 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A5 [11:45:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_GetShiftState done [11:45:52]FM_GetShiftState done [11:45:52]opened in 1724200467 [11:45:52]opened+sec_in_day 1724286867 [11:45:52]quantity*price = 60003 [11:45:52]sum+1 = 60004 [11:45:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 143 21.08.2024 11:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140126 ФПД: 205611704321607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140126&fm=205611704321607&tin=02508201610067®Number=0000000000092569&sum=60000 [11:45:53]StoreToDocumentArchive [11:45:53]shift 454 fd 140126 [11:45:53]save to /storage/0454/doc_00140126 [11:45:53]save last doc name /storage/0454/doc_00140126 to /storage/kkm_last_doc_name [11:45:53]save OK [11:45:53]Clear old archive folders... [11:45:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:53]tlvbuf is 00A0C760 [11:45:53]SAM_PROTO_ClearQueue [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 09 00 00 [11:45:53]Write to MH i2c: E2 08 00 74 41 80 09 00 00 00 00 00 00 27 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 74 41 00 90 00 29 [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_ClearQueue done [11:45:53]KKMCreateOFDPacket [11:45:53]OFDProtocolAddRootSTLVToBuf [11:45:53]FM_MakeSignedData [11:45:53]FM_MakeSignedData [11:45:53]SAM_PROTO_SignData [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 01 02 [11:45:53]Write to MH i2c: E2 08 00 75 41 80 0D 01 02 00 00 00 00 2F [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 75 41 00 90 00 2A [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=255 [11:45:53]MH_SAM_APDU [11:45: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 8F 00 00 00 F4 03 04 00 73 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 23 02 00 35 04 06 00 BB [11:45:53]Write to MH i2c: E2 02 01 76 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 8F 00 00 00 F4 03 04 00 73 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 23 02 00 35 04 06 00 BB 00 00 84 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 76 41 00 90 00 2B [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=10 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 02 02 05 00 B4 99 06 47 [11:45:53]Write to MH i2c: E2 0D 00 77 41 80 0D 02 02 05 00 00 B4 99 06 47 00 00 D6 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 03 00 77 41 00 90 00 2C [11:45:53]RAPDU: 90 00 [11:45:53]wFMCommunicate OK [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 0D 03 02 [11:45:53]Write to MH i2c: E2 08 00 78 41 80 0D 03 02 00 00 00 00 34 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0B 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0B 00 78 41 00 34 F5 54 F0 EF 07 34 1D 90 00 E9 [11:45:54]RAPDU: 34 F5 54 F0 EF 07 34 1D 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_SignData done [11:45:54]FM_MakeSignedData done [11:45:54]CreateOFDProtocolMessage [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 11 00 00 [11:45:54]Write to MH i2c: E2 08 00 79 41 80 11 00 00 00 00 00 00 34 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 17 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 17 00 79 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [11:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:54]wFMCommunicate OK [11:45:54]CreateOFDProtocolMessage done [11:45:54]OFDSenderStorePacket 140126 [11:45:54]StoreOFDPacket docnum=140126 [11:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F AD 07 01 5D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 8F 00 00 00 F4 03 04 00 73 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 23 02 00 35 04 06 00 BB 00 B4 99 06 47 34 F5 54 F0 EF 07 34 1D [11:45:54]CheckFolder [11:45:54]dirname=/storage/ofd_packets [11:45:54]CheckFolder done [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00140126 [11:45:54]NVStorageSaveData ofd_packets/00140126 [11:45:54]File name is /storage/ofd_packets/00140126 [11:45:54]Write 301 bytes [11:45:54]NVStorageSaveData done [11:45:54]OFDSenderStorePacket done [11:45:54]KKMCreateOFDPacket done [11:45:54]NVStorageSaveData kkm_last_timestamp [11:45:54]File name is /storage/kkm_last_timestamp [11:45:54]Write 4 bytes [11:45:54]NVStorageSaveData done [11:45:54]ExternCall_PrintAddStr [11:45:54]wPrintStart [11:45:54]Write to MH i2c: 01 00 00 7A 41 BB [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 7A 41 00 00 00 00 00 FF 0F D0 [11:45:54]RasterBufferAndPrint [11:45:54]line Счет N : (1)593980 [11:45:54]line ИНН: 02508201610067 [11:45:54]line Контрольно-Кассовый Чек [11:45:54]line ПРОДАЖА [11:45:54]line ТРК (МРК, ГНК) : 32 [11:45:54]line Товар: 2710124130 [11:45:54]line Аи-92-К-5 [11:45:54]line 8.850 * 67.80 [11:45:54]line = 600.03 [11:45:54]line НДС 12% НСП 1% [11:45:54]line > о реализуемом товаре [11:45:54]line ОКРУГЛЕНИЕ: -0.03 [11:45:54]line ИТОГО: 600.00 [11:45:54]line Внесено: 600.00 [11:45:54]line СДАЧА: 0.00 [11:45:54]line НСП 1% : 5.31 [11:45:54]line НДС 12% : 63.72 [11:45:54]line Наличными: 600.00 [11:45:54]line Безнал.: 0.00 [11:45:54]line Место: АЗС № 136 "Партнер Нефть" [11:45:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:45:54]line СНО: Общий режим [11:45:54]line Чек 143 21.08.2024 11:45 [11:45:54]line Смена: 454 ФФД: 1.0 [11:45:54]line ЗНМ: 0300000067 [11:45:54]line РНМ: 0000000000092569 [11:45:54]line Версия ККМ: 001 [11:45:54]line ФМ: 0000000000871776 [11:45:54]line ФД: 140126 [11:45:54]line ФПД: 205611704321607 [11:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140126&fm=205611704321607&tin=02508201610067®Number=0000000000092569&sum=60000 [11:45:54]OFD Sender: Processing packet 140126 [packets to send 137, broken 136] [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00140126 [11:45:54]OFD Sender: To server: pG, [11:45:54]CommunicateWithHost lk.salyk.kg:30040 [11:45:54]ConnectInit lk.salyk.kg [11:45:54]written 0, free lines is 4095 [11:45:54]Connected sock=10 [11:45:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F AD 07 01 5D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 8F 00 00 00 F4 03 04 00 73 D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 23 02 00 35 04 06 00 BB 00 B4 99 06 47 34 F5 54 F0 EF 07 34 1D [11:45:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 0F EC 47 00 72 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 37 36 10 04 04 00 5E 23 02 00 F4 03 04 00 04 7A C5 66 B6 04 01 00 00 3C CC C6 93 A3 54 E3 10 [11:45:54]CommunicateWithHost err = 0 [11:45:54]CheckOFDResponse [11:45:54]1017 (14) - 77093643461234 [11:45:54]1041 (16) - 0000000000871776 [11:45:54]1040 (4) - 140126 [11:45:54]1012 (4) - 21.08.2024 05:24 [11:45:54]1206 (1) - 0 [11:45:54]OFD Sender: Remove packet 140126 [11:45:54]ProducePacketName [11:45:54]name=ofd_packets/00140126 [11:45:54]NVStorageDeleteData [11:45:54]Write to MH i2c: 01 00 00 A5 41 E6 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: 01 07 00 A5 41 00 00 00 00 00 CC 0C C5 [11:45:54]RasterBufferAndPrint [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]line [11:45:54]written 0, free lines is 3282 [11:45:54]MH_Cut [11:45:54]Write to MH i2c: D1 01 00 AC 41 01 BF [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 01 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: D1 01 00 AC 41 00 BE [11:45:54]Write to MH i2c: 01 00 00 AD 41 EE [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:55]OFD Sender: No OFD packet to send [11:45:55]*** Cut start [11:45:55]*** Partial cut [11:45:55]*** CUTSNS_PIN = 1 [11:45:55]*** CUTSNS_PIN = 0 [11:45:55]*** Brake cut motor [11:45:56]Read from MH i2c: 01 [11:45:56]MH_I2C_Read... [11:45:56]*** Stop cut motor [11:45:56]*** Cut end [11:45:56]Read from MH i2c: 01 07 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: 01 07 00 AD 41 00 00 00 00 00 FF 0F 03 [11:45:56]process_action close_receipt done [11:45:56]requested_data is exist [11:45:56]produce_requested_data [11:45:56]requested_item fm.sn is exist - process it [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 11 00 00 [11:45:56]Write to MH i2c: E2 08 00 AE 41 80 11 00 00 00 00 00 00 69 [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 17 00 AE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [11:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:45:56]wFMCommunicate OK [11:45:56]requested_item fd.num is exist - process it [11:45:56]SAM_PROTO_GetFieldsCounters [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 00 00 [11:45:56]Write to MH i2c: E2 08 00 AF 41 80 13 00 00 00 00 00 00 6C [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 62 00 AF 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [11:45:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetFieldsCounters done [11:45:56]requested_item shift.num is exist - process it [11:45:56]requested_item shift.opened is exist - process it [11:45:56]req_shift_opened [11:45:56]FM_GetShiftState [11:45:56]SAM_PROTO_GetShiftState [11:45:56]wFMCommunicate request_size=4 [11:45:56]MH_SAM_APDU [11:45:56]CAPDU: 80 13 01 00 [11:45:56]Write to MH i2c: E2 08 00 B0 41 80 13 01 00 00 00 00 00 6E [11:45:56]Write i2c OK [11:45:56]MH_I2C_Read... [11:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:56]Read from MH i2c: E2 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 [11:45:56]MH_I2C_Read... [11:45:56]Read from MH i2c: E2 0E 00 B0 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EE [11:45:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:45:56]wFMCommunicate OK [11:45:56]SAM_PROTO_GetShiftState done [11:45:56]FM_GetShiftState done [11:45:56]req_shift_opened done [11:45:56]requested_item shift.open_date is exist - process it [11:45:56]req_shift_open_date [11:45:56]req_shift_open_date done [11:45:56]produce_requested_data done [11:45:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140126,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:45:56]process_action_free close_receipt [11:45:56]json_value_free [11:45:56]json_value_free done [11:45:56]process_json_proto returns [11:45:56]Send response to host [11:45:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140126,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:45:56]free response buf [11:45:56]execute_script done [11:45:56]execute_script returns [11:45:56]free content buf [11:45:56]Sock 9.Close socket [11:45:56]Sock 9.Thread stoped [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:07]accept exits with 7 [11:48:07]New connection [11:48:07]New thread 3066764644 created [11:48:07]Thread 3066908004 joined [11:48:07]Waiting for new connection... [11:48:07] Sock 7.Parse request [11:48:07]Sock 7.Check first char [11:48:07]Sock 7.First char is OK [11:48:07]request: POST /json_proto HTTP/1.0 [11:48:07]Method: POST [11:48:07]URL: /json_proto [11:48:07]Method is POST - this is cgi request [11:48:07]url: /json_proto [11:48:07]query_string will be loaded in cgi processing [11:48:07]execute_cgi json_proto POST (null) [11:48:07]execute_cgi path=json_proto method=POST [11:48:07]POST find Content-Length [11:48:07]Host: 172.17.45.67:8080 [11:48:07]Content-Length: 663 [11:48:07]Content-Type: application/json [11:48:07] [11:48:07]POST finish read [11:48:07]Found Content-Length = 663 [11:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:07]execute_script... [11:48: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)593981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:07]POST & json_proto [11:48:07]process_json_proto [11:48:07]json parsed OK: [11:48:07]protocol is kg_v1.0 [11:48:07]action value=close_receipt [11:48:07]process_action close_receipt [11:48:07]cmd_close_receipt [11:48:07]MH_GetDate [11:48:07]Write to MH i2c: F0 00 00 B1 41 E1 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: F0 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: F0 09 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: F0 09 00 B1 41 00 FB D3 C5 66 5F 7F 2B 66 52 [11:48:07]GetLastDocTimeStamp 1724240755 [11:48:07]current date 1724240891 [11:48:07]FM_GetShiftState [11:48:07]SAM_PROTO_GetShiftState [11:48:07]wFMCommunicate request_size=4 [11:48:07]MH_SAM_APDU [11:48:07]CAPDU: 80 13 01 00 [11:48:07]Write to MH i2c: E2 08 00 B2 41 80 13 01 00 00 00 00 00 70 [11:48:07]Write i2c OK [11:48:07]MH_I2C_Read... [11:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:07]Read from MH i2c: E2 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 [11:48:07]MH_I2C_Read... [11:48:07]Read from MH i2c: E2 0E 00 B2 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F0 [11:48:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:48:07]wFMCommunicate OK [11:48:07]SAM_PROTO_GetShiftState done [11:48:07]FM_GetShiftState done [11:48:07]opened in 1724200467 [11:48:07]opened+sec_in_day 1724286867 [11:48:07]quantity*price = 100035 [11:48:07]sum+1 = 100036 [11:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 144 21.08.2024 11:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140127 ФПД: 260641570277108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140127&fm=260641570277108&tin=02508201610067®Number=0000000000092569&sum=100000 [11:48:08]StoreToDocumentArchive [11:48:08]shift 454 fd 140127 [11:48:08]save to /storage/0454/doc_00140127 [11:48:08]save last doc name /storage/0454/doc_00140127 to /storage/kkm_last_doc_name [11:48:08]save OK [11:48:08]Clear old archive folders... [11:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:48:08]tlvbuf is 00B43470 [11:48:08]SAM_PROTO_ClearQueue [11:48:08]wFMCommunicate request_size=4 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 09 00 00 [11:48:08]Write to MH i2c: E2 08 00 BF 41 80 09 00 00 00 00 00 00 72 [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:08]Read from MH i2c: E2 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 03 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 03 00 BF 41 00 90 00 74 [11:48:08]RAPDU: 90 00 [11:48:08]wFMCommunicate OK [11:48:08]SAM_PROTO_ClearQueue done [11:48:08]KKMCreateOFDPacket [11:48:08]OFDProtocolAddRootSTLVToBuf [11:48:08]FM_MakeSignedData [11:48:08]FM_MakeSignedData [11:48:08]SAM_PROTO_SignData [11:48:08]wFMCommunicate request_size=4 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 0D 01 02 [11:48:08]Write to MH i2c: E2 08 00 C0 41 80 0D 01 02 00 00 00 00 7A [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:08]Read from MH i2c: E2 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 03 00 [11:48:08]MH_I2C_Read... [11:48:08]Read from MH i2c: E2 03 00 C0 41 00 90 00 75 [11:48:08]RAPDU: 90 00 [11:48:08]wFMCommunicate OK [11:48:08]wFMCommunicate request_size=253 [11:48:08]MH_SAM_APDU [11:48:08]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FB D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 23 02 00 35 04 06 00 ED 0D 58 35 C6 F4 [11:48:08]Write to MH i2c: E2 00 01 C1 41 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FB D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 23 02 00 35 04 06 00 ED 0D 58 35 C6 F4 00 00 07 [11:48:08]Write i2c OK [11:48:08]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 03 00 C1 41 00 90 00 76 [11:48:09]RAPDU: 90 00 [11:48:09]wFMCommunicate OK [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 0D 03 02 [11:48:09]Write to MH i2c: E2 08 00 C2 41 80 0D 03 02 00 00 00 00 7E [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 0B 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 0B 00 C2 41 00 A3 37 18 55 71 03 D9 10 90 00 23 [11:48:09]RAPDU: A3 37 18 55 71 03 D9 10 90 00 [11:48:09]wFMCommunicate OK [11:48:09]SAM_PROTO_SignData done [11:48:09]FM_MakeSignedData done [11:48:09]CreateOFDProtocolMessage [11:48:09]wFMCommunicate request_size=4 [11:48:09]MH_SAM_APDU [11:48:09]CAPDU: 80 11 00 00 [11:48:09]Write to MH i2c: E2 08 00 C3 41 80 11 00 00 00 00 00 00 7E [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:09]Read from MH i2c: E2 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 17 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: E2 17 00 C3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [11:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:48:09]wFMCommunicate OK [11:48:09]CreateOFDProtocolMessage done [11:48:09]OFDSenderStorePacket 140127 [11:48:09]StoreOFDPacket docnum=140127 [11:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 05 66 00 01 54 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FB D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 23 02 00 35 04 06 00 ED 0D 58 35 C6 F4 A3 37 18 55 71 03 D9 10 [11:48:09]CheckFolder [11:48:09]dirname=/storage/ofd_packets [11:48:09]CheckFolder done [11:48:09]ProducePacketName [11:48:09]name=ofd_packets/00140127 [11:48:09]NVStorageSaveData ofd_packets/00140127 [11:48:09]File name is /storage/ofd_packets/00140127 [11:48:09]Write 294 bytes [11:48:09]NVStorageSaveData done [11:48:09]OFDSenderStorePacket done [11:48:09]KKMCreateOFDPacket done [11:48:09]NVStorageSaveData kkm_last_timestamp [11:48:09]File name is /storage/kkm_last_timestamp [11:48:09]Write 4 bytes [11:48:09]NVStorageSaveData done [11:48:09]ExternCall_PrintAddStr [11:48:09]wPrintStart [11:48:09]Write to MH i2c: 01 00 00 C4 41 05 [11:48:09]Write i2c OK [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 07 00 [11:48:09]MH_I2C_Read... [11:48:09]Read from MH i2c: 01 07 00 C4 41 00 00 00 00 00 FF 0F 1A [11:48:09]RasterBufferAndPrint [11:48:09]line Счет N : (1)593981 [11:48:09]line ИНН: 02508201610067 [11:48:09]line Контрольно-Кассовый Чек [11:48:09]line ПРОДАЖА [11:48:09]line ТРК (МРК, ГНК) : 43 [11:48:09]line Товар: 2710124130 [11:48:09]line SU-92 [11:48:09]line 14.540 * 68.80 [11:48:09]line = 1000.35 [11:48:09]line НДС 12% НСП 1% [11:48:09]line > о реализуемом товаре [11:48:09]line ОКРУГЛЕНИЕ: -0.35 [11:48:09]line ИТОГО: 1000.00 [11:48:09]line Внесено: 1000.00 [11:48:09]line СДАЧА: 0.00 [11:48:09]line НСП 1% : 8.85 [11:48:09]line НДС 12% : 106.23 [11:48:09]line Наличными: 1000.00 [11:48:09]line Безнал.: 0.00 [11:48:09]line Место: АЗС № 136 "Партнер Нефть" [11:48:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:48:09]line СНО: Общий режим [11:48:09]line Чек 144 21.08.2024 11:48 [11:48:09]line Смена: 454 ФФД: 1.0 [11:48:09]line ЗНМ: 0300000067 [11:48:09]line РНМ: 0000000000092569 [11:48:09]line Версия ККМ: 001 [11:48:09]line ФМ: 0000000000871776 [11:48:09]line ФД: 140127 [11:48:09]line ФПД: 260641570277108 [11:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T114811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140127&fm=260641570277108&tin=02508201610067®Number=0000000000092569&sum=100000 [11:48:09]OFD Sender: Processing packet 140127 [packets to send 137, broken 136] [11:48:09]ProducePacketName [11:48:09]name=ofd_packets/00140127 [11:48:09]OFD Sender: To server: pG, [11:48:09]CommunicateWithHost lk.salyk.kg:30040 [11:48:09]ConnectInit lk.salyk.kg [11:48:09]written 0, free lines is 4095 [11:48:09]Connected sock=10 [11:48: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 37 36 08 01 00 00 05 66 00 01 54 9B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 FB D3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 23 02 00 35 04 06 00 ED 0D 58 35 C6 F4 A3 37 18 55 71 03 D9 10 [11:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 25 66 47 00 F2 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 37 36 10 04 04 00 5F 23 02 00 F4 03 04 00 8B 7A C5 66 B6 04 01 00 00 AD 80 EE D3 E1 3D 02 D0 [11:48:10]CommunicateWithHost err = 0 [11:48:10]CheckOFDResponse [11:48:10]1017 (14) - 77093643461234 [11:48:10]1041 (16) - 0000000000871776 [11:48:10]1040 (4) - 140127 [11:48:10]1012 (4) - 21.08.2024 05:26 [11:48:10]1206 (1) - 0 [11:48:10]OFD Sender: Remove packet 140127 [11:48:10]ProducePacketName [11:48:10]name=ofd_packets/00140127 [11:48:10]NVStorageDeleteData [11:48:10]Write to MH i2c: 01 00 00 EF 41 30 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: 01 07 00 EF 41 00 00 00 00 00 D1 0C 14 [11:48:10]RasterBufferAndPrint [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]line [11:48:10]written 0, free lines is 3287 [11:48:10]MH_Cut [11:48:10]Write to MH i2c: D1 01 00 F6 41 01 09 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 [11:48:10]MH_I2C_Read... [11:48:10]Read from MH i2c: D1 01 00 F6 41 00 08 [11:48:10]Write to MH i2c: 01 00 00 F7 41 38 [11:48:10]Write i2c OK [11:48:10]MH_I2C_Read... [11:48:10]OFD Sender: No OFD packet to send [11:48:10]*** Cut start [11:48:10]*** Partial cut [11:48:10]*** CUTSNS_PIN = 1 [11:48:10]*** CUTSNS_PIN = 0 [11:48:11]*** Brake cut motor [11:48:11]Read from MH i2c: 01 [11:48:11]MH_I2C_Read... [11:48:11]*** Stop cut motor [11:48:11]*** Cut end [11:48:11]Read from MH i2c: 01 07 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: 01 07 00 F7 41 00 00 00 00 00 FF 0F 4D [11:48:11]process_action close_receipt done [11:48:11]requested_data is exist [11:48:11]produce_requested_data [11:48:11]requested_item fm.sn is exist - process it [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 11 00 00 [11:48:11]Write to MH i2c: E2 08 00 F8 41 80 11 00 00 00 00 00 00 B3 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 17 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 17 00 F8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [11:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:48:11]wFMCommunicate OK [11:48:11]requested_item fd.num is exist - process it [11:48:11]SAM_PROTO_GetFieldsCounters [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 13 00 00 [11:48:11]Write to MH i2c: E2 08 00 F9 41 80 13 00 00 00 00 00 00 B6 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 62 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 62 00 F9 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_GetFieldsCounters done [11:48:11]requested_item shift.num is exist - process it [11:48:11]requested_item shift.opened is exist - process it [11:48:11]req_shift_opened [11:48:11]FM_GetShiftState [11:48:11]SAM_PROTO_GetShiftState [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 13 01 00 [11:48:11]Write to MH i2c: E2 08 00 FA 41 80 13 01 00 00 00 00 00 B8 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 FA 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 38 [11:48:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_GetShiftState done [11:48:11]FM_GetShiftState done [11:48:11]req_shift_opened done [11:48:11]requested_item shift.open_date is exist - process it [11:48:11]req_shift_open_date [11:48:11]req_shift_open_date done [11:48:11]produce_requested_data done [11:48:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140127,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:48:11]process_action_free close_receipt [11:48:11]json_value_free [11:48:11]json_value_free done [11:48:11]process_json_proto returns [11:48:11]Send response to host [11:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140127,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:48:11]free response buf [11:48:11]execute_script done [11:48:11]execute_script returns [11:48:11]free content buf [11:48:11]Sock 7.Close socket [11:48:11]Sock 7.Thread stoped [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:15]accept exits with 9 [11:50:15]New connection [11:50:15]New thread 3066908004 created [11:50:15]Thread 3066764644 joined [11:50:15]Waiting for new connection... [11:50:15] Sock 9.Parse request [11:50:15]Sock 9.Check first char [11:50:15]Sock 9.First char is OK [11:50:15]request: POST /json_proto HTTP/1.0 [11:50:15]Method: POST [11:50:15]URL: /json_proto [11:50:15]Method is POST - this is cgi request [11:50:15]url: /json_proto [11:50:15]query_string will be loaded in cgi processing [11:50:15]execute_cgi json_proto POST (null) [11:50:15]execute_cgi path=json_proto method=POST [11:50:15]POST find Content-Length [11:50:15]Host: 172.17.45.67:8080 [11:50:15]Content-Length: 677 [11:50:15]Content-Type: application/json [11:50:15] [11:50:15]POST finish read [11:50:15]Found Content-Length = 677 [11:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:15]execute_script... [11:50: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)593982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:15]POST & json_proto [11:50:15]process_json_proto [11:50:15]json parsed OK: [11:50:15]protocol is kg_v1.0 [11:50:15]action value=close_receipt [11:50:15]process_action close_receipt [11:50:15]cmd_close_receipt [11:50:15]MH_GetDate [11:50:15]Write to MH i2c: F0 00 00 FB 41 2B [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: F0 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: F0 09 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: F0 09 00 FB 41 00 7B D4 C5 66 5F 7F 2B 66 1D [11:50:15]GetLastDocTimeStamp 1724240891 [11:50:15]current date 1724241019 [11:50:15]FM_GetShiftState [11:50:15]SAM_PROTO_GetShiftState [11:50:15]wFMCommunicate request_size=4 [11:50:15]MH_SAM_APDU [11:50:15]CAPDU: 80 13 01 00 [11:50:15]Write to MH i2c: E2 08 00 FC 41 80 13 01 00 00 00 00 00 BA [11:50:15]Write i2c OK [11:50:15]MH_I2C_Read... [11:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:15]Read from MH i2c: E2 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 0E 00 [11:50:15]MH_I2C_Read... [11:50:15]Read from MH i2c: E2 0E 00 FC 41 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3A [11:50:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:50:15]wFMCommunicate OK [11:50:15]SAM_PROTO_GetShiftState done [11:50:15]FM_GetShiftState done [11:50:15]opened in 1724200467 [11:50:15]opened+sec_in_day 1724286867 [11:50:15]quantity*price = 40002 [11:50:15]sum+1 = 40003 [11:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 145 21.08.2024 11:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140128 ФПД: 259128356671969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140128&fm=259128356671969&tin=02508201610067®Number=0000000000092569&sum=40000 [11:50:17]StoreToDocumentArchive [11:50:17]shift 454 fd 140128 [11:50:17]save to /storage/0454/doc_00140128 [11:50:17]save last doc name /storage/0454/doc_00140128 to /storage/kkm_last_doc_name [11:50:17]save OK [11:50:17]Clear old archive folders... [11:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:17]tlvbuf is B6D9D700 [11:50:17]SAM_PROTO_ClearQueue [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 09 00 00 [11:50:17]Write to MH i2c: E2 08 00 09 42 80 09 00 00 00 00 00 00 BD [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 09 42 00 90 00 BF [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_ClearQueue done [11:50:17]KKMCreateOFDPacket [11:50:17]OFDProtocolAddRootSTLVToBuf [11:50:17]FM_MakeSignedData [11:50:17]FM_MakeSignedData [11:50:17]SAM_PROTO_SignData [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 0D 01 02 [11:50:17]Write to MH i2c: E2 08 00 0A 42 80 0D 01 02 00 00 00 00 C5 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 0A 42 00 90 00 C0 [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]wFMCommunicate request_size=255 [11:50:17]MH_SAM_APDU [11:50: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 23 02 00 35 04 06 00 EB [11:50:17]Write to MH i2c: E2 02 01 0B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 23 02 00 35 04 06 00 EB 00 00 75 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 0B 42 00 90 00 C1 [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]wFMCommunicate request_size=10 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 0D 02 02 05 AD 05 A6 91 E1 [11:50:17]Write to MH i2c: E2 0D 00 0C 42 80 0D 02 02 05 00 AD 05 A6 91 E1 00 00 9C [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 03 00 0C 42 00 90 00 C2 [11:50:17]RAPDU: 90 00 [11:50:17]wFMCommunicate OK [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 0D 03 02 [11:50:17]Write to MH i2c: E2 08 00 0D 42 80 0D 03 02 00 00 00 00 CA [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0B 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 0B 00 0D 42 00 66 67 8E 26 82 92 41 45 90 00 E6 [11:50:17]RAPDU: 66 67 8E 26 82 92 41 45 90 00 [11:50:17]wFMCommunicate OK [11:50:17]SAM_PROTO_SignData done [11:50:17]FM_MakeSignedData done [11:50:17]CreateOFDProtocolMessage [11:50:17]wFMCommunicate request_size=4 [11:50:17]MH_SAM_APDU [11:50:17]CAPDU: 80 11 00 00 [11:50:17]Write to MH i2c: E2 08 00 0E 42 80 11 00 00 00 00 00 00 CA [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:17]Read from MH i2c: E2 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 17 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: E2 17 00 0E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [11:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:50:17]wFMCommunicate OK [11:50:17]CreateOFDProtocolMessage done [11:50:17]OFDSenderStorePacket 140128 [11:50:17]StoreOFDPacket docnum=140128 [11:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE 7E 07 01 A8 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 23 02 00 35 04 06 00 EB AD 05 A6 91 E1 66 67 8E 26 82 92 41 45 [11:50:17]CheckFolder [11:50:17]dirname=/storage/ofd_packets [11:50:17]CheckFolder done [11:50:17]ProducePacketName [11:50:17]name=ofd_packets/00140128 [11:50:17]NVStorageSaveData ofd_packets/00140128 [11:50:17]File name is /storage/ofd_packets/00140128 [11:50:17]Write 301 bytes [11:50:17]NVStorageSaveData done [11:50:17]OFDSenderStorePacket done [11:50:17]KKMCreateOFDPacket done [11:50:17]NVStorageSaveData kkm_last_timestamp [11:50:17]File name is /storage/kkm_last_timestamp [11:50:17]Write 4 bytes [11:50:17]NVStorageSaveData done [11:50:17]ExternCall_PrintAddStr [11:50:17]wPrintStart [11:50:17]Write to MH i2c: 01 00 00 0F 42 51 [11:50:17]Write i2c OK [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: 01 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: 01 07 00 [11:50:17]MH_I2C_Read... [11:50:17]Read from MH i2c: 01 07 00 0F 42 00 00 00 00 00 FF 0F 66 [11:50:17]RasterBufferAndPrint [11:50:17]line Счет N : (1)593982 [11:50:17]line ИНН: 02508201610067 [11:50:17]line Контрольно-Кассовый Чек [11:50:17]line ПРОДАЖА [11:50:17]line ТРК (МРК, ГНК) : 62 [11:50:17]line Товар: 2710124130 [11:50:17]line Аи-92-К-5 [11:50:17]line 5.900 * 67.80 [11:50:17]line = 400.02 [11:50:17]line НДС 12% НСП 1% [11:50:17]line > о реализуемом товаре [11:50:17]line ОКРУГЛЕНИЕ: -0.02 [11:50:17]line ИТОГО: 400.00 [11:50:17]line Внесено: 400.00 [11:50:17]line СДАЧА: 0.00 [11:50:17]line НСП 1% : 3.54 [11:50:17]line НДС 12% : 42.48 [11:50:17]line Наличными: 400.00 [11:50:17]line Безнал.: 0.00 [11:50:17]line Место: АЗС № 136 "Партнер Нефть" [11:50:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:50:17]line СНО: Общий режим [11:50:17]line Чек 145 21.08.2024 11:50 [11:50:17]line Смена: 454 ФФД: 1.0 [11:50:17]line ЗНМ: 0300000067 [11:50:17]line РНМ: 0000000000092569 [11:50:17]line Версия ККМ: 001 [11:50:17]line ФМ: 0000000000871776 [11:50:17]line ФД: 140128 [11:50:17]line ФПД: 259128356671969 [11:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115019&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140128&fm=259128356671969&tin=02508201610067®Number=0000000000092569&sum=40000 [11:50:17]OFD Sender: Processing packet 140128 [packets to send 137, broken 136] [11:50:17]ProducePacketName [11:50:17]name=ofd_packets/00140128 [11:50:17]OFD Sender: To server: pG, [11:50:17]CommunicateWithHost lk.salyk.kg:30040 [11:50:17]ConnectInit lk.salyk.kg [11:50:17]written 0, free lines is 4095 [11:50:18]Connected sock=10 [11:50: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 37 36 0F 01 00 00 AE 7E 07 01 A8 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 7B D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 23 02 00 35 04 06 00 EB AD 05 A6 91 E1 66 67 8E 26 82 92 41 45 [11:50: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 37 36 4F 00 00 00 DD 80 47 00 BC 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 37 36 10 04 04 00 60 23 02 00 F4 03 04 00 0C 7B C5 66 B6 04 01 00 00 BA 97 01 2B AB B3 A1 AA [11:50:18]CommunicateWithHost err = 0 [11:50:18]CheckOFDResponse [11:50:18]1017 (14) - 77093643461234 [11:50:18]1041 (16) - 0000000000871776 [11:50:18]1040 (4) - 140128 [11:50:18]1012 (4) - 21.08.2024 05:28 [11:50:18]1206 (1) - 0 [11:50:18]OFD Sender: Remove packet 140128 [11:50:18]ProducePacketName [11:50:18]name=ofd_packets/00140128 [11:50:18]NVStorageDeleteData [11:50:18]Write to MH i2c: 01 00 00 3A 42 7C [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 3A 42 00 00 00 00 00 D5 0C 64 [11:50:18]RasterBufferAndPrint [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]line [11:50:18]written 0, free lines is 3293 [11:50:18]MH_Cut [11:50:18]Write to MH i2c: D1 01 00 41 42 01 55 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 01 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: D1 01 00 41 42 00 54 [11:50:18]Write to MH i2c: 01 00 00 42 42 84 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]OFD Sender: No OFD packet to send [11:50:19]*** Cut start [11:50:19]*** Partial cut [11:50:19]*** CUTSNS_PIN = 1 [11:50:19]*** CUTSNS_PIN = 0 [11:50:19]*** Brake cut motor [11:50:19]Read from MH i2c: 01 [11:50:19]MH_I2C_Read... [11:50:19]*** Stop cut motor [11:50:19]*** Cut end [11:50:19]Read from MH i2c: 01 07 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: 01 07 00 42 42 00 00 00 00 00 FF 0F 99 [11:50:19]process_action close_receipt done [11:50:19]requested_data is exist [11:50:19]produce_requested_data [11:50:19]requested_item fm.sn is exist - process it [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 11 00 00 [11:50:19]Write to MH i2c: E2 08 00 43 42 80 11 00 00 00 00 00 00 FF [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 17 00 43 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [11:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:50:19]wFMCommunicate OK [11:50:19]requested_item fd.num is exist - process it [11:50:19]SAM_PROTO_GetFieldsCounters [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 13 00 00 [11:50:19]Write to MH i2c: E2 08 00 44 42 80 13 00 00 00 00 00 00 02 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 62 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 62 00 44 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [11:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_GetFieldsCounters done [11:50:19]requested_item shift.num is exist - process it [11:50:19]requested_item shift.opened is exist - process it [11:50:19]req_shift_opened [11:50:19]FM_GetShiftState [11:50:19]SAM_PROTO_GetShiftState [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 13 01 00 [11:50:19]Write to MH i2c: E2 08 00 45 42 80 13 01 00 00 00 00 00 04 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 45 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 84 [11:50:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_GetShiftState done [11:50:19]FM_GetShiftState done [11:50:19]req_shift_opened done [11:50:19]requested_item shift.open_date is exist - process it [11:50:19]req_shift_open_date [11:50:19]req_shift_open_date done [11:50:19]produce_requested_data done [11:50:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140128,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:50:19]process_action_free close_receipt [11:50:19]json_value_free [11:50:19]json_value_free done [11:50:19]process_json_proto returns [11:50:19]Send response to host [11:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140128,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:50:19]free response buf [11:50:19]execute_script done [11:50:19]execute_script returns [11:50:19]free content buf [11:50:19]Sock 9.Close socket [11:50:19]Sock 9.Thread stoped [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:19]accept exits with 7 [11:51:19]New connection [11:51:19]New thread 3066764644 created [11:51:19]Thread 3066908004 joined [11:51:19]Waiting for new connection... [11:51:19] Sock 7.Parse request [11:51:19]Sock 7.Check first char [11:51:19]Sock 7.First char is OK [11:51:19]request: POST /json_proto HTTP/1.0 [11:51:19]Method: POST [11:51:19]URL: /json_proto [11:51:19]Method is POST - this is cgi request [11:51:19]url: /json_proto [11:51:19]query_string will be loaded in cgi processing [11:51:19]execute_cgi json_proto POST (null) [11:51:19]execute_cgi path=json_proto method=POST [11:51:19]POST find Content-Length [11:51:19]Host: 172.17.45.67:8080 [11:51:19]Content-Length: 677 [11:51:19]Content-Type: application/json [11:51:19] [11:51:19]POST finish read [11:51:19]Found Content-Length = 677 [11:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:19]execute_script... [11:51: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)593983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:19]POST & json_proto [11:51:19]process_json_proto [11:51:19]json parsed OK: [11:51:19]protocol is kg_v1.0 [11:51:19]action value=close_receipt [11:51:19]process_action close_receipt [11:51:19]cmd_close_receipt [11:51:19]MH_GetDate [11:51:19]Write to MH i2c: F0 00 00 46 42 77 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 09 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: F0 09 00 46 42 00 BA D4 C5 66 5F 7F 2B 66 A8 [11:51:19]GetLastDocTimeStamp 1724241019 [11:51:19]current date 1724241082 [11:51:19]FM_GetShiftState [11:51:19]SAM_PROTO_GetShiftState [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 13 01 00 [11:51:19]Write to MH i2c: E2 08 00 47 42 80 13 01 00 00 00 00 00 06 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 47 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 86 [11:51:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:51:19]wFMCommunicate OK [11:51:19]SAM_PROTO_GetShiftState done [11:51:19]FM_GetShiftState done [11:51:19]opened in 1724200467 [11:51:19]opened+sec_in_day 1724286867 [11:51:19]quantity*price = 50036 [11:51:19]sum+1 = 50037 [11:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 146 21.08.2024 11:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140129 ФПД: 263023611519237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115122&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140129&fm=263023611519237&tin=02508201610067®Number=0000000000092569&sum=50000 [11:51:20]StoreToDocumentArchive [11:51:20]shift 454 fd 140129 [11:51:20]save to /storage/0454/doc_00140129 [11:51:20]save last doc name /storage/0454/doc_00140129 to /storage/kkm_last_doc_name [11:51:20]save OK [11:51:20]Clear old archive folders... [11:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:20]tlvbuf is 00AEE990 [11:51:20]SAM_PROTO_ClearQueue [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 09 00 00 [11:51:20]Write to MH i2c: E2 08 00 54 42 80 09 00 00 00 00 00 00 08 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 54 42 00 90 00 0A [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]SAM_PROTO_ClearQueue done [11:51:20]KKMCreateOFDPacket [11:51:20]OFDProtocolAddRootSTLVToBuf [11:51:20]FM_MakeSignedData [11:51:20]FM_MakeSignedData [11:51:20]SAM_PROTO_SignData [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 01 02 [11:51:20]Write to MH i2c: E2 08 00 55 42 80 0D 01 02 00 00 00 00 10 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 55 42 00 90 00 0B [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=255 [11:51:20]MH_SAM_APDU [11:51: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 23 02 00 35 04 06 00 EF [11:51:20]Write to MH i2c: E2 02 01 56 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 23 02 00 35 04 06 00 EF 00 00 20 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 56 42 00 90 00 0C [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=10 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 02 02 05 37 F4 EE A1 05 [11:51:20]Write to MH i2c: E2 0D 00 57 42 80 0D 02 02 05 00 37 F4 EE A1 05 00 00 DC [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:20]Read from MH i2c: E2 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 [11:51:20]MH_I2C_Read... [11:51:20]Read from MH i2c: E2 03 00 57 42 00 90 00 0D [11:51:20]RAPDU: 90 00 [11:51:20]wFMCommunicate OK [11:51:20]wFMCommunicate request_size=4 [11:51:20]MH_SAM_APDU [11:51:20]CAPDU: 80 0D 03 02 [11:51:20]Write to MH i2c: E2 08 00 58 42 80 0D 03 02 00 00 00 00 15 [11:51:20]Write i2c OK [11:51:20]MH_I2C_Read... [11:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 0B 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 0B 00 58 42 00 AB DC 56 11 BB BD D3 64 90 00 B3 [11:51:21]RAPDU: AB DC 56 11 BB BD D3 64 90 00 [11:51:21]wFMCommunicate OK [11:51:21]SAM_PROTO_SignData done [11:51:21]FM_MakeSignedData done [11:51:21]CreateOFDProtocolMessage [11:51:21]wFMCommunicate request_size=4 [11:51:21]MH_SAM_APDU [11:51:21]CAPDU: 80 11 00 00 [11:51:21]Write to MH i2c: E2 08 00 59 42 80 11 00 00 00 00 00 00 15 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:21]Read from MH i2c: E2 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 17 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: E2 17 00 59 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [11:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:51:21]wFMCommunicate OK [11:51:21]CreateOFDProtocolMessage done [11:51:21]OFDSenderStorePacket 140129 [11:51:21]StoreOFDPacket docnum=140129 [11:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E6 12 07 01 AE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 23 02 00 35 04 06 00 EF 37 F4 EE A1 05 AB DC 56 11 BB BD D3 64 [11:51:21]CheckFolder [11:51:21]dirname=/storage/ofd_packets [11:51:21]CheckFolder done [11:51:21]ProducePacketName [11:51:21]name=ofd_packets/00140129 [11:51:21]NVStorageSaveData ofd_packets/00140129 [11:51:21]File name is /storage/ofd_packets/00140129 [11:51:21]Write 301 bytes [11:51:21]NVStorageSaveData done [11:51:21]OFDSenderStorePacket done [11:51:21]KKMCreateOFDPacket done [11:51:21]NVStorageSaveData kkm_last_timestamp [11:51:21]File name is /storage/kkm_last_timestamp [11:51:21]Write 4 bytes [11:51:21]NVStorageSaveData done [11:51:21]ExternCall_PrintAddStr [11:51:21]wPrintStart [11:51:21]Write to MH i2c: 01 00 00 5A 42 9C [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 5A 42 00 00 00 00 00 FF 0F B1 [11:51:21]RasterBufferAndPrint [11:51:21]line Счет N : (1)593983 [11:51:21]line ИНН: 02508201610067 [11:51:21]line Контрольно-Кассовый Чек [11:51:21]line ПРОДАЖА [11:51:21]line ТРК (МРК, ГНК) : 52 [11:51:21]line Товар: 2710124130 [11:51:21]OFD Sender: Processing packet 140129 [packets to send 137, broken 136] [11:51:21]ProducePacketName [11:51:21]name=ofd_packets/00140129 [11:51:21]OFD Sender: To server: pG, [11:51:21]CommunicateWithHost lk.salyk.kg:30040 [11:51:21]ConnectInit lk.salyk.kg [11:51:21]line Аи-92-К-5 [11:51:21]line 7.380 * 67.80 [11:51:21]line = 500.36 [11:51:21]line НДС 12% НСП 1% [11:51:21]line > о реализуемом товаре [11:51:21]line ОКРУГЛЕНИЕ: -0.36 [11:51:21]line ИТОГО: 500.00 [11:51:21]line Внесено: 500.00 [11:51:21]line СДАЧА: 0.00 [11:51:21]line НСП 1% : 4.43 [11:51:21]line НДС 12% : 53.14 [11:51:21]line Наличными: 500.00 [11:51:21]line Безнал.: 0.00 [11:51:21]line Место: АЗС № 136 "Партнер Нефть" [11:51:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:51:21]line СНО: Общий режим [11:51:21]line Чек 146 21.08.2024 11:51 [11:51:21]line Смена: 454 ФФД: 1.0 [11:51:21]line ЗНМ: 0300000067 [11:51:21]line РНМ: 0000000000092569 [11:51:21]line Версия ККМ: 001 [11:51:21]line ФМ: 0000000000871776 [11:51:21]line ФД: 140129 [11:51:21]line ФПД: 263023611519237 [11:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115122&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140129&fm=263023611519237&tin=02508201610067®Number=0000000000092569&sum=50000 [11:51:21]written 0, free lines is 4095 [11:51:21]Connected sock=11 [11:51: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 37 36 0F 01 00 00 E6 12 07 01 AE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 BA D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 23 02 00 35 04 06 00 EF 37 F4 EE A1 05 AB DC 56 11 BB BD D3 64 [11:51: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 37 36 4F 00 00 00 12 2C 47 00 81 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 37 36 10 04 04 00 61 23 02 00 F4 03 04 00 4B 7B C5 66 B6 04 01 00 00 D4 55 86 5B A4 4C 28 71 [11:51:21]CommunicateWithHost err = 0 [11:51:21]CheckOFDResponse [11:51:21]1017 (14) - 77093643461234 [11:51:21]1041 (16) - 0000000000871776 [11:51:21]1040 (4) - 140129 [11:51:21]1012 (4) - 21.08.2024 05:29 [11:51:21]1206 (1) - 0 [11:51:21]OFD Sender: Remove packet 140129 [11:51:21]ProducePacketName [11:51:21]name=ofd_packets/00140129 [11:51:21]NVStorageDeleteData [11:51:21]Write to MH i2c: 01 00 00 85 42 C7 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: 01 07 00 85 42 00 00 00 00 00 DC 0C B6 [11:51:21]RasterBufferAndPrint [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]line [11:51:21]written 0, free lines is 3298 [11:51:21]MH_Cut [11:51:21]Write to MH i2c: D1 01 00 8C 42 01 A0 [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 01 00 [11:51:21]MH_I2C_Read... [11:51:21]Read from MH i2c: D1 01 00 8C 42 00 9F [11:51:21]Write to MH i2c: 01 00 00 8D 42 CF [11:51:21]Write i2c OK [11:51:21]MH_I2C_Read... [11:51:22]OFD Sender: No OFD packet to send [11:51:22]*** Cut start [11:51:22]*** Partial cut [11:51:22]*** CUTSNS_PIN = 1 [11:51:22]*** CUTSNS_PIN = 0 [11:51:22]*** Brake cut motor [11:51:22]Read from MH i2c: 01 [11:51:22]MH_I2C_Read... [11:51:22]*** Stop cut motor [11:51:22]*** Cut end [11:51:22]Read from MH i2c: 01 07 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: 01 07 00 8D 42 00 00 00 00 00 FF 0F E4 [11:51:22]process_action close_receipt done [11:51:22]requested_data is exist [11:51:22]produce_requested_data [11:51:22]requested_item fm.sn is exist - process it [11:51:22]wFMCommunicate request_size=4 [11:51:22]MH_SAM_APDU [11:51:22]CAPDU: 80 11 00 00 [11:51:22]Write to MH i2c: E2 08 00 8E 42 80 11 00 00 00 00 00 00 4A [11:51:22]Write i2c OK [11:51:22]MH_I2C_Read... [11:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:22]Read from MH i2c: E2 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 17 00 [11:51:22]MH_I2C_Read... [11:51:22]Read from MH i2c: E2 17 00 8E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [11:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:51:22]wFMCommunicate OK [11:51:22]requested_item fd.num is exist - process it [11:51:22]SAM_PROTO_GetFieldsCounters [11:51:22]wFMCommunicate request_size=4 [11:51:22]MH_SAM_APDU [11:51:22]CAPDU: 80 13 00 00 [11:51:22]Write to MH i2c: E2 08 00 8F 42 80 13 00 00 00 00 00 00 4D [11:51:22]Write i2c OK [11:51:22]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 62 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 62 00 8F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [11:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetFieldsCounters done [11:51:23]requested_item shift.num is exist - process it [11:51:23]requested_item shift.opened is exist - process it [11:51:23]req_shift_opened [11:51:23]FM_GetShiftState [11:51:23]SAM_PROTO_GetShiftState [11:51:23]wFMCommunicate request_size=4 [11:51:23]MH_SAM_APDU [11:51:23]CAPDU: 80 13 01 00 [11:51:23]Write to MH i2c: E2 08 00 90 42 80 13 01 00 00 00 00 00 4F [11:51:23]Write i2c OK [11:51:23]MH_I2C_Read... [11:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:23]Read from MH i2c: E2 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 [11:51:23]MH_I2C_Read... [11:51:23]Read from MH i2c: E2 0E 00 90 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CF [11:51:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:51:23]wFMCommunicate OK [11:51:23]SAM_PROTO_GetShiftState done [11:51:23]FM_GetShiftState done [11:51:23]req_shift_opened done [11:51:23]requested_item shift.open_date is exist - process it [11:51:23]req_shift_open_date [11:51:23]req_shift_open_date done [11:51:23]produce_requested_data done [11:51:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140129,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:51:23]process_action_free close_receipt [11:51:23]json_value_free [11:51:23]json_value_free done [11:51:23]process_json_proto returns [11:51:23]Send response to host [11:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140129,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:51:23]free response buf [11:51:23]execute_script done [11:51:23]execute_script returns [11:51:23]free content buf [11:51:23]Sock 7.Close socket [11:51:23]Sock 7.Thread stoped [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:35]int [11:51:35]Write to MH i2c: 01 00 00 91 42 D3 [11:51:35]*** FLAG_PRN_KEY set [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 91 42 00 08 00 00 00 FF 0F F0 [11:51:35]state=0 [11:51:35]Key pressed [11:51:35]Feed [11:51:35]Write to MH i2c: D8 00 00 92 42 AB [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D8 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D8 01 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D8 01 00 92 42 00 AC [11:51:35]int [11:51:35]Write to MH i2c: 01 00 00 93 42 D5 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 93 42 00 48 00 00 00 3C 00 60 [11:51:35]state=2 [11:51:35]Key pressed [11:51:35]int [11:51:35]Write to MH i2c: 01 00 00 94 42 D6 [11:51:35]*** FLAG_PRN_KEY reset [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: 01 07 00 94 42 00 00 00 00 00 F8 0F E4 [11:51:35]state=2 [11:51:35]Stop feed [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:49]accept exits with 9 [11:51:49]New connection [11:51:49]New thread 3066908004 created [11:51:49]Thread 3066764644 joined [11:51:49]Waiting for new connection... [11:51:49] Sock 9.Parse request [11:51:49]Sock 9.Check first char [11:51:49]Sock 9.First char is OK [11:51:49]request: POST /json_proto HTTP/1.0 [11:51:49]Method: POST [11:51:49]URL: /json_proto [11:51:49]Method is POST - this is cgi request [11:51:49]url: /json_proto [11:51:49]query_string will be loaded in cgi processing [11:51:49]execute_cgi json_proto POST (null) [11:51:49]execute_cgi path=json_proto method=POST [11:51:49]POST find Content-Length [11:51:49]Host: 172.17.45.67:8080 [11:51:49]Content-Length: 677 [11:51:49]Content-Type: application/json [11:51:49] [11:51:49]POST finish read [11:51:49]Found Content-Length = 677 [11:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:49]execute_script... [11:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:49]POST & json_proto [11:51:49]process_json_proto [11:51:49]json parsed OK: [11:51:49]protocol is kg_v1.0 [11:51:49]action value=close_receipt [11:51:49]process_action close_receipt [11:51:49]cmd_close_receipt [11:51:49]MH_GetDate [11:51:49]Write to MH i2c: F0 00 00 95 42 C6 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 09 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: F0 09 00 95 42 00 D8 D4 C5 66 5F 7F 2B 66 15 [11:51:49]GetLastDocTimeStamp 1724241082 [11:51:49]current date 1724241112 [11:51:49]FM_GetShiftState [11:51:49]SAM_PROTO_GetShiftState [11:51:49]wFMCommunicate request_size=4 [11:51:49]MH_SAM_APDU [11:51:49]CAPDU: 80 13 01 00 [11:51:49]Write to MH i2c: E2 08 00 96 42 80 13 01 00 00 00 00 00 55 [11:51:49]Write i2c OK [11:51:49]MH_I2C_Read... [11:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:49]Read from MH i2c: E2 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0E 00 [11:51:49]MH_I2C_Read... [11:51:49]Read from MH i2c: E2 0E 00 96 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D5 [11:51:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:51:49]wFMCommunicate OK [11:51:49]SAM_PROTO_GetShiftState done [11:51:49]FM_GetShiftState done [11:51:49]opened in 1724200467 [11:51:49]opened+sec_in_day 1724286867 [11:51:49]quantity*price = 40002 [11:51:49]sum+1 = 40003 [11:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 147 21.08.2024 11:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140130 ФПД: 29390518077863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140130&fm=29390518077863&tin=02508201610067®Number=0000000000092569&sum=40000 [11:51:50]StoreToDocumentArchive [11:51:50]shift 454 fd 140130 [11:51:50]save to /storage/0454/doc_00140130 [11:51:50]save last doc name /storage/0454/doc_00140130 to /storage/kkm_last_doc_name [11:51:50]save OK [11:51:50]Clear old archive folders... [11:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:50]tlvbuf is 00A545F0 [11:51:50]SAM_PROTO_ClearQueue [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 09 00 00 [11:51:50]Write to MH i2c: E2 08 00 A3 42 80 09 00 00 00 00 00 00 57 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 A3 42 00 90 00 59 [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]SAM_PROTO_ClearQueue done [11:51:50]KKMCreateOFDPacket [11:51:50]OFDProtocolAddRootSTLVToBuf [11:51:50]FM_MakeSignedData [11:51:50]FM_MakeSignedData [11:51:50]SAM_PROTO_SignData [11:51:50]wFMCommunicate request_size=4 [11:51:50]MH_SAM_APDU [11:51:50]CAPDU: 80 0D 01 02 [11:51:50]Write to MH i2c: E2 08 00 A4 42 80 0D 01 02 00 00 00 00 5F [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:50]Read from MH i2c: E2 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 [11:51:50]MH_I2C_Read... [11:51:50]Read from MH i2c: E2 03 00 A4 42 00 90 00 5A [11:51:50]RAPDU: 90 00 [11:51:50]wFMCommunicate OK [11:51:50]wFMCommunicate request_size=255 [11:51:50]MH_SAM_APDU [11:51: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D9 D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 23 02 00 35 04 06 00 1A [11:51:50]Write to MH i2c: E2 02 01 A5 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D9 D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 23 02 00 35 04 06 00 1A 00 00 A0 [11:51:50]Write i2c OK [11:51:50]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 A5 42 00 90 00 5B [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]wFMCommunicate request_size=10 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 02 02 05 BB 03 63 C9 A7 [11:51:51]Write to MH i2c: E2 0D 00 A6 42 80 0D 02 02 05 00 BB 03 63 C9 A7 00 00 FD [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 03 00 A6 42 00 90 00 5C [11:51:51]RAPDU: 90 00 [11:51:51]wFMCommunicate OK [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 0D 03 02 [11:51:51]Write to MH i2c: E2 08 00 A7 42 80 0D 03 02 00 00 00 00 64 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0B 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 0B 00 A7 42 00 35 B1 D3 4A 99 F2 5A E1 90 00 2E [11:51:51]RAPDU: 35 B1 D3 4A 99 F2 5A E1 90 00 [11:51:51]wFMCommunicate OK [11:51:51]SAM_PROTO_SignData done [11:51:51]FM_MakeSignedData done [11:51:51]CreateOFDProtocolMessage [11:51:51]wFMCommunicate request_size=4 [11:51:51]MH_SAM_APDU [11:51:51]CAPDU: 80 11 00 00 [11:51:51]Write to MH i2c: E2 08 00 A8 42 80 11 00 00 00 00 00 00 64 [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:51]Read from MH i2c: E2 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: E2 17 00 A8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [11:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:51:51]wFMCommunicate OK [11:51:51]CreateOFDProtocolMessage done [11:51:51]OFDSenderStorePacket 140130 [11:51:51]StoreOFDPacket docnum=140130 [11:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7E DC 07 01 AB 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D9 D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 23 02 00 35 04 06 00 1A BB 03 63 C9 A7 35 B1 D3 4A 99 F2 5A E1 [11:51:51]CheckFolder [11:51:51]dirname=/storage/ofd_packets [11:51:51]CheckFolder done [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00140130 [11:51:51]NVStorageSaveData ofd_packets/00140130 [11:51:51]File name is /storage/ofd_packets/00140130 [11:51:51]Write 301 bytes [11:51:51]NVStorageSaveData done [11:51:51]OFDSenderStorePacket done [11:51:51]KKMCreateOFDPacket done [11:51:51]NVStorageSaveData kkm_last_timestamp [11:51:51]File name is /storage/kkm_last_timestamp [11:51:51]Write 4 bytes [11:51:51]NVStorageSaveData done [11:51:51]ExternCall_PrintAddStr [11:51:51]wPrintStart [11:51:51]Write to MH i2c: 01 00 00 A9 42 EB [11:51:51]Write i2c OK [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 [11:51:51]MH_I2C_Read... [11:51:51]Read from MH i2c: 01 07 00 A9 42 00 00 00 00 00 FF 0F 00 [11:51:51]RasterBufferAndPrint [11:51:51]line Счет N : (1)593984 [11:51:51]line ИНН: 02508201610067 [11:51:51]line Контрольно-Кассовый Чек [11:51:51]line ПРОДАЖА [11:51:51]line ТРК (МРК, ГНК) : 32 [11:51:51]line Товар: 2710124130 [11:51:51]line Аи-92-К-5 [11:51:51]line 5.900 * 67.80 [11:51:51]line = 400.02 [11:51:51]line НДС 12% НСП 1% [11:51:51]line > о реализуемом товаре [11:51:51]line ОКРУГЛЕНИЕ: -0.02 [11:51:51]line ИТОГО: 400.00 [11:51:51]line Внесено: 400.00 [11:51:51]line СДАЧА: 0.00 [11:51:51]line НСП 1% : 3.54 [11:51:51]line НДС 12% : 42.48 [11:51:51]line Наличными: 400.00 [11:51:51]line Безнал.: 0.00 [11:51:51]line Место: АЗС № 136 "Партнер Нефть" [11:51:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:51:51]line СНО: Общий режим [11:51:51]line Чек 147 21.08.2024 11:51 [11:51:51]line Смена: 454 ФФД: 1.0 [11:51:51]line ЗНМ: 0300000067 [11:51:51]line РНМ: 0000000000092569 [11:51:51]line Версия ККМ: 001 [11:51:51]line ФМ: 0000000000871776 [11:51:51]line ФД: 140130 [11:51:51]line ФПД: 29390518077863 [11:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140130&fm=29390518077863&tin=02508201610067®Number=0000000000092569&sum=40000 [11:51:51]written 0, free lines is 4095 [11:51:51]OFD Sender: Processing packet 140130 [packets to send 137, broken 136] [11:51:51]ProducePacketName [11:51:51]name=ofd_packets/00140130 [11:51:51]OFD Sender: To server: pG, [11:51:51]CommunicateWithHost lk.salyk.kg:30040 [11:51:51]ConnectInit lk.salyk.kg [11:51:51]Connected sock=10 [11:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7E DC 07 01 AB 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 D9 D4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 23 02 00 35 04 06 00 1A BB 03 63 C9 A7 35 B1 D3 4A 99 F2 5A E1 [11:51: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 37 36 4F 00 00 00 90 68 47 00 F6 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 37 36 10 04 04 00 62 23 02 00 F4 03 04 00 69 7B C5 66 B6 04 01 00 00 B7 8E C3 45 ED 02 FE 31 [11:51:52]CommunicateWithHost err = 0 [11:51:52]CheckOFDResponse [11:51:52]1017 (14) - 77093643461234 [11:51:52]1041 (16) - 0000000000871776 [11:51:52]1040 (4) - 140130 [11:51:52]1012 (4) - 21.08.2024 05:30 [11:51:52]1206 (1) - 0 [11:51:52]OFD Sender: Remove packet 140130 [11:51:52]ProducePacketName [11:51:52]name=ofd_packets/00140130 [11:51:52]NVStorageDeleteData [11:51:52]Write to MH i2c: 01 00 00 D4 42 16 [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 07 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: 01 07 00 D4 42 00 00 00 00 00 DA 0C 03 [11:51:52]RasterBufferAndPrint [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]line [11:51:52]written 0, free lines is 3297 [11:51:52]MH_Cut [11:51:52]Write to MH i2c: D1 01 00 DB 42 01 EF [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 01 00 [11:51:52]MH_I2C_Read... [11:51:52]Read from MH i2c: D1 01 00 DB 42 00 EE [11:51:52]Write to MH i2c: 01 00 00 DC 42 1E [11:51:52]Write i2c OK [11:51:52]MH_I2C_Read... [11:51:52]OFD Sender: No OFD packet to send [11:51:52]*** Cut start [11:51:52]*** Partial cut [11:51:52]*** CUTSNS_PIN = 1 [11:51:52]*** CUTSNS_PIN = 0 [11:51:53]*** Brake cut motor [11:51:53]Read from MH i2c: 01 [11:51:53]MH_I2C_Read... [11:51:53]*** Stop cut motor [11:51:53]*** Cut end [11:51:53]Read from MH i2c: 01 07 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: 01 07 00 DC 42 00 00 00 00 00 FF 0F 33 [11:51:53]process_action close_receipt done [11:51:53]requested_data is exist [11:51:53]produce_requested_data [11:51:53]requested_item fm.sn is exist - process it [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 11 00 00 [11:51:53]Write to MH i2c: E2 08 00 DD 42 80 11 00 00 00 00 00 00 99 [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 17 00 DD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [11:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:51:53]wFMCommunicate OK [11:51:53]requested_item fd.num is exist - process it [11:51:53]SAM_PROTO_GetFieldsCounters [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 13 00 00 [11:51:53]Write to MH i2c: E2 08 00 DE 42 80 13 00 00 00 00 00 00 9C [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 62 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 62 00 DE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_GetFieldsCounters done [11:51:53]requested_item shift.num is exist - process it [11:51:53]requested_item shift.opened is exist - process it [11:51:53]req_shift_opened [11:51:53]FM_GetShiftState [11:51:53]SAM_PROTO_GetShiftState [11:51:53]wFMCommunicate request_size=4 [11:51:53]MH_SAM_APDU [11:51:53]CAPDU: 80 13 01 00 [11:51:53]Write to MH i2c: E2 08 00 DF 42 80 13 01 00 00 00 00 00 9E [11:51:53]Write i2c OK [11:51:53]MH_I2C_Read... [11:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:53]Read from MH i2c: E2 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0E 00 [11:51:53]MH_I2C_Read... [11:51:53]Read from MH i2c: E2 0E 00 DF 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1E [11:51:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:51:53]wFMCommunicate OK [11:51:53]SAM_PROTO_GetShiftState done [11:51:53]FM_GetShiftState done [11:51:53]req_shift_opened done [11:51:53]requested_item shift.open_date is exist - process it [11:51:53]req_shift_open_date [11:51:53]req_shift_open_date done [11:51:53]produce_requested_data done [11:51:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140130,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:51:53]process_action_free close_receipt [11:51:53]json_value_free [11:51:53]json_value_free done [11:51:53]process_json_proto returns [11:51:53]Send response to host [11:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140130,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:51:53]free response buf [11:51:53]execute_script done [11:51:53]execute_script returns [11:51:53]free content buf [11:51:53]Sock 9.Close socket [11:51:53]Sock 9.Thread stoped [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:55]accept exits with 7 [11:52:55]New connection [11:52:55]New thread 3066764644 created [11:52:55]Thread 3066908004 joined [11:52:55]Waiting for new connection... [11:52:55] Sock 7.Parse request [11:52:55]Sock 7.Check first char [11:52:55]Sock 7.First char is OK [11:52:55]request: POST /json_proto HTTP/1.0 [11:52:55]Method: POST [11:52:55]URL: /json_proto [11:52:55]Method is POST - this is cgi request [11:52:55]url: /json_proto [11:52:55]query_string will be loaded in cgi processing [11:52:55]execute_cgi json_proto POST (null) [11:52:55]execute_cgi path=json_proto method=POST [11:52:55]POST find Content-Length [11:52:55]Host: 172.17.45.67:8080 [11:52:55]Content-Length: 682 [11:52:55]Content-Type: application/json [11:52:55] [11:52:55]POST finish read [11:52:55]Found Content-Length = 682 [11:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:52:55]execute_script... [11:52:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [11:52:55]POST & json_proto [11:52:55]process_json_proto [11:52:55]json parsed OK: [11:52:55]protocol is kg_v1.0 [11:52:55]action value=close_receipt [11:52:55]process_action close_receipt [11:52:55]cmd_close_receipt [11:52:55]MH_GetDate [11:52:55]Write to MH i2c: F0 00 00 E0 42 11 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: F0 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: F0 09 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: F0 09 00 E0 42 00 1A D5 C5 66 5F 7F 2B 66 A3 [11:52:55]GetLastDocTimeStamp 1724241113 [11:52:55]current date 1724241178 [11:52:55]FM_GetShiftState [11:52:55]SAM_PROTO_GetShiftState [11:52:55]wFMCommunicate request_size=4 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 13 01 00 [11:52:55]Write to MH i2c: E2 08 00 E1 42 80 13 01 00 00 00 00 00 A0 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 0E 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 0E 00 E1 42 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 20 [11:52:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:52:55]wFMCommunicate OK [11:52:55]SAM_PROTO_GetShiftState done [11:52:55]FM_GetShiftState done [11:52:55]opened in 1724200467 [11:52:55]opened+sec_in_day 1724286867 [11:52:55]quantity*price = 50063 [11:52:55]sum+1 = 50064 [11:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 148 21.08.2024 11:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140131 ФПД: 146311708316912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140131&fm=146311708316912&tin=02508201610067®Number=0000000000092569&sum=50000 [11:52:56]StoreToDocumentArchive [11:52:56]shift 454 fd 140131 [11:52:56]save to /storage/0454/doc_00140131 [11:52:56]save last doc name /storage/0454/doc_00140131 to /storage/kkm_last_doc_name [11:52:56]save OK [11:52:56]Clear old archive folders... [11:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:56]tlvbuf is 00AC0190 [11:52:56]SAM_PROTO_ClearQueue [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 09 00 00 [11:52:56]Write to MH i2c: E2 08 00 EE 42 80 09 00 00 00 00 00 00 A2 [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 EE 42 00 90 00 A4 [11:52:56]RAPDU: 90 00 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_ClearQueue done [11:52:56]KKMCreateOFDPacket [11:52:56]OFDProtocolAddRootSTLVToBuf [11:52:56]FM_MakeSignedData [11:52:56]FM_MakeSignedData [11:52:56]SAM_PROTO_SignData [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 0D 01 02 [11:52:56]Write to MH i2c: E2 08 00 EF 42 80 0D 01 02 00 00 00 00 AA [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 EF 42 00 90 00 A5 [11:52:56]RAPDU: 90 00 [11:52:56]wFMCommunicate OK [11:52:56]wFMCommunicate request_size=255 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 94 00 00 00 F4 03 04 00 1B D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 23 02 00 35 04 06 00 [11:52:56]Write to MH i2c: E2 02 01 F0 42 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 94 00 00 00 F4 03 04 00 1B D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 23 02 00 35 04 06 00 00 00 A7 [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 F0 42 00 90 00 A6 [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]wFMCommunicate request_size=11 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 02 02 06 85 11 D9 66 94 F0 [11:52:57]Write to MH i2c: E2 0E 00 F1 42 80 0D 02 02 06 00 85 11 D9 66 94 F0 00 00 12 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 03 00 F1 42 00 90 00 A7 [11:52:57]RAPDU: 90 00 [11:52:57]wFMCommunicate OK [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 0D 03 02 [11:52:57]Write to MH i2c: E2 08 00 F2 42 80 0D 03 02 00 00 00 00 AF [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0B 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 0B 00 F2 42 00 48 29 BF 4C BA 1F C4 7F 90 00 48 [11:52:57]RAPDU: 48 29 BF 4C BA 1F C4 7F 90 00 [11:52:57]wFMCommunicate OK [11:52:57]SAM_PROTO_SignData done [11:52:57]FM_MakeSignedData done [11:52:57]CreateOFDProtocolMessage [11:52:57]wFMCommunicate request_size=4 [11:52:57]MH_SAM_APDU [11:52:57]CAPDU: 80 11 00 00 [11:52:57]Write to MH i2c: E2 08 00 F3 42 80 11 00 00 00 00 00 00 AF [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:57]Read from MH i2c: E2 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: E2 17 00 F3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [11:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:57]wFMCommunicate OK [11:52:57]CreateOFDProtocolMessage done [11:52:57]OFDSenderStorePacket 140131 [11:52:57]StoreOFDPacket docnum=140131 [11:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 93 08 01 50 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 94 00 00 00 F4 03 04 00 1B D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 23 02 00 35 04 06 00 85 11 D9 66 94 F0 48 29 BF 4C BA 1F C4 7F [11:52:57]CheckFolder [11:52:57]dirname=/storage/ofd_packets [11:52:57]CheckFolder done [11:52:57]ProducePacketName [11:52:57]name=ofd_packets/00140131 [11:52:57]NVStorageSaveData ofd_packets/00140131 [11:52:57]File name is /storage/ofd_packets/00140131 [11:52:57]Write 302 bytes [11:52:57]NVStorageSaveData done [11:52:57]OFDSenderStorePacket done [11:52:57]KKMCreateOFDPacket done [11:52:57]NVStorageSaveData kkm_last_timestamp [11:52:57]File name is /storage/kkm_last_timestamp [11:52:57]Write 4 bytes [11:52:57]NVStorageSaveData done [11:52:57]ExternCall_PrintAddStr [11:52:57]wPrintStart [11:52:57]Write to MH i2c: 01 00 00 F4 42 36 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 F4 42 00 00 00 00 00 FF 0F 4B [11:52:57]RasterBufferAndPrint [11:52:57]line Счет N : (1)593985 [11:52:57]line ИНН: 02508201610067 [11:52:57]line Контрольно-Кассовый Чек [11:52:57]line ПРОДАЖА [11:52:57]line ТРК (МРК, ГНК) : 54 [11:52:57]line Товар: 2710194210 [11:52:57]line ДТ(л)-К-5 [11:52:57]line 6.570 * 76.20 [11:52:57]line = 500.63 [11:52:57]line НДС 12% НСП 1% [11:52:57]line > о реализуемом товаре [11:52:57]line ОКРУГЛЕНИЕ: -0.63 [11:52:57]line ИТОГО: 500.00 [11:52:57]line Внесено: 500.00 [11:52:57]line СДАЧА: 0.00 [11:52:57]line НСП 1% : 4.43 [11:52:57]line НДС 12% : 53.16 [11:52:57]line Наличными: 500.00 [11:52:57]line Безнал.: 0.00 [11:52:57]line Место: АЗС № 136 "Партнер Нефть" [11:52:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:52:57]line СНО: Общий режим [11:52:57]line Чек 148 21.08.2024 11:52 [11:52:57]line Смена: 454 ФФД: 1.0 [11:52:57]line ЗНМ: 0300000067 [11:52:57]line РНМ: 0000000000092569 [11:52:57]line Версия ККМ: 001 [11:52:57]line ФМ: 0000000000871776 [11:52:57]line ФД: 140131 [11:52:57]line ФПД: 146311708316912 [11:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140131&fm=146311708316912&tin=02508201610067®Number=0000000000092569&sum=50000 [11:52:57]OFD Sender: Processing packet 140131 [packets to send 137, broken 136] [11:52:57]ProducePacketName [11:52:57]name=ofd_packets/00140131 [11:52:57]OFD Sender: To server: pG, [11:52:57]CommunicateWithHost lk.salyk.kg:30040 [11:52:57]ConnectInit lk.salyk.kg [11:52:57]written 0, free lines is 4095 [11:52:57]Connected sock=10 [11:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 93 08 01 50 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 94 00 00 00 F4 03 04 00 1B D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 23 02 00 35 04 06 00 85 11 D9 66 94 F0 48 29 BF 4C BA 1F C4 7F [11:52:58]Write to MH i2c: 01 00 00 1F 43 62 [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 07 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: 01 07 00 1F 43 00 00 00 00 00 CE 0C 43 [11:52:58]RasterBufferAndPrint [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]line [11:52:58]written 0, free lines is 3282 [11:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 7C 35 47 00 2C 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 37 36 10 04 04 00 63 23 02 00 F4 03 04 00 AB 7B C5 66 B6 04 01 00 00 CF 4C D9 73 7F 2B 8F FE [11:52:58]CommunicateWithHost err = 0 [11:52:58]CheckOFDResponse [11:52:58]1017 (14) - 77093643461234 [11:52:58]1041 (16) - 0000000000871776 [11:52:58]1040 (4) - 140131 [11:52:58]1012 (4) - 21.08.2024 05:31 [11:52:58]1206 (1) - 0 [11:52:58]OFD Sender: Remove packet 140131 [11:52:58]ProducePacketName [11:52:58]name=ofd_packets/00140131 [11:52:58]NVStorageDeleteData [11:52:58]MH_Cut [11:52:58]Write to MH i2c: D1 01 00 26 43 01 3B [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 01 00 [11:52:58]MH_I2C_Read... [11:52:58]Read from MH i2c: D1 01 00 26 43 00 3A [11:52:58]Write to MH i2c: 01 00 00 27 43 6A [11:52:58]Write i2c OK [11:52:58]MH_I2C_Read... [11:52:58]OFD Sender: No OFD packet to send [11:52:58]*** Cut start [11:52:58]*** Partial cut [11:52:58]*** CUTSNS_PIN = 1 [11:52:58]*** CUTSNS_PIN = 0 [11:52:58]*** Brake cut motor [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]*** Stop cut motor [11:52:59]*** Cut end [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 27 43 00 00 00 00 00 FF 0F 7F [11:52:59]process_action close_receipt done [11:52:59]requested_data is exist [11:52:59]produce_requested_data [11:52:59]requested_item fm.sn is exist - process it [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 11 00 00 [11:52:59]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [11:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:52:59]wFMCommunicate OK [11:52:59]requested_item fd.num is exist - process it [11:52:59]SAM_PROTO_GetFieldsCounters [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 13 00 00 [11:52:59]Write to MH i2c: E2 08 00 29 43 80 13 00 00 00 00 00 00 E8 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 62 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 62 00 29 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:52:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_GetFieldsCounters done [11:52:59]requested_item shift.num is exist - process it [11:52:59]requested_item shift.opened is exist - process it [11:52:59]req_shift_opened [11:52:59]FM_GetShiftState [11:52:59]SAM_PROTO_GetShiftState [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 13 01 00 [11:52:59]Write to MH i2c: E2 08 00 2A 43 80 13 01 00 00 00 00 00 EA [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0E 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0E 00 2A 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6A [11:52:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_GetShiftState done [11:52:59]FM_GetShiftState done [11:52:59]req_shift_opened done [11:52:59]requested_item shift.open_date is exist - process it [11:52:59]req_shift_open_date [11:52:59]req_shift_open_date done [11:52:59]produce_requested_data done [11:52:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140131,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:52:59]process_action_free close_receipt [11:52:59]json_value_free [11:52:59]json_value_free done [11:52:59]process_json_proto returns [11:52:59]Send response to host [11:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140131,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:52:59]free response buf [11:52:59]execute_script done [11:52:59]execute_script returns [11:52:59]free content buf [11:52:59]Sock 7.Close socket [11:52:59]Sock 7.Thread stoped [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]int [11:55:53]Write to MH i2c: 01 00 00 2B 43 6E [11:55:53]*** FLAG_PRN_KEY set [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 2B 43 00 08 00 00 00 FF 0F 8B [11:55:53]state=0 [11:55:53]Key pressed [11:55:53]Feed [11:55:53]Write to MH i2c: D8 00 00 2C 43 46 [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: D8 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: D8 01 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: D8 01 00 2C 43 00 47 [11:55:53]int [11:55:53]Write to MH i2c: 01 00 00 2D 43 70 [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 2D 43 00 48 00 00 00 3C 00 FB [11:55:53]state=2 [11:55:53]Key pressed [11:55:53]int [11:55:53]Write to MH i2c: 01 00 00 2E 43 71 [11:55:53]*** FLAG_PRN_KEY reset [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 2E 43 00 00 00 00 00 F8 0F 7F [11:55:53]state=2 [11:55:53]Stop feed [11:55:53]OFD Sender: No OFD packet to send [11:55:57]accept exits with 9 [11:55:57]New connection [11:55:57]New thread 3066908004 created [11:55:57]Thread 3066764644 joined [11:55:57]Waiting for new connection... [11:55:57] Sock 9.Parse request [11:55:57]Sock 9.Check first char [11:55:57]Sock 9.First char is OK [11:55:57]request: POST /json_proto HTTP/1.0 [11:55:57]Method: POST [11:55:57]URL: /json_proto [11:55:57]Method is POST - this is cgi request [11:55:57]url: /json_proto [11:55:57]query_string will be loaded in cgi processing [11:55:57]execute_cgi json_proto POST (null) [11:55:57]execute_cgi path=json_proto method=POST [11:55:57]POST find Content-Length [11:55:57]Host: 172.17.45.67:8080 [11:55:57]Content-Length: 687 [11:55:57]Content-Type: application/json [11:55:57] [11:55:57]POST finish read [11:55:57]Found Content-Length = 687 [11:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:55:57]execute_script... [11:55: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)593988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:55:57]POST & json_proto [11:55:57]process_json_proto [11:55:57]json parsed OK: [11:55:57]protocol is kg_v1.0 [11:55:57]action value=close_receipt [11:55:57]process_action close_receipt [11:55:57]cmd_close_receipt [11:55:57]MH_GetDate [11:55:57]Write to MH i2c: F0 00 00 2F 43 61 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 2F 43 00 D1 D5 C5 66 5F 7F 2B 66 AA [11:55:57]GetLastDocTimeStamp 1724241179 [11:55:57]current date 1724241361 [11:55:57]FM_GetShiftState [11:55:57]SAM_PROTO_GetShiftState [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 13 01 00 [11:55:57]Write to MH i2c: E2 08 00 30 43 80 13 01 00 00 00 00 00 F0 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 30 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [11:55:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:55:57]wFMCommunicate OK [11:55:57]SAM_PROTO_GetShiftState done [11:55:57]FM_GetShiftState done [11:55:57]opened in 1724200467 [11:55:57]opened+sec_in_day 1724286867 [11:55:57]quantity*price = 100050 [11:55:57]sum+1 = 100052 [11:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 149 21.08.2024 11:56 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140132 ФПД: 199856905976657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140132&fm=199856905976657&tin=02508201610067®Number=0000000000092569&sum=100000 [11:55:58]StoreToDocumentArchive [11:55:58]shift 454 fd 140132 [11:55:58]save to /storage/0454/doc_00140132 [11:55:58]save last doc name /storage/0454/doc_00140132 to /storage/kkm_last_doc_name [11:55:58]save OK [11:55:58]Clear old archive folders... [11:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:55:58]tlvbuf is 00A682B0 [11:55:58]SAM_PROTO_ClearQueue [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 09 00 00 [11:55:58]Write to MH i2c: E2 08 00 3D 43 80 09 00 00 00 00 00 00 F2 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 3D 43 00 90 00 F4 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_ClearQueue done [11:55:58]KKMCreateOFDPacket [11:55:58]OFDProtocolAddRootSTLVToBuf [11:55:58]FM_MakeSignedData [11:55:58]FM_MakeSignedData [11:55:58]SAM_PROTO_SignData [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 01 02 [11:55:58]Write to MH i2c: E2 08 00 3E 43 80 0D 01 02 00 00 00 00 FA [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 3E 43 00 90 00 F5 [11:55:59]RAPDU: 90 00 [11:55:59]wFMCommunicate OK [11:55:59]wFMCommunicate request_size=255 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 95 00 00 00 F4 03 04 00 D1 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 23 02 00 35 04 06 00 [11:55:59]Write to MH i2c: E2 02 01 3F 43 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 95 00 00 00 F4 03 04 00 D1 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 23 02 00 35 04 06 00 00 00 27 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 3F 43 00 90 00 F6 [11:55:59]RAPDU: 90 00 [11:55:59]wFMCommunicate OK [11:55:59]wFMCommunicate request_size=11 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 0D 02 02 06 B5 C4 CF E2 FB 51 [11:55:59]Write to MH i2c: E2 0E 00 40 43 80 0D 02 02 06 00 B5 C4 CF E2 FB 51 00 00 7F [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 03 00 40 43 00 90 00 F7 [11:55:59]RAPDU: 90 00 [11:55:59]wFMCommunicate OK [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 0D 03 02 [11:55:59]Write to MH i2c: E2 08 00 41 43 80 0D 03 02 00 00 00 00 FF [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0B 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 0B 00 41 43 00 A8 1A 12 9F 46 FC 3F 93 90 00 87 [11:55:59]RAPDU: A8 1A 12 9F 46 FC 3F 93 90 00 [11:55:59]wFMCommunicate OK [11:55:59]SAM_PROTO_SignData done [11:55:59]FM_MakeSignedData done [11:55:59]CreateOFDProtocolMessage [11:55:59]wFMCommunicate request_size=4 [11:55:59]MH_SAM_APDU [11:55:59]CAPDU: 80 11 00 00 [11:55:59]Write to MH i2c: E2 08 00 42 43 80 11 00 00 00 00 00 00 FF [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:59]Read from MH i2c: E2 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 17 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: E2 17 00 42 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [11:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:55:59]wFMCommunicate OK [11:55:59]CreateOFDProtocolMessage done [11:55:59]OFDSenderStorePacket 140132 [11:55:59]StoreOFDPacket docnum=140132 [11:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 EA 02 08 01 9B D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 95 00 00 00 F4 03 04 00 D1 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 23 02 00 35 04 06 00 B5 C4 CF E2 FB 51 A8 1A 12 9F 46 FC 3F 93 [11:55:59]CheckFolder [11:55:59]dirname=/storage/ofd_packets [11:55:59]CheckFolder done [11:55:59]ProducePacketName [11:55:59]name=ofd_packets/00140132 [11:55:59]NVStorageSaveData ofd_packets/00140132 [11:55:59]File name is /storage/ofd_packets/00140132 [11:55:59]Write 302 bytes [11:55:59]NVStorageSaveData done [11:55:59]OFDSenderStorePacket done [11:55:59]KKMCreateOFDPacket done [11:55:59]NVStorageSaveData kkm_last_timestamp [11:55:59]File name is /storage/kkm_last_timestamp [11:55:59]Write 4 bytes [11:55:59]NVStorageSaveData done [11:55:59]ExternCall_PrintAddStr [11:55:59]wPrintStart [11:55:59]Write to MH i2c: 01 00 00 43 43 86 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 43 43 00 00 00 00 00 FF 0F 9B [11:55:59]RasterBufferAndPrint [11:55:59]line Счет N : (1)593988 [11:55:59]line ИНН: 02508201610067 [11:55:59]line Контрольно-Кассовый Чек [11:55:59]line ПРОДАЖА [11:55:59]line ТРК (МРК, ГНК) : 44 [11:55:59]line Товар: 2710194210 [11:55:59]line ДТ(л)-К-5 [11:55:59]line 13.130 * 76.20 [11:55:59]line = 1000.51 [11:55:59]line НДС 12% НСП 1% [11:55:59]line > о реализуемом товаре [11:55:59]line ОКРУГЛЕНИЕ: -0.51 [11:55:59]line ИТОГО: 1000.00 [11:55:59]line Внесено: 1000.00 [11:55:59]line СДАЧА: 0.00 [11:55:59]line НСП 1% : 8.85 [11:55:59]line НДС 12% : 106.25 [11:55:59]line Наличными: 1000.00 [11:55:59]line Безнал.: 0.00 [11:55:59]line Место: АЗС № 136 "Партнер Нефть" [11:55:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:55:59]line СНО: Общий режим [11:55:59]line Чек 149 21.08.2024 11:56 [11:55:59]line Смена: 454 ФФД: 1.0 [11:55:59]line ЗНМ: 0300000067 [11:55:59]line РНМ: 0000000000092569 [11:55:59]line Версия ККМ: 001 [11:55:59]line ФМ: 0000000000871776 [11:55:59]line ФД: 140132 [11:55:59]line ФПД: 199856905976657 [11:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140132&fm=199856905976657&tin=02508201610067®Number=0000000000092569&sum=100000 [11:55:59]OFD Sender: Processing packet 140132 [packets to send 137, broken 136] [11:55:59]ProducePacketName [11:55:59]name=ofd_packets/00140132 [11:55:59]OFD Sender: To server: pG, [11:55:59]CommunicateWithHost lk.salyk.kg:30040 [11:55:59]ConnectInit lk.salyk.kg [11:55:59]written 0, free lines is 4095 [11:55:59]Connected sock=10 [11:55: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 37 36 10 01 00 00 EA 02 08 01 9B D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 95 00 00 00 F4 03 04 00 D1 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 23 02 00 35 04 06 00 B5 C4 CF E2 FB 51 A8 1A 12 9F 46 FC 3F 93 [11:56: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 37 36 4F 00 00 00 A9 83 47 00 E8 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 37 36 10 04 04 00 64 23 02 00 F4 03 04 00 62 7C C5 66 B6 04 01 00 00 1E 54 71 1E 84 8F DE 50 [11:56:00]CommunicateWithHost err = 0 [11:56:00]CheckOFDResponse [11:56:00]1017 (14) - 77093643461234 [11:56:00]1041 (16) - 0000000000871776 [11:56:00]1040 (4) - 140132 [11:56:00]1012 (4) - 21.08.2024 05:34 [11:56:00]1206 (1) - 0 [11:56:00]OFD Sender: Remove packet 140132 [11:56:00]ProducePacketName [11:56:00]name=ofd_packets/00140132 [11:56:00]NVStorageDeleteData [11:56:00]Write to MH i2c: 01 00 00 6E 43 B1 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: 01 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: 01 07 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: 01 07 00 6E 43 00 00 00 00 00 D2 0C 96 [11:56:00]RasterBufferAndPrint [11:56:00]line [11:56:00]line [11:56:00]line [11:56:00]line [11:56:00]line [11:56:00]written 0, free lines is 3287 [11:56:00]MH_Cut [11:56:00]Write to MH i2c: D1 01 00 75 43 01 8A [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: D1 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: D1 01 00 [11:56:00]MH_I2C_Read... [11:56:00]Read from MH i2c: D1 01 00 75 43 00 89 [11:56:00]Write to MH i2c: 01 00 00 76 43 B9 [11:56:00]Write i2c OK [11:56:00]MH_I2C_Read... [11:56:00]OFD Sender: No OFD packet to send [11:56:01]*** Cut start [11:56:01]*** Partial cut [11:56:01]*** CUTSNS_PIN = 1 [11:56:01]*** CUTSNS_PIN = 0 [11:56:01]*** Brake cut motor [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]*** Stop cut motor [11:56:01]*** Cut end [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 76 43 00 00 00 00 00 FF 0F CE [11:56:01]process_action close_receipt done [11:56:01]requested_data is exist [11:56:01]produce_requested_data [11:56:01]requested_item fm.sn is exist - process it [11:56:01]wFMCommunicate request_size=4 [11:56:01]MH_SAM_APDU [11:56:01]CAPDU: 80 11 00 00 [11:56:01]Write to MH i2c: E2 08 00 77 43 80 11 00 00 00 00 00 00 34 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:01]Read from MH i2c: E2 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 17 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 17 00 77 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [11:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:56:01]wFMCommunicate OK [11:56:01]requested_item fd.num is exist - process it [11:56:01]SAM_PROTO_GetFieldsCounters [11:56:01]wFMCommunicate request_size=4 [11:56:01]MH_SAM_APDU [11:56:01]CAPDU: 80 13 00 00 [11:56:01]Write to MH i2c: E2 08 00 78 43 80 13 00 00 00 00 00 00 37 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:01]Read from MH i2c: E2 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 62 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 62 00 78 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [11:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:01]wFMCommunicate OK [11:56:01]SAM_PROTO_GetFieldsCounters done [11:56:01]requested_item shift.num is exist - process it [11:56:01]requested_item shift.opened is exist - process it [11:56:01]req_shift_opened [11:56:01]FM_GetShiftState [11:56:01]SAM_PROTO_GetShiftState [11:56:01]wFMCommunicate request_size=4 [11:56:01]MH_SAM_APDU [11:56:01]CAPDU: 80 13 01 00 [11:56:01]Write to MH i2c: E2 08 00 79 43 80 13 01 00 00 00 00 00 39 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]int [11:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:01]*** FLAG_PRN_KEY set [11:56:01]Read from MH i2c: E2 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 0E 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: E2 0E 00 79 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B9 [11:56:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:56:01]wFMCommunicate OK [11:56:01]SAM_PROTO_GetShiftState done [11:56:01]FM_GetShiftState done [11:56:01]req_shift_opened done [11:56:01]requested_item shift.open_date is exist - process it [11:56:01]req_shift_open_date [11:56:01]req_shift_open_date done [11:56:01]produce_requested_data done [11:56:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140132,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:56:01]process_action_free close_receipt [11:56:01]json_value_free [11:56:01]json_value_free done [11:56:01]process_json_proto returns [11:56:01]Send response to host [11:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140132,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:56:01]free response buf [11:56:01]execute_script done [11:56:01]execute_script returns [11:56:01]free content buf [11:56:01]Sock 9.Close socket [11:56:01]Sock 9.Thread stoped [11:56:01]Write to MH i2c: 01 00 00 7A 43 BD [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 7A 43 00 08 00 00 00 FF 0F DA [11:56:01]state=0 [11:56:01]Key pressed [11:56:01]Feed [11:56:01]Write to MH i2c: D8 00 00 7B 43 95 [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: D8 01 00 7B 43 00 96 [11:56:01]int [11:56:01]Write to MH i2c: 01 00 00 7C 43 BF [11:56:01]Write i2c OK [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 [11:56:01]MH_I2C_Read... [11:56:01]Read from MH i2c: 01 07 00 7C 43 00 48 00 00 00 3C 00 4A [11:56:01]state=2 [11:56:01]Key pressed [11:56:02]int [11:56:02]Write to MH i2c: 01 00 00 7D 43 C0 [11:56:02]*** FLAG_PRN_KEY reset [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 07 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 07 00 7D 43 00 00 00 00 00 F9 0F CF [11:56:02]state=2 [11:56:02]Stop feed [11:56:02]accept exits with 7 [11:56:02]New connection [11:56:02]New thread 3066764644 created [11:56:02]Thread 3066908004 joined [11:56:02]Waiting for new connection... [11:56:02] Sock 7.Parse request [11:56:02]Sock 7.Check first char [11:56:02]Sock 7.First char is OK [11:56:02]request: POST /json_proto HTTP/1.0 [11:56:02]Method: POST [11:56:02]URL: /json_proto [11:56:02]Method is POST - this is cgi request [11:56:02]url: /json_proto [11:56:02]query_string will be loaded in cgi processing [11:56:02]execute_cgi json_proto POST (null) [11:56:02]execute_cgi path=json_proto method=POST [11:56:02]POST find Content-Length [11:56:02]Host: 172.17.45.67:8080 [11:56:02]Content-Length: 677 [11:56:02]Content-Type: application/json [11:56:02] [11:56:02]POST finish read [11:56:02]Found Content-Length = 677 [11:56:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:02]execute_script... [11:56: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)593986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:02]POST & json_proto [11:56:02]process_json_proto [11:56:02]json parsed OK: [11:56:02]protocol is kg_v1.0 [11:56:02]action value=close_receipt [11:56:02]process_action close_receipt [11:56:02]cmd_close_receipt [11:56:02]MH_GetDate [11:56:02]Write to MH i2c: F0 00 00 7E 43 B0 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: F0 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: F0 09 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: F0 09 00 7E 43 00 D5 D5 C5 66 5F 7F 2B 66 FD [11:56:02]GetLastDocTimeStamp 1724241361 [11:56:02]current date 1724241365 [11:56:02]FM_GetShiftState [11:56:02]SAM_PROTO_GetShiftState [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 13 01 00 [11:56:02]Write to MH i2c: E2 08 00 7F 43 80 13 01 00 00 00 00 00 3F [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0E 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0E 00 7F 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [11:56:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:56:02]wFMCommunicate OK [11:56:02]SAM_PROTO_GetShiftState done [11:56:02]FM_GetShiftState done [11:56:02]opened in 1724200467 [11:56:02]opened+sec_in_day 1724286867 [11:56:02]quantity*price = 50036 [11:56:02]sum+1 = 50037 [11:56:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 150 21.08.2024 11:56 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140133 ФПД: 178044603409523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140133&fm=178044603409523&tin=02508201610067®Number=0000000000092569&sum=50000 [11:56:03]StoreToDocumentArchive [11:56:03]shift 454 fd 140133 [11:56:03]save to /storage/0454/doc_00140133 [11:56:03]save last doc name /storage/0454/doc_00140133 to /storage/kkm_last_doc_name [11:56:03]save OK [11:56:03]Clear old archive folders... [11:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:03]tlvbuf is 00A60B50 [11:56:03]SAM_PROTO_ClearQueue [11:56:03]wFMCommunicate request_size=4 [11:56:03]MH_SAM_APDU [11:56:03]CAPDU: 80 09 00 00 [11:56:03]Write to MH i2c: E2 08 00 8E 43 80 09 00 00 00 00 00 00 43 [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:03]Read from MH i2c: E2 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: E2 03 00 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: E2 03 00 8E 43 00 90 00 45 [11:56:03]RAPDU: 90 00 [11:56:03]wFMCommunicate OK [11:56:03]SAM_PROTO_ClearQueue done [11:56:03]KKMCreateOFDPacket [11:56:03]OFDProtocolAddRootSTLVToBuf [11:56:03]FM_MakeSignedData [11:56:03]FM_MakeSignedData [11:56:03]SAM_PROTO_SignData [11:56:03]wFMCommunicate request_size=4 [11:56:03]MH_SAM_APDU [11:56:03]CAPDU: 80 0D 01 02 [11:56:03]Write to MH i2c: E2 08 00 8F 43 80 0D 01 02 00 00 00 00 4B [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:03]Read from MH i2c: E2 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: E2 03 00 [11:56:03]MH_I2C_Read... [11:56:03]Read from MH i2c: E2 03 00 8F 43 00 90 00 46 [11:56:03]RAPDU: 90 00 [11:56:03]wFMCommunicate OK [11:56:03]wFMCommunicate request_size=255 [11:56:03]MH_SAM_APDU [11:56: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 23 02 00 35 04 06 00 A1 [11:56:03]Write to MH i2c: E2 02 01 90 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 23 02 00 35 04 06 00 A1 00 00 31 [11:56:03]Write i2c OK [11:56:03]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 03 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 03 00 90 43 00 90 00 47 [11:56:04]RAPDU: 90 00 [11:56:04]wFMCommunicate OK [11:56:04]wFMCommunicate request_size=10 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 0D 02 02 05 EE 3D 57 24 73 [11:56:04]Write to MH i2c: E2 0D 00 91 43 80 0D 02 02 05 00 EE 3D 57 24 73 00 00 71 [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 03 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 03 00 91 43 00 90 00 48 [11:56:04]RAPDU: 90 00 [11:56:04]wFMCommunicate OK [11:56:04]wFMCommunicate request_size=4 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 0D 03 02 [11:56:04]Write to MH i2c: E2 08 00 92 43 80 0D 03 02 00 00 00 00 50 [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 0B 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 0B 00 92 43 00 5C 3A 92 67 F2 0D DD 84 90 00 40 [11:56:04]RAPDU: 5C 3A 92 67 F2 0D DD 84 90 00 [11:56:04]wFMCommunicate OK [11:56:04]SAM_PROTO_SignData done [11:56:04]FM_MakeSignedData done [11:56:04]CreateOFDProtocolMessage [11:56:04]wFMCommunicate request_size=4 [11:56:04]MH_SAM_APDU [11:56:04]CAPDU: 80 11 00 00 [11:56:04]Write to MH i2c: E2 08 00 93 43 80 11 00 00 00 00 00 00 50 [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:04]Read from MH i2c: E2 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 17 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: E2 17 00 93 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A7 [11:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:56:04]wFMCommunicate OK [11:56:04]CreateOFDProtocolMessage done [11:56:04]OFDSenderStorePacket 140133 [11:56:04]StoreOFDPacket docnum=140133 [11:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E 37 07 01 73 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 23 02 00 35 04 06 00 A1 EE 3D 57 24 73 5C 3A 92 67 F2 0D DD 84 [11:56:04]CheckFolder [11:56:04]dirname=/storage/ofd_packets [11:56:04]CheckFolder done [11:56:04]ProducePacketName [11:56:04]name=ofd_packets/00140133 [11:56:04]NVStorageSaveData ofd_packets/00140133 [11:56:04]File name is /storage/ofd_packets/00140133 [11:56:04]Write 301 bytes [11:56:04]NVStorageSaveData done [11:56:04]OFDSenderStorePacket done [11:56:04]KKMCreateOFDPacket done [11:56:04]NVStorageSaveData kkm_last_timestamp [11:56:04]File name is /storage/kkm_last_timestamp [11:56:04]Write 4 bytes [11:56:04]NVStorageSaveData done [11:56:04]ExternCall_PrintAddStr [11:56:04]wPrintStart [11:56:04]Write to MH i2c: 01 00 00 94 43 D7 [11:56:04]Write i2c OK [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: 01 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: 01 07 00 [11:56:04]MH_I2C_Read... [11:56:04]Read from MH i2c: 01 07 00 94 43 00 00 00 00 00 FF 0F EC [11:56:04]RasterBufferAndPrint [11:56:04]line Счет N : (1)593986 [11:56:04]line ИНН: 02508201610067 [11:56:04]line Контрольно-Кассовый Чек [11:56:04]line ПРОДАЖА [11:56:04]line ТРК (МРК, ГНК) : 52 [11:56:04]line Товар: 2710124130 [11:56:04]line Аи-92-К-5 [11:56:04]line 7.380 * 67.80 [11:56:04]line = 500.36 [11:56:04]line НДС 12% НСП 1% [11:56:04]line > о реализуемом товаре [11:56:04]line ОКРУГЛЕНИЕ: -0.36 [11:56:04]line ИТОГО: 500.00 [11:56:04]line Внесено: 500.00 [11:56:04]line СДАЧА: 0.00 [11:56:04]line НСП 1% : 4.43 [11:56:04]line НДС 12% : 53.14 [11:56:04]line Наличными: 500.00 [11:56:04]line Безнал.: 0.00 [11:56:04]line Место: АЗС № 136 "Партнер Нефть" [11:56:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:56:04]line СНО: Общий режим [11:56:04]line Чек 150 21.08.2024 11:56 [11:56:04]line Смена: 454 ФФД: 1.0 [11:56:04]line ЗНМ: 0300000067 [11:56:04]line РНМ: 0000000000092569 [11:56:04]line Версия ККМ: 001 [11:56:04]line ФМ: 0000000000871776 [11:56:04]line ФД: 140133 [11:56:04]line ФПД: 178044603409523 [11:56:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115605&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140133&fm=178044603409523&tin=02508201610067®Number=0000000000092569&sum=50000 [11:56:04]OFD Sender: Processing packet 140133 [packets to send 137, broken 136] [11:56:04]ProducePacketName [11:56:04]name=ofd_packets/00140133 [11:56:04]OFD Sender: To server: pG, [11:56:04]CommunicateWithHost lk.salyk.kg:30040 [11:56:04]ConnectInit lk.salyk.kg [11:56:04]written 0, free lines is 4095 [11:56:04]Connected sock=10 [11:56: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 37 36 0F 01 00 00 1E 37 07 01 73 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 D5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 23 02 00 35 04 06 00 A1 EE 3D 57 24 73 5C 3A 92 67 F2 0D DD 84 [11:56: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 37 36 4F 00 00 00 B2 C7 47 00 3C 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 23 02 00 F4 03 04 00 66 7C C5 66 B6 04 01 00 00 43 01 FC 3C EE B7 AF E2 [11:56:05]CommunicateWithHost err = 0 [11:56:05]CheckOFDResponse [11:56:05]1017 (14) - 77093643461234 [11:56:05]1041 (16) - 0000000000871776 [11:56:05]1040 (4) - 140133 [11:56:05]1012 (4) - 21.08.2024 05:34 [11:56:05]1206 (1) - 0 [11:56:05]OFD Sender: Remove packet 140133 [11:56:05]ProducePacketName [11:56:05]name=ofd_packets/00140133 [11:56:05]NVStorageDeleteData [11:56:05]Write to MH i2c: 01 00 00 BF 43 02 [11:56:05]Write i2c OK [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: 01 [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: 01 07 00 [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: 01 07 00 BF 43 00 00 00 00 00 F8 0C 0D [11:56:05]RasterBufferAndPrint [11:56:05]line [11:56:05]line [11:56:05]line [11:56:05]line [11:56:05]line [11:56:05]written 0, free lines is 3340 [11:56:05]MH_Cut [11:56:05]Write to MH i2c: D1 01 00 C6 43 01 DB [11:56:05]Write i2c OK [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: D1 [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: D1 01 00 [11:56:05]MH_I2C_Read... [11:56:05]Read from MH i2c: D1 01 00 C6 43 00 DA [11:56:05]Write to MH i2c: 01 00 00 C7 43 0A [11:56:05]Write i2c OK [11:56:05]MH_I2C_Read... [11:56:05]OFD Sender: No OFD packet to send [11:56:05]*** Cut start [11:56:05]*** Partial cut [11:56:05]*** CUTSNS_PIN = 1 [11:56:05]*** CUTSNS_PIN = 0 [11:56:06]*** Brake cut motor [11:56:06]Read from MH i2c: 01 [11:56:06]MH_I2C_Read... [11:56:06]*** Stop cut motor [11:56:06]*** Cut end [11:56:06]Read from MH i2c: 01 07 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: 01 07 00 C7 43 00 00 00 00 00 FF 0F 1F [11:56:06]process_action close_receipt done [11:56:06]requested_data is exist [11:56:06]produce_requested_data [11:56:06]requested_item fm.sn is exist - process it [11:56:06]wFMCommunicate request_size=4 [11:56:06]MH_SAM_APDU [11:56:06]CAPDU: 80 11 00 00 [11:56:06]Write to MH i2c: E2 08 00 C8 43 80 11 00 00 00 00 00 00 85 [11:56:06]Write i2c OK [11:56:06]MH_I2C_Read... [11:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:06]Read from MH i2c: E2 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 17 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 17 00 C8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DC [11:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:56:06]wFMCommunicate OK [11:56:06]requested_item fd.num is exist - process it [11:56:06]SAM_PROTO_GetFieldsCounters [11:56:06]wFMCommunicate request_size=4 [11:56:06]MH_SAM_APDU [11:56:06]CAPDU: 80 13 00 00 [11:56:06]Write to MH i2c: E2 08 00 C9 43 80 13 00 00 00 00 00 00 88 [11:56:06]Write i2c OK [11:56:06]MH_I2C_Read... [11:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:06]Read from MH i2c: E2 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 62 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 62 00 C9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:06]wFMCommunicate OK [11:56:06]SAM_PROTO_GetFieldsCounters done [11:56:06]requested_item shift.num is exist - process it [11:56:06]requested_item shift.opened is exist - process it [11:56:06]req_shift_opened [11:56:06]FM_GetShiftState [11:56:06]SAM_PROTO_GetShiftState [11:56:06]wFMCommunicate request_size=4 [11:56:06]MH_SAM_APDU [11:56:06]CAPDU: 80 13 01 00 [11:56:06]Write to MH i2c: E2 08 00 CA 43 80 13 01 00 00 00 00 00 8A [11:56:06]Write i2c OK [11:56:06]MH_I2C_Read... [11:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:06]Read from MH i2c: E2 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 0E 00 [11:56:06]MH_I2C_Read... [11:56:06]Read from MH i2c: E2 0E 00 CA 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0A [11:56:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:56:06]wFMCommunicate OK [11:56:06]SAM_PROTO_GetShiftState done [11:56:06]FM_GetShiftState done [11:56:06]req_shift_opened done [11:56:06]requested_item shift.open_date is exist - process it [11:56:06]req_shift_open_date [11:56:06]req_shift_open_date done [11:56:06]produce_requested_data done [11:56:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140133,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:56:06]process_action_free close_receipt [11:56:06]json_value_free [11:56:06]json_value_free done [11:56:06]process_json_proto returns [11:56:06]Send response to host [11:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140133,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:56:06]free response buf [11:56:06]execute_script done [11:56:06]execute_script returns [11:56:06]free content buf [11:56:06]Sock 7.Close socket [11:56:06]Sock 7.Thread stoped [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:56:59]accept exits with 9 [11:56:59]New connection [11:56:59]New thread 3066908004 created [11:56:59]Thread 3066764644 joined [11:56:59]Waiting for new connection... [11:56:59] Sock 9.Parse request [11:56:59]Sock 9.Check first char [11:56:59]Sock 9.First char is OK [11:56:59]request: POST /json_proto HTTP/1.0 [11:56:59]Method: POST [11:56:59]URL: /json_proto [11:56:59]Method is POST - this is cgi request [11:56:59]url: /json_proto [11:56:59]query_string will be loaded in cgi processing [11:56:59]execute_cgi json_proto POST (null) [11:56:59]execute_cgi path=json_proto method=POST [11:56:59]POST find Content-Length [11:56:59]Host: 172.17.45.67:8080 [11:56:59]Content-Length: 677 [11:56:59]Content-Type: application/json [11:56:59] [11:56:59]POST finish read [11:56:59]Found Content-Length = 677 [11:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:59]execute_script... [11:56: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)593987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:59]POST & json_proto [11:56:59]process_json_proto [11:56:59]json parsed OK: [11:56:59]protocol is kg_v1.0 [11:56:59]action value=close_receipt [11:56:59]process_action close_receipt [11:56:59]cmd_close_receipt [11:56:59]MH_GetDate [11:56:59]Write to MH i2c: F0 00 00 CB 43 FD [11:56:59]Write i2c OK [11:56:59]MH_I2C_Read... [11:56:59]Read from MH i2c: F0 [11:56:59]MH_I2C_Read... [11:56:59]Read from MH i2c: F0 09 00 [11:56:59]MH_I2C_Read... [11:56:59]Read from MH i2c: F0 09 00 CB 43 00 0E D6 C5 66 5F 7F 2B 66 84 [11:56:59]GetLastDocTimeStamp 1724241365 [11:56:59]current date 1724241422 [11:56:59]FM_GetShiftState [11:56:59]SAM_PROTO_GetShiftState [11:56:59]wFMCommunicate request_size=4 [11:56:59]MH_SAM_APDU [11:56:59]CAPDU: 80 13 01 00 [11:56:59]Write to MH i2c: E2 08 00 CC 43 80 13 01 00 00 00 00 00 8C [11:56:59]Write i2c OK [11:56:59]MH_I2C_Read... [11:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:59]Read from MH i2c: E2 [11:56:59]MH_I2C_Read... [11:56:59]Read from MH i2c: E2 0E 00 [11:56:59]MH_I2C_Read... [11:56:59]Read from MH i2c: E2 0E 00 CC 43 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0C [11:56:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:56:59]wFMCommunicate OK [11:56:59]SAM_PROTO_GetShiftState done [11:56:59]FM_GetShiftState done [11:56:59]opened in 1724200467 [11:56:59]opened+sec_in_day 1724286867 [11:56:59]quantity*price = 60027 [11:56:59]sum+1 = 60029 [11:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 151 21.08.2024 11:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140134 ФПД: 195874691752019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140134&fm=195874691752019&tin=02508201610067®Number=0000000000092569&sum=60000 [11:57:00]StoreToDocumentArchive [11:57:00]shift 454 fd 140134 [11:57:00]save to /storage/0454/doc_00140134 [11:57:00]save last doc name /storage/0454/doc_00140134 to /storage/kkm_last_doc_name [11:57:00]save OK [11:57:00]Clear old archive folders... [11:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:00]tlvbuf is 00B872E0 [11:57:00]SAM_PROTO_ClearQueue [11:57:00]wFMCommunicate request_size=4 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 09 00 00 [11:57:00]Write to MH i2c: E2 08 00 D9 43 80 09 00 00 00 00 00 00 8E [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 D9 43 00 90 00 90 [11:57:00]RAPDU: 90 00 [11:57:00]wFMCommunicate OK [11:57:00]SAM_PROTO_ClearQueue done [11:57:00]KKMCreateOFDPacket [11:57:00]OFDProtocolAddRootSTLVToBuf [11:57:00]FM_MakeSignedData [11:57:00]FM_MakeSignedData [11:57:00]SAM_PROTO_SignData [11:57:00]wFMCommunicate request_size=4 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 0D 01 02 [11:57:00]Write to MH i2c: E2 08 00 DA 43 80 0D 01 02 00 00 00 00 96 [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 DA 43 00 90 00 91 [11:57:00]RAPDU: 90 00 [11:57:00]wFMCommunicate OK [11:57:00]wFMCommunicate request_size=255 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0E D6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 23 02 00 35 04 06 00 B2 [11:57:00]Write to MH i2c: E2 02 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0E D6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 23 02 00 35 04 06 00 B2 00 00 37 [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 DB 43 00 90 00 92 [11:57:00]RAPDU: 90 00 [11:57:00]wFMCommunicate OK [11:57:00]wFMCommunicate request_size=10 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 0D 02 02 05 25 A1 6C 20 53 [11:57:00]Write to MH i2c: E2 0D 00 DC 43 80 0D 02 02 05 00 25 A1 6C 20 53 00 00 48 [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 03 00 DC 43 00 90 00 93 [11:57:00]RAPDU: 90 00 [11:57:00]wFMCommunicate OK [11:57:00]wFMCommunicate request_size=4 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 0D 03 02 [11:57:00]Write to MH i2c: E2 08 00 DD 43 80 0D 03 02 00 00 00 00 9B [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:00]OFD Sender: No OFD packet to send [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 0B 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 0B 00 DD 43 00 32 79 51 18 6B 6F C4 B0 90 00 FE [11:57:00]RAPDU: 32 79 51 18 6B 6F C4 B0 90 00 [11:57:00]wFMCommunicate OK [11:57:00]SAM_PROTO_SignData done [11:57:00]FM_MakeSignedData done [11:57:00]CreateOFDProtocolMessage [11:57:00]wFMCommunicate request_size=4 [11:57:00]MH_SAM_APDU [11:57:00]CAPDU: 80 11 00 00 [11:57:00]Write to MH i2c: E2 08 00 DE 43 80 11 00 00 00 00 00 00 9B [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:00]Read from MH i2c: E2 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 17 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: E2 17 00 DE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [11:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:57:00]wFMCommunicate OK [11:57:00]CreateOFDProtocolMessage done [11:57:00]OFDSenderStorePacket 140134 [11:57:00]StoreOFDPacket docnum=140134 [11:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 97 07 01 C5 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0E D6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 23 02 00 35 04 06 00 B2 25 A1 6C 20 53 32 79 51 18 6B 6F C4 B0 [11:57:00]CheckFolder [11:57:00]dirname=/storage/ofd_packets [11:57:00]CheckFolder done [11:57:00]ProducePacketName [11:57:00]name=ofd_packets/00140134 [11:57:00]NVStorageSaveData ofd_packets/00140134 [11:57:00]File name is /storage/ofd_packets/00140134 [11:57:00]Write 301 bytes [11:57:00]NVStorageSaveData done [11:57:00]OFDSenderStorePacket done [11:57:00]KKMCreateOFDPacket done [11:57:00]NVStorageSaveData kkm_last_timestamp [11:57:00]File name is /storage/kkm_last_timestamp [11:57:00]Write 4 bytes [11:57:00]NVStorageSaveData done [11:57:00]ExternCall_PrintAddStr [11:57:00]wPrintStart [11:57:00]Write to MH i2c: 01 00 00 DF 43 22 [11:57:00]Write i2c OK [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: 01 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: 01 07 00 [11:57:00]MH_I2C_Read... [11:57:00]Read from MH i2c: 01 07 00 DF 43 00 00 00 00 00 FF 0F 37 [11:57:00]RasterBufferAndPrint [11:57:00]line Счет N : (1)593987 [11:57:00]line ИНН: 02508201610067 [11:57:00]line Контрольно-Кассовый Чек [11:57:00]line ПРОДАЖА [11:57:00]line ТРК (МРК, ГНК) : 31 [11:57:00]line Товар: 2710124500 [11:57:00]line Аи-95-К-5 [11:57:00]line 8.090 * 74.20 [11:57:00]line = 600.28 [11:57:00]line НДС 12% НСП 1% [11:57:00]line > о реализуемом товаре [11:57:00]line ОКРУГЛЕНИЕ: -0.28 [11:57:00]line ИТОГО: 600.00 [11:57:00]line Внесено: 600.00 [11:57:00]line СДАЧА: 0.00 [11:57:00]line НСП 1% : 5.31 [11:57:00]line НДС 12% : 63.75 [11:57:00]line Наличными: 600.00 [11:57:00]line Безнал.: 0.00 [11:57:00]line Место: АЗС № 136 "Партнер Нефть" [11:57:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [11:57:00]line СНО: Общий режим [11:57:00]line Чек 151 21.08.2024 11:57 [11:57:00]line Смена: 454 ФФД: 1.0 [11:57:00]line ЗНМ: 0300000067 [11:57:00]line РНМ: 0000000000092569 [11:57:00]line Версия ККМ: 001 [11:57:00]line ФМ: 0000000000871776 [11:57:00]line ФД: 140134 [11:57:00]line ФПД: 195874691752019 [11:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T115702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140134&fm=195874691752019&tin=02508201610067®Number=0000000000092569&sum=60000 [11:57:01]OFD Sender: Processing packet 140134 [packets to send 137, broken 136] [11:57:01]ProducePacketName [11:57:01]name=ofd_packets/00140134 [11:57:01]OFD Sender: To server: pG, [11:57:01]CommunicateWithHost lk.salyk.kg:30040 [11:57:01]ConnectInit lk.salyk.kg [11:57:01]written 0, free lines is 4095 [11:57:01]Connected sock=10 [11:57: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 37 36 0F 01 00 00 30 97 07 01 C5 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0E D6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 23 02 00 35 04 06 00 B2 25 A1 6C 20 53 32 79 51 18 6B 6F C4 B0 [11:57: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 37 36 4F 00 00 00 4A AF 47 00 8B 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 37 36 10 04 04 00 66 23 02 00 F4 03 04 00 9F 7C C5 66 B6 04 01 00 00 79 A3 FA A3 E6 29 4A 91 [11:57:01]CommunicateWithHost err = 0 [11:57:01]CheckOFDResponse [11:57:01]1017 (14) - 77093643461234 [11:57:01]1041 (16) - 0000000000871776 [11:57:01]1040 (4) - 140134 [11:57:01]1012 (4) - 21.08.2024 05:35 [11:57:01]1206 (1) - 0 [11:57:01]OFD Sender: Remove packet 140134 [11:57:01]ProducePacketName [11:57:01]name=ofd_packets/00140134 [11:57:01]NVStorageDeleteData [11:57:01]Write to MH i2c: 01 00 00 0A 44 4E [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: 01 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: 01 07 00 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: 01 07 00 0A 44 00 00 00 00 00 ED 0C 4E [11:57:01]RasterBufferAndPrint [11:57:01]line [11:57:01]line [11:57:01]line [11:57:01]line [11:57:01]line [11:57:01]written 0, free lines is 3315 [11:57:01]MH_Cut [11:57:01]Write to MH i2c: D1 01 00 11 44 01 27 [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: D1 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: D1 01 00 [11:57:01]MH_I2C_Read... [11:57:01]Read from MH i2c: D1 01 00 11 44 00 26 [11:57:01]Write to MH i2c: 01 00 00 12 44 56 [11:57:01]Write i2c OK [11:57:01]MH_I2C_Read... [11:57:02]OFD Sender: No OFD packet to send [11:57:02]*** Cut start [11:57:02]*** Partial cut [11:57:02]*** CUTSNS_PIN = 1 [11:57:02]*** CUTSNS_PIN = 0 [11:57:02]*** Brake cut motor [11:57:02]Read from MH i2c: 01 [11:57:02]MH_I2C_Read... [11:57:02]*** Stop cut motor [11:57:02]*** Cut end [11:57:02]Read from MH i2c: 01 07 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: 01 07 00 12 44 00 00 00 00 00 FF 0F 6B [11:57:02]process_action close_receipt done [11:57:02]requested_data is exist [11:57:02]produce_requested_data [11:57:02]requested_item fm.sn is exist - process it [11:57:02]wFMCommunicate request_size=4 [11:57:02]MH_SAM_APDU [11:57:02]CAPDU: 80 11 00 00 [11:57:02]Write to MH i2c: E2 08 00 13 44 80 11 00 00 00 00 00 00 D1 [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:02]Read from MH i2c: E2 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 17 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 17 00 13 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 28 [11:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [11:57:02]wFMCommunicate OK [11:57:02]requested_item fd.num is exist - process it [11:57:02]SAM_PROTO_GetFieldsCounters [11:57:02]wFMCommunicate request_size=4 [11:57:02]MH_SAM_APDU [11:57:02]CAPDU: 80 13 00 00 [11:57:02]Write to MH i2c: E2 08 00 14 44 80 13 00 00 00 00 00 00 D4 [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 62 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 62 00 14 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [11:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_GetFieldsCounters done [11:57:03]requested_item shift.num is exist - process it [11:57:03]requested_item shift.opened is exist - process it [11:57:03]req_shift_opened [11:57:03]FM_GetShiftState [11:57:03]SAM_PROTO_GetShiftState [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 13 01 00 [11:57:03]Write to MH i2c: E2 08 00 15 44 80 13 01 00 00 00 00 00 D6 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 15 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 56 [11:57:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_GetShiftState done [11:57:03]FM_GetShiftState done [11:57:03]req_shift_opened done [11:57:03]requested_item shift.open_date is exist - process it [11:57:03]req_shift_open_date [11:57:03]req_shift_open_date done [11:57:03]produce_requested_data done [11:57:03]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140134,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [11:57:03]process_action_free close_receipt [11:57:03]json_value_free [11:57:03]json_value_free done [11:57:03]process_json_proto returns [11:57:03]Send response to host [11:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140134,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [11:57:03]free response buf [11:57:03]execute_script done [11:57:03]execute_script returns [11:57:03]free content buf [11:57:03]Sock 9.Close socket [11:57:03]Sock 9.Thread stoped [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00: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:45]int [12:00:45]Write to MH i2c: 01 00 00 16 44 5A [12:00:45]*** FLAG_PRN_KEY set [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 16 44 00 08 00 00 00 FF 0F 77 [12:00:45]state=0 [12:00:45]Key pressed [12:00:45]Feed [12:00:45]Write to MH i2c: D8 00 00 17 44 32 [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: D8 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: D8 01 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: D8 01 00 17 44 00 33 [12:00:45]int [12:00:45]Write to MH i2c: 01 00 00 18 44 5C [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 18 44 00 48 00 00 00 3C 00 E7 [12:00:45]state=2 [12:00:45]Key pressed [12:00:45]int [12:00:45]Write to MH i2c: 01 00 00 19 44 5D [12:00:45]*** FLAG_PRN_KEY reset [12:00:45]Write i2c OK [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 [12:00:45]MH_I2C_Read... [12:00:45]Read from MH i2c: 01 07 00 19 44 00 00 00 00 00 F6 0F 69 [12:00:45]state=2 [12:00:45]Stop feed [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:40]accept exits with 7 [12:02:40]New connection [12:02:40]New thread 3066764644 created [12:02:40]Thread 3066908004 joined [12:02:40]Waiting for new connection... [12:02:40] Sock 7.Parse request [12:02:40]Sock 7.Check first char [12:02:40]Sock 7.First char is OK [12:02:40]request: POST /json_proto HTTP/1.0 [12:02:40]Method: POST [12:02:40]URL: /json_proto [12:02:40]Method is POST - this is cgi request [12:02:40]url: /json_proto [12:02:40]query_string will be loaded in cgi processing [12:02:40]execute_cgi json_proto POST (null) [12:02:40]execute_cgi path=json_proto method=POST [12:02:40]POST find Content-Length [12:02:40]Host: 172.17.45.67:8080 [12:02:40]Content-Length: 822 [12:02:40]Content-Type: application/json [12:02:40] [12:02:40]POST finish read [12:02:40]Found Content-Length = 822 [12:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:40]execute_script... [12:02: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)593989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:40]POST & json_proto [12:02:40]process_json_proto [12:02:40]json parsed OK: [12:02:40]protocol is kg_v1.0 [12:02:40]action value=close_receipt [12:02:40]process_action close_receipt [12:02:40]cmd_close_receipt [12:02:40]MH_GetDate [12:02:40]Write to MH i2c: F0 00 00 1A 44 4D [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 09 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 09 00 1A 44 00 63 D7 C5 66 5F 7F 2B 66 2A [12:02:40]GetLastDocTimeStamp 1724241422 [12:02:40]current date 1724241763 [12:02:40]FM_GetShiftState [12:02:40]SAM_PROTO_GetShiftState [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 13 01 00 [12:02:40]Write to MH i2c: E2 08 00 1B 44 80 13 01 00 00 00 00 00 DC [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 1B 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [12:02:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_GetShiftState done [12:02:40]FM_GetShiftState done [12:02:40]opened in 1724200467 [12:02:40]opened+sec_in_day 1724286867 [12:02:40]quantity*price = 100005 [12:02:40]sum+1 = 100006 [12:02:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 152 21.08.2024 12:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140135 ФПД: 131615406962138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140135&fm=131615406962138&tin=02508201610067®Number=0000000000092569&sum=100000 [12:02:41]StoreToDocumentArchive [12:02:41]shift 454 fd 140135 [12:02:41]save to /storage/0454/doc_00140135 [12:02:41]save last doc name /storage/0454/doc_00140135 to /storage/kkm_last_doc_name [12:02:41]save OK [12:02:41]Clear old archive folders... [12:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:41]tlvbuf is 00B58140 [12:02:41]SAM_PROTO_ClearQueue [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 09 00 00 [12:02:41]Write to MH i2c: E2 08 00 28 44 80 09 00 00 00 00 00 00 DE [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 28 44 00 90 00 E0 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]SAM_PROTO_ClearQueue done [12:02:41]KKMCreateOFDPacket [12:02:41]OFDProtocolAddRootSTLVToBuf [12:02:41]FM_MakeSignedData [12:02:41]FM_MakeSignedData [12:02:41]SAM_PROTO_SignData [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 0D 01 02 [12:02:41]Write to MH i2c: E2 08 00 29 44 80 0D 01 02 00 00 00 00 E6 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 29 44 00 90 00 E1 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]wFMCommunicate request_size=255 [12:02:41]MH_SAM_APDU [12:02: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 63 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 23 02 00 35 04 06 00 77 [12:02:41]Write to MH i2c: E2 02 01 2A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 63 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 23 02 00 35 04 06 00 77 00 00 C5 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 2A 44 00 90 00 E2 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]wFMCommunicate request_size=10 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 0D 02 02 05 B4 19 94 35 DA [12:02:41]Write to MH i2c: E2 0D 00 2B 44 80 0D 02 02 05 00 B4 19 94 35 DA 00 00 63 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 2B 44 00 90 00 E3 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 0D 03 02 [12:02:41]Write to MH i2c: E2 08 00 2C 44 80 0D 03 02 00 00 00 00 EB [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0B 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 0B 00 2C 44 00 80 D5 F9 E6 19 1E 4D A9 90 00 4D [12:02:41]RAPDU: 80 D5 F9 E6 19 1E 4D A9 90 00 [12:02:41]wFMCommunicate OK [12:02:41]SAM_PROTO_SignData done [12:02:41]FM_MakeSignedData done [12:02:41]CreateOFDProtocolMessage [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 11 00 00 [12:02:41]Write to MH i2c: E2 08 00 2D 44 80 11 00 00 00 00 00 00 EB [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 2D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [12:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:42]wFMCommunicate OK [12:02:42]CreateOFDProtocolMessage done [12:02:42]OFDSenderStorePacket 140135 [12:02:42]StoreOFDPacket docnum=140135 [12:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 18 07 01 BA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 63 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 23 02 00 35 04 06 00 77 B4 19 94 35 DA 80 D5 F9 E6 19 1E 4D A9 [12:02:42]CheckFolder [12:02:42]dirname=/storage/ofd_packets [12:02:42]CheckFolder done [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00140135 [12:02:42]NVStorageSaveData ofd_packets/00140135 [12:02:42]File name is /storage/ofd_packets/00140135 [12:02:42]Write 301 bytes [12:02:42]NVStorageSaveData done [12:02:42]OFDSenderStorePacket done [12:02:42]KKMCreateOFDPacket done [12:02:42]NVStorageSaveData kkm_last_timestamp [12:02:42]File name is /storage/kkm_last_timestamp [12:02:42]Write 4 bytes [12:02:42]NVStorageSaveData done [12:02:42]ExternCall_PrintAddStr [12:02:42]wPrintStart [12:02:42]Write to MH i2c: 01 00 00 2E 44 72 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 2E 44 00 00 00 00 00 FF 0F 87 [12:02:42]RasterBufferAndPrint [12:02:42]line Счет N : (1)593989 [12:02:42]line ИНН: 02508201610067 [12:02:42]line Контрольно-Кассовый Чек [12:02:42]line ПРОДАЖА [12:02:42]line ТРК (МРК, ГНК) : 42 [12:02:42]line Товар: 2710124130 [12:02:42]line Аи-92-К-5 [12:02:42]line 14.750 * 67.80 [12:02:42]line = 1000.05 [12:02:42]line НДС 12% НСП 1% [12:02:42]line > о реализуемом товаре [12:02:42]line ОКРУГЛЕНИЕ: -0.05 [12:02:42]line ИТОГО: 1000.00 [12:02:42]line НСП 1% : 8.85 [12:02:42]line НДС 12% : 106.20 [12:02:42]line Наличными: 0.00 [12:02:42]line Безнал.: 1000.00 [12:02:42]line Место: АЗС № 136 "Партнер Нефть" [12:02:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:02:42]line СНО: Общий режим [12:02:42]line Чек 152 21.08.2024 12:02 [12:02:42]line Смена: 454 ФФД: 1.0 [12:02:42]line ЗНМ: 0300000067 [12:02:42]line РНМ: 0000000000092569 [12:02:42]line Версия ККМ: 001 [12:02:42]line Платежная система: O! деньги [12:02:42]line ФМ: 0000000000871776 [12:02:42]line ФД: 140135 [12:02:42]line ФПД: 131615406962138 [12:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120243&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140135&fm=131615406962138&tin=02508201610067®Number=0000000000092569&sum=100000 [12:02:42]OFD Sender: Processing packet 140135 [packets to send 137, broken 136] [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00140135 [12:02:42]OFD Sender: To server: pG, [12:02:42]CommunicateWithHost lk.salyk.kg:30040 [12:02:42]ConnectInit lk.salyk.kg [12:02:42]written 0, free lines is 4095 [12:02:42]Connected sock=10 [12:02: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 37 36 0F 01 00 00 E5 18 07 01 BA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 63 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 23 02 00 35 04 06 00 77 B4 19 94 35 DA 80 D5 F9 E6 19 1E 4D A9 [12:02: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 37 36 4F 00 00 00 51 B8 47 00 59 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 37 36 10 04 04 00 67 23 02 00 F4 03 04 00 F4 7D C5 66 B6 04 01 00 00 CF D6 67 C6 2A 34 00 D8 [12:02:42]CommunicateWithHost err = 0 [12:02:42]CheckOFDResponse [12:02:42]1017 (14) - 77093643461234 [12:02:42]1041 (16) - 0000000000871776 [12:02:42]1040 (4) - 140135 [12:02:42]1012 (4) - 21.08.2024 05:41 [12:02:42]1206 (1) - 0 [12:02:42]OFD Sender: Remove packet 140135 [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00140135 [12:02:42]NVStorageDeleteData [12:02:42]Write to MH i2c: 01 00 00 59 44 9D [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 59 44 00 00 00 00 00 E5 0C 95 [12:02:42]RasterBufferAndPrint [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]written 0, free lines is 3305 [12:02:42]MH_Cut [12:02:42]Write to MH i2c: D1 01 00 60 44 01 76 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 01 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 01 00 60 44 00 75 [12:02:42]Write to MH i2c: 01 00 00 61 44 A5 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:43]OFD Sender: No OFD packet to send [12:02:43]*** Cut start [12:02:43]*** Partial cut [12:02:43]*** CUTSNS_PIN = 1 [12:02:43]*** CUTSNS_PIN = 0 [12:02:43]*** Brake cut motor [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]*** Stop cut motor [12:02:44]*** Cut end [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 61 44 00 00 00 00 00 FF 0F BA [12:02:44]process_action close_receipt done [12:02:44]requested_data is exist [12:02:44]produce_requested_data [12:02:44]requested_item fm.sn is exist - process it [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 11 00 00 [12:02:44]Write to MH i2c: E2 08 00 62 44 80 11 00 00 00 00 00 00 20 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 62 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [12:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:02:44]wFMCommunicate OK [12:02:44]requested_item fd.num is exist - process it [12:02:44]SAM_PROTO_GetFieldsCounters [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 00 00 [12:02:44]Write to MH i2c: E2 08 00 63 44 80 13 00 00 00 00 00 00 23 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 63 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetFieldsCounters done [12:02:44]requested_item shift.num is exist - process it [12:02:44]requested_item shift.opened is exist - process it [12:02:44]req_shift_opened [12:02:44]FM_GetShiftState [12:02:44]SAM_PROTO_GetShiftState [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 01 00 [12:02:44]Write to MH i2c: E2 08 00 64 44 80 13 01 00 00 00 00 00 25 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 64 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A5 [12:02:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetShiftState done [12:02:44]FM_GetShiftState done [12:02:44]req_shift_opened done [12:02:44]requested_item shift.open_date is exist - process it [12:02:44]req_shift_open_date [12:02:44]req_shift_open_date done [12:02:44]produce_requested_data done [12:02:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140135,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:02:44]process_action_free close_receipt [12:02:44]json_value_free [12:02:44]json_value_free done [12:02:44]process_json_proto returns [12:02:44]Send response to host [12:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140135,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:02:44]free response buf [12:02:44]execute_script done [12:02:44]execute_script returns [12:02:44]free content buf [12:02:44]Sock 7.Close socket [12:02:44]Sock 7.Thread stoped [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:41]accept exits with 9 [12:03:41]New connection [12:03:41]New thread 3066908004 created [12:03:41]Thread 3066764644 joined [12:03:41]Waiting for new connection... [12:03:41] Sock 9.Parse request [12:03:41]Sock 9.Check first char [12:03:41]Sock 9.First char is OK [12:03:41]request: POST /json_proto HTTP/1.0 [12:03:41]Method: POST [12:03:41]URL: /json_proto [12:03:41]Method is POST - this is cgi request [12:03:41]url: /json_proto [12:03:41]query_string will be loaded in cgi processing [12:03:41]execute_cgi json_proto POST (null) [12:03:41]execute_cgi path=json_proto method=POST [12:03:41]POST find Content-Length [12:03:41]Host: 172.17.45.67:8080 [12:03:41]Content-Length: 658 [12:03:41]Content-Type: application/json [12:03:41] [12:03:41]POST finish read [12:03:41]Found Content-Length = 658 [12:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:03:41]execute_script... [12:03: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)593990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:03:41]POST & json_proto [12:03:41]process_json_proto [12:03:41]json parsed OK: [12:03:41]protocol is kg_v1.0 [12:03:41]action value=close_receipt [12:03:41]process_action close_receipt [12:03:41]cmd_close_receipt [12:03:41]MH_GetDate [12:03:41]Write to MH i2c: F0 00 00 65 44 98 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: F0 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: F0 09 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: F0 09 00 65 44 00 A1 D7 C5 66 5F 7F 2B 66 B3 [12:03:41]GetLastDocTimeStamp 1724241763 [12:03:41]current date 1724241825 [12:03:41]FM_GetShiftState [12:03:41]SAM_PROTO_GetShiftState [12:03:41]wFMCommunicate request_size=4 [12:03:41]MH_SAM_APDU [12:03:41]CAPDU: 80 13 01 00 [12:03:41]Write to MH i2c: E2 08 00 66 44 80 13 01 00 00 00 00 00 27 [12:03:41]Write i2c OK [12:03:41]MH_I2C_Read... [12:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:41]Read from MH i2c: E2 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0E 00 [12:03:41]MH_I2C_Read... [12:03:41]Read from MH i2c: E2 0E 00 66 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [12:03:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:03:41]wFMCommunicate OK [12:03:41]SAM_PROTO_GetShiftState done [12:03:41]FM_GetShiftState done [12:03:41]opened in 1724200467 [12:03:41]opened+sec_in_day 1724286867 [12:03:41]quantity*price = 40041 [12:03:41]sum+1 = 40043 [12:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 153 21.08.2024 12:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140136 ФПД: 276048379161025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120345&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140136&fm=276048379161025&tin=02508201610067®Number=0000000000092569&sum=40000 [12:03:42]StoreToDocumentArchive [12:03:42]shift 454 fd 140136 [12:03:42]save to /storage/0454/doc_00140136 [12:03:42]save last doc name /storage/0454/doc_00140136 to /storage/kkm_last_doc_name [12:03:42]save OK [12:03:42]Clear old archive folders... [12:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:03:42]tlvbuf is 00A1B320 [12:03:42]SAM_PROTO_ClearQueue [12:03:42]wFMCommunicate request_size=4 [12:03:42]MH_SAM_APDU [12:03:42]CAPDU: 80 09 00 00 [12:03:42]Write to MH i2c: E2 08 00 73 44 80 09 00 00 00 00 00 00 29 [12:03:42]Write i2c OK [12:03:42]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 73 44 00 90 00 2B [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]SAM_PROTO_ClearQueue done [12:03:43]KKMCreateOFDPacket [12:03:43]OFDProtocolAddRootSTLVToBuf [12:03:43]FM_MakeSignedData [12:03:43]FM_MakeSignedData [12:03:43]SAM_PROTO_SignData [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 01 02 [12:03:43]Write to MH i2c: E2 08 00 74 44 80 0D 01 02 00 00 00 00 31 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 74 44 00 90 00 2C [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]wFMCommunicate request_size=253 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A1 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 23 02 00 35 04 06 00 FB 10 85 94 A9 C1 [12:03:43]Write to MH i2c: E2 00 01 75 44 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A1 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 23 02 00 35 04 06 00 FB 10 85 94 A9 C1 00 00 AA [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 03 00 75 44 00 90 00 2D [12:03:43]RAPDU: 90 00 [12:03:43]wFMCommunicate OK [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 0D 03 02 [12:03:43]Write to MH i2c: E2 08 00 76 44 80 0D 03 02 00 00 00 00 35 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:43]OFD Sender: No OFD packet to send [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0B 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0B 00 76 44 00 86 12 C1 77 D1 D3 17 96 90 00 57 [12:03:43]RAPDU: 86 12 C1 77 D1 D3 17 96 90 00 [12:03:43]wFMCommunicate OK [12:03:43]SAM_PROTO_SignData done [12:03:43]FM_MakeSignedData done [12:03:43]CreateOFDProtocolMessage [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 11 00 00 [12:03:43]Write to MH i2c: E2 08 00 77 44 80 11 00 00 00 00 00 00 35 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 17 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 17 00 77 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [12:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:03:43]wFMCommunicate OK [12:03:43]CreateOFDProtocolMessage done [12:03:43]OFDSenderStorePacket 140136 [12:03:43]StoreOFDPacket docnum=140136 [12:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 3B B6 00 01 53 5E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A1 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 23 02 00 35 04 06 00 FB 10 85 94 A9 C1 86 12 C1 77 D1 D3 17 96 [12:03:43]CheckFolder [12:03:43]dirname=/storage/ofd_packets [12:03:43]CheckFolder done [12:03:43]ProducePacketName [12:03:43]name=ofd_packets/00140136 [12:03:43]NVStorageSaveData ofd_packets/00140136 [12:03:43]File name is /storage/ofd_packets/00140136 [12:03:43]Write 294 bytes [12:03:43]NVStorageSaveData done [12:03:43]OFDSenderStorePacket done [12:03:43]KKMCreateOFDPacket done [12:03:43]NVStorageSaveData kkm_last_timestamp [12:03:43]File name is /storage/kkm_last_timestamp [12:03:43]Write 4 bytes [12:03:43]NVStorageSaveData done [12:03:43]ExternCall_PrintAddStr [12:03:43]wPrintStart [12:03:43]Write to MH i2c: 01 00 00 78 44 BC [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 07 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: 01 07 00 78 44 00 00 00 00 00 FF 0F D1 [12:03:43]RasterBufferAndPrint [12:03:43]line Счет N : (1)593990 [12:03:43]line ИНН: 02508201610067 [12:03:43]line Контрольно-Кассовый Чек [12:03:43]line ПРОДАЖА [12:03:43]line ТРК (МРК, ГНК) : 63 [12:03:43]line Товар: 2710124130 [12:03:43]line SU-92 [12:03:43]line 5.820 * 68.80 [12:03:43]line = 400.42 [12:03:43]line НДС 12% НСП 1% [12:03:43]line > о реализуемом товаре [12:03:43]line ОКРУГЛЕНИЕ: -0.42 [12:03:43]line ИТОГО: 400.00 [12:03:43]line Внесено: 400.00 [12:03:43]line СДАЧА: 0.00 [12:03:43]line НСП 1% : 3.54 [12:03:43]line НДС 12% : 42.52 [12:03:43]line Наличными: 400.00 [12:03:43]line Безнал.: 0.00 [12:03:43]line Место: АЗС № 136 "Партнер Нефть" [12:03:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:03:43]line СНО: Общий режим [12:03:43]line Чек 153 21.08.2024 12:03 [12:03:43]line Смена: 454 ФФД: 1.0 [12:03:43]line ЗНМ: 0300000067 [12:03:43]line РНМ: 0000000000092569 [12:03:43]line Версия ККМ: 001 [12:03:43]line ФМ: 0000000000871776 [12:03:43]line ФД: 140136 [12:03:43]line ФПД: 276048379161025 [12:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120345&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140136&fm=276048379161025&tin=02508201610067®Number=0000000000092569&sum=40000 [12:03:43]OFD Sender: Processing packet 140136 [packets to send 137, broken 136] [12:03:43]ProducePacketName [12:03:43]name=ofd_packets/00140136 [12:03:43]OFD Sender: To server: pG, [12:03:43]CommunicateWithHost lk.salyk.kg:30040 [12:03:43]ConnectInit lk.salyk.kg [12:03:43]written 0, free lines is 4095 [12:03:43]Connected sock=10 [12:03: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 37 36 08 01 00 00 3B B6 00 01 53 5E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 A1 D7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 23 02 00 35 04 06 00 FB 10 85 94 A9 C1 86 12 C1 77 D1 D3 17 96 [12:03: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 37 36 4F 00 00 00 68 BD 47 00 20 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 37 36 10 04 04 00 68 23 02 00 F4 03 04 00 32 7E C5 66 B6 04 01 00 00 8D EA F0 D9 1B 07 DC B1 [12:03:44]CommunicateWithHost err = 0 [12:03:44]CheckOFDResponse [12:03:44]1017 (14) - 77093643461234 [12:03:44]1041 (16) - 0000000000871776 [12:03:44]1040 (4) - 140136 [12:03:44]1012 (4) - 21.08.2024 05:42 [12:03:44]1206 (1) - 0 [12:03:44]OFD Sender: Remove packet 140136 [12:03:44]ProducePacketName [12:03:44]name=ofd_packets/00140136 [12:03:44]NVStorageDeleteData [12:03:44]Write to MH i2c: 01 00 00 A3 44 E7 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 [12:03:44]MH_I2C_Read... [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 A3 44 00 00 00 00 00 DD 0C D7 [12:03:44]RasterBufferAndPrint [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]line [12:03:44]written 0, free lines is 3299 [12:03:44]MH_Cut [12:03:44]Write to MH i2c: D1 01 00 AA 44 01 C0 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 01 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: D1 01 00 AA 44 00 BF [12:03:44]Write to MH i2c: 01 00 00 AB 44 EF [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]OFD Sender: No OFD packet to send [12:03:45]*** Cut start [12:03:45]*** Partial cut [12:03:45]*** CUTSNS_PIN = 1 [12:03:45]*** CUTSNS_PIN = 0 [12:03:45]*** Brake cut motor [12:03:45]Read from MH i2c: 01 [12:03:45]MH_I2C_Read... [12:03:45]*** Stop cut motor [12:03:45]*** Cut end [12:03:45]Read from MH i2c: 01 07 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: 01 07 00 AB 44 00 00 00 00 00 FF 0F 04 [12:03:45]process_action close_receipt done [12:03:45]requested_data is exist [12:03:45]produce_requested_data [12:03:45]requested_item fm.sn is exist - process it [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 11 00 00 [12:03:45]Write to MH i2c: E2 08 00 AC 44 80 11 00 00 00 00 00 00 6A [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:45]Read from MH i2c: E2 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 17 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 17 00 AC 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [12:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:03:45]wFMCommunicate OK [12:03:45]requested_item fd.num is exist - process it [12:03:45]SAM_PROTO_GetFieldsCounters [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 13 00 00 [12:03:45]Write to MH i2c: E2 08 00 AD 44 80 13 00 00 00 00 00 00 6D [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:45]Read from MH i2c: E2 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 62 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 62 00 AD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:45]wFMCommunicate OK [12:03:45]SAM_PROTO_GetFieldsCounters done [12:03:45]requested_item shift.num is exist - process it [12:03:45]requested_item shift.opened is exist - process it [12:03:45]req_shift_opened [12:03:45]FM_GetShiftState [12:03:45]SAM_PROTO_GetShiftState [12:03:45]wFMCommunicate request_size=4 [12:03:45]MH_SAM_APDU [12:03:45]CAPDU: 80 13 01 00 [12:03:45]Write to MH i2c: E2 08 00 AE 44 80 13 01 00 00 00 00 00 6F [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:45]Read from MH i2c: E2 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 0E 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: E2 0E 00 AE 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EF [12:03:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:03:45]wFMCommunicate OK [12:03:45]SAM_PROTO_GetShiftState done [12:03:45]FM_GetShiftState done [12:03:45]req_shift_opened done [12:03:45]requested_item shift.open_date is exist - process it [12:03:45]req_shift_open_date [12:03:45]req_shift_open_date done [12:03:45]produce_requested_data done [12:03:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140136,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:03:45]process_action_free close_receipt [12:03:45]json_value_free [12:03:45]json_value_free done [12:03:45]process_json_proto returns [12:03:45]Send response to host [12:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140136,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:03:45]free response buf [12:03:45]execute_script done [12:03:45]execute_script returns [12:03:45]free content buf [12:03:45]Sock 9.Close socket [12:03:45]Sock 9.Thread stoped [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:23]accept exits with 7 [12:08:23]New connection [12:08:23]New thread 3066764644 created [12:08:23]Thread 3066908004 joined [12:08:23]Waiting for new connection... [12:08:23] Sock 7.Parse request [12:08:23]Sock 7.Check first char [12:08:23]Sock 7.First char is OK [12:08:23]request: POST /json_proto HTTP/1.0 [12:08:23]Method: POST [12:08:23]URL: /json_proto [12:08:23]Method is POST - this is cgi request [12:08:23]url: /json_proto [12:08:23]query_string will be loaded in cgi processing [12:08:23]execute_cgi json_proto POST (null) [12:08:23]execute_cgi path=json_proto method=POST [12:08:23]POST find Content-Length [12:08:23]Host: 172.17.45.67:8080 [12:08:23]Content-Length: 677 [12:08:23]Content-Type: application/json [12:08:23] [12:08:23]POST finish read [12:08:23]Found Content-Length = 677 [12:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:23]execute_script... [12:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:23]POST & json_proto [12:08:23]process_json_proto [12:08:23]json parsed OK: [12:08:23]protocol is kg_v1.0 [12:08:23]action value=close_receipt [12:08:23]process_action close_receipt [12:08:23]cmd_close_receipt [12:08:23]MH_GetDate [12:08:23]Write to MH i2c: F0 00 00 AF 44 E2 [12:08:23]Write i2c OK [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: F0 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: F0 09 00 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: F0 09 00 AF 44 00 BB D8 C5 66 5F 7F 2B 66 18 [12:08:23]GetLastDocTimeStamp 1724241825 [12:08:23]current date 1724242107 [12:08:23]FM_GetShiftState [12:08:23]SAM_PROTO_GetShiftState [12:08:23]wFMCommunicate request_size=4 [12:08:23]MH_SAM_APDU [12:08:23]CAPDU: 80 13 01 00 [12:08:23]Write to MH i2c: E2 08 00 B0 44 80 13 01 00 00 00 00 00 71 [12:08:23]Write i2c OK [12:08:23]MH_I2C_Read... [12:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:23]Read from MH i2c: E2 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 0E 00 [12:08:23]MH_I2C_Read... [12:08:23]Read from MH i2c: E2 0E 00 B0 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F1 [12:08:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:08:23]wFMCommunicate OK [12:08:23]SAM_PROTO_GetShiftState done [12:08:23]FM_GetShiftState done [12:08:23]opened in 1724200467 [12:08:23]opened+sec_in_day 1724286867 [12:08:23]quantity*price = 30035 [12:08:23]sum+1 = 30036 [12:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 154 21.08.2024 12:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140137 ФПД: 160208402030495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120827&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140137&fm=160208402030495&tin=02508201610067®Number=0000000000092569&sum=30000 [12:08:24]StoreToDocumentArchive [12:08:24]shift 454 fd 140137 [12:08:24]save to /storage/0454/doc_00140137 [12:08:24]save last doc name /storage/0454/doc_00140137 to /storage/kkm_last_doc_name [12:08:24]save OK [12:08:24]Clear old archive folders... [12:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:24]tlvbuf is 00AE8950 [12:08:24]SAM_PROTO_ClearQueue [12:08:24]wFMCommunicate request_size=4 [12:08:24]MH_SAM_APDU [12:08:24]CAPDU: 80 09 00 00 [12:08:24]Write to MH i2c: E2 08 00 BD 44 80 09 00 00 00 00 00 00 73 [12:08:24]Write i2c OK [12:08:24]MH_I2C_Read... [12:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:24]Read from MH i2c: E2 [12:08:24]MH_I2C_Read... [12:08:24]Read from MH i2c: E2 03 00 [12:08:24]MH_I2C_Read... [12:08:24]Read from MH i2c: E2 03 00 BD 44 00 90 00 75 [12:08:24]RAPDU: 90 00 [12:08:24]wFMCommunicate OK [12:08:24]SAM_PROTO_ClearQueue done [12:08:24]KKMCreateOFDPacket [12:08:24]OFDProtocolAddRootSTLVToBuf [12:08:24]FM_MakeSignedData [12:08:24]FM_MakeSignedData [12:08:24]SAM_PROTO_SignData [12:08:24]wFMCommunicate request_size=4 [12:08:24]MH_SAM_APDU [12:08:24]CAPDU: 80 0D 01 02 [12:08:24]Write to MH i2c: E2 08 00 BE 44 80 0D 01 02 00 00 00 00 7B [12:08:24]Write i2c OK [12:08:24]MH_I2C_Read... [12:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:24]Read from MH i2c: E2 [12:08:24]MH_I2C_Read... [12:08:24]Read from MH i2c: E2 03 00 [12:08:24]MH_I2C_Read... [12:08:24]Read from MH i2c: E2 03 00 BE 44 00 90 00 76 [12:08:24]RAPDU: 90 00 [12:08:24]wFMCommunicate OK [12:08:24]wFMCommunicate request_size=255 [12:08:24]MH_SAM_APDU [12:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BB D8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 23 02 00 35 04 06 00 91 [12:08:24]Write to MH i2c: E2 02 01 BF 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BB D8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 23 02 00 35 04 06 00 91 00 00 61 [12:08:24]Write i2c OK [12:08:24]MH_I2C_Read... [12:08:25]OFD Sender: No OFD packet to send [12:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:25]Read from MH i2c: E2 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 03 00 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 03 00 BF 44 00 90 00 77 [12:08:25]RAPDU: 90 00 [12:08:25]wFMCommunicate OK [12:08:25]wFMCommunicate request_size=10 [12:08:25]MH_SAM_APDU [12:08:25]CAPDU: 80 0D 02 02 05 B5 6C E4 9F 9F [12:08:25]Write to MH i2c: E2 0D 00 C0 44 80 0D 02 02 05 00 B5 6C E4 9F 9F 00 00 CB [12:08:25]Write i2c OK [12:08:25]MH_I2C_Read... [12:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:25]Read from MH i2c: E2 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 03 00 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 03 00 C0 44 00 90 00 78 [12:08:25]RAPDU: 90 00 [12:08:25]wFMCommunicate OK [12:08:25]wFMCommunicate request_size=4 [12:08:25]MH_SAM_APDU [12:08:25]CAPDU: 80 0D 03 02 [12:08:25]Write to MH i2c: E2 08 00 C1 44 80 0D 03 02 00 00 00 00 80 [12:08:25]Write i2c OK [12:08:25]MH_I2C_Read... [12:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:25]Read from MH i2c: E2 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 0B 00 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 0B 00 C1 44 00 82 1E 71 4F 0A FE 7B 7E 90 00 E2 [12:08:25]RAPDU: 82 1E 71 4F 0A FE 7B 7E 90 00 [12:08:25]wFMCommunicate OK [12:08:25]SAM_PROTO_SignData done [12:08:25]FM_MakeSignedData done [12:08:25]CreateOFDProtocolMessage [12:08:25]wFMCommunicate request_size=4 [12:08:25]MH_SAM_APDU [12:08:25]CAPDU: 80 11 00 00 [12:08:25]Write to MH i2c: E2 08 00 C2 44 80 11 00 00 00 00 00 00 80 [12:08:25]Write i2c OK [12:08:25]MH_I2C_Read... [12:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:25]Read from MH i2c: E2 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 17 00 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: E2 17 00 C2 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [12:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:08:25]wFMCommunicate OK [12:08:25]CreateOFDProtocolMessage done [12:08:25]OFDSenderStorePacket 140137 [12:08:25]StoreOFDPacket docnum=140137 [12:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB BC 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BB D8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 23 02 00 35 04 06 00 91 B5 6C E4 9F 9F 82 1E 71 4F 0A FE 7B 7E [12:08:25]CheckFolder [12:08:25]dirname=/storage/ofd_packets [12:08:25]CheckFolder done [12:08:25]ProducePacketName [12:08:25]name=ofd_packets/00140137 [12:08:25]NVStorageSaveData ofd_packets/00140137 [12:08:25]File name is /storage/ofd_packets/00140137 [12:08:25]Write 301 bytes [12:08:25]NVStorageSaveData done [12:08:25]OFDSenderStorePacket done [12:08:25]KKMCreateOFDPacket done [12:08:25]NVStorageSaveData kkm_last_timestamp [12:08:25]File name is /storage/kkm_last_timestamp [12:08:25]Write 4 bytes [12:08:25]NVStorageSaveData done [12:08:25]ExternCall_PrintAddStr [12:08:25]wPrintStart [12:08:25]Write to MH i2c: 01 00 00 C3 44 07 [12:08:25]Write i2c OK [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: 01 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: 01 07 00 [12:08:25]MH_I2C_Read... [12:08:25]Read from MH i2c: 01 07 00 C3 44 00 00 00 00 00 FF 0F 1C [12:08:25]RasterBufferAndPrint [12:08:25]line Счет N : (1)593991 [12:08:25]line ИНН: 02508201610067 [12:08:25]line Контрольно-Кассовый Чек [12:08:25]line ПРОДАЖА [12:08:25]line ТРК (МРК, ГНК) : 52 [12:08:25]line Товар: 2710124130 [12:08:25]line Аи-92-К-5 [12:08:25]line 4.430 * 67.80 [12:08:25]line = 300.35 [12:08:25]line НДС 12% НСП 1% [12:08:25]line > о реализуемом товаре [12:08:25]line ОКРУГЛЕНИЕ: -0.35 [12:08:25]line ИТОГО: 300.00 [12:08:25]line Внесено: 300.00 [12:08:25]line СДАЧА: 0.00 [12:08:25]line НСП 1% : 2.66 [12:08:25]line НДС 12% : 31.90 [12:08:25]line Наличными: 300.00 [12:08:25]line Безнал.: 0.00 [12:08:25]line Место: АЗС № 136 "Партнер Нефть" [12:08:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:08:25]line СНО: Общий режим [12:08:25]line Чек 154 21.08.2024 12:08 [12:08:25]line Смена: 454 ФФД: 1.0 [12:08:25]line ЗНМ: 0300000067 [12:08:25]line РНМ: 0000000000092569 [12:08:25]line Версия ККМ: 001 [12:08:25]line ФМ: 0000000000871776 [12:08:25]line ФД: 140137 [12:08:25]line ФПД: 160208402030495 [12:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T120827&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140137&fm=160208402030495&tin=02508201610067®Number=0000000000092569&sum=30000 [12:08:25]OFD Sender: Processing packet 140137 [packets to send 137, broken 136] [12:08:25]ProducePacketName [12:08:25]name=ofd_packets/00140137 [12:08:25]OFD Sender: To server: pG, [12:08:25]CommunicateWithHost lk.salyk.kg:30040 [12:08:25]ConnectInit lk.salyk.kg [12:08:25]written 0, free lines is 4095 [12:08:25]Connected sock=10 [12:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB BC 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 BB D8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 23 02 00 35 04 06 00 91 B5 6C E4 9F 9F 82 1E 71 4F 0A FE 7B 7E [12:08:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 63 80 47 00 BE 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 37 36 10 04 04 00 69 23 02 00 F4 03 04 00 4C 7F C5 66 B6 04 01 00 00 18 42 B8 2E CA 41 9D 32 [12:08:26]CommunicateWithHost err = 0 [12:08:26]CheckOFDResponse [12:08:26]1017 (14) - 77093643461234 [12:08:26]1041 (16) - 0000000000871776 [12:08:26]1040 (4) - 140137 [12:08:26]1012 (4) - 21.08.2024 05:46 [12:08:26]1206 (1) - 0 [12:08:26]OFD Sender: Remove packet 140137 [12:08:26]ProducePacketName [12:08:26]name=ofd_packets/00140137 [12:08:26]NVStorageDeleteData [12:08:26]Write to MH i2c: 01 00 00 EE 44 32 [12:08:26]Write i2c OK [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: 01 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: 01 07 00 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: 01 07 00 EE 44 00 00 00 00 00 DD 0C 22 [12:08:26]RasterBufferAndPrint [12:08:26]line [12:08:26]line [12:08:26]line [12:08:26]line [12:08:26]line [12:08:26]written 0, free lines is 3299 [12:08:26]MH_Cut [12:08:26]Write to MH i2c: D1 01 00 F5 44 01 0B [12:08:26]Write i2c OK [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: D1 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: D1 01 00 [12:08:26]MH_I2C_Read... [12:08:26]Read from MH i2c: D1 01 00 F5 44 00 0A [12:08:26]Write to MH i2c: 01 00 00 F6 44 3A [12:08:26]Write i2c OK [12:08:26]MH_I2C_Read... [12:08:26]OFD Sender: No OFD packet to send [12:08:26]*** Cut start [12:08:26]*** Partial cut [12:08:26]*** CUTSNS_PIN = 1 [12:08:26]*** CUTSNS_PIN = 0 [12:08:27]*** Brake cut motor [12:08:27]Read from MH i2c: 01 [12:08:27]MH_I2C_Read... [12:08:27]*** Stop cut motor [12:08:27]*** Cut end [12:08:27]Read from MH i2c: 01 07 00 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: 01 07 00 F6 44 00 00 00 00 00 FF 0F 4F [12:08:27]process_action close_receipt done [12:08:27]requested_data is exist [12:08:27]produce_requested_data [12:08:27]requested_item fm.sn is exist - process it [12:08:27]wFMCommunicate request_size=4 [12:08:27]MH_SAM_APDU [12:08:27]CAPDU: 80 11 00 00 [12:08:27]Write to MH i2c: E2 08 00 F7 44 80 11 00 00 00 00 00 00 B5 [12:08:27]Write i2c OK [12:08:27]MH_I2C_Read... [12:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:27]Read from MH i2c: E2 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 17 00 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 17 00 F7 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0C [12:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:08:27]wFMCommunicate OK [12:08:27]requested_item fd.num is exist - process it [12:08:27]SAM_PROTO_GetFieldsCounters [12:08:27]wFMCommunicate request_size=4 [12:08:27]MH_SAM_APDU [12:08:27]CAPDU: 80 13 00 00 [12:08:27]Write to MH i2c: E2 08 00 F8 44 80 13 00 00 00 00 00 00 B8 [12:08:27]Write i2c OK [12:08:27]MH_I2C_Read... [12:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:27]Read from MH i2c: E2 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 62 00 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 62 00 F8 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [12:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:27]wFMCommunicate OK [12:08:27]SAM_PROTO_GetFieldsCounters done [12:08:27]requested_item shift.num is exist - process it [12:08:27]requested_item shift.opened is exist - process it [12:08:27]req_shift_opened [12:08:27]FM_GetShiftState [12:08:27]SAM_PROTO_GetShiftState [12:08:27]wFMCommunicate request_size=4 [12:08:27]MH_SAM_APDU [12:08:27]CAPDU: 80 13 01 00 [12:08:27]Write to MH i2c: E2 08 00 F9 44 80 13 01 00 00 00 00 00 BA [12:08:27]Write i2c OK [12:08:27]MH_I2C_Read... [12:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:27]Read from MH i2c: E2 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 0E 00 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: E2 0E 00 F9 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3A [12:08:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:08:27]wFMCommunicate OK [12:08:27]SAM_PROTO_GetShiftState done [12:08:27]FM_GetShiftState done [12:08:27]req_shift_opened done [12:08:27]requested_item shift.open_date is exist - process it [12:08:27]req_shift_open_date [12:08:27]req_shift_open_date done [12:08:27]produce_requested_data done [12:08:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140137,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:08:27]process_action_free close_receipt [12:08:27]json_value_free [12:08:27]json_value_free done [12:08:27]process_json_proto returns [12:08:27]Send response to host [12:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140137,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:08:27]free response buf [12:08:27]execute_script done [12:08:27]execute_script returns [12:08:27]free content buf [12:08:27]Sock 7.Close socket [12:08:27]Sock 7.Thread stoped [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:07]accept exits with 9 [12:12:07]New connection [12:12:07]New thread 3066908004 created [12:12:07]Thread 3066764644 joined [12:12:07]Waiting for new connection... [12:12:07] Sock 9.Parse request [12:12:07]Sock 9.Check first char [12:12:07]Sock 9.First char is OK [12:12:07]request: POST /json_proto HTTP/1.0 [12:12:07]Method: POST [12:12:07]URL: /json_proto [12:12:07]Method is POST - this is cgi request [12:12:07]url: /json_proto [12:12:07]query_string will be loaded in cgi processing [12:12:07]execute_cgi json_proto POST (null) [12:12:07]execute_cgi path=json_proto method=POST [12:12:07]POST find Content-Length [12:12:07]Host: 172.17.45.67:8080 [12:12:07]Content-Length: 677 [12:12:07]Content-Type: application/json [12:12:07] [12:12:07]POST finish read [12:12:07]Found Content-Length = 677 [12:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:12:07]execute_script... [12:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:12:07]POST & json_proto [12:12:07]process_json_proto [12:12:07]json parsed OK: [12:12:07]protocol is kg_v1.0 [12:12:07]action value=close_receipt [12:12:07]process_action close_receipt [12:12:07]cmd_close_receipt [12:12:07]MH_GetDate [12:12:07]Write to MH i2c: F0 00 00 FA 44 2D [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: F0 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: F0 09 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: F0 09 00 FA 44 00 9B D9 C5 66 5F 7F 2B 66 44 [12:12:07]GetLastDocTimeStamp 1724242107 [12:12:07]current date 1724242331 [12:12:07]FM_GetShiftState [12:12:07]SAM_PROTO_GetShiftState [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 13 01 00 [12:12:07]Write to MH i2c: E2 08 00 FB 44 80 13 01 00 00 00 00 00 BC [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 0E 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 0E 00 FB 44 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3C [12:12:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:12:07]wFMCommunicate OK [12:12:07]SAM_PROTO_GetShiftState done [12:12:07]FM_GetShiftState done [12:12:07]opened in 1724200467 [12:12:07]opened+sec_in_day 1724286867 [12:12:07]quantity*price = 60003 [12:12:07]sum+1 = 60004 [12:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 155 21.08.2024 12:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140138 ФПД: 183209893715031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140138&fm=183209893715031&tin=02508201610067®Number=0000000000092569&sum=60000 [12:12:09]StoreToDocumentArchive [12:12:09]shift 454 fd 140138 [12:12:09]save to /storage/0454/doc_00140138 [12:12:09]save last doc name /storage/0454/doc_00140138 to /storage/kkm_last_doc_name [12:12:09]save OK [12:12:09]Clear old archive folders... [12:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:09]tlvbuf is B6ECF900 [12:12:09]SAM_PROTO_ClearQueue [12:12:09]wFMCommunicate request_size=4 [12:12:09]MH_SAM_APDU [12:12:09]CAPDU: 80 09 00 00 [12:12:09]Write to MH i2c: E2 08 00 08 45 80 09 00 00 00 00 00 00 BF [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 08 45 00 90 00 C1 [12:12:09]RAPDU: 90 00 [12:12:09]wFMCommunicate OK [12:12:09]SAM_PROTO_ClearQueue done [12:12:09]KKMCreateOFDPacket [12:12:09]OFDProtocolAddRootSTLVToBuf [12:12:09]FM_MakeSignedData [12:12:09]FM_MakeSignedData [12:12:09]SAM_PROTO_SignData [12:12:09]wFMCommunicate request_size=4 [12:12:09]MH_SAM_APDU [12:12:09]CAPDU: 80 0D 01 02 [12:12:09]Write to MH i2c: E2 08 00 09 45 80 0D 01 02 00 00 00 00 C7 [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 09 45 00 90 00 C2 [12:12:09]RAPDU: 90 00 [12:12:09]wFMCommunicate OK [12:12:09]wFMCommunicate request_size=255 [12:12:09]MH_SAM_APDU [12:12: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 9B 00 00 00 F4 03 04 00 9B D9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 23 02 00 35 04 06 00 A6 [12:12:09]Write to MH i2c: E2 02 01 0A 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 9B 00 00 00 F4 03 04 00 9B D9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 23 02 00 35 04 06 00 A6 00 00 4D [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 0A 45 00 90 00 C3 [12:12:09]RAPDU: 90 00 [12:12:09]wFMCommunicate OK [12:12:09]wFMCommunicate request_size=10 [12:12:09]MH_SAM_APDU [12:12:09]CAPDU: 80 0D 02 02 05 A0 E0 A2 5C 57 [12:12:09]Write to MH i2c: E2 0D 00 0B 45 80 0D 02 02 05 00 A0 E0 A2 5C 57 00 00 A9 [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 03 00 0B 45 00 90 00 C4 [12:12:09]RAPDU: 90 00 [12:12:09]wFMCommunicate OK [12:12:09]wFMCommunicate request_size=4 [12:12:09]MH_SAM_APDU [12:12:09]CAPDU: 80 0D 03 02 [12:12:09]Write to MH i2c: E2 08 00 0C 45 80 0D 03 02 00 00 00 00 CC [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 0B 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 0B 00 0C 45 00 F4 A2 90 2C 11 76 42 01 90 00 E9 [12:12:09]RAPDU: F4 A2 90 2C 11 76 42 01 90 00 [12:12:09]wFMCommunicate OK [12:12:09]SAM_PROTO_SignData done [12:12:09]FM_MakeSignedData done [12:12:09]CreateOFDProtocolMessage [12:12:09]wFMCommunicate request_size=4 [12:12:09]MH_SAM_APDU [12:12:09]CAPDU: 80 11 00 00 [12:12:09]Write to MH i2c: E2 08 00 0D 45 80 11 00 00 00 00 00 00 CC [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:09]Read from MH i2c: E2 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 17 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: E2 17 00 0D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [12:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:12:09]wFMCommunicate OK [12:12:09]CreateOFDProtocolMessage done [12:12:09]OFDSenderStorePacket 140138 [12:12:09]StoreOFDPacket docnum=140138 [12:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 57 07 01 A5 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 9B 00 00 00 F4 03 04 00 9B D9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 23 02 00 35 04 06 00 A6 A0 E0 A2 5C 57 F4 A2 90 2C 11 76 42 01 [12:12:09]CheckFolder [12:12:09]dirname=/storage/ofd_packets [12:12:09]CheckFolder done [12:12:09]ProducePacketName [12:12:09]name=ofd_packets/00140138 [12:12:09]NVStorageSaveData ofd_packets/00140138 [12:12:09]File name is /storage/ofd_packets/00140138 [12:12:09]Write 301 bytes [12:12:09]NVStorageSaveData done [12:12:09]OFDSenderStorePacket done [12:12:09]KKMCreateOFDPacket done [12:12:09]NVStorageSaveData kkm_last_timestamp [12:12:09]File name is /storage/kkm_last_timestamp [12:12:09]Write 4 bytes [12:12:09]OFD Sender: Processing packet 140138 [packets to send 137, broken 136] [12:12:09]ProducePacketName [12:12:09]name=ofd_packets/00140138 [12:12:09]OFD Sender: To server: pG, [12:12:09]CommunicateWithHost lk.salyk.kg:30040 [12:12:09]ConnectInit lk.salyk.kg [12:12:09]NVStorageSaveData done [12:12:09]ExternCall_PrintAddStr [12:12:09]wPrintStart [12:12:09]Write to MH i2c: 01 00 00 0E 45 53 [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 07 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 07 00 0E 45 00 00 00 00 00 FF 0F 68 [12:12:09]RasterBufferAndPrint [12:12:09]line Счет N : (1)593992 [12:12:09]line ИНН: 02508201610067 [12:12:09]line Контрольно-Кассовый Чек [12:12:09]line ПРОДАЖА [12:12:09]line ТРК (МРК, ГНК) : 42 [12:12:09]line Товар: 2710124130 [12:12:09]line Аи-92-К-5 [12:12:09]line 8.850 * 67.80 [12:12:09]line = 600.03 [12:12:09]line НДС 12% НСП 1% [12:12:09]line > о реализуемом товаре [12:12:09]line ОКРУГЛЕНИЕ: -0.03 [12:12:09]line ИТОГО: 600.00 [12:12:09]line Внесено: 600.00 [12:12:09]line СДАЧА: 0.00 [12:12:09]line НСП 1% : 5.31 [12:12:09]line НДС 12% : 63.72 [12:12:09]line Наличными: 600.00 [12:12:09]line Безнал.: 0.00 [12:12:09]line Место: АЗС № 136 "Партнер Нефть" [12:12:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:12:09]line СНО: Общий режим [12:12:09]line Чек 155 21.08.2024 12:12 [12:12:09]line Смена: 454 ФФД: 1.0 [12:12:09]line ЗНМ: 0300000067 [12:12:09]line РНМ: 0000000000092569 [12:12:09]line Версия ККМ: 001 [12:12:09]line ФМ: 0000000000871776 [12:12:09]line ФД: 140138 [12:12:09]line ФПД: 183209893715031 [12:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121211&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140138&fm=183209893715031&tin=02508201610067®Number=0000000000092569&sum=60000 [12:12:09]written 0, free lines is 4095 [12:12:09]Connected sock=11 [12:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 53 57 07 01 A5 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 9B 00 00 00 F4 03 04 00 9B D9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 23 02 00 35 04 06 00 A6 A0 E0 A2 5C 57 F4 A2 90 2C 11 76 42 01 [12:12:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 0B 9F 47 00 90 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 37 36 10 04 04 00 6A 23 02 00 F4 03 04 00 2B 80 C5 66 B6 04 01 00 00 02 A6 4F 9A A1 D6 88 59 [12:12:10]CommunicateWithHost err = 0 [12:12:10]CheckOFDResponse [12:12:10]1017 (14) - 77093643461234 [12:12:10]1041 (16) - 0000000000871776 [12:12:10]1040 (4) - 140138 [12:12:10]1012 (4) - 21.08.2024 05:50 [12:12:10]1206 (1) - 0 [12:12:10]OFD Sender: Remove packet 140138 [12:12:10]ProducePacketName [12:12:10]name=ofd_packets/00140138 [12:12:10]NVStorageDeleteData [12:12:10]Write to MH i2c: 01 00 00 39 45 7E [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: 01 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: 01 07 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: 01 07 00 39 45 00 00 00 00 00 D2 0C 63 [12:12:10]RasterBufferAndPrint [12:12:10]line [12:12:10]line [12:12:10]line [12:12:10]line [12:12:10]line [12:12:10]written 0, free lines is 3288 [12:12:10]MH_Cut [12:12:10]Write to MH i2c: D1 01 00 40 45 01 57 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: D1 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: D1 01 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: D1 01 00 40 45 00 56 [12:12:10]Write to MH i2c: 01 00 00 41 45 86 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]OFD Sender: No OFD packet to send [12:12:10]*** Cut start [12:12:10]*** Partial cut [12:12:10]*** CUTSNS_PIN = 1 [12:12:10]*** CUTSNS_PIN = 0 [12:12:11]*** Brake cut motor [12:12:11]Read from MH i2c: 01 [12:12:11]MH_I2C_Read... [12:12:11]*** Stop cut motor [12:12:11]*** Cut end [12:12:11]Read from MH i2c: 01 07 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: 01 07 00 41 45 00 00 00 00 00 FF 0F 9B [12:12:11]process_action close_receipt done [12:12:11]requested_data is exist [12:12:11]produce_requested_data [12:12:11]requested_item fm.sn is exist - process it [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 11 00 00 [12:12:11]Write to MH i2c: E2 08 00 42 45 80 11 00 00 00 00 00 00 01 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 17 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 17 00 42 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [12:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:12:11]wFMCommunicate OK [12:12:11]requested_item fd.num is exist - process it [12:12:11]SAM_PROTO_GetFieldsCounters [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 13 00 00 [12:12:11]Write to MH i2c: E2 08 00 43 45 80 13 00 00 00 00 00 00 04 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 62 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 62 00 43 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [12:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:11]wFMCommunicate OK [12:12:11]SAM_PROTO_GetFieldsCounters done [12:12:11]requested_item shift.num is exist - process it [12:12:11]requested_item shift.opened is exist - process it [12:12:11]req_shift_opened [12:12:11]FM_GetShiftState [12:12:11]SAM_PROTO_GetShiftState [12:12:11]wFMCommunicate request_size=4 [12:12:11]MH_SAM_APDU [12:12:11]CAPDU: 80 13 01 00 [12:12:11]Write to MH i2c: E2 08 00 44 45 80 13 01 00 00 00 00 00 06 [12:12:11]Write i2c OK [12:12:11]MH_I2C_Read... [12:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:11]Read from MH i2c: E2 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0E 00 [12:12:11]MH_I2C_Read... [12:12:11]Read from MH i2c: E2 0E 00 44 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 86 [12:12:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:12:11]wFMCommunicate OK [12:12:11]SAM_PROTO_GetShiftState done [12:12:11]FM_GetShiftState done [12:12:11]req_shift_opened done [12:12:11]requested_item shift.open_date is exist - process it [12:12:11]req_shift_open_date [12:12:11]req_shift_open_date done [12:12:11]produce_requested_data done [12:12:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140138,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:12:11]process_action_free close_receipt [12:12:11]json_value_free [12:12:11]json_value_free done [12:12:11]process_json_proto returns [12:12:11]Send response to host [12:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140138,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:12:11]free response buf [12:12:11]execute_script done [12:12:11]execute_script returns [12:12:11]free content buf [12:12:11]Sock 9.Close socket [12:12:11]Sock 9.Thread stoped [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:14]accept exits with 7 [12:14:14]New connection [12:14:14]New thread 3066764644 created [12:14:14]Thread 3066908004 joined [12:14:14]Waiting for new connection... [12:14:14] Sock 7.Parse request [12:14:14]Sock 7.Check first char [12:14:14]Sock 7.First char is OK [12:14:14]request: POST /json_proto HTTP/1.0 [12:14:14]Method: POST [12:14:14]URL: /json_proto [12:14:14]Method is POST - this is cgi request [12:14:14]url: /json_proto [12:14:14]query_string will be loaded in cgi processing [12:14:14]execute_cgi json_proto POST (null) [12:14:14]execute_cgi path=json_proto method=POST [12:14:14]POST find Content-Length [12:14:14]Host: 172.17.45.67:8080 [12:14:14]Content-Length: 658 [12:14:14]Content-Type: application/json [12:14:14] [12:14:14]POST finish read [12:14:14]Found Content-Length = 658 [12:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:14]execute_script... [12:14: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)593993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:14]POST & json_proto [12:14:14]process_json_proto [12:14:14]json parsed OK: [12:14:14]protocol is kg_v1.0 [12:14:14]action value=close_receipt [12:14:14]process_action close_receipt [12:14:14]cmd_close_receipt [12:14:14]MH_GetDate [12:14:14]Write to MH i2c: F0 00 00 45 45 79 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: F0 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: F0 09 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: F0 09 00 45 45 00 19 DA C5 66 5F 7F 2B 66 0F [12:14:14]GetLastDocTimeStamp 1724242331 [12:14:14]current date 1724242457 [12:14:14]FM_GetShiftState [12:14:14]SAM_PROTO_GetShiftState [12:14:14]wFMCommunicate request_size=4 [12:14:14]MH_SAM_APDU [12:14:14]CAPDU: 80 13 01 00 [12:14:14]Write to MH i2c: E2 08 00 46 45 80 13 01 00 00 00 00 00 08 [12:14:14]Write i2c OK [12:14:14]MH_I2C_Read... [12:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:14]Read from MH i2c: E2 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0E 00 [12:14:14]MH_I2C_Read... [12:14:14]Read from MH i2c: E2 0E 00 46 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 88 [12:14:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:14:14]wFMCommunicate OK [12:14:14]SAM_PROTO_GetShiftState done [12:14:14]FM_GetShiftState done [12:14:14]opened in 1724200467 [12:14:14]opened+sec_in_day 1724286867 [12:14:14]quantity*price = 35019 [12:14:14]sum+1 = 35020 [12:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 156 21.08.2024 12:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140139 ФПД: 179085081244746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140139&fm=179085081244746&tin=02508201610067®Number=0000000000092569&sum=35000 [12:14:15]StoreToDocumentArchive [12:14:15]shift 454 fd 140139 [12:14:15]save to /storage/0454/doc_00140139 [12:14:15]save last doc name /storage/0454/doc_00140139 to /storage/kkm_last_doc_name [12:14:15]save OK [12:14:15]Clear old archive folders... [12:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:14:15]tlvbuf is 00AFCDD0 [12:14:15]SAM_PROTO_ClearQueue [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 09 00 00 [12:14:15]Write to MH i2c: E2 08 00 53 45 80 09 00 00 00 00 00 00 0A [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 53 45 00 90 00 0C [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]SAM_PROTO_ClearQueue done [12:14:15]KKMCreateOFDPacket [12:14:15]OFDProtocolAddRootSTLVToBuf [12:14:15]FM_MakeSignedData [12:14:15]FM_MakeSignedData [12:14:15]SAM_PROTO_SignData [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 01 02 [12:14:15]Write to MH i2c: E2 08 00 54 45 80 0D 01 02 00 00 00 00 12 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 54 45 00 90 00 0D [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]wFMCommunicate request_size=253 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 9C 00 00 00 F4 03 04 00 19 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 23 02 00 35 04 06 00 A2 E0 7E A6 F4 4A [12:14:15]Write to MH i2c: E2 00 01 55 45 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 9C 00 00 00 F4 03 04 00 19 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 23 02 00 35 04 06 00 A2 E0 7E A6 F4 4A 00 00 57 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 03 00 55 45 00 90 00 0E [12:14:15]RAPDU: 90 00 [12:14:15]wFMCommunicate OK [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 0D 03 02 [12:14:15]Write to MH i2c: E2 08 00 56 45 80 0D 03 02 00 00 00 00 16 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 0B 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 0B 00 56 45 00 98 5E 41 80 99 EF 57 79 90 00 26 [12:14:15]RAPDU: 98 5E 41 80 99 EF 57 79 90 00 [12:14:15]wFMCommunicate OK [12:14:15]SAM_PROTO_SignData done [12:14:15]FM_MakeSignedData done [12:14:15]CreateOFDProtocolMessage [12:14:15]wFMCommunicate request_size=4 [12:14:15]MH_SAM_APDU [12:14:15]CAPDU: 80 11 00 00 [12:14:15]Write to MH i2c: E2 08 00 57 45 80 11 00 00 00 00 00 00 16 [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:15]Read from MH i2c: E2 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 17 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: E2 17 00 57 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6D [12:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:14:15]wFMCommunicate OK [12:14:15]CreateOFDProtocolMessage done [12:14:15]OFDSenderStorePacket 140139 [12:14:15]StoreOFDPacket docnum=140139 [12:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 AD 02 00 01 7D 25 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 9C 00 00 00 F4 03 04 00 19 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 23 02 00 35 04 06 00 A2 E0 7E A6 F4 4A 98 5E 41 80 99 EF 57 79 [12:14:15]CheckFolder [12:14:15]dirname=/storage/ofd_packets [12:14:15]CheckFolder done [12:14:15]ProducePacketName [12:14:15]name=ofd_packets/00140139 [12:14:15]NVStorageSaveData ofd_packets/00140139 [12:14:15]File name is /storage/ofd_packets/00140139 [12:14:15]Write 294 bytes [12:14:15]NVStorageSaveData done [12:14:15]OFDSenderStorePacket done [12:14:15]KKMCreateOFDPacket done [12:14:15]NVStorageSaveData kkm_last_timestamp [12:14:15]File name is /storage/kkm_last_timestamp [12:14:15]Write 4 bytes [12:14:15]NVStorageSaveData done [12:14:15]ExternCall_PrintAddStr [12:14:15]wPrintStart [12:14:15]Write to MH i2c: 01 00 00 58 45 9D [12:14:15]Write i2c OK [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 [12:14:15]MH_I2C_Read... [12:14:15]Read from MH i2c: 01 07 00 58 45 00 00 00 00 00 FF 0F B2 [12:14:15]RasterBufferAndPrint [12:14:15]line Счет N : (1)593993 [12:14:15]line ИНН: 02508201610067 [12:14:15]line Контрольно-Кассовый Чек [12:14:15]line ПРОДАЖА [12:14:15]line ТРК (МРК, ГНК) : 53 [12:14:15]line Товар: 2710124130 [12:14:15]line SU-92 [12:14:15]line 5.090 * 68.80 [12:14:15]line = 350.19 [12:14:15]line НДС 12% НСП 1% [12:14:15]line > о реализуемом товаре [12:14:15]line ОКРУГЛЕНИЕ: -0.19 [12:14:15]line ИТОГО: 350.00 [12:14:15]line Внесено: 350.00 [12:14:15]line СДАЧА: 0.00 [12:14:15]line НСП 1% : 3.10 [12:14:15]line НДС 12% : 37.19 [12:14:15]line Наличными: 350.00 [12:14:15]line Безнал.: 0.00 [12:14:15]line Место: АЗС № 136 "Партнер Нефть" [12:14:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:14:15]line СНО: Общий режим [12:14:15]line Чек 156 21.08.2024 12:14 [12:14:15]line Смена: 454 ФФД: 1.0 [12:14:15]line ЗНМ: 0300000067 [12:14:15]line РНМ: 0000000000092569 [12:14:15]line Версия ККМ: 001 [12:14:15]line ФМ: 0000000000871776 [12:14:15]line ФД: 140139 [12:14:15]line ФПД: 179085081244746 [12:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121417&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140139&fm=179085081244746&tin=02508201610067®Number=0000000000092569&sum=35000 [12:14:16]OFD Sender: Processing packet 140139 [packets to send 137, broken 136] [12:14:16]ProducePacketName [12:14:16]name=ofd_packets/00140139 [12:14:16]OFD Sender: To server: pG, [12:14:16]CommunicateWithHost lk.salyk.kg:30040 [12:14:16]ConnectInit lk.salyk.kg [12:14:16]written 0, free lines is 4095 [12:14:16]Connected sock=10 [12:14: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 37 36 08 01 00 00 AD 02 00 01 7D 25 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 9C 00 00 00 F4 03 04 00 19 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 23 02 00 35 04 06 00 A2 E0 7E A6 F4 4A 98 5E 41 80 99 EF 57 79 [12:14: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 37 36 4F 00 00 00 95 E0 47 00 0B 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 37 36 10 04 04 00 6B 23 02 00 F4 03 04 00 AA 80 C5 66 B6 04 01 00 00 FD 1B 47 2A BA E9 28 CA [12:14:16]CommunicateWithHost err = 0 [12:14:16]CheckOFDResponse [12:14:16]1017 (14) - 77093643461234 [12:14:16]1041 (16) - 0000000000871776 [12:14:16]1040 (4) - 140139 [12:14:16]1012 (4) - 21.08.2024 05:52 [12:14:16]1206 (1) - 0 [12:14:16]OFD Sender: Remove packet 140139 [12:14:16]ProducePacketName [12:14:16]name=ofd_packets/00140139 [12:14:16]NVStorageDeleteData [12:14:16]Write to MH i2c: 01 00 00 83 45 C8 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: 01 07 00 83 45 00 00 00 00 00 D6 0C B1 [12:14:16]RasterBufferAndPrint [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]line [12:14:16]written 0, free lines is 3294 [12:14:16]MH_Cut [12:14:16]Write to MH i2c: D1 01 00 8A 45 01 A1 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 01 00 [12:14:16]MH_I2C_Read... [12:14:16]Read from MH i2c: D1 01 00 8A 45 00 A0 [12:14:16]Write to MH i2c: 01 00 00 8B 45 D0 [12:14:16]Write i2c OK [12:14:16]MH_I2C_Read... [12:14:16]OFD Sender: No OFD packet to send [12:14:17]*** Cut start [12:14:17]*** Partial cut [12:14:17]*** CUTSNS_PIN = 1 [12:14:17]*** CUTSNS_PIN = 0 [12:14:17]*** Brake cut motor [12:14:17]Read from MH i2c: 01 [12:14:17]MH_I2C_Read... [12:14:17]*** Stop cut motor [12:14:17]*** Cut end [12:14:17]Read from MH i2c: 01 07 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: 01 07 00 8B 45 00 00 00 00 00 FF 0F E5 [12:14:17]process_action close_receipt done [12:14:17]requested_data is exist [12:14:17]produce_requested_data [12:14:17]requested_item fm.sn is exist - process it [12:14:17]wFMCommunicate request_size=4 [12:14:17]MH_SAM_APDU [12:14:17]CAPDU: 80 11 00 00 [12:14:17]Write to MH i2c: E2 08 00 8C 45 80 11 00 00 00 00 00 00 4B [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:17]Read from MH i2c: E2 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 17 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 17 00 8C 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A2 [12:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:14:17]wFMCommunicate OK [12:14:17]requested_item fd.num is exist - process it [12:14:17]SAM_PROTO_GetFieldsCounters [12:14:17]wFMCommunicate request_size=4 [12:14:17]MH_SAM_APDU [12:14:17]CAPDU: 80 13 00 00 [12:14:17]Write to MH i2c: E2 08 00 8D 45 80 13 00 00 00 00 00 00 4E [12:14:17]Write i2c OK [12:14:17]MH_I2C_Read... [12:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:17]Read from MH i2c: E2 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 62 00 [12:14:17]MH_I2C_Read... [12:14:17]Read from MH i2c: E2 62 00 8D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [12:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetFieldsCounters done [12:14:18]requested_item shift.num is exist - process it [12:14:18]requested_item shift.opened is exist - process it [12:14:18]req_shift_opened [12:14:18]FM_GetShiftState [12:14:18]SAM_PROTO_GetShiftState [12:14:18]wFMCommunicate request_size=4 [12:14:18]MH_SAM_APDU [12:14:18]CAPDU: 80 13 01 00 [12:14:18]Write to MH i2c: E2 08 00 8E 45 80 13 01 00 00 00 00 00 50 [12:14:18]Write i2c OK [12:14:18]MH_I2C_Read... [12:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:18]Read from MH i2c: E2 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 [12:14:18]MH_I2C_Read... [12:14:18]Read from MH i2c: E2 0E 00 8E 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D0 [12:14:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:14:18]wFMCommunicate OK [12:14:18]SAM_PROTO_GetShiftState done [12:14:18]FM_GetShiftState done [12:14:18]req_shift_opened done [12:14:18]requested_item shift.open_date is exist - process it [12:14:18]req_shift_open_date [12:14:18]req_shift_open_date done [12:14:18]produce_requested_data done [12:14:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140139,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:14:18]process_action_free close_receipt [12:14:18]json_value_free [12:14:18]json_value_free done [12:14:18]process_json_proto returns [12:14:18]Send response to host [12:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140139,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:14:18]free response buf [12:14:18]execute_script done [12:14:18]execute_script returns [12:14:18]free content buf [12:14:18]Sock 7.Close socket [12:14:18]Sock 7.Thread stoped [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [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:39]accept exits with 9 [12:17:39]New connection [12:17:39]New thread 3066908004 created [12:17:39]Thread 3066764644 joined [12:17:39]Waiting for new connection... [12:17:39] Sock 9.Parse request [12:17:39]Sock 9.Check first char [12:17:39]Sock 9.First char is OK [12:17:39]request: POST /json_proto HTTP/1.0 [12:17:39]Method: POST [12:17:39]URL: /json_proto [12:17:39]Method is POST - this is cgi request [12:17:39]url: /json_proto [12:17:39]query_string will be loaded in cgi processing [12:17:39]execute_cgi json_proto POST (null) [12:17:39]execute_cgi path=json_proto method=POST [12:17:39]POST find Content-Length [12:17:39]Host: 172.17.45.67:8080 [12:17:39]Content-Length: 659 [12:17:39]Content-Type: application/json [12:17:39] [12:17:39]POST finish read [12:17:39]Found Content-Length = 659 [12:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.030, "sum" : 690.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:39]execute_script... [12:17: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)593994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 10.030, "sum" : 690.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:39]POST & json_proto [12:17:39]process_json_proto [12:17:39]json parsed OK: [12:17:39]protocol is kg_v1.0 [12:17:39]action value=close_receipt [12:17:39]process_action close_receipt [12:17:39]cmd_close_receipt [12:17:39]MH_GetDate [12:17:39]Write to MH i2c: F0 00 00 8F 45 C3 [12:17:39]Write i2c OK [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: F0 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: F0 09 00 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: F0 09 00 8F 45 00 E7 DA C5 66 5F 7F 2B 66 27 [12:17:39]GetLastDocTimeStamp 1724242457 [12:17:39]current date 1724242663 [12:17:39]FM_GetShiftState [12:17:39]SAM_PROTO_GetShiftState [12:17:39]wFMCommunicate request_size=4 [12:17:39]MH_SAM_APDU [12:17:39]CAPDU: 80 13 01 00 [12:17:39]Write to MH i2c: E2 08 00 90 45 80 13 01 00 00 00 00 00 52 [12:17:39]Write i2c OK [12:17:39]MH_I2C_Read... [12:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:39]Read from MH i2c: E2 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 0E 00 [12:17:39]MH_I2C_Read... [12:17:39]Read from MH i2c: E2 0E 00 90 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D2 [12:17:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:17:39]wFMCommunicate OK [12:17:39]SAM_PROTO_GetShiftState done [12:17:39]FM_GetShiftState done [12:17:39]opened in 1724200467 [12:17:39]opened+sec_in_day 1724286867 [12:17:39]quantity*price = 69006 [12:17:39]sum+1 = 69007 [12:17:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.28 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 157 21.08.2024 12:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140140 ФПД: 248979903931779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140140&fm=248979903931779&tin=02508201610067®Number=0000000000092569&sum=69000 [12:17:41]StoreToDocumentArchive [12:17:41]shift 454 fd 140140 [12:17:41]save to /storage/0454/doc_00140140 [12:17:41]save last doc name /storage/0454/doc_00140140 to /storage/kkm_last_doc_name [12:17:41]save OK [12:17:41]Clear old archive folders... [12:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:17:41]tlvbuf is 00A1B2F0 [12:17:41]SAM_PROTO_ClearQueue [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 09 00 00 [12:17:41]Write to MH i2c: E2 08 00 9D 45 80 09 00 00 00 00 00 00 54 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 9D 45 00 90 00 56 [12:17:41]RAPDU: 90 00 [12:17:41]wFMCommunicate OK [12:17:41]SAM_PROTO_ClearQueue done [12:17:41]KKMCreateOFDPacket [12:17:41]OFDProtocolAddRootSTLVToBuf [12:17:41]FM_MakeSignedData [12:17:41]FM_MakeSignedData [12:17:41]SAM_PROTO_SignData [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 0D 01 02 [12:17:41]Write to MH i2c: E2 08 00 9E 45 80 0D 01 02 00 00 00 00 5C [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 9E 45 00 90 00 57 [12:17:41]RAPDU: 90 00 [12:17:41]wFMCommunicate OK [12:17:41]wFMCommunicate request_size=253 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E7 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 23 02 00 35 04 06 00 E2 72 26 BA E5 83 [12:17:41]Write to MH i2c: E2 00 01 9F 45 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E7 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 23 02 00 35 04 06 00 E2 72 26 BA E5 83 00 00 D3 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 03 00 9F 45 00 90 00 58 [12:17:41]RAPDU: 90 00 [12:17:41]wFMCommunicate OK [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 0D 03 02 [12:17:41]Write to MH i2c: E2 08 00 A0 45 80 0D 03 02 00 00 00 00 60 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0B 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 0B 00 A0 45 00 D8 71 56 E7 79 4A 8D AE 90 00 E5 [12:17:41]RAPDU: D8 71 56 E7 79 4A 8D AE 90 00 [12:17:41]wFMCommunicate OK [12:17:41]SAM_PROTO_SignData done [12:17:41]FM_MakeSignedData done [12:17:41]CreateOFDProtocolMessage [12:17:41]wFMCommunicate request_size=4 [12:17:41]MH_SAM_APDU [12:17:41]CAPDU: 80 11 00 00 [12:17:41]Write to MH i2c: E2 08 00 A1 45 80 11 00 00 00 00 00 00 60 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:41]Read from MH i2c: E2 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 17 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: E2 17 00 A1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [12:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:41]wFMCommunicate OK [12:17:41]CreateOFDProtocolMessage done [12:17:41]OFDSenderStorePacket 140140 [12:17:41]StoreOFDPacket docnum=140140 [12:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 BA 7C 00 01 91 E2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E7 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 23 02 00 35 04 06 00 E2 72 26 BA E5 83 D8 71 56 E7 79 4A 8D AE [12:17:41]CheckFolder [12:17:41]dirname=/storage/ofd_packets [12:17:41]CheckFolder done [12:17:41]ProducePacketName [12:17:41]name=ofd_packets/00140140 [12:17:41]NVStorageSaveData ofd_packets/00140140 [12:17:41]File name is /storage/ofd_packets/00140140 [12:17:41]Write 294 bytes [12:17:41]NVStorageSaveData done [12:17:41]OFDSenderStorePacket done [12:17:41]KKMCreateOFDPacket done [12:17:41]NVStorageSaveData kkm_last_timestamp [12:17:41]File name is /storage/kkm_last_timestamp [12:17:41]Write 4 bytes [12:17:41]NVStorageSaveData done [12:17:41]ExternCall_PrintAddStr [12:17:41]wPrintStart [12:17:41]Write to MH i2c: 01 00 00 A2 45 E7 [12:17:41]Write i2c OK [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: 01 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: 01 07 00 [12:17:41]MH_I2C_Read... [12:17:41]Read from MH i2c: 01 07 00 A2 45 00 00 00 00 00 FF 0F FC [12:17:41]RasterBufferAndPrint [12:17:41]line Счет N : (1)593994 [12:17:41]line ИНН: 02508201610067 [12:17:41]line Контрольно-Кассовый Чек [12:17:41]line ПРОДАЖА [12:17:41]line ТРК (МРК, ГНК) : 63 [12:17:41]line Товар: 2710124130 [12:17:41]line SU-92 [12:17:41]line 10.030 * 68.80 [12:17:41]line = 690.06 [12:17:41]line НДС 12% НСП 1% [12:17:41]line > о реализуемом товаре [12:17:41]line ОКРУГЛЕНИЕ: -0.06 [12:17:41]line ИТОГО: 690.00 [12:17:41]line Внесено: 690.00 [12:17:41]line СДАЧА: 0.00 [12:17:41]line НСП 1% : 6.11 [12:17:41]line НДС 12% : 73.28 [12:17:41]line Наличными: 690.00 [12:17:41]line Безнал.: 0.00 [12:17:41]line Место: АЗС № 136 "Партнер Нефть" [12:17:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:17:41]line СНО: Общий режим [12:17:41]line Чек 157 21.08.2024 12:17 [12:17:41]line Смена: 454 ФФД: 1.0 [12:17:41]line ЗНМ: 0300000067 [12:17:41]line РНМ: 0000000000092569 [12:17:41]line Версия ККМ: 001 [12:17:41]line ФМ: 0000000000871776 [12:17:41]line ФД: 140140 [12:17:41]line ФПД: 248979903931779 [12:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140140&fm=248979903931779&tin=02508201610067®Number=0000000000092569&sum=69000 [12:17:41]OFD Sender: Processing packet 140140 [packets to send 137, broken 136] [12:17:41]ProducePacketName [12:17:41]name=ofd_packets/00140140 [12:17:41]OFD Sender: To server: pG, [12:17:41]CommunicateWithHost lk.salyk.kg:30040 [12:17:41]ConnectInit lk.salyk.kg [12:17:41]written 0, free lines is 4095 [12:17:42]Connected sock=10 [12:17: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 37 36 08 01 00 00 BA 7C 00 01 91 E2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 2E 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 8E 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E7 DA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 23 02 00 35 04 06 00 E2 72 26 BA E5 83 D8 71 56 E7 79 4A 8D AE [12:17: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 37 36 4F 00 00 00 2B D0 47 00 65 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 23 02 00 F4 03 04 00 78 81 C5 66 B6 04 01 00 00 7B E3 9B 74 D9 46 11 37 [12:17:42]CommunicateWithHost err = 0 [12:17:42]CheckOFDResponse [12:17:42]1017 (14) - 77093643461234 [12:17:42]1041 (16) - 0000000000871776 [12:17:42]1040 (4) - 140140 [12:17:42]1012 (4) - 21.08.2024 05:56 [12:17:42]1206 (1) - 0 [12:17:42]OFD Sender: Remove packet 140140 [12:17:42]ProducePacketName [12:17:42]name=ofd_packets/00140140 [12:17:42]NVStorageDeleteData [12:17:42]Write to MH i2c: 01 00 00 CD 45 12 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 CD 45 00 00 00 00 00 E2 0C 07 [12:17:42]RasterBufferAndPrint [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]written 0, free lines is 3304 [12:17:42]MH_Cut [12:17:42]Write to MH i2c: D1 01 00 D4 45 01 EB [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 01 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 01 00 D4 45 00 EA [12:17:42]Write to MH i2c: 01 00 00 D5 45 1A [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]OFD Sender: No OFD packet to send [12:17:43]*** Cut start [12:17:43]*** Partial cut [12:17:43]*** CUTSNS_PIN = 1 [12:17:43]*** CUTSNS_PIN = 0 [12:17:43]*** Brake cut motor [12:17:43]Read from MH i2c: 01 [12:17:43]MH_I2C_Read... [12:17:43]*** Stop cut motor [12:17:43]*** Cut end [12:17:43]Read from MH i2c: 01 07 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 D5 45 00 00 00 00 00 FF 0F 2F [12:17:43]process_action close_receipt done [12:17:43]requested_data is exist [12:17:43]produce_requested_data [12:17:43]requested_item fm.sn is exist - process it [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 11 00 00 [12:17:43]Write to MH i2c: E2 08 00 D6 45 80 11 00 00 00 00 00 00 95 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 17 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 17 00 D6 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [12:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:17:43]wFMCommunicate OK [12:17:43]requested_item fd.num is exist - process it [12:17:43]SAM_PROTO_GetFieldsCounters [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 13 00 00 [12:17:43]Write to MH i2c: E2 08 00 D7 45 80 13 00 00 00 00 00 00 98 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 62 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 62 00 D7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:43]wFMCommunicate OK [12:17:43]SAM_PROTO_GetFieldsCounters done [12:17:43]requested_item shift.num is exist - process it [12:17:43]requested_item shift.opened is exist - process it [12:17:43]req_shift_opened [12:17:43]FM_GetShiftState [12:17:43]SAM_PROTO_GetShiftState [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 13 01 00 [12:17:43]Write to MH i2c: E2 08 00 D8 45 80 13 01 00 00 00 00 00 9A [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 0E 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 0E 00 D8 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1A [12:17:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:17:43]wFMCommunicate OK [12:17:43]SAM_PROTO_GetShiftState done [12:17:43]FM_GetShiftState done [12:17:43]req_shift_opened done [12:17:43]requested_item shift.open_date is exist - process it [12:17:43]req_shift_open_date [12:17:43]req_shift_open_date done [12:17:43]produce_requested_data done [12:17:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140140,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:17:43]process_action_free close_receipt [12:17:43]json_value_free [12:17:43]json_value_free done [12:17:43]process_json_proto returns [12:17:43]Send response to host [12:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140140,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:17:43]free response buf [12:17:43]execute_script done [12:17:43]execute_script returns [12:17:43]free content buf [12:17:43]Sock 9.Close socket [12:17:43]Sock 9.Thread stoped [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:00]int [12:18:00]Write to MH i2c: 01 00 00 D9 45 1E [12:18:00]*** FLAG_PRN_KEY set [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 D9 45 00 08 00 00 00 FF 0F 3B [12:18:00]state=0 [12:18:00]Key pressed [12:18:00]Feed [12:18:00]Write to MH i2c: D8 00 00 DA 45 F6 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D8 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D8 01 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: D8 01 00 DA 45 00 F7 [12:18:00]int [12:18:00]Write to MH i2c: 01 00 00 DB 45 20 [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 DB 45 00 48 00 00 00 3C 00 AB [12:18:00]state=2 [12:18:00]Key pressed [12:18:00]int [12:18:00]Write to MH i2c: 01 00 00 DC 45 21 [12:18:00]*** FLAG_PRN_KEY reset [12:18:00]Write i2c OK [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 [12:18:00]MH_I2C_Read... [12:18:00]Read from MH i2c: 01 07 00 [12:18:00]MH_I2C_Read... [12:18:01]Read from MH i2c: 01 07 00 DC 45 00 00 00 00 00 F8 0F 2F [12:18:01]state=2 [12:18:01]Stop feed [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:51]accept exits with 7 [12:18:51]New connection [12:18:51]New thread 3066764644 created [12:18:51]Thread 3066908004 joined [12:18:51]Waiting for new connection... [12:18:51] Sock 7.Parse request [12:18:51]Sock 7.Check first char [12:18:51]Sock 7.First char is OK [12:18:51]request: POST /json_proto HTTP/1.0 [12:18:51]Method: POST [12:18:51]URL: /json_proto [12:18:51]Method is POST - this is cgi request [12:18:51]url: /json_proto [12:18:51]query_string will be loaded in cgi processing [12:18:51]execute_cgi json_proto POST (null) [12:18:51]execute_cgi path=json_proto method=POST [12:18:51]POST find Content-Length [12:18:51]Host: 172.17.45.67:8080 [12:18:51]Content-Length: 792 [12:18:51]Content-Type: application/json [12:18:51] [12:18:51]POST finish read [12:18:51]Found Content-Length = 792 [12:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81754", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:51]execute_script... [12:18:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81754", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:51]POST & json_proto [12:18:51]process_json_proto [12:18:51]json parsed OK: [12:18:51]protocol is kg_v1.0 [12:18:51]action value=close_receipt [12:18:51]process_action close_receipt [12:18:51]cmd_close_receipt [12:18:51]MH_GetDate [12:18:51]Write to MH i2c: F0 00 00 DD 45 11 [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 09 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: F0 09 00 DD 45 00 2E DB C5 66 5F 7F 2B 66 BD [12:18:51]GetLastDocTimeStamp 1724242663 [12:18:51]current date 1724242734 [12:18:51]FM_GetShiftState [12:18:51]SAM_PROTO_GetShiftState [12:18:51]wFMCommunicate request_size=4 [12:18:51]MH_SAM_APDU [12:18:51]CAPDU: 80 13 01 00 [12:18:51]Write to MH i2c: E2 08 00 DE 45 80 13 01 00 00 00 00 00 A0 [12:18:51]Write i2c OK [12:18:51]MH_I2C_Read... [12:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:51]Read from MH i2c: E2 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 [12:18:51]MH_I2C_Read... [12:18:51]Read from MH i2c: E2 0E 00 DE 45 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 20 [12:18:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:18:51]wFMCommunicate OK [12:18:51]SAM_PROTO_GetShiftState done [12:18:51]FM_GetShiftState done [12:18:51]opened in 1724200467 [12:18:51]opened+sec_in_day 1724286867 [12:18:51]quantity*price = 0 [12:18:51]sum+1 = 1 [12:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 158 21.08.2024 12:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 81754 ФМ: 0000000000871776 ФД: 140141 ФПД: 179965705374988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140141&fm=179965705374988&tin=02508201610067®Number=0000000000092569&sum=0 [12:18:52]StoreToDocumentArchive [12:18:52]shift 454 fd 140141 [12:18:52]save to /storage/0454/doc_00140141 [12:18:52]save last doc name /storage/0454/doc_00140141 to /storage/kkm_last_doc_name [12:18:52]save OK [12:18:52]Clear old archive folders... [12:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:52]tlvbuf is 00A7A180 [12:18:52]SAM_PROTO_ClearQueue [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 09 00 00 [12:18:52]Write to MH i2c: E2 08 00 EB 45 80 09 00 00 00 00 00 00 A2 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 EB 45 00 90 00 A4 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_ClearQueue done [12:18:52]KKMCreateOFDPacket [12:18:52]OFDProtocolAddRootSTLVToBuf [12:18:52]FM_MakeSignedData [12:18:52]FM_MakeSignedData [12:18:52]SAM_PROTO_SignData [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 01 02 [12:18:52]Write to MH i2c: E2 08 00 EC 45 80 0D 01 02 00 00 00 00 AA [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 EC 45 00 90 00 A5 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=255 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2E DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 23 02 00 35 04 06 00 A3 [12:18:52]Write to MH i2c: E2 02 01 ED 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2E DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 23 02 00 35 04 06 00 A3 00 00 C3 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 ED 45 00 90 00 A6 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=10 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 02 02 05 AD 87 F0 CD 0C [12:18:52]Write to MH i2c: E2 0D 00 EE 45 80 0D 02 02 05 00 AD 87 F0 CD 0C 00 00 B4 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 03 00 EE 45 00 90 00 A7 [12:18:52]RAPDU: 90 00 [12:18:52]wFMCommunicate OK [12:18:52]wFMCommunicate request_size=4 [12:18:52]MH_SAM_APDU [12:18:52]CAPDU: 80 0D 03 02 [12:18:52]Write to MH i2c: E2 08 00 EF 45 80 0D 03 02 00 00 00 00 AF [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:52]OFD Sender: No OFD packet to send [12:18:52]Read from MH i2c: E2 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: E2 0B 00 EF 45 00 6A 22 25 5E 29 EE 6A 88 90 00 C8 [12:18:52]RAPDU: 6A 22 25 5E 29 EE 6A 88 90 00 [12:18:52]wFMCommunicate OK [12:18:52]SAM_PROTO_SignData done [12:18:52]FM_MakeSignedData done [12:18:52]CreateOFDProtocolMessage [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 F0 45 80 11 00 00 00 00 00 00 AF [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 F0 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [12:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:52]wFMCommunicate OK [12:18:52]CreateOFDProtocolMessage done [12:18:52]OFDSenderStorePacket 140141 [12:18:52]StoreOFDPacket docnum=140141 [12:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 67 07 01 16 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2E DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 23 02 00 35 04 06 00 A3 AD 87 F0 CD 0C 6A 22 25 5E 29 EE 6A 88 [12:18:52]CheckFolder [12:18:52]dirname=/storage/ofd_packets [12:18:52]CheckFolder done [12:18:52]ProducePacketName [12:18:52]name=ofd_packets/00140141 [12:18:52]NVStorageSaveData ofd_packets/00140141 [12:18:52]File name is /storage/ofd_packets/00140141 [12:18:52]Write 301 bytes [12:18:52]NVStorageSaveData done [12:18:52]OFDSenderStorePacket done [12:18:52]KKMCreateOFDPacket done [12:18:52]NVStorageSaveData kkm_last_timestamp [12:18:52]File name is /storage/kkm_last_timestamp [12:18:52]Write 4 bytes [12:18:52]NVStorageSaveData done [12:18:52]ExternCall_PrintAddStr [12:18:52]wPrintStart [12:18:52]Write to MH i2c: 01 00 00 F1 45 36 [12:18:52]Write i2c OK [12:18:52]MH_I2C_Read... [12:18:52]Read from MH i2c: 01 [12:18:52]MH_I2C_Read... [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 F1 45 00 00 00 00 00 FF 0F 4B [12:18:52]RasterBufferAndPrint [12:18:52]line Счет N : (1)593995 [12:18:52]line ИНН: 02508201610067 [12:18:52]line Контрольно-Кассовый Чек [12:18:52]line ПРОДАЖА [12:18:52]line ТРК (МРК, ГНК) : 42 [12:18:52]line Товар: 2710124130 [12:18:52]line Аи-92-К-5 [12:18:52]line 10.000 * 0.00 [12:18:52]line = 0.00 [12:18:52]line НДС 12% НСП 1% [12:18:52]line > о реализуемом товаре [12:18:52]line ИТОГО: 0.00 [12:18:52]line НСП 1% : 0.00 [12:18:52]line НДС 12% : 0.00 [12:18:52]line Наличными: 0.00 [12:18:52]line Безнал.: 0.00 [12:18:52]line Место: АЗС № 136 "Партнер Нефть" [12:18:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:18:52]line СНО: Общий режим [12:18:52]line Чек 158 21.08.2024 12:18 [12:18:52]line Смена: 454 ФФД: 1.0 [12:18:52]line ЗНМ: 0300000067 [12:18:52]line РНМ: 0000000000092569 [12:18:52]line Версия ККМ: 001 [12:18:52]line Талоны: Топливная Карта [12:18:52]line 81754 [12:18:52]line ФМ: 0000000000871776 [12:18:52]line ФД: 140141 [12:18:52]line ФПД: 179965705374988 [12:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T121854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140141&fm=179965705374988&tin=02508201610067®Number=0000000000092569&sum=0 [12:18:53]written 0, free lines is 4095 [12:18:53]OFD Sender: Processing packet 140141 [packets to send 137, broken 136] [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00140141 [12:18:53]OFD Sender: To server: pG, [12:18:53]CommunicateWithHost lk.salyk.kg:30040 [12:18:53]ConnectInit lk.salyk.kg [12:18:53]Connected sock=10 [12:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 67 07 01 16 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 2E DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 23 02 00 35 04 06 00 A3 AD 87 F0 CD 0C 6A 22 25 5E 29 EE 6A 88 [12:18: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 37 36 4F 00 00 00 B3 C5 47 00 F8 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 23 02 00 F4 03 04 00 BF 81 C5 66 B6 04 01 00 00 F7 15 4B 7B D6 19 19 67 [12:18:53]CommunicateWithHost err = 0 [12:18:53]CheckOFDResponse [12:18:53]1017 (14) - 77093643461234 [12:18:53]1041 (16) - 0000000000871776 [12:18:53]1040 (4) - 140141 [12:18:53]1012 (4) - 21.08.2024 05:57 [12:18:53]1206 (1) - 0 [12:18:53]OFD Sender: Remove packet 140141 [12:18:53]ProducePacketName [12:18:53]name=ofd_packets/00140141 [12:18:53]NVStorageDeleteData [12:18:53]Write to MH i2c: 01 00 00 1B 46 61 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: 01 07 00 1B 46 00 00 00 00 00 E5 0C 59 [12:18:53]RasterBufferAndPrint [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]line [12:18:53]written 0, free lines is 3305 [12:18:53]MH_Cut [12:18:53]Write to MH i2c: D1 01 00 22 46 01 3A [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 [12:18:53]MH_I2C_Read... [12:18:53]Read from MH i2c: D1 01 00 22 46 00 39 [12:18:53]Write to MH i2c: 01 00 00 23 46 69 [12:18:53]Write i2c OK [12:18:53]MH_I2C_Read... [12:18:54]OFD Sender: No OFD packet to send [12:18:54]*** Cut start [12:18:54]*** Partial cut [12:18:54]*** CUTSNS_PIN = 1 [12:18:54]*** CUTSNS_PIN = 0 [12:18:54]*** Brake cut motor [12:18:55]Read from MH i2c: 01 [12:18:55]MH_I2C_Read... [12:18:55]*** Stop cut motor [12:18:55]*** Cut end [12:18:55]Read from MH i2c: 01 07 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: 01 07 00 23 46 00 00 00 00 00 FF 0F 7E [12:18:55]process_action close_receipt done [12:18:55]requested_data is exist [12:18:55]produce_requested_data [12:18:55]requested_item fm.sn is exist - process it [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 11 00 00 [12:18:55]Write to MH i2c: E2 08 00 24 46 80 11 00 00 00 00 00 00 E4 [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 17 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 17 00 24 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [12:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:18:55]wFMCommunicate OK [12:18:55]requested_item fd.num is exist - process it [12:18:55]SAM_PROTO_GetFieldsCounters [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 00 00 [12:18:55]Write to MH i2c: E2 08 00 25 46 80 13 00 00 00 00 00 00 E7 [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 62 00 25 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [12:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetFieldsCounters done [12:18:55]requested_item shift.num is exist - process it [12:18:55]requested_item shift.opened is exist - process it [12:18:55]req_shift_opened [12:18:55]FM_GetShiftState [12:18:55]SAM_PROTO_GetShiftState [12:18:55]wFMCommunicate request_size=4 [12:18:55]MH_SAM_APDU [12:18:55]CAPDU: 80 13 01 00 [12:18:55]Write to MH i2c: E2 08 00 26 46 80 13 01 00 00 00 00 00 E9 [12:18:55]Write i2c OK [12:18:55]MH_I2C_Read... [12:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:55]Read from MH i2c: E2 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 [12:18:55]MH_I2C_Read... [12:18:55]Read from MH i2c: E2 0E 00 26 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 69 [12:18:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:18:55]wFMCommunicate OK [12:18:55]SAM_PROTO_GetShiftState done [12:18:55]FM_GetShiftState done [12:18:55]req_shift_opened done [12:18:55]requested_item shift.open_date is exist - process it [12:18:55]req_shift_open_date [12:18:55]req_shift_open_date done [12:18:55]produce_requested_data done [12:18:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140141,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:18:55]process_action_free close_receipt [12:18:55]json_value_free [12:18:55]json_value_free done [12:18:55]process_json_proto returns [12:18:55]Send response to host [12:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140141,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:18:55]free response buf [12:18:55]execute_script done [12:18:55]execute_script returns [12:18:55]free content buf [12:18:55]Sock 7.Close socket [12:18:55]Sock 7.Thread stoped [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:18]int [12:19:18]Write to MH i2c: 01 00 00 27 46 6D [12:19:18]*** FLAG_PRN_KEY set [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 27 46 00 08 00 00 00 FF 0F 8A [12:19:18]state=0 [12:19:18]Key pressed [12:19:18]Feed [12:19:18]Write to MH i2c: D8 00 00 28 46 45 [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: D8 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: D8 01 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: D8 01 00 28 46 00 46 [12:19:18]int [12:19:18]Write to MH i2c: 01 00 00 29 46 6F [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 29 46 00 48 00 00 00 3C 00 FA [12:19:18]state=2 [12:19:18]Key pressed [12:19:18]int [12:19:18]Write to MH i2c: 01 00 00 2A 46 70 [12:19:18]*** FLAG_PRN_KEY reset [12:19:18]Write i2c OK [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 [12:19:18]MH_I2C_Read... [12:19:18]Read from MH i2c: 01 07 00 2A 46 00 00 00 00 00 F5 0F 7B [12:19:18]state=2 [12:19:18]Stop feed [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:04]accept exits with 9 [12:21:04]New connection [12:21:04]New thread 3066908004 created [12:21:04]Thread 3066764644 joined [12:21:04]Waiting for new connection... [12:21:04] Sock 9.Parse request [12:21:04]Sock 9.Check first char [12:21:04]Sock 9.First char is OK [12:21:04]request: POST /json_proto HTTP/1.0 [12:21:04]Method: POST [12:21:04]URL: /json_proto [12:21:04]Method is POST - this is cgi request [12:21:04]url: /json_proto [12:21:04]query_string will be loaded in cgi processing [12:21:04]execute_cgi json_proto POST (null) [12:21:04]execute_cgi path=json_proto method=POST [12:21:04]POST find Content-Length [12:21:04]Host: 172.17.45.67:8080 [12:21:04]Content-Length: 677 [12:21:04]Content-Type: application/json [12:21:04] [12:21:04]POST finish read [12:21:04]Found Content-Length = 677 [12:21:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:04]execute_script... [12:21: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)593996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:04]POST & json_proto [12:21:04]process_json_proto [12:21:04]json parsed OK: [12:21:04]protocol is kg_v1.0 [12:21:04]action value=close_receipt [12:21:04]process_action close_receipt [12:21:04]cmd_close_receipt [12:21:04]MH_GetDate [12:21:04]Write to MH i2c: F0 00 00 2B 46 60 [12:21:04]Write i2c OK [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 09 00 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: F0 09 00 2B 46 00 B4 DB C5 66 5F 7F 2B 66 92 [12:21:04]GetLastDocTimeStamp 1724242734 [12:21:04]current date 1724242868 [12:21:04]FM_GetShiftState [12:21:04]SAM_PROTO_GetShiftState [12:21:04]wFMCommunicate request_size=4 [12:21:04]MH_SAM_APDU [12:21:04]CAPDU: 80 13 01 00 [12:21:04]Write to MH i2c: E2 08 00 2C 46 80 13 01 00 00 00 00 00 EF [12:21:04]Write i2c OK [12:21:04]MH_I2C_Read... [12:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:04]Read from MH i2c: E2 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: E2 0E 00 [12:21:04]MH_I2C_Read... [12:21:04]Read from MH i2c: E2 0E 00 2C 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6F [12:21:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:21:04]wFMCommunicate OK [12:21:04]SAM_PROTO_GetShiftState done [12:21:04]FM_GetShiftState done [12:21:04]opened in 1724200467 [12:21:04]opened+sec_in_day 1724286867 [12:21:04]quantity*price = 10034 [12:21:04]sum+1 = 10035 [12:21:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 159 21.08.2024 12:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140142 ФПД: 175064233317986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140142&fm=175064233317986&tin=02508201610067®Number=0000000000092569&sum=10000 [12:21:05]StoreToDocumentArchive [12:21:05]shift 454 fd 140142 [12:21:05]save to /storage/0454/doc_00140142 [12:21:05]save last doc name /storage/0454/doc_00140142 to /storage/kkm_last_doc_name [12:21:05]save OK [12:21:05]Clear old archive folders... [12:21:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:05]tlvbuf is B6ECF5D0 [12:21:05]SAM_PROTO_ClearQueue [12:21:05]wFMCommunicate request_size=4 [12:21:05]MH_SAM_APDU [12:21:05]CAPDU: 80 09 00 00 [12:21:05]Write to MH i2c: E2 08 00 39 46 80 09 00 00 00 00 00 00 F1 [12:21:05]Write i2c OK [12:21:05]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 39 46 00 90 00 F3 [12:21:06]RAPDU: 90 00 [12:21:06]wFMCommunicate OK [12:21:06]SAM_PROTO_ClearQueue done [12:21:06]KKMCreateOFDPacket [12:21:06]OFDProtocolAddRootSTLVToBuf [12:21:06]FM_MakeSignedData [12:21:06]FM_MakeSignedData [12:21:06]SAM_PROTO_SignData [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 0D 01 02 [12:21:06]Write to MH i2c: E2 08 00 3A 46 80 0D 01 02 00 00 00 00 F9 [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [12:21:06]RAPDU: 90 00 [12:21:06]wFMCommunicate OK [12:21:06]wFMCommunicate request_size=255 [12:21:06]MH_SAM_APDU [12:21: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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 9F 00 00 00 F4 03 04 00 B4 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 23 02 00 35 04 06 00 9F [12:21:06]Write to MH i2c: E2 02 01 3B 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 9F 00 00 00 F4 03 04 00 B4 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 23 02 00 35 04 06 00 9F 00 00 10 [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 3B 46 00 90 00 F5 [12:21:06]RAPDU: 90 00 [12:21:06]wFMCommunicate OK [12:21:06]wFMCommunicate request_size=10 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 0D 02 02 05 38 51 70 96 62 [12:21:06]Write to MH i2c: E2 0D 00 3C 46 80 0D 02 02 05 00 38 51 70 96 62 00 00 F7 [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 03 00 3C 46 00 90 00 F6 [12:21:06]RAPDU: 90 00 [12:21:06]wFMCommunicate OK [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 0D 03 02 [12:21:06]Write to MH i2c: E2 08 00 3D 46 80 0D 03 02 00 00 00 00 FE [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 0B 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 0B 00 3D 46 00 AF D8 1B EF EF 33 B7 DD 90 00 46 [12:21:06]RAPDU: AF D8 1B EF EF 33 B7 DD 90 00 [12:21:06]wFMCommunicate OK [12:21:06]SAM_PROTO_SignData done [12:21:06]FM_MakeSignedData done [12:21:06]CreateOFDProtocolMessage [12:21:06]wFMCommunicate request_size=4 [12:21:06]MH_SAM_APDU [12:21:06]CAPDU: 80 11 00 00 [12:21:06]Write to MH i2c: E2 08 00 3E 46 80 11 00 00 00 00 00 00 FE [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:06]Read from MH i2c: E2 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 17 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: E2 17 00 3E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [12:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:21:06]wFMCommunicate OK [12:21:06]CreateOFDProtocolMessage done [12:21:06]OFDSenderStorePacket 140142 [12:21:06]StoreOFDPacket docnum=140142 [12:21:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2F 8B 07 01 7F 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 9F 00 00 00 F4 03 04 00 B4 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 23 02 00 35 04 06 00 9F 38 51 70 96 62 AF D8 1B EF EF 33 B7 DD [12:21:06]CheckFolder [12:21:06]dirname=/storage/ofd_packets [12:21:06]CheckFolder done [12:21:06]ProducePacketName [12:21:06]name=ofd_packets/00140142 [12:21:06]NVStorageSaveData ofd_packets/00140142 [12:21:06]File name is /storage/ofd_packets/00140142 [12:21:06]Write 301 bytes [12:21:06]NVStorageSaveData done [12:21:06]OFDSenderStorePacket done [12:21:06]KKMCreateOFDPacket done [12:21:06]NVStorageSaveData kkm_last_timestamp [12:21:06]File name is /storage/kkm_last_timestamp [12:21:06]Write 4 bytes [12:21:06]NVStorageSaveData done [12:21:06]ExternCall_PrintAddStr [12:21:06]wPrintStart [12:21:06]Write to MH i2c: 01 00 00 3F 46 85 [12:21:06]Write i2c OK [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 07 00 [12:21:06]MH_I2C_Read... [12:21:06]Read from MH i2c: 01 07 00 3F 46 00 00 00 00 00 FF 0F 9A [12:21:06]RasterBufferAndPrint [12:21:06]line Счет N : (1)593996 [12:21:06]line ИНН: 02508201610067 [12:21:06]line Контрольно-Кассовый Чек [12:21:06]line ПРОДАЖА [12:21:06]line ТРК (МРК, ГНК) : 42 [12:21:06]line Товар: 2710124130 [12:21:06]line Аи-92-К-5 [12:21:06]line 1.480 * 67.80 [12:21:06]line = 100.34 [12:21:06]line НДС 12% НСП 1% [12:21:06]line > о реализуемом товаре [12:21:06]line ОКРУГЛЕНИЕ: -0.34 [12:21:06]line ИТОГО: 100.00 [12:21:06]line Внесено: 100.00 [12:21:06]line СДАЧА: 0.00 [12:21:06]line НСП 1% : 0.89 [12:21:06]line НДС 12% : 10.66 [12:21:06]line Наличными: 100.00 [12:21:06]line Безнал.: 0.00 [12:21:06]line Место: АЗС № 136 "Партнер Нефть" [12:21:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:21:06]line СНО: Общий режим [12:21:06]line Чек 159 21.08.2024 12:21 [12:21:06]line Смена: 454 ФФД: 1.0 [12:21:06]line ЗНМ: 0300000067 [12:21:06]line РНМ: 0000000000092569 [12:21:06]line Версия ККМ: 001 [12:21:06]line ФМ: 0000000000871776 [12:21:06]line ФД: 140142 [12:21:06]line ФПД: 175064233317986 [12:21:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140142&fm=175064233317986&tin=02508201610067®Number=0000000000092569&sum=10000 [12:21:06]written 0, free lines is 4095 [12:21:06]OFD Sender: Processing packet 140142 [packets to send 137, broken 136] [12:21:06]ProducePacketName [12:21:06]name=ofd_packets/00140142 [12:21:06]OFD Sender: To server: pG, [12:21:06]CommunicateWithHost lk.salyk.kg:30040 [12:21:06]ConnectInit lk.salyk.kg [12:21:06]Connected sock=10 [12:21: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 37 36 0F 01 00 00 2F 8B 07 01 7F 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 9F 00 00 00 F4 03 04 00 B4 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 23 02 00 35 04 06 00 9F 38 51 70 96 62 AF D8 1B EF EF 33 B7 DD [12:21: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 37 36 4F 00 00 00 EF DB 47 00 77 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 23 02 00 F4 03 04 00 45 82 C5 66 B6 04 01 00 00 AA 50 50 D3 AE B0 6E 72 [12:21:07]CommunicateWithHost err = 0 [12:21:07]CheckOFDResponse [12:21:07]1017 (14) - 77093643461234 [12:21:07]1041 (16) - 0000000000871776 [12:21:07]1040 (4) - 140142 [12:21:07]1012 (4) - 21.08.2024 05:59 [12:21:07]1206 (1) - 0 [12:21:07]OFD Sender: Remove packet 140142 [12:21:07]ProducePacketName [12:21:07]name=ofd_packets/00140142 [12:21:07]NVStorageDeleteData [12:21:07]Write to MH i2c: 01 00 00 6A 46 B0 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: 01 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: 01 07 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: 01 07 00 6A 46 00 00 00 00 00 E6 0C A9 [12:21:07]RasterBufferAndPrint [12:21:07]line [12:21:07]line [12:21:07]line [12:21:07]line [12:21:07]line [12:21:07]written 0, free lines is 3308 [12:21:07]MH_Cut [12:21:07]Write to MH i2c: D1 01 00 71 46 01 89 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: D1 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: D1 01 00 [12:21:07]MH_I2C_Read... [12:21:07]Read from MH i2c: D1 01 00 71 46 00 88 [12:21:07]Write to MH i2c: 01 00 00 72 46 B8 [12:21:07]Write i2c OK [12:21:07]MH_I2C_Read... [12:21:07]OFD Sender: No OFD packet to send [12:21:08]*** Cut start [12:21:08]*** Partial cut [12:21:08]*** CUTSNS_PIN = 1 [12:21:08]*** CUTSNS_PIN = 0 [12:21:08]*** Brake cut motor [12:21:08]Read from MH i2c: 01 [12:21:08]MH_I2C_Read... [12:21:08]*** Stop cut motor [12:21:08]*** Cut end [12:21:08]Read from MH i2c: 01 07 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: 01 07 00 72 46 00 00 00 00 00 FF 0F CD [12:21:08]process_action close_receipt done [12:21:08]requested_data is exist [12:21:08]produce_requested_data [12:21:08]requested_item fm.sn is exist - process it [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 11 00 00 [12:21:08]Write to MH i2c: E2 08 00 73 46 80 11 00 00 00 00 00 00 33 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 17 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 17 00 73 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [12:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:21:08]wFMCommunicate OK [12:21:08]requested_item fd.num is exist - process it [12:21:08]SAM_PROTO_GetFieldsCounters [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 13 00 00 [12:21:08]Write to MH i2c: E2 08 00 74 46 80 13 00 00 00 00 00 00 36 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 62 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 62 00 74 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [12:21:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:08]wFMCommunicate OK [12:21:08]SAM_PROTO_GetFieldsCounters done [12:21:08]requested_item shift.num is exist - process it [12:21:08]requested_item shift.opened is exist - process it [12:21:08]req_shift_opened [12:21:08]FM_GetShiftState [12:21:08]SAM_PROTO_GetShiftState [12:21:08]wFMCommunicate request_size=4 [12:21:08]MH_SAM_APDU [12:21:08]CAPDU: 80 13 01 00 [12:21:08]Write to MH i2c: E2 08 00 75 46 80 13 01 00 00 00 00 00 38 [12:21:08]Write i2c OK [12:21:08]MH_I2C_Read... [12:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:08]Read from MH i2c: E2 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 0E 00 [12:21:08]MH_I2C_Read... [12:21:08]Read from MH i2c: E2 0E 00 75 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B8 [12:21:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:21:08]wFMCommunicate OK [12:21:08]SAM_PROTO_GetShiftState done [12:21:08]FM_GetShiftState done [12:21:08]req_shift_opened done [12:21:08]requested_item shift.open_date is exist - process it [12:21:08]req_shift_open_date [12:21:08]req_shift_open_date done [12:21:08]produce_requested_data done [12:21:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140142,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:21:08]process_action_free close_receipt [12:21:08]json_value_free [12:21:08]json_value_free done [12:21:08]process_json_proto returns [12:21:08]Send response to host [12:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140142,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:21:08]free response buf [12:21:08]execute_script done [12:21:08]execute_script returns [12:21:08]free content buf [12:21:08]Sock 9.Close socket [12:21:08]Sock 9.Thread stoped [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:06]accept exits with 7 [12:22:06]New connection [12:22:06]New thread 3066764644 created [12:22:06]Thread 3066908004 joined [12:22:06]Waiting for new connection... [12:22:06] Sock 7.Parse request [12:22:06]Sock 7.Check first char [12:22:06]Sock 7.First char is OK [12:22:06]request: POST /json_proto HTTP/1.0 [12:22:06]Method: POST [12:22:06]URL: /json_proto [12:22:06]Method is POST - this is cgi request [12:22:06]url: /json_proto [12:22:06]query_string will be loaded in cgi processing [12:22:06]execute_cgi json_proto POST (null) [12:22:06]execute_cgi path=json_proto method=POST [12:22:06]POST find Content-Length [12:22:06]Host: 172.17.45.67:8080 [12:22:06]Content-Length: 677 [12:22:06]Content-Type: application/json [12:22:06] [12:22:06]POST finish read [12:22:06]Found Content-Length = 677 [12:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:22:06]execute_script... [12:22: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)593997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:22:06]POST & json_proto [12:22:06]process_json_proto [12:22:06]json parsed OK: [12:22:06]protocol is kg_v1.0 [12:22:06]action value=close_receipt [12:22:06]process_action close_receipt [12:22:06]cmd_close_receipt [12:22:06]MH_GetDate [12:22:06]Write to MH i2c: F0 00 00 76 46 AB [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: F0 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: F0 09 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: F0 09 00 76 46 00 F2 DB C5 66 5F 7F 2B 66 1B [12:22:06]GetLastDocTimeStamp 1724242868 [12:22:06]current date 1724242930 [12:22:06]FM_GetShiftState [12:22:06]SAM_PROTO_GetShiftState [12:22:06]wFMCommunicate request_size=4 [12:22:06]MH_SAM_APDU [12:22:06]CAPDU: 80 13 01 00 [12:22:06]Write to MH i2c: E2 08 00 77 46 80 13 01 00 00 00 00 00 3A [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:06]Read from MH i2c: E2 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 0E 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: E2 0E 00 77 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BA [12:22:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:22:06]wFMCommunicate OK [12:22:06]SAM_PROTO_GetShiftState done [12:22:06]FM_GetShiftState done [12:22:06]opened in 1724200467 [12:22:06]opened+sec_in_day 1724286867 [12:22:06]quantity*price = 20001 [12:22:06]sum+1 = 20002 [12:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 160 21.08.2024 12:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140143 ФПД: 222379567976870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140143&fm=222379567976870&tin=02508201610067®Number=0000000000092569&sum=20000 [12:22:07]StoreToDocumentArchive [12:22:07]shift 454 fd 140143 [12:22:07]save to /storage/0454/doc_00140143 [12:22:07]save last doc name /storage/0454/doc_00140143 to /storage/kkm_last_doc_name [12:22:07]save OK [12:22:07]Clear old archive folders... [12:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:07]tlvbuf is 00A3D130 [12:22:07]SAM_PROTO_ClearQueue [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 09 00 00 [12:22:07]Write to MH i2c: E2 08 00 84 46 80 09 00 00 00 00 00 00 3C [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 84 46 00 90 00 3E [12:22:07]RAPDU: 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_ClearQueue done [12:22:07]KKMCreateOFDPacket [12:22:07]OFDProtocolAddRootSTLVToBuf [12:22:07]FM_MakeSignedData [12:22:07]FM_MakeSignedData [12:22:07]SAM_PROTO_SignData [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 0D 01 02 [12:22:07]Write to MH i2c: E2 08 00 85 46 80 0D 01 02 00 00 00 00 44 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 03 00 85 46 00 90 00 3F [12:22:07]RAPDU: 90 00 [12:22:07]wFMCommunicate OK [12:22:07]wFMCommunicate request_size=255 [12:22:07]MH_SAM_APDU [12:22: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 F2 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 23 02 00 35 04 06 00 CA [12:22:07]Write to MH i2c: E2 02 01 86 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 F2 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 23 02 00 35 04 06 00 CA 00 00 8C [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]OFD Sender: No OFD packet to send [12:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 86 46 00 90 00 40 [12:22:08]RAPDU: 90 00 [12:22:08]wFMCommunicate OK [12:22:08]wFMCommunicate request_size=10 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 0D 02 02 05 40 C7 27 91 A6 [12:22:08]Write to MH i2c: E2 0D 00 87 46 80 0D 02 02 05 00 40 C7 27 91 A6 00 00 B6 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 87 46 00 90 00 41 [12:22:08]RAPDU: 90 00 [12:22:08]wFMCommunicate OK [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 0D 03 02 [12:22:08]Write to MH i2c: E2 08 00 88 46 80 0D 03 02 00 00 00 00 49 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 0B 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 0B 00 88 46 00 97 DC 01 D1 26 EB FF 93 90 00 32 [12:22:08]RAPDU: 97 DC 01 D1 26 EB FF 93 90 00 [12:22:08]wFMCommunicate OK [12:22:08]SAM_PROTO_SignData done [12:22:08]FM_MakeSignedData done [12:22:08]CreateOFDProtocolMessage [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 11 00 00 [12:22:08]Write to MH i2c: E2 08 00 89 46 80 11 00 00 00 00 00 00 49 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 17 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 17 00 89 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [12:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:08]wFMCommunicate OK [12:22:08]CreateOFDProtocolMessage done [12:22:08]OFDSenderStorePacket 140143 [12:22:08]StoreOFDPacket docnum=140143 [12:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C7 D8 07 01 3A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 F2 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 23 02 00 35 04 06 00 CA 40 C7 27 91 A6 97 DC 01 D1 26 EB FF 93 [12:22:08]CheckFolder [12:22:08]dirname=/storage/ofd_packets [12:22:08]CheckFolder done [12:22:08]ProducePacketName [12:22:08]name=ofd_packets/00140143 [12:22:08]NVStorageSaveData ofd_packets/00140143 [12:22:08]File name is /storage/ofd_packets/00140143 [12:22:08]Write 301 bytes [12:22:08]NVStorageSaveData done [12:22:08]OFDSenderStorePacket done [12:22:08]KKMCreateOFDPacket done [12:22:08]NVStorageSaveData kkm_last_timestamp [12:22:08]File name is /storage/kkm_last_timestamp [12:22:08]Write 4 bytes [12:22:08]NVStorageSaveData done [12:22:08]ExternCall_PrintAddStr [12:22:08]wPrintStart [12:22:08]Write to MH i2c: 01 00 00 8A 46 D0 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 8A 46 00 00 00 00 00 FF 0F E5 [12:22:08]RasterBufferAndPrint [12:22:08]line Счет N : (1)593997 [12:22:08]line ИНН: 02508201610067 [12:22:08]line Контрольно-Кассовый Чек [12:22:08]line ПРОДАЖА [12:22:08]line ТРК (МРК, ГНК) : 52 [12:22:08]line Товар: 2710124130 [12:22:08]line Аи-92-К-5 [12:22:08]line 2.950 * 67.80 [12:22:08]line = 200.01 [12:22:08]line НДС 12% НСП 1% [12:22:08]line > о реализуемом товаре [12:22:08]line ОКРУГЛЕНИЕ: -0.01 [12:22:08]line ИТОГО: 200.00 [12:22:08]line Внесено: 200.00 [12:22:08]line СДАЧА: 0.00 [12:22:08]line НСП 1% : 1.77 [12:22:08]line НДС 12% : 21.24 [12:22:08]line Наличными: 200.00 [12:22:08]line Безнал.: 0.00 [12:22:08]line Место: АЗС № 136 "Партнер Нефть" [12:22:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:22:08]line СНО: Общий режим [12:22:08]line Чек 160 21.08.2024 12:22 [12:22:08]line Смена: 454 ФФД: 1.0 [12:22:08]line ЗНМ: 0300000067 [12:22:08]line РНМ: 0000000000092569 [12:22:08]line Версия ККМ: 001 [12:22:08]line ФМ: 0000000000871776 [12:22:08]line ФД: 140143 [12:22:08]line ФПД: 222379567976870 [12:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140143&fm=222379567976870&tin=02508201610067®Number=0000000000092569&sum=20000 [12:22:08]written 0, free lines is 4095 [12:22:08]OFD Sender: Processing packet 140143 [packets to send 137, broken 136] [12:22:08]ProducePacketName [12:22:08]name=ofd_packets/00140143 [12:22:08]OFD Sender: To server: pG, [12:22:08]CommunicateWithHost lk.salyk.kg:30040 [12:22:08]ConnectInit lk.salyk.kg [12:22:08]Connected sock=10 [12:22: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 37 36 0F 01 00 00 C7 D8 07 01 3A 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 F2 DB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 23 02 00 35 04 06 00 CA 40 C7 27 91 A6 97 DC 01 D1 26 EB FF 93 [12:22: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 37 36 4F 00 00 00 FD 59 47 00 A5 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 37 36 10 04 04 00 6F 23 02 00 F4 03 04 00 82 82 C5 66 B6 04 01 00 00 50 75 54 D4 25 F2 B8 4B [12:22:08]CommunicateWithHost err = 0 [12:22:08]CheckOFDResponse [12:22:08]1017 (14) - 77093643461234 [12:22:08]1041 (16) - 0000000000871776 [12:22:08]1040 (4) - 140143 [12:22:08]1012 (4) - 21.08.2024 06:00 [12:22:08]1206 (1) - 0 [12:22:08]OFD Sender: Remove packet 140143 [12:22:08]ProducePacketName [12:22:08]name=ofd_packets/00140143 [12:22:08]NVStorageDeleteData [12:22:08]Write to MH i2c: 01 00 00 B5 46 FB [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: 01 07 00 B5 46 00 00 00 00 00 D5 0C E3 [12:22:08]RasterBufferAndPrint [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]line [12:22:08]written 0, free lines is 3293 [12:22:08]MH_Cut [12:22:08]Write to MH i2c: D1 01 00 BC 46 01 D4 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 01 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: D1 01 00 BC 46 00 D3 [12:22:08]Write to MH i2c: 01 00 00 BD 46 03 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:09]OFD Sender: No OFD packet to send [12:22:09]*** Cut start [12:22:09]*** Partial cut [12:22:09]*** CUTSNS_PIN = 1 [12:22:09]*** CUTSNS_PIN = 0 [12:22:09]*** Brake cut motor [12:22:10]Read from MH i2c: 01 [12:22:10]MH_I2C_Read... [12:22:10]*** Stop cut motor [12:22:10]*** Cut end [12:22:10]Read from MH i2c: 01 07 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 BD 46 00 00 00 00 00 FF 0F 18 [12:22:10]process_action close_receipt done [12:22:10]requested_data is exist [12:22:10]produce_requested_data [12:22:10]requested_item fm.sn is exist - process it [12:22:10]wFMCommunicate request_size=4 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 11 00 00 [12:22:10]Write to MH i2c: E2 08 00 BE 46 80 11 00 00 00 00 00 00 7E [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 17 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 17 00 BE 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [12:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:22:10]wFMCommunicate OK [12:22:10]requested_item fd.num is exist - process it [12:22:10]SAM_PROTO_GetFieldsCounters [12:22:10]wFMCommunicate request_size=4 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 13 00 00 [12:22:10]Write to MH i2c: E2 08 00 BF 46 80 13 00 00 00 00 00 00 81 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 62 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 62 00 BF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [12:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:10]wFMCommunicate OK [12:22:10]SAM_PROTO_GetFieldsCounters done [12:22:10]requested_item shift.num is exist - process it [12:22:10]requested_item shift.opened is exist - process it [12:22:10]req_shift_opened [12:22:10]FM_GetShiftState [12:22:10]SAM_PROTO_GetShiftState [12:22:10]wFMCommunicate request_size=4 [12:22:10]MH_SAM_APDU [12:22:10]CAPDU: 80 13 01 00 [12:22:10]Write to MH i2c: E2 08 00 C0 46 80 13 01 00 00 00 00 00 83 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 [12:22:10]MH_I2C_Read... [12:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:10]Read from MH i2c: E2 0E 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: E2 0E 00 C0 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 03 [12:22:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:22:10]wFMCommunicate OK [12:22:10]SAM_PROTO_GetShiftState done [12:22:10]FM_GetShiftState done [12:22:10]req_shift_opened done [12:22:10]requested_item shift.open_date is exist - process it [12:22:10]req_shift_open_date [12:22:10]req_shift_open_date done [12:22:10]produce_requested_data done [12:22:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140143,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:22:10]process_action_free close_receipt [12:22:10]json_value_free [12:22:10]json_value_free done [12:22:10]process_json_proto returns [12:22:10]Send response to host [12:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140143,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:22:10]free response buf [12:22:10]execute_script done [12:22:10]execute_script returns [12:22:10]free content buf [12:22:10]Sock 7.Close socket [12:22:10]Sock 7.Thread stoped [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:28]accept exits with 9 [12:24:28]New connection [12:24:28]New thread 3066908004 created [12:24:28]Thread 3066764644 joined [12:24:28]Waiting for new connection... [12:24:28] Sock 9.Parse request [12:24:28]Sock 9.Check first char [12:24:28]Sock 9.First char is OK [12:24:28]request: POST /json_proto HTTP/1.0 [12:24:28]Method: POST [12:24:28]URL: /json_proto [12:24:28]Method is POST - this is cgi request [12:24:28]url: /json_proto [12:24:28]query_string will be loaded in cgi processing [12:24:28]execute_cgi json_proto POST (null) [12:24:28]execute_cgi path=json_proto method=POST [12:24:28]POST find Content-Length [12:24:28]Host: 172.17.45.67:8080 [12:24:28]Content-Length: 754 [12:24:28]Content-Type: application/json [12:24:28] [12:24:28]POST finish read [12:24:28]Found Content-Length = 754 [12:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:28]execute_script... [12:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:28]POST & json_proto [12:24:28]process_json_proto [12:24:28]json parsed OK: [12:24:28]protocol is kg_v1.0 [12:24:28]action value=close_receipt [12:24:28]process_action close_receipt [12:24:28]cmd_close_receipt [12:24:28]MH_GetDate [12:24:28]Write to MH i2c: F0 00 00 C1 46 F6 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 09 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 09 00 C1 46 00 80 DC C5 66 5F 7F 2B 66 F5 [12:24:28]GetLastDocTimeStamp 1724242930 [12:24:28]current date 1724243072 [12:24:28]FM_GetShiftState [12:24:28]SAM_PROTO_GetShiftState [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 13 01 00 [12:24:28]Write to MH i2c: E2 08 00 C2 46 80 13 01 00 00 00 00 00 85 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0E 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0E 00 C2 46 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 05 [12:24:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:24:28]wFMCommunicate OK [12:24:28]SAM_PROTO_GetShiftState done [12:24:28]FM_GetShiftState done [12:24:28]opened in 1724200467 [12:24:28]opened+sec_in_day 1724286867 [12:24:28]quantity*price = 0 [12:24:28]sum+1 = 1 [12:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 161 21.08.2024 12:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104261 ФМ: 0000000000871776 ФД: 140144 ФПД: 160482910513494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140144&fm=160482910513494&tin=02508201610067®Number=0000000000092569&sum=0 [12:24:30]StoreToDocumentArchive [12:24:30]shift 454 fd 140144 [12:24:30]save to /storage/0454/doc_00140144 [12:24:30]save last doc name /storage/0454/doc_00140144 to /storage/kkm_last_doc_name [12:24:30]save OK [12:24:30]Clear old archive folders... [12:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:30]tlvbuf is 00A79FB0 [12:24:30]SAM_PROTO_ClearQueue [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 09 00 00 [12:24:30]Write to MH i2c: E2 08 00 CF 46 80 09 00 00 00 00 00 00 87 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 CF 46 00 90 00 89 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_ClearQueue done [12:24:30]KKMCreateOFDPacket [12:24:30]OFDProtocolAddRootSTLVToBuf [12:24:30]FM_MakeSignedData [12:24:30]FM_MakeSignedData [12:24:30]SAM_PROTO_SignData [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 01 02 [12:24:30]Write to MH i2c: E2 08 00 D0 46 80 0D 01 02 00 00 00 00 8F [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 D0 46 00 90 00 8A [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=255 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A1 00 00 00 F4 03 04 00 80 DC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 23 02 00 35 04 06 00 91 [12:24:30]Write to MH i2c: E2 02 01 D1 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 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 A1 00 00 00 F4 03 04 00 80 DC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 23 02 00 35 04 06 00 91 00 00 26 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 D1 46 00 90 00 8B [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=10 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 02 02 05 F5 56 DF A9 56 [12:24:30]Write to MH i2c: E2 0D 00 D2 46 80 0D 02 02 05 00 F5 56 DF A9 56 00 00 C5 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 D2 46 00 90 00 8C [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 03 02 [12:24:30]Write to MH i2c: E2 08 00 D3 46 80 0D 03 02 00 00 00 00 94 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 D3 46 00 0F 7C 45 99 24 0A A4 C9 90 00 99 [12:24:30]RAPDU: 0F 7C 45 99 24 0A A4 C9 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_SignData done [12:24:30]FM_MakeSignedData done [12:24:30]CreateOFDProtocolMessage [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 11 00 00 [12:24:30]Write to MH i2c: E2 08 00 D4 46 80 11 00 00 00 00 00 00 94 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 D4 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EB [12:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:30]wFMCommunicate OK [12:24:30]CreateOFDProtocolMessage done [12:24:30]OFDSenderStorePacket 140144 [12:24:30]StoreOFDPacket docnum=140144 [12:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 16 07 01 EE 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A1 00 00 00 F4 03 04 00 80 DC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 23 02 00 35 04 06 00 91 F5 56 DF A9 56 0F 7C 45 99 24 0A A4 C9 [12:24:30]CheckFolder [12:24:30]dirname=/storage/ofd_packets [12:24:30]CheckFolder done [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00140144 [12:24:30]NVStorageSaveData ofd_packets/00140144 [12:24:30]File name is /storage/ofd_packets/00140144 [12:24:30]Write 301 bytes [12:24:30]NVStorageSaveData done [12:24:30]OFDSenderStorePacket done [12:24:30]KKMCreateOFDPacket done [12:24:30]NVStorageSaveData kkm_last_timestamp [12:24:30]File name is /storage/kkm_last_timestamp [12:24:30]Write 4 bytes [12:24:30]NVStorageSaveData done [12:24:30]ExternCall_PrintAddStr [12:24:30]wPrintStart [12:24:30]Write to MH i2c: 01 00 00 D5 46 1B [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 D5 46 00 00 00 00 00 FF 0F 30 [12:24:30]RasterBufferAndPrint [12:24:30]line Счет N : (1)593998 [12:24:30]line ИНН: 02508201610067 [12:24:30]line Контрольно-Кассовый Чек [12:24:30]line ПРОДАЖА [12:24:30]line ТРК (МРК, ГНК) : 42 [12:24:30]line Товар: 2710124130 [12:24:30]line Аи-92-К-5 [12:24:30]line 20.000 * 0.00 [12:24:30]line = 0.00 [12:24:30]line НДС 12% НСП 1% [12:24:30]line > о реализуемом товаре [12:24:30]line ИТОГО: 0.00 [12:24:30]line НСП 1% : 0.00 [12:24:30]line НДС 12% : 0.00 [12:24:30]line Наличными: 0.00 [12:24:30]line Безнал.: 0.00 [12:24:30]line Место: АЗС № 136 "Партнер Нефть" [12:24:30]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:24:30]line СНО: Общий режим [12:24:30]line Чек 161 21.08.2024 12:24 [12:24:30]line Смена: 454 ФФД: 1.0 [12:24:30]line ЗНМ: 0300000067 [12:24:30]line РНМ: 0000000000092569 [12:24:30]line Версия ККМ: 001 [12:24:30]line Талоны: ТК ГПНА Online [12:24:30]line 30104261 [12:24:30]line ФМ: 0000000000871776 [12:24:30]line ФД: 140144 [12:24:30]line ФПД: 160482910513494 [12:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122432&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140144&fm=160482910513494&tin=02508201610067®Number=0000000000092569&sum=0 [12:24:30]written 0, free lines is 4095 [12:24:30]OFD Sender: Processing packet 140144 [packets to send 137, broken 136] [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00140144 [12:24:30]OFD Sender: To server: pG, [12:24:30]CommunicateWithHost lk.salyk.kg:30040 [12:24:30]ConnectInit lk.salyk.kg [12:24:30]Connected sock=10 [12:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 16 07 01 EE 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A1 00 00 00 F4 03 04 00 80 DC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 23 02 00 35 04 06 00 91 F5 56 DF A9 56 0F 7C 45 99 24 0A A4 C9 [12:24:31]Write to MH i2c: 01 00 00 FF 46 45 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 FF 46 00 00 00 00 00 E6 0C 3E [12:24:31]RasterBufferAndPrint [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]line [12:24:31]written 0, free lines is 3309 [12:24:31]MH_Cut [12:24:31]Write to MH i2c: D1 01 00 06 47 01 1F [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: D1 01 00 06 47 00 1E [12:24:31]Write to MH i2c: 01 00 00 07 47 4E [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 39 FB 47 00 FB 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 37 36 10 04 04 00 70 23 02 00 F4 03 04 00 11 83 C5 66 B6 04 01 00 00 AB 9D 4D 1D 19 AD EB 16 [12:24:31]CommunicateWithHost err = 0 [12:24:31]CheckOFDResponse [12:24:31]1017 (14) - 77093643461234 [12:24:31]1041 (16) - 0000000000871776 [12:24:31]1040 (4) - 140144 [12:24:31]1012 (4) - 21.08.2024 06:02 [12:24:31]1206 (1) - 0 [12:24:31]OFD Sender: Remove packet 140144 [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00140144 [12:24:31]NVStorageDeleteData [12:24:31]OFD Sender: No OFD packet to send [12:24:31]*** Cut start [12:24:31]*** Partial cut [12:24:31]*** CUTSNS_PIN = 1 [12:24:31]*** CUTSNS_PIN = 0 [12:24:32]*** Brake cut motor [12:24:32]Read from MH i2c: 01 [12:24:32]MH_I2C_Read... [12:24:32]*** Stop cut motor [12:24:32]*** Cut end [12:24:32]Read from MH i2c: 01 07 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 07 47 00 00 00 00 00 FF 0F 63 [12:24:32]process_action close_receipt done [12:24:32]requested_data is exist [12:24:32]produce_requested_data [12:24:32]requested_item fm.sn is exist - process it [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 11 00 00 [12:24:32]Write to MH i2c: E2 08 00 08 47 80 11 00 00 00 00 00 00 C9 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 08 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [12:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:24:32]wFMCommunicate OK [12:24:32]requested_item fd.num is exist - process it [12:24:32]SAM_PROTO_GetFieldsCounters [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 00 00 [12:24:32]Write to MH i2c: E2 08 00 09 47 80 13 00 00 00 00 00 00 CC [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 62 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 62 00 09 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:32]wFMCommunicate OK [12:24:32]SAM_PROTO_GetFieldsCounters done [12:24:32]requested_item shift.num is exist - process it [12:24:32]requested_item shift.opened is exist - process it [12:24:32]req_shift_opened [12:24:32]FM_GetShiftState [12:24:32]SAM_PROTO_GetShiftState [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 01 00 [12:24:32]Write to MH i2c: E2 08 00 0A 47 80 13 01 00 00 00 00 00 CE [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 0A 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4E [12:24:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:24:32]wFMCommunicate OK [12:24:32]SAM_PROTO_GetShiftState done [12:24:32]FM_GetShiftState done [12:24:32]req_shift_opened done [12:24:32]requested_item shift.open_date is exist - process it [12:24:32]req_shift_open_date [12:24:32]req_shift_open_date done [12:24:32]produce_requested_data done [12:24:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140144,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:24:32]process_action_free close_receipt [12:24:32]json_value_free [12:24:32]json_value_free done [12:24:32]process_json_proto returns [12:24:32]Send response to host [12:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140144,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:24:32]free response buf [12:24:32]execute_script done [12:24:32]execute_script returns [12:24:32]free content buf [12:24:32]Sock 9.Close socket [12:24:32]Sock 9.Thread stoped [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:03]accept exits with 7 [12:29:03]New connection [12:29:03]New thread 3066764644 created [12:29:03]Thread 3066908004 joined [12:29:03]Waiting for new connection... [12:29:03] Sock 7.Parse request [12:29:03]Sock 7.Check first char [12:29:03]Sock 7.First char is OK [12:29:03]request: POST /json_proto HTTP/1.0 [12:29:03]Method: POST [12:29:03]URL: /json_proto [12:29:03]Method is POST - this is cgi request [12:29:03]url: /json_proto [12:29:03]query_string will be loaded in cgi processing [12:29:03]execute_cgi json_proto POST (null) [12:29:03]execute_cgi path=json_proto method=POST [12:29:03]POST find Content-Length [12:29:03]Host: 172.17.45.67:8080 [12:29:03]Content-Length: 677 [12:29:03]Content-Type: application/json [12:29:03] [12:29:03]POST finish read [12:29:03]Found Content-Length = 677 [12:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.420, "sum" : 435.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 435.00, "total" : 435.00, "payments": [ { "type": 0, "sum" : 435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:03]execute_script... [12:29: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)594000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.420, "sum" : 435.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 435.00, "total" : 435.00, "payments": [ { "type": 0, "sum" : 435.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:03]POST & json_proto [12:29:03]process_json_proto [12:29:03]json parsed OK: [12:29:03]protocol is kg_v1.0 [12:29:03]action value=close_receipt [12:29:03]process_action close_receipt [12:29:03]cmd_close_receipt [12:29:03]MH_GetDate [12:29:03]Write to MH i2c: F0 00 00 0B 47 41 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: F0 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: F0 09 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: F0 09 00 0B 47 00 93 DD C5 66 5F 7F 2B 66 54 [12:29:03]GetLastDocTimeStamp 1724243072 [12:29:03]current date 1724243347 [12:29:03]FM_GetShiftState [12:29:03]SAM_PROTO_GetShiftState [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 13 01 00 [12:29:03]Write to MH i2c: E2 08 00 0C 47 80 13 01 00 00 00 00 00 D0 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 0E 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 0E 00 0C 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 50 [12:29:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:29:03]wFMCommunicate OK [12:29:03]SAM_PROTO_GetShiftState done [12:29:03]FM_GetShiftState done [12:29:03]opened in 1724200467 [12:29:03]opened+sec_in_day 1724286867 [12:29:03]quantity*price = 43527 [12:29:03]sum+1 = 43529 [12:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 435.00 Внесено: 435.00 СДАЧА: 0.00 НСП 1% : 3.85 НДС 12% : 46.22 Наличными: 435.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 162 21.08.2024 12:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140145 ФПД: 72660758405020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140145&fm=72660758405020&tin=02508201610067®Number=0000000000092569&sum=43500 [12:29:04]StoreToDocumentArchive [12:29:04]shift 454 fd 140145 [12:29:04]save to /storage/0454/doc_00140145 [12:29:04]save last doc name /storage/0454/doc_00140145 to /storage/kkm_last_doc_name [12:29:04]save OK [12:29:04]Clear old archive folders... [12:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:04]tlvbuf is 00A813B0 [12:29:04]SAM_PROTO_ClearQueue [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 09 00 00 [12:29:04]Write to MH i2c: E2 08 00 19 47 80 09 00 00 00 00 00 00 D2 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 19 47 00 90 00 D4 [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_ClearQueue done [12:29:04]KKMCreateOFDPacket [12:29:04]OFDProtocolAddRootSTLVToBuf [12:29:04]FM_MakeSignedData [12:29:04]FM_MakeSignedData [12:29:04]SAM_PROTO_SignData [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 0D 01 02 [12:29:04]Write to MH i2c: E2 08 00 1A 47 80 0D 01 02 00 00 00 00 DA [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 1A 47 00 90 00 D5 [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]wFMCommunicate request_size=255 [12:29:04]MH_SAM_APDU [12:29: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 14 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 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 93 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 23 02 00 35 04 06 00 42 [12:29:04]Write to MH i2c: E2 02 01 1B 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 14 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 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 93 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 23 02 00 35 04 06 00 42 00 00 0B [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 1B 47 00 90 00 D6 [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]wFMCommunicate request_size=10 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 0D 02 02 05 15 A6 B1 9F 9C [12:29:05]Write to MH i2c: E2 0D 00 1C 47 80 0D 02 02 05 00 15 A6 B1 9F 9C 00 00 8E [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 1C 47 00 90 00 D7 [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 0D 03 02 [12:29:05]Write to MH i2c: E2 08 00 1D 47 80 0D 03 02 00 00 00 00 DF [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0B 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0B 00 1D 47 00 38 B8 7E 0F 1C D1 43 BD 90 00 4A [12:29:05]RAPDU: 38 B8 7E 0F 1C D1 43 BD 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_SignData done [12:29:05]FM_MakeSignedData done [12:29:05]CreateOFDProtocolMessage [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 11 00 00 [12:29:05]Write to MH i2c: E2 08 00 1E 47 80 11 00 00 00 00 00 00 DF [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 17 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 17 00 1E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 36 [12:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:05]wFMCommunicate OK [12:29:05]CreateOFDProtocolMessage done [12:29:05]OFDSenderStorePacket 140145 [12:29:05]StoreOFDPacket docnum=140145 [12:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2D 43 07 01 7A 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 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 93 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 23 02 00 35 04 06 00 42 15 A6 B1 9F 9C 38 B8 7E 0F 1C D1 43 BD [12:29:05]CheckFolder [12:29:05]dirname=/storage/ofd_packets [12:29:05]CheckFolder done [12:29:05]ProducePacketName [12:29:05]name=ofd_packets/00140145 [12:29:05]NVStorageSaveData ofd_packets/00140145 [12:29:05]File name is /storage/ofd_packets/00140145 [12:29:05]Write 301 bytes [12:29:05]NVStorageSaveData done [12:29:05]OFDSenderStorePacket done [12:29:05]KKMCreateOFDPacket done [12:29:05]NVStorageSaveData kkm_last_timestamp [12:29:05]File name is /storage/kkm_last_timestamp [12:29:05]Write 4 bytes [12:29:05]NVStorageSaveData done [12:29:05]ExternCall_PrintAddStr [12:29:05]wPrintStart [12:29:05]Write to MH i2c: 01 00 00 1F 47 66 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: 01 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: 01 07 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: 01 07 00 1F 47 00 00 00 00 00 FF 0F 7B [12:29:05]RasterBufferAndPrint [12:29:05]line Счет N : (1)594000 [12:29:05]line ИНН: 02508201610067 [12:29:05]line Контрольно-Кассовый Чек [12:29:05]line ПРОДАЖА [12:29:05]line ТРК (МРК, ГНК) : 52 [12:29:05]line Товар: 2710124130 [12:29:05]line Аи-92-К-5 [12:29:05]line 6.420 * 67.80 [12:29:05]line = 435.28 [12:29:05]line НДС 12% НСП 1% [12:29:05]line > о реализуемом товаре [12:29:05]line ОКРУГЛЕНИЕ: -0.28 [12:29:05]line ИТОГО: 435.00 [12:29:05]line Внесено: 435.00 [12:29:05]line СДАЧА: 0.00 [12:29:05]line НСП 1% : 3.85 [12:29:05]line НДС 12% : 46.22 [12:29:05]line Наличными: 435.00 [12:29:05]line Безнал.: 0.00 [12:29:05]line Место: АЗС № 136 "Партнер Нефть" [12:29:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:29:05]line СНО: Общий режим [12:29:05]line Чек 162 21.08.2024 12:29 [12:29:05]line Смена: 454 ФФД: 1.0 [12:29:05]line ЗНМ: 0300000067 [12:29:05]line РНМ: 0000000000092569 [12:29:05]line Версия ККМ: 001 [12:29:05]line ФМ: 0000000000871776 [12:29:05]line ФД: 140145 [12:29:05]line ФПД: 72660758405020 [12:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122907&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140145&fm=72660758405020&tin=02508201610067®Number=0000000000092569&sum=43500 [12:29:05]OFD Sender: Processing packet 140145 [packets to send 137, broken 136] [12:29:05]ProducePacketName [12:29:05]name=ofd_packets/00140145 [12:29:05]OFD Sender: To server: pG, [12:29:05]CommunicateWithHost lk.salyk.kg:30040 [12:29:05]ConnectInit lk.salyk.kg [12:29:05]written 0, free lines is 4095 [12:29:05]Connected sock=11 [12:29: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 37 36 0F 01 00 00 2D 43 07 01 7A 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 08 AA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC A9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 12 00 00 00 00 07 04 06 00 EC A9 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 93 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 23 02 00 35 04 06 00 42 15 A6 B1 9F 9C 38 B8 7E 0F 1C D1 43 BD [12:29:06]Write to MH i2c: 01 00 00 4A 47 91 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 4A 47 00 00 00 00 00 D7 0C 7B [12:29:06]RasterBufferAndPrint [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]written 0, free lines is 3294 [12:29:06]MH_Cut [12:29:06]Write to MH i2c: D1 01 00 51 47 01 6A [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: D1 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: D1 01 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: D1 01 00 51 47 00 69 [12:29:06]Write to MH i2c: 01 00 00 52 47 99 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29: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 37 36 4F 00 00 00 7C CC 47 00 D4 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 37 36 10 04 04 00 71 23 02 00 F4 03 04 00 24 84 C5 66 B6 04 01 00 00 67 3F 0E 29 AB 94 21 D7 [12:29:06]CommunicateWithHost err = 0 [12:29:06]CheckOFDResponse [12:29:06]1017 (14) - 77093643461234 [12:29:06]1041 (16) - 0000000000871776 [12:29:06]1040 (4) - 140145 [12:29:06]1012 (4) - 21.08.2024 06:07 [12:29:06]1206 (1) - 0 [12:29:06]OFD Sender: Remove packet 140145 [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00140145 [12:29:06]NVStorageDeleteData [12:29:06]OFD Sender: No OFD packet to send [12:29:06]*** Cut start [12:29:06]*** Partial cut [12:29:06]*** CUTSNS_PIN = 1 [12:29:06]*** CUTSNS_PIN = 0 [12:29:07]*** Brake cut motor [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]*** Stop cut motor [12:29:07]*** Cut end [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 52 47 00 00 00 00 00 FF 0F AE [12:29:07]process_action close_receipt done [12:29:07]requested_data is exist [12:29:07]produce_requested_data [12:29:07]requested_item fm.sn is exist - process it [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 11 00 00 [12:29:07]Write to MH i2c: E2 08 00 53 47 80 11 00 00 00 00 00 00 14 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 53 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6B [12:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:07]wFMCommunicate OK [12:29:07]requested_item fd.num is exist - process it [12:29:07]SAM_PROTO_GetFieldsCounters [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 00 00 [12:29:07]Write to MH i2c: E2 08 00 54 47 80 13 00 00 00 00 00 00 17 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 62 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 62 00 54 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [12:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_GetFieldsCounters done [12:29:07]requested_item shift.num is exist - process it [12:29:07]requested_item shift.opened is exist - process it [12:29:07]req_shift_opened [12:29:07]FM_GetShiftState [12:29:07]SAM_PROTO_GetShiftState [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 01 00 [12:29:07]Write to MH i2c: E2 08 00 55 47 80 13 01 00 00 00 00 00 19 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 55 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 99 [12:29:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_GetShiftState done [12:29:07]FM_GetShiftState done [12:29:07]req_shift_opened done [12:29:07]requested_item shift.open_date is exist - process it [12:29:07]req_shift_open_date [12:29:07]req_shift_open_date done [12:29:07]produce_requested_data done [12:29:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140145,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:29:07]process_action_free close_receipt [12:29:07]json_value_free [12:29:07]json_value_free done [12:29:07]process_json_proto returns [12:29:07]Send response to host [12:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140145,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:29:07]free response buf [12:29:07]execute_script done [12:29:07]execute_script returns [12:29:07]free content buf [12:29:07]Sock 7.Close socket [12:29:07]Sock 7.Thread stoped [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:33]accept exits with 9 [12:29:33]New connection [12:29:33]New thread 3066908004 created [12:29:33]Thread 3066764644 joined [12:29:33]Waiting for new connection... [12:29:33] Sock 9.Parse request [12:29:33]Sock 9.Check first char [12:29:33]Sock 9.First char is OK [12:29:33]request: POST /json_proto HTTP/1.0 [12:29:33]Method: POST [12:29:33]URL: /json_proto [12:29:33]Method is POST - this is cgi request [12:29:33]url: /json_proto [12:29:33]query_string will be loaded in cgi processing [12:29:33]execute_cgi json_proto POST (null) [12:29:33]execute_cgi path=json_proto method=POST [12:29:33]POST find Content-Length [12:29:33]Host: 172.17.45.67:8080 [12:29:33]Content-Length: 759 [12:29:33]Content-Type: application/json [12:29:34] [12:29:34]POST finish read [12:29:34]Found Content-Length = 759 [12:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)593999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:34]execute_script... [12:29: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)593999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30054227", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:34]POST & json_proto [12:29:34]process_json_proto [12:29:34]json parsed OK: [12:29:34]protocol is kg_v1.0 [12:29:34]action value=close_receipt [12:29:34]process_action close_receipt [12:29:34]cmd_close_receipt [12:29:34]MH_GetDate [12:29:34]Write to MH i2c: F0 00 00 56 47 8C [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: F0 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: F0 09 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: F0 09 00 56 47 00 B1 DD C5 66 5F 7F 2B 66 BD [12:29:34]GetLastDocTimeStamp 1724243347 [12:29:34]current date 1724243377 [12:29:34]FM_GetShiftState [12:29:34]SAM_PROTO_GetShiftState [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 13 01 00 [12:29:34]Write to MH i2c: E2 08 00 57 47 80 13 01 00 00 00 00 00 1B [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0E 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0E 00 57 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9B [12:29:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_GetShiftState done [12:29:34]FM_GetShiftState done [12:29:34]opened in 1724200467 [12:29:34]opened+sec_in_day 1724286867 [12:29:34]quantity*price = 0 [12:29:34]sum+1 = 1 [12:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 163 21.08.2024 12:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30054227 ФМ: 0000000000871776 ФД: 140146 ФПД: 248989694094604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122937&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140146&fm=248989694094604&tin=02508201610067®Number=0000000000092569&sum=0 [12:29:35]StoreToDocumentArchive [12:29:35]shift 454 fd 140146 [12:29:35]save to /storage/0454/doc_00140146 [12:29:35]save last doc name /storage/0454/doc_00140146 to /storage/kkm_last_doc_name [12:29:35]save OK [12:29:35]Clear old archive folders... [12:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:29:35]tlvbuf is B6F4A880 [12:29:35]SAM_PROTO_ClearQueue [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 09 00 00 [12:29:35]Write to MH i2c: E2 08 00 64 47 80 09 00 00 00 00 00 00 1D [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 64 47 00 90 00 1F [12:29:35]RAPDU: 90 00 [12:29:35]wFMCommunicate OK [12:29:35]SAM_PROTO_ClearQueue done [12:29:35]KKMCreateOFDPacket [12:29:35]OFDProtocolAddRootSTLVToBuf [12:29:35]FM_MakeSignedData [12:29:35]FM_MakeSignedData [12:29:35]SAM_PROTO_SignData [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 0D 01 02 [12:29:35]Write to MH i2c: E2 08 00 65 47 80 0D 01 02 00 00 00 00 25 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 65 47 00 90 00 20 [12:29:35]RAPDU: 90 00 [12:29:35]wFMCommunicate OK [12:29:35]wFMCommunicate request_size=255 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B1 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 23 02 00 35 04 06 00 [12:29:35]Write to MH i2c: E2 02 01 66 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B1 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 23 02 00 35 04 06 00 00 00 41 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 66 47 00 90 00 21 [12:29:35]RAPDU: 90 00 [12:29:35]wFMCommunicate OK [12:29:35]wFMCommunicate request_size=11 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 0D 02 02 06 E2 74 6E 44 ED 0C [12:29:35]Write to MH i2c: E2 0E 00 67 47 80 0D 02 02 06 00 E2 74 6E 44 ED 0C 00 00 35 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 03 00 67 47 00 90 00 22 [12:29:35]RAPDU: 90 00 [12:29:35]wFMCommunicate OK [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 0D 03 02 [12:29:35]Write to MH i2c: E2 08 00 68 47 80 0D 03 02 00 00 00 00 2A [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 0B 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 0B 00 68 47 00 52 B3 37 2E EB 9C 78 E3 90 00 77 [12:29:35]RAPDU: 52 B3 37 2E EB 9C 78 E3 90 00 [12:29:35]wFMCommunicate OK [12:29:35]SAM_PROTO_SignData done [12:29:35]FM_MakeSignedData done [12:29:35]CreateOFDProtocolMessage [12:29:35]wFMCommunicate request_size=4 [12:29:35]MH_SAM_APDU [12:29:35]CAPDU: 80 11 00 00 [12:29:35]Write to MH i2c: E2 08 00 69 47 80 11 00 00 00 00 00 00 2A [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:35]Read from MH i2c: E2 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 17 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: E2 17 00 69 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 81 [12:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:35]wFMCommunicate OK [12:29:35]CreateOFDProtocolMessage done [12:29:35]OFDSenderStorePacket 140146 [12:29:35]StoreOFDPacket docnum=140146 [12:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 38 15 08 01 8E A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B1 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 23 02 00 35 04 06 00 E2 74 6E 44 ED 0C 52 B3 37 2E EB 9C 78 E3 [12:29:35]CheckFolder [12:29:35]dirname=/storage/ofd_packets [12:29:35]CheckFolder done [12:29:35]ProducePacketName [12:29:35]name=ofd_packets/00140146 [12:29:35]NVStorageSaveData ofd_packets/00140146 [12:29:35]File name is /storage/ofd_packets/00140146 [12:29:35]Write 302 bytes [12:29:35]NVStorageSaveData done [12:29:35]OFDSenderStorePacket done [12:29:35]KKMCreateOFDPacket done [12:29:35]NVStorageSaveData kkm_last_timestamp [12:29:35]File name is /storage/kkm_last_timestamp [12:29:35]Write 4 bytes [12:29:35]NVStorageSaveData done [12:29:35]ExternCall_PrintAddStr [12:29:35]wPrintStart [12:29:35]Write to MH i2c: 01 00 00 6A 47 B1 [12:29:35]OFD Sender: Processing packet 140146 [packets to send 137, broken 136] [12:29:35]ProducePacketName [12:29:35]name=ofd_packets/00140146 [12:29:35]OFD Sender: To server: pG, [12:29:35]CommunicateWithHost lk.salyk.kg:30040 [12:29:35]ConnectInit lk.salyk.kg [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 6A 47 00 00 00 00 00 FF 0F C6 [12:29:35]RasterBufferAndPrint [12:29:35]line Счет N : (1)593999 [12:29:35]line ИНН: 02508201610067 [12:29:35]line Контрольно-Кассовый Чек [12:29:35]line ПРОДАЖА [12:29:35]line ТРК (МРК, ГНК) : 34 [12:29:35]line Товар: 2710194210 [12:29:35]line ДТ(л)-К-5 [12:29:35]line 50.000 * 0.00 [12:29:35]line = 0.00 [12:29:35]line НДС 12% НСП 1% [12:29:35]line > о реализуемом товаре [12:29:35]line ИТОГО: 0.00 [12:29:35]line НСП 1% : 0.00 [12:29:35]line НДС 12% : 0.00 [12:29:35]line Наличными: 0.00 [12:29:35]line Безнал.: 0.00 [12:29:35]line Место: АЗС № 136 "Партнер Нефть" [12:29:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:29:35]line СНО: Общий режим [12:29:35]line Чек 163 21.08.2024 12:29 [12:29:35]line Смена: 454 ФФД: 1.0 [12:29:35]line ЗНМ: 0300000067 [12:29:35]line РНМ: 0000000000092569 [12:29:35]line Версия ККМ: 001 [12:29:35]line Талоны: ТК ГПНА Online [12:29:35]line 30054227 [12:29:35]line ФМ: 0000000000871776 [12:29:35]line ФД: 140146 [12:29:35]line ФПД: 248989694094604 [12:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T122937&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140146&fm=248989694094604&tin=02508201610067®Number=0000000000092569&sum=0 [12:29:35]written 0, free lines is 4095 [12:29:35]Connected sock=10 [12:29: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 37 36 10 01 00 00 38 15 08 01 8E A7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 B1 DD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 23 02 00 35 04 06 00 E2 74 6E 44 ED 0C 52 B3 37 2E EB 9C 78 E3 [12:29: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 37 36 4F 00 00 00 81 70 47 00 31 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 37 36 10 04 04 00 72 23 02 00 F4 03 04 00 42 84 C5 66 B6 04 01 00 00 BE 16 0E 8A E5 91 E4 D3 [12:29:36]CommunicateWithHost err = 0 [12:29:36]CheckOFDResponse [12:29:36]1017 (14) - 77093643461234 [12:29:36]1041 (16) - 0000000000871776 [12:29:36]1040 (4) - 140146 [12:29:36]1012 (4) - 21.08.2024 06:08 [12:29:36]1206 (1) - 0 [12:29:36]OFD Sender: Remove packet 140146 [12:29:36]ProducePacketName [12:29:36]name=ofd_packets/00140146 [12:29:36]NVStorageDeleteData [12:29:36]Write to MH i2c: 01 00 00 94 47 DB [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: 01 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: 01 07 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: 01 07 00 94 47 00 00 00 00 00 EC 0C DA [12:29:36]RasterBufferAndPrint [12:29:36]line [12:29:36]line [12:29:36]line [12:29:36]line [12:29:36]line [12:29:36]written 0, free lines is 3314 [12:29:36]MH_Cut [12:29:36]Write to MH i2c: D1 01 00 9B 47 01 B4 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: D1 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: D1 01 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: D1 01 00 9B 47 00 B3 [12:29:36]Write to MH i2c: 01 00 00 9C 47 E3 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]OFD Sender: No OFD packet to send [12:29:36]*** Cut start [12:29:36]*** Partial cut [12:29:36]*** CUTSNS_PIN = 1 [12:29:36]*** CUTSNS_PIN = 0 [12:29:37]*** Brake cut motor [12:29:37]Read from MH i2c: 01 [12:29:37]MH_I2C_Read... [12:29:37]*** Stop cut motor [12:29:37]*** Cut end [12:29:37]Read from MH i2c: 01 07 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: 01 07 00 9C 47 00 00 00 00 00 FF 0F F8 [12:29:37]process_action close_receipt done [12:29:37]requested_data is exist [12:29:37]produce_requested_data [12:29:37]requested_item fm.sn is exist - process it [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 11 00 00 [12:29:37]Write to MH i2c: E2 08 00 9D 47 80 11 00 00 00 00 00 00 5E [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 17 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 17 00 9D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [12:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:29:37]wFMCommunicate OK [12:29:37]requested_item fd.num is exist - process it [12:29:37]SAM_PROTO_GetFieldsCounters [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 13 00 00 [12:29:37]Write to MH i2c: E2 08 00 9E 47 80 13 00 00 00 00 00 00 61 [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 62 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 62 00 9E 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [12:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:37]wFMCommunicate OK [12:29:37]SAM_PROTO_GetFieldsCounters done [12:29:37]requested_item shift.num is exist - process it [12:29:37]requested_item shift.opened is exist - process it [12:29:37]req_shift_opened [12:29:37]FM_GetShiftState [12:29:37]SAM_PROTO_GetShiftState [12:29:37]wFMCommunicate request_size=4 [12:29:37]MH_SAM_APDU [12:29:37]CAPDU: 80 13 01 00 [12:29:37]Write to MH i2c: E2 08 00 9F 47 80 13 01 00 00 00 00 00 63 [12:29:37]Write i2c OK [12:29:37]MH_I2C_Read... [12:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:37]Read from MH i2c: E2 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 0E 00 [12:29:37]MH_I2C_Read... [12:29:37]Read from MH i2c: E2 0E 00 9F 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [12:29:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:29:37]wFMCommunicate OK [12:29:37]SAM_PROTO_GetShiftState done [12:29:37]FM_GetShiftState done [12:29:37]req_shift_opened done [12:29:37]requested_item shift.open_date is exist - process it [12:29:37]req_shift_open_date [12:29:37]req_shift_open_date done [12:29:37]produce_requested_data done [12:29:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140146,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:29:37]process_action_free close_receipt [12:29:37]json_value_free [12:29:37]json_value_free done [12:29:37]process_json_proto returns [12:29:37]Send response to host [12:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140146,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:29:37]free response buf [12:29:37]execute_script done [12:29:37]execute_script returns [12:29:37]free content buf [12:29:37]Sock 9.Close socket [12:29:37]Sock 9.Thread stoped [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]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:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:13]accept exits with 7 [12:32:13]New connection [12:32:13]New thread 3066764644 created [12:32:13]Thread 3066908004 joined [12:32:13]Waiting for new connection... [12:32:13] Sock 7.Parse request [12:32:13]Sock 7.Check first char [12:32:13]Sock 7.First char is OK [12:32:13]request: POST /json_proto HTTP/1.0 [12:32:13]Method: POST [12:32:13]URL: /json_proto [12:32:13]Method is POST - this is cgi request [12:32:13]url: /json_proto [12:32:13]query_string will be loaded in cgi processing [12:32:13]execute_cgi json_proto POST (null) [12:32:13]execute_cgi path=json_proto method=POST [12:32:13]POST find Content-Length [12:32:13]Host: 172.17.45.67:8080 [12:32:13]Content-Length: 682 [12:32:13]Content-Type: application/json [12:32:13] [12:32:13]POST finish read [12:32:13]Found Content-Length = 682 [12:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:13]execute_script... [12:32: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)594001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:13]POST & json_proto [12:32:13]process_json_proto [12:32:13]json parsed OK: [12:32:13]protocol is kg_v1.0 [12:32:13]action value=close_receipt [12:32:13]process_action close_receipt [12:32:13]cmd_close_receipt [12:32:13]MH_GetDate [12:32:13]Write to MH i2c: F0 00 00 A0 47 D6 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: F0 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: F0 09 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: F0 09 00 A0 47 00 51 DE C5 66 5F 7F 2B 66 A8 [12:32:13]GetLastDocTimeStamp 1724243377 [12:32:13]current date 1724243537 [12:32:13]FM_GetShiftState [12:32:13]SAM_PROTO_GetShiftState [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 01 00 [12:32:13]Write to MH i2c: E2 08 00 A1 47 80 13 01 00 00 00 00 00 65 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 A1 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E5 [12:32:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetShiftState done [12:32:13]FM_GetShiftState done [12:32:13]opened in 1724200467 [12:32:13]opened+sec_in_day 1724286867 [12:32:13]quantity*price = 100005 [12:32:13]sum+1 = 100006 [12:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 164 21.08.2024 12:32 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140147 ФПД: 272052996246399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140147&fm=272052996246399&tin=02508201610067®Number=0000000000092569&sum=100000 [12:32:14]StoreToDocumentArchive [12:32:14]shift 454 fd 140147 [12:32:14]save to /storage/0454/doc_00140147 [12:32:14]save last doc name /storage/0454/doc_00140147 to /storage/kkm_last_doc_name [12:32:14]save OK [12:32:14]Clear old archive folders... [12:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:14]tlvbuf is 00A3D420 [12:32:14]SAM_PROTO_ClearQueue [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 09 00 00 [12:32:14]Write to MH i2c: E2 08 00 AE 47 80 09 00 00 00 00 00 00 67 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 AE 47 00 90 00 69 [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_ClearQueue done [12:32:15]KKMCreateOFDPacket [12:32:15]OFDProtocolAddRootSTLVToBuf [12:32:15]FM_MakeSignedData [12:32:15]FM_MakeSignedData [12:32:15]SAM_PROTO_SignData [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 01 02 [12:32:15]Write to MH i2c: E2 08 00 AF 47 80 0D 01 02 00 00 00 00 6F [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 AF 47 00 90 00 6A [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=255 [12:32:15]MH_SAM_APDU [12:32: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 51 DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 23 02 00 35 04 06 00 F7 [12:32:15]Write to MH i2c: E2 02 01 B0 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 51 DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 23 02 00 35 04 06 00 F7 00 00 DB [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 B0 47 00 90 00 6B [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=10 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 02 02 05 6E 46 33 8B 7F [12:32:15]Write to MH i2c: E2 0D 00 B1 47 80 0D 02 02 05 00 6E 46 33 8B 7F 00 00 6D [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 03 00 B1 47 00 90 00 6C [12:32:15]RAPDU: 90 00 [12:32:15]wFMCommunicate OK [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 0D 03 02 [12:32:15]Write to MH i2c: E2 08 00 B2 47 80 0D 03 02 00 00 00 00 74 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0B 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0B 00 B2 47 00 37 83 0C 6E 8E 65 7C 3F 90 00 57 [12:32:15]RAPDU: 37 83 0C 6E 8E 65 7C 3F 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_SignData done [12:32:15]FM_MakeSignedData done [12:32:15]CreateOFDProtocolMessage [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 11 00 00 [12:32:15]Write to MH i2c: E2 08 00 B3 47 80 11 00 00 00 00 00 00 74 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 B3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [12:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:32:15]wFMCommunicate OK [12:32:15]CreateOFDProtocolMessage done [12:32:15]OFDSenderStorePacket 140147 [12:32:15]StoreOFDPacket docnum=140147 [12:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 B2 07 01 24 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 51 DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 23 02 00 35 04 06 00 F7 6E 46 33 8B 7F 37 83 0C 6E 8E 65 7C 3F [12:32:15]CheckFolder [12:32:15]dirname=/storage/ofd_packets [12:32:15]CheckFolder done [12:32:15]ProducePacketName [12:32:15]name=ofd_packets/00140147 [12:32:15]NVStorageSaveData ofd_packets/00140147 [12:32:15]File name is /storage/ofd_packets/00140147 [12:32:15]Write 301 bytes [12:32:15]NVStorageSaveData done [12:32:15]OFDSenderStorePacket done [12:32:15]KKMCreateOFDPacket done [12:32:15]NVStorageSaveData kkm_last_timestamp [12:32:15]File name is /storage/kkm_last_timestamp [12:32:15]Write 4 bytes [12:32:15]NVStorageSaveData done [12:32:15]ExternCall_PrintAddStr [12:32:15]wPrintStart [12:32:15]Write to MH i2c: 01 00 00 B4 47 FB [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 B4 47 00 00 00 00 00 FF 0F 10 [12:32:15]RasterBufferAndPrint [12:32:15]line Счет N : (1)594001 [12:32:15]line ИНН: 02508201610067 [12:32:15]line Контрольно-Кассовый Чек [12:32:15]line ПРОДАЖА [12:32:15]line ТРК (МРК, ГНК) : 52 [12:32:15]line Товар: 2710124130 [12:32:15]line Аи-92-К-5 [12:32:15]line 14.750 * 67.80 [12:32:15]line = 1000.05 [12:32:15]line НДС 12% НСП 1% [12:32:15]line > о реализуемом товаре [12:32:15]line ОКРУГЛЕНИЕ: -0.05 [12:32:15]line ИТОГО: 1000.00 [12:32:15]line Внесено: 1000.00 [12:32:15]line СДАЧА: 0.00 [12:32:15]line НСП 1% : 8.85 [12:32:15]line НДС 12% : 106.20 [12:32:15]line Наличными: 1000.00 [12:32:15]line Безнал.: 0.00 [12:32:15]line Место: АЗС № 136 "Партнер Нефть" [12:32:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:32:15]line СНО: Общий режим [12:32:15]line Чек 164 21.08.2024 12:32 [12:32:15]line Смена: 454 ФФД: 1.0 [12:32:15]line ЗНМ: 0300000067 [12:32:15]line РНМ: 0000000000092569 [12:32:15]line Версия ККМ: 001 [12:32:15]line ФМ: 0000000000871776 [12:32:15]line ФД: 140147 [12:32:15]line ФПД: 272052996246399 [12:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123217&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140147&fm=272052996246399&tin=02508201610067®Number=0000000000092569&sum=100000 [12:32:15]OFD Sender: Processing packet 140147 [packets to send 137, broken 136] [12:32:15]ProducePacketName [12:32:15]name=ofd_packets/00140147 [12:32:15]OFD Sender: To server: pG, [12:32:15]CommunicateWithHost lk.salyk.kg:30040 [12:32:15]ConnectInit lk.salyk.kg [12:32:15]written 0, free lines is 4095 [12:32:15]Connected sock=9 [12:32: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 37 36 0F 01 00 00 52 B2 07 01 24 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 51 DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 23 02 00 35 04 06 00 F7 6E 46 33 8B 7F 37 83 0C 6E 8E 65 7C 3F [12:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 59 DA 47 00 7E 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 37 36 10 04 04 00 73 23 02 00 F4 03 04 00 E2 84 C5 66 B6 04 01 00 00 99 B9 57 19 D6 92 70 B6 [12:32:16]CommunicateWithHost err = 0 [12:32:16]CheckOFDResponse [12:32:16]1017 (14) - 77093643461234 [12:32:16]1041 (16) - 0000000000871776 [12:32:16]1040 (4) - 140147 [12:32:16]1012 (4) - 21.08.2024 06:10 [12:32:16]1206 (1) - 0 [12:32:16]OFD Sender: Remove packet 140147 [12:32:16]ProducePacketName [12:32:16]name=ofd_packets/00140147 [12:32:16]NVStorageDeleteData [12:32:16]Write to MH i2c: 01 00 00 DF 47 26 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 DF 47 00 00 00 00 00 D5 0C 0E [12:32:16]RasterBufferAndPrint [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]line [12:32:16]written 0, free lines is 3295 [12:32:16]MH_Cut [12:32:16]Write to MH i2c: D1 01 00 E6 47 01 FF [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 01 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: D1 01 00 E6 47 00 FE [12:32:16]Write to MH i2c: 01 00 00 E7 47 2E [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]OFD Sender: No OFD packet to send [12:32:17]*** Cut start [12:32:17]*** Partial cut [12:32:17]*** CUTSNS_PIN = 1 [12:32:17]*** CUTSNS_PIN = 0 [12:32:17]*** Brake cut motor [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]*** Stop cut motor [12:32:17]*** Cut end [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 E7 47 00 00 00 00 00 FF 0F 43 [12:32:17]process_action close_receipt done [12:32:17]requested_data is exist [12:32:17]produce_requested_data [12:32:17]requested_item fm.sn is exist - process it [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 11 00 00 [12:32:17]Write to MH i2c: E2 08 00 E8 47 80 11 00 00 00 00 00 00 A9 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 E8 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [12:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:32:17]wFMCommunicate OK [12:32:17]requested_item fd.num is exist - process it [12:32:17]SAM_PROTO_GetFieldsCounters [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 13 00 00 [12:32:17]Write to MH i2c: E2 08 00 E9 47 80 13 00 00 00 00 00 00 AC [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 62 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 62 00 E9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [12:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_GetFieldsCounters done [12:32:17]requested_item shift.num is exist - process it [12:32:17]requested_item shift.opened is exist - process it [12:32:17]req_shift_opened [12:32:17]FM_GetShiftState [12:32:17]SAM_PROTO_GetShiftState [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 13 01 00 [12:32:17]Write to MH i2c: E2 08 00 EA 47 80 13 01 00 00 00 00 00 AE [12:32:17]Write i2c OK [12:32:17]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 EA 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [12:32:17]RAPDU: 09 00 01 13 36 C5 66 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]req_shift_opened done [12:32:17]requested_item shift.open_date is exist - process it [12:32:17]req_shift_open_date [12:32:17]req_shift_open_date done [12:32:17]produce_requested_data done [12:32:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140147,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:32:17]process_action_free close_receipt [12:32:17]json_value_free [12:32:17]json_value_free done [12:32:17]process_json_proto returns [12:32:17]Send response to host [12:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140147,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:32:17]free response buf [12:32:17]execute_script done [12:32:17]execute_script returns [12:32:17]free content buf [12:32:17]Sock 7.Close socket [12:32:17]Sock 7.Thread stoped [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:05]accept exits with 10 [12:35:05]New connection [12:35:05]New thread 3066908004 created [12:35:05]Thread 3066764644 joined [12:35:05]Waiting for new connection... [12:35:05] Sock 10.Parse request [12:35:05]Sock 10.Check first char [12:35:05]Sock 10.First char is OK [12:35:05]request: POST /json_proto HTTP/1.0 [12:35:05]Method: POST [12:35:05]URL: /json_proto [12:35:05]Method is POST - this is cgi request [12:35:05]url: /json_proto [12:35:05]query_string will be loaded in cgi processing [12:35:05]execute_cgi json_proto POST (null) [12:35:05]execute_cgi path=json_proto method=POST [12:35:05]POST find Content-Length [12:35:05]Host: 172.17.45.67:8080 [12:35:05]Content-Length: 658 [12:35:05]Content-Type: application/json [12:35:05] [12:35:05]POST finish read [12:35:05]Found Content-Length = 658 [12:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 6.110, "sum" : 420.37, "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" ] } } [12:35:05]execute_script... [12:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 6.110, "sum" : 420.37, "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" ] } } [12:35:05]POST & json_proto [12:35:05]process_json_proto [12:35:05]json parsed OK: [12:35:05]protocol is kg_v1.0 [12:35:05]action value=close_receipt [12:35:05]process_action close_receipt [12:35:05]cmd_close_receipt [12:35:05]MH_GetDate [12:35:05]Write to MH i2c: F0 00 00 EB 47 21 [12:35:05]Write i2c OK [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 09 00 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 09 00 EB 47 00 FD DE C5 66 5F 7F 2B 66 9F [12:35:05]GetLastDocTimeStamp 1724243537 [12:35:05]current date 1724243709 [12:35:05]FM_GetShiftState [12:35:05]SAM_PROTO_GetShiftState [12:35:05]wFMCommunicate request_size=4 [12:35:05]MH_SAM_APDU [12:35:05]CAPDU: 80 13 01 00 [12:35:05]Write to MH i2c: E2 08 00 EC 47 80 13 01 00 00 00 00 00 B0 [12:35:05]Write i2c OK [12:35:05]MH_I2C_Read... [12:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:06]Read from MH i2c: E2 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 0E 00 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 0E 00 EC 47 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 30 [12:35:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:35:06]wFMCommunicate OK [12:35:06]SAM_PROTO_GetShiftState done [12:35:06]FM_GetShiftState done [12:35:06]opened in 1724200467 [12:35:06]opened+sec_in_day 1724286867 [12:35:06]quantity*price = 42036 [12:35:06]sum+1 = 42038 [12:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.64 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 165 21.08.2024 12:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140148 ФПД: 227359271126459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140148&fm=227359271126459&tin=02508201610067®Number=0000000000092569&sum=42000 [12:35:07]StoreToDocumentArchive [12:35:07]shift 454 fd 140148 [12:35:07]save to /storage/0454/doc_00140148 [12:35:07]save last doc name /storage/0454/doc_00140148 to /storage/kkm_last_doc_name [12:35:07]save OK [12:35:07]Clear old archive folders... [12:35:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:35:07]tlvbuf is 00B58870 [12:35:07]SAM_PROTO_ClearQueue [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 09 00 00 [12:35:07]Write to MH i2c: E2 08 00 F9 47 80 09 00 00 00 00 00 00 B2 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 F9 47 00 90 00 B4 [12:35:07]RAPDU: 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_ClearQueue done [12:35:07]KKMCreateOFDPacket [12:35:07]OFDProtocolAddRootSTLVToBuf [12:35:07]FM_MakeSignedData [12:35:07]FM_MakeSignedData [12:35:07]SAM_PROTO_SignData [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 0D 01 02 [12:35:07]Write to MH i2c: E2 08 00 FA 47 80 0D 01 02 00 00 00 00 BA [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 FA 47 00 90 00 B5 [12:35:07]RAPDU: 90 00 [12:35:07]wFMCommunicate OK [12:35:07]wFMCommunicate request_size=253 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 70 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 A5 00 00 00 F4 03 04 00 FD DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 23 02 00 35 04 06 00 CE C8 34 97 85 BB [12:35:07]Write to MH i2c: E2 00 01 FB 47 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 70 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 A5 00 00 00 F4 03 04 00 FD DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 23 02 00 35 04 06 00 CE C8 34 97 85 BB 00 00 4E [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 FB 47 00 90 00 B6 [12:35:07]RAPDU: 90 00 [12:35:07]wFMCommunicate OK [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 0D 03 02 [12:35:07]Write to MH i2c: E2 08 00 FC 47 80 0D 03 02 00 00 00 00 BE [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0B 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0B 00 FC 47 00 9A AA F9 13 F6 D3 16 72 90 00 60 [12:35:07]RAPDU: 9A AA F9 13 F6 D3 16 72 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_SignData done [12:35:07]FM_MakeSignedData done [12:35:07]CreateOFDProtocolMessage [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 11 00 00 [12:35:07]Write to MH i2c: E2 08 00 FD 47 80 11 00 00 00 00 00 00 BE [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 FD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [12:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:07]wFMCommunicate OK [12:35:07]CreateOFDProtocolMessage done [12:35:07]OFDSenderStorePacket 140148 [12:35:07]StoreOFDPacket docnum=140148 [12:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E4 11 00 01 9C E7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 70 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 A5 00 00 00 F4 03 04 00 FD DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 23 02 00 35 04 06 00 CE C8 34 97 85 BB 9A AA F9 13 F6 D3 16 72 [12:35:07]CheckFolder [12:35:07]dirname=/storage/ofd_packets [12:35:07]CheckFolder done [12:35:07]ProducePacketName [12:35:07]name=ofd_packets/00140148 [12:35:07]NVStorageSaveData ofd_packets/00140148 [12:35:07]File name is /storage/ofd_packets/00140148 [12:35:07]Write 294 bytes [12:35:07]NVStorageSaveData done [12:35:07]OFDSenderStorePacket done [12:35:07]KKMCreateOFDPacket done [12:35:07]NVStorageSaveData kkm_last_timestamp [12:35:07]File name is /storage/kkm_last_timestamp [12:35:07]Write 4 bytes [12:35:07]NVStorageSaveData done [12:35:07]ExternCall_PrintAddStr [12:35:07]wPrintStart [12:35:07]Write to MH i2c: 01 00 00 FE 47 45 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 07 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 07 00 FE 47 00 00 00 00 00 FF 0F 5A [12:35:07]RasterBufferAndPrint [12:35:07]line Счет N : (1)594003 [12:35:07]line ИНН: 02508201610067 [12:35:07]line Контрольно-Кассовый Чек [12:35:07]line ПРОДАЖА [12:35:07]line ТРК (МРК, ГНК) : 53 [12:35:07]line Товар: 2710124130 [12:35:07]line SU-92 [12:35:07]line 6.110 * 68.80 [12:35:07]line = 420.37 [12:35:07]line НДС 12% НСП 1% [12:35:07]line > о реализуемом товаре [12:35:07]line ОКРУГЛЕНИЕ: -0.37 [12:35:07]line ИТОГО: 420.00 [12:35:07]line Внесено: 420.00 [12:35:07]line СДАЧА: 0.00 [12:35:07]line НСП 1% : 3.72 [12:35:07]line НДС 12% : 44.64 [12:35:07]line Наличными: 420.00 [12:35:07]line Безнал.: 0.00 [12:35:07]line Место: АЗС № 136 "Партнер Нефть" [12:35:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:35:07]line СНО: Общий режим [12:35:07]line Чек 165 21.08.2024 12:35 [12:35:07]line Смена: 454 ФФД: 1.0 [12:35:07]line ЗНМ: 0300000067 [12:35:07]line РНМ: 0000000000092569 [12:35:07]line Версия ККМ: 001 [12:35:07]line ФМ: 0000000000871776 [12:35:07]line ФД: 140148 [12:35:07]line ФПД: 227359271126459 [12:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140148&fm=227359271126459&tin=02508201610067®Number=0000000000092569&sum=42000 [12:35:07]OFD Sender: Processing packet 140148 [packets to send 137, broken 136] [12:35:07]ProducePacketName [12:35:07]name=ofd_packets/00140148 [12:35:07]OFD Sender: To server: pG, [12:35:07]CommunicateWithHost lk.salyk.kg:30040 [12:35:07]ConnectInit lk.salyk.kg [12:35:07]written 0, free lines is 4095 [12:35:08]Connected sock=9 [12:35: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 37 36 08 01 00 00 E4 11 00 01 9C E7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 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 70 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 A5 00 00 00 F4 03 04 00 FD DE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 23 02 00 35 04 06 00 CE C8 34 97 85 BB 9A AA F9 13 F6 D3 16 72 [12:35: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 37 36 4F 00 00 00 AD 9C 47 00 AC 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 37 36 10 04 04 00 74 23 02 00 F4 03 04 00 8E 85 C5 66 B6 04 01 00 00 2E FA 26 44 43 36 02 F5 [12:35:08]CommunicateWithHost err = 0 [12:35:08]CheckOFDResponse [12:35:08]1017 (14) - 77093643461234 [12:35:08]1041 (16) - 0000000000871776 [12:35:08]1040 (4) - 140148 [12:35:08]1012 (4) - 21.08.2024 06:13 [12:35:08]1206 (1) - 0 [12:35:08]OFD Sender: Remove packet 140148 [12:35:08]ProducePacketName [12:35:08]name=ofd_packets/00140148 [12:35:08]NVStorageDeleteData [12:35:08]Write to MH i2c: 01 00 00 29 48 71 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 29 48 00 00 00 00 00 D9 0C 5D [12:35:08]RasterBufferAndPrint [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]written 0, free lines is 3297 [12:35:08]MH_Cut [12:35:08]Write to MH i2c: D1 01 00 30 48 01 4A [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 01 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 01 00 30 48 00 49 [12:35:08]Write to MH i2c: 01 00 00 31 48 79 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]OFD Sender: No OFD packet to send [12:35:09]*** Cut start [12:35:09]*** Partial cut [12:35:09]*** CUTSNS_PIN = 1 [12:35:09]*** CUTSNS_PIN = 0 [12:35:09]*** Brake cut motor [12:35:09]Read from MH i2c: 01 [12:35:09]MH_I2C_Read... [12:35:09]*** Stop cut motor [12:35:09]*** Cut end [12:35:09]Read from MH i2c: 01 07 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 31 48 00 00 00 00 00 FF 0F 8E [12:35:09]process_action close_receipt done [12:35:09]requested_data is exist [12:35:09]produce_requested_data [12:35:09]requested_item fm.sn is exist - process it [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 11 00 00 [12:35:09]Write to MH i2c: E2 08 00 32 48 80 11 00 00 00 00 00 00 F4 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 17 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 17 00 32 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [12:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:09]wFMCommunicate OK [12:35:09]requested_item fd.num is exist - process it [12:35:09]SAM_PROTO_GetFieldsCounters [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 13 00 00 [12:35:09]Write to MH i2c: E2 08 00 33 48 80 13 00 00 00 00 00 00 F7 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 62 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 62 00 33 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [12:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_GetFieldsCounters done [12:35:09]requested_item shift.num is exist - process it [12:35:09]requested_item shift.opened is exist - process it [12:35:09]req_shift_opened [12:35:09]FM_GetShiftState [12:35:09]SAM_PROTO_GetShiftState [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 13 01 00 [12:35:09]Write to MH i2c: E2 08 00 34 48 80 13 01 00 00 00 00 00 F9 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 34 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [12:35:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_GetShiftState done [12:35:09]FM_GetShiftState done [12:35:09]req_shift_opened done [12:35:09]requested_item shift.open_date is exist - process it [12:35:09]req_shift_open_date [12:35:09]req_shift_open_date done [12:35:09]produce_requested_data done [12:35:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140148,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:35:09]process_action_free close_receipt [12:35:09]json_value_free [12:35:09]json_value_free done [12:35:09]process_json_proto returns [12:35:09]Send response to host [12:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140148,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:35:09]free response buf [12:35:09]execute_script done [12:35:09]execute_script returns [12:35:09]free content buf [12:35:09]Sock 10.Close socket [12:35:09]Sock 10.Thread stoped [12:35:13]OFD Sender: No OFD packet to send [12:35:18]accept exits with 7 [12:35:18]New connection [12:35:18]New thread 3066764644 created [12:35:18]Thread 3066908004 joined [12:35:18]Waiting for new connection... [12:35:18] Sock 7.Parse request [12:35:18]Sock 7.Check first char [12:35:18]Sock 7.First char is OK [12:35:18]request: POST /json_proto HTTP/1.0 [12:35:18]Method: POST [12:35:18]URL: /json_proto [12:35:18]Method is POST - this is cgi request [12:35:18]url: /json_proto [12:35:18]query_string will be loaded in cgi processing [12:35:18]execute_cgi json_proto POST (null) [12:35:18]execute_cgi path=json_proto method=POST [12:35:18]POST find Content-Length [12:35:18]Host: 172.17.45.67:8080 [12:35:18]Content-Length: 754 [12:35:18]Content-Type: application/json [12:35:18] [12:35:18]POST finish read [12:35:18]Found Content-Length = 754 [12:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:18]execute_script... [12:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:18]POST & json_proto [12:35:18]process_json_proto [12:35:18]json parsed OK: [12:35:18]protocol is kg_v1.0 [12:35:18]action value=close_receipt [12:35:18]process_action close_receipt [12:35:18]cmd_close_receipt [12:35:18]MH_GetDate [12:35:18]Write to MH i2c: F0 00 00 35 48 6C [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: F0 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: F0 09 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: F0 09 00 35 48 00 09 DF C5 66 5F 7F 2B 66 F7 [12:35:18]GetLastDocTimeStamp 1724243709 [12:35:18]current date 1724243721 [12:35:18]FM_GetShiftState [12:35:18]SAM_PROTO_GetShiftState [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 13 01 00 [12:35:18]Write to MH i2c: E2 08 00 36 48 80 13 01 00 00 00 00 00 FB [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 0E 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 0E 00 36 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [12:35:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:35:18]wFMCommunicate OK [12:35:18]SAM_PROTO_GetShiftState done [12:35:18]FM_GetShiftState done [12:35:18]opened in 1724200467 [12:35:18]opened+sec_in_day 1724286867 [12:35:18]quantity*price = 0 [12:35:18]sum+1 = 1 [12:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 166 21.08.2024 12:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104261 ФМ: 0000000000871776 ФД: 140149 ФПД: 54859757308668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123521&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140149&fm=54859757308668&tin=02508201610067®Number=0000000000092569&sum=0 [12:35:19]StoreToDocumentArchive [12:35:19]shift 454 fd 140149 [12:35:19]save to /storage/0454/doc_00140149 [12:35:19]save last doc name /storage/0454/doc_00140149 to /storage/kkm_last_doc_name [12:35:19]save OK [12:35:19]Clear old archive folders... [12:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:19]tlvbuf is B6F4AA40 [12:35:19]SAM_PROTO_ClearQueue [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 09 00 00 [12:35:19]Write to MH i2c: E2 08 00 43 48 80 09 00 00 00 00 00 00 FD [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 43 48 00 90 00 FF [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]SAM_PROTO_ClearQueue done [12:35:19]KKMCreateOFDPacket [12:35:19]OFDProtocolAddRootSTLVToBuf [12:35:19]FM_MakeSignedData [12:35:19]FM_MakeSignedData [12:35:19]SAM_PROTO_SignData [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 01 02 [12:35:19]Write to MH i2c: E2 08 00 44 48 80 0D 01 02 00 00 00 00 05 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 44 48 00 90 00 00 [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=255 [12:35:19]MH_SAM_APDU [12:35: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 09 DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 23 02 00 35 04 06 00 31 [12:35:19]Write to MH i2c: E2 02 01 45 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 09 DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 23 02 00 35 04 06 00 31 00 00 40 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 45 48 00 90 00 01 [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=10 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 02 02 05 E5 08 58 CA FC [12:35:19]Write to MH i2c: E2 0D 00 46 48 80 0D 02 02 05 00 E5 08 58 CA FC 00 00 1D [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 46 48 00 90 00 02 [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 03 02 [12:35:19]Write to MH i2c: E2 08 00 47 48 80 0D 03 02 00 00 00 00 0A [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 0B 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 0B 00 47 48 00 E4 95 7D A5 2E 92 AC 62 90 00 74 [12:35:19]RAPDU: E4 95 7D A5 2E 92 AC 62 90 00 [12:35:19]wFMCommunicate OK [12:35:19]SAM_PROTO_SignData done [12:35:19]FM_MakeSignedData done [12:35:19]CreateOFDProtocolMessage [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 11 00 00 [12:35:19]Write to MH i2c: E2 08 00 48 48 80 11 00 00 00 00 00 00 0A [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 48 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [12:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:19]wFMCommunicate OK [12:35:19]CreateOFDProtocolMessage done [12:35:19]OFDSenderStorePacket 140149 [12:35:19]StoreOFDPacket docnum=140149 [12:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 2B 07 01 1C 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 09 DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 23 02 00 35 04 06 00 31 E5 08 58 CA FC E4 95 7D A5 2E 92 AC 62 [12:35:19]CheckFolder [12:35:19]dirname=/storage/ofd_packets [12:35:19]CheckFolder done [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00140149 [12:35:19]NVStorageSaveData ofd_packets/00140149 [12:35:19]File name is /storage/ofd_packets/00140149 [12:35:19]Write 301 bytes [12:35:19]NVStorageSaveData done [12:35:19]OFDSenderStorePacket done [12:35:19]KKMCreateOFDPacket done [12:35:19]NVStorageSaveData kkm_last_timestamp [12:35:19]File name is /storage/kkm_last_timestamp [12:35:19]Write 4 bytes [12:35:19]NVStorageSaveData done [12:35:19]ExternCall_PrintAddStr [12:35:19]wPrintStart [12:35:19]Write to MH i2c: 01 00 00 49 48 91 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 FF 0F A6 [12:35:19]RasterBufferAndPrint [12:35:19]line Счет N : (1)594002 [12:35:19]line ИНН: 02508201610067 [12:35:19]line Контрольно-Кассовый Чек [12:35:19]line ПРОДАЖА [12:35:19]line ТРК (МРК, ГНК) : 42 [12:35:19]line Товар: 2710124130 [12:35:19]line Аи-92-К-5 [12:35:19]line 40.000 * 0.00 [12:35:19]line = 0.00 [12:35:19]line НДС 12% НСП 1% [12:35:19]line > о реализуемом товаре [12:35:19]line ИТОГО: 0.00 [12:35:19]line НСП 1% : 0.00 [12:35:19]line НДС 12% : 0.00 [12:35:19]line Наличными: 0.00 [12:35:19]line Безнал.: 0.00 [12:35:19]line Место: АЗС № 136 "Партнер Нефть" [12:35:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:35:19]line СНО: Общий режим [12:35:19]line Чек 166 21.08.2024 12:35 [12:35:19]line Смена: 454 ФФД: 1.0 [12:35:19]line ЗНМ: 0300000067 [12:35:19]line РНМ: 0000000000092569 [12:35:19]line Версия ККМ: 001 [12:35:19]line Талоны: ТК ГПНА Online [12:35:19]line 30104261 [12:35:19]line ФМ: 0000000000871776 [12:35:19]line ФД: 140149 [12:35:19]line ФПД: 54859757308668 [12:35:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123521&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140149&fm=54859757308668&tin=02508201610067®Number=0000000000092569&sum=0 [12:35:19]written 0, free lines is 4095 [12:35:19]OFD Sender: Processing packet 140149 [packets to send 137, broken 136] [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00140149 [12:35:19]OFD Sender: To server: pG, [12:35:19]CommunicateWithHost lk.salyk.kg:30040 [12:35:19]ConnectInit lk.salyk.kg [12:35:20]Connected sock=10 [12:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 2B 07 01 1C 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 09 DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 23 02 00 35 04 06 00 31 E5 08 58 CA FC E4 95 7D A5 2E 92 AC 62 [12:35:20]Write to MH i2c: 01 00 00 73 48 BB [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 07 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 07 00 73 48 00 00 00 00 00 E8 0C B6 [12:35:20]RasterBufferAndPrint [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]written 0, free lines is 3314 [12:35: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 37 36 4F 00 00 00 2A ED 47 00 22 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 37 36 10 04 04 00 75 23 02 00 F4 03 04 00 9A 85 C5 66 B6 04 01 00 00 37 9D AE 72 C4 71 39 26 [12:35:20]CommunicateWithHost err = 0 [12:35:20]CheckOFDResponse [12:35:20]1017 (14) - 77093643461234 [12:35:20]1041 (16) - 0000000000871776 [12:35:20]1040 (4) - 140149 [12:35:20]1012 (4) - 21.08.2024 06:13 [12:35:20]1206 (1) - 0 [12:35:20]OFD Sender: Remove packet 140149 [12:35:20]ProducePacketName [12:35:20]name=ofd_packets/00140149 [12:35:20]NVStorageDeleteData [12:35:20]MH_Cut [12:35:20]Write to MH i2c: D1 01 00 7A 48 01 94 [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: D1 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: D1 01 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: D1 01 00 7A 48 00 93 [12:35:20]Write to MH i2c: 01 00 00 7B 48 C3 [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]OFD Sender: No OFD packet to send [12:35:21]*** Cut start [12:35:21]*** Partial cut [12:35:21]*** CUTSNS_PIN = 1 [12:35:21]*** CUTSNS_PIN = 0 [12:35:21]*** Brake cut motor [12:35:21]Read from MH i2c: 01 [12:35:21]MH_I2C_Read... [12:35:21]*** Stop cut motor [12:35:21]*** Cut end [12:35:21]Read from MH i2c: 01 07 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: 01 07 00 7B 48 00 00 00 00 00 FF 0F D8 [12:35:21]process_action close_receipt done [12:35:21]requested_data is exist [12:35:21]produce_requested_data [12:35:21]requested_item fm.sn is exist - process it [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 11 00 00 [12:35:21]Write to MH i2c: E2 08 00 7C 48 80 11 00 00 00 00 00 00 3E [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 17 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 17 00 7C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [12:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:35:21]wFMCommunicate OK [12:35:21]requested_item fd.num is exist - process it [12:35:21]SAM_PROTO_GetFieldsCounters [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 13 00 00 [12:35:21]Write to MH i2c: E2 08 00 7D 48 80 13 00 00 00 00 00 00 41 [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 62 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 62 00 7D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [12:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:21]wFMCommunicate OK [12:35:21]SAM_PROTO_GetFieldsCounters done [12:35:21]requested_item shift.num is exist - process it [12:35:21]requested_item shift.opened is exist - process it [12:35:21]req_shift_opened [12:35:21]FM_GetShiftState [12:35:21]SAM_PROTO_GetShiftState [12:35:21]wFMCommunicate request_size=4 [12:35:21]MH_SAM_APDU [12:35:21]CAPDU: 80 13 01 00 [12:35:21]Write to MH i2c: E2 08 00 7E 48 80 13 01 00 00 00 00 00 43 [12:35:21]Write i2c OK [12:35:21]MH_I2C_Read... [12:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:21]Read from MH i2c: E2 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 0E 00 [12:35:21]MH_I2C_Read... [12:35:21]Read from MH i2c: E2 0E 00 7E 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C3 [12:35:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:35:21]wFMCommunicate OK [12:35:21]SAM_PROTO_GetShiftState done [12:35:21]FM_GetShiftState done [12:35:21]req_shift_opened done [12:35:21]requested_item shift.open_date is exist - process it [12:35:21]req_shift_open_date [12:35:21]req_shift_open_date done [12:35:21]produce_requested_data done [12:35:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140149,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:35:21]process_action_free close_receipt [12:35:21]json_value_free [12:35:21]json_value_free done [12:35:21]process_json_proto returns [12:35:21]Send response to host [12:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140149,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:35:21]free response buf [12:35:21]execute_script done [12:35:21]execute_script returns [12:35:21]free content buf [12:35:21]Sock 7.Close socket [12:35:21]Sock 7.Thread stoped [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:24]accept exits with 9 [12:39:24]New connection [12:39:24]New thread 3066908004 created [12:39:24]Thread 3066764644 joined [12:39:24]Waiting for new connection... [12:39:24] Sock 9.Parse request [12:39:24]Sock 9.Check first char [12:39:24]Sock 9.First char is OK [12:39:24]request: POST /json_proto HTTP/1.0 [12:39:24]Method: POST [12:39:24]URL: /json_proto [12:39:24]Method is POST - this is cgi request [12:39:24]url: /json_proto [12:39:24]query_string will be loaded in cgi processing [12:39:24]execute_cgi json_proto POST (null) [12:39:24]execute_cgi path=json_proto method=POST [12:39:24]POST find Content-Length [12:39:24]Host: 172.17.45.67:8080 [12:39:24]Content-Length: 677 [12:39:24]Content-Type: application/json [12:39:24] [12:39:24]POST finish read [12:39:24]Found Content-Length = 677 [12:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [12:39:24]execute_script... [12: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)594004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.220, "sum" : 150.52, "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" ] } } [12:39:24]POST & json_proto [12:39:24]process_json_proto [12:39:24]json parsed OK: [12:39:24]protocol is kg_v1.0 [12:39:24]action value=close_receipt [12:39:24]process_action close_receipt [12:39:24]cmd_close_receipt [12:39:24]MH_GetDate [12:39:24]Write to MH i2c: F0 00 00 7F 48 B6 [12:39:24]Write i2c OK [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: F0 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: F0 09 00 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: F0 09 00 7F 48 00 FF DF C5 66 5F 7F 2B 66 37 [12:39:24]GetLastDocTimeStamp 1724243721 [12:39:24]current date 1724243967 [12:39:24]FM_GetShiftState [12:39:24]SAM_PROTO_GetShiftState [12:39:24]wFMCommunicate request_size=4 [12:39:24]MH_SAM_APDU [12:39:24]CAPDU: 80 13 01 00 [12:39:24]Write to MH i2c: E2 08 00 80 48 80 13 01 00 00 00 00 00 45 [12:39:24]Write i2c OK [12:39:24]MH_I2C_Read... [12:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:24]Read from MH i2c: E2 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 0E 00 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 0E 00 80 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C5 [12:39:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:39:24]wFMCommunicate OK [12:39:24]SAM_PROTO_GetShiftState done [12:39:24]FM_GetShiftState done [12:39:24]opened in 1724200467 [12:39:24]opened+sec_in_day 1724286867 [12:39:24]quantity*price = 15051 [12:39:24]sum+1 = 15053 [12:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 167 21.08.2024 12:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140150 ФПД: 262876297413406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140150&fm=262876297413406&tin=02508201610067®Number=0000000000092569&sum=15000 [12:39:25]StoreToDocumentArchive [12:39:25]shift 454 fd 140150 [12:39:25]save to /storage/0454/doc_00140150 [12:39:25]save last doc name /storage/0454/doc_00140150 to /storage/kkm_last_doc_name [12:39:25]save OK [12:39:25]Clear old archive folders... [12:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:25]tlvbuf is B6ECF540 [12:39:25]SAM_PROTO_ClearQueue [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 09 00 00 [12:39:25]Write to MH i2c: E2 08 00 8D 48 80 09 00 00 00 00 00 00 47 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 8D 48 00 90 00 49 [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]SAM_PROTO_ClearQueue done [12:39:25]KKMCreateOFDPacket [12:39:25]OFDProtocolAddRootSTLVToBuf [12:39:25]FM_MakeSignedData [12:39:25]FM_MakeSignedData [12:39:25]SAM_PROTO_SignData [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 0D 01 02 [12:39:25]Write to MH i2c: E2 08 00 8E 48 80 0D 01 02 00 00 00 00 4F [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 8E 48 00 90 00 4A [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]wFMCommunicate request_size=255 [12:39:25]MH_SAM_APDU [12: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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 A7 00 00 00 F4 03 04 00 FF DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 23 02 00 35 04 06 00 EF [12:39:25]Write to MH i2c: E2 02 01 8F 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 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 A7 00 00 00 F4 03 04 00 FF DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 23 02 00 35 04 06 00 EF 00 00 21 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 8F 48 00 90 00 4B [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]wFMCommunicate request_size=10 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 0D 02 02 05 15 A8 53 C3 1E [12:39:25]Write to MH i2c: E2 0D 00 90 48 80 0D 02 02 05 00 15 A8 53 C3 1E 00 00 4D [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 90 48 00 90 00 4C [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 0D 03 02 [12:39:25]Write to MH i2c: E2 08 00 91 48 80 0D 03 02 00 00 00 00 54 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0B 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0B 00 91 48 00 92 90 79 4B 75 E6 D7 2E 90 00 9B [12:39:25]RAPDU: 92 90 79 4B 75 E6 D7 2E 90 00 [12:39:25]wFMCommunicate OK [12:39:25]SAM_PROTO_SignData done [12:39:25]FM_MakeSignedData done [12:39:25]CreateOFDProtocolMessage [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 11 00 00 [12:39:25]Write to MH i2c: E2 08 00 92 48 80 11 00 00 00 00 00 00 54 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 17 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 17 00 92 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [12:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:39:25]wFMCommunicate OK [12:39:25]CreateOFDProtocolMessage done [12:39:25]OFDSenderStorePacket 140150 [12:39:25]StoreOFDPacket docnum=140150 [12:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BE F8 07 01 77 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 A7 00 00 00 F4 03 04 00 FF DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 23 02 00 35 04 06 00 EF 15 A8 53 C3 1E 92 90 79 4B 75 E6 D7 2E [12:39:25]CheckFolder [12:39:25]dirname=/storage/ofd_packets [12:39:25]CheckFolder done [12:39:25]ProducePacketName [12:39:25]name=ofd_packets/00140150 [12:39:25]NVStorageSaveData ofd_packets/00140150 [12:39:25]File name is /storage/ofd_packets/00140150 [12:39:25]Write 301 bytes [12:39:25]NVStorageSaveData done [12:39:25]OFDSenderStorePacket done [12:39:25]KKMCreateOFDPacket done [12:39:25]NVStorageSaveData kkm_last_timestamp [12:39:25]File name is /storage/kkm_last_timestamp [12:39:25]Write 4 bytes [12:39:25]NVStorageSaveData done [12:39:25]ExternCall_PrintAddStr [12:39:25]wPrintStart [12:39:25]Write to MH i2c: 01 00 00 93 48 DB [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 93 48 00 00 00 00 00 FF 0F F0 [12:39:25]RasterBufferAndPrint [12:39:25]line Счет N : (1)594004 [12:39:25]line ИНН: 02508201610067 [12:39:25]line Контрольно-Кассовый Чек [12:39:25]line ПРОДАЖА [12:39:25]line ТРК (МРК, ГНК) : 32 [12:39:25]line Товар: 2710124130 [12:39:25]line Аи-92-К-5 [12:39:25]line 2.220 * 67.80 [12:39:25]line = 150.52 [12:39:25]line НДС 12% НСП 1% [12:39:25]line > о реализуемом товаре [12:39:25]line ОКРУГЛЕНИЕ: -0.52 [12:39:25]line ИТОГО: 150.00 [12:39:25]line Внесено: 150.00 [12:39:25]line СДАЧА: 0.00 [12:39:25]line НСП 1% : 1.33 [12:39:25]line НДС 12% : 15.98 [12:39:25]line Наличными: 150.00 [12:39:25]line Безнал.: 0.00 [12:39:25]line Место: АЗС № 136 "Партнер Нефть" [12:39:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:39:25]line СНО: Общий режим [12:39:25]line Чек 167 21.08.2024 12:39 [12:39:25]line Смена: 454 ФФД: 1.0 [12:39:25]line ЗНМ: 0300000067 [12:39:25]line РНМ: 0000000000092569 [12:39:25]line Версия ККМ: 001 [12:39:25]line ФМ: 0000000000871776 [12:39:25]line ФД: 140150 [12:39:25]line ФПД: 262876297413406 [12:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T123927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140150&fm=262876297413406&tin=02508201610067®Number=0000000000092569&sum=15000 [12:39:26]written 0, free lines is 4095 [12:39:26]OFD Sender: Processing packet 140150 [packets to send 137, broken 136] [12:39:26]ProducePacketName [12:39:26]name=ofd_packets/00140150 [12:39:26]OFD Sender: To server: pG, [12:39:26]CommunicateWithHost lk.salyk.kg:30040 [12:39:26]ConnectInit lk.salyk.kg [12:39:26]Connected sock=10 [12: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 37 36 0F 01 00 00 BE F8 07 01 77 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 08 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CC 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 A7 00 00 00 F4 03 04 00 FF DF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 23 02 00 35 04 06 00 EF 15 A8 53 C3 1E 92 90 79 4B 75 E6 D7 2E [12: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 37 36 4F 00 00 00 41 C2 47 00 E7 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 37 36 10 04 04 00 76 23 02 00 F4 03 04 00 90 86 C5 66 B6 04 01 00 00 93 82 45 DA 46 03 BE 17 [12:39:26]CommunicateWithHost err = 0 [12:39:26]CheckOFDResponse [12:39:26]1017 (14) - 77093643461234 [12:39:26]1041 (16) - 0000000000871776 [12:39:26]1040 (4) - 140150 [12:39:26]1012 (4) - 21.08.2024 06:17 [12:39:26]1206 (1) - 0 [12:39:26]OFD Sender: Remove packet 140150 [12:39:26]ProducePacketName [12:39:26]name=ofd_packets/00140150 [12:39:26]NVStorageDeleteData [12:39:26]Write to MH i2c: 01 00 00 BE 48 06 [12:39:26]Write i2c OK [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: 01 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: 01 07 00 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: 01 07 00 BE 48 00 00 00 00 00 CE 0C E7 [12:39:26]RasterBufferAndPrint [12:39:26]line [12:39:26]line [12:39:26]line [12:39:26]line [12:39:26]line [12:39:26]written 0, free lines is 3285 [12:39:26]MH_Cut [12:39:26]Write to MH i2c: D1 01 00 C5 48 01 DF [12:39:26]Write i2c OK [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: D1 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: D1 01 00 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: D1 01 00 C5 48 00 DE [12:39:26]Write to MH i2c: 01 00 00 C6 48 0E [12:39:26]Write i2c OK [12:39:26]MH_I2C_Read... [12:39:27]OFD Sender: No OFD packet to send [12:39:27]*** Cut start [12:39:27]*** Partial cut [12:39:27]*** CUTSNS_PIN = 1 [12:39:27]*** CUTSNS_PIN = 0 [12:39:27]*** Brake cut motor [12:39:28]Read from MH i2c: 01 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 07 00 [12:39:28]MH_I2C_Read... [12:39:28]*** Stop cut motor [12:39:28]*** Cut end [12:39:28]Read from MH i2c: 01 07 00 C6 48 00 00 00 00 00 FF 0F 23 [12:39:28]process_action close_receipt done [12:39:28]requested_data is exist [12:39:28]produce_requested_data [12:39:28]requested_item fm.sn is exist - process it [12:39:28]wFMCommunicate request_size=4 [12:39:28]MH_SAM_APDU [12:39:28]CAPDU: 80 11 00 00 [12:39:28]Write to MH i2c: E2 08 00 C7 48 80 11 00 00 00 00 00 00 89 [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 [12:39:28]MH_I2C_Read... [12:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:28]Read from MH i2c: E2 17 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 17 00 C7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [12:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:39:28]wFMCommunicate OK [12:39:28]requested_item fd.num is exist - process it [12:39:28]SAM_PROTO_GetFieldsCounters [12:39:28]wFMCommunicate request_size=4 [12:39:28]MH_SAM_APDU [12:39:28]CAPDU: 80 13 00 00 [12:39:28]Write to MH i2c: E2 08 00 C8 48 80 13 00 00 00 00 00 00 8C [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:28]Read from MH i2c: E2 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 62 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 62 00 C8 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:28]wFMCommunicate OK [12:39:28]SAM_PROTO_GetFieldsCounters done [12:39:28]requested_item shift.num is exist - process it [12:39:28]requested_item shift.opened is exist - process it [12:39:28]req_shift_opened [12:39:28]FM_GetShiftState [12:39:28]SAM_PROTO_GetShiftState [12:39:28]wFMCommunicate request_size=4 [12:39:28]MH_SAM_APDU [12:39:28]CAPDU: 80 13 01 00 [12:39:28]Write to MH i2c: E2 08 00 C9 48 80 13 01 00 00 00 00 00 8E [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:28]Read from MH i2c: E2 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 0E 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 0E 00 C9 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0E [12:39:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:39:28]wFMCommunicate OK [12:39:28]SAM_PROTO_GetShiftState done [12:39:28]FM_GetShiftState done [12:39:28]req_shift_opened done [12:39:28]requested_item shift.open_date is exist - process it [12:39:28]req_shift_open_date [12:39:28]req_shift_open_date done [12:39:28]produce_requested_data done [12:39:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140150,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:39:28]process_action_free close_receipt [12:39:28]json_value_free [12:39:28]json_value_free done [12:39:28]process_json_proto returns [12:39:28]Send response to host [12:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140150,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:39:28]free response buf [12:39:28]execute_script done [12:39:28]execute_script returns [12:39:28]free content buf [12:39:28]Sock 9.Close socket [12:39:28]Sock 9.Thread stoped [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:45]accept exits with 7 [12:48:45]New connection [12:48:45]New thread 3066764644 created [12:48:45]Thread 3066908004 joined [12:48:45]Waiting for new connection... [12:48:45] Sock 7.Parse request [12:48:45]Sock 7.Check first char [12:48:45]Sock 7.First char is OK [12:48:45]request: POST /json_proto HTTP/1.0 [12:48:45]Method: POST [12:48:45]URL: /json_proto [12:48:45]Method is POST - this is cgi request [12:48:45]url: /json_proto [12:48:45]query_string will be loaded in cgi processing [12:48:45]execute_cgi json_proto POST (null) [12:48:45]execute_cgi path=json_proto method=POST [12:48:45]POST find Content-Length [12:48:45]Host: 172.17.45.67:8080 [12:48:45]Content-Length: 677 [12:48:45]Content-Type: application/json [12:48:45] [12:48:45]POST finish read [12:48:45]Found Content-Length = 677 [12:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:45]execute_script... [12:48:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:45]POST & json_proto [12:48:45]process_json_proto [12:48:45]json parsed OK: [12:48:45]protocol is kg_v1.0 [12:48:45]action value=close_receipt [12:48:45]process_action close_receipt [12:48:45]cmd_close_receipt [12:48:45]MH_GetDate [12:48:45]Write to MH i2c: F0 00 00 CA 48 01 [12:48:45]Write i2c OK [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: F0 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: F0 09 00 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: F0 09 00 CA 48 00 31 E2 C5 66 5F 7F 2B 66 B7 [12:48:45]GetLastDocTimeStamp 1724243967 [12:48:45]current date 1724244529 [12:48:45]FM_GetShiftState [12:48:45]SAM_PROTO_GetShiftState [12:48:45]wFMCommunicate request_size=4 [12:48:45]MH_SAM_APDU [12:48:45]CAPDU: 80 13 01 00 [12:48:45]Write to MH i2c: E2 08 00 CB 48 80 13 01 00 00 00 00 00 90 [12:48:45]Write i2c OK [12:48:45]MH_I2C_Read... [12:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:45]Read from MH i2c: E2 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: E2 0E 00 [12:48:45]MH_I2C_Read... [12:48:45]Read from MH i2c: E2 0E 00 CB 48 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [12:48:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:48:45]wFMCommunicate OK [12:48:45]SAM_PROTO_GetShiftState done [12:48:45]FM_GetShiftState done [12:48:45]opened in 1724200467 [12:48:45]opened+sec_in_day 1724286867 [12:48:45]quantity*price = 50010 [12:48:45]sum+1 = 50012 [12:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 168 21.08.2024 12:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140151 ФПД: 227012558503341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T124849&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140151&fm=227012558503341&tin=02508201610067®Number=0000000000092569&sum=50000 [12:48:46]StoreToDocumentArchive [12:48:46]shift 454 fd 140151 [12:48:46]save to /storage/0454/doc_00140151 [12:48:46]save last doc name /storage/0454/doc_00140151 to /storage/kkm_last_doc_name [12:48:46]save OK [12:48:46]Clear old archive folders... [12:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:46]tlvbuf is 00ABFBB0 [12:48:46]SAM_PROTO_ClearQueue [12:48:46]wFMCommunicate request_size=4 [12:48:46]MH_SAM_APDU [12:48:46]CAPDU: 80 09 00 00 [12:48:46]Write to MH i2c: E2 08 00 D8 48 80 09 00 00 00 00 00 00 92 [12:48:46]Write i2c OK [12:48:46]MH_I2C_Read... [12:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:46]Read from MH i2c: E2 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 03 00 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 03 00 D8 48 00 90 00 94 [12:48:46]RAPDU: 90 00 [12:48:46]wFMCommunicate OK [12:48:46]SAM_PROTO_ClearQueue done [12:48:46]KKMCreateOFDPacket [12:48:46]OFDProtocolAddRootSTLVToBuf [12:48:46]FM_MakeSignedData [12:48:46]FM_MakeSignedData [12:48:46]SAM_PROTO_SignData [12:48:46]wFMCommunicate request_size=4 [12:48:46]MH_SAM_APDU [12:48:46]CAPDU: 80 0D 01 02 [12:48:46]Write to MH i2c: E2 08 00 D9 48 80 0D 01 02 00 00 00 00 9A [12:48:46]Write i2c OK [12:48:46]MH_I2C_Read... [12:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:46]Read from MH i2c: E2 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 03 00 [12:48:46]MH_I2C_Read... [12:48:46]Read from MH i2c: E2 03 00 D9 48 00 90 00 95 [12:48:46]RAPDU: 90 00 [12:48:46]wFMCommunicate OK [12:48:46]wFMCommunicate request_size=255 [12:48:46]MH_SAM_APDU [12:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 31 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 23 02 00 35 04 06 00 CE [12:48:46]Write to MH i2c: E2 02 01 DA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 31 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 23 02 00 35 04 06 00 CE 00 00 22 [12:48:46]Write i2c OK [12:48:46]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 03 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 03 00 DA 48 00 90 00 96 [12:48:47]RAPDU: 90 00 [12:48:47]wFMCommunicate OK [12:48:47]wFMCommunicate request_size=10 [12:48:47]MH_SAM_APDU [12:48:47]CAPDU: 80 0D 02 02 05 77 7A E8 BD AD [12:48:47]Write to MH i2c: E2 0D 00 DB 48 80 0D 02 02 05 00 77 7A E8 BD AD 00 00 EA [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 03 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 03 00 DB 48 00 90 00 97 [12:48:47]RAPDU: 90 00 [12:48:47]wFMCommunicate OK [12:48:47]wFMCommunicate request_size=4 [12:48:47]MH_SAM_APDU [12:48:47]CAPDU: 80 0D 03 02 [12:48:47]Write to MH i2c: E2 08 00 DC 48 80 0D 03 02 00 00 00 00 9F [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 0B 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 0B 00 DC 48 00 08 DC 5C F8 7F D0 49 B0 90 00 20 [12:48:47]RAPDU: 08 DC 5C F8 7F D0 49 B0 90 00 [12:48:47]wFMCommunicate OK [12:48:47]SAM_PROTO_SignData done [12:48:47]FM_MakeSignedData done [12:48:47]CreateOFDProtocolMessage [12:48:47]wFMCommunicate request_size=4 [12:48:47]MH_SAM_APDU [12:48:47]CAPDU: 80 11 00 00 [12:48:47]Write to MH i2c: E2 08 00 DD 48 80 11 00 00 00 00 00 00 9F [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:47]Read from MH i2c: E2 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 17 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: E2 17 00 DD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [12:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:48:47]wFMCommunicate OK [12:48:47]CreateOFDProtocolMessage done [12:48:47]OFDSenderStorePacket 140151 [12:48:47]StoreOFDPacket docnum=140151 [12:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 51 07 01 50 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 31 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 23 02 00 35 04 06 00 CE 77 7A E8 BD AD 08 DC 5C F8 7F D0 49 B0 [12:48:47]CheckFolder [12:48:47]dirname=/storage/ofd_packets [12:48:47]CheckFolder done [12:48:47]ProducePacketName [12:48:47]name=ofd_packets/00140151 [12:48:47]NVStorageSaveData ofd_packets/00140151 [12:48:47]File name is /storage/ofd_packets/00140151 [12:48:47]Write 301 bytes [12:48:47]NVStorageSaveData done [12:48:47]OFDSenderStorePacket done [12:48:47]KKMCreateOFDPacket done [12:48:47]NVStorageSaveData kkm_last_timestamp [12:48:47]File name is /storage/kkm_last_timestamp [12:48:47]Write 4 bytes [12:48:47]NVStorageSaveData done [12:48:47]ExternCall_PrintAddStr [12:48:47]wPrintStart [12:48:47]Write to MH i2c: 01 00 00 DE 48 26 [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 07 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 07 00 DE 48 00 00 00 00 00 FF 0F 3B [12:48:47]RasterBufferAndPrint [12:48:47]line Счет N : (1)594007 [12:48:47]line ИНН: 02508201610067 [12:48:47]line Контрольно-Кассовый Чек [12:48:47]line ПРОДАЖА [12:48:47]line ТРК (МРК, ГНК) : 31 [12:48:47]line Товар: 2710124500 [12:48:47]line Аи-95-К-5 [12:48:47]line 6.740 * 74.20 [12:48:47]line = 500.11 [12:48:47]line НДС 12% НСП 1% [12:48:47]line > о реализуемом товаре [12:48:47]line ОКРУГЛЕНИЕ: -0.11 [12:48:47]line ИТОГО: 500.00 [12:48:47]line Внесено: 500.00 [12:48:47]line СДАЧА: 0.00 [12:48:47]line НСП 1% : 4.43 [12:48:47]line НДС 12% : 53.11 [12:48:47]line Наличными: 500.00 [12:48:47]line Безнал.: 0.00 [12:48:47]line Место: АЗС № 136 "Партнер Нефть" [12:48:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:48:47]line СНО: Общий режим [12:48:47]line Чек 168 21.08.2024 12:48 [12:48:47]line Смена: 454 ФФД: 1.0 [12:48:47]line ЗНМ: 0300000067 [12:48:47]line РНМ: 0000000000092569 [12:48:47]line Версия ККМ: 001 [12:48:47]line ФМ: 0000000000871776 [12:48:47]line ФД: 140151 [12:48:47]line ФПД: 227012558503341 [12:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T124849&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140151&fm=227012558503341&tin=02508201610067®Number=0000000000092569&sum=50000 [12:48:47]written 0, free lines is 4095 [12:48:47]OFD Sender: Processing packet 140151 [packets to send 137, broken 136] [12:48:47]ProducePacketName [12:48:47]name=ofd_packets/00140151 [12:48:47]OFD Sender: To server: pG, [12:48:47]CommunicateWithHost lk.salyk.kg:30040 [12:48:47]ConnectInit lk.salyk.kg [12:48:47]Connected sock=10 [12:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 51 07 01 50 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 31 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 23 02 00 35 04 06 00 CE 77 7A E8 BD AD 08 DC 5C F8 7F D0 49 B0 [12:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 52 C3 47 00 C4 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 37 36 10 04 04 00 77 23 02 00 F4 03 04 00 C1 88 C5 66 B6 04 01 00 00 05 5E 9C 18 46 2E 5F 5F [12:48:47]CommunicateWithHost err = 0 [12:48:47]CheckOFDResponse [12:48:47]1017 (14) - 77093643461234 [12:48:47]1041 (16) - 0000000000871776 [12:48:47]1040 (4) - 140151 [12:48:47]1012 (4) - 21.08.2024 06:27 [12:48:47]1206 (1) - 0 [12:48:47]OFD Sender: Remove packet 140151 [12:48:47]ProducePacketName [12:48:47]name=ofd_packets/00140151 [12:48:47]NVStorageDeleteData [12:48:47]Write to MH i2c: 01 00 00 09 49 52 [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 07 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: 01 07 00 09 49 00 00 00 00 00 E2 0C 47 [12:48:47]RasterBufferAndPrint [12:48:47]line [12:48:47]line [12:48:47]line [12:48:47]line [12:48:47]line [12:48:47]written 0, free lines is 3304 [12:48:47]MH_Cut [12:48:47]Write to MH i2c: D1 01 00 10 49 01 2B [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: D1 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: D1 01 00 [12:48:47]MH_I2C_Read... [12:48:47]Read from MH i2c: D1 01 00 10 49 00 2A [12:48:47]Write to MH i2c: 01 00 00 11 49 5A [12:48:47]Write i2c OK [12:48:47]MH_I2C_Read... [12:48:48]OFD Sender: No OFD packet to send [12:48:48]*** Cut start [12:48:48]*** Partial cut [12:48:48]*** CUTSNS_PIN = 1 [12:48:48]*** CUTSNS_PIN = 0 [12:48:48]*** Brake cut motor [12:48:49]Read from MH i2c: 01 [12:48:49]MH_I2C_Read... [12:48:49]*** Stop cut motor [12:48:49]*** Cut end [12:48:49]Read from MH i2c: 01 07 00 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: 01 07 00 11 49 00 00 00 00 00 FF 0F 6F [12:48:49]process_action close_receipt done [12:48:49]requested_data is exist [12:48:49]produce_requested_data [12:48:49]requested_item fm.sn is exist - process it [12:48:49]wFMCommunicate request_size=4 [12:48:49]MH_SAM_APDU [12:48:49]CAPDU: 80 11 00 00 [12:48:49]Write to MH i2c: E2 08 00 12 49 80 11 00 00 00 00 00 00 D5 [12:48:49]Write i2c OK [12:48:49]MH_I2C_Read... [12:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:49]Read from MH i2c: E2 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 17 00 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 17 00 12 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [12:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:48:49]wFMCommunicate OK [12:48:49]requested_item fd.num is exist - process it [12:48:49]SAM_PROTO_GetFieldsCounters [12:48:49]wFMCommunicate request_size=4 [12:48:49]MH_SAM_APDU [12:48:49]CAPDU: 80 13 00 00 [12:48:49]Write to MH i2c: E2 08 00 13 49 80 13 00 00 00 00 00 00 D8 [12:48:49]Write i2c OK [12:48:49]MH_I2C_Read... [12:48:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:49]Read from MH i2c: E2 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 62 00 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 62 00 13 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:49]wFMCommunicate OK [12:48:49]SAM_PROTO_GetFieldsCounters done [12:48:49]requested_item shift.num is exist - process it [12:48:49]requested_item shift.opened is exist - process it [12:48:49]req_shift_opened [12:48:49]FM_GetShiftState [12:48:49]SAM_PROTO_GetShiftState [12:48:49]wFMCommunicate request_size=4 [12:48:49]MH_SAM_APDU [12:48:49]CAPDU: 80 13 01 00 [12:48:49]Write to MH i2c: E2 08 00 14 49 80 13 01 00 00 00 00 00 DA [12:48:49]Write i2c OK [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 [12:48:49]MH_I2C_Read... [12:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:49]Read from MH i2c: E2 0E 00 [12:48:49]MH_I2C_Read... [12:48:49]Read from MH i2c: E2 0E 00 14 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5A [12:48:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:48:49]wFMCommunicate OK [12:48:49]SAM_PROTO_GetShiftState done [12:48:49]FM_GetShiftState done [12:48:49]req_shift_opened done [12:48:49]requested_item shift.open_date is exist - process it [12:48:49]req_shift_open_date [12:48:49]req_shift_open_date done [12:48:49]produce_requested_data done [12:48:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140151,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:48:49]process_action_free close_receipt [12:48:49]json_value_free [12:48:49]json_value_free done [12:48:49]process_json_proto returns [12:48:49]Send response to host [12:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140151,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:48:49]free response buf [12:48:49]execute_script done [12:48:49]execute_script returns [12:48:49]free content buf [12:48:49]Sock 7.Close socket [12:48:49]Sock 7.Thread stoped [12:48:53]OFD Sender: No OFD packet to send [12:48:55]accept exits with 9 [12:48:55]New connection [12:48:55]New thread 3066908004 created [12:48:55]Thread 3066764644 joined [12:48:55]Waiting for new connection... [12:48:55] Sock 9.Parse request [12:48:55]Sock 9.Check first char [12:48:55]Sock 9.First char is OK [12:48:55]request: POST /json_proto HTTP/1.0 [12:48:55]Method: POST [12:48:55]URL: /json_proto [12:48:55]Method is POST - this is cgi request [12:48:55]url: /json_proto [12:48:55]query_string will be loaded in cgi processing [12:48:55]execute_cgi json_proto POST (null) [12:48:55]execute_cgi path=json_proto method=POST [12:48:55]POST find Content-Length [12:48:55]Host: 172.17.45.67:8080 [12:48:55]Content-Length: 677 [12:48:55]Content-Type: application/json [12:48:55] [12:48:55]POST finish read [12:48:55]Found Content-Length = 677 [12:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:55]execute_script... [12:48: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)594005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:55]POST & json_proto [12:48:55]process_json_proto [12:48:55]json parsed OK: [12:48:55]protocol is kg_v1.0 [12:48:55]action value=close_receipt [12:48:55]process_action close_receipt [12:48:55]cmd_close_receipt [12:48:55]MH_GetDate [12:48:55]Write to MH i2c: F0 00 00 15 49 4D [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 09 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: F0 09 00 15 49 00 3B E2 C5 66 5F 7F 2B 66 0D [12:48:55]GetLastDocTimeStamp 1724244529 [12:48:55]current date 1724244539 [12:48:55]FM_GetShiftState [12:48:55]SAM_PROTO_GetShiftState [12:48:55]wFMCommunicate request_size=4 [12:48:55]MH_SAM_APDU [12:48:55]CAPDU: 80 13 01 00 [12:48:55]Write to MH i2c: E2 08 00 16 49 80 13 01 00 00 00 00 00 DC [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:55]Read from MH i2c: E2 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 16 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [12:48:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:48:55]wFMCommunicate OK [12:48:55]SAM_PROTO_GetShiftState done [12:48:55]FM_GetShiftState done [12:48:55]opened in 1724200467 [12:48:55]opened+sec_in_day 1724286867 [12:48:55]quantity*price = 50036 [12:48:55]sum+1 = 50037 [12:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 169 21.08.2024 12:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140152 ФПД: 135066894458769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T124859&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140152&fm=135066894458769&tin=02508201610067®Number=0000000000092569&sum=50000 [12:48:56]StoreToDocumentArchive [12:48:56]shift 454 fd 140152 [12:48:56]save to /storage/0454/doc_00140152 [12:48:56]save last doc name /storage/0454/doc_00140152 to /storage/kkm_last_doc_name [12:48:56]save OK [12:48:56]Clear old archive folders... [12:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:57]tlvbuf is 00ABFB70 [12:48:57]SAM_PROTO_ClearQueue [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 09 00 00 [12:48:57]Write to MH i2c: E2 08 00 23 49 80 09 00 00 00 00 00 00 DE [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 23 49 00 90 00 E0 [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]SAM_PROTO_ClearQueue done [12:48:57]KKMCreateOFDPacket [12:48:57]OFDProtocolAddRootSTLVToBuf [12:48:57]FM_MakeSignedData [12:48:57]FM_MakeSignedData [12:48:57]SAM_PROTO_SignData [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 01 02 [12:48:57]Write to MH i2c: E2 08 00 24 49 80 0D 01 02 00 00 00 00 E6 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 24 49 00 90 00 E1 [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]wFMCommunicate request_size=255 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 3B E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 23 02 00 35 04 06 00 7A [12:48:57]Write to MH i2c: E2 02 01 25 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 3B E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 23 02 00 35 04 06 00 7A 00 00 3E [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 25 49 00 90 00 E2 [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]wFMCommunicate request_size=10 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 02 02 05 D7 B6 43 DF 91 [12:48:57]Write to MH i2c: E2 0D 00 26 49 80 0D 02 02 05 00 D7 B6 43 DF 91 00 00 33 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 03 00 26 49 00 90 00 E3 [12:48:57]RAPDU: 90 00 [12:48:57]wFMCommunicate OK [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 0D 03 02 [12:48:57]Write to MH i2c: E2 08 00 27 49 80 0D 03 02 00 00 00 00 EB [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 0B 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 0B 00 27 49 00 31 E9 5F 9F 1A D7 72 16 90 00 7D [12:48:57]RAPDU: 31 E9 5F 9F 1A D7 72 16 90 00 [12:48:57]wFMCommunicate OK [12:48:57]SAM_PROTO_SignData done [12:48:57]FM_MakeSignedData done [12:48:57]CreateOFDProtocolMessage [12:48:57]wFMCommunicate request_size=4 [12:48:57]MH_SAM_APDU [12:48:57]CAPDU: 80 11 00 00 [12:48:57]Write to MH i2c: E2 08 00 28 49 80 11 00 00 00 00 00 00 EB [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:57]Read from MH i2c: E2 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 17 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: E2 17 00 28 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [12:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:48:57]wFMCommunicate OK [12:48:57]CreateOFDProtocolMessage done [12:48:57]OFDSenderStorePacket 140152 [12:48:57]StoreOFDPacket docnum=140152 [12:48:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 90 07 01 75 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 3B E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 23 02 00 35 04 06 00 7A D7 B6 43 DF 91 31 E9 5F 9F 1A D7 72 16 [12:48:57]CheckFolder [12:48:57]dirname=/storage/ofd_packets [12:48:57]CheckFolder done [12:48:57]ProducePacketName [12:48:57]name=ofd_packets/00140152 [12:48:57]NVStorageSaveData ofd_packets/00140152 [12:48:57]File name is /storage/ofd_packets/00140152 [12:48:57]Write 301 bytes [12:48:57]NVStorageSaveData done [12:48:57]OFDSenderStorePacket done [12:48:57]KKMCreateOFDPacket done [12:48:57]NVStorageSaveData kkm_last_timestamp [12:48:57]File name is /storage/kkm_last_timestamp [12:48:57]Write 4 bytes [12:48:57]NVStorageSaveData done [12:48:57]ExternCall_PrintAddStr [12:48:57]wPrintStart [12:48:57]Write to MH i2c: 01 00 00 29 49 72 [12:48:57]Write i2c OK [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 07 00 [12:48:57]MH_I2C_Read... [12:48:57]Read from MH i2c: 01 07 00 29 49 00 00 00 00 00 FF 0F 87 [12:48:57]RasterBufferAndPrint [12:48:57]line Счет N : (1)594005 [12:48:57]line ИНН: 02508201610067 [12:48:57]line Контрольно-Кассовый Чек [12:48:57]line ПРОДАЖА [12:48:57]line ТРК (МРК, ГНК) : 52 [12:48:57]line Товар: 2710124130 [12:48:57]line Аи-92-К-5 [12:48:57]line 7.380 * 67.80 [12:48:57]line = 500.36 [12:48:57]line НДС 12% НСП 1% [12:48:57]line > о реализуемом товаре [12:48:57]line ОКРУГЛЕНИЕ: -0.36 [12:48:57]line ИТОГО: 500.00 [12:48:57]line Внесено: 500.00 [12:48:57]line СДАЧА: 0.00 [12:48:57]line НСП 1% : 4.43 [12:48:57]line НДС 12% : 53.14 [12:48:57]line Наличными: 500.00 [12:48:57]line Безнал.: 0.00 [12:48:57]line Место: АЗС № 136 "Партнер Нефть" [12:48:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:48:57]line СНО: Общий режим [12:48:57]line Чек 169 21.08.2024 12:48 [12:48:57]line Смена: 454 ФФД: 1.0 [12:48:57]line ЗНМ: 0300000067 [12:48:57]line РНМ: 0000000000092569 [12:48:57]line Версия ККМ: 001 [12:48:57]line ФМ: 0000000000871776 [12:48:57]line ФД: 140152 [12:48:57]line ФПД: 135066894458769 [12:48:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T124859&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140152&fm=135066894458769&tin=02508201610067®Number=0000000000092569&sum=50000 [12:48:57]written 0, free lines is 4095 [12:48:57]OFD Sender: Processing packet 140152 [packets to send 137, broken 136] [12:48:57]ProducePacketName [12:48:57]name=ofd_packets/00140152 [12:48:57]OFD Sender: To server: pG, [12:48:57]CommunicateWithHost lk.salyk.kg:30040 [12:48:57]ConnectInit lk.salyk.kg [12:48:57]Connected sock=10 [12:48: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 37 36 0F 01 00 00 16 90 07 01 75 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 3B E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 23 02 00 35 04 06 00 7A D7 B6 43 DF 91 31 E9 5F 9F 1A D7 72 16 [12:48:58]Write to MH i2c: 01 00 00 54 49 9D [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 54 49 00 00 00 00 00 E2 0C 92 [12:48:58]RasterBufferAndPrint [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]line [12:48:58]written 0, free lines is 3307 [12:48:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AB 24 47 00 BA 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 37 36 10 04 04 00 78 23 02 00 F4 03 04 00 CC 88 C5 66 B6 04 01 00 00 75 76 90 1D A0 D6 0E B7 [12:48:58]CommunicateWithHost err = 0 [12:48:58]CheckOFDResponse [12:48:58]1017 (14) - 77093643461234 [12:48:58]1041 (16) - 0000000000871776 [12:48:58]1040 (4) - 140152 [12:48:58]1012 (4) - 21.08.2024 06:27 [12:48:58]1206 (1) - 0 [12:48:58]OFD Sender: Remove packet 140152 [12:48:58]ProducePacketName [12:48:58]name=ofd_packets/00140152 [12:48:58]NVStorageDeleteData [12:48:58]MH_Cut [12:48:58]Write to MH i2c: D1 01 00 5B 49 01 76 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 01 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: D1 01 00 5B 49 00 75 [12:48:58]Write to MH i2c: 01 00 00 5C 49 A5 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]OFD Sender: No OFD packet to send [12:48:58]*** Cut start [12:48:58]*** Partial cut [12:48:58]*** CUTSNS_PIN = 1 [12:48:58]*** CUTSNS_PIN = 0 [12:48:58]*** Brake cut motor [12:48:59]Read from MH i2c: 01 [12:48:59]MH_I2C_Read... [12:48:59]*** Stop cut motor [12:48:59]*** Cut end [12:48:59]Read from MH i2c: 01 07 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 5C 49 00 00 00 00 00 FF 0F BA [12:48:59]process_action close_receipt done [12:48:59]requested_data is exist [12:48:59]produce_requested_data [12:48:59]requested_item fm.sn is exist - process it [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 11 00 00 [12:48:59]Write to MH i2c: E2 08 00 5D 49 80 11 00 00 00 00 00 00 20 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 17 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 17 00 5D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [12:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:48:59]wFMCommunicate OK [12:48:59]requested_item fd.num is exist - process it [12:48:59]SAM_PROTO_GetFieldsCounters [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 13 00 00 [12:48:59]Write to MH i2c: E2 08 00 5E 49 80 13 00 00 00 00 00 00 23 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 62 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 62 00 5E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:59]wFMCommunicate OK [12:48:59]SAM_PROTO_GetFieldsCounters done [12:48:59]requested_item shift.num is exist - process it [12:48:59]requested_item shift.opened is exist - process it [12:48:59]req_shift_opened [12:48:59]FM_GetShiftState [12:48:59]SAM_PROTO_GetShiftState [12:48:59]wFMCommunicate request_size=4 [12:48:59]MH_SAM_APDU [12:48:59]CAPDU: 80 13 01 00 [12:48:59]Write to MH i2c: E2 08 00 5F 49 80 13 01 00 00 00 00 00 25 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:59]Read from MH i2c: E2 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 0E 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: E2 0E 00 5F 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A5 [12:48:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:48:59]wFMCommunicate OK [12:48:59]SAM_PROTO_GetShiftState done [12:48:59]FM_GetShiftState done [12:48:59]req_shift_opened done [12:48:59]requested_item shift.open_date is exist - process it [12:48:59]req_shift_open_date [12:48:59]req_shift_open_date done [12:48:59]produce_requested_data done [12:48:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140152,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:48:59]process_action_free close_receipt [12:48:59]json_value_free [12:48:59]json_value_free done [12:48:59]process_json_proto returns [12:48:59]Send response to host [12:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140152,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:48:59]free response buf [12:48:59]execute_script done [12:48:59]execute_script returns [12:48:59]free content buf [12:48:59]Sock 9.Close socket [12:48:59]Sock 9.Thread stoped [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]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:22]accept exits with 7 [12:50:22]New connection [12:50:22]New thread 3066764644 created [12:50:22]Thread 3066908004 joined [12:50:22]Waiting for new connection... [12:50:22] Sock 7.Parse request [12:50:22]Sock 7.Check first char [12:50:22]Sock 7.First char is OK [12:50:22]request: POST /json_proto HTTP/1.0 [12:50:22]Method: POST [12:50:22]URL: /json_proto [12:50:22]Method is POST - this is cgi request [12:50:22]url: /json_proto [12:50:22]query_string will be loaded in cgi processing [12:50:22]execute_cgi json_proto POST (null) [12:50:22]execute_cgi path=json_proto method=POST [12:50:22]POST find Content-Length [12:50:22]Host: 172.17.45.67:8080 [12:50:22]Content-Length: 687 [12:50:22]Content-Type: application/json [12:50:22] [12:50:22]POST finish read [12:50:22]Found Content-Length = 687 [12:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:22]execute_script... [12:50: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)594006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 61.680, "sum" : 4700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4700.00, "total" : 4700.00, "payments": [ { "type": 0, "sum" : 4700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:22]POST & json_proto [12:50:22]process_json_proto [12:50:22]json parsed OK: [12:50:22]protocol is kg_v1.0 [12:50:22]action value=close_receipt [12:50:22]process_action close_receipt [12:50:22]cmd_close_receipt [12:50:22]MH_GetDate [12:50:22]Write to MH i2c: F0 00 00 60 49 98 [12:50:22]Write i2c OK [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: F0 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: F0 09 00 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: F0 09 00 60 49 00 91 E2 C5 66 5F 7F 2B 66 AE [12:50:22]GetLastDocTimeStamp 1724244539 [12:50:22]current date 1724244625 [12:50:22]FM_GetShiftState [12:50:22]SAM_PROTO_GetShiftState [12:50:22]wFMCommunicate request_size=4 [12:50:22]MH_SAM_APDU [12:50:22]CAPDU: 80 13 01 00 [12:50:22]Write to MH i2c: E2 08 00 61 49 80 13 01 00 00 00 00 00 27 [12:50:22]Write i2c OK [12:50:22]MH_I2C_Read... [12:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:22]Read from MH i2c: E2 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 0E 00 [12:50:22]MH_I2C_Read... [12:50:22]Read from MH i2c: E2 0E 00 61 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [12:50:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:50:22]wFMCommunicate OK [12:50:22]SAM_PROTO_GetShiftState done [12:50:22]FM_GetShiftState done [12:50:22]opened in 1724200467 [12:50:22]opened+sec_in_day 1724286867 [12:50:22]quantity*price = 470001 [12:50:22]sum+1 = 470003 [12:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4700.00 Внесено: 4700.00 СДАЧА: 0.00 НСП 1% : 41.59 НДС 12% : 499.12 Наличными: 4700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 170 21.08.2024 12:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140153 ФПД: 234098348722428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125025&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140153&fm=234098348722428&tin=02508201610067®Number=0000000000092569&sum=470000 [12:50:23]StoreToDocumentArchive [12:50:23]shift 454 fd 140153 [12:50:23]save to /storage/0454/doc_00140153 [12:50:23]save last doc name /storage/0454/doc_00140153 to /storage/kkm_last_doc_name [12:50:23]save OK [12:50:23]Clear old archive folders... [12:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:50:23]tlvbuf is 00A070F0 [12:50:23]SAM_PROTO_ClearQueue [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 09 00 00 [12:50:23]Write to MH i2c: E2 08 00 6E 49 80 09 00 00 00 00 00 00 29 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 6E 49 00 90 00 2B [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]SAM_PROTO_ClearQueue done [12:50:23]KKMCreateOFDPacket [12:50:23]OFDProtocolAddRootSTLVToBuf [12:50:23]FM_MakeSignedData [12:50:23]FM_MakeSignedData [12:50:23]SAM_PROTO_SignData [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 01 02 [12:50:23]Write to MH i2c: E2 08 00 6F 49 80 0D 01 02 00 00 00 00 31 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 6F 49 00 90 00 2C [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]wFMCommunicate request_size=255 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 91 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 23 02 00 35 04 06 00 [12:50:23]Write to MH i2c: E2 02 01 70 49 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 91 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 23 02 00 35 04 06 00 00 00 5F [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 70 49 00 90 00 2D [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]wFMCommunicate request_size=11 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 02 02 06 D4 E9 44 EB 08 FC [12:50:23]Write to MH i2c: E2 0E 00 71 49 80 0D 02 02 06 00 D4 E9 44 EB 08 FC 00 00 30 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]OFD Sender: No OFD packet to send [12:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 03 00 71 49 00 90 00 2E [12:50:23]RAPDU: 90 00 [12:50:23]wFMCommunicate OK [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 0D 03 02 [12:50:23]Write to MH i2c: E2 08 00 72 49 80 0D 03 02 00 00 00 00 36 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 0B 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 0B 00 72 49 00 BB D2 86 71 59 20 84 FB 90 00 B3 [12:50:23]RAPDU: BB D2 86 71 59 20 84 FB 90 00 [12:50:23]wFMCommunicate OK [12:50:23]SAM_PROTO_SignData done [12:50:23]FM_MakeSignedData done [12:50:23]CreateOFDProtocolMessage [12:50:23]wFMCommunicate request_size=4 [12:50:23]MH_SAM_APDU [12:50:23]CAPDU: 80 11 00 00 [12:50:23]Write to MH i2c: E2 08 00 73 49 80 11 00 00 00 00 00 00 36 [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:23]Read from MH i2c: E2 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 17 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: E2 17 00 73 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8D [12:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:50:23]wFMCommunicate OK [12:50:23]CreateOFDProtocolMessage done [12:50:23]OFDSenderStorePacket 140153 [12:50:23]StoreOFDPacket docnum=140153 [12:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 3B D0 08 01 E3 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 91 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 23 02 00 35 04 06 00 D4 E9 44 EB 08 FC BB D2 86 71 59 20 84 FB [12:50:23]CheckFolder [12:50:23]dirname=/storage/ofd_packets [12:50:23]CheckFolder done [12:50:23]ProducePacketName [12:50:23]name=ofd_packets/00140153 [12:50:23]NVStorageSaveData ofd_packets/00140153 [12:50:23]File name is /storage/ofd_packets/00140153 [12:50:23]Write 302 bytes [12:50:23]NVStorageSaveData done [12:50:23]OFDSenderStorePacket done [12:50:23]KKMCreateOFDPacket done [12:50:23]NVStorageSaveData kkm_last_timestamp [12:50:23]File name is /storage/kkm_last_timestamp [12:50:23]Write 4 bytes [12:50:23]NVStorageSaveData done [12:50:23]ExternCall_PrintAddStr [12:50:23]wPrintStart [12:50:23]Write to MH i2c: 01 00 00 74 49 BD [12:50:23]Write i2c OK [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 [12:50:23]MH_I2C_Read... [12:50:23]Read from MH i2c: 01 07 00 74 49 00 00 00 00 00 FF 0F D2 [12:50:23]RasterBufferAndPrint [12:50:23]line Счет N : (1)594006 [12:50:23]line ИНН: 02508201610067 [12:50:23]line Контрольно-Кассовый Чек [12:50:23]line ПРОДАЖА [12:50:23]line ТРК (МРК, ГНК) : 64 [12:50:23]line Товар: 2710194210 [12:50:23]line ДТ(л)-К-5 [12:50:23]line 61.680 * 76.20 [12:50:23]line = 4700.02 [12:50:23]line НДС 12% НСП 1% [12:50:23]line > о реализуемом товаре [12:50:23]line ОКРУГЛЕНИЕ: -0.02 [12:50:23]line ИТОГО: 4700.00 [12:50:23]line Внесено: 4700.00 [12:50:23]line СДАЧА: 0.00 [12:50:23]line НСП 1% : 41.59 [12:50:23]line НДС 12% : 499.12 [12:50:23]line Наличными: 4700.00 [12:50:23]line Безнал.: 0.00 [12:50:23]line Место: АЗС № 136 "Партнер Нефть" [12:50:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:50:23]line СНО: Общий режим [12:50:23]line Чек 170 21.08.2024 12:50 [12:50:23]line Смена: 454 ФФД: 1.0 [12:50:23]line ЗНМ: 0300000067 [12:50:23]line РНМ: 0000000000092569 [12:50:23]line Версия ККМ: 001 [12:50:23]line ФМ: 0000000000871776 [12:50:23]line ФД: 140153 [12:50:23]line ФПД: 234098348722428 [12:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125025&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140153&fm=234098348722428&tin=02508201610067®Number=0000000000092569&sum=470000 [12:50:24]OFD Sender: Processing packet 140153 [packets to send 137, broken 136] [12:50:24]ProducePacketName [12:50:24]name=ofd_packets/00140153 [12:50:24]OFD Sender: To server: pG, [12:50:24]CommunicateWithHost lk.salyk.kg:30040 [12:50:24]ConnectInit lk.salyk.kg [12:50:24]written 0, free lines is 4095 [12:50:24]Connected sock=10 [12:50: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 37 36 10 01 00 00 3B D0 08 01 E3 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 F0 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F2 2B 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 2B 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 C2 00 00 00 00 07 04 06 00 F0 2B 07 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 91 E2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 23 02 00 35 04 06 00 D4 E9 44 EB 08 FC BB D2 86 71 59 20 84 FB [12:50: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 37 36 4F 00 00 00 66 AD 47 00 52 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 23 02 00 F4 03 04 00 22 89 C5 66 B6 04 01 00 00 BB 32 C7 31 3A AC 0A E1 [12:50:24]CommunicateWithHost err = 0 [12:50:24]CheckOFDResponse [12:50:24]1017 (14) - 77093643461234 [12:50:24]1041 (16) - 0000000000871776 [12:50:24]1040 (4) - 140153 [12:50:24]1012 (4) - 21.08.2024 06:28 [12:50:24]1206 (1) - 0 [12:50:24]OFD Sender: Remove packet 140153 [12:50:24]ProducePacketName [12:50:24]name=ofd_packets/00140153 [12:50:24]NVStorageDeleteData [12:50:24]Write to MH i2c: 01 00 00 9F 49 E8 [12:50:24]Write i2c OK [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: 01 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: 01 07 00 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: 01 07 00 9F 49 00 00 00 00 00 E4 0C DF [12:50:24]RasterBufferAndPrint [12:50:24]line [12:50:24]line [12:50:24]line [12:50:24]line [12:50:24]line [12:50:24]written 0, free lines is 3306 [12:50:24]MH_Cut [12:50:24]Write to MH i2c: D1 01 00 A6 49 01 C1 [12:50:24]Write i2c OK [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: D1 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: D1 01 00 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: D1 01 00 A6 49 00 C0 [12:50:24]Write to MH i2c: 01 00 00 A7 49 F0 [12:50:24]Write i2c OK [12:50:24]MH_I2C_Read... [12:50:25]OFD Sender: No OFD packet to send [12:50:25]*** Cut start [12:50:25]*** Partial cut [12:50:25]*** CUTSNS_PIN = 1 [12:50:25]*** CUTSNS_PIN = 0 [12:50:25]*** Brake cut motor [12:50:25]Read from MH i2c: 01 [12:50:25]MH_I2C_Read... [12:50:25]*** Stop cut motor [12:50:25]*** Cut end [12:50:25]Read from MH i2c: 01 07 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 A7 49 00 00 00 00 00 FF 0F 05 [12:50:25]process_action close_receipt done [12:50:25]requested_data is exist [12:50:25]produce_requested_data [12:50:25]requested_item fm.sn is exist - process it [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 11 00 00 [12:50:25]Write to MH i2c: E2 08 00 A8 49 80 11 00 00 00 00 00 00 6B [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 17 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 17 00 A8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [12:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:50:25]wFMCommunicate OK [12:50:25]requested_item fd.num is exist - process it [12:50:25]SAM_PROTO_GetFieldsCounters [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 13 00 00 [12:50:25]Write to MH i2c: E2 08 00 A9 49 80 13 00 00 00 00 00 00 6E [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 62 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 62 00 A9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:26]wFMCommunicate OK [12:50:26]SAM_PROTO_GetFieldsCounters done [12:50:26]requested_item shift.num is exist - process it [12:50:26]requested_item shift.opened is exist - process it [12:50:26]req_shift_opened [12:50:26]FM_GetShiftState [12:50:26]SAM_PROTO_GetShiftState [12:50:26]wFMCommunicate request_size=4 [12:50:26]MH_SAM_APDU [12:50:26]CAPDU: 80 13 01 00 [12:50:26]Write to MH i2c: E2 08 00 AA 49 80 13 01 00 00 00 00 00 70 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:26]Read from MH i2c: E2 0E 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 0E 00 AA 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F0 [12:50:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:50:26]wFMCommunicate OK [12:50:26]SAM_PROTO_GetShiftState done [12:50:26]FM_GetShiftState done [12:50:26]req_shift_opened done [12:50:26]requested_item shift.open_date is exist - process it [12:50:26]req_shift_open_date [12:50:26]req_shift_open_date done [12:50:26]produce_requested_data done [12:50:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140153,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:50:26]process_action_free close_receipt [12:50:26]json_value_free [12:50:26]json_value_free done [12:50:26]process_json_proto returns [12:50:26]Send response to host [12:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140153,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:50:26]free response buf [12:50:26]execute_script done [12:50:26]execute_script returns [12:50:26]free content buf [12:50:26]Sock 7.Close socket [12:50:26]Sock 7.Thread stoped [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:50]accept exits with 9 [12:52:50]New connection [12:52:50]New thread 3066908004 created [12:52:50]Thread 3066764644 joined [12:52:50]Waiting for new connection... [12:52:50] Sock 9.Parse request [12:52:50]Sock 9.Check first char [12:52:50]Sock 9.First char is OK [12:52:50]request: POST /json_proto HTTP/1.0 [12:52:50]Method: POST [12:52:50]URL: /json_proto [12:52:50]Method is POST - this is cgi request [12:52:50]url: /json_proto [12:52:50]query_string will be loaded in cgi processing [12:52:50]execute_cgi json_proto POST (null) [12:52:50]execute_cgi path=json_proto method=POST [12:52:50]POST find Content-Length [12:52:50]Host: 172.17.45.67:8080 [12:52:50]Content-Length: 677 [12:52:50]Content-Type: application/json [12:52:50] [12:52:50]POST finish read [12:52:50]Found Content-Length = 677 [12:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:50]execute_script... [12:52: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)594008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:50]POST & json_proto [12:52:50]process_json_proto [12:52:50]json parsed OK: [12:52:50]protocol is kg_v1.0 [12:52:50]action value=close_receipt [12:52:50]process_action close_receipt [12:52:50]cmd_close_receipt [12:52:50]MH_GetDate [12:52:50]Write to MH i2c: F0 00 00 AB 49 E3 [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 09 00 [12:52:50]MH_I2C_Read... [12:52:50]Read from MH i2c: F0 09 00 AB 49 00 26 E3 C5 66 5F 7F 2B 66 8F [12:52:50]GetLastDocTimeStamp 1724244625 [12:52:50]current date 1724244774 [12:52:50]FM_GetShiftState [12:52:50]SAM_PROTO_GetShiftState [12:52:50]wFMCommunicate request_size=4 [12:52:50]MH_SAM_APDU [12:52:50]CAPDU: 80 13 01 00 [12:52:50]Write to MH i2c: E2 08 00 AC 49 80 13 01 00 00 00 00 00 72 [12:52:50]Write i2c OK [12:52:50]MH_I2C_Read... [12:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:51]Read from MH i2c: E2 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 [12:52:51]MH_I2C_Read... [12:52:51]Read from MH i2c: E2 0E 00 AC 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F2 [12:52:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:52:51]wFMCommunicate OK [12:52:51]SAM_PROTO_GetShiftState done [12:52:51]FM_GetShiftState done [12:52:51]opened in 1724200467 [12:52:51]opened+sec_in_day 1724286867 [12:52:51]quantity*price = 35052 [12:52:51]sum+1 = 35054 [12:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 171 21.08.2024 12:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140154 ФПД: 255896227186878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125254&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140154&fm=255896227186878&tin=02508201610067®Number=0000000000092569&sum=35000 [12:52:52]StoreToDocumentArchive [12:52:52]shift 454 fd 140154 [12:52:52]save to /storage/0454/doc_00140154 [12:52:52]save last doc name /storage/0454/doc_00140154 to /storage/kkm_last_doc_name [12:52:52]save OK [12:52:52]Clear old archive folders... [12:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:52]tlvbuf is 00AEE2B0 [12:52:52]SAM_PROTO_ClearQueue [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 09 00 00 [12:52:52]Write to MH i2c: E2 08 00 B9 49 80 09 00 00 00 00 00 00 74 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 B9 49 00 90 00 76 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_ClearQueue done [12:52:52]KKMCreateOFDPacket [12:52:52]OFDProtocolAddRootSTLVToBuf [12:52:52]FM_MakeSignedData [12:52:52]FM_MakeSignedData [12:52:52]SAM_PROTO_SignData [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 0D 01 02 [12:52:52]Write to MH i2c: E2 08 00 BA 49 80 0D 01 02 00 00 00 00 7C [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 BA 49 00 90 00 77 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]wFMCommunicate request_size=255 [12:52:52]MH_SAM_APDU [12:52: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 AB 00 00 00 F4 03 04 00 26 E3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 23 02 00 35 04 06 00 E8 [12:52:52]Write to MH i2c: E2 02 01 BB 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 AB 00 00 00 F4 03 04 00 26 E3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 23 02 00 35 04 06 00 E8 00 00 5D [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 BB 49 00 90 00 78 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]wFMCommunicate request_size=10 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 0D 02 02 05 BC 7B B8 88 BE [12:52:52]Write to MH i2c: E2 0D 00 BC 49 80 0D 02 02 05 00 BC 7B B8 88 BE 00 00 BE [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 03 00 BC 49 00 90 00 79 [12:52:52]RAPDU: 90 00 [12:52:52]wFMCommunicate OK [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 0D 03 02 [12:52:52]Write to MH i2c: E2 08 00 BD 49 80 0D 03 02 00 00 00 00 81 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0B 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 0B 00 BD 49 00 FA 0D 95 36 EA F3 32 50 90 00 B3 [12:52:52]RAPDU: FA 0D 95 36 EA F3 32 50 90 00 [12:52:52]wFMCommunicate OK [12:52:52]SAM_PROTO_SignData done [12:52:52]FM_MakeSignedData done [12:52:52]CreateOFDProtocolMessage [12:52:52]wFMCommunicate request_size=4 [12:52:52]MH_SAM_APDU [12:52:52]CAPDU: 80 11 00 00 [12:52:52]Write to MH i2c: E2 08 00 BE 49 80 11 00 00 00 00 00 00 81 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:52]Read from MH i2c: E2 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 17 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: E2 17 00 BE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D8 [12:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:52]wFMCommunicate OK [12:52:52]CreateOFDProtocolMessage done [12:52:52]OFDSenderStorePacket 140154 [12:52:52]StoreOFDPacket docnum=140154 [12:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 A6 07 01 5F A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 AB 00 00 00 F4 03 04 00 26 E3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 23 02 00 35 04 06 00 E8 BC 7B B8 88 BE FA 0D 95 36 EA F3 32 50 [12:52:52]CheckFolder [12:52:52]dirname=/storage/ofd_packets [12:52:52]CheckFolder done [12:52:52]ProducePacketName [12:52:52]name=ofd_packets/00140154 [12:52:52]NVStorageSaveData ofd_packets/00140154 [12:52:52]File name is /storage/ofd_packets/00140154 [12:52:52]Write 301 bytes [12:52:52]NVStorageSaveData done [12:52:52]OFDSenderStorePacket done [12:52:52]KKMCreateOFDPacket done [12:52:52]NVStorageSaveData kkm_last_timestamp [12:52:52]File name is /storage/kkm_last_timestamp [12:52:52]Write 4 bytes [12:52:52]NVStorageSaveData done [12:52:52]ExternCall_PrintAddStr [12:52:52]wPrintStart [12:52:52]Write to MH i2c: 01 00 00 BF 49 08 [12:52:52]Write i2c OK [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 [12:52:52]MH_I2C_Read... [12:52:52]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 FF 0F 1D [12:52:52]RasterBufferAndPrint [12:52:52]line Счет N : (1)594008 [12:52:52]line ИНН: 02508201610067 [12:52:52]line Контрольно-Кассовый Чек [12:52:52]line ПРОДАЖА [12:52:52]line ТРК (МРК, ГНК) : 42 [12:52:52]line Товар: 2710124130 [12:52:52]line Аи-92-К-5 [12:52:52]line 5.170 * 67.80 [12:52:52]line = 350.53 [12:52:52]line НДС 12% НСП 1% [12:52:52]line > о реализуемом товаре [12:52:52]line ОКРУГЛЕНИЕ: -0.53 [12:52:52]line ИТОГО: 350.00 [12:52:52]line Внесено: 350.00 [12:52:52]line СДАЧА: 0.00 [12:52:52]line НСП 1% : 3.10 [12:52:52]line НДС 12% : 37.22 [12:52:52]line Наличными: 350.00 [12:52:52]line Безнал.: 0.00 [12:52:52]line Место: АЗС № 136 "Партнер Нефть" [12:52:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:52:52]line СНО: Общий режим [12:52:52]line Чек 171 21.08.2024 12:52 [12:52:52]line Смена: 454 ФФД: 1.0 [12:52:52]line ЗНМ: 0300000067 [12:52:52]line РНМ: 0000000000092569 [12:52:52]line Версия ККМ: 001 [12:52:52]line ФМ: 0000000000871776 [12:52:52]line ФД: 140154 [12:52:52]line ФПД: 255896227186878 [12:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125254&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140154&fm=255896227186878&tin=02508201610067®Number=0000000000092569&sum=35000 [12:52:53]written 0, free lines is 4095 [12:52:53]OFD Sender: Processing packet 140154 [packets to send 137, broken 136] [12:52:53]ProducePacketName [12:52:53]name=ofd_packets/00140154 [12:52:53]OFD Sender: To server: pG, [12:52:53]CommunicateWithHost lk.salyk.kg:30040 [12:52:53]ConnectInit lk.salyk.kg [12:52:53]Connected sock=11 [12:52: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 37 36 0F 01 00 00 52 A6 07 01 5F A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 AB 00 00 00 F4 03 04 00 26 E3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 23 02 00 35 04 06 00 E8 BC 7B B8 88 BE FA 0D 95 36 EA F3 32 50 [12:52:53]Write to MH i2c: 01 00 00 EA 49 33 [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: 01 07 00 EA 49 00 00 00 00 00 D4 0C 1A [12:52:53]RasterBufferAndPrint [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]line [12:52:53]written 0, free lines is 3292 [12:52: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 37 36 4F 00 00 00 4D 75 47 00 E4 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 37 36 10 04 04 00 7A 23 02 00 F4 03 04 00 B7 89 C5 66 B6 04 01 00 00 DD A1 73 23 F9 82 EE 6E [12:52:53]CommunicateWithHost err = 0 [12:52:53]CheckOFDResponse [12:52:53]1017 (14) - 77093643461234 [12:52:53]1041 (16) - 0000000000871776 [12:52:53]1040 (4) - 140154 [12:52:53]1012 (4) - 21.08.2024 06:31 [12:52:53]1206 (1) - 0 [12:52:53]OFD Sender: Remove packet 140154 [12:52:53]ProducePacketName [12:52:53]name=ofd_packets/00140154 [12:52:53]NVStorageDeleteData [12:52:53]MH_Cut [12:52:53]Write to MH i2c: D1 01 00 F1 49 01 0C [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 01 00 [12:52:53]MH_I2C_Read... [12:52:53]Read from MH i2c: D1 01 00 F1 49 00 0B [12:52:53]Write to MH i2c: 01 00 00 F2 49 3B [12:52:53]Write i2c OK [12:52:53]MH_I2C_Read... [12:52:54]OFD Sender: No OFD packet to send [12:52:54]*** Cut start [12:52:54]*** Partial cut [12:52:54]*** CUTSNS_PIN = 1 [12:52:54]*** CUTSNS_PIN = 0 [12:52:54]*** Brake cut motor [12:52:54]Read from MH i2c: 01 [12:52:54]MH_I2C_Read... [12:52:54]*** Stop cut motor [12:52:54]*** Cut end [12:52:54]Read from MH i2c: 01 07 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: 01 07 00 F2 49 00 00 00 00 00 FF 0F 50 [12:52:54]process_action close_receipt done [12:52:54]requested_data is exist [12:52:54]produce_requested_data [12:52:54]requested_item fm.sn is exist - process it [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 11 00 00 [12:52:54]Write to MH i2c: E2 08 00 F3 49 80 11 00 00 00 00 00 00 B6 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 17 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 17 00 F3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [12:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:52:54]wFMCommunicate OK [12:52:54]requested_item fd.num is exist - process it [12:52:54]SAM_PROTO_GetFieldsCounters [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 13 00 00 [12:52:54]Write to MH i2c: E2 08 00 F4 49 80 13 00 00 00 00 00 00 B9 [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:54]Read from MH i2c: E2 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 62 00 [12:52:54]MH_I2C_Read... [12:52:54]Read from MH i2c: E2 62 00 F4 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [12:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:54]wFMCommunicate OK [12:52:54]SAM_PROTO_GetFieldsCounters done [12:52:54]requested_item shift.num is exist - process it [12:52:54]requested_item shift.opened is exist - process it [12:52:54]req_shift_opened [12:52:54]FM_GetShiftState [12:52:54]SAM_PROTO_GetShiftState [12:52:54]wFMCommunicate request_size=4 [12:52:54]MH_SAM_APDU [12:52:54]CAPDU: 80 13 01 00 [12:52:54]Write to MH i2c: E2 08 00 F5 49 80 13 01 00 00 00 00 00 BB [12:52:54]Write i2c OK [12:52:54]MH_I2C_Read... [12:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:55]Read from MH i2c: E2 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0E 00 [12:52:55]MH_I2C_Read... [12:52:55]Read from MH i2c: E2 0E 00 F5 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3B [12:52:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:52:55]wFMCommunicate OK [12:52:55]SAM_PROTO_GetShiftState done [12:52:55]FM_GetShiftState done [12:52:55]req_shift_opened done [12:52:55]requested_item shift.open_date is exist - process it [12:52:55]req_shift_open_date [12:52:55]req_shift_open_date done [12:52:55]produce_requested_data done [12:52:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140154,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:52:55]process_action_free close_receipt [12:52:55]json_value_free [12:52:55]json_value_free done [12:52:55]process_json_proto returns [12:52:55]Send response to host [12:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140154,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:52:55]free response buf [12:52:55]execute_script done [12:52:55]execute_script returns [12:52:55]free content buf [12:52:55]Sock 9.Close socket [12:52:55]Sock 9.Thread stoped [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:45]accept exits with 7 [12:59:45]New connection [12:59:45]New thread 3066764644 created [12:59:45]Thread 3066908004 joined [12:59:45]Waiting for new connection... [12:59:45] Sock 7.Parse request [12:59:45]Sock 7.Check first char [12:59:45]Sock 7.First char is OK [12:59:45]request: POST /json_proto HTTP/1.0 [12:59:45]Method: POST [12:59:45]URL: /json_proto [12:59:45]Method is POST - this is cgi request [12:59:45]url: /json_proto [12:59:45]query_string will be loaded in cgi processing [12:59:45]execute_cgi json_proto POST (null) [12:59:45]execute_cgi path=json_proto method=POST [12:59:45]POST find Content-Length [12:59:45]Host: 172.17.45.67:8080 [12:59:45]Content-Length: 682 [12:59:45]Content-Type: application/json [12:59:45] [12:59:45]POST finish read [12:59:45]Found Content-Length = 682 [12:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:45]execute_script... [12:59: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)594009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:45]POST & json_proto [12:59:45]process_json_proto [12:59:45]json parsed OK: [12:59:45]protocol is kg_v1.0 [12:59:45]action value=close_receipt [12:59:45]process_action close_receipt [12:59:45]cmd_close_receipt [12:59:45]MH_GetDate [12:59:45]Write to MH i2c: F0 00 00 F6 49 2E [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: F0 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: F0 09 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: F0 09 00 F6 49 00 C5 E4 C5 66 5F 7F 2B 66 7A [12:59:45]GetLastDocTimeStamp 1724244774 [12:59:45]current date 1724245189 [12:59:45]FM_GetShiftState [12:59:45]SAM_PROTO_GetShiftState [12:59:45]wFMCommunicate request_size=4 [12:59:45]MH_SAM_APDU [12:59:45]CAPDU: 80 13 01 00 [12:59:45]Write to MH i2c: E2 08 00 F7 49 80 13 01 00 00 00 00 00 BD [12:59:45]Write i2c OK [12:59:45]MH_I2C_Read... [12:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:45]Read from MH i2c: E2 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 0E 00 [12:59:45]MH_I2C_Read... [12:59:45]Read from MH i2c: E2 0E 00 F7 49 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3D [12:59:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:59:45]wFMCommunicate OK [12:59:45]SAM_PROTO_GetShiftState done [12:59:45]FM_GetShiftState done [12:59:45]opened in 1724200467 [12:59:45]opened+sec_in_day 1724286867 [12:59:45]quantity*price = 100005 [12:59:45]sum+1 = 100006 [12:59:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 172 21.08.2024 12:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140155 ФПД: 260301025409273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140155&fm=260301025409273&tin=02508201610067®Number=0000000000092569&sum=100000 [12:59:47]StoreToDocumentArchive [12:59:47]shift 454 fd 140155 [12:59:47]save to /storage/0454/doc_00140155 [12:59:47]save last doc name /storage/0454/doc_00140155 to /storage/kkm_last_doc_name [12:59:47]save OK [12:59:47]Clear old archive folders... [12:59:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:47]tlvbuf is 00AA3BE0 [12:59:47]SAM_PROTO_ClearQueue [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 09 00 00 [12:59:47]Write to MH i2c: E2 08 00 04 4A 80 09 00 00 00 00 00 00 C0 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 04 4A 00 90 00 C2 [12:59:47]RAPDU: 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_ClearQueue done [12:59:47]KKMCreateOFDPacket [12:59:47]OFDProtocolAddRootSTLVToBuf [12:59:47]FM_MakeSignedData [12:59:47]FM_MakeSignedData [12:59:47]SAM_PROTO_SignData [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 0D 01 02 [12:59:47]Write to MH i2c: E2 08 00 05 4A 80 0D 01 02 00 00 00 00 C8 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 05 4A 00 90 00 C3 [12:59:47]RAPDU: 90 00 [12:59:47]wFMCommunicate OK [12:59:47]wFMCommunicate request_size=255 [12:59:47]MH_SAM_APDU [12:59: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C5 E4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 23 02 00 35 04 06 00 EC [12:59:47]Write to MH i2c: E2 02 01 06 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C5 E4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 23 02 00 35 04 06 00 EC 00 00 B3 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 06 4A 00 90 00 C4 [12:59:47]RAPDU: 90 00 [12:59:47]wFMCommunicate OK [12:59:47]wFMCommunicate request_size=10 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 0D 02 02 05 BE 0E 27 78 F9 [12:59:47]Write to MH i2c: E2 0D 00 07 4A 80 0D 02 02 05 00 BE 0E 27 78 F9 00 00 39 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 03 00 07 4A 00 90 00 C5 [12:59:47]RAPDU: 90 00 [12:59:47]wFMCommunicate OK [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 0D 03 02 [12:59:47]Write to MH i2c: E2 08 00 08 4A 80 0D 03 02 00 00 00 00 CD [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0B 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 0B 00 08 4A 00 79 F0 94 CD 50 81 8B F3 90 00 E7 [12:59:47]RAPDU: 79 F0 94 CD 50 81 8B F3 90 00 [12:59:47]wFMCommunicate OK [12:59:47]SAM_PROTO_SignData done [12:59:47]FM_MakeSignedData done [12:59:47]CreateOFDProtocolMessage [12:59:47]wFMCommunicate request_size=4 [12:59:47]MH_SAM_APDU [12:59:47]CAPDU: 80 11 00 00 [12:59:47]Write to MH i2c: E2 08 00 09 4A 80 11 00 00 00 00 00 00 CD [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:47]Read from MH i2c: E2 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: E2 17 00 09 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [12:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:59:47]wFMCommunicate OK [12:59:47]CreateOFDProtocolMessage done [12:59:47]OFDSenderStorePacket 140155 [12:59:47]StoreOFDPacket docnum=140155 [12:59:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2C BE 07 01 D4 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C5 E4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 23 02 00 35 04 06 00 EC BE 0E 27 78 F9 79 F0 94 CD 50 81 8B F3 [12:59:47]CheckFolder [12:59:47]dirname=/storage/ofd_packets [12:59:47]CheckFolder done [12:59:47]ProducePacketName [12:59:47]name=ofd_packets/00140155 [12:59:47]NVStorageSaveData ofd_packets/00140155 [12:59:47]File name is /storage/ofd_packets/00140155 [12:59:47]Write 301 bytes [12:59:47]NVStorageSaveData done [12:59:47]OFDSenderStorePacket done [12:59:47]KKMCreateOFDPacket done [12:59:47]NVStorageSaveData kkm_last_timestamp [12:59:47]File name is /storage/kkm_last_timestamp [12:59:47]Write 4 bytes [12:59:47]NVStorageSaveData done [12:59:47]ExternCall_PrintAddStr [12:59:47]wPrintStart [12:59:47]Write to MH i2c: 01 00 00 0A 4A 54 [12:59:47]Write i2c OK [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 07 00 [12:59:47]MH_I2C_Read... [12:59:47]Read from MH i2c: 01 07 00 0A 4A 00 00 00 00 00 FF 0F 69 [12:59:47]RasterBufferAndPrint [12:59:47]line Счет N : (1)594009 [12:59:47]line ИНН: 02508201610067 [12:59:47]line Контрольно-Кассовый Чек [12:59:47]line ПРОДАЖА [12:59:47]line ТРК (МРК, ГНК) : 52 [12:59:47]line Товар: 2710124130 [12:59:47]line Аи-92-К-5 [12:59:47]line 14.750 * 67.80 [12:59:47]line = 1000.05 [12:59:47]line НДС 12% НСП 1% [12:59:47]line > о реализуемом товаре [12:59:47]line ОКРУГЛЕНИЕ: -0.05 [12:59:47]line ИТОГО: 1000.00 [12:59:47]line Внесено: 1000.00 [12:59:47]line СДАЧА: 0.00 [12:59:47]line НСП 1% : 8.85 [12:59:47]line НДС 12% : 106.20 [12:59:47]line Наличными: 1000.00 [12:59:47]line Безнал.: 0.00 [12:59:47]line Место: АЗС № 136 "Партнер Нефть" [12:59:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [12:59:47]line СНО: Общий режим [12:59:47]line Чек 172 21.08.2024 12:59 [12:59:47]line Смена: 454 ФФД: 1.0 [12:59:47]line ЗНМ: 0300000067 [12:59:47]line РНМ: 0000000000092569 [12:59:47]line Версия ККМ: 001 [12:59:47]line ФМ: 0000000000871776 [12:59:47]line ФД: 140155 [12:59:47]line ФПД: 260301025409273 [12:59:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T125949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140155&fm=260301025409273&tin=02508201610067®Number=0000000000092569&sum=100000 [12:59:47]OFD Sender: Processing packet 140155 [packets to send 137, broken 136] [12:59:47]ProducePacketName [12:59:47]name=ofd_packets/00140155 [12:59:47]OFD Sender: To server: pG, [12:59:47]CommunicateWithHost lk.salyk.kg:30040 [12:59:47]ConnectInit lk.salyk.kg [12:59:47]written 0, free lines is 4095 [12:59:48]Connected sock=9 [12:59: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 37 36 0F 01 00 00 2C BE 07 01 D4 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 C5 E4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 23 02 00 35 04 06 00 EC BE 0E 27 78 F9 79 F0 94 CD 50 81 8B F3 [12:59: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 37 36 4F 00 00 00 84 EF 47 00 15 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 37 36 10 04 04 00 7B 23 02 00 F4 03 04 00 56 8B C5 66 B6 04 01 00 00 6F 8E F6 19 E7 D9 93 A0 [12:59:48]CommunicateWithHost err = 0 [12:59:48]CheckOFDResponse [12:59:48]1017 (14) - 77093643461234 [12:59:48]1041 (16) - 0000000000871776 [12:59:48]1040 (4) - 140155 [12:59:48]1012 (4) - 21.08.2024 06:38 [12:59:48]1206 (1) - 0 [12:59:48]OFD Sender: Remove packet 140155 [12:59:48]ProducePacketName [12:59:48]name=ofd_packets/00140155 [12:59:48]NVStorageDeleteData [12:59:48]Write to MH i2c: 01 00 00 35 4A 7F [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: 01 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: 01 07 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: 01 07 00 35 4A 00 00 00 00 00 CD 0C 5F [12:59:48]RasterBufferAndPrint [12:59:48]line [12:59:48]line [12:59:48]line [12:59:48]line [12:59:48]line [12:59:48]written 0, free lines is 3284 [12:59:48]MH_Cut [12:59:48]Write to MH i2c: D1 01 00 3C 4A 01 58 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: D1 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: D1 01 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: D1 01 00 3C 4A 00 57 [12:59:48]Write to MH i2c: 01 00 00 3D 4A 87 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]OFD Sender: No OFD packet to send [12:59:49]*** Cut start [12:59:49]*** Partial cut [12:59:49]*** CUTSNS_PIN = 1 [12:59:49]*** CUTSNS_PIN = 0 [12:59:49]*** Brake cut motor [12:59:49]Read from MH i2c: 01 [12:59:49]MH_I2C_Read... [12:59:49]*** Stop cut motor [12:59:49]*** Cut end [12:59:49]Read from MH i2c: 01 07 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: 01 07 00 3D 4A 00 00 00 00 00 FF 0F 9C [12:59:49]process_action close_receipt done [12:59:49]requested_data is exist [12:59:49]produce_requested_data [12:59:49]requested_item fm.sn is exist - process it [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 11 00 00 [12:59:49]Write to MH i2c: E2 08 00 3E 4A 80 11 00 00 00 00 00 00 02 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 17 00 3E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 59 [12:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [12:59:49]wFMCommunicate OK [12:59:49]requested_item fd.num is exist - process it [12:59:49]SAM_PROTO_GetFieldsCounters [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 13 00 00 [12:59:49]Write to MH i2c: E2 08 00 3F 4A 80 13 00 00 00 00 00 00 05 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 62 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 62 00 3F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:59:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:49]wFMCommunicate OK [12:59:49]SAM_PROTO_GetFieldsCounters done [12:59:49]requested_item shift.num is exist - process it [12:59:49]requested_item shift.opened is exist - process it [12:59:49]req_shift_opened [12:59:49]FM_GetShiftState [12:59:49]SAM_PROTO_GetShiftState [12:59:49]wFMCommunicate request_size=4 [12:59:49]MH_SAM_APDU [12:59:49]CAPDU: 80 13 01 00 [12:59:49]Write to MH i2c: E2 08 00 40 4A 80 13 01 00 00 00 00 00 07 [12:59:49]Write i2c OK [12:59:49]MH_I2C_Read... [12:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:49]Read from MH i2c: E2 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0E 00 [12:59:49]MH_I2C_Read... [12:59:49]Read from MH i2c: E2 0E 00 40 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 87 [12:59:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [12:59:49]wFMCommunicate OK [12:59:49]SAM_PROTO_GetShiftState done [12:59:49]FM_GetShiftState done [12:59:49]req_shift_opened done [12:59:49]requested_item shift.open_date is exist - process it [12:59:49]req_shift_open_date [12:59:49]req_shift_open_date done [12:59:49]produce_requested_data done [12:59:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140155,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [12:59:49]process_action_free close_receipt [12:59:49]json_value_free [12:59:49]json_value_free done [12:59:49]process_json_proto returns [12:59:49]Send response to host [12:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140155,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [12:59:49]free response buf [12:59:49]execute_script done [12:59:49]execute_script returns [12:59:49]free content buf [12:59:49]Sock 7.Close socket [12:59:49]Sock 7.Thread stoped [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:58]accept exits with 10 [13:02:58]New connection [13:02:58]New thread 3066908004 created [13:02:58]Thread 3066764644 joined [13:02:58]Waiting for new connection... [13:02:58] Sock 10.Parse request [13:02:58]Sock 10.Check first char [13:02:58]Sock 10.First char is OK [13:02:58]request: POST /json_proto HTTP/1.0 [13:02:58]Method: POST [13:02:58]URL: /json_proto [13:02:58]Method is POST - this is cgi request [13:02:58]url: /json_proto [13:02:58]query_string will be loaded in cgi processing [13:02:58]execute_cgi json_proto POST (null) [13:02:58]execute_cgi path=json_proto method=POST [13:02:58]POST find Content-Length [13:02:58]Host: 172.17.45.67:8080 [13:02:58]Content-Length: 677 [13:02:58]Content-Type: application/json [13:02:58] [13:02:58]POST finish read [13:02:58]Found Content-Length = 677 [13:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:58]execute_script... [13: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)594010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:58]POST & json_proto [13:02:58]process_json_proto [13:02:58]json parsed OK: [13:02:58]protocol is kg_v1.0 [13:02:58]action value=close_receipt [13:02:58]process_action close_receipt [13:02:58]cmd_close_receipt [13:02:58]MH_GetDate [13:02:58]Write to MH i2c: F0 00 00 41 4A 7A [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 41 4A 00 86 E5 C5 66 5F 7F 2B 66 88 [13:02:58]GetLastDocTimeStamp 1724245189 [13:02:58]current date 1724245382 [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 42 4A 80 13 01 00 00 00 00 00 09 [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 42 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 89 [13:02:58]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [13:02:58]opened+sec_in_day 1724286867 [13:02:58]quantity*price = 40002 [13:02:58]sum+1 = 40003 [13:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 173 21.08.2024 13:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140156 ФПД: 179132704832041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140156&fm=179132704832041&tin=02508201610067®Number=0000000000092569&sum=40000 [13:03:00]StoreToDocumentArchive [13:03:00]shift 454 fd 140156 [13:03:00]save to /storage/0454/doc_00140156 [13:03:00]save last doc name /storage/0454/doc_00140156 to /storage/kkm_last_doc_name [13:03:00]save OK [13:03:00]Clear old archive folders... [13:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:00]tlvbuf is 00AA3BE0 [13:03:00]SAM_PROTO_ClearQueue [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 09 00 00 [13:03:00]Write to MH i2c: E2 08 00 4F 4A 80 09 00 00 00 00 00 00 0B [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 4F 4A 00 90 00 0D [13:03:00]RAPDU: 90 00 [13:03:00]wFMCommunicate OK [13:03:00]SAM_PROTO_ClearQueue done [13:03:00]KKMCreateOFDPacket [13:03:00]OFDProtocolAddRootSTLVToBuf [13:03:00]FM_MakeSignedData [13:03:00]FM_MakeSignedData [13:03:00]SAM_PROTO_SignData [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 0D 01 02 [13:03:00]Write to MH i2c: E2 08 00 50 4A 80 0D 01 02 00 00 00 00 13 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 50 4A 00 90 00 0E [13:03:00]RAPDU: 90 00 [13:03:00]wFMCommunicate OK [13:03:00]wFMCommunicate request_size=255 [13:03:00]MH_SAM_APDU [13: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 86 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 23 02 00 35 04 06 00 A2 [13:03:00]Write to MH i2c: E2 02 01 51 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 86 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 23 02 00 35 04 06 00 A2 00 00 CE [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 51 4A 00 90 00 0F [13:03:00]RAPDU: 90 00 [13:03:00]wFMCommunicate OK [13:03:00]wFMCommunicate request_size=10 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 0D 02 02 05 EB 95 3D 3A 29 [13:03:00]Write to MH i2c: E2 0D 00 52 4A 80 0D 02 02 05 00 EB 95 3D 3A 29 00 00 40 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 52 4A 00 90 00 10 [13:03:00]RAPDU: 90 00 [13:03:00]wFMCommunicate OK [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 0D 03 02 [13:03:00]Write to MH i2c: E2 08 00 53 4A 80 0D 03 02 00 00 00 00 18 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0B 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0B 00 53 4A 00 08 0D 67 A9 39 4C F6 AE 90 00 67 [13:03:00]RAPDU: 08 0D 67 A9 39 4C F6 AE 90 00 [13:03:00]wFMCommunicate OK [13:03:00]SAM_PROTO_SignData done [13:03:00]FM_MakeSignedData done [13:03:00]CreateOFDProtocolMessage [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 11 00 00 [13:03:00]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 17 00 [13:03:00]MH_I2C_Read... [13:03:00]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 37 36 90 00 6F [13:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:03:00]wFMCommunicate OK [13:03:00]CreateOFDProtocolMessage done [13:03:00]OFDSenderStorePacket 140156 [13:03:00]StoreOFDPacket docnum=140156 [13:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 DF 07 01 69 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 86 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 23 02 00 35 04 06 00 A2 EB 95 3D 3A 29 08 0D 67 A9 39 4C F6 AE [13:03:00]CheckFolder [13:03:00]dirname=/storage/ofd_packets [13:03:00]CheckFolder done [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00140156 [13:03:00]NVStorageSaveData ofd_packets/00140156 [13:03:00]File name is /storage/ofd_packets/00140156 [13:03:00]Write 301 bytes [13:03:00]NVStorageSaveData done [13:03:00]OFDSenderStorePacket done [13:03:00]KKMCreateOFDPacket done [13:03:00]NVStorageSaveData kkm_last_timestamp [13:03:00]File name is /storage/kkm_last_timestamp [13:03:00]Write 4 bytes [13:03:00]NVStorageSaveData done [13:03:00]ExternCall_PrintAddStr [13:03:00]wPrintStart [13:03:00]Write to MH i2c: 01 00 00 55 4A 9F [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 55 4A 00 00 00 00 00 FF 0F B4 [13:03:00]RasterBufferAndPrint [13:03:00]line Счет N : (1)594010 [13:03:00]line ИНН: 02508201610067 [13:03:00]line Контрольно-Кассовый Чек [13:03:00]line ПРОДАЖА [13:03:00]line ТРК (МРК, ГНК) : 32 [13:03:00]line Товар: 2710124130 [13:03:00]line Аи-92-К-5 [13:03:00]line 5.900 * 67.80 [13:03:00]line = 400.02 [13:03:00]line НДС 12% НСП 1% [13:03:00]line > о реализуемом товаре [13:03:00]line ОКРУГЛЕНИЕ: -0.02 [13:03:00]line ИТОГО: 400.00 [13:03:00]line Внесено: 400.00 [13:03:00]line СДАЧА: 0.00 [13:03:00]line НСП 1% : 3.54 [13:03:00]line НДС 12% : 42.48 [13:03:00]line Наличными: 400.00 [13:03:00]line Безнал.: 0.00 [13:03:00]line Место: АЗС № 136 "Партнер Нефть" [13:03:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:03:00]line СНО: Общий режим [13:03:00]line Чек 173 21.08.2024 13:03 [13:03:00]line Смена: 454 ФФД: 1.0 [13:03:00]line ЗНМ: 0300000067 [13:03:00]line РНМ: 0000000000092569 [13:03:00]line Версия ККМ: 001 [13:03:00]line ФМ: 0000000000871776 [13:03:00]line ФД: 140156 [13:03:00]line ФПД: 179132704832041 [13:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140156&fm=179132704832041&tin=02508201610067®Number=0000000000092569&sum=40000 [13:03:00]written 0, free lines is 4095 [13:03:00]OFD Sender: Processing packet 140156 [packets to send 137, broken 136] [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00140156 [13:03:00]OFD Sender: To server: pG, [13:03:00]CommunicateWithHost lk.salyk.kg:30040 [13:03:00]ConnectInit lk.salyk.kg [13:03:01]Connected sock=7 [13:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 DF 07 01 69 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 86 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 23 02 00 35 04 06 00 A2 EB 95 3D 3A 29 08 0D 67 A9 39 4C F6 AE [13:03:01]Write to MH i2c: 01 00 00 80 4A CA [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: 01 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: 01 07 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: 01 07 00 80 4A 00 00 00 00 00 D2 0C AF [13:03:01]RasterBufferAndPrint [13:03:01]line [13:03:01]line [13:03:01]line [13:03:01]line [13:03:01]line [13:03:01]written 0, free lines is 3289 [13:03:01]MH_Cut [13:03:01]Write to MH i2c: D1 01 00 87 4A 01 A3 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: D1 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: D1 01 00 [13:03:01]MH_I2C_Read... [13:03:01]Read from MH i2c: D1 01 00 87 4A 00 A2 [13:03:01]Write to MH i2c: 01 00 00 88 4A D2 [13:03:01]Write i2c OK [13:03:01]MH_I2C_Read... [13: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 37 36 4F 00 00 00 4C DD 47 00 BB 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 37 36 10 04 04 00 7C 23 02 00 F4 03 04 00 17 8C C5 66 B6 04 01 00 00 34 5F 87 03 8B 76 95 16 [13:03:01]CommunicateWithHost err = 0 [13:03:01]CheckOFDResponse [13:03:01]1017 (14) - 77093643461234 [13:03:01]1041 (16) - 0000000000871776 [13:03:01]1040 (4) - 140156 [13:03:01]1012 (4) - 21.08.2024 06:41 [13:03:01]1206 (1) - 0 [13:03:01]OFD Sender: Remove packet 140156 [13:03:01]ProducePacketName [13:03:01]name=ofd_packets/00140156 [13:03:01]NVStorageDeleteData [13:03:01]OFD Sender: No OFD packet to send [13:03:02]*** Cut start [13:03:02]*** Partial cut [13:03:02]*** CUTSNS_PIN = 1 [13:03:02]*** CUTSNS_PIN = 0 [13:03:02]*** Brake cut motor [13:03:02]Read from MH i2c: 01 [13:03:02]MH_I2C_Read... [13:03:02]*** Stop cut motor [13:03:02]*** Cut end [13:03:02]Read from MH i2c: 01 07 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: 01 07 00 88 4A 00 00 00 00 00 FF 0F E7 [13:03:02]process_action close_receipt done [13:03:02]requested_data is exist [13:03:02]produce_requested_data [13:03:02]requested_item fm.sn is exist - process it [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 11 00 00 [13:03:02]Write to MH i2c: E2 08 00 89 4A 80 11 00 00 00 00 00 00 4D [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 17 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 17 00 89 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [13:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:03:02]wFMCommunicate OK [13:03:02]requested_item fd.num is exist - process it [13:03:02]SAM_PROTO_GetFieldsCounters [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 00 00 [13:03:02]Write to MH i2c: E2 08 00 8A 4A 80 13 00 00 00 00 00 00 50 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 62 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 62 00 8A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [13:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetFieldsCounters done [13:03:02]requested_item shift.num is exist - process it [13:03:02]requested_item shift.opened is exist - process it [13:03:02]req_shift_opened [13:03:02]FM_GetShiftState [13:03:02]SAM_PROTO_GetShiftState [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 01 00 [13:03:02]Write to MH i2c: E2 08 00 8B 4A 80 13 01 00 00 00 00 00 52 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 8B 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D2 [13:03:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetShiftState done [13:03:02]FM_GetShiftState done [13:03:02]req_shift_opened done [13:03:02]requested_item shift.open_date is exist - process it [13:03:02]req_shift_open_date [13:03:02]req_shift_open_date done [13:03:02]produce_requested_data done [13:03:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140156,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:03:02]process_action_free close_receipt [13:03:02]json_value_free [13:03:02]json_value_free done [13:03:02]process_json_proto returns [13:03:02]Send response to host [13:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140156,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:03:02]free response buf [13:03:02]execute_script done [13:03:02]execute_script returns [13:03:02]free content buf [13:03:02]Sock 10.Close socket [13:03:02]Sock 10.Thread stoped [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:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:44]accept exits with 9 [13:04:44]New connection [13:04:44]New thread 3066764644 created [13:04:44]Thread 3066908004 joined [13:04:44]Waiting for new connection... [13:04:44] Sock 9.Parse request [13:04:44]Sock 9.Check first char [13:04:44]Sock 9.First char is OK [13:04:44]request: POST /json_proto HTTP/1.0 [13:04:44]Method: POST [13:04:44]URL: /json_proto [13:04:44]Method is POST - this is cgi request [13:04:44]url: /json_proto [13:04:44]query_string will be loaded in cgi processing [13:04:44]execute_cgi json_proto POST (null) [13:04:44]execute_cgi path=json_proto method=POST [13:04:44]POST find Content-Length [13:04:44]Host: 172.17.45.67:8080 [13:04:44]Content-Length: 834 [13:04:44]Content-Type: application/json [13:04:44] [13:04:44]POST finish read [13:04:44]Found Content-Length = 834 [13:04:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]execute_script... [13:04: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)594011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:44]POST & json_proto [13:04:44]process_json_proto [13:04:44]json parsed OK: [13:04:44]protocol is kg_v1.0 [13:04:44]action value=close_receipt [13:04:44]process_action close_receipt [13:04:44]cmd_close_receipt [13:04:44]MH_GetDate [13:04:44]Write to MH i2c: F0 00 00 8C 4A C5 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: F0 09 00 8C 4A 00 F0 E5 C5 66 5F 7F 2B 66 3D [13:04:44]GetLastDocTimeStamp 1724245382 [13:04:44]current date 1724245488 [13:04:44]FM_GetShiftState [13:04:44]SAM_PROTO_GetShiftState [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 01 00 [13:04:44]Write to MH i2c: E2 08 00 8D 4A 80 13 01 00 00 00 00 00 54 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 8D 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D4 [13:04:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetShiftState done [13:04:44]FM_GetShiftState done [13:04:44]opened in 1724200467 [13:04:44]opened+sec_in_day 1724286867 [13:04:44]quantity*price = 30035 [13:04:44]sum+1 = 30036 [13:04:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 174 21.08.2024 13:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140157 ФПД: 130517681116761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140157&fm=130517681116761&tin=02508201610067®Number=0000000000092569&sum=30000 [13:04:46]StoreToDocumentArchive [13:04:46]shift 454 fd 140157 [13:04:46]save to /storage/0454/doc_00140157 [13:04:46]save last doc name /storage/0454/doc_00140157 to /storage/kkm_last_doc_name [13:04:46]save OK [13:04:46]Clear old archive folders... [13:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:46]tlvbuf is 00051440 [13:04:46]SAM_PROTO_ClearQueue [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 09 00 00 [13:04:46]Write to MH i2c: E2 08 00 9A 4A 80 09 00 00 00 00 00 00 56 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 9A 4A 00 90 00 58 [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_ClearQueue done [13:04:46]KKMCreateOFDPacket [13:04:46]OFDProtocolAddRootSTLVToBuf [13:04:46]FM_MakeSignedData [13:04:46]FM_MakeSignedData [13:04:46]SAM_PROTO_SignData [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 0D 01 02 [13:04:46]Write to MH i2c: E2 08 00 9B 4A 80 0D 01 02 00 00 00 00 5E [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 9B 4A 00 90 00 59 [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]wFMCommunicate request_size=255 [13:04:46]MH_SAM_APDU [13:04: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F0 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 23 02 00 35 04 06 00 76 [13:04:46]Write to MH i2c: E2 02 01 9C 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F0 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 23 02 00 35 04 06 00 76 00 00 93 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 9C 4A 00 90 00 5A [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]wFMCommunicate request_size=10 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 0D 02 02 05 B4 84 05 16 59 [13:04:46]Write to MH i2c: E2 0D 00 9D 4A 80 0D 02 02 05 00 B4 84 05 16 59 00 00 17 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 03 00 9D 4A 00 90 00 5B [13:04:46]RAPDU: 90 00 [13:04:46]wFMCommunicate OK [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 0D 03 02 [13:04:46]Write to MH i2c: E2 08 00 9E 4A 80 0D 03 02 00 00 00 00 63 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0B 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0B 00 9E 4A 00 93 DA 1B 6D F0 BD 70 0D 90 00 83 [13:04:46]RAPDU: 93 DA 1B 6D F0 BD 70 0D 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_SignData done [13:04:46]FM_MakeSignedData done [13:04:46]CreateOFDProtocolMessage [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 11 00 00 [13:04:46]Write to MH i2c: E2 08 00 9F 4A 80 11 00 00 00 00 00 00 63 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 [13:04:46]MH_I2C_Read... [13:04:46]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 37 36 90 00 BA [13:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:04:46]wFMCommunicate OK [13:04:46]CreateOFDProtocolMessage done [13:04:46]OFDSenderStorePacket 140157 [13:04:46]StoreOFDPacket docnum=140157 [13:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 80 07 01 BC D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F0 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 23 02 00 35 04 06 00 76 B4 84 05 16 59 93 DA 1B 6D F0 BD 70 0D [13:04:46]CheckFolder [13:04:46]dirname=/storage/ofd_packets [13:04:46]CheckFolder done [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00140157 [13:04:46]NVStorageSaveData ofd_packets/00140157 [13:04:46]File name is /storage/ofd_packets/00140157 [13:04:46]Write 301 bytes [13:04:46]NVStorageSaveData done [13:04:46]OFDSenderStorePacket done [13:04:46]KKMCreateOFDPacket done [13:04:46]NVStorageSaveData kkm_last_timestamp [13:04:46]File name is /storage/kkm_last_timestamp [13:04:46]Write 4 bytes [13:04:46]NVStorageSaveData done [13:04:46]ExternCall_PrintAddStr [13:04:46]wPrintStart [13:04:46]Write to MH i2c: 01 00 00 A0 4A EA [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 A0 4A 00 00 00 00 00 FF 0F FF [13:04:46]RasterBufferAndPrint [13:04:46]line Счет N : (1)594011 [13:04:46]line ИНН: 02508201610067 [13:04:46]line Контрольно-Кассовый Чек [13:04:46]line ПРОДАЖА [13:04:46]line ТРК (МРК, ГНК) : 52 [13:04:46]line Товар: 2710124130 [13:04:46]line Аи-92-К-5 [13:04:46]line 4.430 * 67.80 [13:04:46]line = 300.35 [13:04:46]line НДС 12% НСП 1% [13:04:46]line > о реализуемом товаре [13:04:46]line ОКРУГЛЕНИЕ: -0.35 [13:04:46]line ИТОГО: 300.00 [13:04:46]line НСП 1% : 2.66 [13:04:46]line НДС 12% : 31.90 [13:04:46]line Наличными: 0.00 [13:04:46]line Безнал.: 300.00 [13:04:46]line Место: АЗС № 136 "Партнер Нефть" [13:04:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:04:46]line СНО: Общий режим [13:04:46]line Чек 174 21.08.2024 13:04 [13:04:46]line Смена: 454 ФФД: 1.0 [13:04:46]line ЗНМ: 0300000067 [13:04:46]line РНМ: 0000000000092569 [13:04:46]line Версия ККМ: 001 [13:04:46]line Платежная система: Бакай Банк [13:04:46]line ФМ: 0000000000871776 [13:04:46]line ФД: 140157 [13:04:46]line ФПД: 130517681116761 [13:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130448&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140157&fm=130517681116761&tin=02508201610067®Number=0000000000092569&sum=30000 [13:04:46]OFD Sender: Processing packet 140157 [packets to send 137, broken 136] [13:04:46]ProducePacketName [13:04:46]name=ofd_packets/00140157 [13:04:46]OFD Sender: To server: pG, [13:04:46]CommunicateWithHost lk.salyk.kg:30040 [13:04:46]ConnectInit lk.salyk.kg [13:04:46]written 0, free lines is 4095 [13:04:47]Connected sock=10 [13:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 80 07 01 BC D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F0 E5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 23 02 00 35 04 06 00 76 B4 84 05 16 59 93 DA 1B 6D F0 BD 70 0D [13:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1B 7F 47 00 FA 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 37 36 10 04 04 00 7D 23 02 00 F4 03 04 00 81 8C C5 66 B6 04 01 00 00 86 BE DF 00 2E 6C 40 5C [13:04:47]CommunicateWithHost err = 0 [13:04:47]CheckOFDResponse [13:04:47]1017 (14) - 77093643461234 [13:04:47]1041 (16) - 0000000000871776 [13:04:47]1040 (4) - 140157 [13:04:47]1012 (4) - 21.08.2024 06:43 [13:04:47]1206 (1) - 0 [13:04:47]OFD Sender: Remove packet 140157 [13:04:47]ProducePacketName [13:04:47]name=ofd_packets/00140157 [13:04:47]NVStorageDeleteData [13:04:47]Write to MH i2c: 01 00 00 CB 4A 15 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 CB 4A 00 00 00 00 00 E3 0C 0B [13:04:47]RasterBufferAndPrint [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]written 0, free lines is 3302 [13:04:47]MH_Cut [13:04:47]Write to MH i2c: D1 01 00 D2 4A 01 EE [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 D2 4A 00 ED [13:04:47]Write to MH i2c: 01 00 00 D3 4A 1D [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]OFD Sender: No OFD packet to send [13:04:48]*** Cut start [13:04:48]*** Partial cut [13:04:48]*** CUTSNS_PIN = 1 [13:04:48]*** CUTSNS_PIN = 0 [13:04:48]*** Brake cut motor [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]*** Stop cut motor [13:04:48]*** Cut end [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 D3 4A 00 00 00 00 00 FF 0F 32 [13:04:48]process_action close_receipt done [13:04:48]requested_data is exist [13:04:48]produce_requested_data [13:04:48]requested_item fm.sn is exist - process it [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 11 00 00 [13:04:48]Write to MH i2c: E2 08 00 D4 4A 80 11 00 00 00 00 00 00 98 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 D4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [13:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:04:48]wFMCommunicate OK [13:04:48]requested_item fd.num is exist - process it [13:04:48]SAM_PROTO_GetFieldsCounters [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 13 00 00 [13:04:48]Write to MH i2c: E2 08 00 D5 4A 80 13 00 00 00 00 00 00 9B [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 62 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 62 00 D5 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [13:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_GetFieldsCounters done [13:04:48]requested_item shift.num is exist - process it [13:04:48]requested_item shift.opened is exist - process it [13:04:48]req_shift_opened [13:04:48]FM_GetShiftState [13:04:48]SAM_PROTO_GetShiftState [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 13 01 00 [13:04:48]Write to MH i2c: E2 08 00 D6 4A 80 13 01 00 00 00 00 00 9D [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0E 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0E 00 D6 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1D [13:04:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_GetShiftState done [13:04:48]FM_GetShiftState done [13:04:48]req_shift_opened done [13:04:48]requested_item shift.open_date is exist - process it [13:04:48]req_shift_open_date [13:04:48]req_shift_open_date done [13:04:48]produce_requested_data done [13:04:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140157,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:04:48]process_action_free close_receipt [13:04:48]json_value_free [13:04:48]json_value_free done [13:04:48]process_json_proto returns [13:04:48]Send response to host [13:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140157,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:04:48]free response buf [13:04:48]execute_script done [13:04:48]execute_script returns [13:04:48]free content buf [13:04:48]Sock 9.Close socket [13:04:48]Sock 9.Thread stoped [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:04]accept exits with 7 [13:05:04]New connection [13:05:04]New thread 3066908004 created [13:05:04]Thread 3066764644 joined [13:05:04]Waiting for new connection... [13:05:04] Sock 7.Parse request [13:05:04]Sock 7.Check first char [13:05:04]Sock 7.First char is OK [13:05:04]request: POST /json_proto HTTP/1.0 [13:05:04]Method: POST [13:05:04]URL: /json_proto [13:05:04]Method is POST - this is cgi request [13:05:04]url: /json_proto [13:05:04]query_string will be loaded in cgi processing [13:05:04]execute_cgi json_proto POST (null) [13:05:04]execute_cgi path=json_proto method=POST [13:05:04]POST find Content-Length [13:05:04]Host: 172.17.45.67:8080 [13:05:04]Content-Length: 663 [13:05:04]Content-Type: application/json [13:05:04] [13:05:04]POST finish read [13:05:04]Found Content-Length = 663 [13:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:04]execute_script... [13:05: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)594012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:04]POST & json_proto [13:05:04]process_json_proto [13:05:04]json parsed OK: [13:05:04]protocol is kg_v1.0 [13:05:04]action value=close_receipt [13:05:04]process_action close_receipt [13:05:04]cmd_close_receipt [13:05:04]MH_GetDate [13:05:04]Write to MH i2c: F0 00 00 D7 4A 10 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: F0 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: F0 09 00 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: F0 09 00 D7 4A 00 03 E6 C5 66 5F 7F 2B 66 9C [13:05:04]GetLastDocTimeStamp 1724245488 [13:05:04]current date 1724245507 [13:05:04]FM_GetShiftState [13:05:04]SAM_PROTO_GetShiftState [13:05:04]wFMCommunicate request_size=4 [13:05:04]MH_SAM_APDU [13:05:04]CAPDU: 80 13 01 00 [13:05:04]Write to MH i2c: E2 08 00 D8 4A 80 13 01 00 00 00 00 00 9F [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:04]Read from MH i2c: E2 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: E2 0E 00 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: E2 0E 00 D8 4A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1F [13:05:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:05:04]wFMCommunicate OK [13:05:04]SAM_PROTO_GetShiftState done [13:05:04]FM_GetShiftState done [13:05:04]opened in 1724200467 [13:05:04]opened+sec_in_day 1724286867 [13:05:04]quantity*price = 100035 [13:05:04]sum+1 = 100036 [13:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 175 21.08.2024 13:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140158 ФПД: 160688923605569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130507&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140158&fm=160688923605569&tin=02508201610067®Number=0000000000092569&sum=100000 [13:05:05]StoreToDocumentArchive [13:05:05]shift 454 fd 140158 [13:05:05]save to /storage/0454/doc_00140158 [13:05:05]save last doc name /storage/0454/doc_00140158 to /storage/kkm_last_doc_name [13:05:05]save OK [13:05:05]Clear old archive folders... [13:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:05:05]tlvbuf is 00AA39B0 [13:05:05]SAM_PROTO_ClearQueue [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 09 00 00 [13:05:05]Write to MH i2c: E2 08 00 E5 4A 80 09 00 00 00 00 00 00 A1 [13:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 E5 4A 00 90 00 A3 [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]SAM_PROTO_ClearQueue done [13:05:05]KKMCreateOFDPacket [13:05:05]OFDProtocolAddRootSTLVToBuf [13:05:05]FM_MakeSignedData [13:05:05]FM_MakeSignedData [13:05:05]SAM_PROTO_SignData [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 0D 01 02 [13:05:05]Write to MH i2c: E2 08 00 E6 4A 80 0D 01 02 00 00 00 00 A9 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 E6 4A 00 90 00 A4 [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]wFMCommunicate request_size=253 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 23 02 00 35 04 06 00 92 25 4E 35 FA 41 [13:05:05]Write to MH i2c: E2 00 01 E7 4A 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 23 02 00 35 04 06 00 92 25 4E 35 FA 41 00 00 C3 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 E7 4A 00 90 00 A5 [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 0D 03 02 [13:05:05]Write to MH i2c: E2 08 00 E8 4A 80 0D 03 02 00 00 00 00 AD [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0B 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0B 00 E8 4A 00 7E CC 32 5B 4B 6E 18 BB 90 00 11 [13:05:05]RAPDU: 7E CC 32 5B 4B 6E 18 BB 90 00 [13:05:05]wFMCommunicate OK [13:05:05]SAM_PROTO_SignData done [13:05:05]FM_MakeSignedData done [13:05:05]CreateOFDProtocolMessage [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 11 00 00 [13:05:05]Write to MH i2c: E2 08 00 E9 4A 80 11 00 00 00 00 00 00 AD [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 E9 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [13:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:05:05]wFMCommunicate OK [13:05:05]CreateOFDProtocolMessage done [13:05:05]OFDSenderStorePacket 140158 [13:05:05]StoreOFDPacket docnum=140158 [13:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 ED FC 00 01 8D ED 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 23 02 00 35 04 06 00 92 25 4E 35 FA 41 7E CC 32 5B 4B 6E 18 BB [13:05:05]CheckFolder [13:05:05]dirname=/storage/ofd_packets [13:05:05]CheckFolder done [13:05:05]ProducePacketName [13:05:05]name=ofd_packets/00140158 [13:05:05]NVStorageSaveData ofd_packets/00140158 [13:05:05]File name is /storage/ofd_packets/00140158 [13:05:05]Write 294 bytes [13:05:05]NVStorageSaveData done [13:05:05]OFDSenderStorePacket done [13:05:05]KKMCreateOFDPacket done [13:05:05]NVStorageSaveData kkm_last_timestamp [13:05:05]File name is /storage/kkm_last_timestamp [13:05:05]Write 4 bytes [13:05:05]NVStorageSaveData done [13:05:05]ExternCall_PrintAddStr [13:05:05]wPrintStart [13:05:05]Write to MH i2c: 01 00 00 EA 4A 34 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 07 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 07 00 EA 4A 00 00 00 00 00 FF 0F 49 [13:05:05]RasterBufferAndPrint [13:05:05]line Счет N : (1)594012 [13:05:05]line ИНН: 02508201610067 [13:05:05]line Контрольно-Кассовый Чек [13:05:05]line ПРОДАЖА [13:05:05]line ТРК (МРК, ГНК) : 43 [13:05:05]line Товар: 2710124130 [13:05:05]line SU-92 [13:05:05]line 14.540 * 68.80 [13:05:05]line = 1000.35 [13:05:05]line НДС 12% НСП 1% [13:05:05]line > о реализуемом товаре [13:05:05]line ОКРУГЛЕНИЕ: -0.35 [13:05:05]line ИТОГО: 1000.00 [13:05:05]line Внесено: 1000.00 [13:05:05]line СДАЧА: 0.00 [13:05:05]line НСП 1% : 8.85 [13:05:05]line НДС 12% : 106.23 [13:05:05]line Наличными: 1000.00 [13:05:05]line Безнал.: 0.00 [13:05:05]line Место: АЗС № 136 "Партнер Нефть" [13:05:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:05:05]line СНО: Общий режим [13:05:05]line Чек 175 21.08.2024 13:05 [13:05:05]line Смена: 454 ФФД: 1.0 [13:05:05]line ЗНМ: 0300000067 [13:05:05]line РНМ: 0000000000092569 [13:05:05]line Версия ККМ: 001 [13:05:05]line ФМ: 0000000000871776 [13:05:05]line ФД: 140158 [13:05:05]line ФПД: 160688923605569 [13:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130507&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140158&fm=160688923605569&tin=02508201610067®Number=0000000000092569&sum=100000 [13:05:06]OFD Sender: Processing packet 140158 [packets to send 137, broken 136] [13:05:06]ProducePacketName [13:05:06]name=ofd_packets/00140158 [13:05:06]OFD Sender: To server: pG, [13:05:06]CommunicateWithHost lk.salyk.kg:30040 [13:05:06]ConnectInit lk.salyk.kg [13:05:06]written 0, free lines is 4095 [13:05:06]Connected sock=10 [13:05: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 37 36 08 01 00 00 ED FC 00 01 8D ED 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 23 02 00 35 04 06 00 92 25 4E 35 FA 41 7E CC 32 5B 4B 6E 18 BB [13: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 37 36 4F 00 00 00 BC 42 47 00 75 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 37 36 10 04 04 00 7E 23 02 00 F4 03 04 00 94 8C C5 66 B6 04 01 00 00 0C 9A 44 76 34 1A D6 66 [13:05:06]CommunicateWithHost err = 0 [13:05:06]CheckOFDResponse [13:05:06]1017 (14) - 77093643461234 [13:05:06]1041 (16) - 0000000000871776 [13:05:06]1040 (4) - 140158 [13:05:06]1012 (4) - 21.08.2024 06:43 [13:05:06]1206 (1) - 0 [13:05:06]OFD Sender: Remove packet 140158 [13:05:06]ProducePacketName [13:05:06]name=ofd_packets/00140158 [13:05:06]NVStorageDeleteData [13:05:06]Write to MH i2c: 01 00 00 15 4B 60 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 07 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 07 00 15 4B 00 00 00 00 00 D8 0C 4B [13:05:06]RasterBufferAndPrint [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]written 0, free lines is 3296 [13:05:06]MH_Cut [13:05:06]Write to MH i2c: D1 01 00 1C 4B 01 39 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 01 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 01 00 1C 4B 00 38 [13:05:06]Write to MH i2c: 01 00 00 1D 4B 68 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:07]OFD Sender: No OFD packet to send [13:05:07]*** Cut start [13:05:07]*** Partial cut [13:05:07]*** CUTSNS_PIN = 1 [13:05:07]*** CUTSNS_PIN = 0 [13:05:07]*** Brake cut motor [13:05:08]Read from MH i2c: 01 [13:05:08]MH_I2C_Read... [13:05:08]*** Stop cut motor [13:05:08]*** Cut end [13:05:08]Read from MH i2c: 01 07 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: 01 07 00 1D 4B 00 00 00 00 00 FF 0F 7D [13:05:08]process_action close_receipt done [13:05:08]requested_data is exist [13:05:08]produce_requested_data [13:05:08]requested_item fm.sn is exist - process it [13:05:08]wFMCommunicate request_size=4 [13:05:08]MH_SAM_APDU [13:05:08]CAPDU: 80 11 00 00 [13:05:08]Write to MH i2c: E2 08 00 1E 4B 80 11 00 00 00 00 00 00 E3 [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:08]Read from MH i2c: E2 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 17 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 17 00 1E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3A [13:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:05:08]wFMCommunicate OK [13:05:08]requested_item fd.num is exist - process it [13:05:08]SAM_PROTO_GetFieldsCounters [13:05:08]wFMCommunicate request_size=4 [13:05:08]MH_SAM_APDU [13:05:08]CAPDU: 80 13 00 00 [13:05:08]Write to MH i2c: E2 08 00 1F 4B 80 13 00 00 00 00 00 00 E6 [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:08]Read from MH i2c: E2 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 62 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 62 00 1F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [13:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:08]wFMCommunicate OK [13:05:08]SAM_PROTO_GetFieldsCounters done [13:05:08]requested_item shift.num is exist - process it [13:05:08]requested_item shift.opened is exist - process it [13:05:08]req_shift_opened [13:05:08]FM_GetShiftState [13:05:08]SAM_PROTO_GetShiftState [13:05:08]wFMCommunicate request_size=4 [13:05:08]MH_SAM_APDU [13:05:08]CAPDU: 80 13 01 00 [13:05:08]Write to MH i2c: E2 08 00 20 4B 80 13 01 00 00 00 00 00 E8 [13:05:08]Write i2c OK [13:05:08]MH_I2C_Read... [13:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:08]Read from MH i2c: E2 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 0E 00 [13:05:08]MH_I2C_Read... [13:05:08]Read from MH i2c: E2 0E 00 20 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 68 [13:05:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:05:08]wFMCommunicate OK [13:05:08]SAM_PROTO_GetShiftState done [13:05:08]FM_GetShiftState done [13:05:08]req_shift_opened done [13:05:08]requested_item shift.open_date is exist - process it [13:05:08]req_shift_open_date [13:05:08]req_shift_open_date done [13:05:08]produce_requested_data done [13:05:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140158,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:05:08]process_action_free close_receipt [13:05:08]json_value_free [13:05:08]json_value_free done [13:05:08]process_json_proto returns [13:05:08]Send response to host [13:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140158,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:05:08]free response buf [13:05:08]execute_script done [13:05:08]execute_script returns [13:05:08]free content buf [13:05:08]Sock 7.Close socket [13:05:08]Sock 7.Thread stoped [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:41]accept exits with 9 [13:05:41]New connection [13:05:41]New thread 3066764644 created [13:05:41]Thread 3066908004 joined [13:05:41]Waiting for new connection... [13:05:41] Sock 9.Parse request [13:05:41]Sock 9.Check first char [13:05:41]Sock 9.First char is OK [13:05:41]request: POST /json_proto HTTP/1.0 [13:05:41]Method: POST [13:05:41]URL: /json_proto [13:05:41]Method is POST - this is cgi request [13:05:41]url: /json_proto [13:05:41]query_string will be loaded in cgi processing [13:05:41]execute_cgi json_proto POST (null) [13:05:41]execute_cgi path=json_proto method=POST [13:05:41]POST find Content-Length [13:05:41]Host: 172.17.45.67:8080 [13:05:41]Content-Length: 663 [13:05:41]Content-Type: application/json [13:05:41] [13:05:41]POST finish read [13:05:41]Found Content-Length = 663 [13:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:41]execute_script... [13:05: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)594013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:41]POST & json_proto [13:05:41]process_json_proto [13:05:41]json parsed OK: [13:05:41]protocol is kg_v1.0 [13:05:41]action value=close_receipt [13:05:41]process_action close_receipt [13:05:41]cmd_close_receipt [13:05:41]MH_GetDate [13:05:41]Write to MH i2c: F0 00 00 21 4B 5B [13:05:41]Write i2c OK [13:05:41]MH_I2C_Read... [13:05:41]Read from MH i2c: F0 [13:05:41]MH_I2C_Read... [13:05:41]Read from MH i2c: F0 09 00 [13:05:41]MH_I2C_Read... [13:05:41]Read from MH i2c: F0 09 00 21 4B 00 29 E6 C5 66 5F 7F 2B 66 0D [13:05:41]GetLastDocTimeStamp 1724245507 [13:05:41]current date 1724245545 [13:05:41]FM_GetShiftState [13:05:41]SAM_PROTO_GetShiftState [13:05:41]wFMCommunicate request_size=4 [13:05:41]MH_SAM_APDU [13:05:41]CAPDU: 80 13 01 00 [13:05:41]Write to MH i2c: E2 08 00 22 4B 80 13 01 00 00 00 00 00 EA [13:05:41]Write i2c OK [13:05:41]MH_I2C_Read... [13:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:41]Read from MH i2c: E2 [13:05:41]MH_I2C_Read... [13:05:41]Read from MH i2c: E2 0E 00 [13:05:41]MH_I2C_Read... [13:05:41]Read from MH i2c: E2 0E 00 22 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6A [13:05:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:05:41]wFMCommunicate OK [13:05:41]SAM_PROTO_GetShiftState done [13:05:41]FM_GetShiftState done [13:05:41]opened in 1724200467 [13:05:41]opened+sec_in_day 1724286867 [13:05:41]quantity*price = 100035 [13:05:41]sum+1 = 100036 [13:05:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 176 21.08.2024 13:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140159 ФПД: 41382978875875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140159&fm=41382978875875&tin=02508201610067®Number=0000000000092569&sum=100000 [13:05:42]StoreToDocumentArchive [13:05:42]shift 454 fd 140159 [13:05:42]save to /storage/0454/doc_00140159 [13:05:42]save last doc name /storage/0454/doc_00140159 to /storage/kkm_last_doc_name [13:05:42]save OK [13:05:42]Clear old archive folders... [13:05:42]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:05:42]tlvbuf is 00AA39B0 [13:05:42]SAM_PROTO_ClearQueue [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 09 00 00 [13:05:42]Write to MH i2c: E2 08 00 2F 4B 80 09 00 00 00 00 00 00 EC [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 2F 4B 00 90 00 EE [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]SAM_PROTO_ClearQueue done [13:05:42]KKMCreateOFDPacket [13:05:42]OFDProtocolAddRootSTLVToBuf [13:05:42]FM_MakeSignedData [13:05:42]FM_MakeSignedData [13:05:42]SAM_PROTO_SignData [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 01 02 [13:05:42]Write to MH i2c: E2 08 00 30 4B 80 0D 01 02 00 00 00 00 F4 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 03 00 30 4B 00 90 00 EF [13:05:42]RAPDU: 90 00 [13:05:42]wFMCommunicate OK [13:05:42]wFMCommunicate request_size=253 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 29 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 23 02 00 35 04 06 00 25 A3 39 C1 71 E3 [13:05:42]Write to MH i2c: E2 00 01 31 4B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 29 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 23 02 00 35 04 06 00 25 A3 39 C1 71 E3 00 00 D7 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:43]Read from MH i2c: E2 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 31 4B 00 90 00 F0 [13:05:43]RAPDU: 90 00 [13:05:43]wFMCommunicate OK [13:05:43]wFMCommunicate request_size=4 [13:05:43]MH_SAM_APDU [13:05:43]CAPDU: 80 0D 03 02 [13:05:43]Write to MH i2c: E2 08 00 32 4B 80 0D 03 02 00 00 00 00 F8 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:43]Read from MH i2c: E2 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 0B 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 0B 00 32 4B 00 14 A4 DD 45 33 E3 24 D3 90 00 E0 [13:05:43]RAPDU: 14 A4 DD 45 33 E3 24 D3 90 00 [13:05:43]wFMCommunicate OK [13:05:43]SAM_PROTO_SignData done [13:05:43]FM_MakeSignedData done [13:05:43]CreateOFDProtocolMessage [13:05:43]wFMCommunicate request_size=4 [13:05:43]MH_SAM_APDU [13:05:43]CAPDU: 80 11 00 00 [13:05:43]Write to MH i2c: E2 08 00 33 4B 80 11 00 00 00 00 00 00 F8 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:43]Read from MH i2c: E2 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 17 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 17 00 33 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4F [13:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:05:43]wFMCommunicate OK [13:05:43]CreateOFDProtocolMessage done [13:05:43]OFDSenderStorePacket 140159 [13:05:43]StoreOFDPacket docnum=140159 [13:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 73 C2 00 01 4F 90 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 29 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 23 02 00 35 04 06 00 25 A3 39 C1 71 E3 14 A4 DD 45 33 E3 24 D3 [13:05:43]CheckFolder [13:05:43]dirname=/storage/ofd_packets [13:05:43]CheckFolder done [13:05:43]ProducePacketName [13:05:43]name=ofd_packets/00140159 [13:05:43]NVStorageSaveData ofd_packets/00140159 [13:05:43]File name is /storage/ofd_packets/00140159 [13:05:43]Write 294 bytes [13:05:43]NVStorageSaveData done [13:05:43]OFDSenderStorePacket done [13:05:43]KKMCreateOFDPacket done [13:05:43]NVStorageSaveData kkm_last_timestamp [13:05:43]File name is /storage/kkm_last_timestamp [13:05:43]Write 4 bytes [13:05:43]NVStorageSaveData done [13:05:43]ExternCall_PrintAddStr [13:05:43]wPrintStart [13:05:43]Write to MH i2c: 01 00 00 34 4B 7F [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 07 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: 01 07 00 34 4B 00 00 00 00 00 FF 0F 94 [13:05:43]RasterBufferAndPrint [13:05:43]line Счет N : (1)594013 [13:05:43]line ИНН: 02508201610067 [13:05:43]line Контрольно-Кассовый Чек [13:05:43]line ПРОДАЖА [13:05:43]line ТРК (МРК, ГНК) : 63 [13:05:43]line Товар: 2710124130 [13:05:43]line SU-92 [13:05:43]line 14.540 * 68.80 [13:05:43]line = 1000.35 [13:05:43]line НДС 12% НСП 1% [13:05:43]line > о реализуемом товаре [13:05:43]line ОКРУГЛЕНИЕ: -0.35 [13:05:43]line ИТОГО: 1000.00 [13:05:43]line Внесено: 1000.00 [13:05:43]line СДАЧА: 0.00 [13:05:43]line НСП 1% : 8.85 [13:05:43]line НДС 12% : 106.23 [13:05:43]line Наличными: 1000.00 [13:05:43]line Безнал.: 0.00 [13:05:43]line Место: АЗС № 136 "Партнер Нефть" [13:05:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:05:43]line СНО: Общий режим [13:05:43]line Чек 176 21.08.2024 13:05 [13:05:43]line Смена: 454 ФФД: 1.0 [13:05:43]line ЗНМ: 0300000067 [13:05:43]line РНМ: 0000000000092569 [13:05:43]line Версия ККМ: 001 [13:05:43]line ФМ: 0000000000871776 [13:05:43]line ФД: 140159 [13:05:43]line ФПД: 41382978875875 [13:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140159&fm=41382978875875&tin=02508201610067®Number=0000000000092569&sum=100000 [13:05:43]OFD Sender: Processing packet 140159 [packets to send 137, broken 136] [13:05:43]ProducePacketName [13:05:43]name=ofd_packets/00140159 [13:05:43]OFD Sender: To server: pG, [13:05:43]CommunicateWithHost lk.salyk.kg:30040 [13:05:43]ConnectInit lk.salyk.kg [13:05:43]written 0, free lines is 4095 [13:05:43]Connected sock=10 [13:05: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 37 36 08 01 00 00 73 C2 00 01 4F 90 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 29 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 23 02 00 35 04 06 00 25 A3 39 C1 71 E3 14 A4 DD 45 33 E3 24 D3 [13:05: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 37 36 4F 00 00 00 B8 45 47 00 62 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 23 02 00 F4 03 04 00 BA 8C C5 66 B6 04 01 00 00 5A 8F 05 4C 66 A9 90 80 [13:05:44]CommunicateWithHost err = 0 [13:05:44]CheckOFDResponse [13:05:44]1017 (14) - 77093643461234 [13:05:44]1041 (16) - 0000000000871776 [13:05:44]1040 (4) - 140159 [13:05:44]1012 (4) - 21.08.2024 06:44 [13:05:44]1206 (1) - 0 [13:05:44]OFD Sender: Remove packet 140159 [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00140159 [13:05:44]NVStorageDeleteData [13:05:44]Write to MH i2c: 01 00 00 5F 4B AA [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 5F 4B 00 00 00 00 00 D3 0C 90 [13:05:44]RasterBufferAndPrint [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]written 0, free lines is 3293 [13:05:44]MH_Cut [13:05:44]Write to MH i2c: D1 01 00 66 4B 01 83 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 01 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: D1 01 00 66 4B 00 82 [13:05:44]Write to MH i2c: 01 00 00 67 4B B2 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]OFD Sender: No OFD packet to send [13:05:44]*** Cut start [13:05:44]*** Partial cut [13:05:44]*** CUTSNS_PIN = 1 [13:05:44]*** CUTSNS_PIN = 0 [13:05:45]*** Brake cut motor [13:05:45]Read from MH i2c: 01 [13:05:45]MH_I2C_Read... [13:05:45]*** Stop cut motor [13:05:45]*** Cut end [13:05:45]Read from MH i2c: 01 07 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: 01 07 00 67 4B 00 00 00 00 00 FF 0F C7 [13:05:45]process_action close_receipt done [13:05:45]requested_data is exist [13:05:45]produce_requested_data [13:05:45]requested_item fm.sn is exist - process it [13:05:45]wFMCommunicate request_size=4 [13:05:45]MH_SAM_APDU [13:05:45]CAPDU: 80 11 00 00 [13:05:45]Write to MH i2c: E2 08 00 68 4B 80 11 00 00 00 00 00 00 2D [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:45]Read from MH i2c: E2 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 17 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 17 00 68 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [13:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:05:45]wFMCommunicate OK [13:05:45]requested_item fd.num is exist - process it [13:05:45]SAM_PROTO_GetFieldsCounters [13:05:45]wFMCommunicate request_size=4 [13:05:45]MH_SAM_APDU [13:05:45]CAPDU: 80 13 00 00 [13:05:45]Write to MH i2c: E2 08 00 69 4B 80 13 00 00 00 00 00 00 30 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:45]Read from MH i2c: E2 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 62 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 62 00 69 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:45]wFMCommunicate OK [13:05:45]SAM_PROTO_GetFieldsCounters done [13:05:45]requested_item shift.num is exist - process it [13:05:45]requested_item shift.opened is exist - process it [13:05:45]req_shift_opened [13:05:45]FM_GetShiftState [13:05:45]SAM_PROTO_GetShiftState [13:05:45]wFMCommunicate request_size=4 [13:05:45]MH_SAM_APDU [13:05:45]CAPDU: 80 13 01 00 [13:05:45]Write to MH i2c: E2 08 00 6A 4B 80 13 01 00 00 00 00 00 32 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:45]Read from MH i2c: E2 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 0E 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: E2 0E 00 6A 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [13:05:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:05:45]wFMCommunicate OK [13:05:45]SAM_PROTO_GetShiftState done [13:05:45]FM_GetShiftState done [13:05:45]req_shift_opened done [13:05:45]requested_item shift.open_date is exist - process it [13:05:45]req_shift_open_date [13:05:45]req_shift_open_date done [13:05:45]produce_requested_data done [13:05:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140159,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:05:45]process_action_free close_receipt [13:05:45]json_value_free [13:05:45]json_value_free done [13:05:45]process_json_proto returns [13:05:45]Send response to host [13:05:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140159,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:05:45]free response buf [13:05:45]execute_script done [13:05:45]execute_script returns [13:05:45]free content buf [13:05:45]Sock 9.Close socket [13:05:45]Sock 9.Thread stoped [13:05:49]OFD Sender: No OFD packet to send [13:05:52]accept exits with 7 [13:05:52]New connection [13:05:52]New thread 3066908004 created [13:05:52]Thread 3066764644 joined [13:05:52]Waiting for new connection... [13:05:52] Sock 7.Parse request [13:05:52]Sock 7.Check first char [13:05:52]Sock 7.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.45.67:8080 [13:05:52]Content-Length: 677 [13:05:52]Content-Type: application/json [13:05:52] [13:05:52]POST finish read [13:05:52]Found Content-Length = 677 [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)594014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)594014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 6B 4B A5 [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 6B 4B 00 33 E6 C5 66 5F 7F 2B 66 61 [13:05:52]GetLastDocTimeStamp 1724245545 [13:05:52]current date 1724245555 [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 6C 4B 80 13 01 00 00 00 00 00 34 [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 6C 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B4 [13:05:52]RAPDU: 09 00 01 13 36 C5 66 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 1724200467 [13:05:52]opened+sec_in_day 1724286867 [13:05:52]quantity*price = 30035 [13:05:52]sum+1 = 30036 [13:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 177 21.08.2024 13:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140160 ФПД: 65969486340914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140160&fm=65969486340914&tin=02508201610067®Number=0000000000092569&sum=30000 [13:05:53]StoreToDocumentArchive [13:05:53]shift 454 fd 140160 [13:05:53]save to /storage/0454/doc_00140160 [13:05:53]save last doc name /storage/0454/doc_00140160 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 00B87A00 [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 79 4B 80 09 00 00 00 00 00 00 36 [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 79 4B 00 90 00 38 [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 7A 4B 80 0D 01 02 00 00 00 00 3E [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 7A 4B 00 90 00 39 [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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 33 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 23 02 00 35 04 06 00 3B [13:05:53]Write to MH i2c: E2 02 01 7B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 33 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 23 02 00 35 04 06 00 3B 00 00 82 [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 7B 4B 00 90 00 3A [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 FF B7 CC A3 32 [13:05:53]Write to MH i2c: E2 0D 00 7C 4B 80 0D 02 02 05 00 FF B7 CC A3 32 00 00 A2 [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 7C 4B 00 90 00 3B [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 7D 4B 80 0D 03 02 00 00 00 00 43 [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 7D 4B 00 79 F6 7B D1 3F E5 73 49 90 00 DF [13:05:53]RAPDU: 79 F6 7B D1 3F E5 73 49 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 7E 4B 80 11 00 00 00 00 00 00 43 [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 7E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9A [13:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:05:53]wFMCommunicate OK [13:05:53]CreateOFDProtocolMessage done [13:05:53]OFDSenderStorePacket 140160 [13:05:53]StoreOFDPacket docnum=140160 [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 37 36 0F 01 00 00 D9 63 07 01 FC 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 33 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 23 02 00 35 04 06 00 3B FF B7 CC A3 32 79 F6 7B D1 3F E5 73 49 [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/00140160 [13:05:53]NVStorageSaveData ofd_packets/00140160 [13:05:53]File name is /storage/ofd_packets/00140160 [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 7F 4B CA [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 7F 4B 00 00 00 00 00 FF 0F DF [13:05:53]RasterBufferAndPrint [13:05:53]line Счет N : (1)594014 [13:05:53]line ИНН: 02508201610067 [13:05:53]line Контрольно-Кассовый Чек [13:05:53]line ПРОДАЖА [13:05:53]line ТРК (МРК, ГНК) : 32 [13:05:53]line Товар: 2710124130 [13:05:53]line Аи-92-К-5 [13:05:53]line 4.430 * 67.80 [13:05:53]line = 300.35 [13:05:53]line НДС 12% НСП 1% [13:05:53]line > о реализуемом товаре [13:05:53]line ОКРУГЛЕНИЕ: -0.35 [13:05:53]line ИТОГО: 300.00 [13:05:53]line Внесено: 300.00 [13:05:53]line СДАЧА: 0.00 [13:05:53]line НСП 1% : 2.66 [13:05:53]line НДС 12% : 31.90 [13:05:53]line Наличными: 300.00 [13:05:53]line Безнал.: 0.00 [13:05:53]line Место: АЗС № 136 "Партнер Нефть" [13:05:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:05:53]line СНО: Общий режим [13:05:53]line Чек 177 21.08.2024 13:05 [13:05:53]line Смена: 454 ФФД: 1.0 [13:05:53]line ЗНМ: 0300000067 [13:05:53]line РНМ: 0000000000092569 [13:05:53]line Версия ККМ: 001 [13:05:53]line ФМ: 0000000000871776 [13:05:53]line ФД: 140160 [13:05:53]line ФПД: 65969486340914 [13:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140160&fm=65969486340914&tin=02508201610067®Number=0000000000092569&sum=30000 [13:05:53]written 0, free lines is 4095 [13:05:53]OFD Sender: Processing packet 140160 [packets to send 137, broken 136] [13:05:53]ProducePacketName [13:05:53]name=ofd_packets/00140160 [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:54]Connected sock=10 [13:05: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 37 36 0F 01 00 00 D9 63 07 01 FC 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 33 E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 23 02 00 35 04 06 00 3B FF B7 CC A3 32 79 F6 7B D1 3F E5 73 49 [13:05:54]Write to MH i2c: 01 00 00 AA 4B F5 [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 AA 4B 00 00 00 00 00 DD 0C E5 [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 3305 [13:05:54]MH_Cut [13:05:54]Write to MH i2c: D1 01 00 B1 4B 01 CE [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 B1 4B 00 CD [13:05:54]Write to MH i2c: 01 00 00 B2 4B FD [13:05:54]Write i2c OK [13:05:54]MH_I2C_Read... [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 37 36 4F 00 00 00 84 F8 47 00 8A 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 37 36 10 04 04 00 80 23 02 00 F4 03 04 00 C4 8C C5 66 B6 04 01 00 00 4C 6A 52 8D FD 0F BD A3 [13:05:54]CommunicateWithHost err = 0 [13:05:54]CheckOFDResponse [13:05:54]1017 (14) - 77093643461234 [13:05:54]1041 (16) - 0000000000871776 [13:05:54]1040 (4) - 140160 [13:05:54]1012 (4) - 21.08.2024 06:44 [13:05:54]1206 (1) - 0 [13:05:54]OFD Sender: Remove packet 140160 [13:05:54]ProducePacketName [13:05:54]name=ofd_packets/00140160 [13:05:54]NVStorageDeleteData [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 B2 4B 00 00 00 00 00 FF 0F 12 [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 B3 4B 80 11 00 00 00 00 00 00 78 [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 B3 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [13:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 B4 4B 80 13 00 00 00 00 00 00 7B [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 62 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 62 00 B4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:55]wFMCommunicate OK [13:05:55]SAM_PROTO_GetFieldsCounters done [13:05:55]requested_item shift.num is exist - process it [13:05:55]requested_item shift.opened is exist - process it [13:05:55]req_shift_opened [13:05:55]FM_GetShiftState [13:05:55]SAM_PROTO_GetShiftState [13:05:55]wFMCommunicate request_size=4 [13:05:55]MH_SAM_APDU [13:05:55]CAPDU: 80 13 01 00 [13:05:55]Write to MH i2c: E2 08 00 B5 4B 80 13 01 00 00 00 00 00 7D [13:05:55]Write i2c OK [13:05:55]MH_I2C_Read... [13:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:55]Read from MH i2c: E2 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 [13:05:55]MH_I2C_Read... [13:05:55]Read from MH i2c: E2 0E 00 B5 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FD [13:05:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:05:55]wFMCommunicate OK [13:05:55]SAM_PROTO_GetShiftState done [13:05:55]FM_GetShiftState done [13:05:55]req_shift_opened done [13:05:55]requested_item shift.open_date is exist - process it [13:05:55]req_shift_open_date [13:05:55]req_shift_open_date done [13:05:55]produce_requested_data done [13:05:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140160,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:05:55]process_action_free close_receipt [13:05:55]json_value_free [13:05:55]json_value_free done [13:05:55]process_json_proto returns [13:05:55]Send response to host [13:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140160,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:05:55]free response buf [13:05:55]execute_script done [13:05:55]execute_script returns [13:05:55]free content buf [13:05:55]Sock 7.Close socket [13:05:55]Sock 7.Thread stoped [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:20]accept exits with 9 [13:07:20]New connection [13:07:20]New thread 3066764644 created [13:07:20]Thread 3066908004 joined [13:07:20]Waiting for new connection... [13:07:20] Sock 9.Parse request [13:07:20]Sock 9.Check first char [13:07:20]Sock 9.First char is OK [13:07:20]request: POST /json_proto HTTP/1.0 [13:07:20]Method: POST [13:07:20]URL: /json_proto [13:07:20]Method is POST - this is cgi request [13:07:20]url: /json_proto [13:07:20]query_string will be loaded in cgi processing [13:07:20]execute_cgi json_proto POST (null) [13:07:20]execute_cgi path=json_proto method=POST [13:07:20]POST find Content-Length [13:07:20]Host: 172.17.45.67:8080 [13:07:20]Content-Length: 658 [13:07:20]Content-Type: application/json [13:07:20] [13:07:20]POST finish read [13:07:20]Found Content-Length = 658 [13:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:20]execute_script... [13:07:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:20]POST & json_proto [13:07:20]process_json_proto [13:07:20]json parsed OK: [13:07:20]protocol is kg_v1.0 [13:07:20]action value=close_receipt [13:07:20]process_action close_receipt [13:07:20]cmd_close_receipt [13:07:20]MH_GetDate [13:07:20]Write to MH i2c: F0 00 00 B6 4B F0 [13:07:20]Write i2c OK [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: F0 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: F0 09 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: F0 09 00 B6 4B 00 8B E6 C5 66 5F 7F 2B 66 04 [13:07:20]GetLastDocTimeStamp 1724245555 [13:07:20]current date 1724245643 [13:07:20]FM_GetShiftState [13:07:20]SAM_PROTO_GetShiftState [13:07:20]wFMCommunicate request_size=4 [13:07:20]MH_SAM_APDU [13:07:20]CAPDU: 80 13 01 00 [13:07:20]Write to MH i2c: E2 08 00 B7 4B 80 13 01 00 00 00 00 00 7F [13:07:20]Write i2c OK [13:07:20]MH_I2C_Read... [13:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:20]Read from MH i2c: E2 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 0E 00 [13:07:20]MH_I2C_Read... [13:07:20]Read from MH i2c: E2 0E 00 B7 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FF [13:07:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:07:20]wFMCommunicate OK [13:07:20]SAM_PROTO_GetShiftState done [13:07:20]FM_GetShiftState done [13:07:20]opened in 1724200467 [13:07:20]opened+sec_in_day 1724286867 [13:07:20]quantity*price = 50017 [13:07:20]sum+1 = 50019 [13:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 178 21.08.2024 13:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140161 ФПД: 62561580875066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140161&fm=62561580875066&tin=02508201610067®Number=0000000000092569&sum=50000 [13:07:21]StoreToDocumentArchive [13:07:21]shift 454 fd 140161 [13:07:21]save to /storage/0454/doc_00140161 [13:07:21]save last doc name /storage/0454/doc_00140161 to /storage/kkm_last_doc_name [13:07:21]save OK [13:07:21]Clear old archive folders... [13:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:07:21]tlvbuf is 00BB2B60 [13:07:21]SAM_PROTO_ClearQueue [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 09 00 00 [13:07:21]Write to MH i2c: E2 08 00 C4 4B 80 09 00 00 00 00 00 00 81 [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 C4 4B 00 90 00 83 [13:07:21]RAPDU: 90 00 [13:07:21]wFMCommunicate OK [13:07:21]SAM_PROTO_ClearQueue done [13:07:21]KKMCreateOFDPacket [13:07:21]OFDProtocolAddRootSTLVToBuf [13:07:21]FM_MakeSignedData [13:07:21]FM_MakeSignedData [13:07:21]SAM_PROTO_SignData [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 0D 01 02 [13:07:21]Write to MH i2c: E2 08 00 C5 4B 80 0D 01 02 00 00 00 00 89 [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 C5 4B 00 90 00 84 [13:07:21]RAPDU: 90 00 [13:07:21]wFMCommunicate OK [13:07:21]wFMCommunicate request_size=253 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8B E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 23 02 00 35 04 06 00 38 E6 40 CD FD 3A [13:07:21]Write to MH i2c: E2 00 01 C6 4B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8B E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 23 02 00 35 04 06 00 38 E6 40 CD FD 3A 00 00 BF [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 03 00 C6 4B 00 90 00 85 [13:07:21]RAPDU: 90 00 [13:07:21]wFMCommunicate OK [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 0D 03 02 [13:07:21]Write to MH i2c: E2 08 00 C7 4B 80 0D 03 02 00 00 00 00 8D [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 0B 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 0B 00 C7 4B 00 F9 80 77 BF AD 2F B7 73 90 00 43 [13:07:21]RAPDU: F9 80 77 BF AD 2F B7 73 90 00 [13:07:21]wFMCommunicate OK [13:07:21]SAM_PROTO_SignData done [13:07:21]FM_MakeSignedData done [13:07:21]CreateOFDProtocolMessage [13:07:21]wFMCommunicate request_size=4 [13:07:21]MH_SAM_APDU [13:07:21]CAPDU: 80 11 00 00 [13:07:21]Write to MH i2c: E2 08 00 C8 4B 80 11 00 00 00 00 00 00 8D [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:21]Read from MH i2c: E2 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 17 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: E2 17 00 C8 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [13:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:21]wFMCommunicate OK [13:07:21]CreateOFDProtocolMessage done [13:07:21]OFDSenderStorePacket 140161 [13:07:21]StoreOFDPacket docnum=140161 [13:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 31 B3 00 01 AE 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8B E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 23 02 00 35 04 06 00 38 E6 40 CD FD 3A F9 80 77 BF AD 2F B7 73 [13:07:21]CheckFolder [13:07:21]dirname=/storage/ofd_packets [13:07:21]CheckFolder done [13:07:21]ProducePacketName [13:07:21]name=ofd_packets/00140161 [13:07:21]NVStorageSaveData ofd_packets/00140161 [13:07:21]File name is /storage/ofd_packets/00140161 [13:07:21]Write 294 bytes [13:07:21]NVStorageSaveData done [13:07:21]OFDSenderStorePacket done [13:07:21]KKMCreateOFDPacket done [13:07:21]NVStorageSaveData kkm_last_timestamp [13:07:21]File name is /storage/kkm_last_timestamp [13:07:21]Write 4 bytes [13:07:21]NVStorageSaveData done [13:07:21]ExternCall_PrintAddStr [13:07:21]wPrintStart [13:07:21]Write to MH i2c: 01 00 00 C9 4B 14 [13:07:21]Write i2c OK [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: 01 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: 01 07 00 [13:07:21]MH_I2C_Read... [13:07:21]Read from MH i2c: 01 07 00 C9 4B 00 00 00 00 00 FF 0F 29 [13:07:21]RasterBufferAndPrint [13:07:21]line Счет N : (1)594015 [13:07:21]line ИНН: 02508201610067 [13:07:21]line Контрольно-Кассовый Чек [13:07:21]line ПРОДАЖА [13:07:21]line ТРК (МРК, ГНК) : 53 [13:07:21]line Товар: 2710124130 [13:07:21]line SU-92 [13:07:21]line 7.270 * 68.80 [13:07:21]line = 500.18 [13:07:21]line НДС 12% НСП 1% [13:07:21]line > о реализуемом товаре [13:07:21]line ОКРУГЛЕНИЕ: -0.18 [13:07:21]line ИТОГО: 500.00 [13:07:21]line Внесено: 500.00 [13:07:21]line СДАЧА: 0.00 [13:07:21]line НСП 1% : 4.43 [13:07:21]line НДС 12% : 53.12 [13:07:21]line Наличными: 500.00 [13:07:21]line Безнал.: 0.00 [13:07:21]line Место: АЗС № 136 "Партнер Нефть" [13:07:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:07:21]line СНО: Общий режим [13:07:21]line Чек 178 21.08.2024 13:07 [13:07:21]line Смена: 454 ФФД: 1.0 [13:07:21]line ЗНМ: 0300000067 [13:07:21]line РНМ: 0000000000092569 [13:07:21]line Версия ККМ: 001 [13:07:21]line ФМ: 0000000000871776 [13:07:21]line ФД: 140161 [13:07:21]line ФПД: 62561580875066 [13:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T130723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140161&fm=62561580875066&tin=02508201610067®Number=0000000000092569&sum=50000 [13:07:22]OFD Sender: Processing packet 140161 [packets to send 137, broken 136] [13:07:22]ProducePacketName [13:07:22]name=ofd_packets/00140161 [13:07:22]OFD Sender: To server: pG, [13:07:22]CommunicateWithHost lk.salyk.kg:30040 [13:07:22]ConnectInit lk.salyk.kg [13:07:22]written 0, free lines is 4095 [13:07:22]Connected sock=11 [13:07:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 31 B3 00 01 AE 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 8B E6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 23 02 00 35 04 06 00 38 E6 40 CD FD 3A F9 80 77 BF AD 2F B7 73 [13:07:22]Write to MH i2c: 01 00 00 F4 4B 3F [13:07:22]Write i2c OK [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 07 00 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: 01 07 00 F4 4B 00 00 00 00 00 D6 0C 28 [13:07:22]RasterBufferAndPrint [13:07:22]line [13:07:22]line [13:07:22]line [13:07:22]line [13:07:22]line [13:07:22]written 0, free lines is 3294 [13:07:22]MH_Cut [13:07:22]Write to MH i2c: D1 01 00 FB 4B 01 18 [13:07:22]Write i2c OK [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: D1 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: D1 01 00 [13:07:22]MH_I2C_Read... [13:07:22]Read from MH i2c: D1 01 00 FB 4B 00 17 [13:07:22]Write to MH i2c: 01 00 00 FC 4B 47 [13:07:22]Write i2c OK [13:07:22]MH_I2C_Read... [13:07:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B9 F5 47 00 6E 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 23 02 00 F4 03 04 00 1C 8D C5 66 B6 04 01 00 00 4E E5 83 4B 48 57 56 48 [13:07:22]CommunicateWithHost err = 0 [13:07:22]CheckOFDResponse [13:07:22]1017 (14) - 77093643461234 [13:07:22]1041 (16) - 0000000000871776 [13:07:22]1040 (4) - 140161 [13:07:22]1012 (4) - 21.08.2024 06:45 [13:07:22]1206 (1) - 0 [13:07:22]OFD Sender: Remove packet 140161 [13:07:22]ProducePacketName [13:07:22]name=ofd_packets/00140161 [13:07:22]NVStorageDeleteData [13:07:23]OFD Sender: No OFD packet to send [13:07:23]*** Cut start [13:07:23]*** Partial cut [13:07:23]*** CUTSNS_PIN = 1 [13:07:23]*** CUTSNS_PIN = 0 [13:07:23]*** Brake cut motor [13:07:23]Read from MH i2c: 01 [13:07:23]MH_I2C_Read... [13:07:23]*** Stop cut motor [13:07:23]*** Cut end [13:07:23]Read from MH i2c: 01 07 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: 01 07 00 FC 4B 00 00 00 00 00 FF 0F 5C [13:07:23]process_action close_receipt done [13:07:23]requested_data is exist [13:07:23]produce_requested_data [13:07:23]requested_item fm.sn is exist - process it [13:07:23]wFMCommunicate request_size=4 [13:07:23]MH_SAM_APDU [13:07:23]CAPDU: 80 11 00 00 [13:07:23]Write to MH i2c: E2 08 00 FD 4B 80 11 00 00 00 00 00 00 C2 [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:23]Read from MH i2c: E2 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 17 00 [13:07:23]MH_I2C_Read... [13:07:23]Read from MH i2c: E2 17 00 FD 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [13:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:07:23]wFMCommunicate OK [13:07:23]requested_item fd.num is exist - process it [13:07:23]SAM_PROTO_GetFieldsCounters [13:07:23]wFMCommunicate request_size=4 [13:07:23]MH_SAM_APDU [13:07:23]CAPDU: 80 13 00 00 [13:07:23]Write to MH i2c: E2 08 00 FE 4B 80 13 00 00 00 00 00 00 C5 [13:07:23]Write i2c OK [13:07:23]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 62 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 62 00 FE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [13:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_GetFieldsCounters done [13:07:24]requested_item shift.num is exist - process it [13:07:24]requested_item shift.opened is exist - process it [13:07:24]req_shift_opened [13:07:24]FM_GetShiftState [13:07:24]SAM_PROTO_GetShiftState [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 13 01 00 [13:07:24]Write to MH i2c: E2 08 00 FF 4B 80 13 01 00 00 00 00 00 C7 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0E 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0E 00 FF 4B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 47 [13:07:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_GetShiftState done [13:07:24]FM_GetShiftState done [13:07:24]req_shift_opened done [13:07:24]requested_item shift.open_date is exist - process it [13:07:24]req_shift_open_date [13:07:24]req_shift_open_date done [13:07:24]produce_requested_data done [13:07:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140161,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:07:24]process_action_free close_receipt [13:07:24]json_value_free [13:07:24]json_value_free done [13:07:24]process_json_proto returns [13:07:24]Send response to host [13:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140161,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:07:24]free response buf [13:07:24]execute_script done [13:07:24]execute_script returns [13:07:24]free content buf [13:07:24]Sock 9.Close socket [13:07:24]Sock 9.Thread stoped [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11: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:21]accept exits with 7 [13:12:21]New connection [13:12:21]New thread 3066908004 created [13:12:21]Thread 3066764644 joined [13:12:21]Waiting for new connection... [13:12:21] Sock 7.Parse request [13:12:21]Sock 7.Check first char [13:12:21]Sock 7.First char is OK [13:12:21]request: POST /json_proto HTTP/1.0 [13:12:21]Method: POST [13:12:21]URL: /json_proto [13:12:21]Method is POST - this is cgi request [13:12:21]url: /json_proto [13:12:21]query_string will be loaded in cgi processing [13:12:21]execute_cgi json_proto POST (null) [13:12:21]execute_cgi path=json_proto method=POST [13:12:21]POST find Content-Length [13:12:21]Host: 172.17.45.67:8080 [13:12:21]Content-Length: 687 [13:12:21]Content-Type: application/json [13:12:21] [13:12:21]POST finish read [13:12:21]Found Content-Length = 687 [13:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:12:21]execute_script... [13:12: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)594016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:12:21]POST & json_proto [13:12:21]process_json_proto [13:12:21]json parsed OK: [13:12:21]protocol is kg_v1.0 [13:12:21]action value=close_receipt [13:12:21]process_action close_receipt [13:12:21]cmd_close_receipt [13:12:21]MH_GetDate [13:12:21]Write to MH i2c: F0 00 00 00 4C 3B [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: F0 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: F0 09 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: F0 09 00 00 4C 00 B8 E7 C5 66 5F 7F 2B 66 7D [13:12:21]GetLastDocTimeStamp 1724245643 [13:12:21]current date 1724245944 [13:12:21]FM_GetShiftState [13:12:21]SAM_PROTO_GetShiftState [13:12:21]wFMCommunicate request_size=4 [13:12:21]MH_SAM_APDU [13:12:21]CAPDU: 80 13 01 00 [13:12:21]Write to MH i2c: E2 08 00 01 4C 80 13 01 00 00 00 00 00 CA [13:12:21]Write i2c OK [13:12:21]MH_I2C_Read... [13:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:21]Read from MH i2c: E2 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0E 00 [13:12:21]MH_I2C_Read... [13:12:21]Read from MH i2c: E2 0E 00 01 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4A [13:12:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:12:21]wFMCommunicate OK [13:12:21]SAM_PROTO_GetShiftState done [13:12:21]FM_GetShiftState done [13:12:21]opened in 1724200467 [13:12:21]opened+sec_in_day 1724286867 [13:12:21]quantity*price = 200025 [13:12:21]sum+1 = 200026 [13:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 179 21.08.2024 13:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140162 ФПД: 86342410780888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140162&fm=86342410780888&tin=02508201610067®Number=0000000000092569&sum=200000 [13:12:22]StoreToDocumentArchive [13:12:22]shift 454 fd 140162 [13:12:22]save to /storage/0454/doc_00140162 [13:12:22]save last doc name /storage/0454/doc_00140162 to /storage/kkm_last_doc_name [13:12:22]save OK [13:12:22]Clear old archive folders... [13:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:12:22]tlvbuf is 00AE83B0 [13:12:22]SAM_PROTO_ClearQueue [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 09 00 00 [13:12:22]Write to MH i2c: E2 08 00 0E 4C 80 09 00 00 00 00 00 00 CC [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 0E 4C 00 90 00 CE [13:12:22]RAPDU: 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_ClearQueue done [13:12:22]KKMCreateOFDPacket [13:12:22]OFDProtocolAddRootSTLVToBuf [13:12:22]FM_MakeSignedData [13:12:22]FM_MakeSignedData [13:12:22]SAM_PROTO_SignData [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 0D 01 02 [13:12:22]Write to MH i2c: E2 08 00 0F 4C 80 0D 01 02 00 00 00 00 D4 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 0F 4C 00 90 00 CF [13:12:22]RAPDU: 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=255 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B3 00 00 00 F4 03 04 00 B8 E7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 23 02 00 35 04 06 00 [13:12:22]Write to MH i2c: E2 02 01 10 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B3 00 00 00 F4 03 04 00 B8 E7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 23 02 00 35 04 06 00 00 00 24 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 10 4C 00 90 00 D0 [13:12:22]RAPDU: 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=11 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 0D 02 02 06 4E 87 28 B9 40 D8 [13:12:22]Write to MH i2c: E2 0E 00 11 4C 80 0D 02 02 06 00 4E 87 28 B9 40 D8 00 00 B1 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 03 00 11 4C 00 90 00 D1 [13:12:22]RAPDU: 90 00 [13:12:22]wFMCommunicate OK [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 0D 03 02 [13:12:22]Write to MH i2c: E2 08 00 12 4C 80 0D 03 02 00 00 00 00 D9 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0B 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 0B 00 12 4C 00 4E A6 1B 19 48 60 E3 A7 90 00 34 [13:12:22]RAPDU: 4E A6 1B 19 48 60 E3 A7 90 00 [13:12:22]wFMCommunicate OK [13:12:22]SAM_PROTO_SignData done [13:12:22]FM_MakeSignedData done [13:12:22]CreateOFDProtocolMessage [13:12:22]wFMCommunicate request_size=4 [13:12:22]MH_SAM_APDU [13:12:22]CAPDU: 80 11 00 00 [13:12:22]Write to MH i2c: E2 08 00 13 4C 80 11 00 00 00 00 00 00 D9 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:22]Read from MH i2c: E2 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 17 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: E2 17 00 13 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 30 [13:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:22]wFMCommunicate OK [13:12:22]CreateOFDProtocolMessage done [13:12:22]OFDSenderStorePacket 140162 [13:12:22]StoreOFDPacket docnum=140162 [13:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 AC 18 08 01 E5 BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B3 00 00 00 F4 03 04 00 B8 E7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 23 02 00 35 04 06 00 4E 87 28 B9 40 D8 4E A6 1B 19 48 60 E3 A7 [13:12:22]CheckFolder [13:12:22]dirname=/storage/ofd_packets [13:12:22]CheckFolder done [13:12:22]ProducePacketName [13:12:22]name=ofd_packets/00140162 [13:12:22]NVStorageSaveData ofd_packets/00140162 [13:12:22]File name is /storage/ofd_packets/00140162 [13:12:22]Write 302 bytes [13:12:22]NVStorageSaveData done [13:12:22]OFDSenderStorePacket done [13:12:22]KKMCreateOFDPacket done [13:12:22]NVStorageSaveData kkm_last_timestamp [13:12:22]File name is /storage/kkm_last_timestamp [13:12:22]Write 4 bytes [13:12:22]NVStorageSaveData done [13:12:22]ExternCall_PrintAddStr [13:12:22]wPrintStart [13:12:22]Write to MH i2c: 01 00 00 14 4C 60 [13:12:22]Write i2c OK [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: 01 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: 01 07 00 [13:12:22]MH_I2C_Read... [13:12:22]Read from MH i2c: 01 07 00 14 4C 00 00 00 00 00 FF 0F 75 [13:12:22]RasterBufferAndPrint [13:12:22]line Счет N : (1)594016 [13:12:22]line ИНН: 02508201610067 [13:12:22]line Контрольно-Кассовый Чек [13:12:22]line ПРОДАЖА [13:12:22]line ТРК (МРК, ГНК) : 64 [13:12:22]line Товар: 2710194210 [13:12:22]line ДТ(л)-К-5 [13:12:22]line 26.250 * 76.20 [13:12:22]line = 2000.25 [13:12:22]line НДС 12% НСП 1% [13:12:22]line > о реализуемом товаре [13:12:22]line ОКРУГЛЕНИЕ: -0.25 [13:12:22]line ИТОГО: 2000.00 [13:12:22]line Внесено: 2000.00 [13:12:22]line СДАЧА: 0.00 [13:12:22]line НСП 1% : 17.70 [13:12:22]line НДС 12% : 212.42 [13:12:22]line Наличными: 2000.00 [13:12:22]line Безнал.: 0.00 [13:12:22]line Место: АЗС № 136 "Партнер Нефть" [13:12:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:12:22]line СНО: Общий режим [13:12:22]line Чек 179 21.08.2024 13:12 [13:12:22]line Смена: 454 ФФД: 1.0 [13:12:22]line ЗНМ: 0300000067 [13:12:22]line РНМ: 0000000000092569 [13:12:22]line Версия ККМ: 001 [13:12:22]line ФМ: 0000000000871776 [13:12:22]line ФД: 140162 [13:12:22]line ФПД: 86342410780888 [13:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131224&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140162&fm=86342410780888&tin=02508201610067®Number=0000000000092569&sum=200000 [13:12:23]OFD Sender: Processing packet 140162 [packets to send 137, broken 136] [13:12:23]ProducePacketName [13:12:23]name=ofd_packets/00140162 [13:12:23]OFD Sender: To server: pG, [13:12:23]CommunicateWithHost lk.salyk.kg:30040 [13:12:23]ConnectInit lk.salyk.kg [13:12:23]written 0, free lines is 4095 [13:12:23]Connected sock=10 [13:12: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 37 36 10 01 00 00 AC 18 08 01 E5 BB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B3 00 00 00 F4 03 04 00 B8 E7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 23 02 00 35 04 06 00 4E 87 28 B9 40 D8 4E A6 1B 19 48 60 E3 A7 [13:12: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 37 36 4F 00 00 00 88 13 47 00 43 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 37 36 10 04 04 00 82 23 02 00 F4 03 04 00 49 8E C5 66 B6 04 01 00 00 78 C1 24 EC E8 CE B7 3F [13:12:23]CommunicateWithHost err = 0 [13:12:23]CheckOFDResponse [13:12:23]1017 (14) - 77093643461234 [13:12:23]1041 (16) - 0000000000871776 [13:12:23]1040 (4) - 140162 [13:12:23]1012 (4) - 21.08.2024 06:50 [13:12:23]1206 (1) - 0 [13:12:23]OFD Sender: Remove packet 140162 [13:12:23]ProducePacketName [13:12:23]name=ofd_packets/00140162 [13:12:23]NVStorageDeleteData [13:12:23]Write to MH i2c: 01 00 00 3F 4C 8B [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: 01 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: 01 07 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: 01 07 00 3F 4C 00 00 00 00 00 D8 0C 76 [13:12:23]RasterBufferAndPrint [13:12:23]line [13:12:23]line [13:12:23]line [13:12:23]line [13:12:23]line [13:12:23]written 0, free lines is 3296 [13:12:23]MH_Cut [13:12:23]Write to MH i2c: D1 01 00 46 4C 01 64 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: D1 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: D1 01 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: D1 01 00 46 4C 00 63 [13:12:23]Write to MH i2c: 01 00 00 47 4C 93 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:24]OFD Sender: No OFD packet to send [13:12:24]*** Cut start [13:12:24]*** Partial cut [13:12:24]*** CUTSNS_PIN = 1 [13:12:24]*** CUTSNS_PIN = 0 [13:12:24]*** Brake cut motor [13:12:24]Read from MH i2c: 01 [13:12:24]MH_I2C_Read... [13:12:24]*** Stop cut motor [13:12:24]*** Cut end [13:12:24]Read from MH i2c: 01 07 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 47 4C 00 00 00 00 00 FF 0F A8 [13:12:24]process_action close_receipt done [13:12:24]requested_data is exist [13:12:24]produce_requested_data [13:12:24]requested_item fm.sn is exist - process it [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 11 00 00 [13:12:24]Write to MH i2c: E2 08 00 48 4C 80 11 00 00 00 00 00 00 0E [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 17 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 17 00 48 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [13:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:12:25]wFMCommunicate OK [13:12:25]requested_item fd.num is exist - process it [13:12:25]SAM_PROTO_GetFieldsCounters [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 13 00 00 [13:12:25]Write to MH i2c: E2 08 00 49 4C 80 13 00 00 00 00 00 00 11 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 62 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 62 00 49 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:25]wFMCommunicate OK [13:12:25]SAM_PROTO_GetFieldsCounters done [13:12:25]requested_item shift.num is exist - process it [13:12:25]requested_item shift.opened is exist - process it [13:12:25]req_shift_opened [13:12:25]FM_GetShiftState [13:12:25]SAM_PROTO_GetShiftState [13:12:25]wFMCommunicate request_size=4 [13:12:25]MH_SAM_APDU [13:12:25]CAPDU: 80 13 01 00 [13:12:25]Write to MH i2c: E2 08 00 4A 4C 80 13 01 00 00 00 00 00 13 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:25]Read from MH i2c: E2 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 0E 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: E2 0E 00 4A 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 93 [13:12:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:12:25]wFMCommunicate OK [13:12:25]SAM_PROTO_GetShiftState done [13:12:25]FM_GetShiftState done [13:12:25]req_shift_opened done [13:12:25]requested_item shift.open_date is exist - process it [13:12:25]req_shift_open_date [13:12:25]req_shift_open_date done [13:12:25]produce_requested_data done [13:12:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140162,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:12:25]process_action_free close_receipt [13:12:25]json_value_free [13:12:25]json_value_free done [13:12:25]process_json_proto returns [13:12:25]Send response to host [13:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140162,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:12:25]free response buf [13:12:25]execute_script done [13:12:25]execute_script returns [13:12:25]free content buf [13:12:25]Sock 7.Close socket [13:12:25]Sock 7.Thread stoped [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:02]accept exits with 9 [13:14:02]New connection [13:14:02]New thread 3066764644 created [13:14:02]Thread 3066908004 joined [13:14:02]Waiting for new connection... [13:14:02] Sock 9.Parse request [13:14:02]Sock 9.Check first char [13:14:02]Sock 9.First char is OK [13:14:02]request: POST /json_proto HTTP/1.0 [13:14:02]Method: POST [13:14:02]URL: /json_proto [13:14:02]Method is POST - this is cgi request [13:14:02]url: /json_proto [13:14:02]query_string will be loaded in cgi processing [13:14:02]execute_cgi json_proto POST (null) [13:14:02]execute_cgi path=json_proto method=POST [13:14:02]POST find Content-Length [13:14:02]Host: 172.17.45.67:8080 [13:14:02]Content-Length: 663 [13:14:02]Content-Type: application/json [13:14:02] [13:14:02]POST finish read [13:14:02]Found Content-Length = 663 [13:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:02]execute_script... [13:14: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)594017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:02]POST & json_proto [13:14:02]process_json_proto [13:14:02]json parsed OK: [13:14:02]protocol is kg_v1.0 [13:14:02]action value=close_receipt [13:14:02]process_action close_receipt [13:14:02]cmd_close_receipt [13:14:02]MH_GetDate [13:14:02]Write to MH i2c: F0 00 00 4B 4C 86 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: F0 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: F0 09 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: F0 09 00 4B 4C 00 1D E8 C5 66 5F 7F 2B 66 2E [13:14:02]GetLastDocTimeStamp 1724245944 [13:14:02]current date 1724246045 [13:14:02]FM_GetShiftState [13:14:02]SAM_PROTO_GetShiftState [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 13 01 00 [13:14:02]Write to MH i2c: E2 08 00 4C 4C 80 13 01 00 00 00 00 00 15 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0E 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0E 00 4C 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 95 [13:14:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:14:02]wFMCommunicate OK [13:14:02]SAM_PROTO_GetShiftState done [13:14:02]FM_GetShiftState done [13:14:02]opened in 1724200467 [13:14:02]opened+sec_in_day 1724286867 [13:14:02]quantity*price = 100035 [13:14:02]sum+1 = 100036 [13:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 180 21.08.2024 13:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140163 ФПД: 188695905262028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140163&fm=188695905262028&tin=02508201610067®Number=0000000000092569&sum=100000 [13:14:03]StoreToDocumentArchive [13:14:03]shift 454 fd 140163 [13:14:03]save to /storage/0454/doc_00140163 [13:14:03]save last doc name /storage/0454/doc_00140163 to /storage/kkm_last_doc_name [13:14:03]save OK [13:14:03]Clear old archive folders... [13:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:14:03]tlvbuf is 00B63E40 [13:14:03]SAM_PROTO_ClearQueue [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 09 00 00 [13:14:03]Write to MH i2c: E2 08 00 59 4C 80 09 00 00 00 00 00 00 17 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 59 4C 00 90 00 19 [13:14:03]RAPDU: 90 00 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_ClearQueue done [13:14:03]KKMCreateOFDPacket [13:14:03]OFDProtocolAddRootSTLVToBuf [13:14:03]FM_MakeSignedData [13:14:03]FM_MakeSignedData [13:14:03]SAM_PROTO_SignData [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 0D 01 02 [13:14:03]Write to MH i2c: E2 08 00 5A 4C 80 0D 01 02 00 00 00 00 1F [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 5A 4C 00 90 00 1A [13:14:03]RAPDU: 90 00 [13:14:03]wFMCommunicate OK [13:14:03]wFMCommunicate request_size=253 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D E8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 23 02 00 35 04 06 00 AB 9E 30 67 59 CC [13:14:03]Write to MH i2c: E2 00 01 5B 4C 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D E8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 23 02 00 35 04 06 00 AB 9E 30 67 59 CC 00 00 EF [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 03 00 5B 4C 00 90 00 1B [13:14:03]RAPDU: 90 00 [13:14:03]wFMCommunicate OK [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 0D 03 02 [13:14:03]Write to MH i2c: E2 08 00 5C 4C 80 0D 03 02 00 00 00 00 23 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0B 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 0B 00 5C 4C 00 53 42 57 99 0B F1 5B 48 90 00 48 [13:14:03]RAPDU: 53 42 57 99 0B F1 5B 48 90 00 [13:14:03]wFMCommunicate OK [13:14:03]SAM_PROTO_SignData done [13:14:03]FM_MakeSignedData done [13:14:03]CreateOFDProtocolMessage [13:14:03]wFMCommunicate request_size=4 [13:14:03]MH_SAM_APDU [13:14:03]CAPDU: 80 11 00 00 [13:14:03]Write to MH i2c: E2 08 00 5D 4C 80 11 00 00 00 00 00 00 23 [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:03]Read from MH i2c: E2 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 17 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: E2 17 00 5D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [13:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:14:03]wFMCommunicate OK [13:14:03]CreateOFDProtocolMessage done [13:14:03]OFDSenderStorePacket 140163 [13:14:03]StoreOFDPacket docnum=140163 [13:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 3E EF 00 01 F5 4E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D E8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 23 02 00 35 04 06 00 AB 9E 30 67 59 CC 53 42 57 99 0B F1 5B 48 [13:14:03]CheckFolder [13:14:03]dirname=/storage/ofd_packets [13:14:03]CheckFolder done [13:14:03]ProducePacketName [13:14:03]name=ofd_packets/00140163 [13:14:03]NVStorageSaveData ofd_packets/00140163 [13:14:03]File name is /storage/ofd_packets/00140163 [13:14:03]Write 294 bytes [13:14:03]NVStorageSaveData done [13:14:03]OFDSenderStorePacket done [13:14:03]KKMCreateOFDPacket done [13:14:03]NVStorageSaveData kkm_last_timestamp [13:14:03]File name is /storage/kkm_last_timestamp [13:14:03]Write 4 bytes [13:14:03]NVStorageSaveData done [13:14:03]ExternCall_PrintAddStr [13:14:03]wPrintStart [13:14:03]Write to MH i2c: 01 00 00 5E 4C AA [13:14:03]Write i2c OK [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 07 00 [13:14:03]MH_I2C_Read... [13:14:03]Read from MH i2c: 01 07 00 5E 4C 00 00 00 00 00 FF 0F BF [13:14:03]RasterBufferAndPrint [13:14:03]line Счет N : (1)594017 [13:14:03]line ИНН: 02508201610067 [13:14:03]line Контрольно-Кассовый Чек [13:14:03]line ПРОДАЖА [13:14:03]line ТРК (МРК, ГНК) : 43 [13:14:03]line Товар: 2710124130 [13:14:03]line SU-92 [13:14:03]line 14.540 * 68.80 [13:14:03]line = 1000.35 [13:14:03]line НДС 12% НСП 1% [13:14:03]line > о реализуемом товаре [13:14:03]line ОКРУГЛЕНИЕ: -0.35 [13:14:03]line ИТОГО: 1000.00 [13:14:03]line Внесено: 1000.00 [13:14:03]line СДАЧА: 0.00 [13:14:03]line НСП 1% : 8.85 [13:14:03]line НДС 12% : 106.23 [13:14:03]line Наличными: 1000.00 [13:14:03]line Безнал.: 0.00 [13:14:03]line Место: АЗС № 136 "Партнер Нефть" [13:14:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:14:03]line СНО: Общий режим [13:14:03]line Чек 180 21.08.2024 13:14 [13:14:03]line Смена: 454 ФФД: 1.0 [13:14:03]line ЗНМ: 0300000067 [13:14:03]line РНМ: 0000000000092569 [13:14:03]line Версия ККМ: 001 [13:14:03]line ФМ: 0000000000871776 [13:14:03]line ФД: 140163 [13:14:03]line ФПД: 188695905262028 [13:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140163&fm=188695905262028&tin=02508201610067®Number=0000000000092569&sum=100000 [13:14:04]OFD Sender: Processing packet 140163 [packets to send 137, broken 136] [13:14:04]ProducePacketName [13:14:04]name=ofd_packets/00140163 [13:14:04]OFD Sender: To server: pG, [13:14:04]CommunicateWithHost lk.salyk.kg:30040 [13:14:04]ConnectInit lk.salyk.kg [13:14:04]written 0, free lines is 4095 [13:14:04]Write to MH i2c: 01 00 00 89 4C D5 [13:14:04]Write i2c OK [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: 01 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: 01 07 00 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: 01 07 00 89 4C 00 00 00 00 00 D6 0C BE [13:14:04]RasterBufferAndPrint [13:14:04]line [13:14:04]line [13:14:04]line [13:14:04]line [13:14:04]line [13:14:04]written 0, free lines is 3293 [13:14:04]MH_Cut [13:14:04]Write to MH i2c: D1 01 00 90 4C 01 AE [13:14:04]Write i2c OK [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: D1 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: D1 01 00 [13:14:04]MH_I2C_Read... [13:14:04]Read from MH i2c: D1 01 00 90 4C 00 AD [13:14:04]Write to MH i2c: 01 00 00 91 4C DD [13:14:04]Write i2c OK [13:14:04]MH_I2C_Read... [13:14:05]*** Cut start [13:14:05]*** Partial cut [13:14:05]*** CUTSNS_PIN = 1 [13:14:05]*** CUTSNS_PIN = 0 [13:14:05]*** Brake cut motor [13:14:05]Read from MH i2c: 01 [13:14:05]MH_I2C_Read... [13:14:05]*** Stop cut motor [13:14:05]*** Cut end [13:14:05]Read from MH i2c: 01 07 00 [13:14:05]MH_I2C_Read... [13:14:05]Read from MH i2c: 01 07 00 91 4C 00 00 00 00 00 FF 0F F2 [13:14:05]process_action close_receipt done [13:14:05]requested_data is exist [13:14:05]produce_requested_data [13:14:05]requested_item fm.sn is exist - process it [13:14:05]wFMCommunicate request_size=4 [13:14:05]MH_SAM_APDU [13:14:05]CAPDU: 80 11 00 00 [13:14:05]Write to MH i2c: E2 08 00 92 4C 80 11 00 00 00 00 00 00 58 [13:14:05]Write i2c OK [13:14:05]MH_I2C_Read... [13:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:06]Read from MH i2c: E2 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 17 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 17 00 92 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [13:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:14:06]wFMCommunicate OK [13:14:06]requested_item fd.num is exist - process it [13:14:06]SAM_PROTO_GetFieldsCounters [13:14:06]wFMCommunicate request_size=4 [13:14:06]MH_SAM_APDU [13:14:06]CAPDU: 80 13 00 00 [13:14:06]Write to MH i2c: E2 08 00 93 4C 80 13 00 00 00 00 00 00 5B [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:06]Read from MH i2c: E2 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 62 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 62 00 93 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [13:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:06]wFMCommunicate OK [13:14:06]SAM_PROTO_GetFieldsCounters done [13:14:06]requested_item shift.num is exist - process it [13:14:06]requested_item shift.opened is exist - process it [13:14:06]req_shift_opened [13:14:06]FM_GetShiftState [13:14:06]SAM_PROTO_GetShiftState [13:14:06]wFMCommunicate request_size=4 [13:14:06]MH_SAM_APDU [13:14:06]CAPDU: 80 13 01 00 [13:14:06]Write to MH i2c: E2 08 00 94 4C 80 13 01 00 00 00 00 00 5D [13:14:06]Write i2c OK [13:14:06]MH_I2C_Read... [13:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:06]Read from MH i2c: E2 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 0E 00 [13:14:06]MH_I2C_Read... [13:14:06]Read from MH i2c: E2 0E 00 94 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DD [13:14:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:14:06]wFMCommunicate OK [13:14:06]SAM_PROTO_GetShiftState done [13:14:06]FM_GetShiftState done [13:14:06]req_shift_opened done [13:14:06]requested_item shift.open_date is exist - process it [13:14:06]req_shift_open_date [13:14:06]req_shift_open_date done [13:14:06]produce_requested_data done [13:14:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140163,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:14:06]process_action_free close_receipt [13:14:06]json_value_free [13:14:06]json_value_free done [13:14:06]process_json_proto returns [13:14:06]Send response to host [13:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140163,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:14:06]free response buf [13:14:06]execute_script done [13:14:06]execute_script returns [13:14:06]free content buf [13:14:06]Sock 9.Close socket [13:14:06]Sock 9.Thread stoped [13:16:15]ConnectInit Can't connect to host [13:16:15]CommunicateWithHost connect error [13:16:15]CommunicateWithHost err = -1 [13:16:15]OFD Sender: Server communicate error [13:16:20]OFD Sender: Processing packet 140163 [packets to send 137, broken 136] [13:16:20]ProducePacketName [13:16:20]name=ofd_packets/00140163 [13:16:20]OFD Sender: To server: pG, [13:16:20]CommunicateWithHost lk.salyk.kg:30040 [13:16:20]ConnectInit lk.salyk.kg [13:16:20]Connected sock=9 [13:16: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 37 36 08 01 00 00 3E EF 00 01 F5 4E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 1D E8 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 23 02 00 35 04 06 00 AB 9E 30 67 59 CC 53 42 57 99 0B F1 5B 48 [13:16:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A2 A5 47 00 B4 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 23 02 00 F4 03 04 00 36 8F C5 66 B6 04 01 00 00 31 50 99 2E BF 71 32 18 [13:16:20]CommunicateWithHost err = 0 [13:16:20]CheckOFDResponse [13:16:20]1017 (14) - 77093643461234 [13:16:20]1041 (16) - 0000000000871776 [13:16:20]1040 (4) - 140163 [13:16:20]1012 (4) - 21.08.2024 06:54 [13:16:20]1206 (1) - 0 [13:16:20]OFD Sender: Remove packet 140163 [13:16:20]ProducePacketName [13:16:20]name=ofd_packets/00140163 [13:16:20]NVStorageDeleteData [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:52]accept exits with 7 [13:17:52]New connection [13:17:52]New thread 3066908004 created [13:17:52]Thread 3066764644 joined [13:17:52]Waiting for new connection... [13:17:52] Sock 7.Parse request [13:17:52]Sock 7.Check first char [13:17:52]Sock 7.First char is OK [13:17:52]request: POST /json_proto HTTP/1.0 [13:17:52]Method: POST [13:17:52]URL: /json_proto [13:17:52]Method is POST - this is cgi request [13:17:52]url: /json_proto [13:17:52]query_string will be loaded in cgi processing [13:17:52]execute_cgi json_proto POST (null) [13:17:52]execute_cgi path=json_proto method=POST [13:17:52]POST find Content-Length [13:17:52]Host: 172.17.45.67:8080 [13:17:52]Content-Length: 677 [13:17:52]Content-Type: application/json [13:17:52] [13:17:52]POST finish read [13:17:52]Found Content-Length = 677 [13:17:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:52]execute_script... [13:17: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)594018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:52]POST & json_proto [13:17:52]process_json_proto [13:17:52]json parsed OK: [13:17:52]protocol is kg_v1.0 [13:17:52]action value=close_receipt [13:17:52]process_action close_receipt [13:17:52]cmd_close_receipt [13:17:52]MH_GetDate [13:17:52]Write to MH i2c: F0 00 00 95 4C D0 [13:17:52]Write i2c OK [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: F0 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: F0 09 00 [13:17:52]MH_I2C_Read... [13:17:52]Read from MH i2c: F0 09 00 95 4C 00 04 E9 C5 66 5F 7F 2B 66 60 [13:17:52]GetLastDocTimeStamp 1724246045 [13:17:52]current date 1724246276 [13:17:52]FM_GetShiftState [13:17:52]SAM_PROTO_GetShiftState [13:17:52]wFMCommunicate request_size=4 [13:17:52]MH_SAM_APDU [13:17:52]CAPDU: 80 13 01 00 [13:17:52]Write to MH i2c: E2 08 00 96 4C 80 13 01 00 00 00 00 00 5F [13:17:52]Write i2c OK [13:17:52]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 96 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DF [13:17:52]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [13:17:52]opened+sec_in_day 1724286867 [13:17:52]quantity*price = 30035 [13:17:52]sum+1 = 30036 [13:17:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 181 21.08.2024 13:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140164 ФПД: 43955563183134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131756&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140164&fm=43955563183134&tin=02508201610067®Number=0000000000092569&sum=30000 [13:17:53]StoreToDocumentArchive [13:17:53]shift 454 fd 140164 [13:17:53]save to /storage/0454/doc_00140164 [13:17:53]save last doc name /storage/0454/doc_00140164 to /storage/kkm_last_doc_name [13:17:53]save OK [13:17:53]Clear old archive folders... [13:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:53]tlvbuf is B6F4A010 [13:17:53]SAM_PROTO_ClearQueue [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 09 00 00 [13:17:53]Write to MH i2c: E2 08 00 A3 4C 80 09 00 00 00 00 00 00 61 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 A3 4C 00 90 00 63 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]SAM_PROTO_ClearQueue done [13:17:53]KKMCreateOFDPacket [13:17:53]OFDProtocolAddRootSTLVToBuf [13:17:53]FM_MakeSignedData [13:17:53]FM_MakeSignedData [13:17:53]SAM_PROTO_SignData [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 0D 01 02 [13:17:53]Write to MH i2c: E2 08 00 A4 4C 80 0D 01 02 00 00 00 00 69 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 A4 4C 00 90 00 64 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]wFMCommunicate request_size=255 [13:17:53]MH_SAM_APDU [13:17: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 04 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 23 02 00 35 04 06 00 27 [13:17:53]Write to MH i2c: E2 02 01 A5 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 04 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 23 02 00 35 04 06 00 27 00 00 75 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 A5 4C 00 90 00 65 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]wFMCommunicate request_size=10 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 0D 02 02 05 FA 33 BA BC 1E [13:17:53]Write to MH i2c: E2 0D 00 A6 4C 80 0D 02 02 05 00 FA 33 BA BC 1E 00 00 37 [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:53]Read from MH i2c: E2 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 [13:17:53]MH_I2C_Read... [13:17:53]Read from MH i2c: E2 03 00 A6 4C 00 90 00 66 [13:17:53]RAPDU: 90 00 [13:17:53]wFMCommunicate OK [13:17:53]wFMCommunicate request_size=4 [13:17:53]MH_SAM_APDU [13:17:53]CAPDU: 80 0D 03 02 [13:17:53]Write to MH i2c: E2 08 00 A7 4C 80 0D 03 02 00 00 00 00 6E [13:17:53]Write i2c OK [13:17:53]MH_I2C_Read... [13:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:54]Read from MH i2c: E2 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0B 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 0B 00 A7 4C 00 D7 CE B5 45 BA F0 0B EB 90 00 AE [13:17:54]RAPDU: D7 CE B5 45 BA F0 0B EB 90 00 [13:17:54]wFMCommunicate OK [13:17:54]SAM_PROTO_SignData done [13:17:54]FM_MakeSignedData done [13:17:54]CreateOFDProtocolMessage [13:17:54]wFMCommunicate request_size=4 [13:17:54]MH_SAM_APDU [13:17:54]CAPDU: 80 11 00 00 [13:17:54]Write to MH i2c: E2 08 00 A8 4C 80 11 00 00 00 00 00 00 6E [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:54]Read from MH i2c: E2 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 17 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: E2 17 00 A8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [13:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:17:54]wFMCommunicate OK [13:17:54]CreateOFDProtocolMessage done [13:17:54]OFDSenderStorePacket 140164 [13:17:54]StoreOFDPacket docnum=140164 [13:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 44 07 01 D8 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 04 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 23 02 00 35 04 06 00 27 FA 33 BA BC 1E D7 CE B5 45 BA F0 0B EB [13:17:54]CheckFolder [13:17:54]dirname=/storage/ofd_packets [13:17:54]CheckFolder done [13:17:54]ProducePacketName [13:17:54]name=ofd_packets/00140164 [13:17:54]NVStorageSaveData ofd_packets/00140164 [13:17:54]File name is /storage/ofd_packets/00140164 [13:17:54]Write 301 bytes [13:17:54]NVStorageSaveData done [13:17:54]OFDSenderStorePacket done [13:17:54]KKMCreateOFDPacket done [13:17:54]NVStorageSaveData kkm_last_timestamp [13:17:54]File name is /storage/kkm_last_timestamp [13:17:54]Write 4 bytes [13:17:54]NVStorageSaveData done [13:17:54]ExternCall_PrintAddStr [13:17:54]wPrintStart [13:17:54]Write to MH i2c: 01 00 00 A9 4C F5 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 07 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 07 00 A9 4C 00 00 00 00 00 FF 0F 0A [13:17:54]RasterBufferAndPrint [13:17:54]line Счет N : (1)594018 [13:17:54]line ИНН: 02508201610067 [13:17:54]line Контрольно-Кассовый Чек [13:17:54]line ПРОДАЖА [13:17:54]line ТРК (МРК, ГНК) : 52 [13:17:54]line Товар: 2710124130 [13:17:54]line Аи-92-К-5 [13:17:54]line 4.430 * 67.80 [13:17:54]line = 300.35 [13:17:54]line НДС 12% НСП 1% [13:17:54]line > о реализуемом товаре [13:17:54]line ОКРУГЛЕНИЕ: -0.35 [13:17:54]line ИТОГО: 300.00 [13:17:54]line Внесено: 300.00 [13:17:54]line СДАЧА: 0.00 [13:17:54]line НСП 1% : 2.66 [13:17:54]line НДС 12% : 31.90 [13:17:54]line Наличными: 300.00 [13:17:54]line Безнал.: 0.00 [13:17:54]line Место: АЗС № 136 "Партнер Нефть" [13:17:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:17:54]line СНО: Общий режим [13:17:54]line Чек 181 21.08.2024 13:17 [13:17:54]line Смена: 454 ФФД: 1.0 [13:17:54]line ЗНМ: 0300000067 [13:17:54]line РНМ: 0000000000092569 [13:17:54]line Версия ККМ: 001 [13:17:54]line ФМ: 0000000000871776 [13:17:54]line ФД: 140164 [13:17:54]line ФПД: 43955563183134 [13:17:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131756&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140164&fm=43955563183134&tin=02508201610067®Number=0000000000092569&sum=30000 [13:17:54]written 0, free lines is 4095 [13:17:54]OFD Sender: Processing packet 140164 [packets to send 137, broken 136] [13:17:54]ProducePacketName [13:17:54]name=ofd_packets/00140164 [13:17:54]OFD Sender: To server: pG, [13:17:54]CommunicateWithHost lk.salyk.kg:30040 [13:17:54]ConnectInit lk.salyk.kg [13:17:54]Connected sock=10 [13:17: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 37 36 0F 01 00 00 52 44 07 01 D8 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 04 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 23 02 00 35 04 06 00 27 FA 33 BA BC 1E D7 CE B5 45 BA F0 0B EB [13:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E8 F8 47 00 85 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 23 02 00 F4 03 04 00 94 8F C5 66 B6 04 01 00 00 15 61 9C 11 D7 73 86 2E [13:17:54]CommunicateWithHost err = 0 [13:17:54]CheckOFDResponse [13:17:54]1017 (14) - 77093643461234 [13:17:54]1041 (16) - 0000000000871776 [13:17:54]1040 (4) - 140164 [13:17:54]1012 (4) - 21.08.2024 06:56 [13:17:54]1206 (1) - 0 [13:17:54]OFD Sender: Remove packet 140164 [13:17:54]ProducePacketName [13:17:54]name=ofd_packets/00140164 [13:17:54]NVStorageDeleteData [13:17:54]Write to MH i2c: 01 00 00 D4 4C 20 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 07 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: 01 07 00 D4 4C 00 00 00 00 00 CD 0C 00 [13:17:54]RasterBufferAndPrint [13:17:54]line [13:17:54]line [13:17:54]line [13:17:54]line [13:17:54]line [13:17:54]written 0, free lines is 3284 [13:17:54]MH_Cut [13:17:54]Write to MH i2c: D1 01 00 DB 4C 01 F9 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: D1 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: D1 01 00 [13:17:54]MH_I2C_Read... [13:17:54]Read from MH i2c: D1 01 00 DB 4C 00 F8 [13:17:54]Write to MH i2c: 01 00 00 DC 4C 28 [13:17:54]Write i2c OK [13:17:54]MH_I2C_Read... [13:17:55]OFD Sender: No OFD packet to send [13:17:55]*** Cut start [13:17:55]*** Partial cut [13:17:55]*** CUTSNS_PIN = 1 [13:17:55]*** CUTSNS_PIN = 0 [13:17:55]*** Brake cut motor [13:17:56]Read from MH i2c: 01 [13:17:56]MH_I2C_Read... [13:17:56]*** Stop cut motor [13:17:56]*** Cut end [13:17:56]Read from MH i2c: 01 07 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: 01 07 00 DC 4C 00 00 00 00 00 FF 0F 3D [13:17:56]process_action close_receipt done [13:17:56]requested_data is exist [13:17:56]produce_requested_data [13:17:56]requested_item fm.sn is exist - process it [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 11 00 00 [13:17:56]Write to MH i2c: E2 08 00 DD 4C 80 11 00 00 00 00 00 00 A3 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 17 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 17 00 DD 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [13:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:17:56]wFMCommunicate OK [13:17:56]requested_item fd.num is exist - process it [13:17:56]SAM_PROTO_GetFieldsCounters [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 13 00 00 [13:17:56]Write to MH i2c: E2 08 00 DE 4C 80 13 00 00 00 00 00 00 A6 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 62 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 62 00 DE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [13:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_GetFieldsCounters done [13:17:56]requested_item shift.num is exist - process it [13:17:56]requested_item shift.opened is exist - process it [13:17:56]req_shift_opened [13:17:56]FM_GetShiftState [13:17:56]SAM_PROTO_GetShiftState [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 13 01 00 [13:17:56]Write to MH i2c: E2 08 00 DF 4C 80 13 01 00 00 00 00 00 A8 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 DF 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 28 [13:17:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_GetShiftState done [13:17:56]FM_GetShiftState done [13:17:56]req_shift_opened done [13:17:56]requested_item shift.open_date is exist - process it [13:17:56]req_shift_open_date [13:17:56]req_shift_open_date done [13:17:56]produce_requested_data done [13:17:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140164,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:17:56]process_action_free close_receipt [13:17:56]json_value_free [13:17:56]json_value_free done [13:17:56]process_json_proto returns [13:17:56]Send response to host [13:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140164,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:17:56]free response buf [13:17:56]execute_script done [13:17:56]execute_script returns [13:17:56]free content buf [13:17:56]Sock 7.Close socket [13:17:56]Sock 7.Thread stoped [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:33]accept exits with 9 [13:18:33]New connection [13:18:33]New thread 3066764644 created [13:18:33]Thread 3066908004 joined [13:18:33]Waiting for new connection... [13:18:33] Sock 9.Parse request [13:18:33]Sock 9.Check first char [13:18:33]Sock 9.First char is OK [13:18:33]request: POST /json_proto HTTP/1.0 [13:18:33]Method: POST [13:18:33]URL: /json_proto [13:18:33]Method is POST - this is cgi request [13:18:33]url: /json_proto [13:18:33]query_string will be loaded in cgi processing [13:18:33]execute_cgi json_proto POST (null) [13:18:33]execute_cgi path=json_proto method=POST [13:18:33]POST find Content-Length [13:18:33]Host: 172.17.45.67:8080 [13:18:33]Content-Length: 677 [13:18:33]Content-Type: application/json [13:18:33] [13:18:33]POST finish read [13:18:33]Found Content-Length = 677 [13:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:33]execute_script... [13:18: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)594019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:33]POST & json_proto [13:18:33]process_json_proto [13:18:33]json parsed OK: [13:18:33]protocol is kg_v1.0 [13:18:33]action value=close_receipt [13:18:33]process_action close_receipt [13:18:33]cmd_close_receipt [13:18:33]MH_GetDate [13:18:33]Write to MH i2c: F0 00 00 E0 4C 1B [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 09 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: F0 09 00 E0 4C 00 2C E9 C5 66 5F 7F 2B 66 D3 [13:18:33]GetLastDocTimeStamp 1724246276 [13:18:33]current date 1724246316 [13:18:33]FM_GetShiftState [13:18:33]SAM_PROTO_GetShiftState [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 13 01 00 [13:18:33]Write to MH i2c: E2 08 00 E1 4C 80 13 01 00 00 00 00 00 AA [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0E 00 E1 4C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2A [13:18:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_GetShiftState done [13:18:33]FM_GetShiftState done [13:18:33]opened in 1724200467 [13:18:33]opened+sec_in_day 1724286867 [13:18:33]quantity*price = 50036 [13:18:33]sum+1 = 50037 [13:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 182 21.08.2024 13:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140165 ФПД: 228267487637942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140165&fm=228267487637942&tin=02508201610067®Number=0000000000092569&sum=50000 [13:18:34]StoreToDocumentArchive [13:18:34]shift 454 fd 140165 [13:18:34]save to /storage/0454/doc_00140165 [13:18:34]save last doc name /storage/0454/doc_00140165 to /storage/kkm_last_doc_name [13:18:34]save OK [13:18:34]Clear old archive folders... [13:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:34]tlvbuf is 00B51400 [13:18:34]SAM_PROTO_ClearQueue [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 09 00 00 [13:18:34]Write to MH i2c: E2 08 00 EE 4C 80 09 00 00 00 00 00 00 AC [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 EE 4C 00 90 00 AE [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_ClearQueue done [13:18:34]KKMCreateOFDPacket [13:18:34]OFDProtocolAddRootSTLVToBuf [13:18:34]FM_MakeSignedData [13:18:34]FM_MakeSignedData [13:18:34]SAM_PROTO_SignData [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 01 02 [13:18:34]Write to MH i2c: E2 08 00 EF 4C 80 0D 01 02 00 00 00 00 B4 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 EF 4C 00 90 00 AF [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=255 [13:18:34]MH_SAM_APDU [13:18: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 2C E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 23 02 00 35 04 06 00 CF [13:18:34]Write to MH i2c: E2 02 01 F0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 2C E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 23 02 00 35 04 06 00 CF 00 00 73 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 F0 4C 00 90 00 B0 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=10 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 02 02 05 9B AA 83 B1 B6 [13:18:34]Write to MH i2c: E2 0D 00 F1 4C 80 0D 02 02 05 00 9B AA 83 B1 B6 00 00 F0 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 03 00 F1 4C 00 90 00 B1 [13:18:34]RAPDU: 90 00 [13:18:34]wFMCommunicate OK [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 0D 03 02 [13:18:34]Write to MH i2c: E2 08 00 F2 4C 80 0D 03 02 00 00 00 00 B9 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0B 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0B 00 F2 4C 00 BD F5 8E E3 5C C7 F4 42 90 00 36 [13:18:34]RAPDU: BD F5 8E E3 5C C7 F4 42 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_SignData done [13:18:34]FM_MakeSignedData done [13:18:34]CreateOFDProtocolMessage [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 11 00 00 [13:18:34]Write to MH i2c: E2 08 00 F3 4C 80 11 00 00 00 00 00 00 B9 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 F3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [13:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:18:34]wFMCommunicate OK [13:18:34]CreateOFDProtocolMessage done [13:18:34]OFDSenderStorePacket 140165 [13:18:34]StoreOFDPacket docnum=140165 [13:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 00 01 07 01 B0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 2C E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 23 02 00 35 04 06 00 CF 9B AA 83 B1 B6 BD F5 8E E3 5C C7 F4 42 [13:18:34]CheckFolder [13:18:34]dirname=/storage/ofd_packets [13:18:34]CheckFolder done [13:18:34]ProducePacketName [13:18:34]name=ofd_packets/00140165 [13:18:34]NVStorageSaveData ofd_packets/00140165 [13:18:34]File name is /storage/ofd_packets/00140165 [13:18:34]Write 301 bytes [13:18:34]NVStorageSaveData done [13:18:34]OFDSenderStorePacket done [13:18:34]KKMCreateOFDPacket done [13:18:34]NVStorageSaveData kkm_last_timestamp [13:18:34]File name is /storage/kkm_last_timestamp [13:18:34]Write 4 bytes [13:18:34]NVStorageSaveData done [13:18:34]ExternCall_PrintAddStr [13:18:34]wPrintStart [13:18:34]Write to MH i2c: 01 00 00 F4 4C 40 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 F4 4C 00 00 00 00 00 FF 0F 55 [13:18:34]RasterBufferAndPrint [13:18:34]line Счет N : (1)594019 [13:18:34]line ИНН: 02508201610067 [13:18:34]line Контрольно-Кассовый Чек [13:18:34]line ПРОДАЖА [13:18:34]line ТРК (МРК, ГНК) : 42 [13:18:34]line Товар: 2710124130 [13:18:34]line Аи-92-К-5 [13:18:34]line 7.380 * 67.80 [13:18:34]line = 500.36 [13:18:34]line НДС 12% НСП 1% [13:18:34]line > о реализуемом товаре [13:18:34]line ОКРУГЛЕНИЕ: -0.36 [13:18:34]line ИТОГО: 500.00 [13:18:34]line Внесено: 500.00 [13:18:34]line СДАЧА: 0.00 [13:18:34]line НСП 1% : 4.43 [13:18:34]line НДС 12% : 53.14 [13:18:34]line Наличными: 500.00 [13:18:34]line Безнал.: 0.00 [13:18:34]line Место: АЗС № 136 "Партнер Нефть" [13:18:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:18:34]line СНО: Общий режим [13:18:34]line Чек 182 21.08.2024 13:18 [13:18:34]line Смена: 454 ФФД: 1.0 [13:18:34]line ЗНМ: 0300000067 [13:18:34]line РНМ: 0000000000092569 [13:18:34]line Версия ККМ: 001 [13:18:34]line ФМ: 0000000000871776 [13:18:34]line ФД: 140165 [13:18:34]line ФПД: 228267487637942 [13:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131836&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140165&fm=228267487637942&tin=02508201610067®Number=0000000000092569&sum=50000 [13:18:35]written 0, free lines is 4095 [13:18:35]OFD Sender: Processing packet 140165 [packets to send 137, broken 136] [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00140165 [13:18:35]OFD Sender: To server: pG, [13:18:35]CommunicateWithHost lk.salyk.kg:30040 [13:18:35]ConnectInit lk.salyk.kg [13:18:35]Connected sock=11 [13:18: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 37 36 0F 01 00 00 00 01 07 01 B0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 2C E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 23 02 00 35 04 06 00 CF 9B AA 83 B1 B6 BD F5 8E E3 5C C7 F4 42 [13:18: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 37 36 4F 00 00 00 E2 5E 47 00 DC 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 37 36 10 04 04 00 85 23 02 00 F4 03 04 00 BD 8F C5 66 B6 04 01 00 00 B1 2F 22 F3 AD FB 9C C0 [13:18:35]CommunicateWithHost err = 0 [13:18:35]CheckOFDResponse [13:18:35]1017 (14) - 77093643461234 [13:18:35]1041 (16) - 0000000000871776 [13:18:35]1040 (4) - 140165 [13:18:35]1012 (4) - 21.08.2024 06:57 [13:18:35]1206 (1) - 0 [13:18:35]OFD Sender: Remove packet 140165 [13:18:35]ProducePacketName [13:18:35]name=ofd_packets/00140165 [13:18:35]NVStorageDeleteData [13:18:35]Write to MH i2c: 01 00 00 1F 4D 6C [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 1F 4D 00 00 00 00 00 DA 0C 59 [13:18:35]RasterBufferAndPrint [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]line [13:18:35]written 0, free lines is 3297 [13:18:35]MH_Cut [13:18:35]Write to MH i2c: D1 01 00 26 4D 01 45 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: D1 01 00 26 4D 00 44 [13:18:35]Write to MH i2c: 01 00 00 27 4D 74 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:36]OFD Sender: No OFD packet to send [13:18:36]*** Cut start [13:18:36]*** Partial cut [13:18:36]*** CUTSNS_PIN = 1 [13:18:36]*** CUTSNS_PIN = 0 [13:18:36]*** Brake cut motor [13:18:36]Read from MH i2c: 01 [13:18:36]MH_I2C_Read... [13:18:36]*** Stop cut motor [13:18:36]*** Cut end [13:18:36]Read from MH i2c: 01 07 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 27 4D 00 00 00 00 00 FF 0F 89 [13:18:36]process_action close_receipt done [13:18:36]requested_data is exist [13:18:36]produce_requested_data [13:18:36]requested_item fm.sn is exist - process it [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 11 00 00 [13:18:36]Write to MH i2c: E2 08 00 28 4D 80 11 00 00 00 00 00 00 EF [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 28 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [13:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:18:36]wFMCommunicate OK [13:18:36]requested_item fd.num is exist - process it [13:18:36]SAM_PROTO_GetFieldsCounters [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 13 00 00 [13:18:36]Write to MH i2c: E2 08 00 29 4D 80 13 00 00 00 00 00 00 F2 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 62 00 29 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetFieldsCounters done [13:18:37]requested_item shift.num is exist - process it [13:18:37]requested_item shift.opened is exist - process it [13:18:37]req_shift_opened [13:18:37]FM_GetShiftState [13:18:37]SAM_PROTO_GetShiftState [13:18:37]wFMCommunicate request_size=4 [13:18:37]MH_SAM_APDU [13:18:37]CAPDU: 80 13 01 00 [13:18:37]Write to MH i2c: E2 08 00 2A 4D 80 13 01 00 00 00 00 00 F4 [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:37]Read from MH i2c: E2 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: E2 0E 00 2A 4D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [13:18:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:18:37]wFMCommunicate OK [13:18:37]SAM_PROTO_GetShiftState done [13:18:37]FM_GetShiftState done [13:18:37]req_shift_opened done [13:18:37]requested_item shift.open_date is exist - process it [13:18:37]req_shift_open_date [13:18:37]req_shift_open_date done [13:18:37]produce_requested_data done [13:18:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140165,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:18:37]process_action_free close_receipt [13:18:37]json_value_free [13:18:37]json_value_free done [13:18:37]process_json_proto returns [13:18:37]Send response to host [13:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140165,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:18:37]free response buf [13:18:37]execute_script done [13:18:37]execute_script returns [13:18:37]free content buf [13:18:37]Sock 9.Close socket [13:18:37]Sock 9.Thread stoped [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:50]accept exits with 7 [13:18:50]New connection [13:18:50]New thread 3066908004 created [13:18:50]Thread 3066764644 joined [13:18:50]Waiting for new connection... [13:18:50] Sock 7.Parse request [13:18:50]Sock 7.Check first char [13:18:50]Sock 7.First char is OK [13:18:50]request: POST /json_proto HTTP/1.0 [13:18:50]Method: POST [13:18:50]URL: /json_proto [13:18:50]Method is POST - this is cgi request [13:18:50]url: /json_proto [13:18:50]query_string will be loaded in cgi processing [13:18:50]execute_cgi json_proto POST (null) [13:18:50]execute_cgi path=json_proto method=POST [13:18:50]POST find Content-Length [13:18:50]Host: 172.17.45.67:8080 [13:18:50]Content-Length: 677 [13:18:50]Content-Type: application/json [13:18:50] [13:18:50]POST finish read [13:18:50]Found Content-Length = 677 [13:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:18:50]execute_script... [13:18: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)594020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:18:50]POST & json_proto [13:18:50]process_json_proto [13:18:50]json parsed OK: [13:18:50]protocol is kg_v1.0 [13:18:50]action value=close_receipt [13:18:50]process_action close_receipt [13:18:50]cmd_close_receipt [13:18:50]MH_GetDate [13:18:50]Write to MH i2c: F0 00 00 2B 4D 67 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: F0 09 00 2B 4D 00 3E E9 C5 66 5F 7F 2B 66 31 [13:18:50]GetLastDocTimeStamp 1724246316 [13:18:50]current date 1724246334 [13:18:50]FM_GetShiftState [13:18:50]SAM_PROTO_GetShiftState [13:18:50]wFMCommunicate request_size=4 [13:18:50]MH_SAM_APDU [13:18:50]CAPDU: 80 13 01 00 [13:18:50]Write to MH i2c: E2 08 00 2C 4D 80 13 01 00 00 00 00 00 F6 [13:18:50]Write i2c OK [13:18:50]MH_I2C_Read... [13:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:50]Read from MH i2c: E2 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 [13:18:50]MH_I2C_Read... [13:18:50]Read from MH i2c: E2 0E 00 2C 4D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 76 [13:18:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:18:50]wFMCommunicate OK [13:18:50]SAM_PROTO_GetShiftState done [13:18:50]FM_GetShiftState done [13:18:50]opened in 1724200467 [13:18:50]opened+sec_in_day 1724286867 [13:18:50]quantity*price = 60003 [13:18:50]sum+1 = 60004 [13:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 183 21.08.2024 13:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140166 ФПД: 151482264679939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140166&fm=151482264679939&tin=02508201610067®Number=0000000000092569&sum=60000 [13:18:51]StoreToDocumentArchive [13:18:51]shift 454 fd 140166 [13:18:51]save to /storage/0454/doc_00140166 [13:18:51]save last doc name /storage/0454/doc_00140166 to /storage/kkm_last_doc_name [13:18:51]save OK [13:18:51]Clear old archive folders... [13:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:51]tlvbuf is 00B511C0 [13:18:51]SAM_PROTO_ClearQueue [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 09 00 00 [13:18:51]Write to MH i2c: E2 08 00 39 4D 80 09 00 00 00 00 00 00 F8 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 39 4D 00 90 00 FA [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]SAM_PROTO_ClearQueue done [13:18:51]KKMCreateOFDPacket [13:18:51]OFDProtocolAddRootSTLVToBuf [13:18:51]FM_MakeSignedData [13:18:51]FM_MakeSignedData [13:18:51]SAM_PROTO_SignData [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 0D 01 02 [13:18:51]Write to MH i2c: E2 08 00 3A 4D 80 0D 01 02 00 00 00 00 00 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 3A 4D 00 90 00 FB [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]wFMCommunicate request_size=255 [13:18:51]MH_SAM_APDU [13:18: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B7 00 00 00 F4 03 04 00 3E E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 23 02 00 35 04 06 00 89 [13:18:51]Write to MH i2c: E2 02 01 3B 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B7 00 00 00 F4 03 04 00 3E E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 23 02 00 35 04 06 00 89 00 00 54 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 3B 4D 00 90 00 FC [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]wFMCommunicate request_size=10 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 0D 02 02 05 C5 B6 93 76 03 [13:18:51]Write to MH i2c: E2 0D 00 3C 4D 80 0D 02 02 05 00 C5 B6 93 76 03 00 00 94 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 03 00 3C 4D 00 90 00 FD [13:18:51]RAPDU: 90 00 [13:18:51]wFMCommunicate OK [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 0D 03 02 [13:18:51]Write to MH i2c: E2 08 00 3D 4D 80 0D 03 02 00 00 00 00 05 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:51]Read from MH i2c: E2 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 0B 00 [13:18:51]MH_I2C_Read... [13:18:51]Read from MH i2c: E2 0B 00 3D 4D 00 9D 3D 5F 35 CD 8E 73 FD 90 00 3F [13:18:51]RAPDU: 9D 3D 5F 35 CD 8E 73 FD 90 00 [13:18:51]wFMCommunicate OK [13:18:51]SAM_PROTO_SignData done [13:18:51]FM_MakeSignedData done [13:18:51]CreateOFDProtocolMessage [13:18:51]wFMCommunicate request_size=4 [13:18:51]MH_SAM_APDU [13:18:51]CAPDU: 80 11 00 00 [13:18:51]Write to MH i2c: E2 08 00 3E 4D 80 11 00 00 00 00 00 00 05 [13:18:51]Write i2c OK [13:18:51]MH_I2C_Read... [13:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:52]Read from MH i2c: E2 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: E2 17 00 3E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5C [13:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:18:52]wFMCommunicate OK [13:18:52]CreateOFDProtocolMessage done [13:18:52]OFDSenderStorePacket 140166 [13:18:52]StoreOFDPacket docnum=140166 [13:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 2F 07 01 8B 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B7 00 00 00 F4 03 04 00 3E E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 23 02 00 35 04 06 00 89 C5 B6 93 76 03 9D 3D 5F 35 CD 8E 73 FD [13:18:52]CheckFolder [13:18:52]dirname=/storage/ofd_packets [13:18:52]CheckFolder done [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00140166 [13:18:52]NVStorageSaveData ofd_packets/00140166 [13:18:52]File name is /storage/ofd_packets/00140166 [13:18:52]Write 301 bytes [13:18:52]NVStorageSaveData done [13:18:52]OFDSenderStorePacket done [13:18:52]KKMCreateOFDPacket done [13:18:52]NVStorageSaveData kkm_last_timestamp [13:18:52]File name is /storage/kkm_last_timestamp [13:18:52]Write 4 bytes [13:18:52]NVStorageSaveData done [13:18:52]ExternCall_PrintAddStr [13:18:52]wPrintStart [13:18:52]Write to MH i2c: 01 00 00 3F 4D 8C [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: 01 07 00 3F 4D 00 00 00 00 00 FF 0F A1 [13:18:52]RasterBufferAndPrint [13:18:52]line Счет N : (1)594020 [13:18:52]line ИНН: 02508201610067 [13:18:52]line Контрольно-Кассовый Чек [13:18:52]line ПРОДАЖА [13:18:52]line ТРК (МРК, ГНК) : 62 [13:18:52]line Товар: 2710124130 [13:18:52]line Аи-92-К-5 [13:18:52]line 8.850 * 67.80 [13:18:52]line = 600.03 [13:18:52]line НДС 12% НСП 1% [13:18:52]line > о реализуемом товаре [13:18:52]line ОКРУГЛЕНИЕ: -0.03 [13:18:52]line ИТОГО: 600.00 [13:18:52]line Внесено: 600.00 [13:18:52]line СДАЧА: 0.00 [13:18:52]line НСП 1% : 5.31 [13:18:52]line НДС 12% : 63.72 [13:18:52]line Наличными: 600.00 [13:18:52]line Безнал.: 0.00 [13:18:52]line Место: АЗС № 136 "Партнер Нефть" [13:18:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:18:52]line СНО: Общий режим [13:18:52]line Чек 183 21.08.2024 13:18 [13:18:52]line Смена: 454 ФФД: 1.0 [13:18:52]line ЗНМ: 0300000067 [13:18:52]line РНМ: 0000000000092569 [13:18:52]line Версия ККМ: 001 [13:18:52]line ФМ: 0000000000871776 [13:18:52]line ФД: 140166 [13:18:52]line ФПД: 151482264679939 [13:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140166&fm=151482264679939&tin=02508201610067®Number=0000000000092569&sum=60000 [13:18:52]OFD Sender: Processing packet 140166 [packets to send 137, broken 136] [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00140166 [13:18:52]OFD Sender: To server: pG, [13:18:52]CommunicateWithHost lk.salyk.kg:30040 [13:18:52]ConnectInit lk.salyk.kg [13:18:52]written 0, free lines is 4095 [13:18:52]Connected sock=10 [13:18: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 37 36 0F 01 00 00 72 2F 07 01 8B 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B7 00 00 00 F4 03 04 00 3E E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 23 02 00 35 04 06 00 89 C5 B6 93 76 03 9D 3D 5F 35 CD 8E 73 FD [13:18:52]int [13:18:52]Write to MH i2c: 01 00 00 51 4D 9E [13:18:52]*** FLAG_PRN_KEY set [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Write i2c OK [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: DD [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: DD [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: DD 05 00 [13:18:52]MH_I2C_Read... [13:18:52]Read from MH i2c: DD 05 00 [13:18:52]answer for other command [DD] [13:18:52]MH Int Process stopped [13:18:52]Read from MH i2c: DD 05 00 51 4D 00 1E 00 2C 0E D7 [13:18:52]answer with wrong packet_num 4D51 - expected 4D52 [13:18:52]process_action_free close_receipt [13:18:52]json_value_free [13:18:52]json_value_free done [13:18:52]process_json_proto returns [13:18:52]Send response to host [13:18:52]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [13:18:52]free response buf [13:18:52]execute_script done [13:18:52]execute_script returns [13:18:52]free content buf [13:18:52]Sock 7.Close socket [13:18:52]Sock 7.Thread stoped [13:18:52]*** FLAG_PRN_KEY reset [13:18: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 37 36 4F 00 00 00 88 85 47 00 E9 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 37 36 10 04 04 00 86 23 02 00 F4 03 04 00 CE 8F C5 66 B6 04 01 00 00 F0 11 BA 7E 2C 9D 6D 5C [13:18:52]CommunicateWithHost err = 0 [13:18:52]CheckOFDResponse [13:18:52]1017 (14) - 77093643461234 [13:18:52]1041 (16) - 0000000000871776 [13:18:52]1040 (4) - 140166 [13:18:52]1012 (4) - 21.08.2024 06:57 [13:18:52]1206 (1) - 0 [13:18:52]OFD Sender: Remove packet 140166 [13:18:52]ProducePacketName [13:18:52]name=ofd_packets/00140166 [13:18:52]NVStorageDeleteData [13:18:53]OFD Sender: No OFD packet to send [13:18:54]*** FLAG_PRN_KEY set [13:18:54]*** FLAG_PRN_KEY reset [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 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10119702+1714126687=1724246389 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 76 E9 C5 66 5F 7F 2B 66 F8 [13:19:50]Current date/time: 21.08.2024 13:19 [13:19:50]FM_Init [13:19:50]wFMConnect [13:19:50]MH_SAM_On [13:19:50]Write to MH i2c: E0 00 00 08 00 E7 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_init finished! [13:19:50]*** atr: [13:19:50]*** 0F 3B D5 18 FF 81 91 FE [13:19:50]*** 1F C3 80 73 C8 21 10 0A [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]*** 00 00 00 00 00 00 00 00 [13:19:50]Read from MH i2c: E0 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E0 10 00 [13:19:50]MH_I2C_Read... [13:19:50]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 [13:19:50]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:19:50]wFMCommunicate request_size=10 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:19:50]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 11 00 00 [13:19:50]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 17 00 [13:19:50]MH_I2C_Read... [13:19:50]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 37 36 90 00 DB [13:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:19:50]wFMCommunicate OK [13:19:50]Detected FM SN is 0000000000871776 [13:19:50]Stored FM SN is 0000000000871776 [13:19:50]wFMCommunicate request_size=9 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 16 00 00 04 3F B1 00 00 [13:19:50]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]FM PIN OK [13:19:50]wFMCommunicate request_size=8 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 14 04 00 03 02 00 01 [13:19:50]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=13 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:19:50]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 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:19:50]RAPDU: 90 00 [13:19:50]wFMCommunicate OK [13:19:50]wFMCommunicate request_size=4 [13:19:50]MH_SAM_APDU [13:19:50]CAPDU: 80 11 00 00 [13:19:50]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:50]Read from MH i2c: E2 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: E2 17 00 [13:19:50]MH_I2C_Read... [13:19:50]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 37 36 90 00 DF [13:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:19:50]wFMCommunicate OK [13:19:50]DocumentArchiveInit [13:19:50]Start Httpd... [13:19:50]Httpd thread 3067878756 created [13:19:50]Write to MH i2c: 01 00 00 0F 00 0F [13:19:50]Write i2c OK [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 [13:19:50]MH_I2C_Read... [13:19:50]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:19:50]MH Int Process started [13:19:50]Allocated Socket 7 [13:19:50]Bind OK [13:19:50]Listen OK [13:19:50]httpd running on port 8080 [13:19:50]Waiting for new connection... [13:19:50]OFD Sender: No OFD packet to send [13:19:51]accept exits with 8 [13:19:51]New connection [13:19:51]New thread 3067592036 created [13:19:51]Waiting for new connection... [13:19:51] Sock 8.Parse request [13:19:51]Sock 8.Check first char [13:19:51]Sock 8.First char is OK [13:19:51]request: POST /json_proto HTTP/1.0 [13:19:51]Method: POST [13:19:51]URL: /json_proto [13:19:51]Method is POST - this is cgi request [13:19:51]url: /json_proto [13:19:51]query_string will be loaded in cgi processing [13:19:51]execute_cgi json_proto POST (null) [13:19:51]execute_cgi path=json_proto method=POST [13:19:51]POST find Content-Length [13:19:51]Host: 172.17.45.67:8080 [13:19:51]Content-Length: 215 [13:19:51]Content-Type: application/json [13:19:51] [13:19:51]POST finish read [13:19:51]Found Content-Length = 215 [13:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]execute_script... [13:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:51]POST & json_proto [13:19:51]process_json_proto [13:19:51]json parsed OK: [13:19:51]protocol is kg_v1.0 [13:19:51]action value=get_value [13:19:51]process_action get_value [13:19:51]cmd_get_value [13:19:51]process_action get_value done [13:19:51]requested_data is exist [13:19:51]produce_requested_data [13:19:51]requested_item kkm.sn is exist - process it [13:19:51]requested_item kkm.ver is exist - process it [13:19:51]requested_item fm.sn is exist - process it [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 11 00 00 [13:19:51]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 17 00 [13:19:51]MH_I2C_Read... [13:19:51]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 37 36 90 00 E1 [13:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:19:51]wFMCommunicate OK [13:19:51]requested_item fd.num is exist - process it [13:19:51]SAM_PROTO_GetFieldsCounters [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 00 00 [13:19:51]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 62 00 [13:19:51]MH_I2C_Read... [13:19:51]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetFieldsCounters done [13:19:51]requested_item shift.num is exist - process it [13:19:51]requested_item shift.opened is exist - process it [13:19:51]req_shift_opened [13:19:51]FM_GetShiftState [13:19:51]SAM_PROTO_GetShiftState [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 01 00 [13:19:51]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:19:51]Write i2c OK [13:19:51]MH_I2C_Read... [13:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:51]Read from MH i2c: E2 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 [13:19:51]MH_I2C_Read... [13:19:51]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0F [13:19:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:19:51]wFMCommunicate OK [13:19:51]SAM_PROTO_GetShiftState done [13:19:51]FM_GetShiftState done [13:19:51]req_shift_opened done [13:19:51]requested_item shift.open_date is exist - process it [13:19:51]req_shift_open_date [13:19:51]req_shift_open_date done [13:19:51]produce_requested_data done [13:19:51]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140166,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:19:51]process_action_free get_value [13:19:51]json_value_free [13:19:51]json_value_free done [13:19:51]process_json_proto returns [13:19:51]Send response to host [13:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140166,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:19:51]free response buf [13:19:51]execute_script done [13:19:51]execute_script returns [13:19:51]free content buf [13:19:51]Sock 8.Close socket [13:19:51]Sock 8.Thread stoped [13:19:51]accept exits with 6 [13:19:51]New connection [13:19:51]New thread 3067448676 created [13:19:51]Thread 3067592036 joined [13:19:51]Waiting for new connection... [13:19:51] Sock 6.Parse request [13:19:51]Sock 6.Check first char [13:19:51]Sock 6.First char is OK [13:19:51]request: POST /json_proto HTTP/1.0 [13:19:51]Method: POST [13:19:51]URL: /json_proto [13:19:51]Method is POST - this is cgi request [13:19:51]url: /json_proto [13:19:51]query_string will be loaded in cgi processing [13:19:51]execute_cgi json_proto POST (null) [13:19:51]execute_cgi path=json_proto method=POST [13:19:51]POST find Content-Length [13:19:51]Host: 172.17.45.67:8080 [13:19:51]Content-Length: 331 [13:19:51]Content-Type: application/json [13:19:51] [13:19:51]POST finish read [13:19:51]Found Content-Length = 331 [13:19:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:19:51]execute_script... [13:19:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:19:51]POST & json_proto [13:19:51]process_json_proto [13:19:51]json parsed OK: [13:19:51]protocol is kg_v1.0 [13:19:51]action value=get_value [13:19:51]process_action get_value [13:19:51]cmd_get_value [13:19:51]process_action get_value done [13:19:51]requested_data is exist [13:19:51]produce_requested_data [13:19:51]requested_item fm.sale.total is exist - process it [13:19:51]SAM_PROTO_GetFMData [13:19:51]wFMCommunicate request_size=4 [13:19:51]MH_SAM_APDU [13:19:51]CAPDU: 80 13 03 00 [13:19:51]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 FD 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 F9 1F 02 00 69 04 A3 00 6F 04 04 00 78 1F 02 00 B1 04 05 00 8F 0E DE 3C 02 70 04 05 00 78 6E 9D F2 01 72 04 04 00 17 A0 40 4A 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 98 28 DD 3C 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 CF 4E 12 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 36 [13:19:52]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F9 1F 02 00 69 04 A3 00 6F 04 04 00 78 1F 02 00 B1 04 05 00 8F 0E DE 3C 02 70 04 05 00 78 6E 9D F2 01 72 04 04 00 17 A0 40 4A 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 98 28 DD 3C 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 CF 4E 12 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [13:19:52]wFMCommunicate OK [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 17 00 00 [13:19:52]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 FD 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 99 [13:19:52]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [13:19:52]wFMCommunicate OK [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 17 00 00 [13:19:52]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 FD 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [13:19:53]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 17 00 00 [13:19:53]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 FD 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [13:19:53]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 17 00 00 [13:19:53]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 E1 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [13:19:53]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_GetFMData done [13:19:53]requested_item fm.sale_refund.total is exist - process it [13:19:53]requested_item fm.buy.total is exist - process it [13:19:53]requested_item shift.sale.total is exist - process it [13:19:53]SAM_PROTO_GetShiftData [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 13 02 00 [13:19:53]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 B7 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 70 D1 A9 70 04 03 00 40 09 A2 72 04 03 00 30 C8 07 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 94 0A 12 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 E5 80 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 BE [13:19:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 B7 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 70 D1 A9 70 04 03 00 40 09 A2 72 04 03 00 30 C8 07 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 94 0A 12 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 E5 80 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 [13:19:54]wFMCommunicate OK [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 17 00 00 [13:19:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [13:19:54]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 [13:19:54]wFMCommunicate OK [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 17 00 00 [13:19:54]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [13:19:54]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 [13:19:54]wFMCommunicate OK [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 17 00 00 [13:19:54]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 FD 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [13:19: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 [13:19:55]wFMCommunicate OK [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 17 00 00 [13:19:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 CC 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [13:19:55]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 [13:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_GetShiftData done [13:19:55]requested_item shift.sale.total_cash is exist - process it [13:19:55]requested_item shift.sale_refund.total is exist - process it [13:19:55]requested_item shift.sale_refund.total_cash is exist - process it [13:19:55]requested_item shift.buy.total is exist - process it [13:19:55]requested_item shift.buy.total_cash is exist - process it [13:19:55]produce_requested_data done [13:19:55]produce_requested_data return {"fm.sale.total":96111202.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":111292.00,"shift.sale.total_cash":106192.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:19:55]process_action_free get_value [13:19:55]json_value_free [13:19:55]json_value_free done [13:19:55]process_json_proto returns [13:19:55]Send response to host [13:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96111202.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":111292.00,"shift.sale.total_cash":106192.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:19:55]free response buf [13:19:55]execute_script done [13:19:55]execute_script returns [13:19:55]free content buf [13:19:55]Sock 6.Close socket [13:19:55]Sock 6.Thread stoped [13:19:55]accept exits with 8 [13:19:55]New connection [13:19:55]New thread 3067592036 created [13:19:55]Thread 3067448676 joined [13:19:55]Waiting for new connection... [13:19:55] Sock 8.Parse request [13:19:55]Sock 8.Check first char [13:19:55]Sock 8.First char is OK [13:19:55]request: POST /json_proto HTTP/1.0 [13:19:55]Method: POST [13:19:55]URL: /json_proto [13:19:55]Method is POST - this is cgi request [13:19:55]url: /json_proto [13:19:55]query_string will be loaded in cgi processing [13:19:55]execute_cgi json_proto POST (null) [13:19:55]execute_cgi path=json_proto method=POST [13:19:55]POST find Content-Length [13:19:55]Host: 172.17.45.67:8080 [13:19:55]Content-Length: 144 [13:19:55]Content-Type: application/json [13:19:55] [13:19:55]POST finish read [13:19:55]Found Content-Length = 144 [13:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:19:55]execute_script... [13:19:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:19:55]POST & json_proto [13:19:55]process_json_proto [13:19:55]json parsed OK: [13:19:55]protocol is kg_v1.0 [13:19:55]action value=print_doc [13:19:55]process_action print_doc [13:19:55]ExternCall_PrintAddStr [13:19:55]wPrintStart [13:19:55]Write to MH i2c: 01 00 00 1D 00 1D [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: 01 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: 01 07 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [13:19:55]RasterBufferAndPrint [13:19:55]line Счет N : (1)594020 [13:19:55]line ИНН: 02508201610067 [13:19:55]line Контрольно-Кассовый Чек [13:19:55]line ПРОДАЖА [13:19:55]line ТРК (МРК, ГНК) : 62 [13:19:55]line Товар: 2710124130 [13:19:55]line Аи-92-К-5 [13:19:55]line 8.850 * 67.80 [13:19:55]line = 600.03 [13:19:55]line НДС 12% НСП 1% [13:19:55]line > о реализуемом товаре [13:19:55]line ОКРУГЛЕНИЕ: -0.03 [13:19:55]line ИТОГО: 600.00 [13:19:55]line Внесено: 600.00 [13:19:55]line СДАЧА: 0.00 [13:19:55]line НСП 1% : 5.31 [13:19:55]line НДС 12% : 63.72 [13:19:55]line Наличными: 600.00 [13:19:55]line Безнал.: 0.00 [13:19:55]line Место: АЗС № 136 "Партнер Нефть" [13:19:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:19:55]line СНО: Общий режим [13:19:55]line Чек 183 21.08.2024 13:18 [13:19:55]line Смена: 454 ФФД: 1.0 [13:19:55]line ЗНМ: 0300000067 [13:19:55]line РНМ: 0000000000092569 [13:19:55]line Версия ККМ: 001 [13:19:55]line ФМ: 0000000000871776 [13:19:55]line ФД: 140166 [13:19:55]line ФПД: 151482264679939 [13:19:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T131854&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140166&fm=151482264679939&tin=02508201610067®Number=0000000000092569&sum=60000 [13:19:55]written 0, free lines is 4095 [13:19:55]OFD Sender: No OFD packet to send [13:19:56]Write to MH i2c: 01 00 00 48 00 48 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 07 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E5 0C 40 [13:19:56]RasterBufferAndPrint [13:19:56]line [13:19:56]line [13:19:56]line [13:19:56]line [13:19:56]line [13:19:56]written 0, free lines is 3316 [13:19:56]MH_Cut [13:19:56]Write to MH i2c: D1 01 00 4F 00 01 21 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: D1 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: D1 01 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: D1 01 00 4F 00 00 20 [13:19:56]Write to MH i2c: 01 00 00 50 00 50 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** Cut start [13:19:56]*** Partial cut [13:19:56]*** CUTSNS_PIN = 1 [13:19:56]*** CUTSNS_PIN = 0 [13:19:57]*** Brake cut motor [13:19:57]Read from MH i2c: 01 [13:19:57]MH_I2C_Read... [13:19:57]*** Stop cut motor [13:19:57]*** Cut end [13:19:57]Read from MH i2c: 01 07 00 [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [13:19:57]process_action print_doc done [13:19:57]requested_data is exist [13:19:57]produce_requested_data [13:19:57]produce_requested_data return (null) [13:19:57]process_action_free print_doc [13:19:57]json_value_free [13:19:57]json_value_free done [13:19:57]process_json_proto returns [13:19:57]Send response to host [13:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:19:57]free response buf [13:19:57]execute_script done [13:19:57]execute_script returns [13:19:57]free content buf [13:19:57]Sock 8.Close socket [13:19:57]Sock 8.Thread stoped [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]accept exits with 6 [13:20:35]New connection [13:20:35]New thread 3067448676 created [13:20:35]Thread 3067592036 joined [13:20:35]Waiting for new connection... [13:20:35] Sock 6.Parse request [13:20:35]Sock 6.Check first char [13:20:35]Sock 6.First char is OK [13:20:35]request: POST /json_proto HTTP/1.0 [13:20:35]Method: POST [13:20:35]URL: /json_proto [13:20:35]Method is POST - this is cgi request [13:20:35]url: /json_proto [13:20:35]query_string will be loaded in cgi processing [13:20:35]execute_cgi json_proto POST (null) [13:20:35]execute_cgi path=json_proto method=POST [13:20:35]POST find Content-Length [13:20:35]Host: 172.17.45.67:8080 [13:20:35]Content-Length: 677 [13:20:35]Content-Type: application/json [13:20:35] [13:20:35]POST finish read [13:20:35]Found Content-Length = 677 [13:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:35]execute_script... [13: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)594023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:35]POST & json_proto [13:20:35]process_json_proto [13:20:35]json parsed OK: [13:20:35]protocol is kg_v1.0 [13:20:35]action value=close_receipt [13:20:35]process_action close_receipt [13:20:35]cmd_close_receipt [13:20:35]MH_GetDate [13:20:35]Write to MH i2c: F0 00 00 51 00 40 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: F0 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: F0 09 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: F0 09 00 51 00 00 A4 E9 C5 66 5F 7F 2B 66 70 [13:20:35]GetLastDocTimeStamp 1724246334 [13:20:35]current date 1724246436 [13:20:35]FM_GetShiftState [13:20:35]SAM_PROTO_GetShiftState [13:20:35]wFMCommunicate request_size=4 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 13 01 00 [13:20:35]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 0E 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [13:20:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:20:35]wFMCommunicate OK [13:20:35]SAM_PROTO_GetShiftState done [13:20:35]FM_GetShiftState done [13:20:35]opened in 1724200467 [13:20:35]opened+sec_in_day 1724286867 [13:20:35]quantity*price = 12000 [13:20:35]sum+1 = 12002 [13:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 184 21.08.2024 13:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140167 ФПД: 141192410166236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140167&fm=141192410166236&tin=02508201610067®Number=0000000000092569&sum=12000 [13:20:36]StoreToDocumentArchive [13:20:36]shift 454 fd 140167 [13:20:36]save to /storage/0454/doc_00140167 [13:20:36]save last doc name /storage/0454/doc_00140167 to /storage/kkm_last_doc_name [13:20:36]save OK [13:20:36]Clear old archive folders... [13:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:36]tlvbuf is 01C55AC0 [13:20:36]SAM_PROTO_ClearQueue [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 09 00 00 [13:20:36]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 03 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:20:36]RAPDU: 90 00 [13:20:36]wFMCommunicate OK [13:20:36]SAM_PROTO_ClearQueue done [13:20:36]KKMCreateOFDPacket [13:20:36]OFDProtocolAddRootSTLVToBuf [13:20:36]FM_MakeSignedData [13:20:36]FM_MakeSignedData [13:20:36]SAM_PROTO_SignData [13:20:36]wFMCommunicate request_size=4 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 0D 01 02 [13:20:36]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:36]Read from MH i2c: E2 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 03 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:20:36]RAPDU: 90 00 [13:20:36]wFMCommunicate OK [13:20:36]wFMCommunicate request_size=255 [13:20:36]MH_SAM_APDU [13:20:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A4 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 23 02 00 35 04 06 00 80 [13:20:36]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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A4 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 23 02 00 35 04 06 00 80 00 00 69 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]wFMCommunicate request_size=10 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 02 02 05 69 EB 73 F3 DC [13:20:37]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 69 EB 73 F3 DC 00 00 7C [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:20:37]RAPDU: 90 00 [13:20:37]wFMCommunicate OK [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 0D 03 02 [13:20:37]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 0B 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 0B 00 63 00 00 B0 B5 EF FB E3 97 77 61 90 00 80 [13:20:37]RAPDU: B0 B5 EF FB E3 97 77 61 90 00 [13:20:37]wFMCommunicate OK [13:20:37]SAM_PROTO_SignData done [13:20:37]FM_MakeSignedData done [13:20:37]CreateOFDProtocolMessage [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 11 00 00 [13:20:37]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:37]Read from MH i2c: E2 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: E2 17 00 [13:20:37]MH_I2C_Read... [13:20:37]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 37 36 90 00 35 [13:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:37]wFMCommunicate OK [13:20:37]CreateOFDProtocolMessage done [13:20:37]OFDSenderStorePacket 140167 [13:20:37]StoreOFDPacket docnum=140167 [13:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 91 07 01 74 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A4 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 23 02 00 35 04 06 00 80 69 EB 73 F3 DC B0 B5 EF FB E3 97 77 61 [13:20:37]CheckFolder [13:20:37]dirname=/storage/ofd_packets [13:20:37]CheckFolder done [13:20:37]ProducePacketName [13:20:37]name=ofd_packets/00140167 [13:20:37]NVStorageSaveData ofd_packets/00140167 [13:20:37]File name is /storage/ofd_packets/00140167 [13:20:37]Write 301 bytes [13:20:37]NVStorageSaveData done [13:20:37]OFDSenderStorePacket done [13:20:37]KKMCreateOFDPacket done [13:20:37]NVStorageSaveData kkm_last_timestamp [13:20:37]File name is /storage/kkm_last_timestamp [13:20:37]Write 4 bytes [13:20:37]NVStorageSaveData done [13:20:37]ExternCall_PrintAddStr [13:20:37]wPrintStart [13:20:37]Write to MH i2c: 01 00 00 65 00 65 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:20:37]RasterBufferAndPrint [13:20:37]line Счет N : (1)594023 [13:20:37]line ИНН: 02508201610067 [13:20:37]line Контрольно-Кассовый Чек [13:20:37]line ПРОДАЖА [13:20:37]line ТРК (МРК, ГНК) : 52 [13:20:37]line Товар: 2710124130 [13:20:37]line Аи-92-К-5 [13:20:37]line 1.770 * 67.80 [13:20:37]line = 120.01 [13:20:37]line НДС 12% НСП 1% [13:20:37]line > о реализуемом товаре [13:20:37]line ОКРУГЛЕНИЕ: -0.01 [13:20:37]line ИТОГО: 120.00 [13:20:37]line Внесено: 120.00 [13:20:37]line СДАЧА: 0.00 [13:20:37]line НСП 1% : 1.06 [13:20:37]line НДС 12% : 12.74 [13:20:37]line Наличными: 120.00 [13:20:37]line Безнал.: 0.00 [13:20:37]line Место: АЗС № 136 "Партнер Нефть" [13:20:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:20:37]line СНО: Общий режим [13:20:37]line Чек 184 21.08.2024 13:20 [13:20:37]line Смена: 454 ФФД: 1.0 [13:20:37]line ЗНМ: 0300000067 [13:20:37]line РНМ: 0000000000092569 [13:20:37]line Версия ККМ: 001 [13:20:37]line ФМ: 0000000000871776 [13:20:37]line ФД: 140167 [13:20:37]line ФПД: 141192410166236 [13:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140167&fm=141192410166236&tin=02508201610067®Number=0000000000092569&sum=12000 [13:20:37]written 0, free lines is 4095 [13:20:37]OFD Sender: Processing packet 140167 [packets to send 137, broken 136] [13:20:37]ProducePacketName [13:20:37]name=ofd_packets/00140167 [13:20:37]OFD Sender: To server: pG, [13:20:37]CommunicateWithHost lk.salyk.kg:30040 [13:20:37]ConnectInit lk.salyk.kg [13:20:37]Connected sock=10 [13: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 37 36 0F 01 00 00 2E 91 07 01 74 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 A4 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 23 02 00 35 04 06 00 80 69 EB 73 F3 DC B0 B5 EF FB E3 97 77 61 [13:20:37]Write to MH i2c: 01 00 00 90 00 90 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 CC 0C 6F [13:20:37]RasterBufferAndPrint [13:20:37]line [13:20:37]line [13:20:37]line [13:20:37]line [13:20:37]line [13:20:37]written 0, free lines is 3279 [13:20:37]MH_Cut [13:20:37]Write to MH i2c: D1 01 00 97 00 01 69 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D B3 47 00 5F 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 37 36 10 04 04 00 87 23 02 00 F4 03 04 00 34 90 C5 66 B6 04 01 00 00 DE BE 46 17 ED B8 FC A6 [13:20:37]CommunicateWithHost err = 0 [13:20:37]CheckOFDResponse [13:20:37]1017 (14) - 77093643461234 [13:20:37]1041 (16) - 0000000000871776 [13:20:37]1040 (4) - 140167 [13:20:37]1012 (4) - 21.08.2024 06:59 [13:20:37]1206 (1) - 0 [13:20:37]OFD Sender: Remove packet 140167 [13:20:37]ProducePacketName [13:20:37]name=ofd_packets/00140167 [13:20:37]NVStorageDeleteData [13:20:37]Read from MH i2c: D1 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: D1 01 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: D1 01 00 97 00 00 68 [13:20:37]Write to MH i2c: 01 00 00 98 00 98 [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:38]OFD Sender: No OFD packet to send [13:20:38]*** Cut start [13:20:38]*** Partial cut [13:20:38]*** CUTSNS_PIN = 1 [13:20:38]*** CUTSNS_PIN = 0 [13:20:38]*** Brake cut motor [13:20:39]Read from MH i2c: 01 [13:20:39]MH_I2C_Read... [13:20:39]*** Stop cut motor [13:20:39]*** Cut end [13:20:39]Read from MH i2c: 01 07 00 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [13:20:39]process_action close_receipt done [13:20:39]requested_data is exist [13:20:39]produce_requested_data [13:20:39]requested_item fm.sn is exist - process it [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 11 00 00 [13:20:39]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:39]Read from MH i2c: E2 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 17 00 [13:20:39]MH_I2C_Read... [13:20:39]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 37 36 90 00 6A [13:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:39]wFMCommunicate OK [13:20:39]requested_item fd.num is exist - process it [13:20:39]SAM_PROTO_GetFieldsCounters [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 13 00 00 [13:20:39]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:39]Read from MH i2c: E2 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 62 00 [13:20:39]MH_I2C_Read... [13:20:39]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:39]wFMCommunicate OK [13:20:39]SAM_PROTO_GetFieldsCounters done [13:20:39]requested_item shift.num is exist - process it [13:20:39]requested_item shift.opened is exist - process it [13:20:39]req_shift_opened [13:20:39]FM_GetShiftState [13:20:39]SAM_PROTO_GetShiftState [13:20:39]wFMCommunicate request_size=4 [13:20:39]MH_SAM_APDU [13:20:39]CAPDU: 80 13 01 00 [13:20:39]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [13:20:39]Write i2c OK [13:20:39]MH_I2C_Read... [13:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:39]Read from MH i2c: E2 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 0E 00 [13:20:39]MH_I2C_Read... [13:20:39]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [13:20:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:20:39]wFMCommunicate OK [13:20:39]SAM_PROTO_GetShiftState done [13:20:39]FM_GetShiftState done [13:20:39]req_shift_opened done [13:20:39]requested_item shift.open_date is exist - process it [13:20:39]req_shift_open_date [13:20:39]req_shift_open_date done [13:20:39]produce_requested_data done [13:20:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140167,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:20:39]process_action_free close_receipt [13:20:39]json_value_free [13:20:39]json_value_free done [13:20:39]process_json_proto returns [13:20:39]Send response to host [13:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140167,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:20:39]free response buf [13:20:39]execute_script done [13:20:39]execute_script returns [13:20:39]free content buf [13:20:39]Sock 6.Close socket [13:20:39]Sock 6.Thread stoped [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:49]accept exits with 9 [13:20:49]New connection [13:20:49]New thread 3067592036 created [13:20:49]Thread 3067448676 joined [13:20:49]Waiting for new connection... [13:20:49] Sock 9.Parse request [13:20:49]Sock 9.Check first char [13:20:49]Sock 9.First char is OK [13:20:49]request: POST /json_proto HTTP/1.0 [13:20:49]Method: POST [13:20:49]URL: /json_proto [13:20:49]Method is POST - this is cgi request [13:20:49]url: /json_proto [13:20:49]query_string will be loaded in cgi processing [13:20:49]execute_cgi json_proto POST (null) [13:20:49]execute_cgi path=json_proto method=POST [13:20:49]POST find Content-Length [13:20:49]Host: 172.17.45.67:8080 [13:20:49]Content-Length: 663 [13:20:49]Content-Type: application/json [13:20:49] [13:20:49]POST finish read [13:20:49]Found Content-Length = 663 [13:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:49]execute_script... [13:20: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)594022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:49]POST & json_proto [13:20:49]process_json_proto [13:20:49]json parsed OK: [13:20:49]protocol is kg_v1.0 [13:20:49]action value=close_receipt [13:20:49]process_action close_receipt [13:20:49]cmd_close_receipt [13:20:49]MH_GetDate [13:20:49]Write to MH i2c: F0 00 00 9C 00 8B [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 09 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: F0 09 00 9C 00 00 B2 E9 C5 66 5F 7F 2B 66 C9 [13:20:49]GetLastDocTimeStamp 1724246436 [13:20:49]current date 1724246450 [13:20:49]FM_GetShiftState [13:20:49]SAM_PROTO_GetShiftState [13:20:49]wFMCommunicate request_size=4 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 13 01 00 [13:20:49]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:49]Read from MH i2c: E2 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 0E 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9A [13:20:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:20:49]wFMCommunicate OK [13:20:49]SAM_PROTO_GetShiftState done [13:20:49]FM_GetShiftState done [13:20:49]opened in 1724200467 [13:20:49]opened+sec_in_day 1724286867 [13:20:49]quantity*price = 100035 [13:20:49]sum+1 = 100036 [13:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 185 21.08.2024 13:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140168 ФПД: 4889763674086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140168&fm=4889763674086&tin=02508201610067®Number=0000000000092569&sum=100000 [13:20:50]StoreToDocumentArchive [13:20:50]shift 454 fd 140168 [13:20:50]save to /storage/0454/doc_00140168 [13:20:50]save last doc name /storage/0454/doc_00140168 to /storage/kkm_last_doc_name [13:20:50]save OK [13:20:50]Clear old archive folders... [13:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:20:50]tlvbuf is 01C578E0 [13:20:50]SAM_PROTO_ClearQueue [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 09 00 00 [13:20:50]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_ClearQueue done [13:20:50]KKMCreateOFDPacket [13:20:50]OFDProtocolAddRootSTLVToBuf [13:20:50]FM_MakeSignedData [13:20:50]FM_MakeSignedData [13:20:50]SAM_PROTO_SignData [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 01 02 [13:20:50]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:20:51]RAPDU: 90 00 [13:20:51]wFMCommunicate OK [13:20:51]wFMCommunicate request_size=253 [13:20:51]MH_SAM_APDU [13:20:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B2 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 23 02 00 35 04 06 00 04 72 7C A0 77 E6 [13:20:51]Write to MH i2c: E2 00 01 AC 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B2 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 23 02 00 35 04 06 00 04 72 7C A0 77 E6 00 00 7E [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:20:51]RAPDU: 90 00 [13:20:51]wFMCommunicate OK [13:20:51]wFMCommunicate request_size=4 [13:20:51]MH_SAM_APDU [13:20:51]CAPDU: 80 0D 03 02 [13:20:51]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 0B 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 0B 00 AD 00 00 F4 3D C9 0D 0B F7 F3 34 90 00 59 [13:20:51]RAPDU: F4 3D C9 0D 0B F7 F3 34 90 00 [13:20:51]wFMCommunicate OK [13:20:51]SAM_PROTO_SignData done [13:20:51]FM_MakeSignedData done [13:20:51]CreateOFDProtocolMessage [13:20:51]wFMCommunicate request_size=4 [13:20:51]MH_SAM_APDU [13:20:51]CAPDU: 80 11 00 00 [13:20:51]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:51]Read from MH i2c: E2 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: E2 17 00 [13:20:51]MH_I2C_Read... [13:20:51]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 37 36 90 00 7F [13:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:51]wFMCommunicate OK [13:20:51]CreateOFDProtocolMessage done [13:20:51]OFDSenderStorePacket 140168 [13:20:51]StoreOFDPacket docnum=140168 [13:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 47 BE 00 01 14 38 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B2 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 23 02 00 35 04 06 00 04 72 7C A0 77 E6 F4 3D C9 0D 0B F7 F3 34 [13:20:51]CheckFolder [13:20:51]dirname=/storage/ofd_packets [13:20:51]CheckFolder done [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00140168 [13:20:51]NVStorageSaveData ofd_packets/00140168 [13:20:51]File name is /storage/ofd_packets/00140168 [13:20:51]Write 294 bytes [13:20:51]NVStorageSaveData done [13:20:51]OFDSenderStorePacket done [13:20:51]KKMCreateOFDPacket done [13:20:51]NVStorageSaveData kkm_last_timestamp [13:20:51]File name is /storage/kkm_last_timestamp [13:20:51]Write 4 bytes [13:20:51]NVStorageSaveData done [13:20:51]ExternCall_PrintAddStr [13:20:51]wPrintStart [13:20:51]Write to MH i2c: 01 00 00 AF 00 AF [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:20:51]RasterBufferAndPrint [13:20:51]line Счет N : (1)594022 [13:20:51]line ИНН: 02508201610067 [13:20:51]line Контрольно-Кассовый Чек [13:20:51]line ПРОДАЖА [13:20:51]line ТРК (МРК, ГНК) : 43 [13:20:51]line Товар: 2710124130 [13:20:51]line SU-92 [13:20:51]line 14.540 * 68.80 [13:20:51]line = 1000.35 [13:20:51]line НДС 12% НСП 1% [13:20:51]line > о реализуемом товаре [13:20:51]line ОКРУГЛЕНИЕ: -0.35 [13:20:51]line ИТОГО: 1000.00 [13:20:51]line Внесено: 1000.00 [13:20:51]line СДАЧА: 0.00 [13:20:51]line НСП 1% : 8.85 [13:20:51]line НДС 12% : 106.23 [13:20:51]line Наличными: 1000.00 [13:20:51]line Безнал.: 0.00 [13:20:51]line Место: АЗС № 136 "Партнер Нефть" [13:20:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:20:51]line СНО: Общий режим [13:20:51]line Чек 185 21.08.2024 13:20 [13:20:51]line Смена: 454 ФФД: 1.0 [13:20:51]line ЗНМ: 0300000067 [13:20:51]line РНМ: 0000000000092569 [13:20:51]line Версия ККМ: 001 [13:20:51]line ФМ: 0000000000871776 [13:20:51]line ФД: 140168 [13:20:51]line ФПД: 4889763674086 [13:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132050&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140168&fm=4889763674086&tin=02508201610067®Number=0000000000092569&sum=100000 [13:20:51]OFD Sender: Processing packet 140168 [packets to send 137, broken 136] [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00140168 [13:20:51]OFD Sender: To server: pG, [13:20:51]CommunicateWithHost lk.salyk.kg:30040 [13:20:51]ConnectInit lk.salyk.kg [13:20:51]written 0, free lines is 4095 [13:20:51]Connected sock=10 [13:20: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 37 36 08 01 00 00 47 BE 00 01 14 38 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B2 E9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 23 02 00 35 04 06 00 04 72 7C A0 77 E6 F4 3D C9 0D 0B F7 F3 34 [13:20: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 37 36 4F 00 00 00 9D C9 47 00 5A D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 23 02 00 F4 03 04 00 43 90 C5 66 B6 04 01 00 00 23 B9 3F B6 A9 12 E4 21 [13:20:52]CommunicateWithHost err = 0 [13:20:52]CheckOFDResponse [13:20:52]1017 (14) - 77093643461234 [13:20:52]1041 (16) - 0000000000871776 [13:20:52]1040 (4) - 140168 [13:20:52]1012 (4) - 21.08.2024 06:59 [13:20:52]1206 (1) - 0 [13:20:52]OFD Sender: Remove packet 140168 [13:20:52]ProducePacketName [13:20:52]name=ofd_packets/00140168 [13:20:52]NVStorageDeleteData [13:20:52]Write to MH i2c: 01 00 00 DA 00 DA [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 07 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 DD 0C CA [13:20:52]RasterBufferAndPrint [13:20:52]line [13:20:52]line [13:20:52]line [13:20:52]line [13:20:52]line [13:20:52]written 0, free lines is 3299 [13:20:52]MH_Cut [13:20:52]Write to MH i2c: D1 01 00 E1 00 01 B3 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: D1 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: D1 01 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: D1 01 00 E1 00 00 B2 [13:20:52]Write to MH i2c: 01 00 00 E2 00 E2 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]OFD Sender: No OFD packet to send [13:20:52]*** Cut start [13:20:52]*** Partial cut [13:20:52]*** CUTSNS_PIN = 1 [13:20:52]*** CUTSNS_PIN = 0 [13:20:53]*** Brake cut motor [13:20:53]Read from MH i2c: 01 [13:20:53]MH_I2C_Read... [13:20:53]*** Stop cut motor [13:20:53]*** Cut end [13:20:53]Read from MH i2c: 01 07 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [13:20:53]process_action close_receipt done [13:20:53]requested_data is exist [13:20:53]produce_requested_data [13:20:53]requested_item fm.sn is exist - process it [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 11 00 00 [13:20:53]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 17 00 [13:20:53]MH_I2C_Read... [13:20:53]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 37 36 90 00 B4 [13:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:20:53]wFMCommunicate OK [13:20:53]requested_item fd.num is exist - process it [13:20:53]SAM_PROTO_GetFieldsCounters [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 00 00 [13:20:53]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 62 00 [13:20:53]MH_I2C_Read... [13:20:53]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetFieldsCounters done [13:20:53]requested_item shift.num is exist - process it [13:20:53]requested_item shift.opened is exist - process it [13:20:53]req_shift_opened [13:20:53]FM_GetShiftState [13:20:53]SAM_PROTO_GetShiftState [13:20:53]wFMCommunicate request_size=4 [13:20:53]MH_SAM_APDU [13:20:53]CAPDU: 80 13 01 00 [13:20:53]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [13:20:53]Write i2c OK [13:20:53]MH_I2C_Read... [13:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:53]Read from MH i2c: E2 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 [13:20:53]MH_I2C_Read... [13:20:53]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E2 [13:20:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:20:53]wFMCommunicate OK [13:20:53]SAM_PROTO_GetShiftState done [13:20:53]FM_GetShiftState done [13:20:53]req_shift_opened done [13:20:53]requested_item shift.open_date is exist - process it [13:20:53]req_shift_open_date [13:20:53]req_shift_open_date done [13:20:53]produce_requested_data done [13:20:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140168,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:20:53]process_action_free close_receipt [13:20:53]json_value_free [13:20:53]json_value_free done [13:20:53]process_json_proto returns [13:20:53]Send response to host [13:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140168,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:20:53]free response buf [13:20:53]execute_script done [13:20:53]execute_script returns [13:20:53]free content buf [13:20:53]Sock 9.Close socket [13:20:53]Sock 9.Thread stoped [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:15]accept exits with 8 [13:23:15]New connection [13:23:15]New thread 3067448676 created [13:23:15]Thread 3067592036 joined [13:23:15]Waiting for new connection... [13:23:15] Sock 8.Parse request [13:23:15]Sock 8.Check first char [13:23:15]Sock 8.First char is OK [13:23:15]request: POST /json_proto HTTP/1.0 [13:23:15]Method: POST [13:23:15]URL: /json_proto [13:23:15]Method is POST - this is cgi request [13:23:15]url: /json_proto [13:23:15]query_string will be loaded in cgi processing [13:23:15]execute_cgi json_proto POST (null) [13:23:15]execute_cgi path=json_proto method=POST [13:23:15]POST find Content-Length [13:23:15]Host: 172.17.45.67:8080 [13:23:15]Content-Length: 677 [13:23:15]Content-Type: application/json [13:23:15] [13:23:15]POST finish read [13:23:15]Found Content-Length = 677 [13:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]execute_script... [13: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)594025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]POST & json_proto [13:23:15]process_json_proto [13:23:15]json parsed OK: [13:23:15]protocol is kg_v1.0 [13:23:15]action value=close_receipt [13:23:15]process_action close_receipt [13:23:15]cmd_close_receipt [13:23:15]MH_GetDate [13:23:15]Write to MH i2c: F0 00 00 E6 00 D5 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 E6 00 00 44 EA C5 66 5F 7F 2B 66 A6 [13:23:15]GetLastDocTimeStamp 1724246450 [13:23:15]current date 1724246596 [13:23:15]FM_GetShiftState [13:23:15]SAM_PROTO_GetShiftState [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 13 01 00 [13:23:15]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:15]Read from MH i2c: E2 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E4 [13:23:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:23:15]wFMCommunicate OK [13:23:15]SAM_PROTO_GetShiftState done [13:23:15]FM_GetShiftState done [13:23:15]opened in 1724200467 [13:23:15]opened+sec_in_day 1724286867 [13:23:15]quantity*price = 40002 [13:23:15]sum+1 = 40003 [13:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 186 21.08.2024 13:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140169 ФПД: 183010969374687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140169&fm=183010969374687&tin=02508201610067®Number=0000000000092569&sum=40000 [13:23:16]StoreToDocumentArchive [13:23:16]shift 454 fd 140169 [13:23:16]save to /storage/0454/doc_00140169 [13:23:16]save last doc name /storage/0454/doc_00140169 to /storage/kkm_last_doc_name [13:23:16]save OK [13:23:16]Clear old archive folders... [13:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:16]tlvbuf is 01C52FB0 [13:23:16]SAM_PROTO_ClearQueue [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 09 00 00 [13:23:16]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]SAM_PROTO_ClearQueue done [13:23:16]KKMCreateOFDPacket [13:23:16]OFDProtocolAddRootSTLVToBuf [13:23:16]FM_MakeSignedData [13:23:16]FM_MakeSignedData [13:23:16]SAM_PROTO_SignData [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 01 02 [13:23:16]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=255 [13:23:16]MH_SAM_APDU [13: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 44 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 23 02 00 35 04 06 00 A6 [13:23:16]Write to MH i2c: E2 02 01 F6 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 44 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 23 02 00 35 04 06 00 A6 00 00 0A [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=10 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 02 02 05 72 8F D1 CF DF [13:23:17]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 72 8F D1 CF DF 00 00 FB [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:23:17]RAPDU: 90 00 [13:23:17]wFMCommunicate OK [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 0D 03 02 [13:23:17]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0B 00 F8 00 00 B3 E7 67 BA BF CC 42 5B 90 00 57 [13:23:17]RAPDU: B3 E7 67 BA BF CC 42 5B 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_SignData done [13:23:17]FM_MakeSignedData done [13:23:17]CreateOFDProtocolMessage [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 11 00 00 [13:23:17]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 [13:23:17]MH_I2C_Read... [13:23:17]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 37 36 90 00 CA [13:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:23:17]wFMCommunicate OK [13:23:17]CreateOFDProtocolMessage done [13:23:17]OFDSenderStorePacket 140169 [13:23:17]StoreOFDPacket docnum=140169 [13:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 DA 07 01 2E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 44 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 23 02 00 35 04 06 00 A6 72 8F D1 CF DF B3 E7 67 BA BF CC 42 5B [13:23:17]CheckFolder [13:23:17]dirname=/storage/ofd_packets [13:23:17]CheckFolder done [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00140169 [13:23:17]NVStorageSaveData ofd_packets/00140169 [13:23:17]File name is /storage/ofd_packets/00140169 [13:23:17]Write 301 bytes [13:23:17]NVStorageSaveData done [13:23:17]OFDSenderStorePacket done [13:23:17]KKMCreateOFDPacket done [13:23:17]NVStorageSaveData kkm_last_timestamp [13:23:17]File name is /storage/kkm_last_timestamp [13:23:17]Write 4 bytes [13:23:17]NVStorageSaveData done [13:23:17]ExternCall_PrintAddStr [13:23:17]wPrintStart [13:23:17]Write to MH i2c: 01 00 00 FA 00 FA [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:23:17]RasterBufferAndPrint [13:23:17]line Счет N : (1)594025 [13:23:17]line ИНН: 02508201610067 [13:23:17]line Контрольно-Кассовый Чек [13:23:17]line ПРОДАЖА [13:23:17]line ТРК (МРК, ГНК) : 52 [13:23:17]line Товар: 2710124130 [13:23:17]line Аи-92-К-5 [13:23:17]line 5.900 * 67.80 [13:23:17]line = 400.02 [13:23:17]line НДС 12% НСП 1% [13:23:17]line > о реализуемом товаре [13:23:17]line ОКРУГЛЕНИЕ: -0.02 [13:23:17]line ИТОГО: 400.00 [13:23:17]line Внесено: 400.00 [13:23:17]line СДАЧА: 0.00 [13:23:17]line НСП 1% : 3.54 [13:23:17]line НДС 12% : 42.48 [13:23:17]line Наличными: 400.00 [13:23:17]line Безнал.: 0.00 [13:23:17]line Место: АЗС № 136 "Партнер Нефть" [13:23:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:23:17]line СНО: Общий режим [13:23:17]line Чек 186 21.08.2024 13:23 [13:23:17]line Смена: 454 ФФД: 1.0 [13:23:17]line ЗНМ: 0300000067 [13:23:17]line РНМ: 0000000000092569 [13:23:17]line Версия ККМ: 001 [13:23:17]line ФМ: 0000000000871776 [13:23:17]line ФД: 140169 [13:23:17]line ФПД: 183010969374687 [13:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140169&fm=183010969374687&tin=02508201610067®Number=0000000000092569&sum=40000 [13:23:17]written 0, free lines is 4095 [13:23:17]OFD Sender: Processing packet 140169 [packets to send 137, broken 136] [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00140169 [13:23:17]OFD Sender: To server: pG, [13:23:17]CommunicateWithHost lk.salyk.kg:30040 [13:23:17]ConnectInit lk.salyk.kg [13:23:17]Connected sock=10 [13:23: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 37 36 0F 01 00 00 48 DA 07 01 2E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 44 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 23 02 00 35 04 06 00 A6 72 8F D1 CF DF B3 E7 67 BA BF CC 42 5B [13:23: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 37 36 4F 00 00 00 52 B7 47 00 54 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 37 36 10 04 04 00 89 23 02 00 F4 03 04 00 D4 90 C5 66 B6 04 01 00 00 CC 2B F2 79 25 B1 63 D2 [13:23:17]CommunicateWithHost err = 0 [13:23:17]CheckOFDResponse [13:23:17]1017 (14) - 77093643461234 [13:23:17]1041 (16) - 0000000000871776 [13:23:17]1040 (4) - 140169 [13:23:17]1012 (4) - 21.08.2024 07:01 [13:23:17]1206 (1) - 0 [13:23:17]OFD Sender: Remove packet 140169 [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00140169 [13:23:17]NVStorageDeleteData [13:23:17]Write to MH i2c: 01 00 00 25 01 26 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 DD 0C 16 [13:23:17]RasterBufferAndPrint [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]written 0, free lines is 3299 [13:23:17]MH_Cut [13:23:17]Write to MH i2c: D1 01 00 2C 01 01 FF [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 2C 01 00 FE [13:23:17]Write to MH i2c: 01 00 00 2D 01 2E [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:18]OFD Sender: No OFD packet to send [13:23:18]*** Cut start [13:23:18]*** Partial cut [13:23:18]*** CUTSNS_PIN = 1 [13:23:18]*** CUTSNS_PIN = 0 [13:23:18]*** Brake cut motor [13:23:18]Read from MH i2c: 01 [13:23:18]MH_I2C_Read... [13:23:18]*** Stop cut motor [13:23:18]*** Cut end [13:23:18]Read from MH i2c: 01 07 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [13:23:18]process_action close_receipt done [13:23:18]requested_data is exist [13:23:18]produce_requested_data [13:23:18]requested_item fm.sn is exist - process it [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 11 00 00 [13:23:18]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 17 00 [13:23:18]MH_I2C_Read... [13:23:18]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 37 36 90 00 00 [13:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:23:18]wFMCommunicate OK [13:23:18]requested_item fd.num is exist - process it [13:23:18]SAM_PROTO_GetFieldsCounters [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 00 00 [13:23:18]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 62 00 [13:23:19]MH_I2C_Read... [13:23:19]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [13:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetFieldsCounters done [13:23:19]requested_item shift.num is exist - process it [13:23:19]requested_item shift.opened is exist - process it [13:23:19]req_shift_opened [13:23:19]FM_GetShiftState [13:23:19]SAM_PROTO_GetShiftState [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 13 01 00 [13:23:19]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [13:23:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetShiftState done [13:23:19]FM_GetShiftState done [13:23:19]req_shift_opened done [13:23:19]requested_item shift.open_date is exist - process it [13:23:19]req_shift_open_date [13:23:19]req_shift_open_date done [13:23:19]produce_requested_data done [13:23:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140169,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:23:19]process_action_free close_receipt [13:23:19]json_value_free [13:23:19]json_value_free done [13:23:19]process_json_proto returns [13:23:19]Send response to host [13:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140169,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:23:19]free response buf [13:23:19]execute_script done [13:23:19]execute_script returns [13:23:19]free content buf [13:23:19]Sock 8.Close socket [13:23:19]Sock 8.Thread stoped [13:23:23]OFD Sender: No OFD packet to send [13:23:24]accept exits with 9 [13:23:24]New connection [13:23:24]New thread 3067592036 created [13:23:24]Thread 3067448676 joined [13:23:24]Waiting for new connection... [13:23:24] Sock 9.Parse request [13:23:24]Sock 9.Check first char [13:23:24]Sock 9.First char is OK [13:23:24]request: POST /json_proto HTTP/1.0 [13:23:24]Method: POST [13:23:24]URL: /json_proto [13:23:24]Method is POST - this is cgi request [13:23:24]url: /json_proto [13:23:24]query_string will be loaded in cgi processing [13:23:24]execute_cgi json_proto POST (null) [13:23:24]execute_cgi path=json_proto method=POST [13:23:24]POST find Content-Length [13:23:24]Host: 172.17.45.67:8080 [13:23:24]Content-Length: 682 [13:23:24]Content-Type: application/json [13:23:24] [13:23:24]POST finish read [13:23:24]Found Content-Length = 682 [13:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:24]execute_script... [13:23:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:24]POST & json_proto [13:23:24]process_json_proto [13:23:24]json parsed OK: [13:23:24]protocol is kg_v1.0 [13:23:24]action value=close_receipt [13:23:24]process_action close_receipt [13:23:24]cmd_close_receipt [13:23:24]MH_GetDate [13:23:24]Write to MH i2c: F0 00 00 31 01 21 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 09 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: F0 09 00 31 01 00 4D EA C5 66 5F 7F 2B 66 FB [13:23:24]GetLastDocTimeStamp 1724246596 [13:23:24]current date 1724246605 [13:23:24]FM_GetShiftState [13:23:24]SAM_PROTO_GetShiftState [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 01 00 [13:23:24]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 30 [13:23:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetShiftState done [13:23:24]FM_GetShiftState done [13:23:24]opened in 1724200467 [13:23:24]opened+sec_in_day 1724286867 [13:23:24]quantity*price = 100005 [13:23:24]sum+1 = 100006 [13:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 187 21.08.2024 13:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140170 ФПД: 172418950872639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140170&fm=172418950872639&tin=02508201610067®Number=0000000000092569&sum=100000 [13:23:25]StoreToDocumentArchive [13:23:25]shift 454 fd 140170 [13:23:25]save to /storage/0454/doc_00140170 [13:23:25]save last doc name /storage/0454/doc_00140170 to /storage/kkm_last_doc_name [13:23:25]save OK [13:23:25]Clear old archive folders... [13:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:25]tlvbuf is 01C5C820 [13:23:25]SAM_PROTO_ClearQueue [13:23:25]wFMCommunicate request_size=4 [13:23:25]MH_SAM_APDU [13:23:25]CAPDU: 80 09 00 00 [13:23:25]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:25]Read from MH i2c: E2 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 03 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:23:25]RAPDU: 90 00 [13:23:25]wFMCommunicate OK [13:23:25]SAM_PROTO_ClearQueue done [13:23:25]KKMCreateOFDPacket [13:23:25]OFDProtocolAddRootSTLVToBuf [13:23:25]FM_MakeSignedData [13:23:25]FM_MakeSignedData [13:23:25]SAM_PROTO_SignData [13:23:25]wFMCommunicate request_size=4 [13:23:25]MH_SAM_APDU [13:23:25]CAPDU: 80 0D 01 02 [13:23:25]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:25]Read from MH i2c: E2 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 03 00 [13:23:25]MH_I2C_Read... [13:23:25]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:23:25]RAPDU: 90 00 [13:23:25]wFMCommunicate OK [13:23:25]wFMCommunicate request_size=255 [13:23:25]MH_SAM_APDU [13:23: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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 4D EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 23 02 00 35 04 06 00 9C [13:23:25]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 4D EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 23 02 00 35 04 06 00 9C 00 00 01 [13:23:25]Write i2c OK [13:23:25]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]wFMCommunicate request_size=10 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 02 02 05 D0 6A 51 BE 3F [13:23:26]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 D0 6A 51 BE 3F 00 00 4F [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [13:23:26]RAPDU: 90 00 [13:23:26]wFMCommunicate OK [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 0D 03 02 [13:23:26]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0B 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 0B 00 43 01 00 B9 B5 95 31 7F FE 50 0D 90 00 CE [13:23:26]RAPDU: B9 B5 95 31 7F FE 50 0D 90 00 [13:23:26]wFMCommunicate OK [13:23:26]SAM_PROTO_SignData done [13:23:26]FM_MakeSignedData done [13:23:26]CreateOFDProtocolMessage [13:23:26]wFMCommunicate request_size=4 [13:23:26]MH_SAM_APDU [13:23:26]CAPDU: 80 11 00 00 [13:23:26]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:26]Read from MH i2c: E2 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 17 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [13:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:23:26]wFMCommunicate OK [13:23:26]CreateOFDProtocolMessage done [13:23:26]OFDSenderStorePacket 140170 [13:23:26]StoreOFDPacket docnum=140170 [13:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EC D2 07 01 1A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 4D EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 23 02 00 35 04 06 00 9C D0 6A 51 BE 3F B9 B5 95 31 7F FE 50 0D [13:23:26]CheckFolder [13:23:26]dirname=/storage/ofd_packets [13:23:26]CheckFolder done [13:23:26]ProducePacketName [13:23:26]name=ofd_packets/00140170 [13:23:26]NVStorageSaveData ofd_packets/00140170 [13:23:26]File name is /storage/ofd_packets/00140170 [13:23:26]Write 301 bytes [13:23:26]NVStorageSaveData done [13:23:26]OFDSenderStorePacket done [13:23:26]KKMCreateOFDPacket done [13:23:26]NVStorageSaveData kkm_last_timestamp [13:23:26]File name is /storage/kkm_last_timestamp [13:23:26]Write 4 bytes [13:23:26]NVStorageSaveData done [13:23:26]ExternCall_PrintAddStr [13:23:26]wPrintStart [13:23:26]Write to MH i2c: 01 00 00 45 01 46 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [13:23:26]RasterBufferAndPrint [13:23:26]line Счет N : (1)594024 [13:23:26]line ИНН: 02508201610067 [13:23:26]line Контрольно-Кассовый Чек [13:23:26]line ПРОДАЖА [13:23:26]line ТРК (МРК, ГНК) : 62 [13:23:26]line Товар: 2710124130 [13:23:26]line Аи-92-К-5 [13:23:26]line 14.750 * 67.80 [13:23:26]line = 1000.05 [13:23:26]line НДС 12% НСП 1% [13:23:26]line > о реализуемом товаре [13:23:26]line ОКРУГЛЕНИЕ: -0.05 [13:23:26]line ИТОГО: 1000.00 [13:23:26]line Внесено: 1000.00 [13:23:26]line СДАЧА: 0.00 [13:23:26]line НСП 1% : 8.85 [13:23:26]line НДС 12% : 106.20 [13:23:26]line Наличными: 1000.00 [13:23:26]line Безнал.: 0.00 [13:23:26]line Место: АЗС № 136 "Партнер Нефть" [13:23:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:23:26]line СНО: Общий режим [13:23:26]line Чек 187 21.08.2024 13:23 [13:23:26]line Смена: 454 ФФД: 1.0 [13:23:26]line ЗНМ: 0300000067 [13:23:26]line РНМ: 0000000000092569 [13:23:26]line Версия ККМ: 001 [13:23:26]line ФМ: 0000000000871776 [13:23:26]line ФД: 140170 [13:23:26]line ФПД: 172418950872639 [13:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132325&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140170&fm=172418950872639&tin=02508201610067®Number=0000000000092569&sum=100000 [13:23:26]written 0, free lines is 4095 [13:23:26]OFD Sender: Processing packet 140170 [packets to send 137, broken 136] [13:23:26]ProducePacketName [13:23:26]name=ofd_packets/00140170 [13:23:26]OFD Sender: To server: pG, [13:23:26]CommunicateWithHost lk.salyk.kg:30040 [13:23:26]ConnectInit lk.salyk.kg [13:23:26]Connected sock=10 [13:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EC D2 07 01 1A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 4D EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 23 02 00 35 04 06 00 9C D0 6A 51 BE 3F B9 B5 95 31 7F FE 50 0D [13:23:26]Write to MH i2c: 01 00 00 70 01 71 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 D8 0C 5C [13:23:26]RasterBufferAndPrint [13:23:26]line [13:23:26]line [13:23:26]line [13:23:26]line [13:23:26]line [13:23: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 37 36 4F 00 00 00 81 A1 47 00 B0 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 37 36 10 04 04 00 8A 23 02 00 F4 03 04 00 DD 90 C5 66 B6 04 01 00 00 79 83 71 5D 7B 2D 89 42 [13:23:26]CommunicateWithHost err = 0 [13:23:26]CheckOFDResponse [13:23:26]1017 (14) - 77093643461234 [13:23:26]1041 (16) - 0000000000871776 [13:23:26]1040 (4) - 140170 [13:23:26]1012 (4) - 21.08.2024 07:01 [13:23:26]1206 (1) - 0 [13:23:26]OFD Sender: Remove packet 140170 [13:23:26]ProducePacketName [13:23:26]name=ofd_packets/00140170 [13:23:26]NVStorageDeleteData [13:23:26]written 0, free lines is 3302 [13:23:26]MH_Cut [13:23:26]Write to MH i2c: D1 01 00 77 01 01 4A [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: D1 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: D1 01 00 [13:23:26]MH_I2C_Read... [13:23:26]Read from MH i2c: D1 01 00 77 01 00 49 [13:23:26]Write to MH i2c: 01 00 00 78 01 79 [13:23:26]Write i2c OK [13:23:26]MH_I2C_Read... [13:23:27]OFD Sender: No OFD packet to send [13:23:27]*** Cut start [13:23:27]*** Partial cut [13:23:27]*** CUTSNS_PIN = 1 [13:23:27]*** CUTSNS_PIN = 0 [13:23:27]*** Brake cut motor [13:23:27]Read from MH i2c: 01 [13:23:27]MH_I2C_Read... [13:23:27]*** Stop cut motor [13:23:27]*** Cut end [13:23:27]Read from MH i2c: 01 07 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [13:23:27]process_action close_receipt done [13:23:27]requested_data is exist [13:23:27]produce_requested_data [13:23:27]requested_item fm.sn is exist - process it [13:23:27]wFMCommunicate request_size=4 [13:23:27]MH_SAM_APDU [13:23:27]CAPDU: 80 11 00 00 [13:23:27]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [13:23:27]Write i2c OK [13:23:27]MH_I2C_Read... [13:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:27]Read from MH i2c: E2 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 [13:23:27]MH_I2C_Read... [13:23:27]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [13:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:23:27]wFMCommunicate OK [13:23:28]requested_item fd.num is exist - process it [13:23:28]SAM_PROTO_GetFieldsCounters [13:23:28]wFMCommunicate request_size=4 [13:23:28]MH_SAM_APDU [13:23:28]CAPDU: 80 13 00 00 [13:23:28]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [13:23:28]Write i2c OK [13:23:28]MH_I2C_Read... [13:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:28]Read from MH i2c: E2 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: E2 62 00 [13:23:28]MH_I2C_Read... [13:23:28]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [13:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:28]wFMCommunicate OK [13:23:28]SAM_PROTO_GetFieldsCounters done [13:23:28]requested_item shift.num is exist - process it [13:23:28]requested_item shift.opened is exist - process it [13:23:28]req_shift_opened [13:23:28]FM_GetShiftState [13:23:28]SAM_PROTO_GetShiftState [13:23:28]wFMCommunicate request_size=4 [13:23:28]MH_SAM_APDU [13:23:28]CAPDU: 80 13 01 00 [13:23:28]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [13:23:28]Write i2c OK [13:23:28]MH_I2C_Read... [13:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:28]Read from MH i2c: E2 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: E2 0E 00 [13:23:28]MH_I2C_Read... [13:23:28]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [13:23:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:23:28]wFMCommunicate OK [13:23:28]SAM_PROTO_GetShiftState done [13:23:28]FM_GetShiftState done [13:23:28]req_shift_opened done [13:23:28]requested_item shift.open_date is exist - process it [13:23:28]req_shift_open_date [13:23:28]req_shift_open_date done [13:23:28]produce_requested_data done [13:23:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140170,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:23:28]process_action_free close_receipt [13:23:28]json_value_free [13:23:28]json_value_free done [13:23:28]process_json_proto returns [13:23:28]Send response to host [13:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140170,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:23:28]free response buf [13:23:28]execute_script done [13:23:28]execute_script returns [13:23:28]free content buf [13:23:28]Sock 9.Close socket [13:23:28]Sock 9.Thread stoped [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]accept exits with 8 [13:24:22]New connection [13:24:22]New thread 3067448676 created [13:24:22]Thread 3067592036 joined [13:24:22]Waiting for new connection... [13:24:22] Sock 8.Parse request [13:24:22]Sock 8.Check first char [13:24:22]Sock 8.First char is OK [13:24:22]request: POST /json_proto HTTP/1.0 [13:24:22]Method: POST [13:24:22]URL: /json_proto [13:24:22]Method is POST - this is cgi request [13:24:22]url: /json_proto [13:24:22]query_string will be loaded in cgi processing [13:24:22]execute_cgi json_proto POST (null) [13:24:22]execute_cgi path=json_proto method=POST [13:24:22]POST find Content-Length [13:24:22]Host: 172.17.45.67:8080 [13:24:22]Content-Length: 677 [13:24:22]Content-Type: application/json [13:24:22] [13:24:22]POST finish read [13:24:22]Found Content-Length = 677 [13:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:24:22]execute_script... [13:24:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:24:22]POST & json_proto [13:24:22]process_json_proto [13:24:22]json parsed OK: [13:24:22]protocol is kg_v1.0 [13:24:22]action value=close_receipt [13:24:22]process_action close_receipt [13:24:22]cmd_close_receipt [13:24:22]MH_GetDate [13:24:22]Write to MH i2c: F0 00 00 7C 01 6C [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: F0 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: F0 09 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: F0 09 00 7C 01 00 86 EA C5 66 5F 7F 2B 66 7F [13:24:22]GetLastDocTimeStamp 1724246605 [13:24:22]current date 1724246662 [13:24:22]FM_GetShiftState [13:24:22]SAM_PROTO_GetShiftState [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 13 01 00 [13:24:22]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]OFD Sender: No OFD packet to send [13:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 0E 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [13:24:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:24:22]wFMCommunicate OK [13:24:22]SAM_PROTO_GetShiftState done [13:24:22]FM_GetShiftState done [13:24:22]opened in 1724200467 [13:24:22]opened+sec_in_day 1724286867 [13:24:22]quantity*price = 20001 [13:24:22]sum+1 = 20002 [13:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 188 21.08.2024 13:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140171 ФПД: 5119102920444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140171&fm=5119102920444&tin=02508201610067®Number=0000000000092569&sum=20000 [13:24:23]StoreToDocumentArchive [13:24:23]shift 454 fd 140171 [13:24:23]save to /storage/0454/doc_00140171 [13:24:23]save last doc name /storage/0454/doc_00140171 to /storage/kkm_last_doc_name [13:24:23]save OK [13:24:23]Clear old archive folders... [13:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:23]tlvbuf is 01C5BDE0 [13:24:23]SAM_PROTO_ClearQueue [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 09 00 00 [13:24:23]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]SAM_PROTO_ClearQueue done [13:24:23]KKMCreateOFDPacket [13:24:23]OFDProtocolAddRootSTLVToBuf [13:24:23]FM_MakeSignedData [13:24:23]FM_MakeSignedData [13:24:23]SAM_PROTO_SignData [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 01 02 [13:24:23]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]wFMCommunicate request_size=255 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 F4 03 04 00 86 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 23 02 00 35 04 06 00 04 [13:24:23]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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 F4 03 04 00 86 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 23 02 00 35 04 06 00 04 00 00 62 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]wFMCommunicate request_size=10 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 02 02 05 A7 E2 4F A6 FC [13:24:23]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 A7 E2 4F A6 FC 00 00 8C [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 03 02 [13:24:23]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 8E 01 00 90 EA 5F FD 45 FE F3 20 90 00 37 [13:24:23]RAPDU: 90 EA 5F FD 45 FE F3 20 90 00 [13:24:23]wFMCommunicate OK [13:24:23]SAM_PROTO_SignData done [13:24:23]FM_MakeSignedData done [13:24:23]CreateOFDProtocolMessage [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 11 00 00 [13:24:23]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 17 00 [13:24:23]MH_I2C_Read... [13:24:23]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 37 36 90 00 61 [13:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:24:23]wFMCommunicate OK [13:24:23]CreateOFDProtocolMessage done [13:24:23]OFDSenderStorePacket 140171 [13:24:23]StoreOFDPacket docnum=140171 [13:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 B3 07 01 57 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 F4 03 04 00 86 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 23 02 00 35 04 06 00 04 A7 E2 4F A6 FC 90 EA 5F FD 45 FE F3 20 [13:24:23]CheckFolder [13:24:23]dirname=/storage/ofd_packets [13:24:23]CheckFolder done [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00140171 [13:24:23]NVStorageSaveData ofd_packets/00140171 [13:24:23]File name is /storage/ofd_packets/00140171 [13:24:23]Write 301 bytes [13:24:23]NVStorageSaveData done [13:24:23]OFDSenderStorePacket done [13:24:23]KKMCreateOFDPacket done [13:24:23]NVStorageSaveData kkm_last_timestamp [13:24:23]File name is /storage/kkm_last_timestamp [13:24:23]Write 4 bytes [13:24:23]NVStorageSaveData done [13:24:23]ExternCall_PrintAddStr [13:24:23]wPrintStart [13:24:23]Write to MH i2c: 01 00 00 90 01 91 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [13:24:23]RasterBufferAndPrint [13:24:23]line Счет N : (1)594026 [13:24:23]line ИНН: 02508201610067 [13:24:23]line Контрольно-Кассовый Чек [13:24:23]line ПРОДАЖА [13:24:23]line ТРК (МРК, ГНК) : 42 [13:24:23]line Товар: 2710124130 [13:24:23]line Аи-92-К-5 [13:24:23]line 2.950 * 67.80 [13:24:23]line = 200.01 [13:24:23]line НДС 12% НСП 1% [13:24:23]line > о реализуемом товаре [13:24:23]line ОКРУГЛЕНИЕ: -0.01 [13:24:23]line ИТОГО: 200.00 [13:24:23]line Внесено: 200.00 [13:24:23]line СДАЧА: 0.00 [13:24:23]line НСП 1% : 1.77 [13:24:23]line НДС 12% : 21.24 [13:24:23]line Наличными: 200.00 [13:24:23]line Безнал.: 0.00 [13:24:23]line Место: АЗС № 136 "Партнер Нефть" [13:24:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:24:23]line СНО: Общий режим [13:24:23]line Чек 188 21.08.2024 13:24 [13:24:23]line Смена: 454 ФФД: 1.0 [13:24:23]line ЗНМ: 0300000067 [13:24:23]line РНМ: 0000000000092569 [13:24:23]line Версия ККМ: 001 [13:24:23]line ФМ: 0000000000871776 [13:24:23]line ФД: 140171 [13:24:24]line ФПД: 5119102920444 [13:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132422&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140171&fm=5119102920444&tin=02508201610067®Number=0000000000092569&sum=20000 [13:24:24]OFD Sender: Processing packet 140171 [packets to send 137, broken 136] [13:24:24]ProducePacketName [13:24:24]name=ofd_packets/00140171 [13:24:24]OFD Sender: To server: pG, [13:24:24]CommunicateWithHost lk.salyk.kg:30040 [13:24:24]ConnectInit lk.salyk.kg [13:24:24]written 0, free lines is 4095 [13:24:24]Connected sock=10 [13:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 B3 07 01 57 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 F4 03 04 00 86 EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 23 02 00 35 04 06 00 04 A7 E2 4F A6 FC 90 EA 5F FD 45 FE F3 20 [13:24: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 37 36 4F 00 00 00 84 29 47 00 28 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 37 36 10 04 04 00 8B 23 02 00 F4 03 04 00 17 91 C5 66 B6 04 01 00 00 02 E7 9E C9 B3 03 F3 2E [13:24:24]CommunicateWithHost err = 0 [13:24:24]CheckOFDResponse [13:24:24]1017 (14) - 77093643461234 [13:24:24]1041 (16) - 0000000000871776 [13:24:24]1040 (4) - 140171 [13:24:24]1012 (4) - 21.08.2024 07:02 [13:24:24]1206 (1) - 0 [13:24:24]OFD Sender: Remove packet 140171 [13:24:24]ProducePacketName [13:24:24]name=ofd_packets/00140171 [13:24:24]NVStorageDeleteData [13:24:24]Write to MH i2c: 01 00 00 BB 01 BC [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 07 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 D3 0C A2 [13:24:24]RasterBufferAndPrint [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]written 0, free lines is 3286 [13:24:24]MH_Cut [13:24:24]Write to MH i2c: D1 01 00 C2 01 01 95 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 01 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 01 00 C2 01 00 94 [13:24:24]Write to MH i2c: 01 00 00 C3 01 C4 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:25]OFD Sender: No OFD packet to send [13:24:25]*** Cut start [13:24:25]*** Partial cut [13:24:25]*** CUTSNS_PIN = 1 [13:24:25]*** CUTSNS_PIN = 0 [13:24:25]*** Brake cut motor [13:24:25]Read from MH i2c: 01 [13:24:25]MH_I2C_Read... [13:24:25]*** Stop cut motor [13:24:25]*** Cut end [13:24:25]Read from MH i2c: 01 07 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [13:24:25]process_action close_receipt done [13:24:25]requested_data is exist [13:24:25]produce_requested_data [13:24:25]requested_item fm.sn is exist - process it [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 11 00 00 [13:24:25]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:26]Read from MH i2c: E2 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 17 00 [13:24:26]MH_I2C_Read... [13:24:26]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 37 36 90 00 96 [13:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:24:26]wFMCommunicate OK [13:24:26]requested_item fd.num is exist - process it [13:24:26]SAM_PROTO_GetFieldsCounters [13:24:26]wFMCommunicate request_size=4 [13:24:26]MH_SAM_APDU [13:24:26]CAPDU: 80 13 00 00 [13:24:26]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:26]Read from MH i2c: E2 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 62 00 [13:24:26]MH_I2C_Read... [13:24:26]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [13:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:26]wFMCommunicate OK [13:24:26]SAM_PROTO_GetFieldsCounters done [13:24:26]requested_item shift.num is exist - process it [13:24:26]requested_item shift.opened is exist - process it [13:24:26]req_shift_opened [13:24:26]FM_GetShiftState [13:24:26]SAM_PROTO_GetShiftState [13:24:26]wFMCommunicate request_size=4 [13:24:26]MH_SAM_APDU [13:24:26]CAPDU: 80 13 01 00 [13:24:26]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:26]Read from MH i2c: E2 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 0E 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [13:24:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:24:26]wFMCommunicate OK [13:24:26]SAM_PROTO_GetShiftState done [13:24:26]FM_GetShiftState done [13:24:26]req_shift_opened done [13:24:26]requested_item shift.open_date is exist - process it [13:24:26]req_shift_open_date [13:24:26]req_shift_open_date done [13:24:26]produce_requested_data done [13:24:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140171,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:24:26]process_action_free close_receipt [13:24:26]json_value_free [13:24:26]json_value_free done [13:24:26]process_json_proto returns [13:24:26]Send response to host [13:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140171,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:24:26]free response buf [13:24:26]execute_script done [13:24:26]execute_script returns [13:24:26]free content buf [13:24:26]Sock 8.Close socket [13:24:26]Sock 8.Thread stoped [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:18]accept exits with 9 [13:25:18]New connection [13:25:18]New thread 3067592036 created [13:25:18]Thread 3067448676 joined [13:25:18]Waiting for new connection... [13:25:18] Sock 9.Parse request [13:25:18]Sock 9.Check first char [13:25:18]Sock 9.First char is OK [13:25:18]request: POST /json_proto HTTP/1.0 [13:25:18]Method: POST [13:25:18]URL: /json_proto [13:25:18]Method is POST - this is cgi request [13:25:18]url: /json_proto [13:25:18]query_string will be loaded in cgi processing [13:25:18]execute_cgi json_proto POST (null) [13:25:18]execute_cgi path=json_proto method=POST [13:25:18]POST find Content-Length [13:25:18]Host: 172.17.45.67:8080 [13:25:18]Content-Length: 677 [13:25:18]Content-Type: application/json [13:25:18] [13:25:18]POST finish read [13:25:18]Found Content-Length = 677 [13:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:18]execute_script... [13:25: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)594027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:18]POST & json_proto [13:25:18]process_json_proto [13:25:18]json parsed OK: [13:25:18]protocol is kg_v1.0 [13:25:18]action value=close_receipt [13:25:18]process_action close_receipt [13:25:18]cmd_close_receipt [13:25:18]MH_GetDate [13:25:18]Write to MH i2c: F0 00 00 C7 01 B7 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: F0 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: F0 09 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: F0 09 00 C7 01 00 BF EA C5 66 5F 7F 2B 66 03 [13:25:18]GetLastDocTimeStamp 1724246662 [13:25:18]current date 1724246719 [13:25:18]FM_GetShiftState [13:25:18]SAM_PROTO_GetShiftState [13:25:18]wFMCommunicate request_size=4 [13:25:18]MH_SAM_APDU [13:25:18]CAPDU: 80 13 01 00 [13:25:18]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [13:25:18]Write i2c OK [13:25:18]MH_I2C_Read... [13:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:18]Read from MH i2c: E2 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 0E 00 [13:25:18]MH_I2C_Read... [13:25:18]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [13:25:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:25:18]wFMCommunicate OK [13:25:18]SAM_PROTO_GetShiftState done [13:25:18]FM_GetShiftState done [13:25:18]opened in 1724200467 [13:25:18]opened+sec_in_day 1724286867 [13:25:18]quantity*price = 40002 [13:25:18]sum+1 = 40003 [13:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 189 21.08.2024 13:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140172 ФПД: 168203725910124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132519&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140172&fm=168203725910124&tin=02508201610067®Number=0000000000092569&sum=40000 [13:25:20]StoreToDocumentArchive [13:25:20]shift 454 fd 140172 [13:25:20]save to /storage/0454/doc_00140172 [13:25:20]save last doc name /storage/0454/doc_00140172 to /storage/kkm_last_doc_name [13:25:20]save OK [13:25:20]Clear old archive folders... [13:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:20]tlvbuf is 01C584E0 [13:25:20]SAM_PROTO_ClearQueue [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 09 00 00 [13:25:20]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [13:25:20]RAPDU: 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_ClearQueue done [13:25:20]KKMCreateOFDPacket [13:25:20]OFDProtocolAddRootSTLVToBuf [13:25:20]FM_MakeSignedData [13:25:20]FM_MakeSignedData [13:25:20]SAM_PROTO_SignData [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 0D 01 02 [13:25:20]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [13:25:20]RAPDU: 90 00 [13:25:20]wFMCommunicate OK [13:25:20]wFMCommunicate request_size=255 [13:25:20]MH_SAM_APDU [13:25: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BF EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 23 02 00 35 04 06 00 98 [13:25:20]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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BF EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 23 02 00 35 04 06 00 98 00 00 5F [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]OFD Sender: No OFD packet to send [13:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [13:25:20]RAPDU: 90 00 [13:25:20]wFMCommunicate OK [13:25:20]wFMCommunicate request_size=10 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 0D 02 02 05 FA FB 55 30 6C [13:25:20]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 FA FB 55 30 6C 00 00 43 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [13:25:20]RAPDU: 90 00 [13:25:20]wFMCommunicate OK [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 0D 03 02 [13:25:20]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0B 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 0B 00 D9 01 00 6A F6 09 53 8A D8 D8 20 90 00 6C [13:25:20]RAPDU: 6A F6 09 53 8A D8 D8 20 90 00 [13:25:20]wFMCommunicate OK [13:25:20]SAM_PROTO_SignData done [13:25:20]FM_MakeSignedData done [13:25:20]CreateOFDProtocolMessage [13:25:20]wFMCommunicate request_size=4 [13:25:20]MH_SAM_APDU [13:25:20]CAPDU: 80 11 00 00 [13:25:20]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:20]Read from MH i2c: E2 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: E2 17 00 [13:25:20]MH_I2C_Read... [13:25:20]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 37 36 90 00 AC [13:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:25:20]wFMCommunicate OK [13:25:20]CreateOFDProtocolMessage done [13:25:20]OFDSenderStorePacket 140172 [13:25:20]StoreOFDPacket docnum=140172 [13:25:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 91 07 01 4B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BF EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 23 02 00 35 04 06 00 98 FA FB 55 30 6C 6A F6 09 53 8A D8 D8 20 [13:25:20]CheckFolder [13:25:20]dirname=/storage/ofd_packets [13:25:20]CheckFolder done [13:25:20]ProducePacketName [13:25:20]name=ofd_packets/00140172 [13:25:20]NVStorageSaveData ofd_packets/00140172 [13:25:20]File name is /storage/ofd_packets/00140172 [13:25:20]Write 301 bytes [13:25:20]NVStorageSaveData done [13:25:20]OFDSenderStorePacket done [13:25:20]KKMCreateOFDPacket done [13:25:20]NVStorageSaveData kkm_last_timestamp [13:25:20]File name is /storage/kkm_last_timestamp [13:25:20]Write 4 bytes [13:25:20]NVStorageSaveData done [13:25:20]ExternCall_PrintAddStr [13:25:20]wPrintStart [13:25:20]Write to MH i2c: 01 00 00 DB 01 DC [13:25:20]Write i2c OK [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 07 00 [13:25:20]MH_I2C_Read... [13:25:20]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [13:25:20]RasterBufferAndPrint [13:25:20]line Счет N : (1)594027 [13:25:20]line ИНН: 02508201610067 [13:25:20]line Контрольно-Кассовый Чек [13:25:20]line ПРОДАЖА [13:25:20]line ТРК (МРК, ГНК) : 42 [13:25:20]line Товар: 2710124130 [13:25:20]line Аи-92-К-5 [13:25:20]line 5.900 * 67.80 [13:25:20]line = 400.02 [13:25:20]line НДС 12% НСП 1% [13:25:20]line > о реализуемом товаре [13:25:20]line ОКРУГЛЕНИЕ: -0.02 [13:25:20]line ИТОГО: 400.00 [13:25:20]line Внесено: 400.00 [13:25:20]line СДАЧА: 0.00 [13:25:20]line НСП 1% : 3.54 [13:25:20]line НДС 12% : 42.48 [13:25:20]line Наличными: 400.00 [13:25:20]line Безнал.: 0.00 [13:25:20]line Место: АЗС № 136 "Партнер Нефть" [13:25:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:25:20]line СНО: Общий режим [13:25:20]line Чек 189 21.08.2024 13:25 [13:25:20]line Смена: 454 ФФД: 1.0 [13:25:20]line ЗНМ: 0300000067 [13:25:20]line РНМ: 0000000000092569 [13:25:20]line Версия ККМ: 001 [13:25:20]line ФМ: 0000000000871776 [13:25:20]line ФД: 140172 [13:25:20]line ФПД: 168203725910124 [13:25:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T132519&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140172&fm=168203725910124&tin=02508201610067®Number=0000000000092569&sum=40000 [13:25:20]written 0, free lines is 4095 [13:25:20]OFD Sender: Processing packet 140172 [packets to send 137, broken 136] [13:25:20]ProducePacketName [13:25:20]name=ofd_packets/00140172 [13:25:20]OFD Sender: To server: pG, [13:25:20]CommunicateWithHost lk.salyk.kg:30040 [13:25:20]ConnectInit lk.salyk.kg [13:25:20]Connected sock=10 [13:25: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 37 36 0F 01 00 00 B1 91 07 01 4B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BF EA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 23 02 00 35 04 06 00 98 FA FB 55 30 6C 6A F6 09 53 8A D8 D8 20 [13:25: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 37 36 4F 00 00 00 82 D9 47 00 D9 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 37 36 10 04 04 00 8C 23 02 00 F4 03 04 00 50 91 C5 66 B6 04 01 00 00 33 DB 6B A5 17 4B 64 4A [13:25:21]CommunicateWithHost err = 0 [13:25:21]CheckOFDResponse [13:25:21]1017 (14) - 77093643461234 [13:25:21]1041 (16) - 0000000000871776 [13:25:21]1040 (4) - 140172 [13:25:21]1012 (4) - 21.08.2024 07:03 [13:25:21]1206 (1) - 0 [13:25:21]OFD Sender: Remove packet 140172 [13:25:21]ProducePacketName [13:25:21]name=ofd_packets/00140172 [13:25:21]NVStorageDeleteData [13:25:21]Write to MH i2c: 01 00 00 06 02 08 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: 01 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: 01 07 00 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 D9 0C F4 [13:25:21]RasterBufferAndPrint [13:25:21]line [13:25:21]line [13:25:21]line [13:25:21]line [13:25:21]line [13:25:21]written 0, free lines is 3296 [13:25:21]MH_Cut [13:25:21]Write to MH i2c: D1 01 00 0D 02 01 E1 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: D1 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: D1 01 00 [13:25:21]MH_I2C_Read... [13:25:21]Read from MH i2c: D1 01 00 0D 02 00 E0 [13:25:21]Write to MH i2c: 01 00 00 0E 02 10 [13:25:21]Write i2c OK [13:25:21]MH_I2C_Read... [13:25:21]OFD Sender: No OFD packet to send [13:25:21]*** Cut start [13:25:21]*** Partial cut [13:25:21]*** CUTSNS_PIN = 1 [13:25:21]*** CUTSNS_PIN = 0 [13:25:22]*** Brake cut motor [13:25:22]Read from MH i2c: 01 [13:25:22]MH_I2C_Read... [13:25:22]*** Stop cut motor [13:25:22]*** Cut end [13:25:22]Read from MH i2c: 01 07 00 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [13:25:22]process_action close_receipt done [13:25:22]requested_data is exist [13:25:22]produce_requested_data [13:25:22]requested_item fm.sn is exist - process it [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 11 00 00 [13:25:22]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 17 00 [13:25:22]MH_I2C_Read... [13:25:22]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 37 36 90 00 E2 [13:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:25:22]wFMCommunicate OK [13:25:22]requested_item fd.num is exist - process it [13:25:22]SAM_PROTO_GetFieldsCounters [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 13 00 00 [13:25:22]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 62 00 [13:25:22]MH_I2C_Read... [13:25:22]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [13:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:22]wFMCommunicate OK [13:25:22]SAM_PROTO_GetFieldsCounters done [13:25:22]requested_item shift.num is exist - process it [13:25:22]requested_item shift.opened is exist - process it [13:25:22]req_shift_opened [13:25:22]FM_GetShiftState [13:25:22]SAM_PROTO_GetShiftState [13:25:22]wFMCommunicate request_size=4 [13:25:22]MH_SAM_APDU [13:25:22]CAPDU: 80 13 01 00 [13:25:22]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [13:25:22]Write i2c OK [13:25:22]MH_I2C_Read... [13:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:22]Read from MH i2c: E2 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 0E 00 [13:25:22]MH_I2C_Read... [13:25:22]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [13:25:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:25:22]wFMCommunicate OK [13:25:22]SAM_PROTO_GetShiftState done [13:25:22]FM_GetShiftState done [13:25:22]req_shift_opened done [13:25:22]requested_item shift.open_date is exist - process it [13:25:22]req_shift_open_date [13:25:22]req_shift_open_date done [13:25:22]produce_requested_data done [13:25:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140172,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:25:22]process_action_free close_receipt [13:25:22]json_value_free [13:25:22]json_value_free done [13:25:22]process_json_proto returns [13:25:22]Send response to host [13:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140172,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:25:22]free response buf [13:25:22]execute_script done [13:25:22]execute_script returns [13:25:22]free content buf [13:25:22]Sock 9.Close socket [13:25:22]Sock 9.Thread stoped [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:06]int [13:27:06]Write to MH i2c: 01 00 00 12 02 14 [13:27:06]*** FLAG_PRN_KEY set [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 12 02 00 08 00 00 00 FF 0F 31 [13:27:06]state=0 [13:27:06]Key pressed [13:27:06]Feed [13:27:06]Write to MH i2c: D8 00 00 13 02 EC [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: D8 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: D8 01 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: D8 01 00 13 02 00 ED [13:27:06]int [13:27:06]Write to MH i2c: 01 00 00 14 02 16 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 14 02 00 48 00 00 00 3C 00 A1 [13:27:06]state=2 [13:27:06]Key pressed [13:27:06]int [13:27:06]Write to MH i2c: 01 00 00 15 02 17 [13:27:06]*** FLAG_PRN_KEY reset [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 F5 0F 22 [13:27:06]state=2 [13:27:06]Stop feed [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:03]accept exits with 8 [13:30:03]New connection [13:30:03]New thread 3067448676 created [13:30:03]Thread 3067592036 joined [13:30:03]Waiting for new connection... [13:30:03] Sock 8.Parse request [13:30:03]Sock 8.Check first char [13:30:03]Sock 8.First char is OK [13:30:03]request: POST /json_proto HTTP/1.0 [13:30:03]Method: POST [13:30:03]URL: /json_proto [13:30:03]Method is POST - this is cgi request [13:30:03]url: /json_proto [13:30:03]query_string will be loaded in cgi processing [13:30:03]execute_cgi json_proto POST (null) [13:30:03]execute_cgi path=json_proto method=POST [13:30:03]POST find Content-Length [13:30:03]Host: 172.17.45.67:8080 [13:30:03]Content-Length: 677 [13:30:03]Content-Type: application/json [13:30:03] [13:30:03]POST finish read [13:30:03]Found Content-Length = 677 [13:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:03]execute_script... [13:30: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)594028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:03]POST & json_proto [13:30:03]process_json_proto [13:30:03]json parsed OK: [13:30:03]protocol is kg_v1.0 [13:30:03]action value=close_receipt [13:30:03]process_action close_receipt [13:30:03]cmd_close_receipt [13:30:03]MH_GetDate [13:30:03]Write to MH i2c: F0 00 00 16 02 07 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 09 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: F0 09 00 16 02 00 DC EB C5 66 5F 7F 2B 66 71 [13:30:03]GetLastDocTimeStamp 1724246719 [13:30:03]current date 1724247004 [13:30:03]FM_GetShiftState [13:30:03]SAM_PROTO_GetShiftState [13:30:03]wFMCommunicate request_size=4 [13:30:03]MH_SAM_APDU [13:30:03]CAPDU: 80 13 01 00 [13:30:03]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:03]Read from MH i2c: E2 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 0E 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [13:30:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:30:03]wFMCommunicate OK [13:30:03]SAM_PROTO_GetShiftState done [13:30:03]FM_GetShiftState done [13:30:03]opened in 1724200467 [13:30:03]opened+sec_in_day 1724286867 [13:30:03]quantity*price = 50036 [13:30:03]sum+1 = 50037 [13:30:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 190 21.08.2024 13:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140173 ФПД: 41297274919905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133004&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140173&fm=41297274919905&tin=02508201610067®Number=0000000000092569&sum=50000 [13:30:04]StoreToDocumentArchive [13:30:04]shift 454 fd 140173 [13:30:04]save to /storage/0454/doc_00140173 [13:30:04]save last doc name /storage/0454/doc_00140173 to /storage/kkm_last_doc_name [13:30:04]save OK [13:30:04]Clear old archive folders... [13:30:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:04]tlvbuf is 01CA8380 [13:30:04]SAM_PROTO_ClearQueue [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 09 00 00 [13:30:04]Write to MH i2c: E2 08 00 24 02 80 09 00 00 00 00 00 00 98 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 03 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [13:30:04]RAPDU: 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_ClearQueue done [13:30:04]KKMCreateOFDPacket [13:30:04]OFDProtocolAddRootSTLVToBuf [13:30:04]FM_MakeSignedData [13:30:04]FM_MakeSignedData [13:30:04]SAM_PROTO_SignData [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 0D 01 02 [13:30:04]Write to MH i2c: E2 08 00 25 02 80 0D 01 02 00 00 00 00 A0 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 03 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [13:30:04]RAPDU: 90 00 [13:30:04]wFMCommunicate OK [13:30:04]wFMCommunicate request_size=255 [13:30:04]MH_SAM_APDU [13:30: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DC EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 23 02 00 35 04 06 00 25 [13:30:04]Write to MH i2c: E2 02 01 26 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DC EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 23 02 00 35 04 06 00 25 00 00 77 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]wFMCommunicate request_size=10 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 02 02 05 8F 45 66 DB E1 [13:30:05]Write to MH i2c: E2 0D 00 27 02 80 0D 02 02 05 00 8F 45 66 DB E1 00 00 A3 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [13:30:05]RAPDU: 90 00 [13:30:05]wFMCommunicate OK [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 0D 03 02 [13:30:05]Write to MH i2c: E2 08 00 28 02 80 0D 03 02 00 00 00 00 A5 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 0B 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 0B 00 28 02 00 75 81 31 9F DE 1A 66 63 90 00 2D [13:30:05]RAPDU: 75 81 31 9F DE 1A 66 63 90 00 [13:30:05]wFMCommunicate OK [13:30:05]SAM_PROTO_SignData done [13:30:05]FM_MakeSignedData done [13:30:05]CreateOFDProtocolMessage [13:30:05]wFMCommunicate request_size=4 [13:30:05]MH_SAM_APDU [13:30:05]CAPDU: 80 11 00 00 [13:30:05]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:05]Read from MH i2c: E2 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 17 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FC [13:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:05]wFMCommunicate OK [13:30:05]CreateOFDProtocolMessage done [13:30:05]OFDSenderStorePacket 140173 [13:30:05]StoreOFDPacket docnum=140173 [13:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 29 07 01 1E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DC EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 23 02 00 35 04 06 00 25 8F 45 66 DB E1 75 81 31 9F DE 1A 66 63 [13:30:05]CheckFolder [13:30:05]dirname=/storage/ofd_packets [13:30:05]CheckFolder done [13:30:05]ProducePacketName [13:30:05]name=ofd_packets/00140173 [13:30:05]NVStorageSaveData ofd_packets/00140173 [13:30:05]File name is /storage/ofd_packets/00140173 [13:30:05]Write 301 bytes [13:30:05]NVStorageSaveData done [13:30:05]OFDSenderStorePacket done [13:30:05]KKMCreateOFDPacket done [13:30:05]NVStorageSaveData kkm_last_timestamp [13:30:05]File name is /storage/kkm_last_timestamp [13:30:05]Write 4 bytes [13:30:05]NVStorageSaveData done [13:30:05]ExternCall_PrintAddStr [13:30:05]wPrintStart [13:30:05]Write to MH i2c: 01 00 00 2A 02 2C [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 07 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [13:30:05]RasterBufferAndPrint [13:30:05]line Счет N : (1)594028 [13:30:05]line ИНН: 02508201610067 [13:30:05]line Контрольно-Кассовый Чек [13:30:05]line ПРОДАЖА [13:30:05]line ТРК (МРК, ГНК) : 62 [13:30:05]line Товар: 2710124130 [13:30:05]line Аи-92-К-5 [13:30:05]line 7.380 * 67.80 [13:30:05]line = 500.36 [13:30:05]line НДС 12% НСП 1% [13:30:05]line > о реализуемом товаре [13:30:05]line ОКРУГЛЕНИЕ: -0.36 [13:30:05]line ИТОГО: 500.00 [13:30:05]line Внесено: 500.00 [13:30:05]line СДАЧА: 0.00 [13:30:05]line НСП 1% : 4.43 [13:30:05]line НДС 12% : 53.14 [13:30:05]line Наличными: 500.00 [13:30:05]line Безнал.: 0.00 [13:30:05]line Место: АЗС № 136 "Партнер Нефть" [13:30:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:30:05]line СНО: Общий режим [13:30:05]line Чек 190 21.08.2024 13:30 [13:30:05]line Смена: 454 ФФД: 1.0 [13:30:05]line ЗНМ: 0300000067 [13:30:05]line РНМ: 0000000000092569 [13:30:05]line Версия ККМ: 001 [13:30:05]line ФМ: 0000000000871776 [13:30:05]line ФД: 140173 [13:30:05]line ФПД: 41297274919905 [13:30:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133004&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140173&fm=41297274919905&tin=02508201610067®Number=0000000000092569&sum=50000 [13:30:05]written 0, free lines is 4095 [13:30:05]OFD Sender: Processing packet 140173 [packets to send 137, broken 136] [13:30:05]ProducePacketName [13:30:05]name=ofd_packets/00140173 [13:30:05]OFD Sender: To server: pG, [13:30:05]CommunicateWithHost lk.salyk.kg:30040 [13:30:05]ConnectInit lk.salyk.kg [13:30:05]Connected sock=10 [13:30: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 37 36 0F 01 00 00 B1 29 07 01 1E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DC EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 23 02 00 35 04 06 00 25 8F 45 66 DB E1 75 81 31 9F DE 1A 66 63 [13:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B1 6E 47 00 D4 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 23 02 00 F4 03 04 00 6C 92 C5 66 B6 04 01 00 00 6D 24 10 8B 49 B8 FA 44 [13:30:05]CommunicateWithHost err = 0 [13:30:05]CheckOFDResponse [13:30:05]1017 (14) - 77093643461234 [13:30:05]1041 (16) - 0000000000871776 [13:30:05]1040 (4) - 140173 [13:30:05]1012 (4) - 21.08.2024 07:08 [13:30:05]1206 (1) - 0 [13:30:05]OFD Sender: Remove packet 140173 [13:30:05]ProducePacketName [13:30:05]name=ofd_packets/00140173 [13:30:05]NVStorageDeleteData [13:30:05]Write to MH i2c: 01 00 00 55 02 57 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 07 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 DA 0C 44 [13:30:05]RasterBufferAndPrint [13:30:05]line [13:30:05]line [13:30:05]line [13:30:05]line [13:30:05]line [13:30:05]written 0, free lines is 3298 [13:30:05]MH_Cut [13:30:05]Write to MH i2c: D1 01 00 5C 02 01 30 [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: D1 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: D1 01 00 [13:30:05]MH_I2C_Read... [13:30:05]Read from MH i2c: D1 01 00 5C 02 00 2F [13:30:05]Write to MH i2c: 01 00 00 5D 02 5F [13:30:05]Write i2c OK [13:30:05]MH_I2C_Read... [13:30:06]OFD Sender: No OFD packet to send [13:30:06]*** Cut start [13:30:06]*** Partial cut [13:30:06]*** CUTSNS_PIN = 1 [13:30:06]*** CUTSNS_PIN = 0 [13:30:06]*** Brake cut motor [13:30:07]Read from MH i2c: 01 [13:30:07]MH_I2C_Read... [13:30:07]*** Stop cut motor [13:30:07]*** Cut end [13:30:07]Read from MH i2c: 01 07 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 FF 0F 74 [13:30:07]process_action close_receipt done [13:30:07]requested_data is exist [13:30:07]produce_requested_data [13:30:07]requested_item fm.sn is exist - process it [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 11 00 00 [13:30:07]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 17 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 31 [13:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:07]wFMCommunicate OK [13:30:07]requested_item fd.num is exist - process it [13:30:07]SAM_PROTO_GetFieldsCounters [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 13 00 00 [13:30:07]Write to MH i2c: E2 08 00 5F 02 80 13 00 00 00 00 00 00 DD [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 62 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 62 00 5F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:30:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_GetFieldsCounters done [13:30:07]requested_item shift.num is exist - process it [13:30:07]requested_item shift.opened is exist - process it [13:30:07]req_shift_opened [13:30:07]FM_GetShiftState [13:30:07]SAM_PROTO_GetShiftState [13:30:07]wFMCommunicate request_size=4 [13:30:07]MH_SAM_APDU [13:30:07]CAPDU: 80 13 01 00 [13:30:07]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [13:30:07]Write i2c OK [13:30:07]MH_I2C_Read... [13:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:07]Read from MH i2c: E2 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0E 00 [13:30:07]MH_I2C_Read... [13:30:07]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [13:30:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:30:07]wFMCommunicate OK [13:30:07]SAM_PROTO_GetShiftState done [13:30:07]FM_GetShiftState done [13:30:07]req_shift_opened done [13:30:07]requested_item shift.open_date is exist - process it [13:30:07]req_shift_open_date [13:30:07]req_shift_open_date done [13:30:07]produce_requested_data done [13:30:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140173,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:30:07]process_action_free close_receipt [13:30:07]json_value_free [13:30:07]json_value_free done [13:30:07]process_json_proto returns [13:30:07]Send response to host [13:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140173,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:30:07]free response buf [13:30:07]execute_script done [13:30:07]execute_script returns [13:30:07]free content buf [13:30:07]Sock 8.Close socket [13:30:07]Sock 8.Thread stoped [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:33]accept exits with 9 [13:30:33]New connection [13:30:33]New thread 3067592036 created [13:30:33]Thread 3067448676 joined [13:30:33]Waiting for new connection... [13:30:33] Sock 9.Parse request [13:30:33]Sock 9.Check first char [13:30:33]Sock 9.First char is OK [13:30:33]request: POST /json_proto HTTP/1.0 [13:30:33]Method: POST [13:30:33]URL: /json_proto [13:30:33]Method is POST - this is cgi request [13:30:33]url: /json_proto [13:30:33]query_string will be loaded in cgi processing [13:30:33]execute_cgi json_proto POST (null) [13:30:33]execute_cgi path=json_proto method=POST [13:30:33]POST find Content-Length [13:30:33]Host: 172.17.45.67:8080 [13:30:33]Content-Length: 822 [13:30:33]Content-Type: application/json [13:30:33] [13:30:33]POST finish read [13:30:33]Found Content-Length = 822 [13:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:33]execute_script... [13:30:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:33]POST & json_proto [13:30:33]process_json_proto [13:30:33]json parsed OK: [13:30:33]protocol is kg_v1.0 [13:30:33]action value=close_receipt [13:30:33]process_action close_receipt [13:30:33]cmd_close_receipt [13:30:33]MH_GetDate [13:30:33]Write to MH i2c: F0 00 00 61 02 52 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 09 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: F0 09 00 61 02 00 F9 EB C5 66 5F 7F 2B 66 D9 [13:30:33]GetLastDocTimeStamp 1724247004 [13:30:33]current date 1724247033 [13:30:33]FM_GetShiftState [13:30:33]SAM_PROTO_GetShiftState [13:30:33]wFMCommunicate request_size=4 [13:30:33]MH_SAM_APDU [13:30:33]CAPDU: 80 13 01 00 [13:30:33]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [13:30:33]Write i2c OK [13:30:33]MH_I2C_Read... [13:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:33]Read from MH i2c: E2 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 [13:30:33]MH_I2C_Read... [13:30:33]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [13:30:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:30:33]wFMCommunicate OK [13:30:33]SAM_PROTO_GetShiftState done [13:30:33]FM_GetShiftState done [13:30:33]opened in 1724200467 [13:30:33]opened+sec_in_day 1724286867 [13:30:33]quantity*price = 100005 [13:30:33]sum+1 = 100006 [13:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 191 21.08.2024 13:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140174 ФПД: 255512978139405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140174&fm=255512978139405&tin=02508201610067®Number=0000000000092569&sum=100000 [13:30:34]StoreToDocumentArchive [13:30:34]shift 454 fd 140174 [13:30:34]save to /storage/0454/doc_00140174 [13:30:34]save last doc name /storage/0454/doc_00140174 to /storage/kkm_last_doc_name [13:30:34]save OK [13:30:34]Clear old archive folders... [13:30:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:34]tlvbuf is 01C507F0 [13:30:34]SAM_PROTO_ClearQueue [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 09 00 00 [13:30:34]Write to MH i2c: E2 08 00 6F 02 80 09 00 00 00 00 00 00 E3 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]SAM_PROTO_ClearQueue done [13:30:34]KKMCreateOFDPacket [13:30:34]OFDProtocolAddRootSTLVToBuf [13:30:34]FM_MakeSignedData [13:30:34]FM_MakeSignedData [13:30:34]SAM_PROTO_SignData [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 0D 01 02 [13:30:34]Write to MH i2c: E2 08 00 70 02 80 0D 01 02 00 00 00 00 EB [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]wFMCommunicate request_size=255 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F9 EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 23 02 00 35 04 06 00 E8 [13:30:34]Write to MH i2c: E2 02 01 71 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F9 EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 23 02 00 35 04 06 00 E8 00 00 33 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]wFMCommunicate request_size=10 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 0D 02 02 05 63 40 4C 29 0D [13:30:34]Write to MH i2c: E2 0D 00 72 02 80 0D 02 02 05 00 63 40 4C 29 0D 00 00 1D [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [13:30:34]RAPDU: 90 00 [13:30:34]wFMCommunicate OK [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 0D 03 02 [13:30:34]Write to MH i2c: E2 08 00 73 02 80 0D 03 02 00 00 00 00 F0 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 0B 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 0B 00 73 02 00 81 47 D4 5B 20 DC 4F E0 90 00 13 [13:30:34]RAPDU: 81 47 D4 5B 20 DC 4F E0 90 00 [13:30:34]wFMCommunicate OK [13:30:34]SAM_PROTO_SignData done [13:30:34]FM_MakeSignedData done [13:30:34]CreateOFDProtocolMessage [13:30:34]wFMCommunicate request_size=4 [13:30:34]MH_SAM_APDU [13:30:34]CAPDU: 80 11 00 00 [13:30:34]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:34]Read from MH i2c: E2 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 17 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 47 [13:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:34]wFMCommunicate OK [13:30:34]CreateOFDProtocolMessage done [13:30:34]OFDSenderStorePacket 140174 [13:30:34]StoreOFDPacket docnum=140174 [13:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F8 9C 07 01 BF 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F9 EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 23 02 00 35 04 06 00 E8 63 40 4C 29 0D 81 47 D4 5B 20 DC 4F E0 [13:30:34]CheckFolder [13:30:34]dirname=/storage/ofd_packets [13:30:34]CheckFolder done [13:30:34]ProducePacketName [13:30:34]name=ofd_packets/00140174 [13:30:34]NVStorageSaveData ofd_packets/00140174 [13:30:34]File name is /storage/ofd_packets/00140174 [13:30:34]Write 301 bytes [13:30:34]NVStorageSaveData done [13:30:34]OFDSenderStorePacket done [13:30:34]KKMCreateOFDPacket done [13:30:34]NVStorageSaveData kkm_last_timestamp [13:30:34]File name is /storage/kkm_last_timestamp [13:30:34]Write 4 bytes [13:30:34]NVStorageSaveData done [13:30:34]ExternCall_PrintAddStr [13:30:34]wPrintStart [13:30:34]Write to MH i2c: 01 00 00 75 02 77 [13:30:34]Write i2c OK [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: 01 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: 01 07 00 [13:30:34]MH_I2C_Read... [13:30:34]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [13:30:34]RasterBufferAndPrint [13:30:34]line Счет N : (1)594029 [13:30:34]line ИНН: 02508201610067 [13:30:34]line Контрольно-Кассовый Чек [13:30:34]line ПРОДАЖА [13:30:34]line ТРК (МРК, ГНК) : 42 [13:30:34]line Товар: 2710124130 [13:30:34]line Аи-92-К-5 [13:30:34]line 14.750 * 67.80 [13:30:34]line = 1000.05 [13:30:34]line НДС 12% НСП 1% [13:30:34]line > о реализуемом товаре [13:30:34]line ОКРУГЛЕНИЕ: -0.05 [13:30:34]line ИТОГО: 1000.00 [13:30:34]line НСП 1% : 8.85 [13:30:34]line НДС 12% : 106.20 [13:30:34]line Наличными: 0.00 [13:30:34]line Безнал.: 1000.00 [13:30:34]line Место: АЗС № 136 "Партнер Нефть" [13:30:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:30:34]line СНО: Общий режим [13:30:34]line Чек 191 21.08.2024 13:30 [13:30:34]line Смена: 454 ФФД: 1.0 [13:30:34]line ЗНМ: 0300000067 [13:30:34]line РНМ: 0000000000092569 [13:30:34]line Версия ККМ: 001 [13:30:34]line Платежная система: O! деньги [13:30:34]line ФМ: 0000000000871776 [13:30:34]line ФД: 140174 [13:30:34]line ФПД: 255512978139405 [13:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140174&fm=255512978139405&tin=02508201610067®Number=0000000000092569&sum=100000 [13:30:35]OFD Sender: Processing packet 140174 [packets to send 137, broken 136] [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00140174 [13:30:35]OFD Sender: To server: pG, [13:30:35]CommunicateWithHost lk.salyk.kg:30040 [13:30:35]ConnectInit lk.salyk.kg [13:30:35]written 0, free lines is 4095 [13:30:35]Connected sock=10 [13:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F8 9C 07 01 BF 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 F9 EB C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 23 02 00 35 04 06 00 E8 63 40 4C 29 0D 81 47 D4 5B 20 DC 4F E0 [13:30:35]Write to MH i2c: 01 00 00 A0 02 A2 [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 D5 0C 8A [13:30:35]RasterBufferAndPrint [13:30:35]line [13:30:35]line [13:30:35]line [13:30:35]line [13:30:35]line [13:30:35]written 0, free lines is 3292 [13:30:35]MH_Cut [13:30:35]Write to MH i2c: D1 01 00 A7 02 01 7B [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: D1 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: D1 01 00 [13:30:35]MH_I2C_Read... [13:30:35]Read from MH i2c: D1 01 00 A7 02 00 7A [13:30:35]Write to MH i2c: 01 00 00 A8 02 AA [13:30:35]Write i2c OK [13:30:35]MH_I2C_Read... [13:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 75 3A 47 00 F8 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 37 36 10 04 04 00 8E 23 02 00 F4 03 04 00 8A 92 C5 66 B6 04 01 00 00 7E 90 5B C1 01 8E 30 33 [13:30:35]CommunicateWithHost err = 0 [13:30:35]CheckOFDResponse [13:30:35]1017 (14) - 77093643461234 [13:30:35]1041 (16) - 0000000000871776 [13:30:35]1040 (4) - 140174 [13:30:35]1012 (4) - 21.08.2024 07:08 [13:30:35]1206 (1) - 0 [13:30:35]OFD Sender: Remove packet 140174 [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00140174 [13:30:35]NVStorageDeleteData [13:30:36]OFD Sender: No OFD packet to send [13:30:36]*** Cut start [13:30:36]*** Partial cut [13:30:36]*** CUTSNS_PIN = 1 [13:30:36]*** CUTSNS_PIN = 0 [13:30:36]*** Brake cut motor [13:30:36]Read from MH i2c: 01 [13:30:36]MH_I2C_Read... [13:30:36]*** Stop cut motor [13:30:36]*** Cut end [13:30:36]Read from MH i2c: 01 07 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 FF 0F BF [13:30:36]process_action close_receipt done [13:30:36]requested_data is exist [13:30:36]produce_requested_data [13:30:36]requested_item fm.sn is exist - process it [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 11 00 00 [13:30:36]Write to MH i2c: E2 08 00 A9 02 80 11 00 00 00 00 00 00 25 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:36]Read from MH i2c: E2 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 17 00 [13:30:36]MH_I2C_Read... [13:30:36]Read from MH i2c: E2 17 00 A9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [13:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:30:36]wFMCommunicate OK [13:30:36]requested_item fd.num is exist - process it [13:30:36]SAM_PROTO_GetFieldsCounters [13:30:36]wFMCommunicate request_size=4 [13:30:36]MH_SAM_APDU [13:30:36]CAPDU: 80 13 00 00 [13:30:36]Write to MH i2c: E2 08 00 AA 02 80 13 00 00 00 00 00 00 28 [13:30:36]Write i2c OK [13:30:36]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 62 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 62 00 AA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_GetFieldsCounters done [13:30:37]requested_item shift.num is exist - process it [13:30:37]requested_item shift.opened is exist - process it [13:30:37]req_shift_opened [13:30:37]FM_GetShiftState [13:30:37]SAM_PROTO_GetShiftState [13:30:37]wFMCommunicate request_size=4 [13:30:37]MH_SAM_APDU [13:30:37]CAPDU: 80 13 01 00 [13:30:37]Write to MH i2c: E2 08 00 AB 02 80 13 01 00 00 00 00 00 2A [13:30:37]Write i2c OK [13:30:37]MH_I2C_Read... [13:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:37]Read from MH i2c: E2 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 [13:30:37]MH_I2C_Read... [13:30:37]Read from MH i2c: E2 0E 00 AB 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AA [13:30:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:30:37]wFMCommunicate OK [13:30:37]SAM_PROTO_GetShiftState done [13:30:37]FM_GetShiftState done [13:30:37]req_shift_opened done [13:30:37]requested_item shift.open_date is exist - process it [13:30:37]req_shift_open_date [13:30:37]req_shift_open_date done [13:30:37]produce_requested_data done [13:30:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140174,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:30:37]process_action_free close_receipt [13:30:37]json_value_free [13:30:37]json_value_free done [13:30:37]process_json_proto returns [13:30:37]Send response to host [13:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140174,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:30:37]free response buf [13:30:37]execute_script done [13:30:37]execute_script returns [13:30:37]free content buf [13:30:37]Sock 9.Close socket [13:30:37]Sock 9.Thread stoped [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:07]accept exits with 8 [13:36:07]New connection [13:36:07]New thread 3067448676 created [13:36:07]Thread 3067592036 joined [13:36:07]Waiting for new connection... [13:36:07] Sock 8.Parse request [13:36:07]Sock 8.Check first char [13:36:07]Sock 8.First char is OK [13:36:07]request: POST /json_proto HTTP/1.0 [13:36:07]Method: POST [13:36:07]URL: /json_proto [13:36:07]Method is POST - this is cgi request [13:36:07]url: /json_proto [13:36:07]query_string will be loaded in cgi processing [13:36:07]execute_cgi json_proto POST (null) [13:36:07]execute_cgi path=json_proto method=POST [13:36:07]POST find Content-Length [13:36:07]Host: 172.17.45.67:8080 [13:36:07]Content-Length: 677 [13:36:07]Content-Type: application/json [13:36:07] [13:36:07]POST finish read [13:36:07]Found Content-Length = 677 [13:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:07]execute_script... [13:36: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)594030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:07]POST & json_proto [13:36:07]process_json_proto [13:36:07]json parsed OK: [13:36:07]protocol is kg_v1.0 [13:36:07]action value=close_receipt [13:36:07]process_action close_receipt [13:36:07]cmd_close_receipt [13:36:07]MH_GetDate [13:36:07]Write to MH i2c: F0 00 00 AC 02 9D [13:36:07]Write i2c OK [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 09 00 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 09 00 AC 02 00 48 ED C5 66 5F 7F 2B 66 75 [13:36:07]GetLastDocTimeStamp 1724247033 [13:36:07]current date 1724247368 [13:36:07]FM_GetShiftState [13:36:07]SAM_PROTO_GetShiftState [13:36:07]wFMCommunicate request_size=4 [13:36:07]MH_SAM_APDU [13:36:07]CAPDU: 80 13 01 00 [13:36:07]Write to MH i2c: E2 08 00 AD 02 80 13 01 00 00 00 00 00 2C [13:36:07]Write i2c OK [13:36:07]MH_I2C_Read... [13:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:07]Read from MH i2c: E2 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: E2 0E 00 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: E2 0E 00 AD 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [13:36:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:36:07]wFMCommunicate OK [13:36:07]SAM_PROTO_GetShiftState done [13:36:07]FM_GetShiftState done [13:36:07]opened in 1724200467 [13:36:07]opened+sec_in_day 1724286867 [13:36:07]quantity*price = 50036 [13:36:07]sum+1 = 50037 [13:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 192 21.08.2024 13:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140175 ФПД: 134346074219145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140175&fm=134346074219145&tin=02508201610067®Number=0000000000092569&sum=50000 [13:36:08]StoreToDocumentArchive [13:36:08]shift 454 fd 140175 [13:36:08]save to /storage/0454/doc_00140175 [13:36:08]save last doc name /storage/0454/doc_00140175 to /storage/kkm_last_doc_name [13:36:08]save OK [13:36:08]Clear old archive folders... [13:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:08]tlvbuf is 01C5C500 [13:36:08]SAM_PROTO_ClearQueue [13:36:08]wFMCommunicate request_size=4 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 09 00 00 [13:36:08]Write to MH i2c: E2 08 00 BA 02 80 09 00 00 00 00 00 00 2E [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:08]Read from MH i2c: E2 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [13:36:08]RAPDU: 90 00 [13:36:08]wFMCommunicate OK [13:36:08]SAM_PROTO_ClearQueue done [13:36:08]KKMCreateOFDPacket [13:36:08]OFDProtocolAddRootSTLVToBuf [13:36:08]FM_MakeSignedData [13:36:08]FM_MakeSignedData [13:36:08]SAM_PROTO_SignData [13:36:08]wFMCommunicate request_size=4 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 0D 01 02 [13:36:08]Write to MH i2c: E2 08 00 BB 02 80 0D 01 02 00 00 00 00 36 [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [13:36:09]RAPDU: 90 00 [13:36:09]wFMCommunicate OK [13:36:09]wFMCommunicate request_size=255 [13:36:09]MH_SAM_APDU [13:36: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 23 02 00 35 04 06 00 7A [13:36:09]Write to MH i2c: E2 02 01 BC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 23 02 00 35 04 06 00 7A 00 00 D4 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [13:36:09]RAPDU: 90 00 [13:36:09]wFMCommunicate OK [13:36:09]wFMCommunicate request_size=10 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 0D 02 02 05 2F E2 07 E2 89 [13:36:09]Write to MH i2c: E2 0D 00 BD 02 80 0D 02 02 05 00 2F E2 07 E2 89 00 00 C6 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [13:36:09]RAPDU: 90 00 [13:36:09]wFMCommunicate OK [13:36:09]wFMCommunicate request_size=4 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 0D 03 02 [13:36:09]Write to MH i2c: E2 08 00 BE 02 80 0D 03 02 00 00 00 00 3B [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0B 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0B 00 BE 02 00 96 21 8A 5D F0 D6 72 14 90 00 26 [13:36:09]RAPDU: 96 21 8A 5D F0 D6 72 14 90 00 [13:36:09]wFMCommunicate OK [13:36:09]SAM_PROTO_SignData done [13:36:09]FM_MakeSignedData done [13:36:09]CreateOFDProtocolMessage [13:36:09]wFMCommunicate request_size=4 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 11 00 00 [13:36:09]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 17 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [13:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:36:09]wFMCommunicate OK [13:36:09]CreateOFDProtocolMessage done [13:36:09]OFDSenderStorePacket 140175 [13:36:09]StoreOFDPacket docnum=140175 [13:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B4 AB 07 01 D5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 23 02 00 35 04 06 00 7A 2F E2 07 E2 89 96 21 8A 5D F0 D6 72 14 [13:36:09]CheckFolder [13:36:09]dirname=/storage/ofd_packets [13:36:09]CheckFolder done [13:36:09]ProducePacketName [13:36:09]name=ofd_packets/00140175 [13:36:09]NVStorageSaveData ofd_packets/00140175 [13:36:09]File name is /storage/ofd_packets/00140175 [13:36:09]Write 301 bytes [13:36:09]NVStorageSaveData done [13:36:09]OFDSenderStorePacket done [13:36:09]KKMCreateOFDPacket done [13:36:09]NVStorageSaveData kkm_last_timestamp [13:36:09]File name is /storage/kkm_last_timestamp [13:36:09]Write 4 bytes [13:36:09]NVStorageSaveData done [13:36:09]ExternCall_PrintAddStr [13:36:09]wPrintStart [13:36:09]Write to MH i2c: 01 00 00 C0 02 C2 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 07 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [13:36:09]RasterBufferAndPrint [13:36:09]line Счет N : (1)594030 [13:36:09]line ИНН: 02508201610067 [13:36:09]line Контрольно-Кассовый Чек [13:36:09]line ПРОДАЖА [13:36:09]line ТРК (МРК, ГНК) : 52 [13:36:09]line Товар: 2710124130 [13:36:09]line Аи-92-К-5 [13:36:09]line 7.380 * 67.80 [13:36:09]line = 500.36 [13:36:09]line НДС 12% НСП 1% [13:36:09]line > о реализуемом товаре [13:36:09]line ОКРУГЛЕНИЕ: -0.36 [13:36:09]line ИТОГО: 500.00 [13:36:09]line Внесено: 500.00 [13:36:09]line СДАЧА: 0.00 [13:36:09]line НСП 1% : 4.43 [13:36:09]line НДС 12% : 53.14 [13:36:09]line Наличными: 500.00 [13:36:09]line Безнал.: 0.00 [13:36:09]line Место: АЗС № 136 "Партнер Нефть" [13:36:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:36:09]line СНО: Общий режим [13:36:09]line Чек 192 21.08.2024 13:36 [13:36:09]line Смена: 454 ФФД: 1.0 [13:36:09]line ЗНМ: 0300000067 [13:36:09]line РНМ: 0000000000092569 [13:36:09]line Версия ККМ: 001 [13:36:09]line ФМ: 0000000000871776 [13:36:09]line ФД: 140175 [13:36:09]line ФПД: 134346074219145 [13:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140175&fm=134346074219145&tin=02508201610067®Number=0000000000092569&sum=50000 [13:36:09]OFD Sender: Processing packet 140175 [packets to send 137, broken 136] [13:36:09]ProducePacketName [13:36:09]name=ofd_packets/00140175 [13:36:09]OFD Sender: To server: pG, [13:36:09]CommunicateWithHost lk.salyk.kg:30040 [13:36:09]ConnectInit lk.salyk.kg [13:36:09]written 0, free lines is 4095 [13:36:09]Connected sock=10 [13:36: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 37 36 0F 01 00 00 B4 AB 07 01 D5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 23 02 00 35 04 06 00 7A 2F E2 07 E2 89 96 21 8A 5D F0 D6 72 14 [13:36: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 37 36 4F 00 00 00 C2 66 47 00 4D 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 37 36 10 04 04 00 8F 23 02 00 F4 03 04 00 D9 93 C5 66 B6 04 01 00 00 6D F7 CF 2A BC 54 74 FA [13:36:10]CommunicateWithHost err = 0 [13:36:10]CheckOFDResponse [13:36:10]1017 (14) - 77093643461234 [13:36:10]1041 (16) - 0000000000871776 [13:36:10]1040 (4) - 140175 [13:36:10]1012 (4) - 21.08.2024 07:14 [13:36:10]1206 (1) - 0 [13:36:10]OFD Sender: Remove packet 140175 [13:36:10]ProducePacketName [13:36:10]name=ofd_packets/00140175 [13:36:10]NVStorageDeleteData [13:36:10]Write to MH i2c: 01 00 00 EB 02 ED [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 D4 0C D4 [13:36:10]RasterBufferAndPrint [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]written 0, free lines is 3289 [13:36:10]MH_Cut [13:36:10]Write to MH i2c: D1 01 00 F2 02 01 C6 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 01 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 01 00 F2 02 00 C5 [13:36:10]Write to MH i2c: 01 00 00 F3 02 F5 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]OFD Sender: No OFD packet to send [13:36:10]*** Cut start [13:36:10]*** Partial cut [13:36:10]*** CUTSNS_PIN = 1 [13:36:11]*** CUTSNS_PIN = 0 [13:36:11]*** Brake cut motor [13:36:11]Read from MH i2c: 01 [13:36:11]MH_I2C_Read... [13:36:11]*** Stop cut motor [13:36:11]*** Cut end [13:36:11]Read from MH i2c: 01 07 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 FF 0F 0A [13:36:11]process_action close_receipt done [13:36:11]requested_data is exist [13:36:11]produce_requested_data [13:36:11]requested_item fm.sn is exist - process it [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 11 00 00 [13:36:11]Write to MH i2c: E2 08 00 F4 02 80 11 00 00 00 00 00 00 70 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 F4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C7 [13:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:36:11]wFMCommunicate OK [13:36:11]requested_item fd.num is exist - process it [13:36:11]SAM_PROTO_GetFieldsCounters [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 13 00 00 [13:36:11]Write to MH i2c: E2 08 00 F5 02 80 13 00 00 00 00 00 00 73 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 62 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 62 00 F5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [13:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_GetFieldsCounters done [13:36:11]requested_item shift.num is exist - process it [13:36:11]requested_item shift.opened is exist - process it [13:36:11]req_shift_opened [13:36:11]FM_GetShiftState [13:36:11]SAM_PROTO_GetShiftState [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 13 01 00 [13:36:11]Write to MH i2c: E2 08 00 F6 02 80 13 01 00 00 00 00 00 75 [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0E 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 0E 00 F6 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F5 [13:36:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_GetShiftState done [13:36:11]FM_GetShiftState done [13:36:11]req_shift_opened done [13:36:11]requested_item shift.open_date is exist - process it [13:36:11]req_shift_open_date [13:36:11]req_shift_open_date done [13:36:11]produce_requested_data done [13:36:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140175,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:36:11]process_action_free close_receipt [13:36:11]json_value_free [13:36:11]json_value_free done [13:36:11]process_json_proto returns [13:36:11]Send response to host [13:36:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140175,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:36:11]free response buf [13:36:11]execute_script done [13:36:11]execute_script returns [13:36:11]free content buf [13:36:11]Sock 8.Close socket [13:36:11]Sock 8.Thread stoped [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:21]accept exits with 9 [13:37:21]New connection [13:37:21]New thread 3067592036 created [13:37:21]Thread 3067448676 joined [13:37:21]Waiting for new connection... [13:37:21] Sock 9.Parse request [13:37:21]Sock 9.Check first char [13:37:21]Sock 9.First char is OK [13:37:21]request: POST /json_proto HTTP/1.0 [13:37:21]Method: POST [13:37:21]URL: /json_proto [13:37:21]Method is POST - this is cgi request [13:37:21]url: /json_proto [13:37:21]query_string will be loaded in cgi processing [13:37:21]execute_cgi json_proto POST (null) [13:37:21]execute_cgi path=json_proto method=POST [13:37:21]POST find Content-Length [13:37:21]Host: 172.17.45.67:8080 [13:37:21]Content-Length: 678 [13:37:21]Content-Type: application/json [13:37:21] [13:37:21]POST finish read [13:37:21]Found Content-Length = 678 [13:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [13:37:21]execute_script... [13:37: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)594031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "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" ] } } [13:37:21]POST & json_proto [13:37:21]process_json_proto [13:37:21]json parsed OK: [13:37:21]protocol is kg_v1.0 [13:37:21]action value=close_receipt [13:37:21]process_action close_receipt [13:37:21]cmd_close_receipt [13:37:21]MH_GetDate [13:37:21]Write to MH i2c: F0 00 00 F7 02 E8 [13:37:21]Write i2c OK [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: F0 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: F0 09 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: F0 09 00 F7 02 00 91 ED C5 66 5F 7F 2B 66 09 [13:37:21]GetLastDocTimeStamp 1724247368 [13:37:21]current date 1724247441 [13:37:21]FM_GetShiftState [13:37:21]SAM_PROTO_GetShiftState [13:37:21]wFMCommunicate request_size=4 [13:37:21]MH_SAM_APDU [13:37:21]CAPDU: 80 13 01 00 [13:37:21]Write to MH i2c: E2 08 00 F8 02 80 13 01 00 00 00 00 00 77 [13:37:21]Write i2c OK [13:37:21]MH_I2C_Read... [13:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:21]Read from MH i2c: E2 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 0E 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 0E 00 F8 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F7 [13:37:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:37:21]wFMCommunicate OK [13:37:21]SAM_PROTO_GetShiftState done [13:37:21]FM_GetShiftState done [13:37:21]opened in 1724200467 [13:37:21]opened+sec_in_day 1724286867 [13:37:21]quantity*price = 75016 [13:37:21]sum+1 = 75017 [13:37:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 193 21.08.2024 13:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140176 ФПД: 255757251190695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140176&fm=255757251190695&tin=02508201610067®Number=0000000000092569&sum=75000 [13:37:22]StoreToDocumentArchive [13:37:22]shift 454 fd 140176 [13:37:22]save to /storage/0454/doc_00140176 [13:37:22]save last doc name /storage/0454/doc_00140176 to /storage/kkm_last_doc_name [13:37:22]save OK [13:37:22]Clear old archive folders... [13:37:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:22]tlvbuf is 01C5DB00 [13:37:22]SAM_PROTO_ClearQueue [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 09 00 00 [13:37:22]Write to MH i2c: E2 08 00 05 03 80 09 00 00 00 00 00 00 7A [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [13:37:22]RAPDU: 90 00 [13:37:22]wFMCommunicate OK [13:37:22]SAM_PROTO_ClearQueue done [13:37:22]KKMCreateOFDPacket [13:37:22]OFDProtocolAddRootSTLVToBuf [13:37:22]FM_MakeSignedData [13:37:22]FM_MakeSignedData [13:37:22]SAM_PROTO_SignData [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 0D 01 02 [13:37:22]Write to MH i2c: E2 08 00 06 03 80 0D 01 02 00 00 00 00 82 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [13:37:22]RAPDU: 90 00 [13:37:22]wFMCommunicate OK [13:37:22]wFMCommunicate request_size=255 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 C1 00 00 00 F4 03 04 00 91 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 23 02 00 35 04 06 00 E8 [13:37:22]Write to MH i2c: E2 02 01 07 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 C1 00 00 00 F4 03 04 00 91 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 23 02 00 35 04 06 00 E8 00 00 64 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [13:37:22]RAPDU: 90 00 [13:37:22]wFMCommunicate OK [13:37:22]wFMCommunicate request_size=10 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 0D 02 02 05 9C 20 1B 1F A7 [13:37:22]Write to MH i2c: E2 0D 00 08 03 80 0D 02 02 05 00 9C 20 1B 1F A7 00 00 2C [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [13:37:22]RAPDU: 90 00 [13:37:22]wFMCommunicate OK [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 0D 03 02 [13:37:22]Write to MH i2c: E2 08 00 09 03 80 0D 03 02 00 00 00 00 87 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 0B 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 0B 00 09 03 00 45 DD BA 3C 4B AC AA 5F 90 00 A0 [13:37:22]RAPDU: 45 DD BA 3C 4B AC AA 5F 90 00 [13:37:22]wFMCommunicate OK [13:37:22]SAM_PROTO_SignData done [13:37:22]FM_MakeSignedData done [13:37:22]CreateOFDProtocolMessage [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 11 00 00 [13:37:22]Write to MH i2c: E2 08 00 0A 03 80 11 00 00 00 00 00 00 87 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 17 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 17 00 0A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [13:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:37:22]wFMCommunicate OK [13:37:22]CreateOFDProtocolMessage done [13:37:22]OFDSenderStorePacket 140176 [13:37:22]StoreOFDPacket docnum=140176 [13:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 EE 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 C1 00 00 00 F4 03 04 00 91 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 23 02 00 35 04 06 00 E8 9C 20 1B 1F A7 45 DD BA 3C 4B AC AA 5F [13:37:22]CheckFolder [13:37:22]dirname=/storage/ofd_packets [13:37:22]CheckFolder done [13:37:22]ProducePacketName [13:37:22]name=ofd_packets/00140176 [13:37:22]NVStorageSaveData ofd_packets/00140176 [13:37:22]File name is /storage/ofd_packets/00140176 [13:37:22]Write 301 bytes [13:37:22]NVStorageSaveData done [13:37:22]OFDSenderStorePacket done [13:37:22]KKMCreateOFDPacket done [13:37:22]NVStorageSaveData kkm_last_timestamp [13:37:22]File name is /storage/kkm_last_timestamp [13:37:22]Write 4 bytes [13:37:22]NVStorageSaveData done [13:37:22]ExternCall_PrintAddStr [13:37:22]wPrintStart [13:37:22]Write to MH i2c: 01 00 00 0B 03 0E [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: 01 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: 01 07 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [13:37:22]RasterBufferAndPrint [13:37:22]line Счет N : (1)594031 [13:37:22]line ИНН: 02508201610067 [13:37:22]line Контрольно-Кассовый Чек [13:37:22]line ПРОДАЖА [13:37:22]line ТРК (МРК, ГНК) : 41 [13:37:22]line Товар: 2710124500 [13:37:22]line Аи-95-К-5 [13:37:22]line 10.110 * 74.20 [13:37:22]line = 750.16 [13:37:22]line НДС 12% НСП 1% [13:37:22]line > о реализуемом товаре [13:37:22]line ОКРУГЛЕНИЕ: -0.16 [13:37:22]line ИТОГО: 750.00 [13:37:22]line Внесено: 750.00 [13:37:22]line СДАЧА: 0.00 [13:37:22]line НСП 1% : 6.64 [13:37:22]line НДС 12% : 79.66 [13:37:22]line Наличными: 750.00 [13:37:22]line Безнал.: 0.00 [13:37:22]line Место: АЗС № 136 "Партнер Нефть" [13:37:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:37:22]line СНО: Общий режим [13:37:22]line Чек 193 21.08.2024 13:37 [13:37:22]line Смена: 454 ФФД: 1.0 [13:37:22]line ЗНМ: 0300000067 [13:37:22]line РНМ: 0000000000092569 [13:37:22]line Версия ККМ: 001 [13:37:22]line ФМ: 0000000000871776 [13:37:22]line ФД: 140176 [13:37:22]line ФПД: 255757251190695 [13:37:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133721&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140176&fm=255757251190695&tin=02508201610067®Number=0000000000092569&sum=75000 [13:37:23]OFD Sender: Processing packet 140176 [packets to send 137, broken 136] [13:37:23]ProducePacketName [13:37:23]name=ofd_packets/00140176 [13:37:23]OFD Sender: To server: pG, [13:37:23]CommunicateWithHost lk.salyk.kg:30040 [13:37:23]ConnectInit lk.salyk.kg [13:37:23]written 0, free lines is 4095 [13:37:23]Connected sock=8 [13:37: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 37 36 0F 01 00 00 C4 EE 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 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 1E 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 C1 00 00 00 F4 03 04 00 91 ED C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 23 02 00 35 04 06 00 E8 9C 20 1B 1F A7 45 DD BA 3C 4B AC AA 5F [13:37:23]Write to MH i2c: 01 00 00 36 03 39 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 07 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 07 00 36 03 00 00 00 00 00 D3 0C 1F [13:37:23]RasterBufferAndPrint [13:37:23]line [13:37:23]line [13:37:23]line [13:37:23]line [13:37:23]line [13:37:23]written 0, free lines is 3291 [13:37:23]MH_Cut [13:37:23]Write to MH i2c: D1 01 00 3D 03 01 12 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: D1 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: D1 01 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: D1 01 00 3D 03 00 11 [13:37:23]Write to MH i2c: 01 00 00 3E 03 41 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37: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 37 36 4F 00 00 00 45 A6 47 00 FF 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 37 36 10 04 04 00 90 23 02 00 F4 03 04 00 22 94 C5 66 B6 04 01 00 00 72 B5 33 5F 7A 5D 18 9F [13:37:23]CommunicateWithHost err = 0 [13:37:23]CheckOFDResponse [13:37:23]1017 (14) - 77093643461234 [13:37:23]1041 (16) - 0000000000871776 [13:37:23]1040 (4) - 140176 [13:37:23]1012 (4) - 21.08.2024 07:15 [13:37:23]1206 (1) - 0 [13:37:23]OFD Sender: Remove packet 140176 [13:37:23]ProducePacketName [13:37:23]name=ofd_packets/00140176 [13:37:23]NVStorageDeleteData [13:37:24]OFD Sender: No OFD packet to send [13:37:24]*** Cut start [13:37:24]*** Partial cut [13:37:24]*** CUTSNS_PIN = 1 [13:37:24]*** CUTSNS_PIN = 0 [13:37:24]*** Brake cut motor [13:37:25]Read from MH i2c: 01 [13:37:25]MH_I2C_Read... [13:37:25]*** Stop cut motor [13:37:25]*** Cut end [13:37:25]Read from MH i2c: 01 07 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 FF 0F 56 [13:37:25]process_action close_receipt done [13:37:25]requested_data is exist [13:37:25]produce_requested_data [13:37:25]requested_item fm.sn is exist - process it [13:37:25]wFMCommunicate request_size=4 [13:37:25]MH_SAM_APDU [13:37:25]CAPDU: 80 11 00 00 [13:37:25]Write to MH i2c: E2 08 00 3F 03 80 11 00 00 00 00 00 00 BC [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:25]Read from MH i2c: E2 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 17 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 17 00 3F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [13:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:37:25]wFMCommunicate OK [13:37:25]requested_item fd.num is exist - process it [13:37:25]SAM_PROTO_GetFieldsCounters [13:37:25]wFMCommunicate request_size=4 [13:37:25]MH_SAM_APDU [13:37:25]CAPDU: 80 13 00 00 [13:37:25]Write to MH i2c: E2 08 00 40 03 80 13 00 00 00 00 00 00 BF [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:25]Read from MH i2c: E2 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 62 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 62 00 40 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [13:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:25]wFMCommunicate OK [13:37:25]SAM_PROTO_GetFieldsCounters done [13:37:25]requested_item shift.num is exist - process it [13:37:25]requested_item shift.opened is exist - process it [13:37:25]req_shift_opened [13:37:25]FM_GetShiftState [13:37:25]SAM_PROTO_GetShiftState [13:37:25]wFMCommunicate request_size=4 [13:37:25]MH_SAM_APDU [13:37:25]CAPDU: 80 13 01 00 [13:37:25]Write to MH i2c: E2 08 00 41 03 80 13 01 00 00 00 00 00 C1 [13:37:25]Write i2c OK [13:37:25]MH_I2C_Read... [13:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:25]Read from MH i2c: E2 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 0E 00 [13:37:25]MH_I2C_Read... [13:37:25]Read from MH i2c: E2 0E 00 41 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 41 [13:37:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:37:25]wFMCommunicate OK [13:37:25]SAM_PROTO_GetShiftState done [13:37:25]FM_GetShiftState done [13:37:25]req_shift_opened done [13:37:25]requested_item shift.open_date is exist - process it [13:37:25]req_shift_open_date [13:37:25]req_shift_open_date done [13:37:25]produce_requested_data done [13:37:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140176,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:37:25]process_action_free close_receipt [13:37:25]json_value_free [13:37:25]json_value_free done [13:37:25]process_json_proto returns [13:37:25]Send response to host [13:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140176,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:37:25]free response buf [13:37:25]execute_script done [13:37:25]execute_script returns [13:37:25]free content buf [13:37:25]Sock 9.Close socket [13:37:25]Sock 9.Thread stoped [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:55]accept exits with 10 [13:39:55]New connection [13:39:55]New thread 3067448676 created [13:39:55]Thread 3067592036 joined [13:39:55]Waiting for new connection... [13:39:55] Sock 10.Parse request [13:39:55]Sock 10.Check first char [13:39:55]Sock 10.First char is OK [13:39:55]request: POST /json_proto HTTP/1.0 [13:39:55]Method: POST [13:39:55]URL: /json_proto [13:39:55]Method is POST - this is cgi request [13:39:55]url: /json_proto [13:39:55]query_string will be loaded in cgi processing [13:39:55]execute_cgi json_proto POST (null) [13:39:55]execute_cgi path=json_proto method=POST [13:39:55]POST find Content-Length [13:39:55]Host: 172.17.45.67:8080 [13:39:55]Content-Length: 677 [13:39:55]Content-Type: application/json [13:39:55] [13:39:55]POST finish read [13:39:55]Found Content-Length = 677 [13:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:55]execute_script... [13:39: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)594032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:55]POST & json_proto [13:39:55]process_json_proto [13:39:55]json parsed OK: [13:39:55]protocol is kg_v1.0 [13:39:55]action value=close_receipt [13:39:55]process_action close_receipt [13:39:55]cmd_close_receipt [13:39:55]MH_GetDate [13:39:55]Write to MH i2c: F0 00 00 42 03 34 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 09 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: F0 09 00 42 03 00 2B EE C5 66 5F 7F 2B 66 F0 [13:39:55]GetLastDocTimeStamp 1724247441 [13:39:55]current date 1724247595 [13:39:55]FM_GetShiftState [13:39:55]SAM_PROTO_GetShiftState [13:39:55]wFMCommunicate request_size=4 [13:39:55]MH_SAM_APDU [13:39:55]CAPDU: 80 13 01 00 [13:39:55]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [13:39:55]Write i2c OK [13:39:55]MH_I2C_Read... [13:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:55]Read from MH i2c: E2 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 [13:39:55]MH_I2C_Read... [13:39:55]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [13:39:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:39:55]wFMCommunicate OK [13:39:55]SAM_PROTO_GetShiftState done [13:39:55]FM_GetShiftState done [13:39:55]opened in 1724200467 [13:39:55]opened+sec_in_day 1724286867 [13:39:55]quantity*price = 40068 [13:39:55]sum+1 = 40069 [13:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 194 21.08.2024 13:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140177 ФПД: 206871913663904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140177&fm=206871913663904&tin=02508201610067®Number=0000000000092569&sum=40000 [13:39:56]StoreToDocumentArchive [13:39:56]shift 454 fd 140177 [13:39:56]save to /storage/0454/doc_00140177 [13:39:56]save last doc name /storage/0454/doc_00140177 to /storage/kkm_last_doc_name [13:39:56]save OK [13:39:56]Clear old archive folders... [13:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:56]tlvbuf is 01CAA980 [13:39:56]SAM_PROTO_ClearQueue [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 09 00 00 [13:39:56]Write to MH i2c: E2 08 00 50 03 80 09 00 00 00 00 00 00 C5 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]SAM_PROTO_ClearQueue done [13:39:56]KKMCreateOFDPacket [13:39:56]OFDProtocolAddRootSTLVToBuf [13:39:56]FM_MakeSignedData [13:39:56]FM_MakeSignedData [13:39:56]SAM_PROTO_SignData [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 01 02 [13:39:56]Write to MH i2c: E2 08 00 51 03 80 0D 01 02 00 00 00 00 CD [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=255 [13:39:56]MH_SAM_APDU [13:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2B EE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 23 02 00 35 04 06 00 BC [13:39:56]Write to MH i2c: E2 02 01 52 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2B EE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 23 02 00 35 04 06 00 BC 00 00 54 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=10 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 02 02 05 26 1E ED 8D A0 [13:39:56]Write to MH i2c: E2 0D 00 53 03 80 0D 02 02 05 00 26 1E ED 8D A0 00 00 38 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [13:39:56]RAPDU: 90 00 [13:39:56]wFMCommunicate OK [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 0D 03 02 [13:39:56]Write to MH i2c: E2 08 00 54 03 80 0D 03 02 00 00 00 00 D2 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0B 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 0B 00 54 03 00 BA 05 B7 ED B3 1F C6 B6 90 00 84 [13:39:56]RAPDU: BA 05 B7 ED B3 1F C6 B6 90 00 [13:39:56]wFMCommunicate OK [13:39:56]SAM_PROTO_SignData done [13:39:56]FM_MakeSignedData done [13:39:56]CreateOFDProtocolMessage [13:39:56]wFMCommunicate request_size=4 [13:39:56]MH_SAM_APDU [13:39:56]CAPDU: 80 11 00 00 [13:39:56]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:56]Read from MH i2c: E2 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 17 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [13:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:39:56]wFMCommunicate OK [13:39:56]CreateOFDProtocolMessage done [13:39:56]OFDSenderStorePacket 140177 [13:39:56]StoreOFDPacket docnum=140177 [13:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 77 E5 07 01 D5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2B EE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 23 02 00 35 04 06 00 BC 26 1E ED 8D A0 BA 05 B7 ED B3 1F C6 B6 [13:39:56]CheckFolder [13:39:56]dirname=/storage/ofd_packets [13:39:56]CheckFolder done [13:39:56]ProducePacketName [13:39:56]name=ofd_packets/00140177 [13:39:56]NVStorageSaveData ofd_packets/00140177 [13:39:56]File name is /storage/ofd_packets/00140177 [13:39:56]Write 301 bytes [13:39:56]NVStorageSaveData done [13:39:56]OFDSenderStorePacket done [13:39:56]KKMCreateOFDPacket done [13:39:56]NVStorageSaveData kkm_last_timestamp [13:39:56]File name is /storage/kkm_last_timestamp [13:39:56]Write 4 bytes [13:39:56]NVStorageSaveData done [13:39:56]ExternCall_PrintAddStr [13:39:56]wPrintStart [13:39:56]Write to MH i2c: 01 00 00 56 03 59 [13:39:56]Write i2c OK [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 [13:39:56]MH_I2C_Read... [13:39:56]Read from MH i2c: 01 07 00 56 03 00 00 00 00 00 FF 0F 6E [13:39:56]RasterBufferAndPrint [13:39:56]line Счет N : (1)594032 [13:39:56]line ИНН: 02508201610067 [13:39:56]line Контрольно-Кассовый Чек [13:39:56]line ПРОДАЖА [13:39:56]line ТРК (МРК, ГНК) : 51 [13:39:56]line Товар: 2710124500 [13:39:56]line Аи-95-К-5 [13:39:56]line 5.400 * 74.20 [13:39:56]line = 400.68 [13:39:56]line НДС 12% НСП 1% [13:39:56]line > о реализуемом товаре [13:39:56]line ОКРУГЛЕНИЕ: -0.68 [13:39:56]line ИТОГО: 400.00 [13:39:56]line Внесено: 400.00 [13:39:56]line СДАЧА: 0.00 [13:39:56]line НСП 1% : 3.55 [13:39:56]line НДС 12% : 42.55 [13:39:56]line Наличными: 400.00 [13:39:56]line Безнал.: 0.00 [13:39:56]line Место: АЗС № 136 "Партнер Нефть" [13:39:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:39:56]line СНО: Общий режим [13:39:56]line Чек 194 21.08.2024 13:39 [13:39:56]line Смена: 454 ФФД: 1.0 [13:39:56]line ЗНМ: 0300000067 [13:39:56]line РНМ: 0000000000092569 [13:39:56]line Версия ККМ: 001 [13:39:56]line ФМ: 0000000000871776 [13:39:56]line ФД: 140177 [13:39:56]line ФПД: 206871913663904 [13:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T133955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140177&fm=206871913663904&tin=02508201610067®Number=0000000000092569&sum=40000 [13:39:57]written 0, free lines is 4095 [13:39:57]OFD Sender: Processing packet 140177 [packets to send 137, broken 136] [13:39:57]ProducePacketName [13:39:57]name=ofd_packets/00140177 [13:39:57]OFD Sender: To server: pG, [13:39:57]CommunicateWithHost lk.salyk.kg:30040 [13:39:57]ConnectInit lk.salyk.kg [13:39:57]Connected sock=9 [13:39: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 37 36 0F 01 00 00 77 E5 07 01 D5 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 2B EE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 91 23 02 00 35 04 06 00 BC 26 1E ED 8D A0 BA 05 B7 ED B3 1F C6 B6 [13:39: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 37 36 4F 00 00 00 61 53 47 00 19 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 37 36 10 04 04 00 91 23 02 00 F4 03 04 00 BC 94 C5 66 B6 04 01 00 00 76 08 F6 91 2D 7E 31 3E [13:39:57]CommunicateWithHost err = 0 [13:39:57]CheckOFDResponse [13:39:57]1017 (14) - 77093643461234 [13:39:57]1041 (16) - 0000000000871776 [13:39:57]1040 (4) - 140177 [13:39:57]1012 (4) - 21.08.2024 07:18 [13:39:57]1206 (1) - 0 [13:39:57]OFD Sender: Remove packet 140177 [13:39:57]ProducePacketName [13:39:57]name=ofd_packets/00140177 [13:39:57]NVStorageDeleteData [13:39:57]Write to MH i2c: 01 00 00 81 03 84 [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 D0 0C 67 [13:39:57]RasterBufferAndPrint [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]line [13:39:57]written 0, free lines is 3284 [13:39:57]MH_Cut [13:39:57]Write to MH i2c: D1 01 00 88 03 01 5D [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 01 00 [13:39:57]MH_I2C_Read... [13:39:57]Read from MH i2c: D1 01 00 88 03 00 5C [13:39:57]Write to MH i2c: 01 00 00 89 03 8C [13:39:57]Write i2c OK [13:39:57]MH_I2C_Read... [13:39:58]OFD Sender: No OFD packet to send [13:39:58]*** Cut start [13:39:58]*** Partial cut [13:39:58]*** CUTSNS_PIN = 1 [13:39:58]*** CUTSNS_PIN = 0 [13:39:58]*** Brake cut motor [13:39:58]Read from MH i2c: 01 [13:39:58]MH_I2C_Read... [13:39:58]*** Stop cut motor [13:39:58]*** Cut end [13:39:58]Read from MH i2c: 01 07 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 FF 0F A1 [13:39:58]process_action close_receipt done [13:39:58]requested_data is exist [13:39:58]produce_requested_data [13:39:58]requested_item fm.sn is exist - process it [13:39:58]wFMCommunicate request_size=4 [13:39:58]MH_SAM_APDU [13:39:58]CAPDU: 80 11 00 00 [13:39:58]Write to MH i2c: E2 08 00 8A 03 80 11 00 00 00 00 00 00 07 [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:58]Read from MH i2c: E2 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: E2 17 00 [13:39:58]MH_I2C_Read... [13:39:58]Read from MH i2c: E2 17 00 8A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5E [13:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:39:58]wFMCommunicate OK [13:39:58]requested_item fd.num is exist - process it [13:39:58]SAM_PROTO_GetFieldsCounters [13:39:58]wFMCommunicate request_size=4 [13:39:58]MH_SAM_APDU [13:39:58]CAPDU: 80 13 00 00 [13:39:58]Write to MH i2c: E2 08 00 8B 03 80 13 00 00 00 00 00 00 0A [13:39:58]Write i2c OK [13:39:58]MH_I2C_Read... [13:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:59]Read from MH i2c: E2 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 62 00 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 62 00 8B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [13:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:59]wFMCommunicate OK [13:39:59]SAM_PROTO_GetFieldsCounters done [13:39:59]requested_item shift.num is exist - process it [13:39:59]requested_item shift.opened is exist - process it [13:39:59]req_shift_opened [13:39:59]FM_GetShiftState [13:39:59]SAM_PROTO_GetShiftState [13:39:59]wFMCommunicate request_size=4 [13:39:59]MH_SAM_APDU [13:39:59]CAPDU: 80 13 01 00 [13:39:59]Write to MH i2c: E2 08 00 8C 03 80 13 01 00 00 00 00 00 0C [13:39:59]Write i2c OK [13:39:59]MH_I2C_Read... [13:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:59]Read from MH i2c: E2 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 0E 00 [13:39:59]MH_I2C_Read... [13:39:59]Read from MH i2c: E2 0E 00 8C 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [13:39:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:39:59]wFMCommunicate OK [13:39:59]SAM_PROTO_GetShiftState done [13:39:59]FM_GetShiftState done [13:39:59]req_shift_opened done [13:39:59]requested_item shift.open_date is exist - process it [13:39:59]req_shift_open_date [13:39:59]req_shift_open_date done [13:39:59]produce_requested_data done [13:39:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140177,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:39:59]process_action_free close_receipt [13:39:59]json_value_free [13:39:59]json_value_free done [13:39:59]process_json_proto returns [13:39:59]Send response to host [13:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140177,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:39:59]free response buf [13:39:59]execute_script done [13:39:59]execute_script returns [13:39:59]free content buf [13:39:59]Sock 10.Close socket [13:39:59]Sock 10.Thread stoped [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:27]accept exits with 8 [13:45:27]New connection [13:45:27]New thread 3067592036 created [13:45:27]Thread 3067448676 joined [13:45:27]Waiting for new connection... [13:45:27] Sock 8.Parse request [13:45:27]Sock 8.Check first char [13:45:27]Sock 8.First char is OK [13:45:27]request: POST /json_proto HTTP/1.0 [13:45:27]Method: POST [13:45:27]URL: /json_proto [13:45:27]Method is POST - this is cgi request [13:45:27]url: /json_proto [13:45:27]query_string will be loaded in cgi processing [13:45:27]execute_cgi json_proto POST (null) [13:45:27]execute_cgi path=json_proto method=POST [13:45:27]POST find Content-Length [13:45:27]Host: 172.17.45.67:8080 [13:45:27]Content-Length: 677 [13:45:27]Content-Type: application/json [13:45:27] [13:45:27]POST finish read [13:45:27]Found Content-Length = 677 [13:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.580, "sum" : 310.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:27]execute_script... [13:45: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)594033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.580, "sum" : 310.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:27]POST & json_proto [13:45:27]process_json_proto [13:45:27]json parsed OK: [13:45:27]protocol is kg_v1.0 [13:45:27]action value=close_receipt [13:45:27]process_action close_receipt [13:45:27]cmd_close_receipt [13:45:27]MH_GetDate [13:45:27]Write to MH i2c: F0 00 00 8D 03 7F [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 09 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: F0 09 00 8D 03 00 78 EF C5 66 5F 7F 2B 66 89 [13:45:27]GetLastDocTimeStamp 1724247595 [13:45:27]current date 1724247928 [13:45:27]FM_GetShiftState [13:45:27]SAM_PROTO_GetShiftState [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 01 00 [13:45:27]Write to MH i2c: E2 08 00 8E 03 80 13 01 00 00 00 00 00 0E [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 8E 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [13:45:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetShiftState done [13:45:27]FM_GetShiftState done [13:45:27]opened in 1724200467 [13:45:27]opened+sec_in_day 1724286867 [13:45:27]quantity*price = 31052 [13:45:27]sum+1 = 31053 [13:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 195 21.08.2024 13:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140178 ФПД: 88837078763598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T134528&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140178&fm=88837078763598&tin=02508201610067®Number=0000000000092569&sum=31000 [13:45:28]StoreToDocumentArchive [13:45:28]shift 454 fd 140178 [13:45:28]save to /storage/0454/doc_00140178 [13:45:28]save last doc name /storage/0454/doc_00140178 to /storage/kkm_last_doc_name [13:45:28]save OK [13:45:28]Clear old archive folders... [13:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:28]tlvbuf is 01C4ECD0 [13:45:28]SAM_PROTO_ClearQueue [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 09 00 00 [13:45:28]Write to MH i2c: E2 08 00 9B 03 80 09 00 00 00 00 00 00 10 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:28]OFD Sender: No OFD packet to send [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]SAM_PROTO_ClearQueue done [13:45:28]KKMCreateOFDPacket [13:45:28]OFDProtocolAddRootSTLVToBuf [13:45:28]FM_MakeSignedData [13:45:28]FM_MakeSignedData [13:45:28]SAM_PROTO_SignData [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 01 02 [13:45:28]Write to MH i2c: E2 08 00 9C 03 80 0D 01 02 00 00 00 00 18 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=255 [13:45:28]MH_SAM_APDU [13:45: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 E4 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 78 EF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 23 02 00 35 04 06 00 50 [13:45:28]Write to MH i2c: E2 02 01 9D 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 E4 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 78 EF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 23 02 00 35 04 06 00 50 00 00 C3 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=10 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 02 02 05 CB FE 85 C8 4E [13:45:28]Write to MH i2c: E2 0D 00 9E 03 80 0D 02 02 05 00 CB FE 85 C8 4E 00 00 89 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 03 02 [13:45:28]Write to MH i2c: E2 08 00 9F 03 80 0D 03 02 00 00 00 00 1D [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:29]Read from MH i2c: E2 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 0B 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 0B 00 9F 03 00 CD D3 5E DC 13 6E D8 55 90 00 A6 [13:45:29]RAPDU: CD D3 5E DC 13 6E D8 55 90 00 [13:45:29]wFMCommunicate OK [13:45:29]SAM_PROTO_SignData done [13:45:29]FM_MakeSignedData done [13:45:29]CreateOFDProtocolMessage [13:45:29]wFMCommunicate request_size=4 [13:45:29]MH_SAM_APDU [13:45:29]CAPDU: 80 11 00 00 [13:45:29]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:29]Read from MH i2c: E2 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 17 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [13:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:45:29]wFMCommunicate OK [13:45:29]CreateOFDProtocolMessage done [13:45:29]OFDSenderStorePacket 140178 [13:45:29]StoreOFDPacket docnum=140178 [13:45:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D1 D3 07 01 18 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 E4 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 78 EF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 23 02 00 35 04 06 00 50 CB FE 85 C8 4E CD D3 5E DC 13 6E D8 55 [13:45:29]CheckFolder [13:45:29]dirname=/storage/ofd_packets [13:45:29]CheckFolder done [13:45:29]ProducePacketName [13:45:29]name=ofd_packets/00140178 [13:45:29]NVStorageSaveData ofd_packets/00140178 [13:45:29]File name is /storage/ofd_packets/00140178 [13:45:29]Write 301 bytes [13:45:29]NVStorageSaveData done [13:45:29]OFDSenderStorePacket done [13:45:29]KKMCreateOFDPacket done [13:45:29]NVStorageSaveData kkm_last_timestamp [13:45:29]File name is /storage/kkm_last_timestamp [13:45:29]Write 4 bytes [13:45:29]NVStorageSaveData done [13:45:29]ExternCall_PrintAddStr [13:45:29]wPrintStart [13:45:29]Write to MH i2c: 01 00 00 A1 03 A4 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [13:45:29]RasterBufferAndPrint [13:45:29]line Счет N : (1)594033 [13:45:29]line ИНН: 02508201610067 [13:45:29]line Контрольно-Кассовый Чек [13:45:29]line ПРОДАЖА [13:45:29]line ТРК (МРК, ГНК) : 32 [13:45:29]line Товар: 2710124130 [13:45:29]line Аи-92-К-5 [13:45:29]line 4.580 * 67.80 [13:45:29]line = 310.52 [13:45:29]line НДС 12% НСП 1% [13:45:29]line > о реализуемом товаре [13:45:29]line ОКРУГЛЕНИЕ: -0.52 [13:45:29]line ИТОГО: 310.00 [13:45:29]line Внесено: 310.00 [13:45:29]line СДАЧА: 0.00 [13:45:29]line НСП 1% : 2.75 [13:45:29]line НДС 12% : 32.98 [13:45:29]line Наличными: 310.00 [13:45:29]line Безнал.: 0.00 [13:45:29]line Место: АЗС № 136 "Партнер Нефть" [13:45:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:45:29]line СНО: Общий режим [13:45:29]line Чек 195 21.08.2024 13:45 [13:45:29]line Смена: 454 ФФД: 1.0 [13:45:29]line ЗНМ: 0300000067 [13:45:29]line РНМ: 0000000000092569 [13:45:29]line Версия ККМ: 001 [13:45:29]line ФМ: 0000000000871776 [13:45:29]line ФД: 140178 [13:45:29]line ФПД: 88837078763598 [13:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T134528&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140178&fm=88837078763598&tin=02508201610067®Number=0000000000092569&sum=31000 [13:45:29]OFD Sender: Processing packet 140178 [packets to send 137, broken 136] [13:45:29]ProducePacketName [13:45:29]name=ofd_packets/00140178 [13:45:29]OFD Sender: To server: pG, [13:45:29]CommunicateWithHost lk.salyk.kg:30040 [13:45:29]ConnectInit lk.salyk.kg [13:45:29]written 0, free lines is 4095 [13:45:29]Connected sock=11 [13:45: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 37 36 0F 01 00 00 D1 D3 07 01 18 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 E4 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4C 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 78 EF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 23 02 00 35 04 06 00 50 CB FE 85 C8 4E CD D3 5E DC 13 6E D8 55 [13:45:29]Write to MH i2c: 01 00 00 CC 03 CF [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 CD 0C AF [13:45:29]RasterBufferAndPrint [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]written 0, free lines is 3284 [13:45:29]MH_Cut [13:45:29]Write to MH i2c: D1 01 00 D3 03 01 A8 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 D3 03 00 A7 [13:45:29]Write to MH i2c: 01 00 00 D4 03 D7 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45: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 37 36 4F 00 00 00 84 76 47 00 50 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 37 36 10 04 04 00 92 23 02 00 F4 03 04 00 08 96 C5 66 B6 04 01 00 00 6E AD 69 69 65 69 13 DD [13:45:29]CommunicateWithHost err = 0 [13:45:29]CheckOFDResponse [13:45:29]1017 (14) - 77093643461234 [13:45:29]1041 (16) - 0000000000871776 [13:45:29]1040 (4) - 140178 [13:45:29]1012 (4) - 21.08.2024 07:23 [13:45:29]1206 (1) - 0 [13:45:29]OFD Sender: Remove packet 140178 [13:45:29]ProducePacketName [13:45:29]name=ofd_packets/00140178 [13:45:29]NVStorageDeleteData [13:45:30]OFD Sender: No OFD packet to send [13:45:30]*** Cut start [13:45:30]*** Partial cut [13:45:30]*** CUTSNS_PIN = 1 [13:45:30]*** CUTSNS_PIN = 0 [13:45:30]*** Brake cut motor [13:45:31]Read from MH i2c: 01 [13:45:31]MH_I2C_Read... [13:45:31]*** Stop cut motor [13:45:31]*** Cut end [13:45:31]Read from MH i2c: 01 07 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [13:45:31]process_action close_receipt done [13:45:31]requested_data is exist [13:45:31]produce_requested_data [13:45:31]requested_item fm.sn is exist - process it [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 11 00 00 [13:45:31]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [13:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:45:31]wFMCommunicate OK [13:45:31]requested_item fd.num is exist - process it [13:45:31]SAM_PROTO_GetFieldsCounters [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 13 00 00 [13:45:31]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 62 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 62 00 D6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [13:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_GetFieldsCounters done [13:45:31]requested_item shift.num is exist - process it [13:45:31]requested_item shift.opened is exist - process it [13:45:31]req_shift_opened [13:45:31]FM_GetShiftState [13:45:31]SAM_PROTO_GetShiftState [13:45:31]wFMCommunicate request_size=4 [13:45:31]MH_SAM_APDU [13:45:31]CAPDU: 80 13 01 00 [13:45:31]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [13:45:31]Write i2c OK [13:45:31]MH_I2C_Read... [13:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:31]Read from MH i2c: E2 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0E 00 [13:45:31]MH_I2C_Read... [13:45:31]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [13:45:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:45:31]wFMCommunicate OK [13:45:31]SAM_PROTO_GetShiftState done [13:45:31]FM_GetShiftState done [13:45:31]req_shift_opened done [13:45:31]requested_item shift.open_date is exist - process it [13:45:31]req_shift_open_date [13:45:31]req_shift_open_date done [13:45:31]produce_requested_data done [13:45:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140178,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:45:31]process_action_free close_receipt [13:45:31]json_value_free [13:45:31]json_value_free done [13:45:31]process_json_proto returns [13:45:31]Send response to host [13:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140178,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:45:31]free response buf [13:45:31]execute_script done [13:45:31]execute_script returns [13:45:31]free content buf [13:45:31]Sock 8.Close socket [13:45:31]Sock 8.Thread stoped [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:34]accept exits with 9 [13:52:34]New connection [13:52:34]New thread 3067448676 created [13:52:34]Thread 3067592036 joined [13:52:34]Waiting for new connection... [13:52:34] Sock 9.Parse request [13:52:34]Sock 9.Check first char [13:52:34]Sock 9.First char is OK [13:52:34]request: POST /json_proto HTTP/1.0 [13:52:34]Method: POST [13:52:34]URL: /json_proto [13:52:34]Method is POST - this is cgi request [13:52:34]url: /json_proto [13:52:34]query_string will be loaded in cgi processing [13:52:34]execute_cgi json_proto POST (null) [13:52:34]execute_cgi path=json_proto method=POST [13:52:34]POST find Content-Length [13:52:34]Host: 172.17.45.67:8080 [13:52:34]Content-Length: 677 [13:52:34]Content-Type: application/json [13:52:34] [13:52:34]POST finish read [13:52:34]Found Content-Length = 677 [13:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:34]execute_script... [13:52: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)594034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:34]POST & json_proto [13:52:34]process_json_proto [13:52:34]json parsed OK: [13:52:34]protocol is kg_v1.0 [13:52:34]action value=close_receipt [13:52:34]process_action close_receipt [13:52:34]cmd_close_receipt [13:52:34]MH_GetDate [13:52:34]Write to MH i2c: F0 00 00 D8 03 CA [13:52:34]Write i2c OK [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 09 00 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: F0 09 00 D8 03 00 23 F1 C5 66 5F 7F 2B 66 81 [13:52:34]GetLastDocTimeStamp 1724247928 [13:52:34]current date 1724248355 [13:52:34]FM_GetShiftState [13:52:34]SAM_PROTO_GetShiftState [13:52:34]wFMCommunicate request_size=4 [13:52:34]MH_SAM_APDU [13:52:34]CAPDU: 80 13 01 00 [13:52:34]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [13:52:34]Write i2c OK [13:52:34]MH_I2C_Read... [13:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:34]Read from MH i2c: E2 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: E2 0E 00 [13:52:34]MH_I2C_Read... [13:52:34]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [13:52:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:52:34]wFMCommunicate OK [13:52:34]SAM_PROTO_GetShiftState done [13:52:34]FM_GetShiftState done [13:52:34]opened in 1724200467 [13:52:34]opened+sec_in_day 1724286867 [13:52:34]quantity*price = 40002 [13:52:34]sum+1 = 40003 [13:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 196 21.08.2024 13:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140179 ФПД: 129651136515993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135235&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140179&fm=129651136515993&tin=02508201610067®Number=0000000000092569&sum=40000 [13:52:36]StoreToDocumentArchive [13:52:36]shift 454 fd 140179 [13:52:36]save to /storage/0454/doc_00140179 [13:52:36]save last doc name /storage/0454/doc_00140179 to /storage/kkm_last_doc_name [13:52:36]save OK [13:52:36]Clear old archive folders... [13:52:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:36]tlvbuf is 01CA9860 [13:52:36]SAM_PROTO_ClearQueue [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 09 00 00 [13:52:36]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]SAM_PROTO_ClearQueue done [13:52:36]KKMCreateOFDPacket [13:52:36]OFDProtocolAddRootSTLVToBuf [13:52:36]FM_MakeSignedData [13:52:36]FM_MakeSignedData [13:52:36]SAM_PROTO_SignData [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 01 02 [13:52:36]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=255 [13:52:36]MH_SAM_APDU [13:52: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 23 F1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 23 02 00 35 04 06 00 75 [13:52:36]Write to MH i2c: E2 02 01 E8 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 23 F1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 23 02 00 35 04 06 00 75 00 00 C8 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=10 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 02 02 05 EA C1 EF CF 99 [13:52:36]Write to MH i2c: E2 0D 00 E9 03 80 0D 02 02 05 00 EA C1 EF CF 99 00 00 72 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [13:52:36]RAPDU: 90 00 [13:52:36]wFMCommunicate OK [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 0D 03 02 [13:52:36]Write to MH i2c: E2 08 00 EA 03 80 0D 03 02 00 00 00 00 68 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 0B 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 0B 00 EA 03 00 49 84 B6 73 E0 A6 8C 67 90 00 D8 [13:52:36]RAPDU: 49 84 B6 73 E0 A6 8C 67 90 00 [13:52:36]wFMCommunicate OK [13:52:36]SAM_PROTO_SignData done [13:52:36]FM_MakeSignedData done [13:52:36]CreateOFDProtocolMessage [13:52:36]wFMCommunicate request_size=4 [13:52:36]MH_SAM_APDU [13:52:36]CAPDU: 80 11 00 00 [13:52:36]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:36]Read from MH i2c: E2 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 17 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [13:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:52:36]wFMCommunicate OK [13:52:36]CreateOFDProtocolMessage done [13:52:36]OFDSenderStorePacket 140179 [13:52:36]StoreOFDPacket docnum=140179 [13:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 EE 07 01 4D 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 23 F1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 23 02 00 35 04 06 00 75 EA C1 EF CF 99 49 84 B6 73 E0 A6 8C 67 [13:52:36]CheckFolder [13:52:36]dirname=/storage/ofd_packets [13:52:36]CheckFolder done [13:52:36]ProducePacketName [13:52:36]name=ofd_packets/00140179 [13:52:36]NVStorageSaveData ofd_packets/00140179 [13:52:36]File name is /storage/ofd_packets/00140179 [13:52:36]Write 301 bytes [13:52:36]NVStorageSaveData done [13:52:36]OFDSenderStorePacket done [13:52:36]KKMCreateOFDPacket done [13:52:36]NVStorageSaveData kkm_last_timestamp [13:52:36]File name is /storage/kkm_last_timestamp [13:52:36]Write 4 bytes [13:52:36]NVStorageSaveData done [13:52:36]ExternCall_PrintAddStr [13:52:36]wPrintStart [13:52:36]Write to MH i2c: 01 00 00 EC 03 EF [13:52:36]Write i2c OK [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 [13:52:36]MH_I2C_Read... [13:52:36]Read from MH i2c: 01 07 00 EC 03 00 00 00 00 00 FF 0F 04 [13:52:36]RasterBufferAndPrint [13:52:36]line Счет N : (1)594034 [13:52:36]line ИНН: 02508201610067 [13:52:36]line Контрольно-Кассовый Чек [13:52:36]line ПРОДАЖА [13:52:36]line ТРК (МРК, ГНК) : 52 [13:52:36]line Товар: 2710124130 [13:52:36]line Аи-92-К-5 [13:52:36]line 5.900 * 67.80 [13:52:36]line = 400.02 [13:52:36]line НДС 12% НСП 1% [13:52:36]line > о реализуемом товаре [13:52:36]line ОКРУГЛЕНИЕ: -0.02 [13:52:36]line ИТОГО: 400.00 [13:52:36]line Внесено: 400.00 [13:52:36]line СДАЧА: 0.00 [13:52:36]line НСП 1% : 3.54 [13:52:36]line НДС 12% : 42.48 [13:52:36]line Наличными: 400.00 [13:52:36]line Безнал.: 0.00 [13:52:36]line Место: АЗС № 136 "Партнер Нефть" [13:52:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:52:36]line СНО: Общий режим [13:52:36]line Чек 196 21.08.2024 13:52 [13:52:36]line Смена: 454 ФФД: 1.0 [13:52:36]line ЗНМ: 0300000067 [13:52:36]line РНМ: 0000000000092569 [13:52:36]line Версия ККМ: 001 [13:52:36]line ФМ: 0000000000871776 [13:52:36]line ФД: 140179 [13:52:36]line ФПД: 129651136515993 [13:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135235&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140179&fm=129651136515993&tin=02508201610067®Number=0000000000092569&sum=40000 [13:52:36]OFD Sender: Processing packet 140179 [packets to send 137, broken 136] [13:52:36]ProducePacketName [13:52:36]name=ofd_packets/00140179 [13:52:36]OFD Sender: To server: pG, [13:52:36]CommunicateWithHost lk.salyk.kg:30040 [13:52:36]ConnectInit lk.salyk.kg [13:52:36]written 0, free lines is 4095 [13:52:37]Connected sock=10 [13:52: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 37 36 0F 01 00 00 52 EE 07 01 4D 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 23 F1 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 23 02 00 35 04 06 00 75 EA C1 EF CF 99 49 84 B6 73 E0 A6 8C 67 [13:52: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 37 36 4F 00 00 00 A5 07 47 00 73 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 23 02 00 F4 03 04 00 B4 97 C5 66 B6 04 01 00 00 55 19 C7 E3 C7 C7 BC E9 [13:52:37]CommunicateWithHost err = 0 [13:52:37]CheckOFDResponse [13:52:37]1017 (14) - 77093643461234 [13:52:37]1041 (16) - 0000000000871776 [13:52:37]1040 (4) - 140179 [13:52:37]1012 (4) - 21.08.2024 07:31 [13:52:37]1206 (1) - 0 [13:52:37]OFD Sender: Remove packet 140179 [13:52:37]ProducePacketName [13:52:37]name=ofd_packets/00140179 [13:52:37]NVStorageDeleteData [13:52:37]Write to MH i2c: 01 00 00 17 04 1B [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: 01 07 00 17 04 00 00 00 00 00 D0 0C FE [13:52:37]RasterBufferAndPrint [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]line [13:52:37]written 0, free lines is 3289 [13:52:37]MH_Cut [13:52:37]Write to MH i2c: D1 01 00 1E 04 01 F4 [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 [13:52:37]MH_I2C_Read... [13:52:37]Read from MH i2c: D1 01 00 1E 04 00 F3 [13:52:37]Write to MH i2c: 01 00 00 1F 04 23 [13:52:37]Write i2c OK [13:52:37]MH_I2C_Read... [13:52:37]OFD Sender: No OFD packet to send [13:52:38]*** Cut start [13:52:38]*** Partial cut [13:52:38]*** CUTSNS_PIN = 1 [13:52:38]*** CUTSNS_PIN = 0 [13:52:38]*** Brake cut motor [13:52:38]Read from MH i2c: 01 [13:52:38]MH_I2C_Read... [13:52:38]*** Stop cut motor [13:52:38]*** Cut end [13:52:38]Read from MH i2c: 01 07 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 FF 0F 38 [13:52:38]process_action close_receipt done [13:52:38]requested_data is exist [13:52:38]produce_requested_data [13:52:38]requested_item fm.sn is exist - process it [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 11 00 00 [13:52:38]Write to MH i2c: E2 08 00 20 04 80 11 00 00 00 00 00 00 9E [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 17 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 17 00 20 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [13:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:52:38]wFMCommunicate OK [13:52:38]requested_item fd.num is exist - process it [13:52:38]SAM_PROTO_GetFieldsCounters [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 13 00 00 [13:52:38]Write to MH i2c: E2 08 00 21 04 80 13 00 00 00 00 00 00 A1 [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 62 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 62 00 21 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [13:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:38]wFMCommunicate OK [13:52:38]SAM_PROTO_GetFieldsCounters done [13:52:38]requested_item shift.num is exist - process it [13:52:38]requested_item shift.opened is exist - process it [13:52:38]req_shift_opened [13:52:38]FM_GetShiftState [13:52:38]SAM_PROTO_GetShiftState [13:52:38]wFMCommunicate request_size=4 [13:52:38]MH_SAM_APDU [13:52:38]CAPDU: 80 13 01 00 [13:52:38]Write to MH i2c: E2 08 00 22 04 80 13 01 00 00 00 00 00 A3 [13:52:38]Write i2c OK [13:52:38]MH_I2C_Read... [13:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:38]Read from MH i2c: E2 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 0E 00 [13:52:38]MH_I2C_Read... [13:52:38]Read from MH i2c: E2 0E 00 22 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 23 [13:52:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:52:38]wFMCommunicate OK [13:52:38]SAM_PROTO_GetShiftState done [13:52:38]FM_GetShiftState done [13:52:38]req_shift_opened done [13:52:38]requested_item shift.open_date is exist - process it [13:52:38]req_shift_open_date [13:52:38]req_shift_open_date done [13:52:38]produce_requested_data done [13:52:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140179,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:52:38]process_action_free close_receipt [13:52:38]json_value_free [13:52:38]json_value_free done [13:52:38]process_json_proto returns [13:52:38]Send response to host [13:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140179,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:52:38]free response buf [13:52:38]execute_script done [13:52:38]execute_script returns [13:52:38]free content buf [13:52:38]Sock 9.Close socket [13:52:38]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:07]accept exits with 8 [13:57:07]New connection [13:57:07]New thread 3067592036 created [13:57:07]Thread 3067448676 joined [13:57:07]Waiting for new connection... [13:57:07] Sock 8.Parse request [13:57:07]Sock 8.Check first char [13:57:07]Sock 8.First char is OK [13:57:07]request: POST /json_proto HTTP/1.0 [13:57:07]Method: POST [13:57:07]URL: /json_proto [13:57:07]Method is POST - this is cgi request [13:57:07]url: /json_proto [13:57:07]query_string will be loaded in cgi processing [13:57:07]execute_cgi json_proto POST (null) [13:57:07]execute_cgi path=json_proto method=POST [13:57:07]POST find Content-Length [13:57:07]Host: 172.17.45.67:8080 [13:57:07]Content-Length: 677 [13:57:07]Content-Type: application/json [13:57:07] [13:57:07]POST finish read [13:57:07]Found Content-Length = 677 [13:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:07]execute_script... [13:57: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)594035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:07]POST & json_proto [13:57:07]process_json_proto [13:57:07]json parsed OK: [13:57:07]protocol is kg_v1.0 [13:57:07]action value=close_receipt [13:57:07]process_action close_receipt [13:57:07]cmd_close_receipt [13:57:07]MH_GetDate [13:57:07]Write to MH i2c: F0 00 00 23 04 16 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: F0 09 00 23 04 00 34 F2 C5 66 5F 7F 2B 66 DF [13:57:07]GetLastDocTimeStamp 1724248355 [13:57:07]current date 1724248628 [13:57:07]FM_GetShiftState [13:57:07]SAM_PROTO_GetShiftState [13:57:07]wFMCommunicate request_size=4 [13:57:07]MH_SAM_APDU [13:57:07]CAPDU: 80 13 01 00 [13:57:07]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [13:57:07]Write i2c OK [13:57:07]MH_I2C_Read... [13:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:07]Read from MH i2c: E2 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 [13:57:07]MH_I2C_Read... [13:57:07]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 25 [13:57:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:57:07]wFMCommunicate OK [13:57:07]SAM_PROTO_GetShiftState done [13:57:07]FM_GetShiftState done [13:57:07]opened in 1724200467 [13:57:07]opened+sec_in_day 1724286867 [13:57:07]quantity*price = 50036 [13:57:07]sum+1 = 50037 [13:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 197 21.08.2024 13:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140180 ФПД: 22192703199304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140180&fm=22192703199304&tin=02508201610067®Number=0000000000092569&sum=50000 [13:57:08]StoreToDocumentArchive [13:57:08]shift 454 fd 140180 [13:57:08]save to /storage/0454/doc_00140180 [13:57:08]save last doc name /storage/0454/doc_00140180 to /storage/kkm_last_doc_name [13:57:08]save OK [13:57:08]Clear old archive folders... [13:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:08]tlvbuf is 01C5F120 [13:57:08]SAM_PROTO_ClearQueue [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 09 00 00 [13:57:08]Write to MH i2c: E2 08 00 31 04 80 09 00 00 00 00 00 00 A7 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]SAM_PROTO_ClearQueue done [13:57:08]KKMCreateOFDPacket [13:57:08]OFDProtocolAddRootSTLVToBuf [13:57:08]FM_MakeSignedData [13:57:08]FM_MakeSignedData [13:57:08]SAM_PROTO_SignData [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 0D 01 02 [13:57:08]Write to MH i2c: E2 08 00 32 04 80 0D 01 02 00 00 00 00 AF [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]wFMCommunicate request_size=255 [13:57:08]MH_SAM_APDU [13:57: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 34 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 23 02 00 35 04 06 00 14 [13:57:08]Write to MH i2c: E2 02 01 33 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 34 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 23 02 00 35 04 06 00 14 00 00 E2 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [13:57:08]RAPDU: 90 00 [13:57:08]wFMCommunicate OK [13:57:08]wFMCommunicate request_size=10 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 0D 02 02 05 2F 24 30 D8 48 [13:57:08]Write to MH i2c: E2 0D 00 34 04 80 0D 02 02 05 00 2F 24 30 D8 48 00 00 5F [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 03 02 [13:57:09]Write to MH i2c: E2 08 00 35 04 80 0D 03 02 00 00 00 00 B4 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 35 04 00 78 E8 BC 86 A3 DD 5C 90 90 00 C3 [13:57:09]RAPDU: 78 E8 BC 86 A3 DD 5C 90 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_SignData done [13:57:09]FM_MakeSignedData done [13:57:09]CreateOFDProtocolMessage [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 11 00 00 [13:57:09]Write to MH i2c: E2 08 00 36 04 80 11 00 00 00 00 00 00 B4 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 36 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [13:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:57:09]wFMCommunicate OK [13:57:09]CreateOFDProtocolMessage done [13:57:09]OFDSenderStorePacket 140180 [13:57:09]StoreOFDPacket docnum=140180 [13:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD 59 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 34 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 23 02 00 35 04 06 00 14 2F 24 30 D8 48 78 E8 BC 86 A3 DD 5C 90 [13:57:09]CheckFolder [13:57:09]dirname=/storage/ofd_packets [13:57:09]CheckFolder done [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00140180 [13:57:09]NVStorageSaveData ofd_packets/00140180 [13:57:09]File name is /storage/ofd_packets/00140180 [13:57:09]Write 301 bytes [13:57:09]NVStorageSaveData done [13:57:09]OFDSenderStorePacket done [13:57:09]KKMCreateOFDPacket done [13:57:09]NVStorageSaveData kkm_last_timestamp [13:57:09]File name is /storage/kkm_last_timestamp [13:57:09]Write 4 bytes [13:57:09]NVStorageSaveData done [13:57:09]ExternCall_PrintAddStr [13:57:09]wPrintStart [13:57:09]Write to MH i2c: 01 00 00 37 04 3B [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 FF 0F 50 [13:57:09]RasterBufferAndPrint [13:57:09]line Счет N : (1)594035 [13:57:09]line ИНН: 02508201610067 [13:57:09]line Контрольно-Кассовый Чек [13:57:09]line ПРОДАЖА [13:57:09]line ТРК (МРК, ГНК) : 52 [13:57:09]line Товар: 2710124130 [13:57:09]line Аи-92-К-5 [13:57:09]line 7.380 * 67.80 [13:57:09]line = 500.36 [13:57:09]line НДС 12% НСП 1% [13:57:09]line > о реализуемом товаре [13:57:09]line ОКРУГЛЕНИЕ: -0.36 [13:57:09]line ИТОГО: 500.00 [13:57:09]line Внесено: 500.00 [13:57:09]line СДАЧА: 0.00 [13:57:09]line НСП 1% : 4.43 [13:57:09]line НДС 12% : 53.14 [13:57:09]line Наличными: 500.00 [13:57:09]line Безнал.: 0.00 [13:57:09]line Место: АЗС № 136 "Партнер Нефть" [13:57:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:57:09]line СНО: Общий режим [13:57:09]line Чек 197 21.08.2024 13:57 [13:57:09]line Смена: 454 ФФД: 1.0 [13:57:09]line ЗНМ: 0300000067 [13:57:09]line РНМ: 0000000000092569 [13:57:09]line Версия ККМ: 001 [13:57:09]line ФМ: 0000000000871776 [13:57:09]line ФД: 140180 [13:57:09]line ФПД: 22192703199304 [13:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140180&fm=22192703199304&tin=02508201610067®Number=0000000000092569&sum=50000 [13:57:09]OFD Sender: Processing packet 140180 [packets to send 137, broken 136] [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00140180 [13:57:09]OFD Sender: To server: pG, [13:57:09]CommunicateWithHost lk.salyk.kg:30040 [13:57:09]ConnectInit lk.salyk.kg [13:57:09]written 0, free lines is 4095 [13:57:09]Connected sock=10 [13:57: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 37 36 0F 01 00 00 AD 59 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 34 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 23 02 00 35 04 06 00 14 2F 24 30 D8 48 78 E8 BC 86 A3 DD 5C 90 [13:57: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 37 36 4F 00 00 00 1B 57 47 00 83 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 37 36 10 04 04 00 94 23 02 00 F4 03 04 00 C4 98 C5 66 B6 04 01 00 00 37 1D 31 66 65 D1 BB 69 [13:57:09]CommunicateWithHost err = 0 [13:57:09]CheckOFDResponse [13:57:09]1017 (14) - 77093643461234 [13:57:09]1041 (16) - 0000000000871776 [13:57:09]1040 (4) - 140180 [13:57:09]1012 (4) - 21.08.2024 07:35 [13:57:09]1206 (1) - 0 [13:57:09]OFD Sender: Remove packet 140180 [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00140180 [13:57:09]NVStorageDeleteData [13:57:09]Write to MH i2c: 01 00 00 62 04 66 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 D0 0C 49 [13:57:09]RasterBufferAndPrint [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]line [13:57:09]written 0, free lines is 3288 [13:57:09]MH_Cut [13:57:09]Write to MH i2c: D1 01 00 69 04 01 3F [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 01 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: D1 01 00 69 04 00 3E [13:57:09]Write to MH i2c: 01 00 00 6A 04 6E [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:10]OFD Sender: No OFD packet to send [13:57:10]*** Cut start [13:57:10]*** Partial cut [13:57:10]*** CUTSNS_PIN = 1 [13:57:10]*** CUTSNS_PIN = 0 [13:57:10]*** Brake cut motor [13:57:11]Read from MH i2c: 01 [13:57:11]MH_I2C_Read... [13:57:11]*** Stop cut motor [13:57:11]*** Cut end [13:57:11]Read from MH i2c: 01 07 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [13:57:11]process_action close_receipt done [13:57:11]requested_data is exist [13:57:11]produce_requested_data [13:57:11]requested_item fm.sn is exist - process it [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 11 00 00 [13:57:11]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [13:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:57:11]wFMCommunicate OK [13:57:11]requested_item fd.num is exist - process it [13:57:11]SAM_PROTO_GetFieldsCounters [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 13 00 00 [13:57:11]Write to MH i2c: E2 08 00 6C 04 80 13 00 00 00 00 00 00 EC [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 62 00 6C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [13:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetFieldsCounters done [13:57:11]requested_item shift.num is exist - process it [13:57:11]requested_item shift.opened is exist - process it [13:57:11]req_shift_opened [13:57:11]FM_GetShiftState [13:57:11]SAM_PROTO_GetShiftState [13:57:11]wFMCommunicate request_size=4 [13:57:11]MH_SAM_APDU [13:57:11]CAPDU: 80 13 01 00 [13:57:11]Write to MH i2c: E2 08 00 6D 04 80 13 01 00 00 00 00 00 EE [13:57:11]Write i2c OK [13:57:11]MH_I2C_Read... [13:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:11]Read from MH i2c: E2 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 [13:57:11]MH_I2C_Read... [13:57:11]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6E [13:57:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:57:11]wFMCommunicate OK [13:57:11]SAM_PROTO_GetShiftState done [13:57:11]FM_GetShiftState done [13:57:11]req_shift_opened done [13:57:11]requested_item shift.open_date is exist - process it [13:57:11]req_shift_open_date [13:57:11]req_shift_open_date done [13:57:11]produce_requested_data done [13:57:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140180,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:57:11]process_action_free close_receipt [13:57:11]json_value_free [13:57:11]json_value_free done [13:57:11]process_json_proto returns [13:57:11]Send response to host [13:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140180,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:57:11]free response buf [13:57:11]execute_script done [13:57:11]execute_script returns [13:57:11]free content buf [13:57:11]Sock 8.Close socket [13:57:11]Sock 8.Thread stoped [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:32]accept exits with 9 [13:59:32]New connection [13:59:32]New thread 3067448676 created [13:59:32]Thread 3067592036 joined [13:59:32]Waiting for new connection... [13:59:32] Sock 9.Parse request [13:59:32]Sock 9.Check first char [13:59:32]Sock 9.First char is OK [13:59:32]request: POST /json_proto HTTP/1.0 [13:59:32]Method: POST [13:59:32]URL: /json_proto [13:59:32]Method is POST - this is cgi request [13:59:32]url: /json_proto [13:59:32]query_string will be loaded in cgi processing [13:59:32]execute_cgi json_proto POST (null) [13:59:32]execute_cgi path=json_proto method=POST [13:59:32]POST find Content-Length [13:59:32]Host: 172.17.45.67:8080 [13:59:32]Content-Length: 682 [13:59:32]Content-Type: application/json [13:59:32] [13:59:32]POST finish read [13:59:32]Found Content-Length = 682 [13:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:32]execute_script... [13:59: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)594036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:32]POST & json_proto [13:59:32]process_json_proto [13:59:32]json parsed OK: [13:59:32]protocol is kg_v1.0 [13:59:32]action value=close_receipt [13:59:32]process_action close_receipt [13:59:32]cmd_close_receipt [13:59:32]MH_GetDate [13:59:32]Write to MH i2c: F0 00 00 6E 04 61 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: F0 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: F0 09 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: F0 09 00 6E 04 00 C5 F2 C5 66 5F 7F 2B 66 BB [13:59:32]GetLastDocTimeStamp 1724248628 [13:59:32]current date 1724248773 [13:59:32]FM_GetShiftState [13:59:32]SAM_PROTO_GetShiftState [13:59:32]wFMCommunicate request_size=4 [13:59:32]MH_SAM_APDU [13:59:32]CAPDU: 80 13 01 00 [13:59:32]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:32]Read from MH i2c: E2 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 0E 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [13:59:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:59:32]wFMCommunicate OK [13:59:32]SAM_PROTO_GetShiftState done [13:59:32]FM_GetShiftState done [13:59:32]opened in 1724200467 [13:59:32]opened+sec_in_day 1724286867 [13:59:32]quantity*price = 100005 [13:59:32]sum+1 = 100006 [13:59:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 198 21.08.2024 13:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140181 ФПД: 141598941646171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140181&fm=141598941646171&tin=02508201610067®Number=0000000000092569&sum=100000 [13:59:33]StoreToDocumentArchive [13:59:33]shift 454 fd 140181 [13:59:33]save to /storage/0454/doc_00140181 [13:59:33]save last doc name /storage/0454/doc_00140181 to /storage/kkm_last_doc_name [13:59:33]save OK [13:59:33]Clear old archive folders... [13:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:33]tlvbuf is 01C4C600 [13:59:33]SAM_PROTO_ClearQueue [13:59:33]wFMCommunicate request_size=4 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 09 00 00 [13:59:33]Write to MH i2c: E2 08 00 7C 04 80 09 00 00 00 00 00 00 F2 [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [13:59:33]RAPDU: 90 00 [13:59:33]wFMCommunicate OK [13:59:33]SAM_PROTO_ClearQueue done [13:59:33]KKMCreateOFDPacket [13:59:33]OFDProtocolAddRootSTLVToBuf [13:59:33]FM_MakeSignedData [13:59:33]FM_MakeSignedData [13:59:33]SAM_PROTO_SignData [13:59:33]wFMCommunicate request_size=4 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 0D 01 02 [13:59:33]Write to MH i2c: E2 08 00 7D 04 80 0D 01 02 00 00 00 00 FA [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [13:59:33]RAPDU: 90 00 [13:59:33]wFMCommunicate OK [13:59:33]wFMCommunicate request_size=255 [13:59:33]MH_SAM_APDU [13:59: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C5 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 23 02 00 35 04 06 00 80 [13:59:33]Write to MH i2c: E2 02 01 7E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C5 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 23 02 00 35 04 06 00 80 00 00 BB [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [13:59:33]RAPDU: 90 00 [13:59:33]wFMCommunicate OK [13:59:33]wFMCommunicate request_size=10 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 0D 02 02 05 C8 92 9E 0D 5B [13:59:33]Write to MH i2c: E2 0D 00 7F 04 80 0D 02 02 05 00 C8 92 9E 0D 5B 00 00 67 [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [13:59:33]RAPDU: 90 00 [13:59:33]wFMCommunicate OK [13:59:33]wFMCommunicate request_size=4 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 0D 03 02 [13:59:33]Write to MH i2c: E2 08 00 80 04 80 0D 03 02 00 00 00 00 FF [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0B 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 0B 00 80 04 00 69 D7 DB B3 B5 4E 49 83 90 00 9D [13:59:33]RAPDU: 69 D7 DB B3 B5 4E 49 83 90 00 [13:59:33]wFMCommunicate OK [13:59:33]SAM_PROTO_SignData done [13:59:33]FM_MakeSignedData done [13:59:33]CreateOFDProtocolMessage [13:59:33]wFMCommunicate request_size=4 [13:59:33]MH_SAM_APDU [13:59:33]CAPDU: 80 11 00 00 [13:59:33]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:33]Read from MH i2c: E2 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 17 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [13:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:59:33]wFMCommunicate OK [13:59:33]CreateOFDProtocolMessage done [13:59:33]OFDSenderStorePacket 140181 [13:59:33]StoreOFDPacket docnum=140181 [13:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 35 DA 07 01 71 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C5 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 23 02 00 35 04 06 00 80 C8 92 9E 0D 5B 69 D7 DB B3 B5 4E 49 83 [13:59:33]CheckFolder [13:59:33]dirname=/storage/ofd_packets [13:59:33]CheckFolder done [13:59:33]ProducePacketName [13:59:33]name=ofd_packets/00140181 [13:59:33]NVStorageSaveData ofd_packets/00140181 [13:59:33]File name is /storage/ofd_packets/00140181 [13:59:33]Write 301 bytes [13:59:33]NVStorageSaveData done [13:59:33]OFDSenderStorePacket done [13:59:33]KKMCreateOFDPacket done [13:59:33]NVStorageSaveData kkm_last_timestamp [13:59:33]File name is /storage/kkm_last_timestamp [13:59:33]Write 4 bytes [13:59:33]NVStorageSaveData done [13:59:34]OFD Sender: Processing packet 140181 [packets to send 137, broken 136] [13:59:34]ProducePacketName [13:59:34]name=ofd_packets/00140181 [13:59:34]OFD Sender: To server: pG, [13:59:34]CommunicateWithHost lk.salyk.kg:30040 [13:59:34]ConnectInit lk.salyk.kg [13:59:34]ExternCall_PrintAddStr [13:59:34]wPrintStart [13:59:34]Write to MH i2c: 01 00 00 82 04 86 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 07 00 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [13:59:34]RasterBufferAndPrint [13:59:34]line Счет N : (1)594036 [13:59:34]line ИНН: 02508201610067 [13:59:34]line Контрольно-Кассовый Чек [13:59:34]line ПРОДАЖА [13:59:34]line ТРК (МРК, ГНК) : 32 [13:59:34]line Товар: 2710124130 [13:59:34]line Аи-92-К-5 [13:59:34]line 14.750 * 67.80 [13:59:34]line = 1000.05 [13:59:34]line НДС 12% НСП 1% [13:59:34]line > о реализуемом товаре [13:59:34]line ОКРУГЛЕНИЕ: -0.05 [13:59:34]line ИТОГО: 1000.00 [13:59:34]line Внесено: 1000.00 [13:59:34]line СДАЧА: 0.00 [13:59:34]line НСП 1% : 8.85 [13:59:34]line НДС 12% : 106.20 [13:59:34]line Наличными: 1000.00 [13:59:34]line Безнал.: 0.00 [13:59:34]line Место: АЗС № 136 "Партнер Нефть" [13:59:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:59:34]line СНО: Общий режим [13:59:34]line Чек 198 21.08.2024 13:59 [13:59:34]line Смена: 454 ФФД: 1.0 [13:59:34]line ЗНМ: 0300000067 [13:59:34]line РНМ: 0000000000092569 [13:59:34]line Версия ККМ: 001 [13:59:34]line ФМ: 0000000000871776 [13:59:34]line ФД: 140181 [13:59:34]line ФПД: 141598941646171 [13:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135933&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140181&fm=141598941646171&tin=02508201610067®Number=0000000000092569&sum=100000 [13:59:34]Connected sock=11 [13:59: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 37 36 0F 01 00 00 35 DA 07 01 71 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 C5 F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 23 02 00 35 04 06 00 80 C8 92 9E 0D 5B 69 D7 DB B3 B5 4E 49 83 [13:59:34]written 0, free lines is 4095 [13: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 37 36 4F 00 00 00 44 94 47 00 32 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 37 36 10 04 04 00 95 23 02 00 F4 03 04 00 55 99 C5 66 B6 04 01 00 00 18 8C 13 10 75 9D 79 5F [13:59:34]CommunicateWithHost err = 0 [13:59:34]CheckOFDResponse [13:59:34]1017 (14) - 77093643461234 [13:59:34]1041 (16) - 0000000000871776 [13:59:34]1040 (4) - 140181 [13:59:34]1012 (4) - 21.08.2024 07:37 [13:59:34]1206 (1) - 0 [13:59:34]OFD Sender: Remove packet 140181 [13:59:34]ProducePacketName [13:59:34]name=ofd_packets/00140181 [13:59:34]NVStorageDeleteData [13:59:34]Write to MH i2c: 01 00 00 AD 04 B1 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 07 00 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 D2 0C 96 [13:59:34]RasterBufferAndPrint [13:59:34]line [13:59:34]line [13:59:34]line [13:59:34]line [13:59:34]line [13:59:34]written 0, free lines is 3288 [13:59:34]MH_Cut [13:59:34]Write to MH i2c: D1 01 00 B4 04 01 8A [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: D1 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: D1 01 00 [13:59:34]MH_I2C_Read... [13:59:34]Read from MH i2c: D1 01 00 B4 04 00 89 [13:59:34]Write to MH i2c: 01 00 00 B5 04 B9 [13:59:34]Write i2c OK [13:59:34]MH_I2C_Read... [13:59:35]OFD Sender: No OFD packet to send [13:59:35]*** Cut start [13:59:35]*** Partial cut [13:59:35]*** CUTSNS_PIN = 1 [13:59:35]*** CUTSNS_PIN = 0 [13:59:35]*** Brake cut motor [13:59:36]Read from MH i2c: 01 [13:59:36]MH_I2C_Read... [13:59:36]*** Stop cut motor [13:59:36]*** Cut end [13:59:36]Read from MH i2c: 01 07 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [13:59:36]process_action close_receipt done [13:59:36]requested_data is exist [13:59:36]produce_requested_data [13:59:36]requested_item fm.sn is exist - process it [13:59:36]wFMCommunicate request_size=4 [13:59:36]MH_SAM_APDU [13:59:36]CAPDU: 80 11 00 00 [13:59:36]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:36]Read from MH i2c: E2 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 17 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [13:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:59:36]wFMCommunicate OK [13:59:36]requested_item fd.num is exist - process it [13:59:36]SAM_PROTO_GetFieldsCounters [13:59:36]wFMCommunicate request_size=4 [13:59:36]MH_SAM_APDU [13:59:36]CAPDU: 80 13 00 00 [13:59:36]Write to MH i2c: E2 08 00 B7 04 80 13 00 00 00 00 00 00 37 [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:36]Read from MH i2c: E2 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 62 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 62 00 B7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [13:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:36]wFMCommunicate OK [13:59:36]SAM_PROTO_GetFieldsCounters done [13:59:36]requested_item shift.num is exist - process it [13:59:36]requested_item shift.opened is exist - process it [13:59:36]req_shift_opened [13:59:36]FM_GetShiftState [13:59:36]SAM_PROTO_GetShiftState [13:59:36]wFMCommunicate request_size=4 [13:59:36]MH_SAM_APDU [13:59:36]CAPDU: 80 13 01 00 [13:59:36]Write to MH i2c: E2 08 00 B8 04 80 13 01 00 00 00 00 00 39 [13:59:36]Write i2c OK [13:59:36]MH_I2C_Read... [13:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:36]Read from MH i2c: E2 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 0E 00 [13:59:36]MH_I2C_Read... [13:59:36]Read from MH i2c: E2 0E 00 B8 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B9 [13:59:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:59:36]wFMCommunicate OK [13:59:36]SAM_PROTO_GetShiftState done [13:59:36]FM_GetShiftState done [13:59:36]req_shift_opened done [13:59:36]requested_item shift.open_date is exist - process it [13:59:36]req_shift_open_date [13:59:36]req_shift_open_date done [13:59:36]produce_requested_data done [13:59:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140181,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:59:36]process_action_free close_receipt [13:59:36]json_value_free [13:59:36]json_value_free done [13:59:36]process_json_proto returns [13:59:36]Send response to host [13:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140181,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:59:36]free response buf [13:59:36]execute_script done [13:59:36]execute_script returns [13:59:36]free content buf [13:59:36]Sock 9.Close socket [13:59:36]Sock 9.Thread stoped [13:59:38]accept exits with 8 [13:59:38]New connection [13:59:38]New thread 3067592036 created [13:59:38]Thread 3067448676 joined [13:59:38]Waiting for new connection... [13:59:38] Sock 8.Parse request [13:59:38]Sock 8.Check first char [13:59:38]Sock 8.First char is OK [13:59:38]request: POST /json_proto HTTP/1.0 [13:59:38]Method: POST [13:59:38]URL: /json_proto [13:59:38]Method is POST - this is cgi request [13:59:38]url: /json_proto [13:59:38]query_string will be loaded in cgi processing [13:59:38]execute_cgi json_proto POST (null) [13:59:38]execute_cgi path=json_proto method=POST [13:59:38]POST find Content-Length [13:59:38]Host: 172.17.45.67:8080 [13:59:38]Content-Length: 658 [13:59:38]Content-Type: application/json [13:59:38] [13:59:38]POST finish read [13:59:38]Found Content-Length = 658 [13:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:38]execute_script... [13:59: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)594037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:38]POST & json_proto [13:59:38]process_json_proto [13:59:38]json parsed OK: [13:59:38]protocol is kg_v1.0 [13:59:38]action value=close_receipt [13:59:38]process_action close_receipt [13:59:38]cmd_close_receipt [13:59:38]MH_GetDate [13:59:38]Write to MH i2c: F0 00 00 B9 04 AC [13:59:38]Write i2c OK [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: F0 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: F0 09 00 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: F0 09 00 B9 04 00 CB F2 C5 66 5F 7F 2B 66 0C [13:59:38]GetLastDocTimeStamp 1724248773 [13:59:38]current date 1724248779 [13:59:38]FM_GetShiftState [13:59:38]SAM_PROTO_GetShiftState [13:59:38]wFMCommunicate request_size=4 [13:59:38]MH_SAM_APDU [13:59:38]CAPDU: 80 13 01 00 [13:59:38]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [13:59:38]Write i2c OK [13:59:38]MH_I2C_Read... [13:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:38]Read from MH i2c: E2 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 0E 00 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BB [13:59:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:59:38]wFMCommunicate OK [13:59:38]SAM_PROTO_GetShiftState done [13:59:38]FM_GetShiftState done [13:59:38]opened in 1724200467 [13:59:38]opened+sec_in_day 1724286867 [13:59:38]quantity*price = 50017 [13:59:38]sum+1 = 50019 [13:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 199 21.08.2024 13:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140182 ФПД: 51831907167318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140182&fm=51831907167318&tin=02508201610067®Number=0000000000092569&sum=50000 [13:59:39]StoreToDocumentArchive [13:59:39]shift 454 fd 140182 [13:59:39]save to /storage/0454/doc_00140182 [13:59:39]save last doc name /storage/0454/doc_00140182 to /storage/kkm_last_doc_name [13:59:39]save OK [13:59:39]Clear old archive folders... [13:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [13:59:39]tlvbuf is 01CB7340 [13:59:39]SAM_PROTO_ClearQueue [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 09 00 00 [13:59:39]Write to MH i2c: E2 08 00 C7 04 80 09 00 00 00 00 00 00 3D [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]SAM_PROTO_ClearQueue done [13:59:39]KKMCreateOFDPacket [13:59:39]OFDProtocolAddRootSTLVToBuf [13:59:39]FM_MakeSignedData [13:59:39]FM_MakeSignedData [13:59:39]SAM_PROTO_SignData [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 01 02 [13:59:39]Write to MH i2c: E2 08 00 C8 04 80 0D 01 02 00 00 00 00 45 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=253 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 23 02 00 35 04 06 00 2F 24 0E 6A 2C 56 [13:59:39]Write to MH i2c: E2 00 01 C9 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 23 02 00 35 04 06 00 2F 24 0E 6A 2C 56 00 00 DC [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:40]OFD Sender: No OFD packet to send [13:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 03 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [13:59:40]RAPDU: 90 00 [13:59:40]wFMCommunicate OK [13:59:40]wFMCommunicate request_size=4 [13:59:40]MH_SAM_APDU [13:59:40]CAPDU: 80 0D 03 02 [13:59:40]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 0B 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 0B 00 CA 04 00 79 CF F7 5B C8 58 DE FE 90 00 E0 [13:59:40]RAPDU: 79 CF F7 5B C8 58 DE FE 90 00 [13:59:40]wFMCommunicate OK [13:59:40]SAM_PROTO_SignData done [13:59:40]FM_MakeSignedData done [13:59:40]CreateOFDProtocolMessage [13:59:40]wFMCommunicate request_size=4 [13:59:40]MH_SAM_APDU [13:59:40]CAPDU: 80 11 00 00 [13:59:40]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:40]Read from MH i2c: E2 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 17 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A0 [13:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:59:40]wFMCommunicate OK [13:59:40]CreateOFDProtocolMessage done [13:59:40]OFDSenderStorePacket 140182 [13:59:40]StoreOFDPacket docnum=140182 [13:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 8A F1 00 01 24 B6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 23 02 00 35 04 06 00 2F 24 0E 6A 2C 56 79 CF F7 5B C8 58 DE FE [13:59:40]CheckFolder [13:59:40]dirname=/storage/ofd_packets [13:59:40]CheckFolder done [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00140182 [13:59:40]NVStorageSaveData ofd_packets/00140182 [13:59:40]File name is /storage/ofd_packets/00140182 [13:59:40]Write 294 bytes [13:59:40]NVStorageSaveData done [13:59:40]OFDSenderStorePacket done [13:59:40]KKMCreateOFDPacket done [13:59:40]NVStorageSaveData kkm_last_timestamp [13:59:40]File name is /storage/kkm_last_timestamp [13:59:40]Write 4 bytes [13:59:40]NVStorageSaveData done [13:59:40]ExternCall_PrintAddStr [13:59:40]wPrintStart [13:59:40]Write to MH i2c: 01 00 00 CC 04 D0 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [13:59:40]RasterBufferAndPrint [13:59:40]line Счет N : (1)594037 [13:59:40]line ИНН: 02508201610067 [13:59:40]line Контрольно-Кассовый Чек [13:59:40]line ПРОДАЖА [13:59:40]line ТРК (МРК, ГНК) : 53 [13:59:40]line Товар: 2710124130 [13:59:40]line SU-92 [13:59:40]line 7.270 * 68.80 [13:59:40]line = 500.18 [13:59:40]line НДС 12% НСП 1% [13:59:40]line > о реализуемом товаре [13:59:40]line ОКРУГЛЕНИЕ: -0.18 [13:59:40]line ИТОГО: 500.00 [13:59:40]line Внесено: 500.00 [13:59:40]line СДАЧА: 0.00 [13:59:40]line НСП 1% : 4.43 [13:59:40]line НДС 12% : 53.12 [13:59:40]line Наличными: 500.00 [13:59:40]line Безнал.: 0.00 [13:59:40]line Место: АЗС № 136 "Партнер Нефть" [13:59:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [13:59:40]line СНО: Общий режим [13:59:40]line Чек 199 21.08.2024 13:59 [13:59:40]line Смена: 454 ФФД: 1.0 [13:59:40]line ЗНМ: 0300000067 [13:59:40]line РНМ: 0000000000092569 [13:59:40]line Версия ККМ: 001 [13:59:40]line ФМ: 0000000000871776 [13:59:40]line ФД: 140182 [13:59:40]line ФПД: 51831907167318 [13:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T135939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140182&fm=51831907167318&tin=02508201610067®Number=0000000000092569&sum=50000 [13:59:40]written 0, free lines is 4095 [13:59:40]OFD Sender: Processing packet 140182 [packets to send 137, broken 136] [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00140182 [13:59:40]OFD Sender: To server: pG, [13:59:40]CommunicateWithHost lk.salyk.kg:30040 [13:59:40]ConnectInit lk.salyk.kg [13:59:40]Connected sock=10 [13:59: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 37 36 08 01 00 00 8A F1 00 01 24 B6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 CB F2 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 23 02 00 35 04 06 00 2F 24 0E 6A 2C 56 79 CF F7 5B C8 58 DE FE [13:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E5 93 47 00 49 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 23 02 00 F4 03 04 00 5B 99 C5 66 B6 04 01 00 00 14 E2 BB D2 F7 CD D1 59 [13:59:40]CommunicateWithHost err = 0 [13:59:40]CheckOFDResponse [13:59:40]1017 (14) - 77093643461234 [13:59:40]1041 (16) - 0000000000871776 [13:59:40]1040 (4) - 140182 [13:59:40]1012 (4) - 21.08.2024 07:38 [13:59:40]1206 (1) - 0 [13:59:40]OFD Sender: Remove packet 140182 [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00140182 [13:59:40]NVStorageDeleteData [13:59:40]Write to MH i2c: 01 00 00 F7 04 FB [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 F1 0C FF [13:59:40]RasterBufferAndPrint [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]written 0, free lines is 3327 [13:59:40]MH_Cut [13:59:40]Write to MH i2c: D1 01 00 FE 04 01 D4 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 01 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 01 00 FE 04 00 D3 [13:59:40]Write to MH i2c: 01 00 00 FF 04 03 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:41]OFD Sender: No OFD packet to send [13:59:41]*** Cut start [13:59:41]*** Partial cut [13:59:41]*** CUTSNS_PIN = 1 [13:59:41]*** CUTSNS_PIN = 0 [13:59:41]*** Brake cut motor [13:59:42]Read from MH i2c: 01 [13:59:42]MH_I2C_Read... [13:59:42]*** Stop cut motor [13:59:42]*** Cut end [13:59:42]Read from MH i2c: 01 07 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: 01 07 00 FF 04 00 00 00 00 00 FF 0F 18 [13:59:42]process_action close_receipt done [13:59:42]requested_data is exist [13:59:42]produce_requested_data [13:59:42]requested_item fm.sn is exist - process it [13:59:42]wFMCommunicate request_size=4 [13:59:42]MH_SAM_APDU [13:59:42]CAPDU: 80 11 00 00 [13:59:42]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [13:59:42]Write i2c OK [13:59:42]MH_I2C_Read... [13:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:42]Read from MH i2c: E2 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 17 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [13:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [13:59:42]wFMCommunicate OK [13:59:42]requested_item fd.num is exist - process it [13:59:42]SAM_PROTO_GetFieldsCounters [13:59:42]wFMCommunicate request_size=4 [13:59:42]MH_SAM_APDU [13:59:42]CAPDU: 80 13 00 00 [13:59:42]Write to MH i2c: E2 08 00 01 05 80 13 00 00 00 00 00 00 82 [13:59:42]Write i2c OK [13:59:42]MH_I2C_Read... [13:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:42]Read from MH i2c: E2 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 62 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 62 00 01 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [13:59: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:42]wFMCommunicate OK [13:59:42]SAM_PROTO_GetFieldsCounters done [13:59:42]requested_item shift.num is exist - process it [13:59:42]requested_item shift.opened is exist - process it [13:59:42]req_shift_opened [13:59:42]FM_GetShiftState [13:59:42]SAM_PROTO_GetShiftState [13:59:42]wFMCommunicate request_size=4 [13:59:42]MH_SAM_APDU [13:59:42]CAPDU: 80 13 01 00 [13:59:42]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [13:59:42]Write i2c OK [13:59:42]MH_I2C_Read... [13:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:42]Read from MH i2c: E2 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 04 [13:59:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [13:59:42]wFMCommunicate OK [13:59:42]SAM_PROTO_GetShiftState done [13:59:42]FM_GetShiftState done [13:59:42]req_shift_opened done [13:59:42]requested_item shift.open_date is exist - process it [13:59:42]req_shift_open_date [13:59:42]req_shift_open_date done [13:59:42]produce_requested_data done [13:59:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140182,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [13:59:42]process_action_free close_receipt [13:59:42]json_value_free [13:59:42]json_value_free done [13:59:42]process_json_proto returns [13:59:42]Send response to host [13:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140182,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [13:59:42]free response buf [13:59:42]execute_script done [13:59:42]execute_script returns [13:59:42]free content buf [13:59:42]Sock 8.Close socket [13:59:42]Sock 8.Thread stoped [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:05]accept exits with 9 [14:01:05]New connection [14:01:05]New thread 3067448676 created [14:01:05]Thread 3067592036 joined [14:01:05]Waiting for new connection... [14:01:05] Sock 9.Parse request [14:01:05]Sock 9.Check first char [14:01:05]Sock 9.First char is OK [14:01:05]request: POST /json_proto HTTP/1.0 [14:01:05]Method: POST [14:01:05]URL: /json_proto [14:01:05]Method is POST - this is cgi request [14:01:05]url: /json_proto [14:01:05]query_string will be loaded in cgi processing [14:01:05]execute_cgi json_proto POST (null) [14:01:05]execute_cgi path=json_proto method=POST [14:01:05]POST find Content-Length [14:01:05]Host: 172.17.45.67:8080 [14:01:05]Content-Length: 677 [14:01:05]Content-Type: application/json [14:01:05] [14:01:05]POST finish read [14:01:05]Found Content-Length = 677 [14:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.670, "sum" : 520.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:05]execute_script... [14:01: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)594038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.670, "sum" : 520.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:05]POST & json_proto [14:01:05]process_json_proto [14:01:05]json parsed OK: [14:01:05]protocol is kg_v1.0 [14:01:05]action value=close_receipt [14:01:05]process_action close_receipt [14:01:05]cmd_close_receipt [14:01:05]MH_GetDate [14:01:05]Write to MH i2c: F0 00 00 03 05 F7 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: F0 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: F0 09 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: F0 09 00 03 05 00 21 F3 C5 66 5F 7F 2B 66 AE [14:01:05]GetLastDocTimeStamp 1724248779 [14:01:05]current date 1724248865 [14:01:05]FM_GetShiftState [14:01:05]SAM_PROTO_GetShiftState [14:01:05]wFMCommunicate request_size=4 [14:01:05]MH_SAM_APDU [14:01:05]CAPDU: 80 13 01 00 [14:01:05]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [14:01:05]Write i2c OK [14:01:05]MH_I2C_Read... [14:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:05]Read from MH i2c: E2 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 0E 00 [14:01:05]MH_I2C_Read... [14:01:05]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 06 [14:01:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:01:05]wFMCommunicate OK [14:01:05]SAM_PROTO_GetShiftState done [14:01:05]FM_GetShiftState done [14:01:05]opened in 1724200467 [14:01:05]opened+sec_in_day 1724286867 [14:01:05]quantity*price = 52002 [14:01:05]sum+1 = 52004 [14:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 200 21.08.2024 14:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140183 ФПД: 223915883419703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140183&fm=223915883419703&tin=02508201610067®Number=0000000000092569&sum=52000 [14:01:06]StoreToDocumentArchive [14:01:06]shift 454 fd 140183 [14:01:06]save to /storage/0454/doc_00140183 [14:01:06]save last doc name /storage/0454/doc_00140183 to /storage/kkm_last_doc_name [14:01:06]save OK [14:01:06]Clear old archive folders... [14:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:06]tlvbuf is 01CB4FA0 [14:01:06]SAM_PROTO_ClearQueue [14:01:06]wFMCommunicate request_size=4 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 09 00 00 [14:01:06]Write to MH i2c: E2 08 00 11 05 80 09 00 00 00 00 00 00 88 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [14:01:06]RAPDU: 90 00 [14:01:06]wFMCommunicate OK [14:01:06]SAM_PROTO_ClearQueue done [14:01:06]KKMCreateOFDPacket [14:01:06]OFDProtocolAddRootSTLVToBuf [14:01:06]FM_MakeSignedData [14:01:06]FM_MakeSignedData [14:01:06]SAM_PROTO_SignData [14:01:06]wFMCommunicate request_size=4 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 0D 01 02 [14:01:06]Write to MH i2c: E2 08 00 12 05 80 0D 01 02 00 00 00 00 90 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [14:01:06]RAPDU: 90 00 [14:01:06]wFMCommunicate OK [14:01:06]wFMCommunicate request_size=255 [14:01:06]MH_SAM_APDU [14:01: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 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 21 F3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 23 02 00 35 04 06 00 CB [14:01:06]Write to MH i2c: E2 02 01 13 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 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 21 F3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 23 02 00 35 04 06 00 CB 00 00 DA [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]OFD Sender: No OFD packet to send [14:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [14:01:06]RAPDU: 90 00 [14:01:06]wFMCommunicate OK [14:01:06]wFMCommunicate request_size=10 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 0D 02 02 05 A6 7A B0 D8 37 [14:01:06]Write to MH i2c: E2 0D 00 14 05 80 0D 02 02 05 00 A6 7A B0 D8 37 00 00 7C [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [14:01:06]RAPDU: 90 00 [14:01:06]wFMCommunicate OK [14:01:06]wFMCommunicate request_size=4 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 0D 03 02 [14:01:06]Write to MH i2c: E2 08 00 15 05 80 0D 03 02 00 00 00 00 95 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 0B 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 0B 00 15 05 00 66 45 52 F3 1A CD C8 A9 90 00 DE [14:01:06]RAPDU: 66 45 52 F3 1A CD C8 A9 90 00 [14:01:06]wFMCommunicate OK [14:01:06]SAM_PROTO_SignData done [14:01:06]FM_MakeSignedData done [14:01:06]CreateOFDProtocolMessage [14:01:06]wFMCommunicate request_size=4 [14:01:06]MH_SAM_APDU [14:01:06]CAPDU: 80 11 00 00 [14:01:06]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:06]Read from MH i2c: E2 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 17 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EC [14:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:01:06]wFMCommunicate OK [14:01:06]CreateOFDProtocolMessage done [14:01:06]OFDSenderStorePacket 140183 [14:01:06]StoreOFDPacket docnum=140183 [14:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 96 A7 07 01 B3 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 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 21 F3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 23 02 00 35 04 06 00 CB A6 7A B0 D8 37 66 45 52 F3 1A CD C8 A9 [14:01:06]CheckFolder [14:01:06]dirname=/storage/ofd_packets [14:01:06]CheckFolder done [14:01:06]ProducePacketName [14:01:06]name=ofd_packets/00140183 [14:01:06]NVStorageSaveData ofd_packets/00140183 [14:01:06]File name is /storage/ofd_packets/00140183 [14:01:06]Write 301 bytes [14:01:06]NVStorageSaveData done [14:01:06]OFDSenderStorePacket done [14:01:06]KKMCreateOFDPacket done [14:01:06]NVStorageSaveData kkm_last_timestamp [14:01:06]File name is /storage/kkm_last_timestamp [14:01:06]Write 4 bytes [14:01:06]NVStorageSaveData done [14:01:06]ExternCall_PrintAddStr [14:01:06]wPrintStart [14:01:06]Write to MH i2c: 01 00 00 17 05 1C [14:01:06]Write i2c OK [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 07 00 [14:01:06]MH_I2C_Read... [14:01:06]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [14:01:06]RasterBufferAndPrint [14:01:06]line Счет N : (1)594038 [14:01:06]line ИНН: 02508201610067 [14:01:06]line Контрольно-Кассовый Чек [14:01:06]line ПРОДАЖА [14:01:06]line ТРК (МРК, ГНК) : 42 [14:01:06]line Товар: 2710124130 [14:01:06]line Аи-92-К-5 [14:01:06]line 7.670 * 67.80 [14:01:06]line = 520.03 [14:01:06]line НДС 12% НСП 1% [14:01:06]line > о реализуемом товаре [14:01:06]line ОКРУГЛЕНИЕ: -0.03 [14:01:06]line ИТОГО: 520.00 [14:01:06]line Внесено: 520.00 [14:01:06]line СДАЧА: 0.00 [14:01:06]line НСП 1% : 4.60 [14:01:06]line НДС 12% : 55.22 [14:01:06]line Наличными: 520.00 [14:01:06]line Безнал.: 0.00 [14:01:06]line Место: АЗС № 136 "Партнер Нефть" [14:01:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:01:06]line СНО: Общий режим [14:01:06]line Чек 200 21.08.2024 14:01 [14:01:06]line Смена: 454 ФФД: 1.0 [14:01:06]line ЗНМ: 0300000067 [14:01:06]line РНМ: 0000000000092569 [14:01:06]line Версия ККМ: 001 [14:01:06]line ФМ: 0000000000871776 [14:01:06]line ФД: 140183 [14:01:06]line ФПД: 223915883419703 [14:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140105&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140183&fm=223915883419703&tin=02508201610067®Number=0000000000092569&sum=52000 [14:01:07]OFD Sender: Processing packet 140183 [packets to send 137, broken 136] [14:01:07]ProducePacketName [14:01:07]name=ofd_packets/00140183 [14:01:07]OFD Sender: To server: pG, [14:01:07]CommunicateWithHost lk.salyk.kg:30040 [14:01:07]ConnectInit lk.salyk.kg [14:01:07]written 0, free lines is 4095 [14:01:07]Connected sock=10 [14:01: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 37 36 0F 01 00 00 96 A7 07 01 B3 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 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 21 F3 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 23 02 00 35 04 06 00 CB A6 7A B0 D8 37 66 45 52 F3 1A CD C8 A9 [14:01: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 37 36 4F 00 00 00 BC 2E 47 00 95 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 37 36 10 04 04 00 97 23 02 00 F4 03 04 00 B2 99 C5 66 B6 04 01 00 00 41 09 B8 91 D2 E5 F3 6A [14:01:07]CommunicateWithHost err = 0 [14:01:07]CheckOFDResponse [14:01:07]1017 (14) - 77093643461234 [14:01:07]1041 (16) - 0000000000871776 [14:01:07]1040 (4) - 140183 [14:01:07]1012 (4) - 21.08.2024 07:39 [14:01:07]1206 (1) - 0 [14:01:07]OFD Sender: Remove packet 140183 [14:01:07]ProducePacketName [14:01:07]name=ofd_packets/00140183 [14:01:07]NVStorageDeleteData [14:01:07]Write to MH i2c: 01 00 00 42 05 47 [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: 01 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: 01 07 00 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 D3 0C 2D [14:01:07]RasterBufferAndPrint [14:01:07]line [14:01:07]line [14:01:07]line [14:01:07]line [14:01:07]line [14:01:07]written 0, free lines is 3289 [14:01:07]MH_Cut [14:01:07]Write to MH i2c: D1 01 00 49 05 01 20 [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: D1 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: D1 01 00 [14:01:07]MH_I2C_Read... [14:01:07]Read from MH i2c: D1 01 00 49 05 00 1F [14:01:07]Write to MH i2c: 01 00 00 4A 05 4F [14:01:07]Write i2c OK [14:01:07]MH_I2C_Read... [14:01:08]OFD Sender: No OFD packet to send [14:01:08]*** Cut start [14:01:08]*** Partial cut [14:01:08]*** CUTSNS_PIN = 1 [14:01:08]*** CUTSNS_PIN = 0 [14:01:08]*** Brake cut motor [14:01:08]Read from MH i2c: 01 [14:01:08]MH_I2C_Read... [14:01:08]*** Stop cut motor [14:01:08]*** Cut end [14:01:08]Read from MH i2c: 01 07 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [14:01:08]process_action close_receipt done [14:01:08]requested_data is exist [14:01:08]produce_requested_data [14:01:08]requested_item fm.sn is exist - process it [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 11 00 00 [14:01:08]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:08]Read from MH i2c: E2 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 [14:01:08]MH_I2C_Read... [14:01:08]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [14:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:01:08]wFMCommunicate OK [14:01:08]requested_item fd.num is exist - process it [14:01:08]SAM_PROTO_GetFieldsCounters [14:01:08]wFMCommunicate request_size=4 [14:01:08]MH_SAM_APDU [14:01:08]CAPDU: 80 13 00 00 [14:01:08]Write to MH i2c: E2 08 00 4C 05 80 13 00 00 00 00 00 00 CD [14:01:08]Write i2c OK [14:01:08]MH_I2C_Read... [14:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:09]Read from MH i2c: E2 [14:01:09]MH_I2C_Read... [14:01:09]Read from MH i2c: E2 62 00 [14:01:09]MH_I2C_Read... [14:01:09]Read from MH i2c: E2 62 00 4C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [14:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:09]wFMCommunicate OK [14:01:09]SAM_PROTO_GetFieldsCounters done [14:01:09]requested_item shift.num is exist - process it [14:01:09]requested_item shift.opened is exist - process it [14:01:09]req_shift_opened [14:01:09]FM_GetShiftState [14:01:09]SAM_PROTO_GetShiftState [14:01:09]wFMCommunicate request_size=4 [14:01:09]MH_SAM_APDU [14:01:09]CAPDU: 80 13 01 00 [14:01:09]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [14:01:09]Write i2c OK [14:01:09]MH_I2C_Read... [14:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:09]Read from MH i2c: E2 [14:01:09]MH_I2C_Read... [14:01:09]Read from MH i2c: E2 0E 00 [14:01:09]MH_I2C_Read... [14:01:09]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [14:01:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:01:09]wFMCommunicate OK [14:01:09]SAM_PROTO_GetShiftState done [14:01:09]FM_GetShiftState done [14:01:09]req_shift_opened done [14:01:09]requested_item shift.open_date is exist - process it [14:01:09]req_shift_open_date [14:01:09]req_shift_open_date done [14:01:09]produce_requested_data done [14:01:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140183,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:01:09]process_action_free close_receipt [14:01:09]json_value_free [14:01:09]json_value_free done [14:01:09]process_json_proto returns [14:01:09]Send response to host [14:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140183,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:01:09]free response buf [14:01:09]execute_script done [14:01:09]execute_script returns [14:01:09]free content buf [14:01:09]Sock 9.Close socket [14:01:09]Sock 9.Thread stoped [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04: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:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:37]int [14:06:37]Write to MH i2c: 01 00 00 4E 05 53 [14:06:37]*** FLAG_PRN_KEY set [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 4E 05 00 08 00 00 00 FF 0F 70 [14:06:37]state=0 [14:06:37]Key pressed [14:06:37]Feed [14:06:37]Write to MH i2c: D8 00 00 4F 05 2B [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D8 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D8 01 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: D8 01 00 4F 05 00 2C [14:06:37]int [14:06:37]Write to MH i2c: 01 00 00 50 05 55 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 50 05 00 48 00 00 00 3C 00 E0 [14:06:37]state=2 [14:06:37]Key pressed [14:06:37]int [14:06:37]Write to MH i2c: 01 00 00 51 05 56 [14:06:37]*** FLAG_PRN_KEY reset [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 F6 0F 62 [14:06:37]state=2 [14:06:37]Stop feed [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:05]accept exits with 8 [14:07:05]New connection [14:07:05]New thread 3067592036 created [14:07:05]Thread 3067448676 joined [14:07:05]Waiting for new connection... [14:07:05] Sock 8.Parse request [14:07:05]Sock 8.Check first char [14:07:05]Sock 8.First char is OK [14:07:05]request: POST /json_proto HTTP/1.0 [14:07:05]Method: POST [14:07:05]URL: /json_proto [14:07:05]Method is POST - this is cgi request [14:07:05]url: /json_proto [14:07:05]query_string will be loaded in cgi processing [14:07:05]execute_cgi json_proto POST (null) [14:07:05]execute_cgi path=json_proto method=POST [14:07:05]POST find Content-Length [14:07:05]Host: 172.17.45.67:8080 [14:07:05]Content-Length: 677 [14:07:05]Content-Type: application/json [14:07:05] [14:07:05]POST finish read [14:07:05]Found Content-Length = 677 [14:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05]execute_script... [14:07:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05]POST & json_proto [14:07:05]process_json_proto [14:07:05]json parsed OK: [14:07:05]protocol is kg_v1.0 [14:07:05]action value=close_receipt [14:07:05]process_action close_receipt [14:07:05]cmd_close_receipt [14:07:05]MH_GetDate [14:07:05]Write to MH i2c: F0 00 00 52 05 46 [14:07:05]Write i2c OK [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: F0 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: F0 09 00 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: F0 09 00 52 05 00 8A F4 C5 66 5F 7F 2B 66 67 [14:07:05]GetLastDocTimeStamp 1724248865 [14:07:05]current date 1724249226 [14:07:05]FM_GetShiftState [14:07:05]SAM_PROTO_GetShiftState [14:07:05]wFMCommunicate request_size=4 [14:07:05]MH_SAM_APDU [14:07:05]CAPDU: 80 13 01 00 [14:07:05]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [14:07:05]Write i2c OK [14:07:05]MH_I2C_Read... [14:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:05]Read from MH i2c: E2 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 0E 00 [14:07:05]MH_I2C_Read... [14:07:05]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 55 [14:07:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:07:05]wFMCommunicate OK [14:07:05]SAM_PROTO_GetShiftState done [14:07:05]FM_GetShiftState done [14:07:05]opened in 1724200467 [14:07:05]opened+sec_in_day 1724286867 [14:07:05]quantity*price = 50036 [14:07:05]sum+1 = 50037 [14:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 201 21.08.2024 14:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140184 ФПД: 86907850749242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140706&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140184&fm=86907850749242&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:06]StoreToDocumentArchive [14:07:06]shift 454 fd 140184 [14:07:06]save to /storage/0454/doc_00140184 [14:07:06]save last doc name /storage/0454/doc_00140184 to /storage/kkm_last_doc_name [14:07:06]save OK [14:07:06]Clear old archive folders... [14:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:06]tlvbuf is 01CCB090 [14:07:06]SAM_PROTO_ClearQueue [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 09 00 00 [14:07:06]Write to MH i2c: E2 08 00 60 05 80 09 00 00 00 00 00 00 D7 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [14:07:06]RAPDU: 90 00 [14:07:06]wFMCommunicate OK [14:07:06]SAM_PROTO_ClearQueue done [14:07:06]KKMCreateOFDPacket [14:07:06]OFDProtocolAddRootSTLVToBuf [14:07:06]FM_MakeSignedData [14:07:06]FM_MakeSignedData [14:07:06]SAM_PROTO_SignData [14:07:06]wFMCommunicate request_size=4 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 0D 01 02 [14:07:06]Write to MH i2c: E2 08 00 61 05 80 0D 01 02 00 00 00 00 DF [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [14:07:06]RAPDU: 90 00 [14:07:06]wFMCommunicate OK [14:07:06]wFMCommunicate request_size=255 [14:07:06]MH_SAM_APDU [14:07: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 23 02 00 35 04 06 00 4F [14:07:06]Write to MH i2c: E2 02 01 62 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 23 02 00 35 04 06 00 4F 00 00 AD [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:06]Read from MH i2c: E2 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 [14:07:06]MH_I2C_Read... [14:07:06]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [14:07:06]RAPDU: 90 00 [14:07:06]wFMCommunicate OK [14:07:06]wFMCommunicate request_size=10 [14:07:06]MH_SAM_APDU [14:07:06]CAPDU: 80 0D 02 02 05 0A CF 92 75 3A [14:07:06]Write to MH i2c: E2 0D 00 63 05 80 0D 02 02 05 00 0A CF 92 75 3A 00 00 06 [14:07:06]Write i2c OK [14:07:06]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 03 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [14:07:07]RAPDU: 90 00 [14:07:07]wFMCommunicate OK [14:07:07]wFMCommunicate request_size=4 [14:07:07]MH_SAM_APDU [14:07:07]CAPDU: 80 0D 03 02 [14:07:07]Write to MH i2c: E2 08 00 64 05 80 0D 03 02 00 00 00 00 E4 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 0B 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 0B 00 64 05 00 89 C2 56 0C 84 5E 64 95 90 00 6D [14:07:07]RAPDU: 89 C2 56 0C 84 5E 64 95 90 00 [14:07:07]wFMCommunicate OK [14:07:07]SAM_PROTO_SignData done [14:07:07]FM_MakeSignedData done [14:07:07]CreateOFDProtocolMessage [14:07:07]wFMCommunicate request_size=4 [14:07:07]MH_SAM_APDU [14:07:07]CAPDU: 80 11 00 00 [14:07:07]Write to MH i2c: E2 08 00 65 05 80 11 00 00 00 00 00 00 E4 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:07]Read from MH i2c: E2 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 17 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: E2 17 00 65 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [14:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:07:07]wFMCommunicate OK [14:07:07]CreateOFDProtocolMessage done [14:07:07]OFDSenderStorePacket 140184 [14:07:07]StoreOFDPacket docnum=140184 [14:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 83 95 07 01 6E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 23 02 00 35 04 06 00 4F 0A CF 92 75 3A 89 C2 56 0C 84 5E 64 95 [14:07:07]CheckFolder [14:07:07]dirname=/storage/ofd_packets [14:07:07]CheckFolder done [14:07:07]ProducePacketName [14:07:07]name=ofd_packets/00140184 [14:07:07]NVStorageSaveData ofd_packets/00140184 [14:07:07]File name is /storage/ofd_packets/00140184 [14:07:07]Write 301 bytes [14:07:07]NVStorageSaveData done [14:07:07]OFDSenderStorePacket done [14:07:07]KKMCreateOFDPacket done [14:07:07]NVStorageSaveData kkm_last_timestamp [14:07:07]File name is /storage/kkm_last_timestamp [14:07:07]Write 4 bytes [14:07:07]NVStorageSaveData done [14:07:07]OFD Sender: Processing packet 140184 [packets to send 137, broken 136] [14:07:07]ProducePacketName [14:07:07]name=ofd_packets/00140184 [14:07:07]OFD Sender: To server: pG, [14:07:07]CommunicateWithHost lk.salyk.kg:30040 [14:07:07]ConnectInit lk.salyk.kg [14:07:07]ExternCall_PrintAddStr [14:07:07]wPrintStart [14:07:07]Write to MH i2c: 01 00 00 66 05 6B [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 07 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [14:07:07]RasterBufferAndPrint [14:07:07]line Счет N : (1)594039 [14:07:07]line ИНН: 02508201610067 [14:07:07]line Контрольно-Кассовый Чек [14:07:07]line ПРОДАЖА [14:07:07]line ТРК (МРК, ГНК) : 52 [14:07:07]line Товар: 2710124130 [14:07:07]line Аи-92-К-5 [14:07:07]line 7.380 * 67.80 [14:07:07]line = 500.36 [14:07:07]line НДС 12% НСП 1% [14:07:07]line > о реализуемом товаре [14:07:07]line ОКРУГЛЕНИЕ: -0.36 [14:07:07]line ИТОГО: 500.00 [14:07:07]line Внесено: 500.00 [14:07:07]line СДАЧА: 0.00 [14:07:07]line НСП 1% : 4.43 [14:07:07]line НДС 12% : 53.14 [14:07:07]line Наличными: 500.00 [14:07:07]line Безнал.: 0.00 [14:07:07]line Место: АЗС № 136 "Партнер Нефть" [14:07:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:07:07]line СНО: Общий режим [14:07:07]line Чек 201 21.08.2024 14:07 [14:07:07]line Смена: 454 ФФД: 1.0 [14:07:07]line ЗНМ: 0300000067 [14:07:07]line РНМ: 0000000000092569 [14:07:07]line Версия ККМ: 001 [14:07:07]line ФМ: 0000000000871776 [14:07:07]line ФД: 140184 [14:07:07]line ФПД: 86907850749242 [14:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140706&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140184&fm=86907850749242&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:07]Connected sock=11 [14:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 83 95 07 01 6E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 23 02 00 35 04 06 00 4F 0A CF 92 75 3A 89 C2 56 0C 84 5E 64 95 [14:07:07]written 0, free lines is 4095 [14:07: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 37 36 4F 00 00 00 67 7E 47 00 51 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 37 36 10 04 04 00 98 23 02 00 F4 03 04 00 1A 9B C5 66 B6 04 01 00 00 12 E6 11 7D 9D 45 DB A9 [14:07:07]CommunicateWithHost err = 0 [14:07:07]CheckOFDResponse [14:07:07]1017 (14) - 77093643461234 [14:07:07]1041 (16) - 0000000000871776 [14:07:07]1040 (4) - 140184 [14:07:07]1012 (4) - 21.08.2024 07:45 [14:07:07]1206 (1) - 0 [14:07:07]OFD Sender: Remove packet 140184 [14:07:07]ProducePacketName [14:07:07]name=ofd_packets/00140184 [14:07:07]NVStorageDeleteData [14:07:07]Write to MH i2c: 01 00 00 91 05 96 [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 07 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 CE 0C 77 [14:07:07]RasterBufferAndPrint [14:07:07]line [14:07:07]line [14:07:07]line [14:07:07]line [14:07:07]line [14:07:07]written 0, free lines is 3282 [14:07:07]MH_Cut [14:07:07]Write to MH i2c: D1 01 00 98 05 01 6F [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: D1 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: D1 01 00 [14:07:07]MH_I2C_Read... [14:07:07]Read from MH i2c: D1 01 00 98 05 00 6E [14:07:07]Write to MH i2c: 01 00 00 99 05 9E [14:07:07]Write i2c OK [14:07:07]MH_I2C_Read... [14:07:08]OFD Sender: No OFD packet to send [14:07:08]*** Cut start [14:07:08]*** Partial cut [14:07:08]*** CUTSNS_PIN = 1 [14:07:08]*** CUTSNS_PIN = 0 [14:07:08]*** Brake cut motor [14:07:09]Read from MH i2c: 01 [14:07:09]MH_I2C_Read... [14:07:09]*** Stop cut motor [14:07:09]*** Cut end [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 99 05 00 00 00 00 00 FF 0F B3 [14:07:09]process_action close_receipt done [14:07:09]requested_data is exist [14:07:09]produce_requested_data [14:07:09]requested_item fm.sn is exist - process it [14:07:09]wFMCommunicate request_size=4 [14:07:09]MH_SAM_APDU [14:07:09]CAPDU: 80 11 00 00 [14:07:09]Write to MH i2c: E2 08 00 9A 05 80 11 00 00 00 00 00 00 19 [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:09]Read from MH i2c: E2 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 17 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 17 00 9A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [14:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:07:09]wFMCommunicate OK [14:07:09]requested_item fd.num is exist - process it [14:07:09]SAM_PROTO_GetFieldsCounters [14:07:09]wFMCommunicate request_size=4 [14:07:09]MH_SAM_APDU [14:07:09]CAPDU: 80 13 00 00 [14:07:09]Write to MH i2c: E2 08 00 9B 05 80 13 00 00 00 00 00 00 1C [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:09]Read from MH i2c: E2 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 62 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 62 00 9B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:09]wFMCommunicate OK [14:07:09]SAM_PROTO_GetFieldsCounters done [14:07:09]requested_item shift.num is exist - process it [14:07:09]requested_item shift.opened is exist - process it [14:07:09]req_shift_opened [14:07:09]FM_GetShiftState [14:07:09]SAM_PROTO_GetShiftState [14:07:09]wFMCommunicate request_size=4 [14:07:09]MH_SAM_APDU [14:07:09]CAPDU: 80 13 01 00 [14:07:09]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [14:07:09]Write i2c OK [14:07:09]MH_I2C_Read... [14:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:09]Read from MH i2c: E2 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 0E 00 [14:07:09]MH_I2C_Read... [14:07:09]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [14:07:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:07:09]wFMCommunicate OK [14:07:09]SAM_PROTO_GetShiftState done [14:07:09]FM_GetShiftState done [14:07:09]req_shift_opened done [14:07:09]requested_item shift.open_date is exist - process it [14:07:09]req_shift_open_date [14:07:09]req_shift_open_date done [14:07:09]produce_requested_data done [14:07:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140184,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:07:09]process_action_free close_receipt [14:07:09]json_value_free [14:07:09]json_value_free done [14:07:09]process_json_proto returns [14:07:09]Send response to host [14:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140184,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:07:09]free response buf [14:07:09]execute_script done [14:07:09]execute_script returns [14:07:09]free content buf [14:07:09]Sock 8.Close socket [14:07:09]Sock 8.Thread stoped [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:27]accept exits with 9 [14:07:27]New connection [14:07:27]New thread 3067448676 created [14:07:27]Thread 3067592036 joined [14:07:27]Waiting for new connection... [14:07:27] Sock 9.Parse request [14:07:27]Sock 9.Check first char [14:07:27]Sock 9.First char is OK [14:07:27]request: POST /json_proto HTTP/1.0 [14:07:27]Method: POST [14:07:27]URL: /json_proto [14:07:27]Method is POST - this is cgi request [14:07:27]url: /json_proto [14:07:27]query_string will be loaded in cgi processing [14:07:27]execute_cgi json_proto POST (null) [14:07:27]execute_cgi path=json_proto method=POST [14:07:27]POST find Content-Length [14:07:27]Host: 172.17.45.67:8080 [14:07:27]Content-Length: 677 [14:07:27]Content-Type: application/json [14:07:27] [14:07:27]POST finish read [14:07:27]Found Content-Length = 677 [14:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27]execute_script... [14:07: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)594040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27]POST & json_proto [14:07:27]process_json_proto [14:07:27]json parsed OK: [14:07:27]protocol is kg_v1.0 [14:07:27]action value=close_receipt [14:07:27]process_action close_receipt [14:07:27]cmd_close_receipt [14:07:27]MH_GetDate [14:07:27]Write to MH i2c: F0 00 00 9D 05 91 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: F0 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: F0 09 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: F0 09 00 9D 05 00 A0 F4 C5 66 5F 7F 2B 66 C8 [14:07:27]GetLastDocTimeStamp 1724249226 [14:07:27]current date 1724249248 [14:07:27]FM_GetShiftState [14:07:27]SAM_PROTO_GetShiftState [14:07:27]wFMCommunicate request_size=4 [14:07:27]MH_SAM_APDU [14:07:27]CAPDU: 80 13 01 00 [14:07:27]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [14:07:27]Write i2c OK [14:07:27]MH_I2C_Read... [14:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:27]Read from MH i2c: E2 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 0E 00 [14:07:27]MH_I2C_Read... [14:07:27]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [14:07:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:07:27]wFMCommunicate OK [14:07:27]SAM_PROTO_GetShiftState done [14:07:27]FM_GetShiftState done [14:07:27]opened in 1724200467 [14:07:27]opened+sec_in_day 1724286867 [14:07:27]quantity*price = 50036 [14:07:27]sum+1 = 50037 [14:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 202 21.08.2024 14:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140185 ФПД: 41947530003862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140185&fm=41947530003862&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:28]StoreToDocumentArchive [14:07:28]shift 454 fd 140185 [14:07:28]save to /storage/0454/doc_00140185 [14:07:28]save last doc name /storage/0454/doc_00140185 to /storage/kkm_last_doc_name [14:07:28]save OK [14:07:28]Clear old archive folders... [14:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:28]tlvbuf is 01CA81B0 [14:07:28]SAM_PROTO_ClearQueue [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 09 00 00 [14:07:28]Write to MH i2c: E2 08 00 AB 05 80 09 00 00 00 00 00 00 22 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [14:07:28]RAPDU: 90 00 [14:07:28]wFMCommunicate OK [14:07:28]SAM_PROTO_ClearQueue done [14:07:28]KKMCreateOFDPacket [14:07:28]OFDProtocolAddRootSTLVToBuf [14:07:28]FM_MakeSignedData [14:07:28]FM_MakeSignedData [14:07:28]SAM_PROTO_SignData [14:07:28]wFMCommunicate request_size=4 [14:07:28]MH_SAM_APDU [14:07:28]CAPDU: 80 0D 01 02 [14:07:28]Write to MH i2c: E2 08 00 AC 05 80 0D 01 02 00 00 00 00 2A [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:28]Read from MH i2c: E2 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 [14:07:28]MH_I2C_Read... [14:07:28]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [14:07:28]RAPDU: 90 00 [14:07:28]wFMCommunicate OK [14:07:28]wFMCommunicate request_size=255 [14:07:28]MH_SAM_APDU [14:07: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 23 02 00 35 04 06 00 26 [14:07:28]Write to MH i2c: E2 02 01 AD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 23 02 00 35 04 06 00 26 00 00 E7 [14:07:28]Write i2c OK [14:07:28]MH_I2C_Read... [14:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:29]Read from MH i2c: E2 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 03 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [14:07:29]RAPDU: 90 00 [14:07:29]wFMCommunicate OK [14:07:29]wFMCommunicate request_size=10 [14:07:29]MH_SAM_APDU [14:07:29]CAPDU: 80 0D 02 02 05 26 AB A0 05 96 [14:07:29]Write to MH i2c: E2 0D 00 AE 05 80 0D 02 02 05 00 26 AB A0 05 96 00 00 43 [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:29]Read from MH i2c: E2 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 03 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [14:07:29]RAPDU: 90 00 [14:07:29]wFMCommunicate OK [14:07:29]wFMCommunicate request_size=4 [14:07:29]MH_SAM_APDU [14:07:29]CAPDU: 80 0D 03 02 [14:07:29]Write to MH i2c: E2 08 00 AF 05 80 0D 03 02 00 00 00 00 2F [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:29]Read from MH i2c: E2 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 0B 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 0B 00 AF 05 00 EF 3A 5B 8C 92 FA D3 6A 90 00 09 [14:07:29]RAPDU: EF 3A 5B 8C 92 FA D3 6A 90 00 [14:07:29]wFMCommunicate OK [14:07:29]SAM_PROTO_SignData done [14:07:29]FM_MakeSignedData done [14:07:29]CreateOFDProtocolMessage [14:07:29]wFMCommunicate request_size=4 [14:07:29]MH_SAM_APDU [14:07:29]CAPDU: 80 11 00 00 [14:07:29]Write to MH i2c: E2 08 00 B0 05 80 11 00 00 00 00 00 00 2F [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:29]Read from MH i2c: E2 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 17 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: E2 17 00 B0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [14:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:07:29]wFMCommunicate OK [14:07:29]CreateOFDProtocolMessage done [14:07:29]OFDSenderStorePacket 140185 [14:07:29]StoreOFDPacket docnum=140185 [14:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 2C 07 01 B7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 23 02 00 35 04 06 00 26 26 AB A0 05 96 EF 3A 5B 8C 92 FA D3 6A [14:07:29]CheckFolder [14:07:29]dirname=/storage/ofd_packets [14:07:29]CheckFolder done [14:07:29]ProducePacketName [14:07:29]name=ofd_packets/00140185 [14:07:29]NVStorageSaveData ofd_packets/00140185 [14:07:29]File name is /storage/ofd_packets/00140185 [14:07:29]Write 301 bytes [14:07:29]NVStorageSaveData done [14:07:29]OFDSenderStorePacket done [14:07:29]KKMCreateOFDPacket done [14:07:29]NVStorageSaveData kkm_last_timestamp [14:07:29]File name is /storage/kkm_last_timestamp [14:07:29]Write 4 bytes [14:07:29]NVStorageSaveData done [14:07:29]ExternCall_PrintAddStr [14:07:29]wPrintStart [14:07:29]Write to MH i2c: 01 00 00 B1 05 B6 [14:07:29]Write i2c OK [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: 01 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: 01 07 00 [14:07:29]MH_I2C_Read... [14:07:29]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [14:07:29]RasterBufferAndPrint [14:07:29]line Счет N : (1)594040 [14:07:29]line ИНН: 02508201610067 [14:07:29]line Контрольно-Кассовый Чек [14:07:29]line ПРОДАЖА [14:07:29]line ТРК (МРК, ГНК) : 32 [14:07:29]line Товар: 2710124130 [14:07:29]line Аи-92-К-5 [14:07:29]line 7.380 * 67.80 [14:07:29]line = 500.36 [14:07:29]line НДС 12% НСП 1% [14:07:29]line > о реализуемом товаре [14:07:29]line ОКРУГЛЕНИЕ: -0.36 [14:07:29]line ИТОГО: 500.00 [14:07:29]line Внесено: 500.00 [14:07:29]line СДАЧА: 0.00 [14:07:29]line НСП 1% : 4.43 [14:07:29]line НДС 12% : 53.14 [14:07:29]line Наличными: 500.00 [14:07:29]line Безнал.: 0.00 [14:07:29]line Место: АЗС № 136 "Партнер Нефть" [14:07:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:07:29]line СНО: Общий режим [14:07:29]line Чек 202 21.08.2024 14:07 [14:07:29]line Смена: 454 ФФД: 1.0 [14:07:29]line ЗНМ: 0300000067 [14:07:29]line РНМ: 0000000000092569 [14:07:29]line Версия ККМ: 001 [14:07:29]line ФМ: 0000000000871776 [14:07:29]line ФД: 140185 [14:07:29]line ФПД: 41947530003862 [14:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140728&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140185&fm=41947530003862&tin=02508201610067®Number=0000000000092569&sum=50000 [14:07:29]OFD Sender: Processing packet 140185 [packets to send 137, broken 136] [14:07:29]ProducePacketName [14:07:29]name=ofd_packets/00140185 [14:07:29]OFD Sender: To server: pG, [14:07:29]CommunicateWithHost lk.salyk.kg:30040 [14:07:29]ConnectInit lk.salyk.kg [14:07:29]written 0, free lines is 4095 [14:07:29]Connected sock=11 [14:07: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 37 36 0F 01 00 00 A5 2C 07 01 B7 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 A0 F4 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 23 02 00 35 04 06 00 26 26 AB A0 05 96 EF 3A 5B 8C 92 FA D3 6A [14:07:30]Write to MH i2c: 01 00 00 DC 05 E1 [14:07:30]Write i2c OK [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: 01 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: 01 07 00 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 CD 0C C1 [14:07:30]RasterBufferAndPrint [14:07:30]line [14:07:30]line [14:07:30]line [14:07:30]line [14:07:30]line [14:07:30]written 0, free lines is 3280 [14:07:30]MH_Cut [14:07:30]Write to MH i2c: D1 01 00 E3 05 01 BA [14:07:30]Write i2c OK [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: D1 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: D1 01 00 [14:07:30]MH_I2C_Read... [14:07:30]Read from MH i2c: D1 01 00 E3 05 00 B9 [14:07:30]Write to MH i2c: 01 00 00 E4 05 E9 [14:07:30]Write i2c OK [14:07:30]MH_I2C_Read... [14:07: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 37 36 4F 00 00 00 43 B8 47 00 69 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 99 23 02 00 F4 03 04 00 31 9B C5 66 B6 04 01 00 00 19 92 CD 64 C4 D7 56 B8 [14:07:30]CommunicateWithHost err = 0 [14:07:30]CheckOFDResponse [14:07:30]1017 (14) - 77093643461234 [14:07:30]1041 (16) - 0000000000871776 [14:07:30]1040 (4) - 140185 [14:07:30]1012 (4) - 21.08.2024 07:45 [14:07:30]1206 (1) - 0 [14:07:30]OFD Sender: Remove packet 140185 [14:07:30]ProducePacketName [14:07:30]name=ofd_packets/00140185 [14:07:30]NVStorageDeleteData [14:07:30]OFD Sender: No OFD packet to send [14:07:30]*** Cut start [14:07:30]*** Partial cut [14:07:30]*** CUTSNS_PIN = 1 [14:07:30]*** CUTSNS_PIN = 0 [14:07:31]*** Brake cut motor [14:07:31]Read from MH i2c: 01 [14:07:31]MH_I2C_Read... [14:07:31]*** Stop cut motor [14:07:31]*** Cut end [14:07:31]Read from MH i2c: 01 07 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [14:07:31]process_action close_receipt done [14:07:31]requested_data is exist [14:07:31]produce_requested_data [14:07:31]requested_item fm.sn is exist - process it [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 11 00 00 [14:07:31]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 17 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [14:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:07:31]wFMCommunicate OK [14:07:31]requested_item fd.num is exist - process it [14:07:31]SAM_PROTO_GetFieldsCounters [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 13 00 00 [14:07:31]Write to MH i2c: E2 08 00 E6 05 80 13 00 00 00 00 00 00 67 [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 62 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 62 00 E6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [14:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 99 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:31]wFMCommunicate OK [14:07:31]SAM_PROTO_GetFieldsCounters done [14:07:31]requested_item shift.num is exist - process it [14:07:31]requested_item shift.opened is exist - process it [14:07:31]req_shift_opened [14:07:31]FM_GetShiftState [14:07:31]SAM_PROTO_GetShiftState [14:07:31]wFMCommunicate request_size=4 [14:07:31]MH_SAM_APDU [14:07:31]CAPDU: 80 13 01 00 [14:07:31]Write to MH i2c: E2 08 00 E7 05 80 13 01 00 00 00 00 00 69 [14:07:31]Write i2c OK [14:07:31]MH_I2C_Read... [14:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:31]Read from MH i2c: E2 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 0E 00 [14:07:31]MH_I2C_Read... [14:07:31]Read from MH i2c: E2 0E 00 E7 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [14:07:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:07:31]wFMCommunicate OK [14:07:31]SAM_PROTO_GetShiftState done [14:07:31]FM_GetShiftState done [14:07:31]req_shift_opened done [14:07:31]requested_item shift.open_date is exist - process it [14:07:31]req_shift_open_date [14:07:31]req_shift_open_date done [14:07:31]produce_requested_data done [14:07:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140185,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:07:31]process_action_free close_receipt [14:07:31]json_value_free [14:07:31]json_value_free done [14:07:31]process_json_proto returns [14:07:31]Send response to host [14:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140185,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:07:31]free response buf [14:07:31]execute_script done [14:07:31]execute_script returns [14:07:31]free content buf [14:07:31]Sock 9.Close socket [14:07:31]Sock 9.Thread stoped [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:47]accept exits with 8 [14:09:47]New connection [14:09:47]New thread 3067592036 created [14:09:47]Thread 3067448676 joined [14:09:47]Waiting for new connection... [14:09:47] Sock 8.Parse request [14:09:47]Sock 8.Check first char [14:09:47]Sock 8.First char is OK [14:09:47]request: POST /json_proto HTTP/1.0 [14:09:47]Method: POST [14:09:47]URL: /json_proto [14:09:47]Method is POST - this is cgi request [14:09:47]url: /json_proto [14:09:47]query_string will be loaded in cgi processing [14:09:47]execute_cgi json_proto POST (null) [14:09:47]execute_cgi path=json_proto method=POST [14:09:47]POST find Content-Length [14:09:47]Host: 172.17.45.67:8080 [14:09:47]Content-Length: 682 [14:09:47]Content-Type: application/json [14:09:47] [14:09:47]POST finish read [14:09:47]Found Content-Length = 682 [14:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:47]execute_script... [14:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:47]POST & json_proto [14:09:47]process_json_proto [14:09:47]json parsed OK: [14:09:47]protocol is kg_v1.0 [14:09:47]action value=close_receipt [14:09:47]process_action close_receipt [14:09:47]cmd_close_receipt [14:09:47]MH_GetDate [14:09:47]Write to MH i2c: F0 00 00 E8 05 DC [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 09 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 09 00 E8 05 00 2B F5 C5 66 5F 7F 2B 66 9F [14:09:47]GetLastDocTimeStamp 1724249248 [14:09:47]current date 1724249387 [14:09:47]FM_GetShiftState [14:09:47]SAM_PROTO_GetShiftState [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 13 01 00 [14:09:47]Write to MH i2c: E2 08 00 E9 05 80 13 01 00 00 00 00 00 6B [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 E9 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [14:09:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_GetShiftState done [14:09:47]FM_GetShiftState done [14:09:47]opened in 1724200467 [14:09:47]opened+sec_in_day 1724286867 [14:09:47]quantity*price = 110039 [14:09:47]sum+1 = 110040 [14:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 203 21.08.2024 14:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140186 ФПД: 155901463347131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140186&fm=155901463347131&tin=02508201610067®Number=0000000000092569&sum=110000 [14:09:48]StoreToDocumentArchive [14:09:48]shift 454 fd 140186 [14:09:48]save to /storage/0454/doc_00140186 [14:09:48]save last doc name /storage/0454/doc_00140186 to /storage/kkm_last_doc_name [14:09:48]save OK [14:09:48]Clear old archive folders... [14:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:48]tlvbuf is 01CA8880 [14:09:48]SAM_PROTO_ClearQueue [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 09 00 00 [14:09:48]Write to MH i2c: E2 08 00 F6 05 80 09 00 00 00 00 00 00 6D [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_ClearQueue done [14:09:48]KKMCreateOFDPacket [14:09:48]OFDProtocolAddRootSTLVToBuf [14:09:48]FM_MakeSignedData [14:09:48]FM_MakeSignedData [14:09:48]SAM_PROTO_SignData [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 01 02 [14:09:48]Write to MH i2c: E2 08 00 F7 05 80 0D 01 02 00 00 00 00 75 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]wFMCommunicate request_size=255 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2B F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 23 02 00 35 04 06 00 8D [14:09:48]Write to MH i2c: E2 02 01 F8 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 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2B F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 23 02 00 35 04 06 00 8D 00 00 D2 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]wFMCommunicate request_size=10 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 02 02 05 CA A3 57 BF BB [14:09:48]Write to MH i2c: E2 0D 00 F9 05 80 0D 02 02 05 00 CA A3 57 BF BB 00 00 C0 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 03 02 [14:09:48]Write to MH i2c: E2 08 00 FA 05 80 0D 03 02 00 00 00 00 7A [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0B 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0B 00 FA 05 00 90 E7 9C ED 13 B1 13 89 90 00 DB [14:09:48]RAPDU: 90 E7 9C ED 13 B1 13 89 90 00 [14:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_SignData done [14:09:48]FM_MakeSignedData done [14:09:48]CreateOFDProtocolMessage [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 11 00 00 [14:09:48]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [14:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:09:48]wFMCommunicate OK [14:09:48]CreateOFDProtocolMessage done [14:09:48]OFDSenderStorePacket 140186 [14:09:48]StoreOFDPacket docnum=140186 [14:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 BF 07 01 32 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2B F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 23 02 00 35 04 06 00 8D CA A3 57 BF BB 90 E7 9C ED 13 B1 13 89 [14:09:48]CheckFolder [14:09:48]dirname=/storage/ofd_packets [14:09:48]CheckFolder done [14:09:48]ProducePacketName [14:09:48]name=ofd_packets/00140186 [14:09:48]NVStorageSaveData ofd_packets/00140186 [14:09:48]File name is /storage/ofd_packets/00140186 [14:09:48]Write 301 bytes [14:09:48]NVStorageSaveData done [14:09:48]OFDSenderStorePacket done [14:09:48]KKMCreateOFDPacket done [14:09:48]NVStorageSaveData kkm_last_timestamp [14:09:48]File name is /storage/kkm_last_timestamp [14:09:48]Write 4 bytes [14:09:48]NVStorageSaveData done [14:09:48]ExternCall_PrintAddStr [14:09:48]wPrintStart [14:09:48]Write to MH i2c: 01 00 00 FC 05 01 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: 01 07 00 FC 05 00 00 00 00 00 FF 0F 16 [14:09:48]RasterBufferAndPrint [14:09:48]line Счет N : (1)594041 [14:09:48]line ИНН: 02508201610067 [14:09:48]line Контрольно-Кассовый Чек [14:09:48]line ПРОДАЖА [14:09:48]line ТРК (МРК, ГНК) : 52 [14:09:48]line Товар: 2710124130 [14:09:48]line Аи-92-К-5 [14:09:48]line 16.230 * 67.80 [14:09:48]line = 1100.39 [14:09:48]line НДС 12% НСП 1% [14:09:48]line > о реализуемом товаре [14:09:48]line ОКРУГЛЕНИЕ: -0.39 [14:09:48]line ИТОГО: 1100.00 [14:09:48]line Внесено: 1100.00 [14:09:48]line СДАЧА: 0.00 [14:09:48]line НСП 1% : 9.74 [14:09:48]line НДС 12% : 116.86 [14:09:48]line Наличными: 1100.00 [14:09:48]line Безнал.: 0.00 [14:09:48]line Место: АЗС № 136 "Партнер Нефть" [14:09:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:09:48]line СНО: Общий режим [14:09:48]line Чек 203 21.08.2024 14:09 [14:09:48]line Смена: 454 ФФД: 1.0 [14:09:48]line ЗНМ: 0300000067 [14:09:48]line РНМ: 0000000000092569 [14:09:48]line Версия ККМ: 001 [14:09:48]line ФМ: 0000000000871776 [14:09:48]line ФД: 140186 [14:09:48]line ФПД: 155901463347131 [14:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140186&fm=155901463347131&tin=02508201610067®Number=0000000000092569&sum=110000 [14:09:48]written 0, free lines is 4095 [14:09:48]OFD Sender: Processing packet 140186 [packets to send 137, broken 136] [14:09:48]ProducePacketName [14:09:48]name=ofd_packets/00140186 [14:09:48]OFD Sender: To server: pG, [14:09:48]CommunicateWithHost lk.salyk.kg:30040 [14:09:48]ConnectInit lk.salyk.kg [14:09:49]Write to MH i2c: 01 00 00 27 06 2D [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 07 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 CF 0C 0F [14:09:49]RasterBufferAndPrint [14:09:49]line [14:09:49]line [14:09:49]line [14:09:49]line [14:09:49]line [14:09:49]written 0, free lines is 3283 [14:09:49]MH_Cut [14:09:49]Write to MH i2c: D1 01 00 2E 06 01 06 [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: D1 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: D1 01 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: D1 01 00 2E 06 00 05 [14:09:49]Write to MH i2c: 01 00 00 2F 06 35 [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:50]*** Cut start [14:09:50]*** Partial cut [14:09:50]*** CUTSNS_PIN = 1 [14:09:50]*** CUTSNS_PIN = 0 [14:09:50]*** Brake cut motor [14:09:50]Read from MH i2c: 01 [14:09:50]MH_I2C_Read... [14:09:50]*** Stop cut motor [14:09:50]*** Cut end [14:09:50]Read from MH i2c: 01 07 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [14:09:50]process_action close_receipt done [14:09:50]requested_data is exist [14:09:50]produce_requested_data [14:09:50]requested_item fm.sn is exist - process it [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 11 00 00 [14:09:50]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [14:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:09:50]wFMCommunicate OK [14:09:50]requested_item fd.num is exist - process it [14:09:50]SAM_PROTO_GetFieldsCounters [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 13 00 00 [14:09:50]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 62 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 62 00 31 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [14:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9A 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_GetFieldsCounters done [14:09:50]requested_item shift.num is exist - process it [14:09:50]requested_item shift.opened is exist - process it [14:09:50]req_shift_opened [14:09:50]FM_GetShiftState [14:09:50]SAM_PROTO_GetShiftState [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 13 01 00 [14:09:50]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0E 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 35 [14:09:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_GetShiftState done [14:09:50]FM_GetShiftState done [14:09:50]req_shift_opened done [14:09:50]requested_item shift.open_date is exist - process it [14:09:50]req_shift_open_date [14:09:50]req_shift_open_date done [14:09:50]produce_requested_data done [14:09:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140186,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:09:50]process_action_free close_receipt [14:09:50]json_value_free [14:09:50]json_value_free done [14:09:50]process_json_proto returns [14:09:50]Send response to host [14:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140186,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:09:50]free response buf [14:09:50]execute_script done [14:09:50]execute_script returns [14:09:50]free content buf [14:09:50]Sock 8.Close socket [14:09:50]Sock 8.Thread stoped [14:09:55]accept exits with 9 [14:09:55]New connection [14:09:55]New thread 3067448676 created [14:09:55]Thread 3067592036 joined [14:09:55]Waiting for new connection... [14:09:55] Sock 9.Parse request [14:09:55]Sock 9.Check first char [14:09:55]Sock 9.First char is OK [14:09:55]request: POST /json_proto HTTP/1.0 [14:09:55]Method: POST [14:09:55]URL: /json_proto [14:09:55]Method is POST - this is cgi request [14:09:55]url: /json_proto [14:09:55]query_string will be loaded in cgi processing [14:09:55]execute_cgi json_proto POST (null) [14:09:55]execute_cgi path=json_proto method=POST [14:09:55]POST find Content-Length [14:09:55]Host: 172.17.45.67:8080 [14:09:55]Content-Length: 677 [14:09:55]Content-Type: application/json [14:09:55] [14:09:55]POST finish read [14:09:55]Found Content-Length = 677 [14:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]execute_script... [14:09: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)594042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]POST & json_proto [14:09:55]process_json_proto [14:09:55]json parsed OK: [14:09:55]protocol is kg_v1.0 [14:09:55]action value=close_receipt [14:09:55]process_action close_receipt [14:09:55]cmd_close_receipt [14:09:55]MH_GetDate [14:09:55]Write to MH i2c: F0 00 00 33 06 28 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 33 06 00 33 F5 C5 66 5F 7F 2B 66 F3 [14:09:55]GetLastDocTimeStamp 1724249387 [14:09:55]current date 1724249395 [14:09:55]FM_GetShiftState [14:09:55]SAM_PROTO_GetShiftState [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 13 01 00 [14:09:55]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 37 [14:09:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:09:55]wFMCommunicate OK [14:09:55]SAM_PROTO_GetShiftState done [14:09:55]FM_GetShiftState done [14:09:55]opened in 1724200467 [14:09:55]opened+sec_in_day 1724286867 [14:09:55]quantity*price = 50010 [14:09:55]sum+1 = 50012 [14:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 204 21.08.2024 14:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140187 ФПД: 249570363140982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140187&fm=249570363140982&tin=02508201610067®Number=0000000000092569&sum=50000 [14:09:56]StoreToDocumentArchive [14:09:56]shift 454 fd 140187 [14:09:56]save to /storage/0454/doc_00140187 [14:09:56]save last doc name /storage/0454/doc_00140187 to /storage/kkm_last_doc_name [14:09:56]save OK [14:09:56]Clear old archive folders... [14:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:56]tlvbuf is 01CA15E0 [14:09:56]SAM_PROTO_ClearQueue [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 09 00 00 [14:09:56]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]SAM_PROTO_ClearQueue done [14:09:56]KKMCreateOFDPacket [14:09:56]OFDProtocolAddRootSTLVToBuf [14:09:56]FM_MakeSignedData [14:09:56]FM_MakeSignedData [14:09:56]SAM_PROTO_SignData [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 0D 01 02 [14:09:56]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]wFMCommunicate request_size=255 [14:09:56]MH_SAM_APDU [14:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 33 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 23 02 00 35 04 06 00 E2 [14:09:56]Write to MH i2c: E2 02 01 43 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 33 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 23 02 00 35 04 06 00 E2 00 00 BA [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]wFMCommunicate request_size=10 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 0D 02 02 05 FB A0 D7 6B 76 [14:09:56]Write to MH i2c: E2 0D 00 44 06 80 0D 02 02 05 00 FB A0 D7 6B 76 00 00 21 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [14:09:56]RAPDU: 90 00 [14:09:56]wFMCommunicate OK [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 0D 03 02 [14:09:56]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 0B 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 0B 00 45 06 00 76 BB F7 D9 AB 61 3A 45 90 00 53 [14:09:56]RAPDU: 76 BB F7 D9 AB 61 3A 45 90 00 [14:09:56]wFMCommunicate OK [14:09:56]SAM_PROTO_SignData done [14:09:56]FM_MakeSignedData done [14:09:56]CreateOFDProtocolMessage [14:09:56]wFMCommunicate request_size=4 [14:09:56]MH_SAM_APDU [14:09:56]CAPDU: 80 11 00 00 [14:09:56]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:56]Read from MH i2c: E2 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 17 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [14:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:09:56]wFMCommunicate OK [14:09:56]CreateOFDProtocolMessage done [14:09:56]OFDSenderStorePacket 140187 [14:09:56]StoreOFDPacket docnum=140187 [14:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 FB 07 01 CA E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 33 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 23 02 00 35 04 06 00 E2 FB A0 D7 6B 76 76 BB F7 D9 AB 61 3A 45 [14:09:56]CheckFolder [14:09:56]dirname=/storage/ofd_packets [14:09:56]CheckFolder done [14:09:56]ProducePacketName [14:09:56]name=ofd_packets/00140187 [14:09:56]NVStorageSaveData ofd_packets/00140187 [14:09:56]File name is /storage/ofd_packets/00140187 [14:09:56]Write 301 bytes [14:09:56]NVStorageSaveData done [14:09:56]OFDSenderStorePacket done [14:09:56]KKMCreateOFDPacket done [14:09:56]NVStorageSaveData kkm_last_timestamp [14:09:56]File name is /storage/kkm_last_timestamp [14:09:56]Write 4 bytes [14:09:56]NVStorageSaveData done [14:09:56]ExternCall_PrintAddStr [14:09:56]wPrintStart [14:09:56]Write to MH i2c: 01 00 00 47 06 4D [14:09:56]Write i2c OK [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 07 00 [14:09:56]MH_I2C_Read... [14:09:56]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [14:09:56]RasterBufferAndPrint [14:09:56]line Счет N : (1)594042 [14:09:56]line ИНН: 02508201610067 [14:09:56]line Контрольно-Кассовый Чек [14:09:56]line ПРОДАЖА [14:09:56]line ТРК (МРК, ГНК) : 41 [14:09:56]line Товар: 2710124500 [14:09:56]line Аи-95-К-5 [14:09:56]line 6.740 * 74.20 [14:09:56]line = 500.11 [14:09:56]line НДС 12% НСП 1% [14:09:56]line > о реализуемом товаре [14:09:56]line ОКРУГЛЕНИЕ: -0.11 [14:09:56]line ИТОГО: 500.00 [14:09:56]line Внесено: 500.00 [14:09:56]line СДАЧА: 0.00 [14:09:56]line НСП 1% : 4.43 [14:09:56]line НДС 12% : 53.11 [14:09:56]line Наличными: 500.00 [14:09:56]line Безнал.: 0.00 [14:09:56]line Место: АЗС № 136 "Партнер Нефть" [14:09:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:09:56]line СНО: Общий режим [14:09:56]line Чек 204 21.08.2024 14:09 [14:09:56]line Смена: 454 ФФД: 1.0 [14:09:56]line ЗНМ: 0300000067 [14:09:56]line РНМ: 0000000000092569 [14:09:56]line Версия ККМ: 001 [14:09:56]line ФМ: 0000000000871776 [14:09:56]line ФД: 140187 [14:09:56]line ФПД: 249570363140982 [14:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T140955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140187&fm=249570363140982&tin=02508201610067®Number=0000000000092569&sum=50000 [14:09:56]written 0, free lines is 4095 [14:09:57]Write to MH i2c: 01 00 00 72 06 78 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 CD 0C 58 [14:09:57]RasterBufferAndPrint [14:09:57]line [14:09:57]line [14:09:57]line [14:09:57]line [14:09:57]line [14:09:57]written 0, free lines is 3283 [14:09:57]MH_Cut [14:09:57]Write to MH i2c: D1 01 00 79 06 01 51 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: D1 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: D1 01 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: D1 01 00 79 06 00 50 [14:09:57]Write to MH i2c: 01 00 00 7A 06 80 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** Cut start [14:09:57]*** Partial cut [14:09:57]*** CUTSNS_PIN = 1 [14:09:58]*** CUTSNS_PIN = 0 [14:09:58]*** Brake cut motor [14:09:58]Read from MH i2c: 01 [14:09:58]MH_I2C_Read... [14:09:58]*** Stop cut motor [14:09:58]*** Cut end [14:09:58]Read from MH i2c: 01 07 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [14:09:58]process_action close_receipt done [14:09:58]requested_data is exist [14:09:58]produce_requested_data [14:09:58]requested_item fm.sn is exist - process it [14:09:58]wFMCommunicate request_size=4 [14:09:58]MH_SAM_APDU [14:09:58]CAPDU: 80 11 00 00 [14:09:58]Write to MH i2c: E2 08 00 7B 06 80 11 00 00 00 00 00 00 FB [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 17 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 17 00 7B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [14:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:09:58]wFMCommunicate OK [14:09:58]requested_item fd.num is exist - process it [14:09:58]SAM_PROTO_GetFieldsCounters [14:09:58]wFMCommunicate request_size=4 [14:09:58]MH_SAM_APDU [14:09:58]CAPDU: 80 13 00 00 [14:09:58]Write to MH i2c: E2 08 00 7C 06 80 13 00 00 00 00 00 00 FE [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 62 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 62 00 7C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [14:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9B 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:58]wFMCommunicate OK [14:09:58]SAM_PROTO_GetFieldsCounters done [14:09:58]requested_item shift.num is exist - process it [14:09:58]requested_item shift.opened is exist - process it [14:09:58]req_shift_opened [14:09:58]FM_GetShiftState [14:09:58]SAM_PROTO_GetShiftState [14:09:58]wFMCommunicate request_size=4 [14:09:58]MH_SAM_APDU [14:09:58]CAPDU: 80 13 01 00 [14:09:58]Write to MH i2c: E2 08 00 7D 06 80 13 01 00 00 00 00 00 00 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:58]Read from MH i2c: E2 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 0E 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: E2 0E 00 7D 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 80 [14:09:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:09:58]wFMCommunicate OK [14:09:58]SAM_PROTO_GetShiftState done [14:09:58]FM_GetShiftState done [14:09:58]req_shift_opened done [14:09:58]requested_item shift.open_date is exist - process it [14:09:58]req_shift_open_date [14:09:58]req_shift_open_date done [14:09:58]produce_requested_data done [14:09:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140187,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:09:58]process_action_free close_receipt [14:09:58]json_value_free [14:09:58]json_value_free done [14:09:58]process_json_proto returns [14:09:58]Send response to host [14:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140187,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:09:58]free response buf [14:09:58]execute_script done [14:09:58]execute_script returns [14:09:58]free content buf [14:09:58]Sock 9.Close socket [14:09:58]Sock 9.Thread stoped [14:11:58]ConnectInit Can't connect to host [14:11:58]CommunicateWithHost connect error [14:11:58]CommunicateWithHost err = -1 [14:11:58]OFD Sender: Server communicate error [14:11:58]OFD Sender: Processing packet 140186 [packets to send 138, broken 136] [14:11:58]ProducePacketName [14:11:58]name=ofd_packets/00140186 [14:11:58]OFD Sender: To server: pG, [14:11:58]CommunicateWithHost lk.salyk.kg:30040 [14:11:58]ConnectInit lk.salyk.kg [14:11:58]Connected sock=9 [14: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 37 36 0F 01 00 00 F6 BF 07 01 32 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2B F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9A 23 02 00 35 04 06 00 8D CA A3 57 BF BB 90 E7 9C ED 13 B1 13 89 [14:11: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 37 36 4F 00 00 00 D7 6D 47 00 93 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 37 36 10 04 04 00 9A 23 02 00 F4 03 04 00 3E 9C C5 66 B6 04 01 00 00 E8 57 7B 33 FD 78 7B 5F [14:11:59]CommunicateWithHost err = 0 [14:11:59]CheckOFDResponse [14:11:59]1017 (14) - 77093643461234 [14:11:59]1041 (16) - 0000000000871776 [14:11:59]1040 (4) - 140186 [14:11:59]1012 (4) - 21.08.2024 07:50 [14:11:59]1206 (1) - 0 [14:11:59]OFD Sender: Remove packet 140186 [14:11:59]ProducePacketName [14:11:59]name=ofd_packets/00140186 [14:11:59]NVStorageDeleteData [14:11:59]OFD Sender: Processing packet 140187 [packets to send 137, broken 136] [14:11:59]ProducePacketName [14:11:59]name=ofd_packets/00140187 [14:11:59]OFD Sender: To server: pG, [14:11:59]CommunicateWithHost lk.salyk.kg:30040 [14:11:59]ConnectInit lk.salyk.kg [14:11:59]Connected sock=9 [14:11: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 37 36 0F 01 00 00 63 FB 07 01 CA E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 33 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9B 23 02 00 35 04 06 00 E2 FB A0 D7 6B 76 76 BB F7 D9 AB 61 3A 45 [14:12: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 37 36 4F 00 00 00 4F C6 47 00 9B 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 37 36 10 04 04 00 9B 23 02 00 F4 03 04 00 3F 9C C5 66 B6 04 01 00 00 34 AA 8A 50 F4 40 FF 90 [14:12:00]CommunicateWithHost err = 0 [14:12:00]CheckOFDResponse [14:12:00]1017 (14) - 77093643461234 [14:12:00]1041 (16) - 0000000000871776 [14:12:00]1040 (4) - 140187 [14:12:00]1012 (4) - 21.08.2024 07:50 [14:12:00]1206 (1) - 0 [14:12:00]OFD Sender: Remove packet 140187 [14:12:00]ProducePacketName [14:12:00]name=ofd_packets/00140187 [14:12:00]NVStorageDeleteData [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:05]accept exits with 8 [14:13:05]New connection [14:13:05]New thread 3067592036 created [14:13:05]Thread 3067448676 joined [14:13:05]Waiting for new connection... [14:13:05] Sock 8.Parse request [14:13:05]Sock 8.Check first char [14:13:05]Sock 8.First char is OK [14:13:05]request: POST /json_proto HTTP/1.0 [14:13:05]Method: POST [14:13:05]URL: /json_proto [14:13:05]Method is POST - this is cgi request [14:13:05]url: /json_proto [14:13:05]query_string will be loaded in cgi processing [14:13:05]execute_cgi json_proto POST (null) [14:13:05]execute_cgi path=json_proto method=POST [14:13:05]POST find Content-Length [14:13:05]Host: 172.17.45.67:8080 [14:13:05]Content-Length: 658 [14:13:05]Content-Type: application/json [14:13:05] [14:13:05]POST finish read [14:13:05]Found Content-Length = 658 [14:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:05]execute_script... [14:13: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)594044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:05]POST & json_proto [14:13:05]process_json_proto [14:13:05]json parsed OK: [14:13:05]protocol is kg_v1.0 [14:13:05]action value=close_receipt [14:13:05]process_action close_receipt [14:13:05]cmd_close_receipt [14:13:05]MH_GetDate [14:13:05]Write to MH i2c: F0 00 00 7E 06 73 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: F0 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: F0 09 00 [14:13:05]MH_I2C_Read... [14:13:05]Read from MH i2c: F0 09 00 7E 06 00 F2 F5 C5 66 5F 7F 2B 66 FD [14:13:05]GetLastDocTimeStamp 1724249395 [14:13:05]current date 1724249586 [14:13:05]FM_GetShiftState [14:13:05]SAM_PROTO_GetShiftState [14:13:05]wFMCommunicate request_size=4 [14:13:05]MH_SAM_APDU [14:13:05]CAPDU: 80 13 01 00 [14:13:05]Write to MH i2c: E2 08 00 7F 06 80 13 01 00 00 00 00 00 02 [14:13:05]Write i2c OK [14:13:05]MH_I2C_Read... [14:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:06]Read from MH i2c: E2 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0E 00 [14:13:06]MH_I2C_Read... [14:13:06]Read from MH i2c: E2 0E 00 7F 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 82 [14:13:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:13:06]wFMCommunicate OK [14:13:06]SAM_PROTO_GetShiftState done [14:13:06]FM_GetShiftState done [14:13:06]opened in 1724200467 [14:13:06]opened+sec_in_day 1724286867 [14:13:06]quantity*price = 50017 [14:13:06]sum+1 = 50019 [14:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 205 21.08.2024 14:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140188 ФПД: 217706078896330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141306&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140188&fm=217706078896330&tin=02508201610067®Number=0000000000092569&sum=50000 [14:13:07]StoreToDocumentArchive [14:13:07]shift 454 fd 140188 [14:13:07]save to /storage/0454/doc_00140188 [14:13:07]save last doc name /storage/0454/doc_00140188 to /storage/kkm_last_doc_name [14:13:07]save OK [14:13:07]Clear old archive folders... [14:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:13:07]tlvbuf is 01C4E930 [14:13:07]SAM_PROTO_ClearQueue [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 09 00 00 [14:13:07]Write to MH i2c: E2 08 00 8C 06 80 09 00 00 00 00 00 00 04 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [14:13:07]RAPDU: 90 00 [14:13:07]wFMCommunicate OK [14:13:07]SAM_PROTO_ClearQueue done [14:13:07]KKMCreateOFDPacket [14:13:07]OFDProtocolAddRootSTLVToBuf [14:13:07]FM_MakeSignedData [14:13:07]FM_MakeSignedData [14:13:07]SAM_PROTO_SignData [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 0D 01 02 [14:13:07]Write to MH i2c: E2 08 00 8D 06 80 0D 01 02 00 00 00 00 0C [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [14:13:07]RAPDU: 90 00 [14:13:07]wFMCommunicate OK [14:13:07]wFMCommunicate request_size=253 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F2 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 23 02 00 35 04 06 00 C6 00 A5 7F 80 CA [14:13:07]Write to MH i2c: E2 00 01 8E 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F2 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 23 02 00 35 04 06 00 C6 00 A5 7F 80 CA 00 00 C0 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [14:13:07]RAPDU: 90 00 [14:13:07]wFMCommunicate OK [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 0D 03 02 [14:13:07]Write to MH i2c: E2 08 00 8F 06 80 0D 03 02 00 00 00 00 10 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 0B 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 0B 00 8F 06 00 98 59 01 81 54 11 F9 07 90 00 E9 [14:13:07]RAPDU: 98 59 01 81 54 11 F9 07 90 00 [14:13:07]wFMCommunicate OK [14:13:07]SAM_PROTO_SignData done [14:13:07]FM_MakeSignedData done [14:13:07]CreateOFDProtocolMessage [14:13:07]wFMCommunicate request_size=4 [14:13:07]MH_SAM_APDU [14:13:07]CAPDU: 80 11 00 00 [14:13:07]Write to MH i2c: E2 08 00 90 06 80 11 00 00 00 00 00 00 10 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:07]Read from MH i2c: E2 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 17 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: E2 17 00 90 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [14:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:13:07]wFMCommunicate OK [14:13:07]CreateOFDProtocolMessage done [14:13:07]OFDSenderStorePacket 140188 [14:13:07]StoreOFDPacket docnum=140188 [14:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 8B 33 00 01 9D FA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F2 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 23 02 00 35 04 06 00 C6 00 A5 7F 80 CA 98 59 01 81 54 11 F9 07 [14:13:07]CheckFolder [14:13:07]dirname=/storage/ofd_packets [14:13:07]CheckFolder done [14:13:07]ProducePacketName [14:13:07]name=ofd_packets/00140188 [14:13:07]NVStorageSaveData ofd_packets/00140188 [14:13:07]File name is /storage/ofd_packets/00140188 [14:13:07]Write 294 bytes [14:13:07]NVStorageSaveData done [14:13:07]OFDSenderStorePacket done [14:13:07]KKMCreateOFDPacket done [14:13:07]NVStorageSaveData kkm_last_timestamp [14:13:07]File name is /storage/kkm_last_timestamp [14:13:07]Write 4 bytes [14:13:07]NVStorageSaveData done [14:13:07]ExternCall_PrintAddStr [14:13:07]wPrintStart [14:13:07]Write to MH i2c: 01 00 00 91 06 97 [14:13:07]Write i2c OK [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: 01 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: 01 07 00 [14:13:07]MH_I2C_Read... [14:13:07]Read from MH i2c: 01 07 00 91 06 00 00 00 00 00 FF 0F AC [14:13:07]RasterBufferAndPrint [14:13:07]line Счет N : (1)594044 [14:13:07]line ИНН: 02508201610067 [14:13:07]line Контрольно-Кассовый Чек [14:13:07]line ПРОДАЖА [14:13:07]line ТРК (МРК, ГНК) : 33 [14:13:07]line Товар: 2710124130 [14:13:07]line SU-92 [14:13:07]line 7.270 * 68.80 [14:13:07]line = 500.18 [14:13:07]line НДС 12% НСП 1% [14:13:07]line > о реализуемом товаре [14:13:07]line ОКРУГЛЕНИЕ: -0.18 [14:13:07]line ИТОГО: 500.00 [14:13:07]line Внесено: 500.00 [14:13:07]line СДАЧА: 0.00 [14:13:07]line НСП 1% : 4.43 [14:13:07]line НДС 12% : 53.12 [14:13:07]line Наличными: 500.00 [14:13:07]line Безнал.: 0.00 [14:13:07]line Место: АЗС № 136 "Партнер Нефть" [14:13:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:13:07]line СНО: Общий режим [14:13:07]line Чек 205 21.08.2024 14:13 [14:13:07]line Смена: 454 ФФД: 1.0 [14:13:07]line ЗНМ: 0300000067 [14:13:07]line РНМ: 0000000000092569 [14:13:07]line Версия ККМ: 001 [14:13:07]line ФМ: 0000000000871776 [14:13:07]line ФД: 140188 [14:13:07]line ФПД: 217706078896330 [14:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141306&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140188&fm=217706078896330&tin=02508201610067®Number=0000000000092569&sum=50000 [14:13:07]OFD Sender: Processing packet 140188 [packets to send 137, broken 136] [14:13:07]ProducePacketName [14:13:07]name=ofd_packets/00140188 [14:13:07]OFD Sender: To server: pG, [14:13:07]CommunicateWithHost lk.salyk.kg:30040 [14:13:07]ConnectInit lk.salyk.kg [14:13:07]written 0, free lines is 4095 [14:13:08]Connected sock=10 [14: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 37 36 08 01 00 00 8B 33 00 01 9D FA 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F2 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 23 02 00 35 04 06 00 C6 00 A5 7F 80 CA 98 59 01 81 54 11 F9 07 [14: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 37 36 4F 00 00 00 0B 0A 47 00 CE 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9C 23 02 00 F4 03 04 00 83 9C C5 66 B6 04 01 00 00 5C E6 D1 6A F2 87 84 1D [14:13:08]CommunicateWithHost err = 0 [14:13:08]CheckOFDResponse [14:13:08]1017 (14) - 77093643461234 [14:13:08]1041 (16) - 0000000000871776 [14:13:08]1040 (4) - 140188 [14:13:08]1012 (4) - 21.08.2024 07:51 [14:13:08]1206 (1) - 0 [14:13:08]OFD Sender: Remove packet 140188 [14:13:08]ProducePacketName [14:13:08]name=ofd_packets/00140188 [14:13:08]NVStorageDeleteData [14:13:08]Write to MH i2c: 01 00 00 BC 06 C2 [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: 01 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: 01 07 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 DD 0C B2 [14:13:08]RasterBufferAndPrint [14:13:08]line [14:13:08]line [14:13:08]line [14:13:08]line [14:13:08]line [14:13:08]written 0, free lines is 3299 [14:13:08]MH_Cut [14:13:08]Write to MH i2c: D1 01 00 C3 06 01 9B [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: D1 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: D1 01 00 [14:13:08]MH_I2C_Read... [14:13:08]Read from MH i2c: D1 01 00 C3 06 00 9A [14:13:08]Write to MH i2c: 01 00 00 C4 06 CA [14:13:08]Write i2c OK [14:13:08]MH_I2C_Read... [14:13:08]OFD Sender: No OFD packet to send [14:13:09]*** Cut start [14:13:09]*** Partial cut [14:13:09]*** CUTSNS_PIN = 1 [14:13:09]*** CUTSNS_PIN = 0 [14:13:09]*** Brake cut motor [14:13:09]Read from MH i2c: 01 [14:13:09]MH_I2C_Read... [14:13:09]*** Stop cut motor [14:13:09]*** Cut end [14:13:09]Read from MH i2c: 01 07 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [14:13:09]process_action close_receipt done [14:13:09]requested_data is exist [14:13:09]produce_requested_data [14:13:09]requested_item fm.sn is exist - process it [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 11 00 00 [14:13:09]Write to MH i2c: E2 08 00 C5 06 80 11 00 00 00 00 00 00 45 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 17 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 17 00 C5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9C [14:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:13:09]wFMCommunicate OK [14:13:09]requested_item fd.num is exist - process it [14:13:09]SAM_PROTO_GetFieldsCounters [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 13 00 00 [14:13:09]Write to MH i2c: E2 08 00 C6 06 80 13 00 00 00 00 00 00 48 [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 62 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 62 00 C6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9C 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:09]wFMCommunicate OK [14:13:09]SAM_PROTO_GetFieldsCounters done [14:13:09]requested_item shift.num is exist - process it [14:13:09]requested_item shift.opened is exist - process it [14:13:09]req_shift_opened [14:13:09]FM_GetShiftState [14:13:09]SAM_PROTO_GetShiftState [14:13:09]wFMCommunicate request_size=4 [14:13:09]MH_SAM_APDU [14:13:09]CAPDU: 80 13 01 00 [14:13:09]Write to MH i2c: E2 08 00 C7 06 80 13 01 00 00 00 00 00 4A [14:13:09]Write i2c OK [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 [14:13:09]MH_I2C_Read... [14:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:09]Read from MH i2c: E2 0E 00 [14:13:09]MH_I2C_Read... [14:13:09]Read from MH i2c: E2 0E 00 C7 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CA [14:13:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:13:09]wFMCommunicate OK [14:13:09]SAM_PROTO_GetShiftState done [14:13:09]FM_GetShiftState done [14:13:09]req_shift_opened done [14:13:09]requested_item shift.open_date is exist - process it [14:13:09]req_shift_open_date [14:13:09]req_shift_open_date done [14:13:09]produce_requested_data done [14:13:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140188,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:13:09]process_action_free close_receipt [14:13:09]json_value_free [14:13:09]json_value_free done [14:13:09]process_json_proto returns [14:13:09]Send response to host [14:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140188,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:13:09]free response buf [14:13:09]execute_script done [14:13:09]execute_script returns [14:13:09]free content buf [14:13:09]Sock 8.Close socket [14:13:09]Sock 8.Thread stoped [14:13:10]accept exits with 9 [14:13:10]New connection [14:13:10]New thread 3067448676 created [14:13:10]Thread 3067592036 joined [14:13:10]Waiting for new connection... [14:13:10] Sock 9.Parse request [14:13:10]Sock 9.Check first char [14:13:10]Sock 9.First char is OK [14:13:10]request: POST /json_proto HTTP/1.0 [14:13:10]Method: POST [14:13:10]URL: /json_proto [14:13:10]Method is POST - this is cgi request [14:13:10]url: /json_proto [14:13:10]query_string will be loaded in cgi processing [14:13:10]execute_cgi json_proto POST (null) [14:13:10]execute_cgi path=json_proto method=POST [14:13:10]POST find Content-Length [14:13:10]Host: 172.17.45.67:8080 [14:13:10]Content-Length: 677 [14:13:10]Content-Type: application/json [14:13:10] [14:13:10]POST finish read [14:13:10]Found Content-Length = 677 [14:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:10]execute_script... [14: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)594043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:10]POST & json_proto [14:13:10]process_json_proto [14:13:10]json parsed OK: [14:13:10]protocol is kg_v1.0 [14:13:10]action value=close_receipt [14:13:10]process_action close_receipt [14:13:10]cmd_close_receipt [14:13:10]MH_GetDate [14:13:10]Write to MH i2c: F0 00 00 C8 06 BD [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 09 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: F0 09 00 C8 06 00 F6 F5 C5 66 5F 7F 2B 66 4B [14:13:10]GetLastDocTimeStamp 1724249586 [14:13:10]current date 1724249590 [14:13:10]FM_GetShiftState [14:13:10]SAM_PROTO_GetShiftState [14:13:10]wFMCommunicate request_size=4 [14:13:10]MH_SAM_APDU [14:13:10]CAPDU: 80 13 01 00 [14:13:10]Write to MH i2c: E2 08 00 C9 06 80 13 01 00 00 00 00 00 4C [14:13:10]Write i2c OK [14:13:10]MH_I2C_Read... [14:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:10]Read from MH i2c: E2 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 0E 00 [14:13:10]MH_I2C_Read... [14:13:10]Read from MH i2c: E2 0E 00 C9 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CC [14:13:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:13:10]wFMCommunicate OK [14:13:10]SAM_PROTO_GetShiftState done [14:13:10]FM_GetShiftState done [14:13:10]opened in 1724200467 [14:13:10]opened+sec_in_day 1724286867 [14:13:10]quantity*price = 50036 [14:13:10]sum+1 = 50037 [14:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 206 21.08.2024 14:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140189 ФПД: 153275031972530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140189&fm=153275031972530&tin=02508201610067®Number=0000000000092569&sum=50000 [14:13:11]StoreToDocumentArchive [14:13:11]shift 454 fd 140189 [14:13:11]save to /storage/0454/doc_00140189 [14:13:11]save last doc name /storage/0454/doc_00140189 to /storage/kkm_last_doc_name [14:13:11]save OK [14:13:11]Clear old archive folders... [14:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:11]tlvbuf is 01C99AF0 [14:13:11]SAM_PROTO_ClearQueue [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 09 00 00 [14:13:11]Write to MH i2c: E2 08 00 D6 06 80 09 00 00 00 00 00 00 4E [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [14:13:11]RAPDU: 90 00 [14:13:11]wFMCommunicate OK [14:13:11]SAM_PROTO_ClearQueue done [14:13:11]KKMCreateOFDPacket [14:13:11]OFDProtocolAddRootSTLVToBuf [14:13:11]FM_MakeSignedData [14:13:11]FM_MakeSignedData [14:13:11]SAM_PROTO_SignData [14:13:11]wFMCommunicate request_size=4 [14:13:11]MH_SAM_APDU [14:13:11]CAPDU: 80 0D 01 02 [14:13:11]Write to MH i2c: E2 08 00 D7 06 80 0D 01 02 00 00 00 00 56 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:11]Read from MH i2c: E2 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 [14:13:11]MH_I2C_Read... [14:13:11]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [14:13:11]RAPDU: 90 00 [14:13:11]wFMCommunicate OK [14:13:11]wFMCommunicate request_size=255 [14:13:11]MH_SAM_APDU [14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 23 02 00 35 04 06 00 8B [14:13:11]Write to MH i2c: E2 02 01 D8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 23 02 00 35 04 06 00 8B 00 00 D8 [14:13:11]Write i2c OK [14:13:11]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [14:13:12]RAPDU: 90 00 [14:13:12]wFMCommunicate OK [14:13:12]wFMCommunicate request_size=10 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 0D 02 02 05 67 1F D5 6A B2 [14:13:12]Write to MH i2c: E2 0D 00 D9 06 80 0D 02 02 05 00 67 1F D5 6A B2 00 00 DA [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [14:13:12]RAPDU: 90 00 [14:13:12]wFMCommunicate OK [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 0D 03 02 [14:13:12]Write to MH i2c: E2 08 00 DA 06 80 0D 03 02 00 00 00 00 5B [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0B 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 0B 00 DA 06 00 5F CC DA EE 9C 11 9E 6C 90 00 06 [14:13:12]RAPDU: 5F CC DA EE 9C 11 9E 6C 90 00 [14:13:12]wFMCommunicate OK [14:13:12]SAM_PROTO_SignData done [14:13:12]FM_MakeSignedData done [14:13:12]CreateOFDProtocolMessage [14:13:12]wFMCommunicate request_size=4 [14:13:12]MH_SAM_APDU [14:13:12]CAPDU: 80 11 00 00 [14:13:12]Write to MH i2c: E2 08 00 DB 06 80 11 00 00 00 00 00 00 5B [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:12]Read from MH i2c: E2 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 17 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: E2 17 00 DB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [14:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:13:12]wFMCommunicate OK [14:13:12]CreateOFDProtocolMessage done [14:13:12]OFDSenderStorePacket 140189 [14:13:12]StoreOFDPacket docnum=140189 [14:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2E 31 07 01 0E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 23 02 00 35 04 06 00 8B 67 1F D5 6A B2 5F CC DA EE 9C 11 9E 6C [14:13:12]CheckFolder [14:13:12]dirname=/storage/ofd_packets [14:13:12]CheckFolder done [14:13:12]ProducePacketName [14:13:12]name=ofd_packets/00140189 [14:13:12]NVStorageSaveData ofd_packets/00140189 [14:13:12]File name is /storage/ofd_packets/00140189 [14:13:12]Write 301 bytes [14:13:12]NVStorageSaveData done [14:13:12]OFDSenderStorePacket done [14:13:12]KKMCreateOFDPacket done [14:13:12]NVStorageSaveData kkm_last_timestamp [14:13:12]File name is /storage/kkm_last_timestamp [14:13:12]Write 4 bytes [14:13:12]NVStorageSaveData done [14:13:12]ExternCall_PrintAddStr [14:13:12]wPrintStart [14:13:12]Write to MH i2c: 01 00 00 DC 06 E2 [14:13:12]Write i2c OK [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 [14:13:12]MH_I2C_Read... [14:13:12]Read from MH i2c: 01 07 00 DC 06 00 00 00 00 00 FF 0F F7 [14:13:12]RasterBufferAndPrint [14:13:12]line Счет N : (1)594043 [14:13:12]line ИНН: 02508201610067 [14:13:12]line Контрольно-Кассовый Чек [14:13:12]line ПРОДАЖА [14:13:12]line ТРК (МРК, ГНК) : 52 [14:13:12]line Товар: 2710124130 [14:13:12]line Аи-92-К-5 [14:13:12]line 7.380 * 67.80 [14:13:12]line = 500.36 [14:13:12]line НДС 12% НСП 1% [14:13:12]line > о реализуемом товаре [14:13:12]line ОКРУГЛЕНИЕ: -0.36 [14:13:12]line ИТОГО: 500.00 [14:13:12]line Внесено: 500.00 [14:13:12]line СДАЧА: 0.00 [14:13:12]line НСП 1% : 4.43 [14:13:12]line НДС 12% : 53.14 [14:13:12]line Наличными: 500.00 [14:13:12]line Безнал.: 0.00 [14:13:12]line Место: АЗС № 136 "Партнер Нефть" [14:13:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:13:12]line СНО: Общий режим [14:13:12]line Чек 206 21.08.2024 14:13 [14:13:12]line Смена: 454 ФФД: 1.0 [14:13:12]line ЗНМ: 0300000067 [14:13:12]line РНМ: 0000000000092569 [14:13:12]line Версия ККМ: 001 [14:13:12]line ФМ: 0000000000871776 [14:13:12]line ФД: 140189 [14:13:12]line ФПД: 153275031972530 [14:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140189&fm=153275031972530&tin=02508201610067®Number=0000000000092569&sum=50000 [14:13:12]OFD Sender: Processing packet 140189 [packets to send 137, broken 136] [14:13:12]ProducePacketName [14:13:12]name=ofd_packets/00140189 [14:13:12]OFD Sender: To server: pG, [14:13:12]CommunicateWithHost lk.salyk.kg:30040 [14:13:12]ConnectInit lk.salyk.kg [14:13:12]written 0, free lines is 4095 [14:13:12]Connected sock=10 [14: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 37 36 0F 01 00 00 2E 31 07 01 0E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 F5 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9D 23 02 00 35 04 06 00 8B 67 1F D5 6A B2 5F CC DA EE 9C 11 9E 6C [14:13: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 37 36 4F 00 00 00 5C 98 47 00 A5 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 37 36 10 04 04 00 9D 23 02 00 F4 03 04 00 88 9C C5 66 B6 04 01 00 00 8C 70 58 A3 6E FC F3 C7 [14:13:13]CommunicateWithHost err = 0 [14:13:13]CheckOFDResponse [14:13:13]1017 (14) - 77093643461234 [14:13:13]1041 (16) - 0000000000871776 [14:13:13]1040 (4) - 140189 [14:13:13]1012 (4) - 21.08.2024 07:51 [14:13:13]1206 (1) - 0 [14:13:13]OFD Sender: Remove packet 140189 [14:13:13]ProducePacketName [14:13:13]name=ofd_packets/00140189 [14:13:13]NVStorageDeleteData [14:13:13]Write to MH i2c: 01 00 00 07 07 0E [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: 01 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: 01 07 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 F7 0C 18 [14:13:13]RasterBufferAndPrint [14:13:13]line [14:13:13]line [14:13:13]line [14:13:13]line [14:13:13]line [14:13:13]written 0, free lines is 3332 [14:13:13]MH_Cut [14:13:13]Write to MH i2c: D1 01 00 0E 07 01 E7 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 01 00 [14:13:13]MH_I2C_Read... [14:13:13]Read from MH i2c: D1 01 00 0E 07 00 E6 [14:13:13]Write to MH i2c: 01 00 00 0F 07 16 [14:13:13]Write i2c OK [14:13:13]MH_I2C_Read... [14:13:13]OFD Sender: No OFD packet to send [14:13:13]*** Cut start [14:13:13]*** Partial cut [14:13:13]*** CUTSNS_PIN = 1 [14:13:13]*** CUTSNS_PIN = 0 [14:13:14]*** Brake cut motor [14:13:14]Read from MH i2c: 01 *** Stop cut motor [14:13:14] [14:13:14]*** Cut end [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: 01 07 00 0F 07 00 00 00 00 00 FF 0F 2B [14:13:14]process_action close_receipt done [14:13:14]requested_data is exist [14:13:14]produce_requested_data [14:13:14]requested_item fm.sn is exist - process it [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 11 00 00 [14:13:14]Write to MH i2c: E2 08 00 10 07 80 11 00 00 00 00 00 00 91 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 17 00 10 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [14:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:13:14]wFMCommunicate OK [14:13:14]requested_item fd.num is exist - process it [14:13:14]SAM_PROTO_GetFieldsCounters [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 13 00 00 [14:13:14]Write to MH i2c: E2 08 00 11 07 80 13 00 00 00 00 00 00 94 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 62 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 62 00 11 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9D 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_GetFieldsCounters done [14:13:14]requested_item shift.num is exist - process it [14:13:14]requested_item shift.opened is exist - process it [14:13:14]req_shift_opened [14:13:14]FM_GetShiftState [14:13:14]SAM_PROTO_GetShiftState [14:13:14]wFMCommunicate request_size=4 [14:13:14]MH_SAM_APDU [14:13:14]CAPDU: 80 13 01 00 [14:13:14]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [14:13:14]Write i2c OK [14:13:14]MH_I2C_Read... [14:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:14]Read from MH i2c: E2 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0E 00 [14:13:14]MH_I2C_Read... [14:13:14]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [14:13:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:13:14]wFMCommunicate OK [14:13:14]SAM_PROTO_GetShiftState done [14:13:14]FM_GetShiftState done [14:13:14]req_shift_opened done [14:13:14]requested_item shift.open_date is exist - process it [14:13:14]req_shift_open_date [14:13:14]req_shift_open_date done [14:13:14]produce_requested_data done [14:13:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140189,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:13:14]process_action_free close_receipt [14:13:14]json_value_free [14:13:14]json_value_free done [14:13:14]process_json_proto returns [14:13:14]Send response to host [14:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140189,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:13:14]free response buf [14:13:14]execute_script done [14:13:14]execute_script returns [14:13:14]free content buf [14:13:14]Sock 9.Close socket [14:13:14]Sock 9.Thread stoped [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:05]accept exits with 8 [14:16:05]New connection [14:16:05]New thread 3067592036 created [14:16:05]Thread 3067448676 joined [14:16:05]Waiting for new connection... [14:16:05] Sock 8.Parse request [14:16:05]Sock 8.Check first char [14:16:05]Sock 8.First char is OK [14:16:05]request: POST /json_proto HTTP/1.0 [14:16:05]Method: POST [14:16:05]URL: /json_proto [14:16:05]Method is POST - this is cgi request [14:16:05]url: /json_proto [14:16:05]query_string will be loaded in cgi processing [14:16:05]execute_cgi json_proto POST (null) [14:16:05]execute_cgi path=json_proto method=POST [14:16:05]POST find Content-Length [14:16:05]Host: 172.17.45.67:8080 [14:16:05]Content-Length: 677 [14:16:05]Content-Type: application/json [14:16:05] [14:16:05]POST finish read [14:16:05]Found Content-Length = 677 [14:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:16:05]execute_script... [14:16: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)594045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:16:05]POST & json_proto [14:16:05]process_json_proto [14:16:05]json parsed OK: [14:16:05]protocol is kg_v1.0 [14:16:05]action value=close_receipt [14:16:05]process_action close_receipt [14:16:05]cmd_close_receipt [14:16:05]MH_GetDate [14:16:05]Write to MH i2c: F0 00 00 13 07 09 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 09 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 09 00 13 07 00 A6 F6 C5 66 5F 7F 2B 66 48 [14:16:05]GetLastDocTimeStamp 1724249591 [14:16:05]current date 1724249766 [14:16:05]FM_GetShiftState [14:16:05]SAM_PROTO_GetShiftState [14:16:05]wFMCommunicate request_size=4 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 13 01 00 [14:16:05]Write to MH i2c: E2 08 00 14 07 80 13 01 00 00 00 00 00 98 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 14 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [14:16:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:16:05]wFMCommunicate OK [14:16:05]SAM_PROTO_GetShiftState done [14:16:05]FM_GetShiftState done [14:16:05]opened in 1724200467 [14:16:05]opened+sec_in_day 1724286867 [14:16:05]quantity*price = 20001 [14:16:05]sum+1 = 20002 [14:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 207 21.08.2024 14:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140190 ФПД: 147671888397853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140190&fm=147671888397853&tin=02508201610067®Number=0000000000092569&sum=20000 [14:16:06]StoreToDocumentArchive [14:16:06]shift 454 fd 140190 [14:16:06]save to /storage/0454/doc_00140190 [14:16:06]save last doc name /storage/0454/doc_00140190 to /storage/kkm_last_doc_name [14:16:06]save OK [14:16:06]Clear old archive folders... [14:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:06]tlvbuf is 01C5FA00 [14:16:06]SAM_PROTO_ClearQueue [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 09 00 00 [14:16:06]Write to MH i2c: E2 08 00 21 07 80 09 00 00 00 00 00 00 9A [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [14:16:06]RAPDU: 90 00 [14:16:06]wFMCommunicate OK [14:16:06]SAM_PROTO_ClearQueue done [14:16:06]KKMCreateOFDPacket [14:16:06]OFDProtocolAddRootSTLVToBuf [14:16:06]FM_MakeSignedData [14:16:06]FM_MakeSignedData [14:16:06]SAM_PROTO_SignData [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 0D 01 02 [14:16:06]Write to MH i2c: E2 08 00 22 07 80 0D 01 02 00 00 00 00 A2 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [14:16:06]RAPDU: 90 00 [14:16:06]wFMCommunicate OK [14:16:06]wFMCommunicate request_size=255 [14:16:06]MH_SAM_APDU [14:16: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 A6 F6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 23 02 00 35 04 06 00 86 [14:16:06]Write to MH i2c: E2 02 01 23 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 A6 F6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 23 02 00 35 04 06 00 86 00 00 D3 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]wFMCommunicate request_size=10 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 02 02 05 4E 8A 73 86 1D [14:16:07]Write to MH i2c: E2 0D 00 24 07 80 0D 02 02 05 00 4E 8A 73 86 1D 00 00 9D [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 03 02 [14:16:07]Write to MH i2c: E2 08 00 25 07 80 0D 03 02 00 00 00 00 A7 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0B 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0B 00 25 07 00 01 76 3B 30 9A 4B AE C7 90 00 E4 [14:16:07]RAPDU: 01 76 3B 30 9A 4B AE C7 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_SignData done [14:16:07]FM_MakeSignedData done [14:16:07]CreateOFDProtocolMessage [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 11 00 00 [14:16:07]Write to MH i2c: E2 08 00 26 07 80 11 00 00 00 00 00 00 A7 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 17 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 17 00 26 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [14:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:16:07]wFMCommunicate OK [14:16:07]CreateOFDProtocolMessage done [14:16:07]OFDSenderStorePacket 140190 [14:16:07]StoreOFDPacket docnum=140190 [14:16:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 83 F0 07 01 03 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 A6 F6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 23 02 00 35 04 06 00 86 4E 8A 73 86 1D 01 76 3B 30 9A 4B AE C7 [14:16:07]CheckFolder [14:16:07]dirname=/storage/ofd_packets [14:16:07]CheckFolder done [14:16:07]ProducePacketName [14:16:07]name=ofd_packets/00140190 [14:16:07]NVStorageSaveData ofd_packets/00140190 [14:16:07]File name is /storage/ofd_packets/00140190 [14:16:07]Write 301 bytes [14:16:07]NVStorageSaveData done [14:16:07]OFDSenderStorePacket done [14:16:07]KKMCreateOFDPacket done [14:16:07]NVStorageSaveData kkm_last_timestamp [14:16:07]File name is /storage/kkm_last_timestamp [14:16:07]Write 4 bytes [14:16:07]NVStorageSaveData done [14:16:07]ExternCall_PrintAddStr [14:16:07]wPrintStart [14:16:07]Write to MH i2c: 01 00 00 27 07 2E [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: 01 07 00 27 07 00 00 00 00 00 FF 0F 43 [14:16:07]RasterBufferAndPrint [14:16:07]line Счет N : (1)594045 [14:16:07]line ИНН: 02508201610067 [14:16:07]line Контрольно-Кассовый Чек [14:16:07]line ПРОДАЖА [14:16:07]line ТРК (МРК, ГНК) : 52 [14:16:07]line Товар: 2710124130 [14:16:07]line Аи-92-К-5 [14:16:07]line 2.950 * 67.80 [14:16:07]line = 200.01 [14:16:07]line НДС 12% НСП 1% [14:16:07]line > о реализуемом товаре [14:16:07]line ОКРУГЛЕНИЕ: -0.01 [14:16:07]line ИТОГО: 200.00 [14:16:07]line Внесено: 200.00 [14:16:07]line СДАЧА: 0.00 [14:16:07]line НСП 1% : 1.77 [14:16:07]line НДС 12% : 21.24 [14:16:07]line Наличными: 200.00 [14:16:07]line Безнал.: 0.00 [14:16:07]line Место: АЗС № 136 "Партнер Нефть" [14:16:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:16:07]line СНО: Общий режим [14:16:07]line Чек 207 21.08.2024 14:16 [14:16:07]line Смена: 454 ФФД: 1.0 [14:16:07]line ЗНМ: 0300000067 [14:16:07]line РНМ: 0000000000092569 [14:16:07]line Версия ККМ: 001 [14:16:07]line ФМ: 0000000000871776 [14:16:07]line ФД: 140190 [14:16:07]line ФПД: 147671888397853 [14:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141606&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140190&fm=147671888397853&tin=02508201610067®Number=0000000000092569&sum=20000 [14:16:07]written 0, free lines is 4095 [14:16:07]OFD Sender: Processing packet 140190 [packets to send 137, broken 136] [14:16:07]ProducePacketName [14:16:07]name=ofd_packets/00140190 [14:16:07]OFD Sender: To server: pG, [14:16:07]CommunicateWithHost lk.salyk.kg:30040 [14:16:07]ConnectInit lk.salyk.kg [14:16:07]Connected sock=10 [14:16: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 37 36 0F 01 00 00 83 F0 07 01 03 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 A6 F6 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9E 23 02 00 35 04 06 00 86 4E 8A 73 86 1D 01 76 3B 30 9A 4B AE C7 [14:16: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 37 36 4F 00 00 00 6B A9 47 00 CC 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 37 36 10 04 04 00 9E 23 02 00 F4 03 04 00 37 9D C5 66 B6 04 01 00 00 CE 06 C7 0F 3D 14 16 C9 [14:16:08]CommunicateWithHost err = 0 [14:16:08]CheckOFDResponse [14:16:08]1017 (14) - 77093643461234 [14:16:08]1041 (16) - 0000000000871776 [14:16:08]1040 (4) - 140190 [14:16:08]1012 (4) - 21.08.2024 07:54 [14:16:08]1206 (1) - 0 [14:16:08]OFD Sender: Remove packet 140190 [14:16:08]ProducePacketName [14:16:08]name=ofd_packets/00140190 [14:16:08]NVStorageDeleteData [14:16:08]Write to MH i2c: 01 00 00 52 07 59 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 E3 0C 4F [14:16:08]RasterBufferAndPrint [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]written 0, free lines is 3305 [14:16:08]MH_Cut [14:16:08]Write to MH i2c: D1 01 00 59 07 01 32 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 01 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 01 00 59 07 00 31 [14:16:08]Write to MH i2c: 01 00 00 5A 07 61 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]OFD Sender: No OFD packet to send [14:16:08]*** Cut start [14:16:08]*** Partial cut [14:16:08]*** CUTSNS_PIN = 1 [14:16:08]*** CUTSNS_PIN = 0 [14:16:09]*** Brake cut motor [14:16:09]Read from MH i2c: 01 [14:16:09]*** Stop cut motor [14:16:09]*** Cut end [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: 01 07 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [14:16:09]process_action close_receipt done [14:16:09]requested_data is exist [14:16:09]produce_requested_data [14:16:09]requested_item fm.sn is exist - process it [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 11 00 00 [14:16:09]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 17 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [14:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:16:09]wFMCommunicate OK [14:16:09]requested_item fd.num is exist - process it [14:16:09]SAM_PROTO_GetFieldsCounters [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 13 00 00 [14:16:09]Write to MH i2c: E2 08 00 5C 07 80 13 00 00 00 00 00 00 DF [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 62 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 62 00 5C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [14:16: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9E 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:09]wFMCommunicate OK [14:16:09]SAM_PROTO_GetFieldsCounters done [14:16:09]requested_item shift.num is exist - process it [14:16:09]requested_item shift.opened is exist - process it [14:16:09]req_shift_opened [14:16:09]FM_GetShiftState [14:16:09]SAM_PROTO_GetShiftState [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 13 01 00 [14:16:09]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 0E 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [14:16:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:16:09]wFMCommunicate OK [14:16:09]SAM_PROTO_GetShiftState done [14:16:09]FM_GetShiftState done [14:16:09]req_shift_opened done [14:16:09]requested_item shift.open_date is exist - process it [14:16:09]req_shift_open_date [14:16:09]req_shift_open_date done [14:16:09]produce_requested_data done [14:16:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140190,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:16:09]process_action_free close_receipt [14:16:09]json_value_free [14:16:09]json_value_free done [14:16:09]process_json_proto returns [14:16:09]Send response to host [14:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140190,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:16:09]free response buf [14:16:09]execute_script done [14:16:09]execute_script returns [14:16:09]free content buf [14:16:09]Sock 8.Close socket [14:16:09]Sock 8.Thread stoped [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [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]accept exits with 9 [14:18:43]New connection [14:18:43]New thread 3067448676 created [14:18:43]Thread 3067592036 joined [14:18:43]Waiting for new connection... [14:18:43] Sock 9.Parse request [14:18:43]Sock 9.Check first char [14:18:43]Sock 9.First char is OK [14:18:43]request: POST /json_proto HTTP/1.0 [14:18:43]Method: POST [14:18:43]URL: /json_proto [14:18:43]Method is POST - this is cgi request [14:18:43]url: /json_proto [14:18:43]query_string will be loaded in cgi processing [14:18:43]execute_cgi json_proto POST (null) [14:18:43]execute_cgi path=json_proto method=POST [14:18:43]POST find Content-Length [14:18:43]Host: 172.17.45.67:8080 [14:18:43]Content-Length: 677 [14:18:43]Content-Type: application/json [14:18:43] [14:18:43]POST finish read [14:18:43]Found Content-Length = 677 [14:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:43]execute_script... [14:18: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)594046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:43]POST & json_proto [14:18:43]process_json_proto [14:18:43]json parsed OK: [14:18:43]protocol is kg_v1.0 [14:18:43]action value=close_receipt [14:18:43]process_action close_receipt [14:18:43]cmd_close_receipt [14:18:43]MH_GetDate [14:18:43]Write to MH i2c: F0 00 00 5E 07 54 [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: F0 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: F0 09 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: F0 09 00 5E 07 00 43 F7 C5 66 5F 7F 2B 66 31 [14:18:43]GetLastDocTimeStamp 1724249766 [14:18:43]current date 1724249923 [14:18:43]FM_GetShiftState [14:18:43]SAM_PROTO_GetShiftState [14:18:43]wFMCommunicate request_size=4 [14:18:43]MH_SAM_APDU [14:18:43]CAPDU: 80 13 01 00 [14:18:43]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [14:18:43]Write i2c OK [14:18:43]MH_I2C_Read... [14:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:43]Read from MH i2c: E2 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: E2 0E 00 [14:18:43]MH_I2C_Read... [14:18:43]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [14:18:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:18:43]wFMCommunicate OK [14:18:43]SAM_PROTO_GetShiftState done [14:18:43]FM_GetShiftState done [14:18:43]opened in 1724200467 [14:18:43]opened+sec_in_day 1724286867 [14:18:43]quantity*price = 50010 [14:18:43]sum+1 = 50012 [14:18:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 208 21.08.2024 14:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140191 ФПД: 134713405903125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141844&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140191&fm=134713405903125&tin=02508201610067®Number=0000000000092569&sum=50000 [14:18:44]StoreToDocumentArchive [14:18:44]shift 454 fd 140191 [14:18:44]save to /storage/0454/doc_00140191 [14:18:44]save last doc name /storage/0454/doc_00140191 to /storage/kkm_last_doc_name [14:18:44]save OK [14:18:44]Clear old archive folders... [14:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:44]tlvbuf is 01C9DDE0 [14:18:44]SAM_PROTO_ClearQueue [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 09 00 00 [14:18:44]Write to MH i2c: E2 08 00 6C 07 80 09 00 00 00 00 00 00 E5 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [14:18:44]RAPDU: 90 00 [14:18:44]wFMCommunicate OK [14:18:44]SAM_PROTO_ClearQueue done [14:18:44]KKMCreateOFDPacket [14:18:44]OFDProtocolAddRootSTLVToBuf [14:18:44]FM_MakeSignedData [14:18:44]FM_MakeSignedData [14:18:44]SAM_PROTO_SignData [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 0D 01 02 [14:18:44]Write to MH i2c: E2 08 00 6D 07 80 0D 01 02 00 00 00 00 ED [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [14:18:44]RAPDU: 90 00 [14:18:44]wFMCommunicate OK [14:18:44]wFMCommunicate request_size=255 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 44 F7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 23 02 00 35 04 06 00 7A [14:18:44]Write to MH i2c: E2 02 01 6E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 44 F7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 23 02 00 35 04 06 00 7A 00 00 99 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [14:18:44]RAPDU: 90 00 [14:18:44]wFMCommunicate OK [14:18:44]wFMCommunicate request_size=10 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 0D 02 02 05 85 68 B4 91 15 [14:18:44]Write to MH i2c: E2 0D 00 6F 07 80 0D 02 02 05 00 85 68 B4 91 15 00 00 41 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [14:18:44]RAPDU: 90 00 [14:18:44]wFMCommunicate OK [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 0D 03 02 [14:18:44]Write to MH i2c: E2 08 00 70 07 80 0D 03 02 00 00 00 00 F2 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0B 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0B 00 70 07 00 EA F6 84 70 DD E6 42 97 90 00 63 [14:18:44]RAPDU: EA F6 84 70 DD E6 42 97 90 00 [14:18:44]wFMCommunicate OK [14:18:44]SAM_PROTO_SignData done [14:18:44]FM_MakeSignedData done [14:18:44]CreateOFDProtocolMessage [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 11 00 00 [14:18:44]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 17 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [14:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:18:44]wFMCommunicate OK [14:18:44]CreateOFDProtocolMessage done [14:18:44]OFDSenderStorePacket 140191 [14:18:44]StoreOFDPacket docnum=140191 [14:18:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DA 55 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 44 F7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 23 02 00 35 04 06 00 7A 85 68 B4 91 15 EA F6 84 70 DD E6 42 97 [14:18:44]CheckFolder [14:18:44]dirname=/storage/ofd_packets [14:18:44]CheckFolder done [14:18:44]ProducePacketName [14:18:44]name=ofd_packets/00140191 [14:18:44]NVStorageSaveData ofd_packets/00140191 [14:18:44]File name is /storage/ofd_packets/00140191 [14:18:44]Write 301 bytes [14:18:44]NVStorageSaveData done [14:18:44]OFDSenderStorePacket done [14:18:44]KKMCreateOFDPacket done [14:18:44]NVStorageSaveData kkm_last_timestamp [14:18:44]File name is /storage/kkm_last_timestamp [14:18:44]Write 4 bytes [14:18:44]NVStorageSaveData done [14:18:44]ExternCall_PrintAddStr [14:18:44]wPrintStart [14:18:44]Write to MH i2c: 01 00 00 72 07 79 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: 01 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: 01 07 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [14:18:44]RasterBufferAndPrint [14:18:44]line Счет N : (1)594046 [14:18:44]line ИНН: 02508201610067 [14:18:44]line Контрольно-Кассовый Чек [14:18:44]line ПРОДАЖА [14:18:44]line ТРК (МРК, ГНК) : 31 [14:18:44]line Товар: 2710124500 [14:18:44]line Аи-95-К-5 [14:18:44]line 6.740 * 74.20 [14:18:44]line = 500.11 [14:18:44]line НДС 12% НСП 1% [14:18:44]line > о реализуемом товаре [14:18:44]line ОКРУГЛЕНИЕ: -0.11 [14:18:44]line ИТОГО: 500.00 [14:18:44]line Внесено: 500.00 [14:18:44]line СДАЧА: 0.00 [14:18:44]line НСП 1% : 4.43 [14:18:44]line НДС 12% : 53.11 [14:18:44]line Наличными: 500.00 [14:18:44]line Безнал.: 0.00 [14:18:44]line Место: АЗС № 136 "Партнер Нефть" [14:18:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:18:44]line СНО: Общий режим [14:18:44]line Чек 208 21.08.2024 14:18 [14:18:44]line Смена: 454 ФФД: 1.0 [14:18:44]line ЗНМ: 0300000067 [14:18:44]line РНМ: 0000000000092569 [14:18:44]line Версия ККМ: 001 [14:18:44]line ФМ: 0000000000871776 [14:18:44]line ФД: 140191 [14:18:44]line ФПД: 134713405903125 [14:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T141844&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140191&fm=134713405903125&tin=02508201610067®Number=0000000000092569&sum=50000 [14:18:45]OFD Sender: Processing packet 140191 [packets to send 137, broken 136] [14:18:45]ProducePacketName [14:18:45]name=ofd_packets/00140191 [14:18:45]OFD Sender: To server: pG, [14:18:45]CommunicateWithHost lk.salyk.kg:30040 [14:18:45]ConnectInit lk.salyk.kg [14:18:45]written 0, free lines is 4095 [14:18:45]Connected sock=10 [14:18: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 37 36 0F 01 00 00 DA 55 07 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 44 F7 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 9F 23 02 00 35 04 06 00 7A 85 68 B4 91 15 EA F6 84 70 DD E6 42 97 [14:18: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 37 36 4F 00 00 00 02 F3 47 00 2E 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 37 36 10 04 04 00 9F 23 02 00 F4 03 04 00 D4 9D C5 66 B6 04 01 00 00 26 61 35 84 C2 64 32 7B [14:18:45]CommunicateWithHost err = 0 [14:18:45]CheckOFDResponse [14:18:45]1017 (14) - 77093643461234 [14:18:45]1041 (16) - 0000000000871776 [14:18:45]1040 (4) - 140191 [14:18:45]1012 (4) - 21.08.2024 07:57 [14:18:45]1206 (1) - 0 [14:18:45]OFD Sender: Remove packet 140191 [14:18:45]ProducePacketName [14:18:45]name=ofd_packets/00140191 [14:18:45]NVStorageDeleteData [14:18:45]Write to MH i2c: 01 00 00 9D 07 A4 [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: 01 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: 01 07 00 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 CD 0C 84 [14:18:45]RasterBufferAndPrint [14:18:45]line [14:18:45]line [14:18:45]line [14:18:45]line [14:18:45]line [14:18:45]written 0, free lines is 3283 [14:18:45]MH_Cut [14:18:45]Write to MH i2c: D1 01 00 A4 07 01 7D [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: D1 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: D1 01 00 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: D1 01 00 A4 07 00 7C [14:18:45]Write to MH i2c: 01 00 00 A5 07 AC [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:46]OFD Sender: No OFD packet to send [14:18:46]*** Cut start [14:18:46]*** Partial cut [14:18:46]*** CUTSNS_PIN = 1 [14:18:46]*** CUTSNS_PIN = 0 [14:18:46]*** Brake cut motor [14:18:46]Read from MH i2c: 01 [14:18:46]MH_I2C_Read... [14:18:46]*** Stop cut motor [14:18:46]*** Cut end [14:18:46]Read from MH i2c: 01 07 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [14:18:46]process_action close_receipt done [14:18:46]requested_data is exist [14:18:46]produce_requested_data [14:18:46]requested_item fm.sn is exist - process it [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 11 00 00 [14:18:46]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 17 00 [14:18:46]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [14:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:18:47]wFMCommunicate OK [14:18:47]requested_item fd.num is exist - process it [14:18:47]SAM_PROTO_GetFieldsCounters [14:18:47]wFMCommunicate request_size=4 [14:18:47]MH_SAM_APDU [14:18:47]CAPDU: 80 13 00 00 [14:18:47]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [14:18:47]Write i2c OK [14:18:47]MH_I2C_Read... [14:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:47]Read from MH i2c: E2 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 62 00 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 62 00 A7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [14:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 9F 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:47]wFMCommunicate OK [14:18:47]SAM_PROTO_GetFieldsCounters done [14:18:47]requested_item shift.num is exist - process it [14:18:47]requested_item shift.opened is exist - process it [14:18:47]req_shift_opened [14:18:47]FM_GetShiftState [14:18:47]SAM_PROTO_GetShiftState [14:18:47]wFMCommunicate request_size=4 [14:18:47]MH_SAM_APDU [14:18:47]CAPDU: 80 13 01 00 [14:18:47]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [14:18:47]Write i2c OK [14:18:47]MH_I2C_Read... [14:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:47]Read from MH i2c: E2 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 0E 00 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [14:18:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:18:47]wFMCommunicate OK [14:18:47]SAM_PROTO_GetShiftState done [14:18:47]FM_GetShiftState done [14:18:47]req_shift_opened done [14:18:47]requested_item shift.open_date is exist - process it [14:18:47]req_shift_open_date [14:18:47]req_shift_open_date done [14:18:47]produce_requested_data done [14:18:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140191,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:18:47]process_action_free close_receipt [14:18:47]json_value_free [14:18:47]json_value_free done [14:18:47]process_json_proto returns [14:18:47]Send response to host [14:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140191,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:18:47]free response buf [14:18:47]execute_script done [14:18:47]execute_script returns [14:18:47]free content buf [14:18:47]Sock 9.Close socket [14:18:47]Sock 9.Thread stoped [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:30]accept exits with 8 [14:27:30]New connection [14:27:30]New thread 3067592036 created [14:27:30]Thread 3067448676 joined [14:27:30]Waiting for new connection... [14:27:30] Sock 8.Parse request [14:27:30]Sock 8.Check first char [14:27:30]Sock 8.First char is OK [14:27:30]request: POST /json_proto HTTP/1.0 [14:27:30]Method: POST [14:27:30]URL: /json_proto [14:27:30]Method is POST - this is cgi request [14:27:30]url: /json_proto [14:27:30]query_string will be loaded in cgi processing [14:27:30]execute_cgi json_proto POST (null) [14:27:30]execute_cgi path=json_proto method=POST [14:27:30]POST find Content-Length [14:27:30]Host: 172.17.45.67:8080 [14:27:30]Content-Length: 677 [14:27:30]Content-Type: application/json [14:27:30] [14:27:30]POST finish read [14:27:30]Found Content-Length = 677 [14:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]execute_script... [14:27: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)594047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]POST & json_proto [14:27:30]process_json_proto [14:27:30]json parsed OK: [14:27:30]protocol is kg_v1.0 [14:27:30]action value=close_receipt [14:27:30]process_action close_receipt [14:27:30]cmd_close_receipt [14:27:30]MH_GetDate [14:27:30]Write to MH i2c: F0 00 00 A9 07 9F [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 A9 07 00 52 F9 C5 66 5F 7F 2B 66 8D [14:27:30]GetLastDocTimeStamp 1724249924 [14:27:30]current date 1724250450 [14:27:30]FM_GetShiftState [14:27:30]SAM_PROTO_GetShiftState [14:27:30]wFMCommunicate request_size=4 [14:27:30]MH_SAM_APDU [14:27:30]CAPDU: 80 13 01 00 [14:27:30]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:30]Read from MH i2c: E2 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AE [14:27:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:27:30]wFMCommunicate OK [14:27:30]SAM_PROTO_GetShiftState done [14:27:30]FM_GetShiftState done [14:27:30]opened in 1724200467 [14:27:30]opened+sec_in_day 1724286867 [14:27:30]quantity*price = 50010 [14:27:30]sum+1 = 50012 [14:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 209 21.08.2024 14:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140192 ФПД: 158193718553922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142730&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140192&fm=158193718553922&tin=02508201610067®Number=0000000000092569&sum=50000 [14:27:31]StoreToDocumentArchive [14:27:31]shift 454 fd 140192 [14:27:31]save to /storage/0454/doc_00140192 [14:27:31]save last doc name /storage/0454/doc_00140192 to /storage/kkm_last_doc_name [14:27:31]save OK [14:27:31]Clear old archive folders... [14:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:31]tlvbuf is 01C56200 [14:27:31]SAM_PROTO_ClearQueue [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 09 00 00 [14:27:31]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_ClearQueue done [14:27:31]KKMCreateOFDPacket [14:27:31]OFDProtocolAddRootSTLVToBuf [14:27:31]FM_MakeSignedData [14:27:31]FM_MakeSignedData [14:27:31]SAM_PROTO_SignData [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 01 02 [14:27:31]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=255 [14:27:31]MH_SAM_APDU [14:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 52 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 23 02 00 35 04 06 00 8F [14:27:31]Write to MH i2c: E2 02 01 B9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 52 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 23 02 00 35 04 06 00 8F 00 00 0B [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=10 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 02 02 05 E0 58 66 6D 42 [14:27:31]Write to MH i2c: E2 0D 00 BA 07 80 0D 02 02 05 00 E0 58 66 6D 42 00 00 92 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 03 02 [14:27:31]Write to MH i2c: E2 08 00 BB 07 80 0D 03 02 00 00 00 00 3D [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 BB 07 00 00 7B 91 24 02 2A EA 36 90 00 BA [14:27:31]RAPDU: 00 7B 91 24 02 2A EA 36 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_SignData done [14:27:31]FM_MakeSignedData done [14:27:31]CreateOFDProtocolMessage [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 11 00 00 [14:27:31]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [14:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:31]wFMCommunicate OK [14:27:31]CreateOFDProtocolMessage done [14:27:31]OFDSenderStorePacket 140192 [14:27:31]StoreOFDPacket docnum=140192 [14:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6A 13 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 52 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 23 02 00 35 04 06 00 8F E0 58 66 6D 42 00 7B 91 24 02 2A EA 36 [14:27:31]CheckFolder [14:27:31]dirname=/storage/ofd_packets [14:27:31]CheckFolder done [14:27:31]ProducePacketName [14:27:31]name=ofd_packets/00140192 [14:27:31]NVStorageSaveData ofd_packets/00140192 [14:27:31]File name is /storage/ofd_packets/00140192 [14:27:31]Write 301 bytes [14:27:31]NVStorageSaveData done [14:27:31]OFDSenderStorePacket done [14:27:31]KKMCreateOFDPacket done [14:27:31]NVStorageSaveData kkm_last_timestamp [14:27:31]File name is /storage/kkm_last_timestamp [14:27:31]Write 4 bytes [14:27:31]NVStorageSaveData done [14:27:31]ExternCall_PrintAddStr [14:27:31]wPrintStart [14:27:31]Write to MH i2c: 01 00 00 BD 07 C4 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [14:27:31]RasterBufferAndPrint [14:27:31]line Счет N : (1)594047 [14:27:31]line ИНН: 02508201610067 [14:27:31]line Контрольно-Кассовый Чек [14:27:31]line ПРОДАЖА [14:27:31]line ТРК (МРК, ГНК) : 51 [14:27:31]line Товар: 2710124500 [14:27:31]line Аи-95-К-5 [14:27:31]line 6.740 * 74.20 [14:27:31]line = 500.11 [14:27:31]line НДС 12% НСП 1% [14:27:31]line > о реализуемом товаре [14:27:31]line ОКРУГЛЕНИЕ: -0.11 [14:27:31]line ИТОГО: 500.00 [14:27:31]line Внесено: 500.00 [14:27:31]line СДАЧА: 0.00 [14:27:31]line НСП 1% : 4.43 [14:27:31]line НДС 12% : 53.11 [14:27:31]line Наличными: 500.00 [14:27:31]line Безнал.: 0.00 [14:27:31]line Место: АЗС № 136 "Партнер Нефть" [14:27:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:27:31]line СНО: Общий режим [14:27:31]line Чек 209 21.08.2024 14:27 [14:27:31]line Смена: 454 ФФД: 1.0 [14:27:31]line ЗНМ: 0300000067 [14:27:31]line РНМ: 0000000000092569 [14:27:31]line Версия ККМ: 001 [14:27:31]line ФМ: 0000000000871776 [14:27:31]line ФД: 140192 [14:27:31]line ФПД: 158193718553922 [14:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142730&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140192&fm=158193718553922&tin=02508201610067®Number=0000000000092569&sum=50000 [14:27:32]written 0, free lines is 4095 [14:27:32]OFD Sender: Processing packet 140192 [packets to send 137, broken 136] [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00140192 [14:27:32]OFD Sender: To server: pG, [14:27:32]CommunicateWithHost lk.salyk.kg:30040 [14:27:32]ConnectInit lk.salyk.kg [14:27:32]Connected sock=10 [14:27: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 37 36 0F 01 00 00 6A 13 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 52 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A0 23 02 00 35 04 06 00 8F E0 58 66 6D 42 00 7B 91 24 02 2A EA 36 [14:27:32]Write to MH i2c: 01 00 00 E8 07 EF [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 DA 0C DC [14:27:32]RasterBufferAndPrint [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]written 0, free lines is 3297 [14:27:32]MH_Cut [14:27:32]Write to MH i2c: D1 01 00 EF 07 01 C8 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 EF 07 00 C7 [14:27:32]Write to MH i2c: 01 00 00 F0 07 F7 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27: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 37 36 4F 00 00 00 38 60 47 00 1F 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 37 36 10 04 04 00 A0 23 02 00 F4 03 04 00 E3 9F C5 66 B6 04 01 00 00 47 79 8E ED 50 2C D4 BD [14:27:32]CommunicateWithHost err = 0 [14:27:32]CheckOFDResponse [14:27:32]1017 (14) - 77093643461234 [14:27:32]1041 (16) - 0000000000871776 [14:27:32]1040 (4) - 140192 [14:27:32]1012 (4) - 21.08.2024 08:05 [14:27:32]1206 (1) - 0 [14:27:32]OFD Sender: Remove packet 140192 [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00140192 [14:27:32]NVStorageDeleteData [14:27:33]OFD Sender: No OFD packet to send [14:27:33]*** Cut start [14:27:33]*** Partial cut [14:27:33]*** CUTSNS_PIN = 1 [14:27:33]*** CUTSNS_PIN = 0 [14:27:33]*** Brake cut motor [14:27:33]Read from MH i2c: 01 [14:27:33]MH_I2C_Read... [14:27:33]*** Stop cut motor [14:27:33]*** Cut end [14:27:33]Read from MH i2c: 01 07 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [14:27:33]process_action close_receipt done [14:27:33]requested_data is exist [14:27:33]produce_requested_data [14:27:33]requested_item fm.sn is exist - process it [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 11 00 00 [14:27:33]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [14:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:33]wFMCommunicate OK [14:27:33]requested_item fd.num is exist - process it [14:27:33]SAM_PROTO_GetFieldsCounters [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 13 00 00 [14:27:33]Write to MH i2c: E2 08 00 F2 07 80 13 00 00 00 00 00 00 75 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 F2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [14:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetFieldsCounters done [14:27:34]requested_item shift.num is exist - process it [14:27:34]requested_item shift.opened is exist - process it [14:27:34]req_shift_opened [14:27:34]FM_GetShiftState [14:27:34]SAM_PROTO_GetShiftState [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 01 00 [14:27:34]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:34]Read from MH i2c: E2 0E 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F7 [14:27:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetShiftState done [14:27:34]FM_GetShiftState done [14:27:34]req_shift_opened done [14:27:34]requested_item shift.open_date is exist - process it [14:27:34]req_shift_open_date [14:27:34]req_shift_open_date done [14:27:34]produce_requested_data done [14:27:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140192,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:27:34]process_action_free close_receipt [14:27:34]json_value_free [14:27:34]json_value_free done [14:27:34]process_json_proto returns [14:27:34]Send response to host [14:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140192,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:27:34]free response buf [14:27:34]execute_script done [14:27:34]execute_script returns [14:27:34]free content buf [14:27:34]Sock 8.Close socket [14:27:34]Sock 8.Thread stoped [14:27:38]OFD Sender: No OFD packet to send [14:27:43]accept exits with 9 [14:27:43]New connection [14:27:43]New thread 3067448676 created [14:27:43]Thread 3067592036 joined [14:27:43]Waiting for new connection... [14:27:43] Sock 9.Parse request [14:27:43]Sock 9.Check first char [14:27:43]Sock 9.First char is OK [14:27:43]request: POST /json_proto HTTP/1.0 [14:27:43]Method: POST [14:27:43]URL: /json_proto [14:27:43]Method is POST - this is cgi request [14:27:43]url: /json_proto [14:27:43]query_string will be loaded in cgi processing [14:27:43]execute_cgi json_proto POST (null) [14:27:43]execute_cgi path=json_proto method=POST [14:27:43]POST find Content-Length [14:27:43]Host: 172.17.45.67:8080 [14:27:43]Content-Length: 677 [14:27:43]Content-Type: application/json [14:27:43] [14:27:43]POST finish read [14:27:43]Found Content-Length = 677 [14:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:43]execute_script... [14:27: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)594048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:43]POST & json_proto [14:27:43]process_json_proto [14:27:43]json parsed OK: [14:27:43]protocol is kg_v1.0 [14:27:43]action value=close_receipt [14:27:43]process_action close_receipt [14:27:43]cmd_close_receipt [14:27:43]MH_GetDate [14:27:43]Write to MH i2c: F0 00 00 F4 07 EA [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: F0 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: F0 09 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: F0 09 00 F4 07 00 5F F9 C5 66 5F 7F 2B 66 E5 [14:27:43]GetLastDocTimeStamp 1724250450 [14:27:43]current date 1724250463 [14:27:43]FM_GetShiftState [14:27:43]SAM_PROTO_GetShiftState [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 13 01 00 [14:27:43]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]OFD Sender: No OFD packet to send [14:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 0E 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F9 [14:27:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:27:43]wFMCommunicate OK [14:27:43]SAM_PROTO_GetShiftState done [14:27:43]FM_GetShiftState done [14:27:43]opened in 1724200467 [14:27:43]opened+sec_in_day 1724286867 [14:27:43]quantity*price = 50010 [14:27:43]sum+1 = 50012 [14:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 210 21.08.2024 14:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140193 ФПД: 219374435144278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140193&fm=219374435144278&tin=02508201610067®Number=0000000000092569&sum=50000 [14:27:44]StoreToDocumentArchive [14:27:44]shift 454 fd 140193 [14:27:44]save to /storage/0454/doc_00140193 [14:27:44]save last doc name /storage/0454/doc_00140193 to /storage/kkm_last_doc_name [14:27:44]save OK [14:27:44]Clear old archive folders... [14:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:44]tlvbuf is 01C9D680 [14:27:44]SAM_PROTO_ClearQueue [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 09 00 00 [14:27:44]Write to MH i2c: E2 08 00 02 08 80 09 00 00 00 00 00 00 7C [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]SAM_PROTO_ClearQueue done [14:27:44]KKMCreateOFDPacket [14:27:44]OFDProtocolAddRootSTLVToBuf [14:27:44]FM_MakeSignedData [14:27:44]FM_MakeSignedData [14:27:44]SAM_PROTO_SignData [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 01 02 [14:27:44]Write to MH i2c: E2 08 00 03 08 80 0D 01 02 00 00 00 00 84 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]wFMCommunicate request_size=255 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 23 02 00 35 04 06 00 C7 [14:27:44]Write to MH i2c: E2 02 01 04 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 23 02 00 35 04 06 00 C7 00 00 9E [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]wFMCommunicate request_size=10 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 02 02 05 85 17 47 92 56 [14:27:44]Write to MH i2c: E2 0D 00 05 08 80 0D 02 02 05 00 85 17 47 92 56 00 00 5C [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [14:27:44]RAPDU: 90 00 [14:27:44]wFMCommunicate OK [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 0D 03 02 [14:27:44]Write to MH i2c: E2 08 00 06 08 80 0D 03 02 00 00 00 00 89 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0B 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 0B 00 06 08 00 A5 F8 47 A0 A1 36 07 DA 90 00 C6 [14:27:44]RAPDU: A5 F8 47 A0 A1 36 07 DA 90 00 [14:27:44]wFMCommunicate OK [14:27:44]SAM_PROTO_SignData done [14:27:44]FM_MakeSignedData done [14:27:44]CreateOFDProtocolMessage [14:27:44]wFMCommunicate request_size=4 [14:27:44]MH_SAM_APDU [14:27:44]CAPDU: 80 11 00 00 [14:27:44]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:44]Read from MH i2c: E2 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 17 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [14:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:44]wFMCommunicate OK [14:27:44]CreateOFDProtocolMessage done [14:27:44]OFDSenderStorePacket 140193 [14:27:44]StoreOFDPacket docnum=140193 [14:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C8 17 07 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 23 02 00 35 04 06 00 C7 85 17 47 92 56 A5 F8 47 A0 A1 36 07 DA [14:27:44]CheckFolder [14:27:44]dirname=/storage/ofd_packets [14:27:44]CheckFolder done [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00140193 [14:27:44]NVStorageSaveData ofd_packets/00140193 [14:27:44]File name is /storage/ofd_packets/00140193 [14:27:44]Write 301 bytes [14:27:44]NVStorageSaveData done [14:27:44]OFDSenderStorePacket done [14:27:44]KKMCreateOFDPacket done [14:27:44]NVStorageSaveData kkm_last_timestamp [14:27:44]File name is /storage/kkm_last_timestamp [14:27:44]Write 4 bytes [14:27:44]NVStorageSaveData done [14:27:44]ExternCall_PrintAddStr [14:27:44]wPrintStart [14:27:44]Write to MH i2c: 01 00 00 08 08 10 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [14:27:44]RasterBufferAndPrint [14:27:44]line Счет N : (1)594048 [14:27:44]line ИНН: 02508201610067 [14:27:44]line Контрольно-Кассовый Чек [14:27:44]line ПРОДАЖА [14:27:44]line ТРК (МРК, ГНК) : 41 [14:27:44]line Товар: 2710124500 [14:27:44]line Аи-95-К-5 [14:27:44]line 6.740 * 74.20 [14:27:44]line = 500.11 [14:27:44]line НДС 12% НСП 1% [14:27:44]line > о реализуемом товаре [14:27:44]line ОКРУГЛЕНИЕ: -0.11 [14:27:44]line ИТОГО: 500.00 [14:27:44]line Внесено: 500.00 [14:27:44]line СДАЧА: 0.00 [14:27:44]line НСП 1% : 4.43 [14:27:44]line НДС 12% : 53.11 [14:27:44]line Наличными: 500.00 [14:27:44]line Безнал.: 0.00 [14:27:44]line Место: АЗС № 136 "Партнер Нефть" [14:27:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:27:44]line СНО: Общий режим [14:27:44]line Чек 210 21.08.2024 14:27 [14:27:44]line Смена: 454 ФФД: 1.0 [14:27:44]line ЗНМ: 0300000067 [14:27:44]line РНМ: 0000000000092569 [14:27:44]line Версия ККМ: 001 [14:27:44]line ФМ: 0000000000871776 [14:27:44]line ФД: 140193 [14:27:44]line ФПД: 219374435144278 [14:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142743&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140193&fm=219374435144278&tin=02508201610067®Number=0000000000092569&sum=50000 [14:27:44]written 0, free lines is 4095 [14:27:44]OFD Sender: Processing packet 140193 [packets to send 137, broken 136] [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00140193 [14:27:44]OFD Sender: To server: pG, [14:27:44]CommunicateWithHost lk.salyk.kg:30040 [14:27:44]ConnectInit lk.salyk.kg [14:27:44]Connected sock=10 [14:27: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 37 36 0F 01 00 00 C8 17 07 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5F F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A1 23 02 00 35 04 06 00 C7 85 17 47 92 56 A5 F8 47 A0 A1 36 07 DA [14:27: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 37 36 4F 00 00 00 FB EE 47 00 5C 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 37 36 10 04 04 00 A1 23 02 00 F4 03 04 00 F0 9F C5 66 B6 04 01 00 00 54 B0 E2 17 DE 90 D6 47 [14:27:45]CommunicateWithHost err = 0 [14:27:45]CheckOFDResponse [14:27:45]1017 (14) - 77093643461234 [14:27:45]1041 (16) - 0000000000871776 [14:27:45]1040 (4) - 140193 [14:27:45]1012 (4) - 21.08.2024 08:06 [14:27:45]1206 (1) - 0 [14:27:45]OFD Sender: Remove packet 140193 [14:27:45]ProducePacketName [14:27:45]name=ofd_packets/00140193 [14:27:45]NVStorageDeleteData [14:27:45]Write to MH i2c: 01 00 00 33 08 3B [14:27:45]Write i2c OK [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: 01 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: 01 07 00 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 F5 0C 43 [14:27:45]RasterBufferAndPrint [14:27:45]line [14:27:45]line [14:27:45]line [14:27:45]line [14:27:45]line [14:27:45]written 0, free lines is 3327 [14:27:45]MH_Cut [14:27:45]Write to MH i2c: D1 01 00 3A 08 01 14 [14:27:45]Write i2c OK [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: D1 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: D1 01 00 [14:27:45]MH_I2C_Read... [14:27:45]Read from MH i2c: D1 01 00 3A 08 00 13 [14:27:45]Write to MH i2c: 01 00 00 3B 08 43 [14:27:45]Write i2c OK [14:27:45]MH_I2C_Read... [14:27:45]OFD Sender: No OFD packet to send [14:27:45]*** Cut start [14:27:45]*** Partial cut [14:27:45]*** CUTSNS_PIN = 1 [14:27:45]*** CUTSNS_PIN = 0 [14:27:46]*** Brake cut motor [14:27:46]Read from MH i2c: 01 [14:27:46]MH_I2C_Read... [14:27:46]*** Stop cut motor [14:27:46]*** Cut end [14:27:46]Read from MH i2c: 01 07 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [14:27:46]process_action close_receipt done [14:27:46]requested_data is exist [14:27:46]produce_requested_data [14:27:46]requested_item fm.sn is exist - process it [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 11 00 00 [14:27:46]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [14:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:27:46]wFMCommunicate OK [14:27:46]requested_item fd.num is exist - process it [14:27:46]SAM_PROTO_GetFieldsCounters [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 00 00 [14:27:46]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetFieldsCounters done [14:27:46]requested_item shift.num is exist - process it [14:27:46]requested_item shift.opened is exist - process it [14:27:46]req_shift_opened [14:27:46]FM_GetShiftState [14:27:46]SAM_PROTO_GetShiftState [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 01 00 [14:27:46]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [14:27:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetShiftState done [14:27:46]FM_GetShiftState done [14:27:46]req_shift_opened done [14:27:46]requested_item shift.open_date is exist - process it [14:27:46]req_shift_open_date [14:27:46]req_shift_open_date done [14:27:46]produce_requested_data done [14:27:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140193,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:27:46]process_action_free close_receipt [14:27:46]json_value_free [14:27:46]json_value_free done [14:27:46]process_json_proto returns [14:27:46]Send response to host [14:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140193,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:27:46]free response buf [14:27:46]execute_script done [14:27:46]execute_script returns [14:27:46]free content buf [14:27:46]Sock 9.Close socket [14:27:46]Sock 9.Thread stoped [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:39]accept exits with 8 [14:28:39]New connection [14:28:39]New thread 3067592036 created [14:28:39]Thread 3067448676 joined [14:28:39]Waiting for new connection... [14:28:39] Sock 8.Parse request [14:28:39]Sock 8.Check first char [14:28:39]Sock 8.First char is OK [14:28:39]request: POST /json_proto HTTP/1.0 [14:28:39]Method: POST [14:28:39]URL: /json_proto [14:28:39]Method is POST - this is cgi request [14:28:39]url: /json_proto [14:28:39]query_string will be loaded in cgi processing [14:28:39]execute_cgi json_proto POST (null) [14:28:39]execute_cgi path=json_proto method=POST [14:28:39]POST find Content-Length [14:28:39]Host: 172.17.45.67:8080 [14:28:39]Content-Length: 682 [14:28:39]Content-Type: application/json [14:28:39] [14:28:39]POST finish read [14:28:39]Found Content-Length = 682 [14:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:39]execute_script... [14:28: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)594049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:39]POST & json_proto [14:28:39]process_json_proto [14:28:39]json parsed OK: [14:28:39]protocol is kg_v1.0 [14:28:39]action value=close_receipt [14:28:39]process_action close_receipt [14:28:39]cmd_close_receipt [14:28:39]MH_GetDate [14:28:39]Write to MH i2c: F0 00 00 3F 08 36 [14:28:39]Write i2c OK [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 09 00 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: F0 09 00 3F 08 00 98 F9 C5 66 5F 7F 2B 66 6A [14:28:39]GetLastDocTimeStamp 1724250463 [14:28:39]current date 1724250520 [14:28:39]FM_GetShiftState [14:28:39]SAM_PROTO_GetShiftState [14:28:39]wFMCommunicate request_size=4 [14:28:39]MH_SAM_APDU [14:28:39]CAPDU: 80 13 01 00 [14:28:39]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [14:28:39]Write i2c OK [14:28:39]MH_I2C_Read... [14:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:39]Read from MH i2c: E2 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: E2 0E 00 [14:28:39]MH_I2C_Read... [14:28:39]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 45 [14:28:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:28:39]wFMCommunicate OK [14:28:39]SAM_PROTO_GetShiftState done [14:28:39]FM_GetShiftState done [14:28:39]opened in 1724200467 [14:28:39]opened+sec_in_day 1724286867 [14:28:39]quantity*price = 100021 [14:28:39]sum+1 = 100023 [14:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 211 21.08.2024 14:28 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140194 ФПД: 150033765487361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140194&fm=150033765487361&tin=02508201610067®Number=0000000000092569&sum=100000 [14:28:40]StoreToDocumentArchive [14:28:40]shift 454 fd 140194 [14:28:40]save to /storage/0454/doc_00140194 [14:28:40]save last doc name /storage/0454/doc_00140194 to /storage/kkm_last_doc_name [14:28:40]save OK [14:28:40]Clear old archive folders... [14:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:40]tlvbuf is 01C55AA0 [14:28:40]SAM_PROTO_ClearQueue [14:28:40]wFMCommunicate request_size=4 [14:28:40]MH_SAM_APDU [14:28:40]CAPDU: 80 09 00 00 [14:28:40]Write to MH i2c: E2 08 00 4D 08 80 09 00 00 00 00 00 00 C7 [14:28:40]Write i2c OK [14:28:40]MH_I2C_Read... [14:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:40]Read from MH i2c: E2 [14:28:40]MH_I2C_Read... [14:28:40]Read from MH i2c: E2 03 00 [14:28:40]MH_I2C_Read... [14:28:40]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [14:28:40]RAPDU: 90 00 [14:28:40]wFMCommunicate OK [14:28:40]SAM_PROTO_ClearQueue done [14:28:40]KKMCreateOFDPacket [14:28:40]OFDProtocolAddRootSTLVToBuf [14:28:40]FM_MakeSignedData [14:28:40]FM_MakeSignedData [14:28:40]SAM_PROTO_SignData [14:28:40]wFMCommunicate request_size=4 [14:28:40]MH_SAM_APDU [14:28:40]CAPDU: 80 0D 01 02 [14:28:40]Write to MH i2c: E2 08 00 4E 08 80 0D 01 02 00 00 00 00 CF [14:28:40]Write i2c OK [14:28:40]MH_I2C_Read... [14:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:40]Read from MH i2c: E2 [14:28:40]MH_I2C_Read... [14:28:40]Read from MH i2c: E2 03 00 [14:28:40]MH_I2C_Read... [14:28:40]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [14:28:40]RAPDU: 90 00 [14:28:40]wFMCommunicate OK [14:28:40]wFMCommunicate request_size=255 [14:28:40]MH_SAM_APDU [14:28: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 98 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 23 02 00 35 04 06 00 88 [14:28:40]Write to MH i2c: E2 02 01 4F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 98 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 23 02 00 35 04 06 00 88 00 00 2A [14:28:40]Write i2c OK [14:28:40]MH_I2C_Read... [14:28:40]OFD Sender: No OFD packet to send [14:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]wFMCommunicate request_size=10 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 0D 02 02 05 74 75 4B D3 01 [14:28:41]Write to MH i2c: E2 0D 00 50 08 80 0D 02 02 05 00 74 75 4B D3 01 00 00 E4 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [14:28:41]RAPDU: 90 00 [14:28:41]wFMCommunicate OK [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 0D 03 02 [14:28:41]Write to MH i2c: E2 08 00 51 08 80 0D 03 02 00 00 00 00 D4 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0B 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 0B 00 51 08 00 A4 79 9A 9D 59 4E 55 95 90 00 BA [14:28:41]RAPDU: A4 79 9A 9D 59 4E 55 95 90 00 [14:28:41]wFMCommunicate OK [14:28:41]SAM_PROTO_SignData done [14:28:41]FM_MakeSignedData done [14:28:41]CreateOFDProtocolMessage [14:28:41]wFMCommunicate request_size=4 [14:28:41]MH_SAM_APDU [14:28:41]CAPDU: 80 11 00 00 [14:28:41]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:41]Read from MH i2c: E2 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 17 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [14:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:28:41]wFMCommunicate OK [14:28:41]CreateOFDProtocolMessage done [14:28:41]OFDSenderStorePacket 140194 [14:28:41]StoreOFDPacket docnum=140194 [14:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 63 E9 07 01 0A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 98 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 23 02 00 35 04 06 00 88 74 75 4B D3 01 A4 79 9A 9D 59 4E 55 95 [14:28:41]CheckFolder [14:28:41]dirname=/storage/ofd_packets [14:28:41]CheckFolder done [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00140194 [14:28:41]NVStorageSaveData ofd_packets/00140194 [14:28:41]File name is /storage/ofd_packets/00140194 [14:28:41]Write 301 bytes [14:28:41]NVStorageSaveData done [14:28:41]OFDSenderStorePacket done [14:28:41]KKMCreateOFDPacket done [14:28:41]NVStorageSaveData kkm_last_timestamp [14:28:41]File name is /storage/kkm_last_timestamp [14:28:41]Write 4 bytes [14:28:41]NVStorageSaveData done [14:28:41]ExternCall_PrintAddStr [14:28:41]wPrintStart [14:28:41]Write to MH i2c: 01 00 00 53 08 5B [14:28:41]Write i2c OK [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 [14:28:41]MH_I2C_Read... [14:28:41]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [14:28:41]RasterBufferAndPrint [14:28:41]line Счет N : (1)594049 [14:28:41]line ИНН: 02508201610067 [14:28:41]line Контрольно-Кассовый Чек [14:28:41]line ПРОДАЖА [14:28:41]line ТРК (МРК, ГНК) : 61 [14:28:41]line Товар: 2710124500 [14:28:41]line Аи-95-К-5 [14:28:41]line 13.480 * 74.20 [14:28:41]line = 1000.22 [14:28:41]line НДС 12% НСП 1% [14:28:41]line > о реализуемом товаре [14:28:41]line ОКРУГЛЕНИЕ: -0.22 [14:28:41]line ИТОГО: 1000.00 [14:28:41]line Внесено: 1000.00 [14:28:41]line СДАЧА: 0.00 [14:28:41]line НСП 1% : 8.85 [14:28:41]line НДС 12% : 106.22 [14:28:41]line Наличными: 1000.00 [14:28:41]line Безнал.: 0.00 [14:28:41]line Место: АЗС № 136 "Партнер Нефть" [14:28:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:28:41]line СНО: Общий режим [14:28:41]line Чек 211 21.08.2024 14:28 [14:28:41]line Смена: 454 ФФД: 1.0 [14:28:41]line ЗНМ: 0300000067 [14:28:41]line РНМ: 0000000000092569 [14:28:41]line Версия ККМ: 001 [14:28:41]line ФМ: 0000000000871776 [14:28:41]line ФД: 140194 [14:28:41]line ФПД: 150033765487361 [14:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T142840&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140194&fm=150033765487361&tin=02508201610067®Number=0000000000092569&sum=100000 [14:28:41]OFD Sender: Processing packet 140194 [packets to send 137, broken 136] [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00140194 [14:28:41]OFD Sender: To server: pG, [14:28:41]CommunicateWithHost lk.salyk.kg:30040 [14:28:41]ConnectInit lk.salyk.kg [14:28:41]written 0, free lines is 4095 [14:28:41]Connected sock=10 [14:28: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 37 36 0F 01 00 00 63 E9 07 01 0A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 98 F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 23 02 00 35 04 06 00 88 74 75 4B D3 01 A4 79 9A 9D 59 4E 55 95 [14:28: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 37 36 4F 00 00 00 E0 BD 47 00 34 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A2 23 02 00 F4 03 04 00 29 A0 C5 66 B6 04 01 00 00 A8 C6 0B 5C 01 BF 05 10 [14:28:41]CommunicateWithHost err = 0 [14:28:41]CheckOFDResponse [14:28:41]1017 (14) - 77093643461234 [14:28:41]1041 (16) - 0000000000871776 [14:28:41]1040 (4) - 140194 [14:28:41]1012 (4) - 21.08.2024 08:07 [14:28:41]1206 (1) - 0 [14:28:41]OFD Sender: Remove packet 140194 [14:28:41]ProducePacketName [14:28:41]name=ofd_packets/00140194 [14:28:41]NVStorageDeleteData [14:28:42]Write to MH i2c: 01 00 00 7E 08 86 [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 07 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 E0 0C 79 [14:28:42]RasterBufferAndPrint [14:28:42]line [14:28:42]line [14:28:42]line [14:28:42]line [14:28:42]line [14:28:42]written 0, free lines is 3302 [14:28:42]MH_Cut [14:28:42]Write to MH i2c: D1 01 00 85 08 01 5F [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: D1 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: D1 01 00 [14:28:42]MH_I2C_Read... [14:28:42]Read from MH i2c: D1 01 00 85 08 00 5E [14:28:42]Write to MH i2c: 01 00 00 86 08 8E [14:28:42]Write i2c OK [14:28:42]MH_I2C_Read... [14:28:42]OFD Sender: No OFD packet to send [14:28:42]*** Cut start [14:28:42]*** Partial cut [14:28:42]*** CUTSNS_PIN = 1 [14:28:42]*** CUTSNS_PIN = 0 [14:28:42]*** Brake cut motor [14:28:43]Read from MH i2c: 01 [14:28:43]MH_I2C_Read... [14:28:43]*** Stop cut motor [14:28:43]*** Cut end [14:28:43]Read from MH i2c: 01 07 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [14:28:43]process_action close_receipt done [14:28:43]requested_data is exist [14:28:43]produce_requested_data [14:28:43]requested_item fm.sn is exist - process it [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 11 00 00 [14:28:43]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 17 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [14:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:28:43]wFMCommunicate OK [14:28:43]requested_item fd.num is exist - process it [14:28:43]SAM_PROTO_GetFieldsCounters [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 13 00 00 [14:28:43]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 62 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:43]wFMCommunicate OK [14:28:43]SAM_PROTO_GetFieldsCounters done [14:28:43]requested_item shift.num is exist - process it [14:28:43]requested_item shift.opened is exist - process it [14:28:43]req_shift_opened [14:28:43]FM_GetShiftState [14:28:43]SAM_PROTO_GetShiftState [14:28:43]wFMCommunicate request_size=4 [14:28:43]MH_SAM_APDU [14:28:43]CAPDU: 80 13 01 00 [14:28:43]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [14:28:43]Write i2c OK [14:28:43]MH_I2C_Read... [14:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:43]Read from MH i2c: E2 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 0E 00 [14:28:43]MH_I2C_Read... [14:28:43]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [14:28:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:28:43]wFMCommunicate OK [14:28:43]SAM_PROTO_GetShiftState done [14:28:43]FM_GetShiftState done [14:28:43]req_shift_opened done [14:28:43]requested_item shift.open_date is exist - process it [14:28:43]req_shift_open_date [14:28:43]req_shift_open_date done [14:28:43]produce_requested_data done [14:28:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140194,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:28:43]process_action_free close_receipt [14:28:43]json_value_free [14:28:43]json_value_free done [14:28:43]process_json_proto returns [14:28:43]Send response to host [14:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140194,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:28:43]free response buf [14:28:43]execute_script done [14:28:43]execute_script returns [14:28:43]free content buf [14:28:43]Sock 8.Close socket [14:28:43]Sock 8.Thread stoped [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [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:12]int [14:29:12]Write to MH i2c: 01 00 00 8A 08 92 [14:29:12]*** FLAG_PRN_KEY set [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 8A 08 00 08 00 00 00 FF 0F AF [14:29:12]state=0 [14:29:12]Key pressed [14:29:12]Feed [14:29:12]Write to MH i2c: D8 00 00 8B 08 6A [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: D8 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: D8 01 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: D8 01 00 8B 08 00 6B [14:29:12]int [14:29:12]Write to MH i2c: 01 00 00 8C 08 94 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 8C 08 00 48 00 00 00 3C 00 1F [14:29:12]state=2 [14:29:12]Key pressed [14:29:13]int [14:29:13]Write to MH i2c: 01 00 00 8D 08 95 [14:29:13]*** FLAG_PRN_KEY reset [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 8D 08 00 00 00 00 00 F6 0F A1 [14:29:13]state=2 [14:29:13]Stop feed [14:29:13]int [14:29:13]Write to MH i2c: 01 00 00 8E 08 96 [14:29:13]*** FLAG_PRN_KEY set [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 8E 08 00 08 00 00 00 FF 0F B3 [14:29:13]state=0 [14:29:13]Key pressed [14:29:13]Feed [14:29:13]Write to MH i2c: D8 00 00 8F 08 6E [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D8 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D8 01 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D8 01 00 8F 08 00 6F [14:29:13]int [14:29:13]Write to MH i2c: 01 00 00 90 08 98 [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 90 08 00 48 00 00 00 3C 00 23 [14:29:13]state=2 [14:29:13]Key pressed [14:29:13]int [14:29:13]Write to MH i2c: 01 00 00 91 08 99 [14:29:13]*** FLAG_PRN_KEY reset [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 F5 0F A4 [14:29:13]state=2 [14:29:13]Stop feed [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:04]accept exits with 9 [14:30:04]New connection [14:30:04]New thread 3067448676 created [14:30:04]Thread 3067592036 joined [14:30:04]Waiting for new connection... [14:30:04] Sock 9.Parse request [14:30:04]Sock 9.Check first char [14:30:04]Sock 9.First char is OK [14:30:04]request: POST /json_proto HTTP/1.0 [14:30:04]Method: POST [14:30:04]URL: /json_proto [14:30:04]Method is POST - this is cgi request [14:30:04]url: /json_proto [14:30:04]query_string will be loaded in cgi processing [14:30:04]execute_cgi json_proto POST (null) [14:30:04]execute_cgi path=json_proto method=POST [14:30:04]POST find Content-Length [14:30:04]Host: 172.17.45.67:8080 [14:30:04]Content-Length: 677 [14:30:04]Content-Type: application/json [14:30:04] [14:30:04]POST finish read [14:30:04]Found Content-Length = 677 [14:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:04]execute_script... [14:30: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)594050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:04]POST & json_proto [14:30:04]process_json_proto [14:30:04]json parsed OK: [14:30:04]protocol is kg_v1.0 [14:30:04]action value=close_receipt [14:30:04]process_action close_receipt [14:30:04]cmd_close_receipt [14:30:04]MH_GetDate [14:30:04]Write to MH i2c: F0 00 00 92 08 89 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: F0 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: F0 09 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: F0 09 00 92 08 00 ED F9 C5 66 5F 7F 2B 66 12 [14:30:04]GetLastDocTimeStamp 1724250520 [14:30:04]current date 1724250605 [14:30:04]FM_GetShiftState [14:30:04]SAM_PROTO_GetShiftState [14:30:04]wFMCommunicate request_size=4 [14:30:04]MH_SAM_APDU [14:30:04]CAPDU: 80 13 01 00 [14:30:04]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [14:30:04]Write i2c OK [14:30:04]MH_I2C_Read... [14:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:04]Read from MH i2c: E2 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 0E 00 [14:30:04]MH_I2C_Read... [14:30:04]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [14:30:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:30:04]wFMCommunicate OK [14:30:04]SAM_PROTO_GetShiftState done [14:30:04]FM_GetShiftState done [14:30:04]opened in 1724200467 [14:30:04]opened+sec_in_day 1724286867 [14:30:04]quantity*price = 50036 [14:30:04]sum+1 = 50037 [14:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 212 21.08.2024 14:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140195 ФПД: 22322837043618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140195&fm=22322837043618&tin=02508201610067®Number=0000000000092569&sum=50000 [14:30:05]StoreToDocumentArchive [14:30:05]shift 454 fd 140195 [14:30:05]save to /storage/0454/doc_00140195 [14:30:05]save last doc name /storage/0454/doc_00140195 to /storage/kkm_last_doc_name [14:30:05]save OK [14:30:05]Clear old archive folders... [14:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:05]tlvbuf is 01C57130 [14:30:05]SAM_PROTO_ClearQueue [14:30:05]wFMCommunicate request_size=4 [14:30:05]MH_SAM_APDU [14:30:05]CAPDU: 80 09 00 00 [14:30:05]Write to MH i2c: E2 08 00 A0 08 80 09 00 00 00 00 00 00 1A [14:30:05]Write i2c OK [14:30:05]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [14:30:06]RAPDU: 90 00 [14:30:06]wFMCommunicate OK [14:30:06]SAM_PROTO_ClearQueue done [14:30:06]KKMCreateOFDPacket [14:30:06]OFDProtocolAddRootSTLVToBuf [14:30:06]FM_MakeSignedData [14:30:06]FM_MakeSignedData [14:30:06]SAM_PROTO_SignData [14:30:06]wFMCommunicate request_size=4 [14:30:06]MH_SAM_APDU [14:30:06]CAPDU: 80 0D 01 02 [14:30:06]Write to MH i2c: E2 08 00 A1 08 80 0D 01 02 00 00 00 00 22 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [14:30:06]RAPDU: 90 00 [14:30:06]wFMCommunicate OK [14:30:06]wFMCommunicate request_size=255 [14:30:06]MH_SAM_APDU [14:30: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 ED F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 23 02 00 35 04 06 00 14 [14:30:06]Write to MH i2c: E2 02 01 A2 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 ED F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 23 02 00 35 04 06 00 14 00 00 33 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [14:30:06]RAPDU: 90 00 [14:30:06]wFMCommunicate OK [14:30:06]wFMCommunicate request_size=10 [14:30:06]MH_SAM_APDU [14:30:06]CAPDU: 80 0D 02 02 05 4D 70 C5 B9 A2 [14:30:06]Write to MH i2c: E2 0D 00 A3 08 80 0D 02 02 05 00 4D 70 C5 B9 A2 00 00 0C [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [14:30:06]RAPDU: 90 00 [14:30:06]wFMCommunicate OK [14:30:06]wFMCommunicate request_size=4 [14:30:06]MH_SAM_APDU [14:30:06]CAPDU: 80 0D 03 02 [14:30:06]Write to MH i2c: E2 08 00 A4 08 80 0D 03 02 00 00 00 00 27 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 0B 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 0B 00 A4 08 00 63 63 74 3A F6 8F A1 1A 90 00 DC [14:30:06]RAPDU: 63 63 74 3A F6 8F A1 1A 90 00 [14:30:06]wFMCommunicate OK [14:30:06]SAM_PROTO_SignData done [14:30:06]FM_MakeSignedData done [14:30:06]CreateOFDProtocolMessage [14:30:06]wFMCommunicate request_size=4 [14:30:06]MH_SAM_APDU [14:30:06]CAPDU: 80 11 00 00 [14:30:06]Write to MH i2c: E2 08 00 A5 08 80 11 00 00 00 00 00 00 27 [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:06]Read from MH i2c: E2 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 17 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: E2 17 00 A5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [14:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:30:06]wFMCommunicate OK [14:30:06]CreateOFDProtocolMessage done [14:30:06]OFDSenderStorePacket 140195 [14:30:06]StoreOFDPacket docnum=140195 [14:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 6E 07 01 FB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 ED F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 23 02 00 35 04 06 00 14 4D 70 C5 B9 A2 63 63 74 3A F6 8F A1 1A [14:30:06]CheckFolder [14:30:06]dirname=/storage/ofd_packets [14:30:06]CheckFolder done [14:30:06]ProducePacketName [14:30:06]name=ofd_packets/00140195 [14:30:06]NVStorageSaveData ofd_packets/00140195 [14:30:06]File name is /storage/ofd_packets/00140195 [14:30:06]Write 301 bytes [14:30:06]NVStorageSaveData done [14:30:06]OFDSenderStorePacket done [14:30:06]KKMCreateOFDPacket done [14:30:06]NVStorageSaveData kkm_last_timestamp [14:30:06]File name is /storage/kkm_last_timestamp [14:30:06]Write 4 bytes [14:30:06]NVStorageSaveData done [14:30:06]ExternCall_PrintAddStr [14:30:06]wPrintStart [14:30:06]Write to MH i2c: 01 00 00 A6 08 AE [14:30:06]Write i2c OK [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 07 00 [14:30:06]MH_I2C_Read... [14:30:06]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [14:30:06]RasterBufferAndPrint [14:30:06]line Счет N : (1)594050 [14:30:06]line ИНН: 02508201610067 [14:30:06]line Контрольно-Кассовый Чек [14:30:06]line ПРОДАЖА [14:30:06]line ТРК (МРК, ГНК) : 52 [14:30:06]line Товар: 2710124130 [14:30:06]line Аи-92-К-5 [14:30:06]line 7.380 * 67.80 [14:30:06]line = 500.36 [14:30:06]line НДС 12% НСП 1% [14:30:06]line > о реализуемом товаре [14:30:06]line ОКРУГЛЕНИЕ: -0.36 [14:30:06]line ИТОГО: 500.00 [14:30:06]line Внесено: 500.00 [14:30:06]line СДАЧА: 0.00 [14:30:06]line НСП 1% : 4.43 [14:30:06]line НДС 12% : 53.14 [14:30:06]line Наличными: 500.00 [14:30:06]line Безнал.: 0.00 [14:30:06]line Место: АЗС № 136 "Партнер Нефть" [14:30:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:30:06]line СНО: Общий режим [14:30:06]line Чек 212 21.08.2024 14:30 [14:30:06]line Смена: 454 ФФД: 1.0 [14:30:06]line ЗНМ: 0300000067 [14:30:06]line РНМ: 0000000000092569 [14:30:06]line Версия ККМ: 001 [14:30:06]line ФМ: 0000000000871776 [14:30:06]line ФД: 140195 [14:30:06]line ФПД: 22322837043618 [14:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143005&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140195&fm=22322837043618&tin=02508201610067®Number=0000000000092569&sum=50000 [14:30:06]written 0, free lines is 4095 [14:30:06]OFD Sender: Processing packet 140195 [packets to send 137, broken 136] [14:30:06]ProducePacketName [14:30:06]name=ofd_packets/00140195 [14:30:06]OFD Sender: To server: pG, [14:30:06]CommunicateWithHost lk.salyk.kg:30040 [14:30:06]ConnectInit lk.salyk.kg [14:30:06]Connected sock=10 [14:30: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 37 36 0F 01 00 00 21 6E 07 01 FB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 ED F9 C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A3 23 02 00 35 04 06 00 14 4D 70 C5 B9 A2 63 63 74 3A F6 8F A1 1A [14:30: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 37 36 4F 00 00 00 CA 67 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 37 36 10 04 04 00 A3 23 02 00 F4 03 04 00 7E A0 C5 66 B6 04 01 00 00 40 F1 FD 36 7F 10 14 7B [14:30:07]CommunicateWithHost err = 0 [14:30:07]CheckOFDResponse [14:30:07]1017 (14) - 77093643461234 [14:30:07]1041 (16) - 0000000000871776 [14:30:07]1040 (4) - 140195 [14:30:07]1012 (4) - 21.08.2024 08:08 [14:30:07]1206 (1) - 0 [14:30:07]OFD Sender: Remove packet 140195 [14:30:07]ProducePacketName [14:30:07]name=ofd_packets/00140195 [14:30:07]NVStorageDeleteData [14:30:07]Write to MH i2c: 01 00 00 D1 08 D9 [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: 01 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: 01 07 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 E1 0C CD [14:30:07]RasterBufferAndPrint [14:30:07]line [14:30:07]line [14:30:07]line [14:30:07]line [14:30:07]line [14:30:07]written 0, free lines is 3303 [14:30:07]MH_Cut [14:30:07]Write to MH i2c: D1 01 00 D8 08 01 B2 [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: D1 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: D1 01 00 [14:30:07]MH_I2C_Read... [14:30:07]Read from MH i2c: D1 01 00 D8 08 00 B1 [14:30:07]Write to MH i2c: 01 00 00 D9 08 E1 [14:30:07]Write i2c OK [14:30:07]MH_I2C_Read... [14:30:07]OFD Sender: No OFD packet to send [14:30:07]*** Cut start [14:30:07]*** Partial cut [14:30:07]*** CUTSNS_PIN = 1 [14:30:08]*** CUTSNS_PIN = 0 [14:30:08]*** Brake cut motor [14:30:08]Read from MH i2c: 01 [14:30:08]MH_I2C_Read... [14:30:08]*** Stop cut motor [14:30:08]*** Cut end [14:30:08]Read from MH i2c: 01 07 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [14:30:08]process_action close_receipt done [14:30:08]requested_data is exist [14:30:08]produce_requested_data [14:30:08]requested_item fm.sn is exist - process it [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 11 00 00 [14:30:08]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [14:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:30:08]wFMCommunicate OK [14:30:08]requested_item fd.num is exist - process it [14:30:08]SAM_PROTO_GetFieldsCounters [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 13 00 00 [14:30:08]Write to MH i2c: E2 08 00 DB 08 80 13 00 00 00 00 00 00 5F [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 62 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 62 00 DB 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [14:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_GetFieldsCounters done [14:30:08]requested_item shift.num is exist - process it [14:30:08]requested_item shift.opened is exist - process it [14:30:08]req_shift_opened [14:30:08]FM_GetShiftState [14:30:08]SAM_PROTO_GetShiftState [14:30:08]wFMCommunicate request_size=4 [14:30:08]MH_SAM_APDU [14:30:08]CAPDU: 80 13 01 00 [14:30:08]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [14:30:08]Write i2c OK [14:30:08]MH_I2C_Read... [14:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:08]Read from MH i2c: E2 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0E 00 [14:30:08]MH_I2C_Read... [14:30:08]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E1 [14:30:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:30:08]wFMCommunicate OK [14:30:08]SAM_PROTO_GetShiftState done [14:30:08]FM_GetShiftState done [14:30:08]req_shift_opened done [14:30:08]requested_item shift.open_date is exist - process it [14:30:08]req_shift_open_date [14:30:08]req_shift_open_date done [14:30:08]produce_requested_data done [14:30:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140195,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:30:08]process_action_free close_receipt [14:30:08]json_value_free [14:30:08]json_value_free done [14:30:08]process_json_proto returns [14:30:08]Send response to host [14:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140195,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:30:08]free response buf [14:30:08]execute_script done [14:30:08]execute_script returns [14:30:08]free content buf [14:30:08]Sock 9.Close socket [14:30:08]Sock 9.Thread stoped [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:42]accept exits with 8 [14:30:42]New connection [14:30:42]New thread 3067592036 created [14:30:42]Thread 3067448676 joined [14:30:42]Waiting for new connection... [14:30:42] Sock 8.Parse request [14:30:42]Sock 8.Check first char [14:30:42]Sock 8.First char is OK [14:30:42]request: POST /json_proto HTTP/1.0 [14:30:42]Method: POST [14:30:42]URL: /json_proto [14:30:42]Method is POST - this is cgi request [14:30:42]url: /json_proto [14:30:42]query_string will be loaded in cgi processing [14:30:42]execute_cgi json_proto POST (null) [14:30:42]execute_cgi path=json_proto method=POST [14:30:42]POST find Content-Length [14:30:42]Host: 172.17.45.67:8080 [14:30:42]Content-Length: 658 [14:30:42]Content-Type: application/json [14:30:42] [14:30:42]POST finish read [14:30:42]Found Content-Length = 658 [14:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:42]execute_script... [14:30: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)594051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:42]POST & json_proto [14:30:42]process_json_proto [14:30:42]json parsed OK: [14:30:42]protocol is kg_v1.0 [14:30:42]action value=close_receipt [14:30:42]process_action close_receipt [14:30:42]cmd_close_receipt [14:30:42]MH_GetDate [14:30:42]Write to MH i2c: F0 00 00 DD 08 D4 [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: F0 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: F0 09 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: F0 09 00 DD 08 00 13 FA C5 66 5F 7F 2B 66 84 [14:30:42]GetLastDocTimeStamp 1724250605 [14:30:42]current date 1724250643 [14:30:42]FM_GetShiftState [14:30:42]SAM_PROTO_GetShiftState [14:30:42]wFMCommunicate request_size=4 [14:30:42]MH_SAM_APDU [14:30:42]CAPDU: 80 13 01 00 [14:30:42]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [14:30:42]Write i2c OK [14:30:42]MH_I2C_Read... [14:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:42]Read from MH i2c: E2 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 [14:30:42]MH_I2C_Read... [14:30:42]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [14:30:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:30:42]wFMCommunicate OK [14:30:42]SAM_PROTO_GetShiftState done [14:30:42]FM_GetShiftState done [14:30:42]opened in 1724200467 [14:30:42]opened+sec_in_day 1724286867 [14:30:42]quantity*price = 50017 [14:30:42]sum+1 = 50019 [14:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 213 21.08.2024 14:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140196 ФПД: 188038475403589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140196&fm=188038475403589&tin=02508201610067®Number=0000000000092569&sum=50000 [14:30:43]StoreToDocumentArchive [14:30:43]shift 454 fd 140196 [14:30:43]save to /storage/0454/doc_00140196 [14:30:43]save last doc name /storage/0454/doc_00140196 to /storage/kkm_last_doc_name [14:30:43]save OK [14:30:43]Clear old archive folders... [14:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:30:43]tlvbuf is 01C52300 [14:30:43]SAM_PROTO_ClearQueue [14:30:43]wFMCommunicate request_size=4 [14:30:43]MH_SAM_APDU [14:30:43]CAPDU: 80 09 00 00 [14:30:43]Write to MH i2c: E2 08 00 EB 08 80 09 00 00 00 00 00 00 65 [14:30:43]Write i2c OK [14:30:43]MH_I2C_Read... [14:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [14:30:44]RAPDU: 90 00 [14:30:44]wFMCommunicate OK [14:30:44]SAM_PROTO_ClearQueue done [14:30:44]KKMCreateOFDPacket [14:30:44]OFDProtocolAddRootSTLVToBuf [14:30:44]FM_MakeSignedData [14:30:44]FM_MakeSignedData [14:30:44]SAM_PROTO_SignData [14:30:44]wFMCommunicate request_size=4 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 0D 01 02 [14:30:44]Write to MH i2c: E2 08 00 EC 08 80 0D 01 02 00 00 00 00 6D [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [14:30:44]RAPDU: 90 00 [14:30:44]wFMCommunicate OK [14:30:44]wFMCommunicate request_size=253 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 13 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 23 02 00 35 04 06 00 AB 05 1E 87 D1 45 [14:30:44]Write to MH i2c: E2 00 01 ED 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 13 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 23 02 00 35 04 06 00 AB 05 1E 87 D1 45 00 00 8E [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [14:30:44]RAPDU: 90 00 [14:30:44]wFMCommunicate OK [14:30:44]wFMCommunicate request_size=4 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 0D 03 02 [14:30:44]Write to MH i2c: E2 08 00 EE 08 80 0D 03 02 00 00 00 00 71 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 0B 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 0B 00 EE 08 00 99 49 A0 0F 08 FA 4B 3F 90 00 8F [14:30:44]RAPDU: 99 49 A0 0F 08 FA 4B 3F 90 00 [14:30:44]wFMCommunicate OK [14:30:44]SAM_PROTO_SignData done [14:30:44]FM_MakeSignedData done [14:30:44]CreateOFDProtocolMessage [14:30:44]wFMCommunicate request_size=4 [14:30:44]MH_SAM_APDU [14:30:44]CAPDU: 80 11 00 00 [14:30:44]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:44]Read from MH i2c: E2 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 17 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [14:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:30:44]wFMCommunicate OK [14:30:44]CreateOFDProtocolMessage done [14:30:44]OFDSenderStorePacket 140196 [14:30:44]StoreOFDPacket docnum=140196 [14:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 F5 44 00 01 84 B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 13 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 23 02 00 35 04 06 00 AB 05 1E 87 D1 45 99 49 A0 0F 08 FA 4B 3F [14:30:44]CheckFolder [14:30:44]dirname=/storage/ofd_packets [14:30:44]CheckFolder done [14:30:44]ProducePacketName [14:30:44]name=ofd_packets/00140196 [14:30:44]NVStorageSaveData ofd_packets/00140196 [14:30:44]File name is /storage/ofd_packets/00140196 [14:30:44]Write 294 bytes [14:30:44]NVStorageSaveData done [14:30:44]OFDSenderStorePacket done [14:30:44]KKMCreateOFDPacket done [14:30:44]NVStorageSaveData kkm_last_timestamp [14:30:44]File name is /storage/kkm_last_timestamp [14:30:44]Write 4 bytes [14:30:44]NVStorageSaveData done [14:30:44]ExternCall_PrintAddStr [14:30:44]wPrintStart [14:30:44]Write to MH i2c: 01 00 00 F0 08 F8 [14:30:44]Write i2c OK [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 07 00 [14:30:44]MH_I2C_Read... [14:30:44]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [14:30:44]RasterBufferAndPrint [14:30:44]line Счет N : (1)594051 [14:30:44]line ИНН: 02508201610067 [14:30:44]line Контрольно-Кассовый Чек [14:30:44]line ПРОДАЖА [14:30:44]line ТРК (МРК, ГНК) : 43 [14:30:44]line Товар: 2710124130 [14:30:44]line SU-92 [14:30:44]line 7.270 * 68.80 [14:30:44]line = 500.18 [14:30:44]line НДС 12% НСП 1% [14:30:44]line > о реализуемом товаре [14:30:44]line ОКРУГЛЕНИЕ: -0.18 [14:30:44]line ИТОГО: 500.00 [14:30:44]line Внесено: 500.00 [14:30:44]line СДАЧА: 0.00 [14:30:44]line НСП 1% : 4.43 [14:30:44]line НДС 12% : 53.12 [14:30:44]line Наличными: 500.00 [14:30:44]line Безнал.: 0.00 [14:30:44]line Место: АЗС № 136 "Партнер Нефть" [14:30:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:30:44]line СНО: Общий режим [14:30:44]line Чек 213 21.08.2024 14:30 [14:30:44]line Смена: 454 ФФД: 1.0 [14:30:44]line ЗНМ: 0300000067 [14:30:44]line РНМ: 0000000000092569 [14:30:44]line Версия ККМ: 001 [14:30:44]line ФМ: 0000000000871776 [14:30:44]line ФД: 140196 [14:30:44]line ФПД: 188038475403589 [14:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140196&fm=188038475403589&tin=02508201610067®Number=0000000000092569&sum=50000 [14:30:44]OFD Sender: Processing packet 140196 [packets to send 137, broken 136] [14:30:44]ProducePacketName [14:30:44]name=ofd_packets/00140196 [14:30:44]OFD Sender: To server: pG, [14:30:44]CommunicateWithHost lk.salyk.kg:30040 [14:30:44]ConnectInit lk.salyk.kg [14:30:44]written 0, free lines is 4095 [14:30:44]Connected sock=9 [14:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 F5 44 00 01 84 B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 13 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A4 23 02 00 35 04 06 00 AB 05 1E 87 D1 45 99 49 A0 0F 08 FA 4B 3F [14:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 81 D9 47 00 18 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 37 36 10 04 04 00 A4 23 02 00 F4 03 04 00 A4 A0 C5 66 B6 04 01 00 00 EB EF B5 95 2A FD 6E 2C [14:30:45]CommunicateWithHost err = 0 [14:30:45]CheckOFDResponse [14:30:45]1017 (14) - 77093643461234 [14:30:45]1041 (16) - 0000000000871776 [14:30:45]1040 (4) - 140196 [14:30:45]1012 (4) - 21.08.2024 08:09 [14:30:45]1206 (1) - 0 [14:30:45]OFD Sender: Remove packet 140196 [14:30:45]ProducePacketName [14:30:45]name=ofd_packets/00140196 [14:30:45]NVStorageDeleteData [14:30:45]Write to MH i2c: 01 00 00 1B 09 24 [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: 01 07 00 1B 09 00 00 00 00 00 E2 0C 19 [14:30:45]RasterBufferAndPrint [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]line [14:30:45]written 0, free lines is 3304 [14:30:45]MH_Cut [14:30:45]Write to MH i2c: D1 01 00 22 09 01 FD [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 01 00 [14:30:45]MH_I2C_Read... [14:30:45]Read from MH i2c: D1 01 00 22 09 00 FC [14:30:45]Write to MH i2c: 01 00 00 23 09 2C [14:30:45]Write i2c OK [14:30:45]MH_I2C_Read... [14:30:45]OFD Sender: No OFD packet to send [14:30:45]*** Cut start [14:30:45]*** Partial cut [14:30:45]*** CUTSNS_PIN = 1 [14:30:45]*** CUTSNS_PIN = 0 [14:30:46]*** Brake cut motor [14:30:46]Read from MH i2c: 01 [14:30:46]MH_I2C_Read... [14:30:46]*** Stop cut motor [14:30:46]*** Cut end [14:30:46]Read from MH i2c: 01 07 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [14:30:46]process_action close_receipt done [14:30:46]requested_data is exist [14:30:46]produce_requested_data [14:30:46]requested_item fm.sn is exist - process it [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 11 00 00 [14:30:46]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 17 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [14:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:30:46]wFMCommunicate OK [14:30:46]requested_item fd.num is exist - process it [14:30:46]SAM_PROTO_GetFieldsCounters [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 13 00 00 [14:30:46]Write to MH i2c: E2 08 00 25 09 80 13 00 00 00 00 00 00 AA [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 62 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 62 00 25 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:46]wFMCommunicate OK [14:30:46]SAM_PROTO_GetFieldsCounters done [14:30:46]requested_item shift.num is exist - process it [14:30:46]requested_item shift.opened is exist - process it [14:30:46]req_shift_opened [14:30:46]FM_GetShiftState [14:30:46]SAM_PROTO_GetShiftState [14:30:46]wFMCommunicate request_size=4 [14:30:46]MH_SAM_APDU [14:30:46]CAPDU: 80 13 01 00 [14:30:46]Write to MH i2c: E2 08 00 26 09 80 13 01 00 00 00 00 00 AC [14:30:46]Write i2c OK [14:30:46]MH_I2C_Read... [14:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:46]Read from MH i2c: E2 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 0E 00 [14:30:46]MH_I2C_Read... [14:30:46]Read from MH i2c: E2 0E 00 26 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2C [14:30:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:30:46]wFMCommunicate OK [14:30:46]SAM_PROTO_GetShiftState done [14:30:46]FM_GetShiftState done [14:30:46]req_shift_opened done [14:30:46]requested_item shift.open_date is exist - process it [14:30:46]req_shift_open_date [14:30:46]req_shift_open_date done [14:30:46]produce_requested_data done [14:30:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140196,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:30:46]process_action_free close_receipt [14:30:46]json_value_free [14:30:46]json_value_free done [14:30:46]process_json_proto returns [14:30:46]Send response to host [14:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140196,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:30:46]free response buf [14:30:46]execute_script done [14:30:46]execute_script returns [14:30:46]free content buf [14:30:46]Sock 8.Close socket [14:30:46]Sock 8.Thread stoped [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:07]accept exits with 10 [14:31:07]New connection [14:31:07]New thread 3067448676 created [14:31:07]Thread 3067592036 joined [14:31:07]Waiting for new connection... [14:31:07] Sock 10.Parse request [14:31:07]Sock 10.Check first char [14:31:07]Sock 10.First char is OK [14:31:07]request: POST /json_proto HTTP/1.0 [14:31:07]Method: POST [14:31:07]URL: /json_proto [14:31:07]Method is POST - this is cgi request [14:31:07]url: /json_proto [14:31:07]query_string will be loaded in cgi processing [14:31:07]execute_cgi json_proto POST (null) [14:31:07]execute_cgi path=json_proto method=POST [14:31:07]POST find Content-Length [14:31:07]Host: 172.17.45.67:8080 [14:31:07]Content-Length: 677 [14:31:07]Content-Type: application/json [14:31:07] [14:31:07]POST finish read [14:31:07]Found Content-Length = 677 [14:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:07]execute_script... [14:31: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)594052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:07]POST & json_proto [14:31:07]process_json_proto [14:31:07]json parsed OK: [14:31:07]protocol is kg_v1.0 [14:31:07]action value=close_receipt [14:31:07]process_action close_receipt [14:31:07]cmd_close_receipt [14:31:07]MH_GetDate [14:31:07]Write to MH i2c: F0 00 00 27 09 1F [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 09 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: F0 09 00 27 09 00 2C FA C5 66 5F 7F 2B 66 E8 [14:31:07]GetLastDocTimeStamp 1724250643 [14:31:07]current date 1724250668 [14:31:07]FM_GetShiftState [14:31:07]SAM_PROTO_GetShiftState [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 13 01 00 [14:31:07]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [14:31:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_GetShiftState done [14:31:08]FM_GetShiftState done [14:31:08]opened in 1724200467 [14:31:08]opened+sec_in_day 1724286867 [14:31:08]quantity*price = 12000 [14:31:08]sum+1 = 12002 [14:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 214 21.08.2024 14:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140197 ФПД: 68852030600327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140197&fm=68852030600327&tin=02508201610067®Number=0000000000092569&sum=12000 [14:31:09]StoreToDocumentArchive [14:31:09]shift 454 fd 140197 [14:31:09]save to /storage/0454/doc_00140197 [14:31:09]save last doc name /storage/0454/doc_00140197 to /storage/kkm_last_doc_name [14:31:09]save OK [14:31:09]Clear old archive folders... [14:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:09]tlvbuf is 01C51E40 [14:31:09]SAM_PROTO_ClearQueue [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 09 00 00 [14:31:09]Write to MH i2c: E2 08 00 35 09 80 09 00 00 00 00 00 00 B0 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [14:31:09]RAPDU: 90 00 [14:31:09]wFMCommunicate OK [14:31:09]SAM_PROTO_ClearQueue done [14:31:09]KKMCreateOFDPacket [14:31:09]OFDProtocolAddRootSTLVToBuf [14:31:09]FM_MakeSignedData [14:31:09]FM_MakeSignedData [14:31:09]SAM_PROTO_SignData [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 0D 01 02 [14:31:09]Write to MH i2c: E2 08 00 36 09 80 0D 01 02 00 00 00 00 B8 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [14:31:09]RAPDU: 90 00 [14:31:09]wFMCommunicate OK [14:31:09]wFMCommunicate request_size=255 [14:31:09]MH_SAM_APDU [14:31: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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 2C FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 23 02 00 35 04 06 00 3E [14:31:09]Write to MH i2c: E2 02 01 37 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 2C FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 23 02 00 35 04 06 00 3E 00 00 DB [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [14:31:09]RAPDU: 90 00 [14:31:09]wFMCommunicate OK [14:31:09]wFMCommunicate request_size=10 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 0D 02 02 05 9E DC D3 74 87 [14:31:09]Write to MH i2c: E2 0D 00 38 09 80 0D 02 02 05 00 9E DC D3 74 87 00 00 0D [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [14:31:09]RAPDU: 90 00 [14:31:09]wFMCommunicate OK [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 0D 03 02 [14:31:09]Write to MH i2c: E2 08 00 39 09 80 0D 03 02 00 00 00 00 BD [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0B 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 0B 00 39 09 00 0E 56 D9 54 F0 A9 B2 55 90 00 EF [14:31:09]RAPDU: 0E 56 D9 54 F0 A9 B2 55 90 00 [14:31:09]wFMCommunicate OK [14:31:09]SAM_PROTO_SignData done [14:31:09]FM_MakeSignedData done [14:31:09]CreateOFDProtocolMessage [14:31:09]wFMCommunicate request_size=4 [14:31:09]MH_SAM_APDU [14:31:09]CAPDU: 80 11 00 00 [14:31:09]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:09]Read from MH i2c: E2 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 17 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [14:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:31:09]wFMCommunicate OK [14:31:09]CreateOFDProtocolMessage done [14:31:09]OFDSenderStorePacket 140197 [14:31:09]StoreOFDPacket docnum=140197 [14:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5B 69 07 01 DD 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 2C FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 23 02 00 35 04 06 00 3E 9E DC D3 74 87 0E 56 D9 54 F0 A9 B2 55 [14:31:09]CheckFolder [14:31:09]dirname=/storage/ofd_packets [14:31:09]CheckFolder done [14:31:09]ProducePacketName [14:31:09]name=ofd_packets/00140197 [14:31:09]NVStorageSaveData ofd_packets/00140197 [14:31:09]File name is /storage/ofd_packets/00140197 [14:31:09]Write 301 bytes [14:31:09]NVStorageSaveData done [14:31:09]OFDSenderStorePacket done [14:31:09]KKMCreateOFDPacket done [14:31:09]NVStorageSaveData kkm_last_timestamp [14:31:09]File name is /storage/kkm_last_timestamp [14:31:09]Write 4 bytes [14:31:09]NVStorageSaveData done [14:31:09]ExternCall_PrintAddStr [14:31:09]wPrintStart [14:31:09]Write to MH i2c: 01 00 00 3B 09 44 [14:31:09]Write i2c OK [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 [14:31:09]MH_I2C_Read... [14:31:09]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 FF 0F 59 [14:31:09]RasterBufferAndPrint [14:31:09]line Счет N : (1)594052 [14:31:09]line ИНН: 02508201610067 [14:31:09]line Контрольно-Кассовый Чек [14:31:09]line ПРОДАЖА [14:31:09]line ТРК (МРК, ГНК) : 62 [14:31:09]line Товар: 2710124130 [14:31:09]line Аи-92-К-5 [14:31:09]line 1.770 * 67.80 [14:31:09]line = 120.01 [14:31:09]line НДС 12% НСП 1% [14:31:09]line > о реализуемом товаре [14:31:09]line ОКРУГЛЕНИЕ: -0.01 [14:31:09]line ИТОГО: 120.00 [14:31:09]line Внесено: 120.00 [14:31:09]line СДАЧА: 0.00 [14:31:09]line НСП 1% : 1.06 [14:31:09]line НДС 12% : 12.74 [14:31:09]line Наличными: 120.00 [14:31:09]line Безнал.: 0.00 [14:31:09]line Место: АЗС № 136 "Партнер Нефть" [14:31:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:31:09]line СНО: Общий режим [14:31:09]line Чек 214 21.08.2024 14:31 [14:31:09]line Смена: 454 ФФД: 1.0 [14:31:09]line ЗНМ: 0300000067 [14:31:09]line РНМ: 0000000000092569 [14:31:09]line Версия ККМ: 001 [14:31:09]line ФМ: 0000000000871776 [14:31:09]line ФД: 140197 [14:31:09]line ФПД: 68852030600327 [14:31:09]OFD Sender: Processing packet 140197 [packets to send 137, broken 136] [14:31:09]ProducePacketName [14:31:09]name=ofd_packets/00140197 [14:31:09]OFD Sender: To server: pG, [14:31:09]CommunicateWithHost lk.salyk.kg:30040 [14:31:09]ConnectInit lk.salyk.kg [14:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140197&fm=68852030600327&tin=02508201610067®Number=0000000000092569&sum=12000 [14:31:09]written 0, free lines is 4095 [14:31:09]Connected sock=11 [14:31: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 37 36 0F 01 00 00 5B 69 07 01 DD 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 2C FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A5 23 02 00 35 04 06 00 3E 9E DC D3 74 87 0E 56 D9 54 F0 A9 B2 55 [14:31:10]Write to MH i2c: 01 00 00 66 09 6F [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 07 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: 01 07 00 66 09 00 00 00 00 00 D3 0C 55 [14:31:10]RasterBufferAndPrint [14:31:10]line [14:31:10]line [14:31:10]line [14:31:10]line [14:31:10]line [14:31:10]written 0, free lines is 3288 [14:31:10]MH_Cut [14:31:10]Write to MH i2c: D1 01 00 6D 09 01 48 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: D1 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: D1 01 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: D1 01 00 6D 09 00 47 [14:31:10]Write to MH i2c: 01 00 00 6E 09 77 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31: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 37 36 4F 00 00 00 D8 89 47 00 32 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 37 36 10 04 04 00 A5 23 02 00 F4 03 04 00 BD A0 C5 66 B6 04 01 00 00 9D B3 B8 08 0E 5C 98 96 [14:31:10]CommunicateWithHost err = 0 [14:31:10]CheckOFDResponse [14:31:10]1017 (14) - 77093643461234 [14:31:10]1041 (16) - 0000000000871776 [14:31:10]1040 (4) - 140197 [14:31:10]1012 (4) - 21.08.2024 08:09 [14:31:10]1206 (1) - 0 [14:31:10]OFD Sender: Remove packet 140197 [14:31:10]ProducePacketName [14:31:10]name=ofd_packets/00140197 [14:31:10]NVStorageDeleteData [14:31:10]OFD Sender: No OFD packet to send [14:31:10]*** Cut start [14:31:10]*** Partial cut [14:31:10]*** CUTSNS_PIN = 1 [14:31:10]*** CUTSNS_PIN = 0 [14:31:11]*** Brake cut motor [14:31:11]Read from MH i2c: 01 [14:31:11]MH_I2C_Read... [14:31:11]*** Stop cut motor [14:31:11]*** Cut end [14:31:11]Read from MH i2c: 01 07 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: 01 07 00 6E 09 00 00 00 00 00 FF 0F 8C [14:31:11]process_action close_receipt done [14:31:11]requested_data is exist [14:31:11]produce_requested_data [14:31:11]requested_item fm.sn is exist - process it [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 11 00 00 [14:31:11]Write to MH i2c: E2 08 00 6F 09 80 11 00 00 00 00 00 00 F2 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 17 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 17 00 6F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [14:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:31:11]wFMCommunicate OK [14:31:11]requested_item fd.num is exist - process it [14:31:11]SAM_PROTO_GetFieldsCounters [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 00 00 [14:31:11]Write to MH i2c: E2 08 00 70 09 80 13 00 00 00 00 00 00 F5 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 62 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 62 00 70 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [14:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetFieldsCounters done [14:31:11]requested_item shift.num is exist - process it [14:31:11]requested_item shift.opened is exist - process it [14:31:11]req_shift_opened [14:31:11]FM_GetShiftState [14:31:11]SAM_PROTO_GetShiftState [14:31:11]wFMCommunicate request_size=4 [14:31:11]MH_SAM_APDU [14:31:11]CAPDU: 80 13 01 00 [14:31:11]Write to MH i2c: E2 08 00 71 09 80 13 01 00 00 00 00 00 F7 [14:31:11]Write i2c OK [14:31:11]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 71 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 77 [14:31:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetShiftState done [14:31:11]FM_GetShiftState done [14:31:11]req_shift_opened done [14:31:11]requested_item shift.open_date is exist - process it [14:31:11]req_shift_open_date [14:31:11]req_shift_open_date done [14:31:11]produce_requested_data done [14:31:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140197,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:31:11]process_action_free close_receipt [14:31:11]json_value_free [14:31:11]json_value_free done [14:31:11]process_json_proto returns [14:31:11]Send response to host [14:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140197,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:31:11]free response buf [14:31:11]execute_script done [14:31:11]execute_script returns [14:31:11]free content buf [14:31:11]Sock 10.Close socket [14:31:11]Sock 10.Thread stoped [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:33:56]accept exits with 8 [14:33:56]New connection [14:33:56]New thread 3067592036 created [14:33:56]Thread 3067448676 joined [14:33:56]Waiting for new connection... [14:33:56] Sock 8.Parse request [14:33:56]Sock 8.Check first char [14:33:56]Sock 8.First char is OK [14:33:56]request: POST /json_proto HTTP/1.0 [14:33:56]Method: POST [14:33:56]URL: /json_proto [14:33:56]Method is POST - this is cgi request [14:33:56]url: /json_proto [14:33:56]query_string will be loaded in cgi processing [14:33:56]execute_cgi json_proto POST (null) [14:33:56]execute_cgi path=json_proto method=POST [14:33:56]POST find Content-Length [14:33:56]Host: 172.17.45.67:8080 [14:33:56]Content-Length: 677 [14:33:56]Content-Type: application/json [14:33:56] [14:33:56]POST finish read [14:33:56]Found Content-Length = 677 [14:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:56]execute_script... [14: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)594053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:56]POST & json_proto [14:33:56]process_json_proto [14:33:56]json parsed OK: [14:33:56]protocol is kg_v1.0 [14:33:56]action value=close_receipt [14:33:56]process_action close_receipt [14:33:56]cmd_close_receipt [14:33:56]MH_GetDate [14:33:56]Write to MH i2c: F0 00 00 72 09 6A [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: F0 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: F0 09 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: F0 09 00 72 09 00 D5 FA C5 66 5F 7F 2B 66 DC [14:33:56]GetLastDocTimeStamp 1724250668 [14:33:56]current date 1724250837 [14:33:56]FM_GetShiftState [14:33:56]SAM_PROTO_GetShiftState [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 13 01 00 [14:33:56]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0E 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [14:33:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:33:56]wFMCommunicate OK [14:33:56]SAM_PROTO_GetShiftState done [14:33:56]FM_GetShiftState done [14:33:56]opened in 1724200467 [14:33:56]opened+sec_in_day 1724286867 [14:33:56]quantity*price = 50036 [14:33:56]sum+1 = 50037 [14:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 215 21.08.2024 14:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140198 ФПД: 188273334758474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140198&fm=188273334758474&tin=02508201610067®Number=0000000000092569&sum=50000 [14:33:57]StoreToDocumentArchive [14:33:57]shift 454 fd 140198 [14:33:57]save to /storage/0454/doc_00140198 [14:33:57]save last doc name /storage/0454/doc_00140198 to /storage/kkm_last_doc_name [14:33:57]save OK [14:33:57]Clear old archive folders... [14:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:57]tlvbuf is 01C67490 [14:33:57]SAM_PROTO_ClearQueue [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 09 00 00 [14:33:57]Write to MH i2c: E2 08 00 80 09 80 09 00 00 00 00 00 00 FB [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_ClearQueue done [14:33:58]KKMCreateOFDPacket [14:33:58]OFDProtocolAddRootSTLVToBuf [14:33:58]FM_MakeSignedData [14:33:58]FM_MakeSignedData [14:33:58]SAM_PROTO_SignData [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 01 02 [14:33:58]Write to MH i2c: E2 08 00 81 09 80 0D 01 02 00 00 00 00 03 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=255 [14:33:58]MH_SAM_APDU [14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 23 02 00 35 04 06 00 AB [14:33:58]Write to MH i2c: E2 02 01 82 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 23 02 00 35 04 06 00 AB 00 00 9A [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=10 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 02 02 05 3B CD 3D 2C 4A [14:33:58]Write to MH i2c: E2 0D 00 83 09 80 0D 02 02 05 00 3B CD 3D 2C 4A 00 00 CB [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [14:33:58]RAPDU: 90 00 [14:33:58]wFMCommunicate OK [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 0D 03 02 [14:33:58]Write to MH i2c: E2 08 00 84 09 80 0D 03 02 00 00 00 00 08 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 0B 00 84 09 00 12 67 CF 37 4C 82 19 A9 90 00 18 [14:33:58]RAPDU: 12 67 CF 37 4C 82 19 A9 90 00 [14:33:58]wFMCommunicate OK [14:33:58]SAM_PROTO_SignData done [14:33:58]FM_MakeSignedData done [14:33:58]CreateOFDProtocolMessage [14:33:58]wFMCommunicate request_size=4 [14:33:58]MH_SAM_APDU [14:33:58]CAPDU: 80 11 00 00 [14:33:58]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:58]Read from MH i2c: E2 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [14:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:33:58]wFMCommunicate OK [14:33:58]CreateOFDProtocolMessage done [14:33:58]OFDSenderStorePacket 140198 [14:33:58]StoreOFDPacket docnum=140198 [14:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C9 DA 07 01 9C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 23 02 00 35 04 06 00 AB 3B CD 3D 2C 4A 12 67 CF 37 4C 82 19 A9 [14:33:58]CheckFolder [14:33:58]dirname=/storage/ofd_packets [14:33:58]CheckFolder done [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00140198 [14:33:58]NVStorageSaveData ofd_packets/00140198 [14:33:58]File name is /storage/ofd_packets/00140198 [14:33:58]Write 301 bytes [14:33:58]NVStorageSaveData done [14:33:58]OFDSenderStorePacket done [14:33:58]KKMCreateOFDPacket done [14:33:58]NVStorageSaveData kkm_last_timestamp [14:33:58]File name is /storage/kkm_last_timestamp [14:33:58]Write 4 bytes [14:33:58]NVStorageSaveData done [14:33:58]ExternCall_PrintAddStr [14:33:58]wPrintStart [14:33:58]Write to MH i2c: 01 00 00 86 09 8F [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 86 09 00 00 00 00 00 FF 0F A4 [14:33:58]RasterBufferAndPrint [14:33:58]line Счет N : (1)594053 [14:33:58]line ИНН: 02508201610067 [14:33:58]line Контрольно-Кассовый Чек [14:33:58]line ПРОДАЖА [14:33:58]line ТРК (МРК, ГНК) : 62 [14:33:58]line Товар: 2710124130 [14:33:58]line Аи-92-К-5 [14:33:58]line 7.380 * 67.80 [14:33:58]line = 500.36 [14:33:58]line НДС 12% НСП 1% [14:33:58]line > о реализуемом товаре [14:33:58]line ОКРУГЛЕНИЕ: -0.36 [14:33:58]line ИТОГО: 500.00 [14:33:58]line Внесено: 500.00 [14:33:58]line СДАЧА: 0.00 [14:33:58]line НСП 1% : 4.43 [14:33:58]line НДС 12% : 53.14 [14:33:58]line Наличными: 500.00 [14:33:58]line Безнал.: 0.00 [14:33:58]line Место: АЗС № 136 "Партнер Нефть" [14:33:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:33:58]line СНО: Общий режим [14:33:58]line Чек 215 21.08.2024 14:33 [14:33:58]line Смена: 454 ФФД: 1.0 [14:33:58]line ЗНМ: 0300000067 [14:33:58]line РНМ: 0000000000092569 [14:33:58]line Версия ККМ: 001 [14:33:58]line ФМ: 0000000000871776 [14:33:58]line ФД: 140198 [14:33:58]line ФПД: 188273334758474 [14:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T143357&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140198&fm=188273334758474&tin=02508201610067®Number=0000000000092569&sum=50000 [14:33:58]written 0, free lines is 4095 [14:33:58]OFD Sender: Processing packet 140198 [packets to send 137, broken 136] [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00140198 [14:33:58]OFD Sender: To server: pG, [14:33:58]CommunicateWithHost lk.salyk.kg:30040 [14:33:58]ConnectInit lk.salyk.kg [14:33:58]Connected sock=10 [14:33: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 37 36 0F 01 00 00 C9 DA 07 01 9C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D5 FA C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A6 23 02 00 35 04 06 00 AB 3B CD 3D 2C 4A 12 67 CF 37 4C 82 19 A9 [14:33: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 37 36 4F 00 00 00 7B 3D 47 00 53 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 37 36 10 04 04 00 A6 23 02 00 F4 03 04 00 66 A1 C5 66 B6 04 01 00 00 75 3E 0F 47 23 77 77 8A [14:33:58]CommunicateWithHost err = 0 [14:33:58]CheckOFDResponse [14:33:58]1017 (14) - 77093643461234 [14:33:58]1041 (16) - 0000000000871776 [14:33:58]1040 (4) - 140198 [14:33:58]1012 (4) - 21.08.2024 08:12 [14:33:58]1206 (1) - 0 [14:33:58]OFD Sender: Remove packet 140198 [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00140198 [14:33:58]NVStorageDeleteData [14:33:58]Write to MH i2c: 01 00 00 B1 09 BA [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 B1 09 00 00 00 00 00 D9 0C A6 [14:33:59]RasterBufferAndPrint [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]line [14:33:59]written 0, free lines is 3296 [14:33:59]MH_Cut [14:33:59]Write to MH i2c: D1 01 00 B8 09 01 93 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: D1 01 00 B8 09 00 92 [14:33:59]Write to MH i2c: 01 00 00 B9 09 C2 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]OFD Sender: No OFD packet to send [14:33:59]*** Cut start [14:33:59]*** Partial cut [14:33:59]*** CUTSNS_PIN = 1 [14:33:59]*** CUTSNS_PIN = 0 [14:33:59]*** Brake cut motor [14:34:00]Read from MH i2c: 01 [14:34:00]MH_I2C_Read... [14:34:00]*** Stop cut motor [14:34:00]*** Cut end [14:34:00]Read from MH i2c: 01 07 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: 01 07 00 B9 09 00 00 00 00 00 FF 0F D7 [14:34:00]process_action close_receipt done [14:34:00]requested_data is exist [14:34:00]produce_requested_data [14:34:00]requested_item fm.sn is exist - process it [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 11 00 00 [14:34:00]Write to MH i2c: E2 08 00 BA 09 80 11 00 00 00 00 00 00 3D [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:00]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 17 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 17 00 BA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [14:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:34:00]wFMCommunicate OK [14:34:00]requested_item fd.num is exist - process it [14:34:00]SAM_PROTO_GetFieldsCounters [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 13 00 00 [14:34:00]Write to MH i2c: E2 08 00 BB 09 80 13 00 00 00 00 00 00 40 [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:00]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 62 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 62 00 BB 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [14:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:00]wFMCommunicate OK [14:34:00]SAM_PROTO_GetFieldsCounters done [14:34:00]requested_item shift.num is exist - process it [14:34:00]requested_item shift.opened is exist - process it [14:34:00]req_shift_opened [14:34:00]FM_GetShiftState [14:34:00]SAM_PROTO_GetShiftState [14:34:00]wFMCommunicate request_size=4 [14:34:00]MH_SAM_APDU [14:34:00]CAPDU: 80 13 01 00 [14:34:00]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [14:34:00]Write i2c OK [14:34:00]MH_I2C_Read... [14:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:00]Read from MH i2c: E2 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 0E 00 [14:34:00]MH_I2C_Read... [14:34:00]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C2 [14:34:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:34:00]wFMCommunicate OK [14:34:00]SAM_PROTO_GetShiftState done [14:34:00]FM_GetShiftState done [14:34:00]req_shift_opened done [14:34:00]requested_item shift.open_date is exist - process it [14:34:00]req_shift_open_date [14:34:00]req_shift_open_date done [14:34:00]produce_requested_data done [14:34:00]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140198,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:34:00]process_action_free close_receipt [14:34:00]json_value_free [14:34:00]json_value_free done [14:34:00]process_json_proto returns [14:34:00]Send response to host [14:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140198,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:34:00]free response buf [14:34:00]execute_script done [14:34:00]execute_script returns [14:34:00]free content buf [14:34:00]Sock 8.Close socket [14:34:00]Sock 8.Thread stoped [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]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]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:00]accept exits with 9 [14:40:00]New connection [14:40:00]New thread 3067448676 created [14:40:00]Thread 3067592036 joined [14:40:00]Waiting for new connection... [14:40:00] Sock 9.Parse request [14:40:00]Sock 9.Check first char [14:40:00]Sock 9.First char is OK [14:40:00]request: POST /json_proto HTTP/1.0 [14:40:00]Method: POST [14:40:00]URL: /json_proto [14:40:00]Method is POST - this is cgi request [14:40:00]url: /json_proto [14:40:00]query_string will be loaded in cgi processing [14:40:00]execute_cgi json_proto POST (null) [14:40:00]execute_cgi path=json_proto method=POST [14:40:00]POST find Content-Length [14:40:00]Host: 172.17.45.67:8080 [14:40:00]Content-Length: 677 [14:40:00]Content-Type: application/json [14:40:00] [14:40:00]POST finish read [14:40:00]Found Content-Length = 677 [14:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:00]execute_script... [14: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)594054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:00]POST & json_proto [14:40:00]process_json_proto [14:40:00]json parsed OK: [14:40:00]protocol is kg_v1.0 [14:40:00]action value=close_receipt [14:40:00]process_action close_receipt [14:40:00]cmd_close_receipt [14:40:00]MH_GetDate [14:40:00]Write to MH i2c: F0 00 00 BD 09 B5 [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: F0 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: F0 09 00 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: F0 09 00 BD 09 00 41 FC C5 66 5F 7F 2B 66 95 [14:40:00]GetLastDocTimeStamp 1724250837 [14:40:00]current date 1724251201 [14:40:00]FM_GetShiftState [14:40:00]SAM_PROTO_GetShiftState [14:40:00]wFMCommunicate request_size=4 [14:40:00]MH_SAM_APDU [14:40:00]CAPDU: 80 13 01 00 [14:40:00]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:00]Read from MH i2c: E2 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: E2 0E 00 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [14:40:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:40:00]wFMCommunicate OK [14:40:00]SAM_PROTO_GetShiftState done [14:40:00]FM_GetShiftState done [14:40:00]opened in 1724200467 [14:40:00]opened+sec_in_day 1724286867 [14:40:00]quantity*price = 50036 [14:40:00]sum+1 = 50037 [14:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 216 21.08.2024 14:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140199 ФПД: 214884168234881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140199&fm=214884168234881&tin=02508201610067®Number=0000000000092569&sum=50000 [14:40:01]StoreToDocumentArchive [14:40:01]shift 454 fd 140199 [14:40:01]save to /storage/0454/doc_00140199 [14:40:01]save last doc name /storage/0454/doc_00140199 to /storage/kkm_last_doc_name [14:40:01]save OK [14:40:01]Clear old archive folders... [14:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:01]tlvbuf is 01CA0530 [14:40:01]SAM_PROTO_ClearQueue [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 09 00 00 [14:40:01]Write to MH i2c: E2 08 00 CB 09 80 09 00 00 00 00 00 00 46 [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 03 00 [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:01]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [14:40:01]RAPDU: 90 00 [14:40:01]wFMCommunicate OK [14:40:01]SAM_PROTO_ClearQueue done [14:40:01]KKMCreateOFDPacket [14:40:01]OFDProtocolAddRootSTLVToBuf [14:40:01]FM_MakeSignedData [14:40:01]FM_MakeSignedData [14:40:01]SAM_PROTO_SignData [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 0D 01 02 [14:40:01]Write to MH i2c: E2 08 00 CC 09 80 0D 01 02 00 00 00 00 4E [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 03 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [14:40:01]RAPDU: 90 00 [14:40:01]wFMCommunicate OK [14:40:01]wFMCommunicate request_size=255 [14:40:01]MH_SAM_APDU [14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 41 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 23 02 00 35 04 06 00 C3 [14:40:01]Write to MH i2c: E2 02 01 CD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 41 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 23 02 00 35 04 06 00 C3 00 00 6D [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:02]Read from MH i2c: E2 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 03 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [14:40:02]RAPDU: 90 00 [14:40:02]wFMCommunicate OK [14:40:02]wFMCommunicate request_size=10 [14:40:02]MH_SAM_APDU [14:40:02]CAPDU: 80 0D 02 02 05 6F 9E 83 F7 81 [14:40:02]Write to MH i2c: E2 0D 00 CE 09 80 0D 02 02 05 00 6F 9E 83 F7 81 00 00 63 [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:02]Read from MH i2c: E2 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 03 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [14:40:02]RAPDU: 90 00 [14:40:02]wFMCommunicate OK [14:40:02]wFMCommunicate request_size=4 [14:40:02]MH_SAM_APDU [14:40:02]CAPDU: 80 0D 03 02 [14:40:02]Write to MH i2c: E2 08 00 CF 09 80 0D 03 02 00 00 00 00 53 [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:02]Read from MH i2c: E2 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 0B 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 0B 00 CF 09 00 A6 17 6A AE 62 22 ED 71 90 00 0B [14:40:02]RAPDU: A6 17 6A AE 62 22 ED 71 90 00 [14:40:02]wFMCommunicate OK [14:40:02]SAM_PROTO_SignData done [14:40:02]FM_MakeSignedData done [14:40:02]CreateOFDProtocolMessage [14:40:02]wFMCommunicate request_size=4 [14:40:02]MH_SAM_APDU [14:40:02]CAPDU: 80 11 00 00 [14:40:02]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:02]Read from MH i2c: E2 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 17 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [14:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:02]wFMCommunicate OK [14:40:02]CreateOFDProtocolMessage done [14:40:02]OFDSenderStorePacket 140199 [14:40:02]StoreOFDPacket docnum=140199 [14:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AF 32 07 01 25 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 41 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 23 02 00 35 04 06 00 C3 6F 9E 83 F7 81 A6 17 6A AE 62 22 ED 71 [14:40:02]CheckFolder [14:40:02]dirname=/storage/ofd_packets [14:40:02]CheckFolder done [14:40:02]ProducePacketName [14:40:02]name=ofd_packets/00140199 [14:40:02]NVStorageSaveData ofd_packets/00140199 [14:40:02]File name is /storage/ofd_packets/00140199 [14:40:02]Write 301 bytes [14:40:02]NVStorageSaveData done [14:40:02]OFDSenderStorePacket done [14:40:02]KKMCreateOFDPacket done [14:40:02]NVStorageSaveData kkm_last_timestamp [14:40:02]File name is /storage/kkm_last_timestamp [14:40:02]Write 4 bytes [14:40:02]NVStorageSaveData done [14:40:02]ExternCall_PrintAddStr [14:40:02]wPrintStart [14:40:02]Write to MH i2c: 01 00 00 D1 09 DA [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 07 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 07 00 D1 09 00 00 00 00 00 FF 0F EF [14:40:02]RasterBufferAndPrint [14:40:02]line Счет N : (1)594054 [14:40:02]line ИНН: 02508201610067 [14:40:02]line Контрольно-Кассовый Чек [14:40:02]line ПРОДАЖА [14:40:02]line ТРК (МРК, ГНК) : 42 [14:40:02]line Товар: 2710124130 [14:40:02]line Аи-92-К-5 [14:40:02]line 7.380 * 67.80 [14:40:02]line = 500.36 [14:40:02]line НДС 12% НСП 1% [14:40:02]line > о реализуемом товаре [14:40:02]line ОКРУГЛЕНИЕ: -0.36 [14:40:02]line ИТОГО: 500.00 [14:40:02]line Внесено: 500.00 [14:40:02]line СДАЧА: 0.00 [14:40:02]line НСП 1% : 4.43 [14:40:02]line НДС 12% : 53.14 [14:40:02]line Наличными: 500.00 [14:40:02]line Безнал.: 0.00 [14:40:02]line Место: АЗС № 136 "Партнер Нефть" [14:40:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:40:02]line СНО: Общий режим [14:40:02]line Чек 216 21.08.2024 14:40 [14:40:02]line Смена: 454 ФФД: 1.0 [14:40:02]line ЗНМ: 0300000067 [14:40:02]line РНМ: 0000000000092569 [14:40:02]line Версия ККМ: 001 [14:40:02]line ФМ: 0000000000871776 [14:40:02]line ФД: 140199 [14:40:02]line ФПД: 214884168234881 [14:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144001&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140199&fm=214884168234881&tin=02508201610067®Number=0000000000092569&sum=50000 [14:40:02]OFD Sender: Processing packet 140199 [packets to send 137, broken 136] [14:40:02]ProducePacketName [14:40:02]name=ofd_packets/00140199 [14:40:02]OFD Sender: To server: pG, [14:40:02]CommunicateWithHost lk.salyk.kg:30040 [14:40:02]ConnectInit lk.salyk.kg [14:40:02]written 0, free lines is 4095 [14:40:02]Connected sock=10 [14: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 37 36 0F 01 00 00 AF 32 07 01 25 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 41 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A7 23 02 00 35 04 06 00 C3 6F 9E 83 F7 81 A6 17 6A AE 62 22 ED 71 [14: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 37 36 4F 00 00 00 2B BC 47 00 A6 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 37 36 10 04 04 00 A7 23 02 00 F4 03 04 00 D1 A2 C5 66 B6 04 01 00 00 01 FE 64 1B EB 04 82 52 [14:40:02]CommunicateWithHost err = 0 [14:40:02]CheckOFDResponse [14:40:02]1017 (14) - 77093643461234 [14:40:02]1041 (16) - 0000000000871776 [14:40:02]1040 (4) - 140199 [14:40:02]1012 (4) - 21.08.2024 08:18 [14:40:02]1206 (1) - 0 [14:40:02]OFD Sender: Remove packet 140199 [14:40:02]ProducePacketName [14:40:02]name=ofd_packets/00140199 [14:40:02]NVStorageDeleteData [14:40:02]Write to MH i2c: 01 00 00 FC 09 05 [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 07 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 D4 0C EC [14:40:02]RasterBufferAndPrint [14:40:02]line [14:40:02]line [14:40:02]line [14:40:02]line [14:40:02]line [14:40:02]written 0, free lines is 3292 [14:40:02]MH_Cut [14:40:02]Write to MH i2c: D1 01 00 03 0A 01 DF [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: D1 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: D1 01 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: D1 01 00 03 0A 00 DE [14:40:02]Write to MH i2c: 01 00 00 04 0A 0E [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:03]OFD Sender: No OFD packet to send [14:40:03]*** Cut start [14:40:03]*** Partial cut [14:40:03]*** CUTSNS_PIN = 1 [14:40:03]*** CUTSNS_PIN = 0 [14:40:03]*** Brake cut motor [14:40:04]Read from MH i2c: 01 [14:40:04]MH_I2C_Read... [14:40:04]*** Stop cut motor [14:40:04]*** Cut end [14:40:04]Read from MH i2c: 01 07 00 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [14:40:04]process_action close_receipt done [14:40:04]requested_data is exist [14:40:04]produce_requested_data [14:40:04]requested_item fm.sn is exist - process it [14:40:04]wFMCommunicate request_size=4 [14:40:04]MH_SAM_APDU [14:40:04]CAPDU: 80 11 00 00 [14:40:04]Write to MH i2c: E2 08 00 05 0A 80 11 00 00 00 00 00 00 89 [14:40:04]Write i2c OK [14:40:04]MH_I2C_Read... [14:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:04]Read from MH i2c: E2 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 17 00 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 17 00 05 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [14:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:40:04]wFMCommunicate OK [14:40:04]requested_item fd.num is exist - process it [14:40:04]SAM_PROTO_GetFieldsCounters [14:40:04]wFMCommunicate request_size=4 [14:40:04]MH_SAM_APDU [14:40:04]CAPDU: 80 13 00 00 [14:40:04]Write to MH i2c: E2 08 00 06 0A 80 13 00 00 00 00 00 00 8C [14:40:04]Write i2c OK [14:40:04]MH_I2C_Read... [14:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:04]Read from MH i2c: E2 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 62 00 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 62 00 06 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:04]wFMCommunicate OK [14:40:04]SAM_PROTO_GetFieldsCounters done [14:40:04]requested_item shift.num is exist - process it [14:40:04]requested_item shift.opened is exist - process it [14:40:04]req_shift_opened [14:40:04]FM_GetShiftState [14:40:04]SAM_PROTO_GetShiftState [14:40:04]wFMCommunicate request_size=4 [14:40:04]MH_SAM_APDU [14:40:04]CAPDU: 80 13 01 00 [14:40:04]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [14:40:04]Write i2c OK [14:40:04]MH_I2C_Read... [14:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:04]Read from MH i2c: E2 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 0E 00 [14:40:04]MH_I2C_Read... [14:40:04]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0E [14:40:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:40:04]wFMCommunicate OK [14:40:04]SAM_PROTO_GetShiftState done [14:40:04]FM_GetShiftState done [14:40:04]req_shift_opened done [14:40:04]requested_item shift.open_date is exist - process it [14:40:04]req_shift_open_date [14:40:04]req_shift_open_date done [14:40:04]produce_requested_data done [14:40:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140199,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:40:04]process_action_free close_receipt [14:40:04]json_value_free [14:40:04]json_value_free done [14:40:04]process_json_proto returns [14:40:04]Send response to host [14:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140199,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:40:04]free response buf [14:40:04]execute_script done [14:40:04]execute_script returns [14:40:04]free content buf [14:40:04]Sock 9.Close socket [14:40:04]Sock 9.Thread stoped [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:06]int [14:41:06]Write to MH i2c: 01 00 00 08 0A 12 [14:41:06]*** FLAG_PRN_KEY set [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 08 0A 00 08 00 00 00 FF 0F 2F [14:41:06]state=0 [14:41:06]Key pressed [14:41:06]Feed [14:41:06]Write to MH i2c: D8 00 00 09 0A EA [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D8 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D8 01 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D8 01 00 09 0A 00 EB [14:41:06]int [14:41:06]Write to MH i2c: 01 00 00 0A 0A 14 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 0A 0A 00 48 00 00 00 3C 00 9F [14:41:06]state=2 [14:41:06]Key pressed [14:41:06]int [14:41:06]Write to MH i2c: 01 00 00 0B 0A 15 [14:41:06]*** FLAG_PRN_KEY reset [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 F6 0F 21 [14:41:06]state=2 [14:41:06]Stop feed [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:26]accept exits with 8 [14:41:26]New connection [14:41:26]New thread 3067592036 created [14:41:26]Thread 3067448676 joined [14:41:26]Waiting for new connection... [14:41:26] Sock 8.Parse request [14:41:26]Sock 8.Check first char [14:41:26]Sock 8.First char is OK [14:41:26]request: POST /json_proto HTTP/1.0 [14:41:26]Method: POST [14:41:26]URL: /json_proto [14:41:26]Method is POST - this is cgi request [14:41:26]url: /json_proto [14:41:26]query_string will be loaded in cgi processing [14:41:26]execute_cgi json_proto POST (null) [14:41:26]execute_cgi path=json_proto method=POST [14:41:26]POST find Content-Length [14:41:26]Host: 172.17.45.67:8080 [14:41:26]Content-Length: 791 [14:41:26]Content-Type: application/json [14:41:26] [14:41:26]POST finish read [14:41:26]Found Content-Length = 791 [14:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:26]execute_script... [14:41: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)594055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:26]POST & json_proto [14:41:26]process_json_proto [14:41:26]json parsed OK: [14:41:26]protocol is kg_v1.0 [14:41:26]action value=close_receipt [14:41:26]process_action close_receipt [14:41:26]cmd_close_receipt [14:41:26]MH_GetDate [14:41:26]Write to MH i2c: F0 00 00 0C 0A 05 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 09 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: F0 09 00 0C 0A 00 97 FC C5 66 5F 7F 2B 66 3B [14:41:26]GetLastDocTimeStamp 1724251201 [14:41:26]current date 1724251287 [14:41:26]FM_GetShiftState [14:41:26]SAM_PROTO_GetShiftState [14:41:26]wFMCommunicate request_size=4 [14:41:26]MH_SAM_APDU [14:41:26]CAPDU: 80 13 01 00 [14:41:26]Write to MH i2c: E2 08 00 0D 0A 80 13 01 00 00 00 00 00 94 [14:41:26]Write i2c OK [14:41:26]MH_I2C_Read... [14:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:26]Read from MH i2c: E2 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0E 00 [14:41:26]MH_I2C_Read... [14:41:26]Read from MH i2c: E2 0E 00 0D 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 14 [14:41:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:41:26]wFMCommunicate OK [14:41:26]SAM_PROTO_GetShiftState done [14:41:26]FM_GetShiftState done [14:41:26]opened in 1724200467 [14:41:26]opened+sec_in_day 1724286867 [14:41:26]quantity*price = 0 [14:41:26]sum+1 = 1 [14:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 217 21.08.2024 14:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 140200 ФПД: 233812176362563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140200&fm=233812176362563&tin=02508201610067®Number=0000000000092569&sum=0 [14:41:27]StoreToDocumentArchive [14:41:27]shift 454 fd 140200 [14:41:27]save to /storage/0454/doc_00140200 [14:41:27]save last doc name /storage/0454/doc_00140200 to /storage/kkm_last_doc_name [14:41:27]save OK [14:41:27]Clear old archive folders... [14:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:27]tlvbuf is 01C5E920 [14:41:27]SAM_PROTO_ClearQueue [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 09 00 00 [14:41:27]Write to MH i2c: E2 08 00 1A 0A 80 09 00 00 00 00 00 00 96 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_ClearQueue done [14:41:27]KKMCreateOFDPacket [14:41:27]OFDProtocolAddRootSTLVToBuf [14:41:27]FM_MakeSignedData [14:41:27]FM_MakeSignedData [14:41:27]SAM_PROTO_SignData [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 01 02 [14:41:27]Write to MH i2c: E2 08 00 1B 0A 80 0D 01 02 00 00 00 00 9E [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=255 [14:41:27]MH_SAM_APDU [14:41: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 97 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 23 02 00 35 04 06 00 D4 [14:41:27]Write to MH i2c: E2 02 01 1C 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 97 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 23 02 00 35 04 06 00 D4 00 00 4C [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=10 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 02 02 05 A6 A3 B7 5C 43 [14:41:27]Write to MH i2c: E2 0D 00 1D 0A 80 0D 02 02 05 00 A6 A3 B7 5C 43 00 00 4A [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [14:41:27]RAPDU: 90 00 [14:41:27]wFMCommunicate OK [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 0D 03 02 [14:41:27]Write to MH i2c: E2 08 00 1E 0A 80 0D 03 02 00 00 00 00 A3 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0B 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0B 00 1E 0A 00 21 08 F3 3D 03 62 1F EB 90 00 6C [14:41:27]RAPDU: 21 08 F3 3D 03 62 1F EB 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_SignData done [14:41:27]FM_MakeSignedData done [14:41:27]CreateOFDProtocolMessage [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 11 00 00 [14:41:27]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [14:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:27]wFMCommunicate OK [14:41:27]CreateOFDProtocolMessage done [14:41:27]OFDSenderStorePacket 140200 [14:41:27]StoreOFDPacket docnum=140200 [14:41:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 90 13 07 01 4A 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 97 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 23 02 00 35 04 06 00 D4 A6 A3 B7 5C 43 21 08 F3 3D 03 62 1F EB [14:41:27]CheckFolder [14:41:27]dirname=/storage/ofd_packets [14:41:27]CheckFolder done [14:41:27]ProducePacketName [14:41:27]name=ofd_packets/00140200 [14:41:27]NVStorageSaveData ofd_packets/00140200 [14:41:27]File name is /storage/ofd_packets/00140200 [14:41:27]Write 301 bytes [14:41:27]NVStorageSaveData done [14:41:27]OFDSenderStorePacket done [14:41:27]KKMCreateOFDPacket done [14:41:27]NVStorageSaveData kkm_last_timestamp [14:41:27]File name is /storage/kkm_last_timestamp [14:41:27]Write 4 bytes [14:41:27]NVStorageSaveData done [14:41:27]ExternCall_PrintAddStr [14:41:27]wPrintStart [14:41:27]Write to MH i2c: 01 00 00 20 0A 2A [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 FF 0F 3F [14:41:27]RasterBufferAndPrint [14:41:27]line Счет N : (1)594055 [14:41:27]line ИНН: 02508201610067 [14:41:27]line Контрольно-Кассовый Чек [14:41:27]line ПРОДАЖА [14:41:27]line ТРК (МРК, ГНК) : 52 [14:41:27]line Товар: 2710124130 [14:41:27]line Аи-92-К-5 [14:41:27]line 5.000 * 0.00 [14:41:27]line = 0.00 [14:41:27]line НДС 12% НСП 1% [14:41:27]line > о реализуемом товаре [14:41:27]line ИТОГО: 0.00 [14:41:27]line НСП 1% : 0.00 [14:41:27]line НДС 12% : 0.00 [14:41:27]line Наличными: 0.00 [14:41:27]line Безнал.: 0.00 [14:41:27]line Место: АЗС № 136 "Партнер Нефть" [14:41:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:41:27]line СНО: Общий режим [14:41:27]line Чек 217 21.08.2024 14:41 [14:41:27]line Смена: 454 ФФД: 1.0 [14:41:27]line ЗНМ: 0300000067 [14:41:27]line РНМ: 0000000000092569 [14:41:27]line Версия ККМ: 001 [14:41:27]line Талоны: Топливная Карта [14:41:27]line 03824 [14:41:27]line ФМ: 0000000000871776 [14:41:27]line ФД: 140200 [14:41:27]line ФПД: 233812176362563 [14:41:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140200&fm=233812176362563&tin=02508201610067®Number=0000000000092569&sum=0 [14:41:28]OFD Sender: Processing packet 140200 [packets to send 137, broken 136] [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00140200 [14:41:28]OFD Sender: To server: pG, [14:41:28]CommunicateWithHost lk.salyk.kg:30040 [14:41:28]ConnectInit lk.salyk.kg [14:41:28]written 0, free lines is 4095 [14:41:28]Connected sock=10 [14:41: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 37 36 0F 01 00 00 90 13 07 01 4A 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 97 FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A8 23 02 00 35 04 06 00 D4 A6 A3 B7 5C 43 21 08 F3 3D 03 62 1F EB [14:41: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 37 36 4F 00 00 00 10 41 47 00 90 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 37 36 10 04 04 00 A8 23 02 00 F4 03 04 00 27 A3 C5 66 B6 04 01 00 00 7A EB F2 E3 63 7A D5 FD [14:41:28]CommunicateWithHost err = 0 [14:41:28]CheckOFDResponse [14:41:28]1017 (14) - 77093643461234 [14:41:28]1041 (16) - 0000000000871776 [14:41:28]1040 (4) - 140200 [14:41:28]1012 (4) - 21.08.2024 08:19 [14:41:28]1206 (1) - 0 [14:41:28]OFD Sender: Remove packet 140200 [14:41:28]ProducePacketName [14:41:28]name=ofd_packets/00140200 [14:41:28]NVStorageDeleteData [14:41:28]Write to MH i2c: 01 00 00 4A 0A 54 [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 ED 0C 54 [14:41:28]RasterBufferAndPrint [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]line [14:41:28]written 0, free lines is 3315 [14:41:28]MH_Cut [14:41:28]Write to MH i2c: D1 01 00 51 0A 01 2D [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 01 00 [14:41:28]MH_I2C_Read... [14:41:28]Read from MH i2c: D1 01 00 51 0A 00 2C [14:41:28]Write to MH i2c: 01 00 00 52 0A 5C [14:41:28]Write i2c OK [14:41:28]MH_I2C_Read... [14:41:29]OFD Sender: No OFD packet to send [14:41:29]*** Cut start [14:41:29]*** Partial cut [14:41:29]*** CUTSNS_PIN = 1 [14:41:29]*** CUTSNS_PIN = 0 [14:41:29]*** Brake cut motor [14:41:29]Read from MH i2c: 01 [14:41:29]MH_I2C_Read... [14:41:29]*** Stop cut motor [14:41:29]*** Cut end [14:41:29]Read from MH i2c: 01 07 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 FF 0F 71 [14:41:29]process_action close_receipt done [14:41:29]requested_data is exist [14:41:29]produce_requested_data [14:41:29]requested_item fm.sn is exist - process it [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 11 00 00 [14:41:29]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 17 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [14:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:29]wFMCommunicate OK [14:41:29]requested_item fd.num is exist - process it [14:41:29]SAM_PROTO_GetFieldsCounters [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 13 00 00 [14:41:29]Write to MH i2c: E2 08 00 54 0A 80 13 00 00 00 00 00 00 DA [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:30]Read from MH i2c: E2 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 62 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 62 00 54 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:30]wFMCommunicate OK [14:41:30]SAM_PROTO_GetFieldsCounters done [14:41:30]requested_item shift.num is exist - process it [14:41:30]requested_item shift.opened is exist - process it [14:41:30]req_shift_opened [14:41:30]FM_GetShiftState [14:41:30]SAM_PROTO_GetShiftState [14:41:30]wFMCommunicate request_size=4 [14:41:30]MH_SAM_APDU [14:41:30]CAPDU: 80 13 01 00 [14:41:30]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:30]Read from MH i2c: E2 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 0E 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [14:41:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:41:30]wFMCommunicate OK [14:41:30]SAM_PROTO_GetShiftState done [14:41:30]FM_GetShiftState done [14:41:30]req_shift_opened done [14:41:30]requested_item shift.open_date is exist - process it [14:41:30]req_shift_open_date [14:41:30]req_shift_open_date done [14:41:30]produce_requested_data done [14:41:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140200,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:41:30]process_action_free close_receipt [14:41:30]json_value_free [14:41:30]json_value_free done [14:41:30]process_json_proto returns [14:41:30]Send response to host [14:41:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140200,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:41:30]free response buf [14:41:30]execute_script done [14:41:30]execute_script returns [14:41:30]free content buf [14:41:30]Sock 8.Close socket [14:41:30]Sock 8.Thread stoped [14:41:34]OFD Sender: No OFD packet to send [14:41:36]int [14:41:36]Write to MH i2c: 01 00 00 56 0A 60 [14:41:36]*** FLAG_PRN_KEY set [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 56 0A 00 08 00 00 00 FF 0F 7D [14:41:36]state=0 [14:41:36]Key pressed [14:41:36]Feed [14:41:36]Write to MH i2c: D8 00 00 57 0A 38 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: D8 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: D8 01 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: D8 01 00 57 0A 00 39 [14:41:36]int [14:41:36]Write to MH i2c: 01 00 00 58 0A 62 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 58 0A 00 48 00 00 00 3C 00 ED [14:41:36]state=2 [14:41:36]Key pressed [14:41:36]int [14:41:36]Write to MH i2c: 01 00 00 59 0A 63 [14:41:36]*** FLAG_PRN_KEY reset [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 F8 0F 71 [14:41:36]state=2 [14:41:36]Stop feed [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:50]accept exits with 9 [14:41:50]New connection [14:41:50]New thread 3067448676 created [14:41:50]Thread 3067592036 joined [14:41:50]Waiting for new connection... [14:41:50] Sock 9.Parse request [14:41:50]Sock 9.Check first char [14:41:50]Sock 9.First char is OK [14:41:50]request: POST /json_proto HTTP/1.0 [14:41:50]Method: POST [14:41:50]URL: /json_proto [14:41:50]Method is POST - this is cgi request [14:41:50]url: /json_proto [14:41:50]query_string will be loaded in cgi processing [14:41:50]execute_cgi json_proto POST (null) [14:41:50]execute_cgi path=json_proto method=POST [14:41:50]POST find Content-Length [14:41:50]Host: 172.17.45.67:8080 [14:41:50]Content-Length: 677 [14:41:50]Content-Type: application/json [14:41:50] [14:41:50]POST finish read [14:41:50]Found Content-Length = 677 [14:41:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:50]execute_script... [14:41: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)594056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:50]POST & json_proto [14:41:50]process_json_proto [14:41:50]json parsed OK: [14:41:50]protocol is kg_v1.0 [14:41:50]action value=close_receipt [14:41:50]process_action close_receipt [14:41:50]cmd_close_receipt [14:41:50]MH_GetDate [14:41:50]Write to MH i2c: F0 00 00 5A 0A 53 [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: F0 09 00 5A 0A 00 AF FC C5 66 5F 7F 2B 66 A1 [14:41:50]GetLastDocTimeStamp 1724251287 [14:41:50]current date 1724251311 [14:41:50]FM_GetShiftState [14:41:50]SAM_PROTO_GetShiftState [14:41:50]wFMCommunicate request_size=4 [14:41:50]MH_SAM_APDU [14:41:50]CAPDU: 80 13 01 00 [14:41:50]Write to MH i2c: E2 08 00 5B 0A 80 13 01 00 00 00 00 00 E2 [14:41:50]Write i2c OK [14:41:50]MH_I2C_Read... [14:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:50]Read from MH i2c: E2 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 [14:41:50]MH_I2C_Read... [14:41:50]Read from MH i2c: E2 0E 00 5B 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 62 [14:41:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:41:50]wFMCommunicate OK [14:41:50]SAM_PROTO_GetShiftState done [14:41:50]FM_GetShiftState done [14:41:50]opened in 1724200467 [14:41:50]opened+sec_in_day 1724286867 [14:41:50]quantity*price = 40002 [14:41:50]sum+1 = 40003 [14:41:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 218 21.08.2024 14:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140201 ФПД: 249956435374563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144151&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140201&fm=249956435374563&tin=02508201610067®Number=0000000000092569&sum=40000 [14:41:51]StoreToDocumentArchive [14:41:51]shift 454 fd 140201 [14:41:51]save to /storage/0454/doc_00140201 [14:41:51]save last doc name /storage/0454/doc_00140201 to /storage/kkm_last_doc_name [14:41:51]save OK [14:41:51]Clear old archive folders... [14:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:51]tlvbuf is 01C77BA0 [14:41:51]SAM_PROTO_ClearQueue [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 09 00 00 [14:41:51]Write to MH i2c: E2 08 00 68 0A 80 09 00 00 00 00 00 00 E4 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]SAM_PROTO_ClearQueue done [14:41:51]KKMCreateOFDPacket [14:41:51]OFDProtocolAddRootSTLVToBuf [14:41:51]FM_MakeSignedData [14:41:51]FM_MakeSignedData [14:41:51]SAM_PROTO_SignData [14:41:51]wFMCommunicate request_size=4 [14:41:51]MH_SAM_APDU [14:41:51]CAPDU: 80 0D 01 02 [14:41:51]Write to MH i2c: E2 08 00 69 0A 80 0D 01 02 00 00 00 00 EC [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:51]Read from MH i2c: E2 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 [14:41:51]MH_I2C_Read... [14:41:51]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [14:41:51]RAPDU: 90 00 [14:41:51]wFMCommunicate OK [14:41:51]wFMCommunicate request_size=255 [14:41:51]MH_SAM_APDU [14:41: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 AF FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 23 02 00 35 04 06 00 E3 [14:41:51]Write to MH i2c: E2 02 01 6A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 AF FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 23 02 00 35 04 06 00 E3 00 00 82 [14:41:51]Write i2c OK [14:41:51]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [14:41:52]RAPDU: 90 00 [14:41:52]wFMCommunicate OK [14:41:52]wFMCommunicate request_size=10 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 0D 02 02 05 55 84 8A 31 E3 [14:41:52]Write to MH i2c: E2 0D 00 6B 0A 80 0D 02 02 05 00 55 84 8A 31 E3 00 00 70 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [14:41:52]RAPDU: 90 00 [14:41:52]wFMCommunicate OK [14:41:52]wFMCommunicate request_size=4 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 0D 03 02 [14:41:52]Write to MH i2c: E2 08 00 6C 0A 80 0D 03 02 00 00 00 00 F1 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 0B 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 0B 00 6C 0A 00 27 94 E4 52 2D 68 95 42 90 00 4F [14:41:52]RAPDU: 27 94 E4 52 2D 68 95 42 90 00 [14:41:52]wFMCommunicate OK [14:41:52]SAM_PROTO_SignData done [14:41:52]FM_MakeSignedData done [14:41:52]CreateOFDProtocolMessage [14:41:52]wFMCommunicate request_size=4 [14:41:52]MH_SAM_APDU [14:41:52]CAPDU: 80 11 00 00 [14:41:52]Write to MH i2c: E2 08 00 6D 0A 80 11 00 00 00 00 00 00 F1 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:52]Read from MH i2c: E2 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 17 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: E2 17 00 6D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [14:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:52]wFMCommunicate OK [14:41:52]CreateOFDProtocolMessage done [14:41:52]OFDSenderStorePacket 140201 [14:41:52]StoreOFDPacket docnum=140201 [14:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F4 14 07 01 E1 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 AF FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 23 02 00 35 04 06 00 E3 55 84 8A 31 E3 27 94 E4 52 2D 68 95 42 [14:41:52]CheckFolder [14:41:52]dirname=/storage/ofd_packets [14:41:52]CheckFolder done [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00140201 [14:41:52]NVStorageSaveData ofd_packets/00140201 [14:41:52]File name is /storage/ofd_packets/00140201 [14:41:52]Write 301 bytes [14:41:52]NVStorageSaveData done [14:41:52]OFDSenderStorePacket done [14:41:52]KKMCreateOFDPacket done [14:41:52]NVStorageSaveData kkm_last_timestamp [14:41:52]File name is /storage/kkm_last_timestamp [14:41:52]Write 4 bytes [14:41:52]NVStorageSaveData done [14:41:52]ExternCall_PrintAddStr [14:41:52]wPrintStart [14:41:52]Write to MH i2c: 01 00 00 6E 0A 78 [14:41:52]Write i2c OK [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 [14:41:52]MH_I2C_Read... [14:41:52]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 FF 0F 8D [14:41:52]RasterBufferAndPrint [14:41:52]line Счет N : (1)594056 [14:41:52]line ИНН: 02508201610067 [14:41:52]line Контрольно-Кассовый Чек [14:41:52]line ПРОДАЖА [14:41:52]line ТРК (МРК, ГНК) : 32 [14:41:52]line Товар: 2710124130 [14:41:52]line Аи-92-К-5 [14:41:52]line 5.900 * 67.80 [14:41:52]line = 400.02 [14:41:52]line НДС 12% НСП 1% [14:41:52]line > о реализуемом товаре [14:41:52]line ОКРУГЛЕНИЕ: -0.02 [14:41:52]line ИТОГО: 400.00 [14:41:52]line Внесено: 400.00 [14:41:52]line СДАЧА: 0.00 [14:41:52]line НСП 1% : 3.54 [14:41:52]line НДС 12% : 42.48 [14:41:52]line Наличными: 400.00 [14:41:52]line Безнал.: 0.00 [14:41:52]line Место: АЗС № 136 "Партнер Нефть" [14:41:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:41:52]line СНО: Общий режим [14:41:52]line Чек 218 21.08.2024 14:41 [14:41:52]line Смена: 454 ФФД: 1.0 [14:41:52]line ЗНМ: 0300000067 [14:41:52]line РНМ: 0000000000092569 [14:41:52]line Версия ККМ: 001 [14:41:52]line ФМ: 0000000000871776 [14:41:52]line ФД: 140201 [14:41:52]line ФПД: 249956435374563 [14:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144151&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140201&fm=249956435374563&tin=02508201610067®Number=0000000000092569&sum=40000 [14:41:52]written 0, free lines is 4095 [14:41:52]OFD Sender: Processing packet 140201 [packets to send 137, broken 136] [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00140201 [14:41:52]OFD Sender: To server: pG, [14:41:52]CommunicateWithHost lk.salyk.kg:30040 [14:41:52]ConnectInit lk.salyk.kg [14:41:52]Connected sock=10 [14:41: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 37 36 0F 01 00 00 F4 14 07 01 E1 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 AF FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 A9 23 02 00 35 04 06 00 E3 55 84 8A 31 E3 27 94 E4 52 2D 68 95 42 [14:41: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 37 36 4F 00 00 00 98 36 47 00 C3 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 37 36 10 04 04 00 A9 23 02 00 F4 03 04 00 40 A3 C5 66 B6 04 01 00 00 29 DE 30 C2 F0 7F B1 C2 [14:41:52]CommunicateWithHost err = 0 [14:41:52]CheckOFDResponse [14:41:52]1017 (14) - 77093643461234 [14:41:52]1041 (16) - 0000000000871776 [14:41:52]1040 (4) - 140201 [14:41:52]1012 (4) - 21.08.2024 08:20 [14:41:52]1206 (1) - 0 [14:41:52]OFD Sender: Remove packet 140201 [14:41:52]ProducePacketName [14:41:52]name=ofd_packets/00140201 [14:41:52]NVStorageDeleteData [14:41:53]Write to MH i2c: 01 00 00 99 0A A3 [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: 01 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: 01 07 00 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 DE 0C 94 [14:41:53]RasterBufferAndPrint [14:41:53]line [14:41:53]line [14:41:53]line [14:41:53]line [14:41:53]line [14:41:53]written 0, free lines is 3300 [14:41:53]MH_Cut [14:41:53]Write to MH i2c: D1 01 00 A0 0A 01 7C [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: D1 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: D1 01 00 [14:41:53]MH_I2C_Read... [14:41:53]Read from MH i2c: D1 01 00 A0 0A 00 7B [14:41:53]Write to MH i2c: 01 00 00 A1 0A AB [14:41:53]Write i2c OK [14:41:53]MH_I2C_Read... [14:41:53]OFD Sender: No OFD packet to send [14:41:53]*** Cut start [14:41:53]*** Partial cut [14:41:53]*** CUTSNS_PIN = 1 [14:41:53]*** CUTSNS_PIN = 0 [14:41:53]*** Brake cut motor [14:41:54]Read from MH i2c: 01 [14:41:54]MH_I2C_Read... [14:41:54]*** Stop cut motor [14:41:54]*** Cut end [14:41:54]Read from MH i2c: 01 07 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: 01 07 00 A1 0A 00 00 00 00 00 FF 0F C0 [14:41:54]process_action close_receipt done [14:41:54]requested_data is exist [14:41:54]produce_requested_data [14:41:54]requested_item fm.sn is exist - process it [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 11 00 00 [14:41:54]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 17 00 [14:41:54]MH_I2C_Read... [14:41:54]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 37 36 90 00 7D [14:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:41:54]wFMCommunicate OK [14:41:54]requested_item fd.num is exist - process it [14:41:54]SAM_PROTO_GetFieldsCounters [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 00 00 [14:41:54]Write to MH i2c: E2 08 00 A3 0A 80 13 00 00 00 00 00 00 29 [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 62 00 A3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 A9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetFieldsCounters done [14:41:54]requested_item shift.num is exist - process it [14:41:54]requested_item shift.opened is exist - process it [14:41:54]req_shift_opened [14:41:54]FM_GetShiftState [14:41:54]SAM_PROTO_GetShiftState [14:41:54]wFMCommunicate request_size=4 [14:41:54]MH_SAM_APDU [14:41:54]CAPDU: 80 13 01 00 [14:41:54]Write to MH i2c: E2 08 00 A4 0A 80 13 01 00 00 00 00 00 2B [14:41:54]Write i2c OK [14:41:54]MH_I2C_Read... [14:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:54]Read from MH i2c: E2 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 [14:41:54]MH_I2C_Read... [14:41:54]Read from MH i2c: E2 0E 00 A4 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AB [14:41:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:41:54]wFMCommunicate OK [14:41:54]SAM_PROTO_GetShiftState done [14:41:54]FM_GetShiftState done [14:41:54]req_shift_opened done [14:41:54]requested_item shift.open_date is exist - process it [14:41:54]req_shift_open_date [14:41:54]req_shift_open_date done [14:41:54]produce_requested_data done [14:41:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140201,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:41:54]process_action_free close_receipt [14:41:54]json_value_free [14:41:54]json_value_free done [14:41:54]process_json_proto returns [14:41:54]Send response to host [14:41:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140201,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:41:54]free response buf [14:41:54]execute_script done [14:41:54]execute_script returns [14:41:54]free content buf [14:41:54]Sock 9.Close socket [14:41:54]Sock 9.Thread stoped [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:19]accept exits with 8 [14:42:19]New connection [14:42:19]New thread 3067592036 created [14:42:19]Thread 3067448676 joined [14:42:19]Waiting for new connection... [14:42:19] Sock 8.Parse request [14:42:19]Sock 8.Check first char [14:42:19]Sock 8.First char is OK [14:42:19]request: POST /json_proto HTTP/1.0 [14:42:19]Method: POST [14:42:19]URL: /json_proto [14:42:19]Method is POST - this is cgi request [14:42:19]url: /json_proto [14:42:19]query_string will be loaded in cgi processing [14:42:19]execute_cgi json_proto POST (null) [14:42:19]execute_cgi path=json_proto method=POST [14:42:19]POST find Content-Length [14:42:19]Host: 172.17.45.67:8080 [14:42:19]Content-Length: 677 [14:42:19]Content-Type: application/json [14:42:19] [14:42:19]POST finish read [14:42:19]Found Content-Length = 677 [14:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:19]execute_script... [14:42: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)594057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:19]POST & json_proto [14:42:19]process_json_proto [14:42:19]json parsed OK: [14:42:19]protocol is kg_v1.0 [14:42:19]action value=close_receipt [14:42:19]process_action close_receipt [14:42:19]cmd_close_receipt [14:42:19]MH_GetDate [14:42:19]Write to MH i2c: F0 00 00 A5 0A 9E [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 09 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 09 00 A5 0A 00 CC FC C5 66 5F 7F 2B 66 09 [14:42:19]GetLastDocTimeStamp 1724251311 [14:42:19]current date 1724251340 [14:42:19]FM_GetShiftState [14:42:19]SAM_PROTO_GetShiftState [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 01 00 [14:42:19]Write to MH i2c: E2 08 00 A6 0A 80 13 01 00 00 00 00 00 2D [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 A6 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AD [14:42:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetShiftState done [14:42:19]FM_GetShiftState done [14:42:19]opened in 1724200467 [14:42:19]opened+sec_in_day 1724286867 [14:42:19]quantity*price = 50010 [14:42:19]sum+1 = 50012 [14:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 219 21.08.2024 14:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140202 ФПД: 227895386935969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144220&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140202&fm=227895386935969&tin=02508201610067®Number=0000000000092569&sum=50000 [14:42:21]StoreToDocumentArchive [14:42:21]shift 454 fd 140202 [14:42:21]save to /storage/0454/doc_00140202 [14:42:21]save last doc name /storage/0454/doc_00140202 to /storage/kkm_last_doc_name [14:42:21]save OK [14:42:21]Clear old archive folders... [14:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:21]tlvbuf is 01C99B40 [14:42:21]SAM_PROTO_ClearQueue [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 09 00 00 [14:42:21]Write to MH i2c: E2 08 00 B3 0A 80 09 00 00 00 00 00 00 2F [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_ClearQueue done [14:42:21]KKMCreateOFDPacket [14:42:21]OFDProtocolAddRootSTLVToBuf [14:42:21]FM_MakeSignedData [14:42:21]FM_MakeSignedData [14:42:21]SAM_PROTO_SignData [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 01 02 [14:42:21]Write to MH i2c: E2 08 00 B4 0A 80 0D 01 02 00 00 00 00 37 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=255 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CC FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 23 02 00 35 04 06 00 CF [14:42:21]Write to MH i2c: E2 02 01 B5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CC FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 23 02 00 35 04 06 00 CF 00 00 DB [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=10 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 02 02 05 45 07 95 92 A1 [14:42:21]Write to MH i2c: E2 0D 00 B6 0A 80 0D 02 02 05 00 45 07 95 92 A1 00 00 58 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 03 02 [14:42:21]Write to MH i2c: E2 08 00 B7 0A 80 0D 03 02 00 00 00 00 3C [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 B7 0A 00 01 2A B4 CA 13 FB D3 08 90 00 CF [14:42:21]RAPDU: 01 2A B4 CA 13 FB D3 08 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_SignData done [14:42:21]FM_MakeSignedData done [14:42:21]CreateOFDProtocolMessage [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 11 00 00 [14:42:21]Write to MH i2c: E2 08 00 B8 0A 80 11 00 00 00 00 00 00 3C [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 B8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 93 [14:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:42:21]wFMCommunicate OK [14:42:21]CreateOFDProtocolMessage done [14:42:21]OFDSenderStorePacket 140202 [14:42:21]StoreOFDPacket docnum=140202 [14:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7D E5 07 01 54 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CC FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 23 02 00 35 04 06 00 CF 45 07 95 92 A1 01 2A B4 CA 13 FB D3 08 [14:42:21]CheckFolder [14:42:21]dirname=/storage/ofd_packets [14:42:21]CheckFolder done [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00140202 [14:42:21]NVStorageSaveData ofd_packets/00140202 [14:42:21]File name is /storage/ofd_packets/00140202 [14:42:21]Write 301 bytes [14:42:21]NVStorageSaveData done [14:42:21]OFDSenderStorePacket done [14:42:21]KKMCreateOFDPacket done [14:42:21]NVStorageSaveData kkm_last_timestamp [14:42:21]File name is /storage/kkm_last_timestamp [14:42:21]Write 4 bytes [14:42:21]NVStorageSaveData done [14:42:21]ExternCall_PrintAddStr [14:42:21]wPrintStart [14:42:21]Write to MH i2c: 01 00 00 B9 0A C3 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 B9 0A 00 00 00 00 00 FF 0F D8 [14:42:21]RasterBufferAndPrint [14:42:21]line Счет N : (1)594057 [14:42:21]line ИНН: 02508201610067 [14:42:21]line Контрольно-Кассовый Чек [14:42:21]line ПРОДАЖА [14:42:21]line ТРК (МРК, ГНК) : 61 [14:42:21]line Товар: 2710124500 [14:42:21]line Аи-95-К-5 [14:42:21]line 6.740 * 74.20 [14:42:21]line = 500.11 [14:42:21]line НДС 12% НСП 1% [14:42:21]line > о реализуемом товаре [14:42:21]line ОКРУГЛЕНИЕ: -0.11 [14:42:21]line ИТОГО: 500.00 [14:42:21]line Внесено: 500.00 [14:42:21]line СДАЧА: 0.00 [14:42:21]line НСП 1% : 4.43 [14:42:21]line НДС 12% : 53.11 [14:42:21]line Наличными: 500.00 [14:42:21]line Безнал.: 0.00 [14:42:21]line Место: АЗС № 136 "Партнер Нефть" [14:42:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:42:21]line СНО: Общий режим [14:42:21]line Чек 219 21.08.2024 14:42 [14:42:21]line Смена: 454 ФФД: 1.0 [14:42:21]line ЗНМ: 0300000067 [14:42:21]line РНМ: 0000000000092569 [14:42:21]line Версия ККМ: 001 [14:42:21]line ФМ: 0000000000871776 [14:42:21]line ФД: 140202 [14:42:21]line ФПД: 227895386935969 [14:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144220&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140202&fm=227895386935969&tin=02508201610067®Number=0000000000092569&sum=50000 [14:42:21]OFD Sender: Processing packet 140202 [packets to send 137, broken 136] [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00140202 [14:42:21]OFD Sender: To server: pG, [14:42:21]CommunicateWithHost lk.salyk.kg:30040 [14:42:21]ConnectInit lk.salyk.kg [14:42:21]written 0, free lines is 4095 [14:42:22]Connected sock=10 [14:42: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 37 36 0F 01 00 00 7D E5 07 01 54 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 CC FC C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AA 23 02 00 35 04 06 00 CF 45 07 95 92 A1 01 2A B4 CA 13 FB D3 08 [14:42: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 37 36 4F 00 00 00 E8 32 47 00 E5 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 37 36 10 04 04 00 AA 23 02 00 F4 03 04 00 5D A3 C5 66 B6 04 01 00 00 AF EB 56 87 81 CD 27 7D [14:42:22]CommunicateWithHost err = 0 [14:42:22]CheckOFDResponse [14:42:22]1017 (14) - 77093643461234 [14:42:22]1041 (16) - 0000000000871776 [14:42:22]1040 (4) - 140202 [14:42:22]1012 (4) - 21.08.2024 08:20 [14:42:22]1206 (1) - 0 [14:42:22]OFD Sender: Remove packet 140202 [14:42:22]ProducePacketName [14:42:22]name=ofd_packets/00140202 [14:42:22]NVStorageDeleteData [14:42:22]Write to MH i2c: 01 00 00 E4 0A EE [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 E4 0A 00 00 00 00 00 D4 0C D5 [14:42:22]RasterBufferAndPrint [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]written 0, free lines is 3292 [14:42:22]MH_Cut [14:42:22]Write to MH i2c: D1 01 00 EB 0A 01 C7 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 EB 0A 00 C6 [14:42:22]Write to MH i2c: 01 00 00 EC 0A F6 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]OFD Sender: No OFD packet to send [14:42:23]*** Cut start [14:42:23]*** Partial cut [14:42:23]*** CUTSNS_PIN = 1 [14:42:23]*** CUTSNS_PIN = 0 [14:42:23]*** Brake cut motor [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]*** Stop cut motor [14:42:23]*** Cut end [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [14:42:23]process_action close_receipt done [14:42:23]requested_data is exist [14:42:23]produce_requested_data [14:42:23]requested_item fm.sn is exist - process it [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 11 00 00 [14:42:23]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 [14:42:23]MH_I2C_Read... [14:42:23]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 37 36 90 00 C8 [14:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:42:23]wFMCommunicate OK [14:42:23]requested_item fd.num is exist - process it [14:42:23]SAM_PROTO_GetFieldsCounters [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 00 00 [14:42:23]Write to MH i2c: E2 08 00 EE 0A 80 13 00 00 00 00 00 00 74 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 62 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 62 00 EE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:23]wFMCommunicate OK [14:42:23]SAM_PROTO_GetFieldsCounters done [14:42:23]requested_item shift.num is exist - process it [14:42:23]requested_item shift.opened is exist - process it [14:42:23]req_shift_opened [14:42:23]FM_GetShiftState [14:42:23]SAM_PROTO_GetShiftState [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 01 00 [14:42:23]Write to MH i2c: E2 08 00 EF 0A 80 13 01 00 00 00 00 00 76 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 EF 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F6 [14:42:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:42:23]wFMCommunicate OK [14:42:23]SAM_PROTO_GetShiftState done [14:42:23]FM_GetShiftState done [14:42:23]req_shift_opened done [14:42:23]requested_item shift.open_date is exist - process it [14:42:23]req_shift_open_date [14:42:23]req_shift_open_date done [14:42:23]produce_requested_data done [14:42:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140202,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:42:23]process_action_free close_receipt [14:42:23]json_value_free [14:42:23]json_value_free done [14:42:23]process_json_proto returns [14:42:23]Send response to host [14:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140202,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:42:23]free response buf [14:42:23]execute_script done [14:42:23]execute_script returns [14:42:23]free content buf [14:42:23]Sock 8.Close socket [14:42:23]Sock 8.Thread stoped [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:35]accept exits with 9 [14:44:35]New connection [14:44:35]New thread 3067448676 created [14:44:35]Thread 3067592036 joined [14:44:35]Waiting for new connection... [14:44:35] Sock 9.Parse request [14:44:35]Sock 9.Check first char [14:44:35]Sock 9.First char is OK [14:44:35]request: POST /json_proto HTTP/1.0 [14:44:35]Method: POST [14:44:35]URL: /json_proto [14:44:35]Method is POST - this is cgi request [14:44:35]url: /json_proto [14:44:35]query_string will be loaded in cgi processing [14:44:35]execute_cgi json_proto POST (null) [14:44:35]execute_cgi path=json_proto method=POST [14:44:35]POST find Content-Length [14:44:35]Host: 172.17.45.67:8080 [14:44:35]Content-Length: 658 [14:44:35]Content-Type: application/json [14:44:35] [14:44:35]POST finish read [14:44:35]Found Content-Length = 658 [14:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 3.930, "sum" : 270.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:35]execute_script... [14: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)594058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 3.930, "sum" : 270.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:35]POST & json_proto [14:44:35]process_json_proto [14:44:35]json parsed OK: [14:44:35]protocol is kg_v1.0 [14:44:35]action value=close_receipt [14:44:35]process_action close_receipt [14:44:35]cmd_close_receipt [14:44:35]MH_GetDate [14:44:35]Write to MH i2c: F0 00 00 F0 0A E9 [14:44:35]Write i2c OK [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: F0 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: F0 09 00 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: F0 09 00 F0 0A 00 54 FD C5 66 5F 7F 2B 66 DD [14:44:35]GetLastDocTimeStamp 1724251340 [14:44:35]current date 1724251476 [14:44:35]FM_GetShiftState [14:44:35]SAM_PROTO_GetShiftState [14:44:35]wFMCommunicate request_size=4 [14:44:35]MH_SAM_APDU [14:44:35]CAPDU: 80 13 01 00 [14:44:35]Write to MH i2c: E2 08 00 F1 0A 80 13 01 00 00 00 00 00 78 [14:44:35]Write i2c OK [14:44:35]MH_I2C_Read... [14:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:35]Read from MH i2c: E2 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 0E 00 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 0E 00 F1 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F8 [14:44:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:44:35]wFMCommunicate OK [14:44:35]SAM_PROTO_GetShiftState done [14:44:35]FM_GetShiftState done [14:44:35]opened in 1724200467 [14:44:35]opened+sec_in_day 1724286867 [14:44:35]quantity*price = 27038 [14:44:35]sum+1 = 27039 [14:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.71 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 220 21.08.2024 14:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140203 ФПД: 96638605850893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140203&fm=96638605850893&tin=02508201610067®Number=0000000000092569&sum=27000 [14:44:36]StoreToDocumentArchive [14:44:36]shift 454 fd 140203 [14:44:36]save to /storage/0454/doc_00140203 [14:44:36]save last doc name /storage/0454/doc_00140203 to /storage/kkm_last_doc_name [14:44:36]save OK [14:44:36]Clear old archive folders... [14:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:44:36]tlvbuf is 01C4EBD0 [14:44:36]SAM_PROTO_ClearQueue [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 09 00 00 [14:44:36]Write to MH i2c: E2 08 00 FE 0A 80 09 00 00 00 00 00 00 7A [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [14:44:36]RAPDU: 90 00 [14:44:36]wFMCommunicate OK [14:44:36]SAM_PROTO_ClearQueue done [14:44:36]KKMCreateOFDPacket [14:44:36]OFDProtocolAddRootSTLVToBuf [14:44:36]FM_MakeSignedData [14:44:36]FM_MakeSignedData [14:44:36]SAM_PROTO_SignData [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 0D 01 02 [14:44:36]Write to MH i2c: E2 08 00 FF 0A 80 0D 01 02 00 00 00 00 82 [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:37]Read from MH i2c: E2 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 03 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [14:44:37]RAPDU: 90 00 [14:44:37]wFMCommunicate OK [14:44:37]wFMCommunicate request_size=253 [14:44:37]MH_SAM_APDU [14:44:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 54 FD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 23 02 00 35 04 06 00 57 E4 6D C5 F9 0D [14:44:37]Write to MH i2c: E2 00 01 00 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 54 FD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 23 02 00 35 04 06 00 57 E4 6D C5 F9 0D 00 00 04 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:37]Read from MH i2c: E2 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 03 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [14:44:37]RAPDU: 90 00 [14:44:37]wFMCommunicate OK [14:44:37]wFMCommunicate request_size=4 [14:44:37]MH_SAM_APDU [14:44:37]CAPDU: 80 0D 03 02 [14:44:37]Write to MH i2c: E2 08 00 01 0B 80 0D 03 02 00 00 00 00 87 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:37]Read from MH i2c: E2 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 0B 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 0B 00 01 0B 00 B8 E2 92 80 D0 5B 7D 38 90 00 14 [14:44:37]RAPDU: B8 E2 92 80 D0 5B 7D 38 90 00 [14:44:37]wFMCommunicate OK [14:44:37]SAM_PROTO_SignData done [14:44:37]FM_MakeSignedData done [14:44:37]CreateOFDProtocolMessage [14:44:37]wFMCommunicate request_size=4 [14:44:37]MH_SAM_APDU [14:44:37]CAPDU: 80 11 00 00 [14:44:37]Write to MH i2c: E2 08 00 02 0B 80 11 00 00 00 00 00 00 87 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:37]Read from MH i2c: E2 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 17 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: E2 17 00 02 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [14:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:44:37]wFMCommunicate OK [14:44:37]CreateOFDProtocolMessage done [14:44:37]OFDSenderStorePacket 140203 [14:44:37]StoreOFDPacket docnum=140203 [14:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 58 A1 00 01 77 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 54 FD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 23 02 00 35 04 06 00 57 E4 6D C5 F9 0D B8 E2 92 80 D0 5B 7D 38 [14:44:37]CheckFolder [14:44:37]dirname=/storage/ofd_packets [14:44:37]CheckFolder done [14:44:37]ProducePacketName [14:44:37]name=ofd_packets/00140203 [14:44:37]NVStorageSaveData ofd_packets/00140203 [14:44:37]File name is /storage/ofd_packets/00140203 [14:44:37]Write 294 bytes [14:44:37]NVStorageSaveData done [14:44:37]OFDSenderStorePacket done [14:44:37]KKMCreateOFDPacket done [14:44:37]NVStorageSaveData kkm_last_timestamp [14:44:37]File name is /storage/kkm_last_timestamp [14:44:37]Write 4 bytes [14:44:37]NVStorageSaveData done [14:44:37]ExternCall_PrintAddStr [14:44:37]wPrintStart [14:44:37]Write to MH i2c: 01 00 00 03 0B 0E [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 07 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 FF 0F 23 [14:44:37]RasterBufferAndPrint [14:44:37]line Счет N : (1)594058 [14:44:37]line ИНН: 02508201610067 [14:44:37]line Контрольно-Кассовый Чек [14:44:37]line ПРОДАЖА [14:44:37]line ТРК (МРК, ГНК) : 43 [14:44:37]line Товар: 2710124130 [14:44:37]line SU-92 [14:44:37]line 3.930 * 68.80 [14:44:37]line = 270.38 [14:44:37]line НДС 12% НСП 1% [14:44:37]line > о реализуемом товаре [14:44:37]line ОКРУГЛЕНИЕ: -0.38 [14:44:37]line ИТОГО: 270.00 [14:44:37]line Внесено: 270.00 [14:44:37]line СДАЧА: 0.00 [14:44:37]line НСП 1% : 2.39 [14:44:37]line НДС 12% : 28.71 [14:44:37]line Наличными: 270.00 [14:44:37]line Безнал.: 0.00 [14:44:37]line Место: АЗС № 136 "Партнер Нефть" [14:44:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:44:37]line СНО: Общий режим [14:44:37]line Чек 220 21.08.2024 14:44 [14:44:37]line Смена: 454 ФФД: 1.0 [14:44:37]line ЗНМ: 0300000067 [14:44:37]line РНМ: 0000000000092569 [14:44:37]line Версия ККМ: 001 [14:44:37]line ФМ: 0000000000871776 [14:44:37]line ФД: 140203 [14:44:37]line ФПД: 96638605850893 [14:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140203&fm=96638605850893&tin=02508201610067®Number=0000000000092569&sum=27000 [14:44:37]OFD Sender: Processing packet 140203 [packets to send 137, broken 136] [14:44:37]ProducePacketName [14:44:37]name=ofd_packets/00140203 [14:44:37]OFD Sender: To server: pG, [14:44:37]CommunicateWithHost lk.salyk.kg:30040 [14:44:37]ConnectInit lk.salyk.kg [14:44:37]written 0, free lines is 4095 [14:44:37]Connected sock=10 [14:44: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 37 36 08 01 00 00 58 A1 00 01 77 4D 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 54 FD C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AB 23 02 00 35 04 06 00 57 E4 6D C5 F9 0D B8 E2 92 80 D0 5B 7D 38 [14:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 80 21 47 00 B5 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 37 36 10 04 04 00 AB 23 02 00 F4 03 04 00 E5 A3 C5 66 B6 04 01 00 00 7A FC 54 B5 16 B0 47 E3 [14:44:38]CommunicateWithHost err = 0 [14:44:38]CheckOFDResponse [14:44:38]1017 (14) - 77093643461234 [14:44:38]1041 (16) - 0000000000871776 [14:44:38]1040 (4) - 140203 [14:44:38]1012 (4) - 21.08.2024 08:23 [14:44:38]1206 (1) - 0 [14:44:38]OFD Sender: Remove packet 140203 [14:44:38]ProducePacketName [14:44:38]name=ofd_packets/00140203 [14:44:38]NVStorageDeleteData [14:44:38]Write to MH i2c: 01 00 00 2E 0B 39 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: 01 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: 01 07 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: 01 07 00 2E 0B 00 00 00 00 00 DE 0C 2A [14:44:38]RasterBufferAndPrint [14:44:38]line [14:44:38]line [14:44:38]line [14:44:38]line [14:44:38]line [14:44:38]written 0, free lines is 3300 [14:44:38]MH_Cut [14:44:38]Write to MH i2c: D1 01 00 35 0B 01 12 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: D1 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: D1 01 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: D1 01 00 35 0B 00 11 [14:44:38]Write to MH i2c: 01 00 00 36 0B 41 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]OFD Sender: No OFD packet to send [14:44:38]*** Cut start [14:44:38]*** Partial cut [14:44:38]*** CUTSNS_PIN = 1 [14:44:38]*** CUTSNS_PIN = 0 [14:44:39]*** Brake cut motor [14:44:39]Read from MH i2c: 01 [14:44:39]MH_I2C_Read... [14:44:39]*** Stop cut motor [14:44:39]*** Cut end [14:44:39]Read from MH i2c: 01 07 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 FF 0F 56 [14:44:39]process_action close_receipt done [14:44:39]requested_data is exist [14:44:39]produce_requested_data [14:44:39]requested_item fm.sn is exist - process it [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 11 00 00 [14:44:39]Write to MH i2c: E2 08 00 37 0B 80 11 00 00 00 00 00 00 BC [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 17 00 [14:44:39]MH_I2C_Read... [14:44:39]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 37 36 90 00 13 [14:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:44:39]wFMCommunicate OK [14:44:39]requested_item fd.num is exist - process it [14:44:39]SAM_PROTO_GetFieldsCounters [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 13 00 00 [14:44:39]Write to MH i2c: E2 08 00 38 0B 80 13 00 00 00 00 00 00 BF [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 62 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 62 00 38 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:39]wFMCommunicate OK [14:44:39]SAM_PROTO_GetFieldsCounters done [14:44:39]requested_item shift.num is exist - process it [14:44:39]requested_item shift.opened is exist - process it [14:44:39]req_shift_opened [14:44:39]FM_GetShiftState [14:44:39]SAM_PROTO_GetShiftState [14:44:39]wFMCommunicate request_size=4 [14:44:39]MH_SAM_APDU [14:44:39]CAPDU: 80 13 01 00 [14:44:39]Write to MH i2c: E2 08 00 39 0B 80 13 01 00 00 00 00 00 C1 [14:44:39]Write i2c OK [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 [14:44:39]MH_I2C_Read... [14:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:39]Read from MH i2c: E2 0E 00 [14:44:39]MH_I2C_Read... [14:44:39]Read from MH i2c: E2 0E 00 39 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 41 [14:44:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:44:39]wFMCommunicate OK [14:44:39]SAM_PROTO_GetShiftState done [14:44:39]FM_GetShiftState done [14:44:39]req_shift_opened done [14:44:39]requested_item shift.open_date is exist - process it [14:44:39]req_shift_open_date [14:44:39]req_shift_open_date done [14:44:39]produce_requested_data done [14:44:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140203,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:44:39]process_action_free close_receipt [14:44:39]json_value_free [14:44:39]json_value_free done [14:44:39]process_json_proto returns [14:44:39]Send response to host [14:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140203,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:44:39]free response buf [14:44:39]execute_script done [14:44:39]execute_script returns [14:44:39]free content buf [14:44:39]Sock 9.Close socket [14:44:39]Sock 9.Thread stoped [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:39]accept exits with 8 [14:49:39]New connection [14:49:39]New thread 3067592036 created [14:49:39]Thread 3067448676 joined [14:49:39]Waiting for new connection... [14:49:39] Sock 8.Parse request [14:49:39]Sock 8.Check first char [14:49:39]Sock 8.First char is OK [14:49:39]request: POST /json_proto HTTP/1.0 [14:49:39]Method: POST [14:49:39]URL: /json_proto [14:49:39]Method is POST - this is cgi request [14:49:39]url: /json_proto [14:49:39]query_string will be loaded in cgi processing [14:49:39]execute_cgi json_proto POST (null) [14:49:39]execute_cgi path=json_proto method=POST [14:49:39]POST find Content-Length [14:49:39]Host: 172.17.45.67:8080 [14:49:39]Content-Length: 678 [14:49:39]Content-Type: application/json [14:49:39] [14:49:39]POST finish read [14:49:39]Found Content-Length = 678 [14:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.670, "sum" : 940.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:39]execute_script... [14:49:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 12.670, "sum" : 940.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:39]POST & json_proto [14:49:39]process_json_proto [14:49:39]json parsed OK: [14:49:39]protocol is kg_v1.0 [14:49:39]action value=close_receipt [14:49:39]process_action close_receipt [14:49:39]cmd_close_receipt [14:49:39]MH_GetDate [14:49:39]Write to MH i2c: F0 00 00 3A 0B 34 [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: F0 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: F0 09 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: F0 09 00 3A 0B 00 83 FE C5 66 5F 7F 2B 66 58 [14:49:39]GetLastDocTimeStamp 1724251476 [14:49:39]current date 1724251779 [14:49:39]FM_GetShiftState [14:49:39]SAM_PROTO_GetShiftState [14:49:39]wFMCommunicate request_size=4 [14:49:39]MH_SAM_APDU [14:49:39]CAPDU: 80 13 01 00 [14:49:39]Write to MH i2c: E2 08 00 3B 0B 80 13 01 00 00 00 00 00 C3 [14:49:39]Write i2c OK [14:49:39]MH_I2C_Read... [14:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:39]Read from MH i2c: E2 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 [14:49:39]MH_I2C_Read... [14:49:39]Read from MH i2c: E2 0E 00 3B 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [14:49:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:49:39]wFMCommunicate OK [14:49:39]SAM_PROTO_GetShiftState done [14:49:39]FM_GetShiftState done [14:49:39]opened in 1724200467 [14:49:39]opened+sec_in_day 1724286867 [14:49:39]quantity*price = 94011 [14:49:39]sum+1 = 94012 [14:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 940.00 Внесено: 940.00 СДАЧА: 0.00 НСП 1% : 8.32 НДС 12% : 99.83 Наличными: 940.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 221 21.08.2024 14:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140204 ФПД: 209915505710363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140204&fm=209915505710363&tin=02508201610067®Number=0000000000092569&sum=94000 [14:49:40]StoreToDocumentArchive [14:49:40]shift 454 fd 140204 [14:49:40]save to /storage/0454/doc_00140204 [14:49:40]save last doc name /storage/0454/doc_00140204 to /storage/kkm_last_doc_name [14:49:40]save OK [14:49:40]Clear old archive folders... [14:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:40]tlvbuf is 01C66BB0 [14:49:40]SAM_PROTO_ClearQueue [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 09 00 00 [14:49:40]Write to MH i2c: E2 08 00 48 0B 80 09 00 00 00 00 00 00 C5 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [14:49:40]RAPDU: 90 00 [14:49:40]wFMCommunicate OK [14:49:40]SAM_PROTO_ClearQueue done [14:49:40]KKMCreateOFDPacket [14:49:40]OFDProtocolAddRootSTLVToBuf [14:49:40]FM_MakeSignedData [14:49:40]FM_MakeSignedData [14:49:40]SAM_PROTO_SignData [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 0D 01 02 [14:49:40]Write to MH i2c: E2 08 00 49 0B 80 0D 01 02 00 00 00 00 CD [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [14:49:40]RAPDU: 90 00 [14:49:40]wFMCommunicate OK [14:49:40]wFMCommunicate request_size=255 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 26 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 84 FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 23 02 00 35 04 06 00 BE [14:49:40]Write to MH i2c: E2 02 01 4A 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 26 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 84 FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 23 02 00 35 04 06 00 BE 00 00 DF [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [14:49:40]RAPDU: 90 00 [14:49:40]wFMCommunicate OK [14:49:40]wFMCommunicate request_size=10 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 0D 02 02 05 EA C3 26 95 1B [14:49:40]Write to MH i2c: E2 0D 00 4B 0B 80 0D 02 02 05 00 EA C3 26 95 1B 00 00 5D [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [14:49:40]RAPDU: 90 00 [14:49:40]wFMCommunicate OK [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 0D 03 02 [14:49:40]Write to MH i2c: E2 08 00 4C 0B 80 0D 03 02 00 00 00 00 D2 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0B 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 0B 00 4C 0B 00 7C 7D B1 34 48 C1 40 C6 90 00 C0 [14:49:40]RAPDU: 7C 7D B1 34 48 C1 40 C6 90 00 [14:49:40]wFMCommunicate OK [14:49:40]SAM_PROTO_SignData done [14:49:40]FM_MakeSignedData done [14:49:40]CreateOFDProtocolMessage [14:49:40]wFMCommunicate request_size=4 [14:49:40]MH_SAM_APDU [14:49:40]CAPDU: 80 11 00 00 [14:49:40]Write to MH i2c: E2 08 00 4D 0B 80 11 00 00 00 00 00 00 D2 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:40]Read from MH i2c: E2 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 17 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: E2 17 00 4D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [14:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:49:40]wFMCommunicate OK [14:49:40]CreateOFDProtocolMessage done [14:49:40]OFDSenderStorePacket 140204 [14:49:40]StoreOFDPacket docnum=140204 [14:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 67 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 26 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 84 FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 23 02 00 35 04 06 00 BE EA C3 26 95 1B 7C 7D B1 34 48 C1 40 C6 [14:49:40]CheckFolder [14:49:40]dirname=/storage/ofd_packets [14:49:40]CheckFolder done [14:49:40]ProducePacketName [14:49:40]name=ofd_packets/00140204 [14:49:40]NVStorageSaveData ofd_packets/00140204 [14:49:40]File name is /storage/ofd_packets/00140204 [14:49:40]Write 301 bytes [14:49:40]NVStorageSaveData done [14:49:40]OFDSenderStorePacket done [14:49:40]KKMCreateOFDPacket done [14:49:40]NVStorageSaveData kkm_last_timestamp [14:49:40]File name is /storage/kkm_last_timestamp [14:49:40]Write 4 bytes [14:49:40]NVStorageSaveData done [14:49:40]ExternCall_PrintAddStr [14:49:40]wPrintStart [14:49:40]Write to MH i2c: 01 00 00 4E 0B 59 [14:49:40]Write i2c OK [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: 01 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: 01 07 00 [14:49:40]MH_I2C_Read... [14:49:40]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 FF 0F 6E [14:49:40]RasterBufferAndPrint [14:49:40]line Счет N : (1)594059 [14:49:40]line ИНН: 02508201610067 [14:49:40]line Контрольно-Кассовый Чек [14:49:40]line ПРОДАЖА [14:49:40]line ТРК (МРК, ГНК) : 51 [14:49:40]line Товар: 2710124500 [14:49:40]line Аи-95-К-5 [14:49:40]line 12.670 * 74.20 [14:49:40]line = 940.11 [14:49:40]line НДС 12% НСП 1% [14:49:40]line > о реализуемом товаре [14:49:40]line ОКРУГЛЕНИЕ: -0.11 [14:49:40]line ИТОГО: 940.00 [14:49:40]line Внесено: 940.00 [14:49:40]line СДАЧА: 0.00 [14:49:40]line НСП 1% : 8.32 [14:49:40]line НДС 12% : 99.83 [14:49:40]line Наличными: 940.00 [14:49:40]line Безнал.: 0.00 [14:49:40]line Место: АЗС № 136 "Партнер Нефть" [14:49:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:49:40]line СНО: Общий режим [14:49:40]line Чек 221 21.08.2024 14:49 [14:49:40]line Смена: 454 ФФД: 1.0 [14:49:40]line ЗНМ: 0300000067 [14:49:40]line РНМ: 0000000000092569 [14:49:40]line Версия ККМ: 001 [14:49:40]line ФМ: 0000000000871776 [14:49:40]line ФД: 140204 [14:49:40]line ФПД: 209915505710363 [14:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T144940&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140204&fm=209915505710363&tin=02508201610067®Number=0000000000092569&sum=94000 [14:49:40]written 0, free lines is 4095 [14:49:40]OFD Sender: Processing packet 140204 [packets to send 137, broken 136] [14:49:40]ProducePacketName [14:49:40]name=ofd_packets/00140204 [14:49:40]OFD Sender: To server: pG, [14:49:40]CommunicateWithHost lk.salyk.kg:30040 [14:49:40]ConnectInit lk.salyk.kg [14:49:41]Connected sock=10 [14:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 67 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E 31 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3B 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 26 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 84 FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 23 02 00 35 04 06 00 BE EA C3 26 95 1B 7C 7D B1 34 48 C1 40 C6 [14:49:41]Write to MH i2c: 01 00 00 79 0B 84 [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 07 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: 01 07 00 79 0B 00 00 00 00 00 CA 0C 61 [14:49:41]RasterBufferAndPrint [14:49:41]line [14:49:41]line [14:49:41]line [14:49:41]line [14:49:41]line [14:49:41]written 0, free lines is 3277 [14:49:41]MH_Cut [14:49:41]Write to MH i2c: D1 01 00 80 0B 01 5D [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: D1 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: D1 01 00 [14:49:41]MH_I2C_Read... [14:49:41]Read from MH i2c: D1 01 00 80 0B 00 5C [14:49:41]Write to MH i2c: 01 00 00 81 0B 8C [14:49:41]Write i2c OK [14:49:41]MH_I2C_Read... [14:49:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 68 CA 47 00 67 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AC 23 02 00 F4 03 04 00 14 A5 C5 66 B6 04 01 00 00 DF 43 46 B3 0B 58 8C 77 [14:49:41]CommunicateWithHost err = 0 [14:49:41]CheckOFDResponse [14:49:41]1017 (14) - 77093643461234 [14:49:41]1041 (16) - 0000000000871776 [14:49:41]1040 (4) - 140204 [14:49:41]1012 (4) - 21.08.2024 08:28 [14:49:41]1206 (1) - 0 [14:49:41]OFD Sender: Remove packet 140204 [14:49:41]ProducePacketName [14:49:41]name=ofd_packets/00140204 [14:49:41]NVStorageDeleteData [14:49:41]OFD Sender: No OFD packet to send [14:49:41]*** Cut start [14:49:41]*** Partial cut [14:49:41]*** CUTSNS_PIN = 1 [14:49:42]*** CUTSNS_PIN = 0 [14:49:42]*** Brake cut motor [14:49:42]Read from MH i2c: 01 [14:49:42]MH_I2C_Read... [14:49:42]*** Stop cut motor [14:49:42]*** Cut end [14:49:42]Read from MH i2c: 01 07 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 FF 0F A1 [14:49:42]process_action close_receipt done [14:49:42]requested_data is exist [14:49:42]produce_requested_data [14:49:42]requested_item fm.sn is exist - process it [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 11 00 00 [14:49:42]Write to MH i2c: E2 08 00 82 0B 80 11 00 00 00 00 00 00 07 [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 17 00 [14:49:42]MH_I2C_Read... [14:49:42]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 37 36 90 00 5E [14:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:49:42]wFMCommunicate OK [14:49:42]requested_item fd.num is exist - process it [14:49:42]SAM_PROTO_GetFieldsCounters [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 13 00 00 [14:49:42]Write to MH i2c: E2 08 00 83 0B 80 13 00 00 00 00 00 00 0A [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 62 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 62 00 83 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_GetFieldsCounters done [14:49:42]requested_item shift.num is exist - process it [14:49:42]requested_item shift.opened is exist - process it [14:49:42]req_shift_opened [14:49:42]FM_GetShiftState [14:49:42]SAM_PROTO_GetShiftState [14:49:42]wFMCommunicate request_size=4 [14:49:42]MH_SAM_APDU [14:49:42]CAPDU: 80 13 01 00 [14:49:42]Write to MH i2c: E2 08 00 84 0B 80 13 01 00 00 00 00 00 0C [14:49:42]Write i2c OK [14:49:42]MH_I2C_Read... [14:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:42]Read from MH i2c: E2 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0E 00 [14:49:42]MH_I2C_Read... [14:49:42]Read from MH i2c: E2 0E 00 84 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8C [14:49:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:49:42]wFMCommunicate OK [14:49:42]SAM_PROTO_GetShiftState done [14:49:42]FM_GetShiftState done [14:49:42]req_shift_opened done [14:49:42]requested_item shift.open_date is exist - process it [14:49:42]req_shift_open_date [14:49:42]req_shift_open_date done [14:49:42]produce_requested_data done [14:49:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140204,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:49:42]process_action_free close_receipt [14:49:42]json_value_free [14:49:42]json_value_free done [14:49:42]process_json_proto returns [14:49:42]Send response to host [14:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140204,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:49:42]free response buf [14:49:42]execute_script done [14:49:42]execute_script returns [14:49:42]free content buf [14:49:42]Sock 8.Close socket [14:49:42]Sock 8.Thread stoped [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:23]accept exits with 9 [14:51:23]New connection [14:51:23]New thread 3067448676 created [14:51:23]Thread 3067592036 joined [14:51:23]Waiting for new connection... [14:51:23] Sock 9.Parse request [14:51:23]Sock 9.Check first char [14:51:23]Sock 9.First char is OK [14:51:23]request: POST /json_proto HTTP/1.0 [14:51:23]Method: POST [14:51:23]URL: /json_proto [14:51:23]Method is POST - this is cgi request [14:51:23]url: /json_proto [14:51:23]query_string will be loaded in cgi processing [14:51:23]execute_cgi json_proto POST (null) [14:51:23]execute_cgi path=json_proto method=POST [14:51:23]POST find Content-Length [14:51:23]Host: 172.17.45.67:8080 [14:51:23]Content-Length: 677 [14:51:23]Content-Type: application/json [14:51:23] [14:51:23]POST finish read [14:51:23]Found Content-Length = 677 [14:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [14:51:23]execute_script... [14:51:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [14:51:23]POST & json_proto [14:51:23]process_json_proto [14:51:23]json parsed OK: [14:51:23]protocol is kg_v1.0 [14:51:23]action value=close_receipt [14:51:23]process_action close_receipt [14:51:23]cmd_close_receipt [14:51:23]MH_GetDate [14:51:23]Write to MH i2c: F0 00 00 85 0B 7F [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: F0 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: F0 09 00 [14:51:23]MH_I2C_Read... [14:51:23]Read from MH i2c: F0 09 00 85 0B 00 EC FE C5 66 5F 7F 2B 66 0C [14:51:23]GetLastDocTimeStamp 1724251780 [14:51:23]current date 1724251884 [14:51:23]FM_GetShiftState [14:51:23]SAM_PROTO_GetShiftState [14:51:23]wFMCommunicate request_size=4 [14:51:23]MH_SAM_APDU [14:51:23]CAPDU: 80 13 01 00 [14:51:23]Write to MH i2c: E2 08 00 86 0B 80 13 01 00 00 00 00 00 0E [14:51:23]Write i2c OK [14:51:23]MH_I2C_Read... [14:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:24]Read from MH i2c: E2 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0E 00 [14:51:24]MH_I2C_Read... [14:51:24]Read from MH i2c: E2 0E 00 86 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [14:51:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:51:24]wFMCommunicate OK [14:51:24]SAM_PROTO_GetShiftState done [14:51:24]FM_GetShiftState done [14:51:24]opened in 1724200467 [14:51:24]opened+sec_in_day 1724286867 [14:51:24]quantity*price = 35052 [14:51:24]sum+1 = 35054 [14:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 222 21.08.2024 14:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140205 ФПД: 113764428795128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145124&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140205&fm=113764428795128&tin=02508201610067®Number=0000000000092569&sum=35000 [14:51:25]StoreToDocumentArchive [14:51:25]shift 454 fd 140205 [14:51:25]save to /storage/0454/doc_00140205 [14:51:25]save last doc name /storage/0454/doc_00140205 to /storage/kkm_last_doc_name [14:51:25]save OK [14:51:25]Clear old archive folders... [14:51:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:25]tlvbuf is 01C9C350 [14:51:25]SAM_PROTO_ClearQueue [14:51:25]wFMCommunicate request_size=4 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 09 00 00 [14:51:25]Write to MH i2c: E2 08 00 93 0B 80 09 00 00 00 00 00 00 10 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [14:51:25]RAPDU: 90 00 [14:51:25]wFMCommunicate OK [14:51:25]SAM_PROTO_ClearQueue done [14:51:25]KKMCreateOFDPacket [14:51:25]OFDProtocolAddRootSTLVToBuf [14:51:25]FM_MakeSignedData [14:51:25]FM_MakeSignedData [14:51:25]SAM_PROTO_SignData [14:51:25]wFMCommunicate request_size=4 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 0D 01 02 [14:51:25]Write to MH i2c: E2 08 00 94 0B 80 0D 01 02 00 00 00 00 18 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [14:51:25]RAPDU: 90 00 [14:51:25]wFMCommunicate OK [14:51:25]wFMCommunicate request_size=255 [14:51:25]MH_SAM_APDU [14:51: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 DE 00 00 00 F4 03 04 00 EC FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 23 02 00 35 04 06 00 67 [14:51:25]Write to MH i2c: E2 02 01 95 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 DE 00 00 00 F4 03 04 00 EC FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 23 02 00 35 04 06 00 67 00 00 BF [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [14:51:25]RAPDU: 90 00 [14:51:25]wFMCommunicate OK [14:51:25]wFMCommunicate request_size=10 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 0D 02 02 05 77 D8 5D CC F8 [14:51:25]Write to MH i2c: E2 0D 00 96 0B 80 0D 02 02 05 00 77 D8 5D CC F8 00 00 95 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [14:51:25]RAPDU: 90 00 [14:51:25]wFMCommunicate OK [14:51:25]wFMCommunicate request_size=4 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 0D 03 02 [14:51:25]Write to MH i2c: E2 08 00 97 0B 80 0D 03 02 00 00 00 00 1D [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 0B 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 0B 00 97 0B 00 36 28 2A 48 60 53 CE 79 90 00 E8 [14:51:25]RAPDU: 36 28 2A 48 60 53 CE 79 90 00 [14:51:25]wFMCommunicate OK [14:51:25]SAM_PROTO_SignData done [14:51:25]FM_MakeSignedData done [14:51:25]CreateOFDProtocolMessage [14:51:25]wFMCommunicate request_size=4 [14:51:25]MH_SAM_APDU [14:51:25]CAPDU: 80 11 00 00 [14:51:25]Write to MH i2c: E2 08 00 98 0B 80 11 00 00 00 00 00 00 1D [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:25]Read from MH i2c: E2 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 17 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: E2 17 00 98 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [14:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:51:25]wFMCommunicate OK [14:51:25]CreateOFDProtocolMessage done [14:51:25]OFDSenderStorePacket 140205 [14:51:25]StoreOFDPacket docnum=140205 [14:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 39 07 01 4A 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 DE 00 00 00 F4 03 04 00 EC FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 23 02 00 35 04 06 00 67 77 D8 5D CC F8 36 28 2A 48 60 53 CE 79 [14:51:25]CheckFolder [14:51:25]dirname=/storage/ofd_packets [14:51:25]CheckFolder done [14:51:25]ProducePacketName [14:51:25]name=ofd_packets/00140205 [14:51:25]NVStorageSaveData ofd_packets/00140205 [14:51:25]File name is /storage/ofd_packets/00140205 [14:51:25]Write 301 bytes [14:51:25]NVStorageSaveData done [14:51:25]OFDSenderStorePacket done [14:51:25]KKMCreateOFDPacket done [14:51:25]NVStorageSaveData kkm_last_timestamp [14:51:25]File name is /storage/kkm_last_timestamp [14:51:25]Write 4 bytes [14:51:25]NVStorageSaveData done [14:51:25]ExternCall_PrintAddStr [14:51:25]wPrintStart [14:51:25]Write to MH i2c: 01 00 00 99 0B A4 [14:51:25]Write i2c OK [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 07 00 [14:51:25]MH_I2C_Read... [14:51:25]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 FF 0F B9 [14:51:25]RasterBufferAndPrint [14:51:25]line Счет N : (1)594061 [14:51:25]line ИНН: 02508201610067 [14:51:25]line Контрольно-Кассовый Чек [14:51:25]line ПРОДАЖА [14:51:25]line ТРК (МРК, ГНК) : 32 [14:51:25]line Товар: 2710124130 [14:51:25]line Аи-92-К-5 [14:51:25]line 5.170 * 67.80 [14:51:25]line = 350.53 [14:51:25]line НДС 12% НСП 1% [14:51:25]line > о реализуемом товаре [14:51:25]line ОКРУГЛЕНИЕ: -0.53 [14:51:25]line ИТОГО: 350.00 [14:51:25]line Внесено: 350.00 [14:51:25]line СДАЧА: 0.00 [14:51:25]line НСП 1% : 3.10 [14:51:25]line НДС 12% : 37.22 [14:51:25]line Наличными: 350.00 [14:51:25]line Безнал.: 0.00 [14:51:25]line Место: АЗС № 136 "Партнер Нефть" [14:51:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:51:25]line СНО: Общий режим [14:51:25]line Чек 222 21.08.2024 14:51 [14:51:25]line Смена: 454 ФФД: 1.0 [14:51:25]line ЗНМ: 0300000067 [14:51:25]line РНМ: 0000000000092569 [14:51:25]line Версия ККМ: 001 [14:51:25]line ФМ: 0000000000871776 [14:51:25]line ФД: 140205 [14:51:25]line ФПД: 113764428795128 [14:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145124&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140205&fm=113764428795128&tin=02508201610067®Number=0000000000092569&sum=35000 [14:51:26]written 0, free lines is 4095 [14:51:26]OFD Sender: Processing packet 140205 [packets to send 137, broken 136] [14:51:26]ProducePacketName [14:51:26]name=ofd_packets/00140205 [14:51:26]OFD Sender: To server: pG, [14:51:26]CommunicateWithHost lk.salyk.kg:30040 [14:51:26]ConnectInit lk.salyk.kg [14:51:26]Connected sock=10 [14:51: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 37 36 0F 01 00 00 9D 39 07 01 4A 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 DE 00 00 00 F4 03 04 00 EC FE C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AD 23 02 00 35 04 06 00 67 77 D8 5D CC F8 36 28 2A 48 60 53 CE 79 [14:51: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 37 36 4F 00 00 00 0F 19 47 00 B2 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 37 36 10 04 04 00 AD 23 02 00 F4 03 04 00 7D A5 C5 66 B6 04 01 00 00 EF F9 B9 13 C7 83 38 A8 [14:51:26]CommunicateWithHost err = 0 [14:51:26]CheckOFDResponse [14:51:26]1017 (14) - 77093643461234 [14:51:26]1041 (16) - 0000000000871776 [14:51:26]1040 (4) - 140205 [14:51:26]1012 (4) - 21.08.2024 08:29 [14:51:26]1206 (1) - 0 [14:51:26]OFD Sender: Remove packet 140205 [14:51:26]ProducePacketName [14:51:26]name=ofd_packets/00140205 [14:51:26]NVStorageDeleteData [14:51:26]Write to MH i2c: 01 00 00 C4 0B CF [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: 01 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: 01 07 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 CB 0C AD [14:51:26]RasterBufferAndPrint [14:51:26]line [14:51:26]line [14:51:26]line [14:51:26]line [14:51:26]line [14:51:26]written 0, free lines is 3281 [14:51:26]MH_Cut [14:51:26]Write to MH i2c: D1 01 00 CB 0B 01 A8 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: D1 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: D1 01 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: D1 01 00 CB 0B 00 A7 [14:51:26]Write to MH i2c: 01 00 00 CC 0B D7 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]OFD Sender: No OFD packet to send [14:51:27]*** Cut start [14:51:27]*** Partial cut [14:51:27]*** CUTSNS_PIN = 1 [14:51:27]*** CUTSNS_PIN = 0 [14:51:27]*** Brake cut motor [14:51:27]Read from MH i2c: 01 [14:51:27]MH_I2C_Read... [14:51:27]*** Stop cut motor [14:51:27]*** Cut end [14:51:27]Read from MH i2c: 01 07 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 FF 0F EC [14:51:27]process_action close_receipt done [14:51:27]requested_data is exist [14:51:27]produce_requested_data [14:51:27]requested_item fm.sn is exist - process it [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 11 00 00 [14:51:27]Write to MH i2c: E2 08 00 CD 0B 80 11 00 00 00 00 00 00 52 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 17 00 [14:51:27]MH_I2C_Read... [14:51:27]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 37 36 90 00 A9 [14:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:51:27]wFMCommunicate OK [14:51:27]requested_item fd.num is exist - process it [14:51:27]SAM_PROTO_GetFieldsCounters [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 13 00 00 [14:51:27]Write to MH i2c: E2 08 00 CE 0B 80 13 00 00 00 00 00 00 55 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 62 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 62 00 CE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:27]wFMCommunicate OK [14:51:27]SAM_PROTO_GetFieldsCounters done [14:51:27]requested_item shift.num is exist - process it [14:51:27]requested_item shift.opened is exist - process it [14:51:27]req_shift_opened [14:51:27]FM_GetShiftState [14:51:27]SAM_PROTO_GetShiftState [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 13 01 00 [14:51:27]Write to MH i2c: E2 08 00 CF 0B 80 13 01 00 00 00 00 00 57 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0E 00 CF 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [14:51:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:51:28]wFMCommunicate OK [14:51:28]SAM_PROTO_GetShiftState done [14:51:28]FM_GetShiftState done [14:51:28]req_shift_opened done [14:51:28]requested_item shift.open_date is exist - process it [14:51:28]req_shift_open_date [14:51:28]req_shift_open_date done [14:51:28]produce_requested_data done [14:51:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140205,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:51:28]process_action_free close_receipt [14:51:28]json_value_free [14:51:28]json_value_free done [14:51:28]process_json_proto returns [14:51:28]Send response to host [14:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140205,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:51:28]free response buf [14:51:28]execute_script done [14:51:28]execute_script returns [14:51:28]free content buf [14:51:28]Sock 9.Close socket [14:51:28]Sock 9.Thread stoped [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:11]accept exits with 8 [14:55:11]New connection [14:55:11]New thread 3067592036 created [14:55:11]Thread 3067448676 joined [14:55:11]Waiting for new connection... [14:55:11] Sock 8.Parse request [14:55:11]Sock 8.Check first char [14:55:11]Sock 8.First char is OK [14:55:11]request: POST /json_proto HTTP/1.0 [14:55:11]Method: POST [14:55:11]URL: /json_proto [14:55:11]Method is POST - this is cgi request [14:55:11]url: /json_proto [14:55:11]query_string will be loaded in cgi processing [14:55:11]execute_cgi json_proto POST (null) [14:55:11]execute_cgi path=json_proto method=POST [14:55:11]POST find Content-Length [14:55:11]Host: 172.17.45.67:8080 [14:55:11]Content-Length: 687 [14:55:11]Content-Type: application/json [14:55:11] [14:55:11]POST finish read [14:55:11]Found Content-Length = 687 [14:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:55:11]execute_script... [14:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:55:11]POST & json_proto [14:55:11]process_json_proto [14:55:11]json parsed OK: [14:55:11]protocol is kg_v1.0 [14:55:11]action value=close_receipt [14:55:11]process_action close_receipt [14:55:11]cmd_close_receipt [14:55:11]MH_GetDate [14:55:11]Write to MH i2c: F0 00 00 D0 0B CA [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 09 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 09 00 D0 0B 00 D0 FF C5 66 5F 7F 2B 66 3C [14:55:11]GetLastDocTimeStamp 1724251884 [14:55:11]current date 1724252112 [14:55:11]FM_GetShiftState [14:55:11]SAM_PROTO_GetShiftState [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 13 01 00 [14:55:11]Write to MH i2c: E2 08 00 D1 0B 80 13 01 00 00 00 00 00 59 [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 D1 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [14:55:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_GetShiftState done [14:55:11]FM_GetShiftState done [14:55:11]opened in 1724200467 [14:55:11]opened+sec_in_day 1724286867 [14:55:11]quantity*price = 200025 [14:55:11]sum+1 = 200026 [14:55: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 223 21.08.2024 14:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140206 ФПД: 121080304854778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145512&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140206&fm=121080304854778&tin=02508201610067®Number=0000000000092569&sum=200000 [14:55:12]StoreToDocumentArchive [14:55:12]shift 454 fd 140206 [14:55:12]save to /storage/0454/doc_00140206 [14:55:12]save last doc name /storage/0454/doc_00140206 to /storage/kkm_last_doc_name [14:55:12]save OK [14:55:12]Clear old archive folders... [14:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:55:12]tlvbuf is 01C33D30 [14:55:12]SAM_PROTO_ClearQueue [14:55:12]wFMCommunicate request_size=4 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 09 00 00 [14:55:12]Write to MH i2c: E2 08 00 DE 0B 80 09 00 00 00 00 00 00 5B [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:12]Read from MH i2c: E2 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [14:55:12]RAPDU: 90 00 [14:55:12]wFMCommunicate OK [14:55:12]SAM_PROTO_ClearQueue done [14:55:12]KKMCreateOFDPacket [14:55:12]OFDProtocolAddRootSTLVToBuf [14:55:12]FM_MakeSignedData [14:55:12]FM_MakeSignedData [14:55:12]SAM_PROTO_SignData [14:55:12]wFMCommunicate request_size=4 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 0D 01 02 [14:55:12]Write to MH i2c: E2 08 00 DF 0B 80 0D 01 02 00 00 00 00 63 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:12]Read from MH i2c: E2 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [14:55:12]RAPDU: 90 00 [14:55:12]wFMCommunicate OK [14:55:12]wFMCommunicate request_size=255 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DF 00 00 00 F4 03 04 00 D0 FF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 23 02 00 35 04 06 00 [14:55:12]Write to MH i2c: E2 02 01 E0 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DF 00 00 00 F4 03 04 00 D0 FF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 23 02 00 35 04 06 00 00 00 3B [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=11 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 02 02 06 6E 1F 34 8F 66 FA [14:55:13]Write to MH i2c: E2 0E 00 E1 0B 80 0D 02 02 06 00 6E 1F 34 8F 66 FA 00 00 22 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 03 02 [14:55:13]Write to MH i2c: E2 08 00 E2 0B 80 0D 03 02 00 00 00 00 68 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 0B 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 0B 00 E2 0B 00 F3 39 5A 9B 7D 0C 42 3F 90 00 94 [14:55:13]RAPDU: F3 39 5A 9B 7D 0C 42 3F 90 00 [14:55:13]wFMCommunicate OK [14:55:13]SAM_PROTO_SignData done [14:55:13]FM_MakeSignedData done [14:55:13]CreateOFDProtocolMessage [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 11 00 00 [14:55:13]Write to MH i2c: E2 08 00 E3 0B 80 11 00 00 00 00 00 00 68 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 E3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [14:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:55:13]wFMCommunicate OK [14:55:13]CreateOFDProtocolMessage done [14:55:13]OFDSenderStorePacket 140206 [14:55:13]StoreOFDPacket docnum=140206 [14:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 60 08 01 16 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DF 00 00 00 F4 03 04 00 D0 FF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 23 02 00 35 04 06 00 6E 1F 34 8F 66 FA F3 39 5A 9B 7D 0C 42 3F [14:55:13]CheckFolder [14:55:13]dirname=/storage/ofd_packets [14:55:13]CheckFolder done [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00140206 [14:55:13]NVStorageSaveData ofd_packets/00140206 [14:55:13]File name is /storage/ofd_packets/00140206 [14:55:13]Write 302 bytes [14:55:13]NVStorageSaveData done [14:55:13]OFDSenderStorePacket done [14:55:13]KKMCreateOFDPacket done [14:55:13]NVStorageSaveData kkm_last_timestamp [14:55:13]File name is /storage/kkm_last_timestamp [14:55:13]Write 4 bytes [14:55:13]NVStorageSaveData done [14:55:13]ExternCall_PrintAddStr [14:55:13]wPrintStart [14:55:13]Write to MH i2c: 01 00 00 E4 0B EF [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 07 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 FF 0F 04 [14:55:13]RasterBufferAndPrint [14:55:13]line Счет N : (1)594060 [14:55:13]line ИНН: 02508201610067 [14:55:13]line Контрольно-Кассовый Чек [14:55:13]line ПРОДАЖА [14:55:13]line ТРК (МРК, ГНК) : 64 [14:55:13]line Товар: 2710194210 [14:55:13]line ДТ(л)-К-5 [14:55:13]line 26.250 * 76.20 [14:55:13]line = 2000.25 [14:55:13]line НДС 12% НСП 1% [14:55:13]line > о реализуемом товаре [14:55:13]line ОКРУГЛЕНИЕ: -0.25 [14:55:13]line ИТОГО: 2000.00 [14:55:13]line Внесено: 2000.00 [14:55:13]line СДАЧА: 0.00 [14:55:13]line НСП 1% : 17.70 [14:55:13]line НДС 12% : 212.42 [14:55:13]line Наличными: 2000.00 [14:55:13]line Безнал.: 0.00 [14:55:13]line Место: АЗС № 136 "Партнер Нефть" [14:55:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:55:13]line СНО: Общий режим [14:55:13]line Чек 223 21.08.2024 14:55 [14:55:13]line Смена: 454 ФФД: 1.0 [14:55:13]line ЗНМ: 0300000067 [14:55:13]line РНМ: 0000000000092569 [14:55:13]line Версия ККМ: 001 [14:55:13]line ФМ: 0000000000871776 [14:55:13]line ФД: 140206 [14:55:13]line ФПД: 121080304854778 [14:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145512&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140206&fm=121080304854778&tin=02508201610067®Number=0000000000092569&sum=200000 [14:55:13]OFD Sender: Processing packet 140206 [packets to send 137, broken 136] [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00140206 [14:55:13]OFD Sender: To server: pG, [14:55:13]CommunicateWithHost lk.salyk.kg:30040 [14:55:13]ConnectInit lk.salyk.kg [14:55:13]written 0, free lines is 4095 [14:55:13]Connected sock=10 [14:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 56 60 08 01 16 63 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DF 00 00 00 F4 03 04 00 D0 FF C5 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 23 02 00 35 04 06 00 6E 1F 34 8F 66 FA F3 39 5A 9B 7D 0C 42 3F [14:55: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 37 36 4F 00 00 00 C6 62 47 00 8D 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AE 23 02 00 F4 03 04 00 61 A6 C5 66 B6 04 01 00 00 1F B6 23 A1 F6 BB 20 63 [14:55:14]CommunicateWithHost err = 0 [14:55:14]CheckOFDResponse [14:55:14]1017 (14) - 77093643461234 [14:55:14]1041 (16) - 0000000000871776 [14:55:14]1040 (4) - 140206 [14:55:14]1012 (4) - 21.08.2024 08:33 [14:55:14]1206 (1) - 0 [14:55:14]OFD Sender: Remove packet 140206 [14:55:14]ProducePacketName [14:55:14]name=ofd_packets/00140206 [14:55:14]NVStorageDeleteData [14:55:14]Write to MH i2c: 01 00 00 0F 0C 1B [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 D6 0C 04 [14:55:14]RasterBufferAndPrint [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]written 0, free lines is 3293 [14:55:14]MH_Cut [14:55:14]Write to MH i2c: D1 01 00 16 0C 01 F4 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 16 0C 00 F3 [14:55:14]Write to MH i2c: 01 00 00 17 0C 23 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]OFD Sender: No OFD packet to send [14:55:14]*** Cut start [14:55:14]*** Partial cut [14:55:14]*** CUTSNS_PIN = 1 [14:55:14]*** CUTSNS_PIN = 0 [14:55:15]*** Brake cut motor [14:55:15]Read from MH i2c: 01 [14:55:15]MH_I2C_Read... [14:55:15]*** Stop cut motor [14:55:15]*** Cut end [14:55:15]Read from MH i2c: 01 07 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FF 0F 38 [14:55:15]process_action close_receipt done [14:55:15]requested_data is exist [14:55:15]produce_requested_data [14:55:15]requested_item fm.sn is exist - process it [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 11 00 00 [14:55:15]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 17 00 [14:55:15]MH_I2C_Read... [14:55:15]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 37 36 90 00 F5 [14:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:55:15]wFMCommunicate OK [14:55:15]requested_item fd.num is exist - process it [14:55:15]SAM_PROTO_GetFieldsCounters [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 00 00 [14:55:15]Write to MH i2c: E2 08 00 19 0C 80 13 00 00 00 00 00 00 A1 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 62 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 62 00 19 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_GetFieldsCounters done [14:55:15]requested_item shift.num is exist - process it [14:55:15]requested_item shift.opened is exist - process it [14:55:15]req_shift_opened [14:55:15]FM_GetShiftState [14:55:15]SAM_PROTO_GetShiftState [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 01 00 [14:55:15]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 23 [14:55:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_GetShiftState done [14:55:15]FM_GetShiftState done [14:55:15]req_shift_opened done [14:55:15]requested_item shift.open_date is exist - process it [14:55:15]req_shift_open_date [14:55:15]req_shift_open_date done [14:55:15]produce_requested_data done [14:55:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140206,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:55:15]process_action_free close_receipt [14:55:15]json_value_free [14:55:15]json_value_free done [14:55:15]process_json_proto returns [14:55:15]Send response to host [14:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140206,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:55:15]free response buf [14:55:15]execute_script done [14:55:15]execute_script returns [14:55:15]free content buf [14:55:15]Sock 8.Close socket [14:55:15]Sock 8.Thread stoped [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:20]int [14:58:20]Write to MH i2c: 01 00 00 1B 0C 27 [14:58:20]*** FLAG_PRN_KEY set [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 1B 0C 00 08 00 00 00 FF 0F 44 [14:58:20]state=0 [14:58:20]Key pressed [14:58:20]Feed [14:58:20]Write to MH i2c: D8 00 00 1C 0C FF [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D8 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D8 01 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: D8 01 00 1C 0C 00 00 [14:58:20]int [14:58:20]Write to MH i2c: 01 00 00 1D 0C 29 [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 1D 0C 00 48 00 00 00 3C 00 B4 [14:58:20]state=2 [14:58:20]Key pressed [14:58:20]int [14:58:20]Write to MH i2c: 01 00 00 1E 0C 2A [14:58:20]*** FLAG_PRN_KEY reset [14:58:20]Write i2c OK [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 [14:58:20]MH_I2C_Read... [14:58:20]Read from MH i2c: 01 07 00 1E 0C 00 00 00 00 00 F6 0F 36 [14:58:20]state=2 [14:58:20]Stop feed [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:35]accept exits with 9 [14:59:35]New connection [14:59:35]New thread 3067448676 created [14:59:35]Thread 3067592036 joined [14:59:35]Waiting for new connection... [14:59:35] Sock 9.Parse request [14:59:35]Sock 9.Check first char [14:59:35]Sock 9.First char is OK [14:59:35]request: POST /json_proto HTTP/1.0 [14:59:35]Method: POST [14:59:35]URL: /json_proto [14:59:35]Method is POST - this is cgi request [14:59:35]url: /json_proto [14:59:35]query_string will be loaded in cgi processing [14:59:35]execute_cgi json_proto POST (null) [14:59:35]execute_cgi path=json_proto method=POST [14:59:35]POST find Content-Length [14:59:35]Host: 172.17.45.67:8080 [14:59:35]Content-Length: 838 [14:59:35]Content-Type: application/json [14:59:35] [14:59:35]POST finish read [14:59:35]Found Content-Length = 838 [14:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]execute_script... [14:59: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)594062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:35]POST & json_proto [14:59:35]process_json_proto [14:59:35]json parsed OK: [14:59:35]protocol is kg_v1.0 [14:59:35]action value=close_receipt [14:59:35]process_action close_receipt [14:59:35]cmd_close_receipt [14:59:35]MH_GetDate [14:59:35]Write to MH i2c: F0 00 00 1F 0C 1A [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: F0 09 00 1F 0C 00 D8 00 C6 66 5F 7F 2B 66 96 [14:59:35]GetLastDocTimeStamp 1724252112 [14:59:35]current date 1724252376 [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 20 0C 80 13 01 00 00 00 00 00 A9 [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 20 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [14:59:35]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [14:59:35]opened+sec_in_day 1724286867 [14:59:35]quantity*price = 100005 [14:59:35]sum+1 = 100006 [14:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 224 21.08.2024 14:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140207 ФПД: 149367132019031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140207&fm=149367132019031&tin=02508201610067®Number=0000000000092569&sum=100000 [14:59:36]StoreToDocumentArchive [14:59:36]shift 454 fd 140207 [14:59:36]save to /storage/0454/doc_00140207 [14:59:36]save last doc name /storage/0454/doc_00140207 to /storage/kkm_last_doc_name [14:59:36]save OK [14:59:36]Clear old archive folders... [14:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:36]tlvbuf is 01CA1840 [14:59:36]SAM_PROTO_ClearQueue [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 09 00 00 [14:59:36]Write to MH i2c: E2 08 00 2D 0C 80 09 00 00 00 00 00 00 AB [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_ClearQueue done [14:59:36]KKMCreateOFDPacket [14:59:36]OFDProtocolAddRootSTLVToBuf [14:59:36]FM_MakeSignedData [14:59:36]FM_MakeSignedData [14:59:36]SAM_PROTO_SignData [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 01 02 [14:59:36]Write to MH i2c: E2 08 00 2E 0C 80 0D 01 02 00 00 00 00 B3 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=255 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 00 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 23 02 00 35 04 06 00 87 [14:59:36]Write to MH i2c: E2 02 01 2F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 00 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 23 02 00 35 04 06 00 87 00 00 D1 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=10 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 02 02 05 D9 3E D8 59 57 [14:59:36]Write to MH i2c: E2 0D 00 30 0C 80 0D 02 02 05 00 D9 3E D8 59 57 00 00 5F [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [14:59:36]RAPDU: 90 00 [14:59:36]wFMCommunicate OK [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 0D 03 02 [14:59:36]Write to MH i2c: E2 08 00 31 0C 80 0D 03 02 00 00 00 00 B8 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:36]Read from MH i2c: E2 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 [14:59:36]MH_I2C_Read... [14:59:36]Read from MH i2c: E2 0B 00 31 0C 00 EA 74 D6 7D 76 7A 97 A4 90 00 95 [14:59:36]RAPDU: EA 74 D6 7D 76 7A 97 A4 90 00 [14:59:36]wFMCommunicate OK [14:59:36]SAM_PROTO_SignData done [14:59:36]FM_MakeSignedData done [14:59:36]CreateOFDProtocolMessage [14:59:36]wFMCommunicate request_size=4 [14:59:36]MH_SAM_APDU [14:59:36]CAPDU: 80 11 00 00 [14:59:36]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [14:59:36]Write i2c OK [14:59:36]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [14:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:59:37]wFMCommunicate OK [14:59:37]CreateOFDProtocolMessage done [14:59:37]OFDSenderStorePacket 140207 [14:59:37]StoreOFDPacket docnum=140207 [14:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B D8 07 01 50 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 00 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 23 02 00 35 04 06 00 87 D9 3E D8 59 57 EA 74 D6 7D 76 7A 97 A4 [14:59:37]CheckFolder [14:59:37]dirname=/storage/ofd_packets [14:59:37]CheckFolder done [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00140207 [14:59:37]NVStorageSaveData ofd_packets/00140207 [14:59:37]File name is /storage/ofd_packets/00140207 [14:59:37]Write 301 bytes [14:59:37]NVStorageSaveData done [14:59:37]OFDSenderStorePacket done [14:59:37]KKMCreateOFDPacket done [14:59:37]NVStorageSaveData kkm_last_timestamp [14:59:37]File name is /storage/kkm_last_timestamp [14:59:37]Write 4 bytes [14:59:37]NVStorageSaveData done [14:59:37]ExternCall_PrintAddStr [14:59:37]wPrintStart [14:59:37]Write to MH i2c: 01 00 00 33 0C 3F [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 FF 0F 54 [14:59:37]RasterBufferAndPrint [14:59:37]line Счет N : (1)594062 [14:59:37]line ИНН: 02508201610067 [14:59:37]line Контрольно-Кассовый Чек [14:59:37]line ПРОДАЖА [14:59:37]line ТРК (МРК, ГНК) : 52 [14:59:37]line Товар: 2710124130 [14:59:37]line Аи-92-К-5 [14:59:37]line 14.750 * 67.80 [14:59:37]line = 1000.05 [14:59:37]line НДС 12% НСП 1% [14:59:37]line > о реализуемом товаре [14:59:37]line ОКРУГЛЕНИЕ: -0.05 [14:59:37]line ИТОГО: 1000.00 [14:59:37]line НСП 1% : 8.85 [14:59:37]line НДС 12% : 106.20 [14:59:37]line Наличными: 0.00 [14:59:37]line Безнал.: 1000.00 [14:59:37]line Место: АЗС № 136 "Партнер Нефть" [14:59:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [14:59:37]line СНО: Общий режим [14:59:37]line Чек 224 21.08.2024 14:59 [14:59:37]line Смена: 454 ФФД: 1.0 [14:59:37]line ЗНМ: 0300000067 [14:59:37]line РНМ: 0000000000092569 [14:59:37]line Версия ККМ: 001 [14:59:37]line Платежная система: Бакай Банк [14:59:37]line ФМ: 0000000000871776 [14:59:37]line ФД: 140207 [14:59:37]line ФПД: 149367132019031 [14:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T145936&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140207&fm=149367132019031&tin=02508201610067®Number=0000000000092569&sum=100000 [14:59:37]OFD Sender: Processing packet 140207 [packets to send 137, broken 136] [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00140207 [14:59:37]OFD Sender: To server: pG, [14:59:37]CommunicateWithHost lk.salyk.kg:30040 [14:59:37]ConnectInit lk.salyk.kg [14:59:37]written 0, free lines is 4095 [14:59:37]Connected sock=10 [14:59: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 37 36 0F 01 00 00 3B D8 07 01 50 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 D8 00 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 AF 23 02 00 35 04 06 00 87 D9 3E D8 59 57 EA 74 D6 7D 76 7A 97 A4 [14:59:37]Write to MH i2c: 01 00 00 5E 0C 6A [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 DC 0C 59 [14:59:37]RasterBufferAndPrint [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]line [14:59:37]written 0, free lines is 3295 [14:59:37]MH_Cut [14:59:37]Write to MH i2c: D1 01 00 65 0C 01 43 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: D1 01 00 65 0C 00 42 [14:59:37]Write to MH i2c: 01 00 00 66 0C 72 [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59: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 37 36 4F 00 00 00 F6 FD 47 00 5D 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 37 36 10 04 04 00 AF 23 02 00 F4 03 04 00 68 A7 C5 66 B6 04 01 00 00 6F EB 6E 46 13 0D 40 52 [14:59:37]CommunicateWithHost err = 0 [14:59:37]CheckOFDResponse [14:59:37]1017 (14) - 77093643461234 [14:59:37]1041 (16) - 0000000000871776 [14:59:37]1040 (4) - 140207 [14:59:37]1012 (4) - 21.08.2024 08:38 [14:59:37]1206 (1) - 0 [14:59:37]OFD Sender: Remove packet 140207 [14:59:37]ProducePacketName [14:59:37]name=ofd_packets/00140207 [14:59:37]NVStorageDeleteData [14:59:38]OFD Sender: No OFD packet to send [14:59:38]*** Cut start [14:59:38]*** Partial cut [14:59:38]*** CUTSNS_PIN = 1 [14:59:38]*** CUTSNS_PIN = 0 [14:59:38]*** Brake cut motor [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]*** Stop cut motor [14:59:39]*** Cut end [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 FF 0F 87 [14:59:39]process_action close_receipt done [14:59:39]requested_data is exist [14:59:39]produce_requested_data [14:59:39]requested_item fm.sn is exist - process it [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [14:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [14:59:39]wFMCommunicate OK [14:59:39]requested_item fd.num is exist - process it [14:59:39]SAM_PROTO_GetFieldsCounters [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 00 00 [14:59:39]Write to MH i2c: E2 08 00 68 0C 80 13 00 00 00 00 00 00 F0 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 62 00 68 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 AF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetFieldsCounters done [14:59:39]requested_item shift.num is exist - process it [14:59:39]requested_item shift.opened is exist - process it [14:59:39]req_shift_opened [14:59:39]FM_GetShiftState [14:59:39]SAM_PROTO_GetShiftState [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 13 01 00 [14:59:39]Write to MH i2c: E2 08 00 69 0C 80 13 01 00 00 00 00 00 F2 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0E 00 69 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [14:59:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_GetShiftState done [14:59:39]FM_GetShiftState done [14:59:39]req_shift_opened done [14:59:39]requested_item shift.open_date is exist - process it [14:59:39]req_shift_open_date [14:59:39]req_shift_open_date done [14:59:39]produce_requested_data done [14:59:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140207,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [14:59:39]process_action_free close_receipt [14:59:39]json_value_free [14:59:39]json_value_free done [14:59:39]process_json_proto returns [14:59:39]Send response to host [14:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140207,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [14:59:39]free response buf [14:59:39]execute_script done [14:59:39]execute_script returns [14:59:39]free content buf [14:59:39]Sock 9.Close socket [14:59:39]Sock 9.Thread stoped [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:35]accept exits with 8 [15:00:35]New connection [15:00:35]New thread 3067592036 created [15:00:35]Thread 3067448676 joined [15:00:35]Waiting for new connection... [15:00:35] Sock 8.Parse request [15:00:35]Sock 8.Check first char [15:00:35]Sock 8.First char is OK [15:00:35]request: POST /json_proto HTTP/1.0 [15:00:35]Method: POST [15:00:35]URL: /json_proto [15:00:35]Method is POST - this is cgi request [15:00:35]url: /json_proto [15:00:35]query_string will be loaded in cgi processing [15:00:35]execute_cgi json_proto POST (null) [15:00:35]execute_cgi path=json_proto method=POST [15:00:35]POST find Content-Length [15:00:35]Host: 172.17.45.67:8080 [15:00:35]Content-Length: 682 [15:00:35]Content-Type: application/json [15:00:35] [15:00:35]POST finish read [15:00:35]Found Content-Length = 682 [15:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:35]execute_script... [15:00: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)594063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:35]POST & json_proto [15:00:35]process_json_proto [15:00:35]json parsed OK: [15:00:35]protocol is kg_v1.0 [15:00:35]action value=close_receipt [15:00:35]process_action close_receipt [15:00:35]cmd_close_receipt [15:00:35]MH_GetDate [15:00:35]Write to MH i2c: F0 00 00 6A 0C 65 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 09 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: F0 09 00 6A 0C 00 14 01 C6 66 5F 7F 2B 66 1E [15:00:35]GetLastDocTimeStamp 1724252376 [15:00:35]current date 1724252436 [15:00:35]FM_GetShiftState [15:00:35]SAM_PROTO_GetShiftState [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 13 01 00 [15:00:35]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [15:00:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_GetShiftState done [15:00:35]FM_GetShiftState done [15:00:35]opened in 1724200467 [15:00:35]opened+sec_in_day 1724286867 [15:00:35]quantity*price = 100005 [15:00:35]sum+1 = 100006 [15:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 225 21.08.2024 15:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140208 ФПД: 255994672766465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T150036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140208&fm=255994672766465&tin=02508201610067®Number=0000000000092569&sum=100000 [15:00:36]StoreToDocumentArchive [15:00:36]shift 454 fd 140208 [15:00:36]save to /storage/0454/doc_00140208 [15:00:36]save last doc name /storage/0454/doc_00140208 to /storage/kkm_last_doc_name [15:00:36]save OK [15:00:36]Clear old archive folders... [15:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:36]tlvbuf is 01C52EA0 [15:00:36]SAM_PROTO_ClearQueue [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 09 00 00 [15:00:36]Write to MH i2c: E2 08 00 78 0C 80 09 00 00 00 00 00 00 F6 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_ClearQueue done [15:00:37]KKMCreateOFDPacket [15:00:37]OFDProtocolAddRootSTLVToBuf [15:00:37]FM_MakeSignedData [15:00:37]FM_MakeSignedData [15:00:37]SAM_PROTO_SignData [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 0D 01 02 [15:00:37]Write to MH i2c: E2 08 00 79 0C 80 0D 01 02 00 00 00 00 FE [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]wFMCommunicate request_size=255 [15:00:37]MH_SAM_APDU [15:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 14 01 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 23 02 00 35 04 06 00 E8 [15:00:37]Write to MH i2c: E2 02 01 7A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 14 01 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 23 02 00 35 04 06 00 E8 00 00 BC [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]wFMCommunicate request_size=10 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 0D 02 02 05 D3 67 88 DE 01 [15:00:37]Write to MH i2c: E2 0D 00 7B 0C 80 0D 02 02 05 00 D3 67 88 DE 01 00 00 AC [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [15:00:37]RAPDU: 90 00 [15:00:37]wFMCommunicate OK [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 0D 03 02 [15:00:37]Write to MH i2c: E2 08 00 7C 0C 80 0D 03 02 00 00 00 00 03 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0B 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0B 00 7C 0C 00 7C 9F A5 AA E9 58 3C E6 90 00 D1 [15:00:37]RAPDU: 7C 9F A5 AA E9 58 3C E6 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_SignData done [15:00:37]FM_MakeSignedData done [15:00:37]CreateOFDProtocolMessage [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 11 00 00 [15:00:37]Write to MH i2c: E2 08 00 7D 0C 80 11 00 00 00 00 00 00 03 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 7D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [15:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:37]wFMCommunicate OK [15:00:37]CreateOFDProtocolMessage done [15:00:37]OFDSenderStorePacket 140208 [15:00:37]StoreOFDPacket docnum=140208 [15:00:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E 7D 07 01 8C 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 14 01 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 23 02 00 35 04 06 00 E8 D3 67 88 DE 01 7C 9F A5 AA E9 58 3C E6 [15:00:37]CheckFolder [15:00:37]dirname=/storage/ofd_packets [15:00:37]CheckFolder done [15:00:37]ProducePacketName [15:00:37]name=ofd_packets/00140208 [15:00:37]NVStorageSaveData ofd_packets/00140208 [15:00:37]File name is /storage/ofd_packets/00140208 [15:00:37]Write 301 bytes [15:00:37]NVStorageSaveData done [15:00:37]OFDSenderStorePacket done [15:00:37]KKMCreateOFDPacket done [15:00:37]NVStorageSaveData kkm_last_timestamp [15:00:37]File name is /storage/kkm_last_timestamp [15:00:37]Write 4 bytes [15:00:37]NVStorageSaveData done [15:00:37]ExternCall_PrintAddStr [15:00:37]wPrintStart [15:00:37]Write to MH i2c: 01 00 00 7E 0C 8A [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: 01 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: 01 07 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [15:00:37]RasterBufferAndPrint [15:00:37]line Счет N : (1)594063 [15:00:37]line ИНН: 02508201610067 [15:00:37]line Контрольно-Кассовый Чек [15:00:37]line ПРОДАЖА [15:00:37]line ТРК (МРК, ГНК) : 32 [15:00:37]line Товар: 2710124130 [15:00:37]line Аи-92-К-5 [15:00:37]line 14.750 * 67.80 [15:00:37]line = 1000.05 [15:00:37]line НДС 12% НСП 1% [15:00:37]line > о реализуемом товаре [15:00:37]line ОКРУГЛЕНИЕ: -0.05 [15:00:37]line ИТОГО: 1000.00 [15:00:37]line Внесено: 1000.00 [15:00:37]line СДАЧА: 0.00 [15:00:37]line НСП 1% : 8.85 [15:00:37]line НДС 12% : 106.20 [15:00:37]line Наличными: 1000.00 [15:00:37]line Безнал.: 0.00 [15:00:37]line Место: АЗС № 136 "Партнер Нефть" [15:00:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:00:37]line СНО: Общий режим [15:00:37]line Чек 225 21.08.2024 15:00 [15:00:37]line Смена: 454 ФФД: 1.0 [15:00:37]line ЗНМ: 0300000067 [15:00:37]line РНМ: 0000000000092569 [15:00:37]line Версия ККМ: 001 [15:00:37]line ФМ: 0000000000871776 [15:00:37]line ФД: 140208 [15:00:37]line ФПД: 255994672766465 [15:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T150036&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140208&fm=255994672766465&tin=02508201610067®Number=0000000000092569&sum=100000 [15:00:37]OFD Sender: Processing packet 140208 [packets to send 137, broken 136] [15:00:37]ProducePacketName [15:00:37]written 0, free lines is 4095 [15:00:37]name=ofd_packets/00140208 [15:00:37]OFD Sender: To server: pG, [15:00:37]CommunicateWithHost lk.salyk.kg:30040 [15:00:37]ConnectInit lk.salyk.kg [15:00:38]Connected sock=10 [15:00: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 37 36 0F 01 00 00 3E 7D 07 01 8C 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 14 01 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B0 23 02 00 35 04 06 00 E8 D3 67 88 DE 01 7C 9F A5 AA E9 58 3C E6 [15:00:38]Write to MH i2c: 01 00 00 A9 0C B5 [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 E3 0C AB [15:00:38]RasterBufferAndPrint [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]line [15:00:38]written 0, free lines is 3305 [15:00:38]MH_Cut [15:00:38]Write to MH i2c: D1 01 00 B0 0C 01 8E [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 01 00 [15:00:38]MH_I2C_Read... [15:00:38]Read from MH i2c: D1 01 00 B0 0C 00 8D [15:00:38]Write to MH i2c: 01 00 00 B1 0C BD [15:00:38]Write i2c OK [15:00:38]MH_I2C_Read... [15:00: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 37 36 4F 00 00 00 DB 37 47 00 45 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 37 36 10 04 04 00 B0 23 02 00 F4 03 04 00 A5 A7 C5 66 B6 04 01 00 00 06 ED 5C 0B AD 93 89 07 [15:00:38]CommunicateWithHost err = 0 [15:00:38]CheckOFDResponse [15:00:38]1017 (14) - 77093643461234 [15:00:38]1041 (16) - 0000000000871776 [15:00:38]1040 (4) - 140208 [15:00:38]1012 (4) - 21.08.2024 08:39 [15:00:38]1206 (1) - 0 [15:00:38]OFD Sender: Remove packet 140208 [15:00:38]ProducePacketName [15:00:38]name=ofd_packets/00140208 [15:00:38]NVStorageDeleteData [15:00:38]OFD Sender: No OFD packet to send [15:00:38]*** Cut start [15:00:38]*** Partial cut [15:00:38]*** CUTSNS_PIN = 1 [15:00:39]*** CUTSNS_PIN = 0 [15:00:39]*** Brake cut motor [15:00:39]Read from MH i2c: 01 [15:00:39]MH_I2C_Read... [15:00:39]*** Stop cut motor [15:00:39]*** Cut end [15:00:39]Read from MH i2c: 01 07 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [15:00:39]process_action close_receipt done [15:00:39]requested_data is exist [15:00:39]produce_requested_data [15:00:39]requested_item fm.sn is exist - process it [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 11 00 00 [15:00:39]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 17 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [15:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:00:39]wFMCommunicate OK [15:00:39]requested_item fd.num is exist - process it [15:00:39]SAM_PROTO_GetFieldsCounters [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 13 00 00 [15:00:39]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 62 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 62 00 B3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [15:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:39]wFMCommunicate OK [15:00:39]SAM_PROTO_GetFieldsCounters done [15:00:39]requested_item shift.num is exist - process it [15:00:39]requested_item shift.opened is exist - process it [15:00:39]req_shift_opened [15:00:39]FM_GetShiftState [15:00:39]SAM_PROTO_GetShiftState [15:00:39]wFMCommunicate request_size=4 [15:00:39]MH_SAM_APDU [15:00:39]CAPDU: 80 13 01 00 [15:00:39]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [15:00:39]Write i2c OK [15:00:39]MH_I2C_Read... [15:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:39]Read from MH i2c: E2 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 0E 00 [15:00:39]MH_I2C_Read... [15:00:39]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [15:00:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:00:39]wFMCommunicate OK [15:00:39]SAM_PROTO_GetShiftState done [15:00:39]FM_GetShiftState done [15:00:39]req_shift_opened done [15:00:39]requested_item shift.open_date is exist - process it [15:00:39]req_shift_open_date [15:00:39]req_shift_open_date done [15:00:39]produce_requested_data done [15:00:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140208,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:00:39]process_action_free close_receipt [15:00:39]json_value_free [15:00:39]json_value_free done [15:00:39]process_json_proto returns [15:00:39]Send response to host [15:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140208,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:00:39]free response buf [15:00:39]execute_script done [15:00:39]execute_script returns [15:00:39]free content buf [15:00:39]Sock 8.Close socket [15:00:39]Sock 8.Thread stoped [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:53]accept exits with 9 [15:06:53]New connection [15:06:53]New thread 3067448676 created [15:06:53]Thread 3067592036 joined [15:06:53]Waiting for new connection... [15:06:53] Sock 9.Parse request [15:06:53]Sock 9.Check first char [15:06:53]Sock 9.First char is OK [15:06:53]request: POST /json_proto HTTP/1.0 [15:06:53]Method: POST [15:06:53]URL: /json_proto [15:06:53]Method is POST - this is cgi request [15:06:53]url: /json_proto [15:06:53]query_string will be loaded in cgi processing [15:06:53]execute_cgi json_proto POST (null) [15:06:53]execute_cgi path=json_proto method=POST [15:06:53]POST find Content-Length [15:06:53]Host: 172.17.45.67:8080 [15:06:53]Content-Length: 677 [15:06:53]Content-Type: application/json [15:06:53] [15:06:53]POST finish read [15:06:53]Found Content-Length = 677 [15:06:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:53]execute_script... [15:06: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)594064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:53]POST & json_proto [15:06:53]process_json_proto [15:06:53]json parsed OK: [15:06:53]protocol is kg_v1.0 [15:06:53]action value=close_receipt [15:06:53]process_action close_receipt [15:06:53]cmd_close_receipt [15:06:53]MH_GetDate [15:06:53]Write to MH i2c: F0 00 00 B5 0C B0 [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 09 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: F0 09 00 B5 0C 00 8E 02 C6 66 5F 7F 2B 66 E4 [15:06:53]GetLastDocTimeStamp 1724252436 [15:06:53]current date 1724252814 [15:06:53]FM_GetShiftState [15:06:53]SAM_PROTO_GetShiftState [15:06:53]wFMCommunicate request_size=4 [15:06:53]MH_SAM_APDU [15:06:53]CAPDU: 80 13 01 00 [15:06:53]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [15:06:53]Write i2c OK [15:06:53]MH_I2C_Read... [15:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:53]Read from MH i2c: E2 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 0E 00 [15:06:53]MH_I2C_Read... [15:06:53]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [15:06:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:06:53]wFMCommunicate OK [15:06:53]SAM_PROTO_GetShiftState done [15:06:53]FM_GetShiftState done [15:06:53]opened in 1724200467 [15:06:53]opened+sec_in_day 1724286867 [15:06:53]quantity*price = 40002 [15:06:53]sum+1 = 40003 [15:06:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 226 21.08.2024 15:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140209 ФПД: 117168016186080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T150654&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140209&fm=117168016186080&tin=02508201610067®Number=0000000000092569&sum=40000 [15:06:54]StoreToDocumentArchive [15:06:54]shift 454 fd 140209 [15:06:54]save to /storage/0454/doc_00140209 [15:06:54]save last doc name /storage/0454/doc_00140209 to /storage/kkm_last_doc_name [15:06:54]save OK [15:06:54]Clear old archive folders... [15:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:54]tlvbuf is 01C34D90 [15:06:54]SAM_PROTO_ClearQueue [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 09 00 00 [15:06:54]Write to MH i2c: E2 08 00 C3 0C 80 09 00 00 00 00 00 00 41 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_ClearQueue done [15:06:54]KKMCreateOFDPacket [15:06:54]OFDProtocolAddRootSTLVToBuf [15:06:54]FM_MakeSignedData [15:06:54]FM_MakeSignedData [15:06:54]SAM_PROTO_SignData [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 01 02 [15:06:54]Write to MH i2c: E2 08 00 C4 0C 80 0D 01 02 00 00 00 00 49 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=255 [15:06:54]MH_SAM_APDU [15:06: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 8E 02 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 23 02 00 35 04 06 00 6A [15:06:54]Write to MH i2c: E2 02 01 C5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 8E 02 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 23 02 00 35 04 06 00 6A 00 00 5C [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=10 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 02 02 05 90 4D FB DA E0 [15:06:54]Write to MH i2c: E2 0D 00 C6 0C 80 0D 02 02 05 00 90 4D FB DA E0 00 00 E8 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [15:06:54]RAPDU: 90 00 [15:06:54]wFMCommunicate OK [15:06:54]wFMCommunicate request_size=4 [15:06:54]MH_SAM_APDU [15:06:54]CAPDU: 80 0D 03 02 [15:06:54]Write to MH i2c: E2 08 00 C7 0C 80 0D 03 02 00 00 00 00 4E [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:54]Read from MH i2c: E2 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: E2 0B 00 C7 0C 00 8D 81 E3 A8 CD 57 47 A4 90 00 F7 [15:06:54]RAPDU: 8D 81 E3 A8 CD 57 47 A4 90 00 [15:06:54]wFMCommunicate OK [15:06:54]SAM_PROTO_SignData done [15:06:54]FM_MakeSignedData done [15:06:54]CreateOFDProtocolMessage [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 C8 0C 80 11 00 00 00 00 00 00 4E [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 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [15:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:06:54]wFMCommunicate OK [15:06:54]CreateOFDProtocolMessage done [15:06:54]OFDSenderStorePacket 140209 [15:06:54]StoreOFDPacket docnum=140209 [15:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 85 07 01 43 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 8E 02 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 23 02 00 35 04 06 00 6A 90 4D FB DA E0 8D 81 E3 A8 CD 57 47 A4 [15:06:54]CheckFolder [15:06:54]dirname=/storage/ofd_packets [15:06:54]CheckFolder done [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00140209 [15:06:54]NVStorageSaveData ofd_packets/00140209 [15:06:54]File name is /storage/ofd_packets/00140209 [15:06:54]Write 301 bytes [15:06:54]NVStorageSaveData done [15:06:54]OFDSenderStorePacket done [15:06:54]KKMCreateOFDPacket done [15:06:54]NVStorageSaveData kkm_last_timestamp [15:06:54]File name is /storage/kkm_last_timestamp [15:06:54]Write 4 bytes [15:06:54]NVStorageSaveData done [15:06:54]ExternCall_PrintAddStr [15:06:54]wPrintStart [15:06:54]Write to MH i2c: 01 00 00 C9 0C D5 [15:06:54]Write i2c OK [15:06:54]MH_I2C_Read... [15:06:54]Read from MH i2c: 01 [15:06:54]MH_I2C_Read... [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 C9 0C 00 00 00 00 00 FF 0F EA [15:06:54]RasterBufferAndPrint [15:06:54]line Счет N : (1)594064 [15:06:54]line ИНН: 02508201610067 [15:06:54]line Контрольно-Кассовый Чек [15:06:54]line ПРОДАЖА [15:06:54]line ТРК (МРК, ГНК) : 62 [15:06:54]line Товар: 2710124130 [15:06:54]line Аи-92-К-5 [15:06:54]line 5.900 * 67.80 [15:06:54]line = 400.02 [15:06:54]line НДС 12% НСП 1% [15:06:54]line > о реализуемом товаре [15:06:54]line ОКРУГЛЕНИЕ: -0.02 [15:06:54]line ИТОГО: 400.00 [15:06:54]line Внесено: 400.00 [15:06:54]line СДАЧА: 0.00 [15:06:54]line НСП 1% : 3.54 [15:06:54]line НДС 12% : 42.48 [15:06:54]line Наличными: 400.00 [15:06:54]line Безнал.: 0.00 [15:06:54]line Место: АЗС № 136 "Партнер Нефть" [15:06:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:06:54]line СНО: Общий режим [15:06:54]line Чек 226 21.08.2024 15:06 [15:06:54]line Смена: 454 ФФД: 1.0 [15:06:54]line ЗНМ: 0300000067 [15:06:54]line РНМ: 0000000000092569 [15:06:54]line Версия ККМ: 001 [15:06:54]line ФМ: 0000000000871776 [15:06:54]line ФД: 140209 [15:06:54]line ФПД: 117168016186080 [15:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T150654&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140209&fm=117168016186080&tin=02508201610067®Number=0000000000092569&sum=40000 [15:06:54]written 0, free lines is 4095 [15:06:54]OFD Sender: Processing packet 140209 [packets to send 137, broken 136] [15:06:54]ProducePacketName [15:06:54]name=ofd_packets/00140209 [15:06:54]OFD Sender: To server: pG, [15:06:54]CommunicateWithHost lk.salyk.kg:30040 [15:06:54]ConnectInit lk.salyk.kg [15:06:55]Connected sock=10 [15:06: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 37 36 0F 01 00 00 A3 85 07 01 43 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 8E 02 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 23 02 00 35 04 06 00 6A 90 4D FB DA E0 8D 81 E3 A8 CD 57 47 A4 [15:06:55]Write to MH i2c: 01 00 00 F4 0C 00 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 07 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 D9 0C EC [15:06:55]RasterBufferAndPrint [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]line [15:06:55]written 0, free lines is 3296 [15:06: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 37 36 4F 00 00 00 D4 01 47 00 B2 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B1 23 02 00 F4 03 04 00 1E A9 C5 66 B6 04 01 00 00 5B AF 2B 05 4B 94 81 70 [15:06:55]CommunicateWithHost err = 0 [15:06:55]CheckOFDResponse [15:06:55]1017 (14) - 77093643461234 [15:06:55]1041 (16) - 0000000000871776 [15:06:55]1040 (4) - 140209 [15:06:55]1012 (4) - 21.08.2024 08:45 [15:06:55]1206 (1) - 0 [15:06:55]OFD Sender: Remove packet 140209 [15:06:55]ProducePacketName [15:06:55]name=ofd_packets/00140209 [15:06:55]NVStorageDeleteData [15:06:55]MH_Cut [15:06:55]Write to MH i2c: D1 01 00 FB 0C 01 D9 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 01 00 [15:06:55]MH_I2C_Read... [15:06:55]Read from MH i2c: D1 01 00 FB 0C 00 D8 [15:06:55]Write to MH i2c: 01 00 00 FC 0C 08 [15:06:55]Write i2c OK [15:06:55]MH_I2C_Read... [15:06:55]OFD Sender: No OFD packet to send [15:06:56]*** Cut start [15:06:56]*** Partial cut [15:06:56]*** CUTSNS_PIN = 1 [15:06:56]*** CUTSNS_PIN = 0 [15:06:56]*** Brake cut motor [15:06:56]Read from MH i2c: 01 [15:06:56]MH_I2C_Read... [15:06:56]*** Stop cut motor [15:06:56]*** Cut end [15:06:56]Read from MH i2c: 01 07 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: 01 07 00 FC 0C 00 00 00 00 00 FF 0F 1D [15:06:56]process_action close_receipt done [15:06:56]requested_data is exist [15:06:56]produce_requested_data [15:06:56]requested_item fm.sn is exist - process it [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 11 00 00 [15:06:56]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 17 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [15:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:06:56]wFMCommunicate OK [15:06:56]requested_item fd.num is exist - process it [15:06:56]SAM_PROTO_GetFieldsCounters [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 00 00 [15:06:56]Write to MH i2c: E2 08 00 FE 0C 80 13 00 00 00 00 00 00 86 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 62 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 62 00 FE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetFieldsCounters done [15:06:56]requested_item shift.num is exist - process it [15:06:56]requested_item shift.opened is exist - process it [15:06:56]req_shift_opened [15:06:56]FM_GetShiftState [15:06:56]SAM_PROTO_GetShiftState [15:06:56]wFMCommunicate request_size=4 [15:06:56]MH_SAM_APDU [15:06:56]CAPDU: 80 13 01 00 [15:06:56]Write to MH i2c: E2 08 00 FF 0C 80 13 01 00 00 00 00 00 88 [15:06:56]Write i2c OK [15:06:56]MH_I2C_Read... [15:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:56]Read from MH i2c: E2 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 [15:06:56]MH_I2C_Read... [15:06:56]Read from MH i2c: E2 0E 00 FF 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 08 [15:06:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:06:56]wFMCommunicate OK [15:06:56]SAM_PROTO_GetShiftState done [15:06:56]FM_GetShiftState done [15:06:56]req_shift_opened done [15:06:56]requested_item shift.open_date is exist - process it [15:06:56]req_shift_open_date [15:06:56]req_shift_open_date done [15:06:56]produce_requested_data done [15:06:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140209,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:06:56]process_action_free close_receipt [15:06:56]json_value_free [15:06:56]json_value_free done [15:06:56]process_json_proto returns [15:06:56]Send response to host [15:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140209,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:06:56]free response buf [15:06:56]execute_script done [15:06:56]execute_script returns [15:06:56]free content buf [15:06:56]Sock 9.Close socket [15:06:56]Sock 9.Thread stoped [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:27]accept exits with 8 [15:11:27]New connection [15:11:27]New thread 3067592036 created [15:11:27]Thread 3067448676 joined [15:11:27]Waiting for new connection... [15:11:27] Sock 8.Parse request [15:11:27]Sock 8.Check first char [15:11:27]Sock 8.First char is OK [15:11:27]request: POST /json_proto HTTP/1.0 [15:11:27]Method: POST [15:11:27]URL: /json_proto [15:11:27]Method is POST - this is cgi request [15:11:27]url: /json_proto [15:11:27]query_string will be loaded in cgi processing [15:11:27]execute_cgi json_proto POST (null) [15:11:27]execute_cgi path=json_proto method=POST [15:11:27]POST find Content-Length [15:11:27]Host: 172.17.45.67:8080 [15:11:27]Content-Length: 818 [15:11:27]Content-Type: application/json [15:11:27] [15:11:27]POST finish read [15:11:27]Found Content-Length = 818 [15:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:27]execute_script... [15:11: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)594065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:27]POST & json_proto [15:11:27]process_json_proto [15:11:27]json parsed OK: [15:11:27]protocol is kg_v1.0 [15:11:27]action value=close_receipt [15:11:27]process_action close_receipt [15:11:27]cmd_close_receipt [15:11:27]MH_GetDate [15:11:27]Write to MH i2c: F0 00 00 00 0D FC [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: F0 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: F0 09 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: F0 09 00 00 0D 00 A0 03 C6 66 5F 7F 2B 66 43 [15:11:27]GetLastDocTimeStamp 1724252814 [15:11:27]current date 1724253088 [15:11:27]FM_GetShiftState [15:11:27]SAM_PROTO_GetShiftState [15:11:27]wFMCommunicate request_size=4 [15:11:27]MH_SAM_APDU [15:11:27]CAPDU: 80 13 01 00 [15:11:27]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:28]Read from MH i2c: E2 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 [15:11:28]MH_I2C_Read... [15:11:28]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [15:11:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:11:28]wFMCommunicate OK [15:11:28]SAM_PROTO_GetShiftState done [15:11:28]FM_GetShiftState done [15:11:28]opened in 1724200467 [15:11:28]opened+sec_in_day 1724286867 [15:11:28]quantity*price = 30035 [15:11:28]sum+1 = 30036 [15:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 227 21.08.2024 15:11 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140210 ФПД: 253034064072594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151129&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140210&fm=253034064072594&tin=02508201610067®Number=0000000000092569&sum=30000 [15:11:29]StoreToDocumentArchive [15:11:29]shift 454 fd 140210 [15:11:29]save to /storage/0454/doc_00140210 [15:11:29]save last doc name /storage/0454/doc_00140210 to /storage/kkm_last_doc_name [15:11:29]save OK [15:11:29]Clear old archive folders... [15:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:29]tlvbuf is 01C70F40 [15:11:29]SAM_PROTO_ClearQueue [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 09 00 00 [15:11:29]Write to MH i2c: E2 08 00 0E 0D 80 09 00 00 00 00 00 00 8D [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [15:11:29]RAPDU: 90 00 [15:11:29]wFMCommunicate OK [15:11:29]SAM_PROTO_ClearQueue done [15:11:29]KKMCreateOFDPacket [15:11:29]OFDProtocolAddRootSTLVToBuf [15:11:29]FM_MakeSignedData [15:11:29]FM_MakeSignedData [15:11:29]SAM_PROTO_SignData [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 0D 01 02 [15:11:29]Write to MH i2c: E2 08 00 0F 0D 80 0D 01 02 00 00 00 00 95 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [15:11:29]RAPDU: 90 00 [15:11:29]wFMCommunicate OK [15:11:29]wFMCommunicate request_size=255 [15:11:29]MH_SAM_APDU [15:11: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A1 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 23 02 00 35 04 06 00 E6 [15:11:29]Write to MH i2c: E2 02 01 10 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A1 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 23 02 00 35 04 06 00 E6 00 00 74 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [15:11:29]RAPDU: 90 00 [15:11:29]wFMCommunicate OK [15:11:29]wFMCommunicate request_size=10 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 0D 02 02 05 22 15 81 4F 92 [15:11:29]Write to MH i2c: E2 0D 00 11 0D 80 0D 02 02 05 00 22 15 81 4F 92 00 00 3B [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [15:11:29]RAPDU: 90 00 [15:11:29]wFMCommunicate OK [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 0D 03 02 [15:11:29]Write to MH i2c: E2 08 00 12 0D 80 0D 03 02 00 00 00 00 9A [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 0B 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 0B 00 12 0D 00 FF 3C A3 79 63 46 EB 18 90 00 9E [15:11:29]RAPDU: FF 3C A3 79 63 46 EB 18 90 00 [15:11:29]wFMCommunicate OK [15:11:29]SAM_PROTO_SignData done [15:11:29]FM_MakeSignedData done [15:11:29]CreateOFDProtocolMessage [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 11 00 00 [15:11:29]Write to MH i2c: E2 08 00 13 0D 80 11 00 00 00 00 00 00 9A [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 17 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 17 00 13 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [15:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:11:29]wFMCommunicate OK [15:11:29]CreateOFDProtocolMessage done [15:11:29]OFDSenderStorePacket 140210 [15:11:29]StoreOFDPacket docnum=140210 [15:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FD 50 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A1 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 23 02 00 35 04 06 00 E6 22 15 81 4F 92 FF 3C A3 79 63 46 EB 18 [15:11:29]CheckFolder [15:11:29]dirname=/storage/ofd_packets [15:11:29]CheckFolder done [15:11:29]ProducePacketName [15:11:29]name=ofd_packets/00140210 [15:11:29]NVStorageSaveData ofd_packets/00140210 [15:11:29]File name is /storage/ofd_packets/00140210 [15:11:29]Write 301 bytes [15:11:29]NVStorageSaveData done [15:11:29]OFDSenderStorePacket done [15:11:29]KKMCreateOFDPacket done [15:11:29]NVStorageSaveData kkm_last_timestamp [15:11:29]File name is /storage/kkm_last_timestamp [15:11:29]Write 4 bytes [15:11:29]NVStorageSaveData done [15:11:29]ExternCall_PrintAddStr [15:11:29]wPrintStart [15:11:29]Write to MH i2c: 01 00 00 14 0D 21 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: 01 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: 01 07 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 FF 0F 36 [15:11:29]RasterBufferAndPrint [15:11:29]line Счет N : (1)594065 [15:11:29]line ИНН: 02508201610067 [15:11:29]line Контрольно-Кассовый Чек [15:11:29]line ПРОДАЖА [15:11:29]line ТРК (МРК, ГНК) : 52 [15:11:29]line Товар: 2710124130 [15:11:29]line Аи-92-К-5 [15:11:29]line 4.430 * 67.80 [15:11:29]line = 300.35 [15:11:29]line НДС 12% НСП 1% [15:11:29]line > о реализуемом товаре [15:11:29]line ОКРУГЛЕНИЕ: -0.35 [15:11:29]line ИТОГО: 300.00 [15:11:29]line НСП 1% : 2.66 [15:11:29]line НДС 12% : 31.90 [15:11:29]line Наличными: 0.00 [15:11:29]line Безнал.: 300.00 [15:11:29]line Место: АЗС № 136 "Партнер Нефть" [15:11:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:11:29]line СНО: Общий режим [15:11:29]line Чек 227 21.08.2024 15:11 [15:11:29]line Смена: 454 ФФД: 1.0 [15:11:29]line ЗНМ: 0300000067 [15:11:29]line РНМ: 0000000000092569 [15:11:29]line Версия ККМ: 001 [15:11:29]line Платежная система: O! деньги [15:11:29]line ФМ: 0000000000871776 [15:11:29]line ФД: 140210 [15:11:29]line ФПД: 253034064072594 [15:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151129&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140210&fm=253034064072594&tin=02508201610067®Number=0000000000092569&sum=30000 [15:11:30]written 0, free lines is 4095 [15:11:30]OFD Sender: Processing packet 140210 [packets to send 137, broken 136] [15:11:30]ProducePacketName [15:11:30]name=ofd_packets/00140210 [15:11:30]OFD Sender: To server: pG, [15:11:30]CommunicateWithHost lk.salyk.kg:30040 [15:11:30]ConnectInit lk.salyk.kg [15:11:30]Connected sock=10 [15:11: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 37 36 0F 01 00 00 FD 50 07 01 5A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 A1 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B2 23 02 00 35 04 06 00 E6 22 15 81 4F 92 FF 3C A3 79 63 46 EB 18 [15:11: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 37 36 4F 00 00 00 43 E7 47 00 57 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 37 36 10 04 04 00 B2 23 02 00 F4 03 04 00 31 AA C5 66 B6 04 01 00 00 0A 8B FF 47 7B 56 40 94 [15:11:30]CommunicateWithHost err = 0 [15:11:30]CheckOFDResponse [15:11:30]1017 (14) - 77093643461234 [15:11:30]1041 (16) - 0000000000871776 [15:11:30]1040 (4) - 140210 [15:11:30]1012 (4) - 21.08.2024 08:49 [15:11:30]1206 (1) - 0 [15:11:30]OFD Sender: Remove packet 140210 [15:11:30]ProducePacketName [15:11:30]name=ofd_packets/00140210 [15:11:30]NVStorageDeleteData [15:11:30]Write to MH i2c: 01 00 00 3F 0D 4C [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 07 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 D0 0C 2F [15:11:30]RasterBufferAndPrint [15:11:30]line [15:11:30]line [15:11:30]line [15:11:30]line [15:11:30]line [15:11:30]written 0, free lines is 3287 [15:11:30]MH_Cut [15:11:30]Write to MH i2c: D1 01 00 46 0D 01 25 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: D1 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: D1 01 00 [15:11:30]MH_I2C_Read... [15:11:30]Read from MH i2c: D1 01 00 46 0D 00 24 [15:11:30]Write to MH i2c: 01 00 00 47 0D 54 [15:11:30]Write i2c OK [15:11:30]MH_I2C_Read... [15:11:30]OFD Sender: No OFD packet to send [15:11:31]*** Cut start [15:11:31]*** Partial cut [15:11:31]*** CUTSNS_PIN = 1 [15:11:31]*** CUTSNS_PIN = 0 [15:11:31]*** Brake cut motor [15:11:31]Read from MH i2c: 01 [15:11:31]MH_I2C_Read... [15:11:31]*** Stop cut motor [15:11:31]*** Cut end [15:11:31]Read from MH i2c: 01 07 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: 01 07 00 47 0D 00 00 00 00 00 FF 0F 69 [15:11:31]process_action close_receipt done [15:11:31]requested_data is exist [15:11:31]produce_requested_data [15:11:31]requested_item fm.sn is exist - process it [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 11 00 00 [15:11:31]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 17 00 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [15:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:11:31]wFMCommunicate OK [15:11:31]requested_item fd.num is exist - process it [15:11:31]SAM_PROTO_GetFieldsCounters [15:11:31]wFMCommunicate request_size=4 [15:11:31]MH_SAM_APDU [15:11:31]CAPDU: 80 13 00 00 [15:11:31]Write to MH i2c: E2 08 00 49 0D 80 13 00 00 00 00 00 00 D2 [15:11:31]Write i2c OK [15:11:31]MH_I2C_Read... [15:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:31]Read from MH i2c: E2 [15:11:31]MH_I2C_Read... [15:11:31]Read from MH i2c: E2 62 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 62 00 49 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:32]wFMCommunicate OK [15:11:32]SAM_PROTO_GetFieldsCounters done [15:11:32]requested_item shift.num is exist - process it [15:11:32]requested_item shift.opened is exist - process it [15:11:32]req_shift_opened [15:11:32]FM_GetShiftState [15:11:32]SAM_PROTO_GetShiftState [15:11:32]wFMCommunicate request_size=4 [15:11:32]MH_SAM_APDU [15:11:32]CAPDU: 80 13 01 00 [15:11:32]Write to MH i2c: E2 08 00 4A 0D 80 13 01 00 00 00 00 00 D4 [15:11:32]Write i2c OK [15:11:32]MH_I2C_Read... [15:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:32]Read from MH i2c: E2 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0E 00 [15:11:32]MH_I2C_Read... [15:11:32]Read from MH i2c: E2 0E 00 4A 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 54 [15:11:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:11:32]wFMCommunicate OK [15:11:32]SAM_PROTO_GetShiftState done [15:11:32]FM_GetShiftState done [15:11:32]req_shift_opened done [15:11:32]requested_item shift.open_date is exist - process it [15:11:32]req_shift_open_date [15:11:32]req_shift_open_date done [15:11:32]produce_requested_data done [15:11:32]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140210,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:11:32]process_action_free close_receipt [15:11:32]json_value_free [15:11:32]json_value_free done [15:11:32]process_json_proto returns [15:11:32]Send response to host [15:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140210,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:11:32]free response buf [15:11:32]execute_script done [15:11:32]execute_script returns [15:11:32]free content buf [15:11:32]Sock 8.Close socket [15:11:32]Sock 8.Thread stoped [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:21]accept exits with 9 [15:12:21]New connection [15:12:21]New thread 3067448676 created [15:12:21]Thread 3067592036 joined [15:12:21]Waiting for new connection... [15:12:21] Sock 9.Parse request [15:12:21]Sock 9.Check first char [15:12:21]Sock 9.First char is OK [15:12:21]request: POST /json_proto HTTP/1.0 [15:12:21]Method: POST [15:12:21]URL: /json_proto [15:12:21]Method is POST - this is cgi request [15:12:21]url: /json_proto [15:12:21]query_string will be loaded in cgi processing [15:12:21]execute_cgi json_proto POST (null) [15:12:21]execute_cgi path=json_proto method=POST [15:12:21]POST find Content-Length [15:12:21]Host: 172.17.45.67:8080 [15:12:21]Content-Length: 677 [15:12:21]Content-Type: application/json [15:12:21] [15:12:21]POST finish read [15:12:21]Found Content-Length = 677 [15:12:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:21]execute_script... [15:12: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)594066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:21]POST & json_proto [15:12:21]process_json_proto [15:12:21]json parsed OK: [15:12:21]protocol is kg_v1.0 [15:12:21]action value=close_receipt [15:12:21]process_action close_receipt [15:12:21]cmd_close_receipt [15:12:21]MH_GetDate [15:12:21]Write to MH i2c: F0 00 00 4B 0D 47 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: F0 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: F0 09 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: F0 09 00 4B 0D 00 D6 03 C6 66 5F 7F 2B 66 C4 [15:12:21]GetLastDocTimeStamp 1724253089 [15:12:21]current date 1724253142 [15:12:21]FM_GetShiftState [15:12:21]SAM_PROTO_GetShiftState [15:12:21]wFMCommunicate request_size=4 [15:12:21]MH_SAM_APDU [15:12:21]CAPDU: 80 13 01 00 [15:12:21]Write to MH i2c: E2 08 00 4C 0D 80 13 01 00 00 00 00 00 D6 [15:12:21]Write i2c OK [15:12:21]MH_I2C_Read... [15:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:21]Read from MH i2c: E2 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 0E 00 [15:12:21]MH_I2C_Read... [15:12:21]Read from MH i2c: E2 0E 00 4C 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 56 [15:12:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:12:21]wFMCommunicate OK [15:12:21]SAM_PROTO_GetShiftState done [15:12:21]FM_GetShiftState done [15:12:21]opened in 1724200467 [15:12:21]opened+sec_in_day 1724286867 [15:12:21]quantity*price = 40002 [15:12:21]sum+1 = 40003 [15:12:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 228 21.08.2024 15:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140211 ФПД: 200402060524020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140211&fm=200402060524020&tin=02508201610067®Number=0000000000092569&sum=40000 [15:12:22]StoreToDocumentArchive [15:12:22]shift 454 fd 140211 [15:12:22]save to /storage/0454/doc_00140211 [15:12:22]save last doc name /storage/0454/doc_00140211 to /storage/kkm_last_doc_name [15:12:22]save OK [15:12:22]Clear old archive folders... [15:12:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:22]tlvbuf is 01C71FE0 [15:12:22]SAM_PROTO_ClearQueue [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 09 00 00 [15:12:22]Write to MH i2c: E2 08 00 59 0D 80 09 00 00 00 00 00 00 D8 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]SAM_PROTO_ClearQueue done [15:12:22]KKMCreateOFDPacket [15:12:22]OFDProtocolAddRootSTLVToBuf [15:12:22]FM_MakeSignedData [15:12:22]FM_MakeSignedData [15:12:22]SAM_PROTO_SignData [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 0D 01 02 [15:12:22]Write to MH i2c: E2 08 00 5A 0D 80 0D 01 02 00 00 00 00 E0 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]wFMCommunicate request_size=255 [15:12:22]MH_SAM_APDU [15:12: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D6 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 23 02 00 35 04 06 00 B6 [15:12:22]Write to MH i2c: E2 02 01 5B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D6 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 23 02 00 35 04 06 00 B6 00 00 8C [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]wFMCommunicate request_size=10 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 0D 02 02 05 43 BD A1 39 F4 [15:12:22]Write to MH i2c: E2 0D 00 5C 0D 80 0D 02 02 05 00 43 BD A1 39 F4 00 00 BB [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [15:12:22]RAPDU: 90 00 [15:12:22]wFMCommunicate OK [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 0D 03 02 [15:12:22]Write to MH i2c: E2 08 00 5D 0D 80 0D 03 02 00 00 00 00 E5 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0B 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0B 00 5D 0D 00 B3 C7 01 0C F8 B7 35 C9 90 00 1A [15:12:22]RAPDU: B3 C7 01 0C F8 B7 35 C9 90 00 [15:12:22]wFMCommunicate OK [15:12:22]SAM_PROTO_SignData done [15:12:22]FM_MakeSignedData done [15:12:22]CreateOFDProtocolMessage [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 11 00 00 [15:12:22]Write to MH i2c: E2 08 00 5E 0D 80 11 00 00 00 00 00 00 E5 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 17 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 17 00 5E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [15:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:23]wFMCommunicate OK [15:12:23]CreateOFDProtocolMessage done [15:12:23]OFDSenderStorePacket 140211 [15:12:23]StoreOFDPacket docnum=140211 [15:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 48 07 01 20 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D6 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 23 02 00 35 04 06 00 B6 43 BD A1 39 F4 B3 C7 01 0C F8 B7 35 C9 [15:12:23]CheckFolder [15:12:23]dirname=/storage/ofd_packets [15:12:23]CheckFolder done [15:12:23]ProducePacketName [15:12:23]name=ofd_packets/00140211 [15:12:23]NVStorageSaveData ofd_packets/00140211 [15:12:23]File name is /storage/ofd_packets/00140211 [15:12:23]Write 301 bytes [15:12:23]NVStorageSaveData done [15:12:23]OFDSenderStorePacket done [15:12:23]KKMCreateOFDPacket done [15:12:23]NVStorageSaveData kkm_last_timestamp [15:12:23]File name is /storage/kkm_last_timestamp [15:12:23]Write 4 bytes [15:12:23]NVStorageSaveData done [15:12:23]ExternCall_PrintAddStr [15:12:23]wPrintStart [15:12:23]Write to MH i2c: 01 00 00 5F 0D 6C [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [15:12:23]RasterBufferAndPrint [15:12:23]line Счет N : (1)594066 [15:12:23]line ИНН: 02508201610067 [15:12:23]line Контрольно-Кассовый Чек [15:12:23]line ПРОДАЖА [15:12:23]line ТРК (МРК, ГНК) : 32 [15:12:23]line Товар: 2710124130 [15:12:23]line Аи-92-К-5 [15:12:23]line 5.900 * 67.80 [15:12:23]line = 400.02 [15:12:23]line НДС 12% НСП 1% [15:12:23]line > о реализуемом товаре [15:12:23]line ОКРУГЛЕНИЕ: -0.02 [15:12:23]line ИТОГО: 400.00 [15:12:23]line Внесено: 400.00 [15:12:23]line СДАЧА: 0.00 [15:12:23]line НСП 1% : 3.54 [15:12:23]line НДС 12% : 42.48 [15:12:23]line Наличными: 400.00 [15:12:23]line Безнал.: 0.00 [15:12:23]line Место: АЗС № 136 "Партнер Нефть" [15:12:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:12:23]line СНО: Общий режим [15:12:23]line Чек 228 21.08.2024 15:12 [15:12:23]line Смена: 454 ФФД: 1.0 [15:12:23]line ЗНМ: 0300000067 [15:12:23]line РНМ: 0000000000092569 [15:12:23]line Версия ККМ: 001 [15:12:23]line ФМ: 0000000000871776 [15:12:23]line ФД: 140211 [15:12:23]line ФПД: 200402060524020 [15:12:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140211&fm=200402060524020&tin=02508201610067®Number=0000000000092569&sum=40000 [15:12:23]written 0, free lines is 4095 [15:12:23]OFD Sender: Processing packet 140211 [packets to send 137, broken 136] [15:12:23]ProducePacketName [15:12:23]name=ofd_packets/00140211 [15:12:23]OFD Sender: To server: pG, [15:12:23]CommunicateWithHost lk.salyk.kg:30040 [15:12:23]ConnectInit lk.salyk.kg [15:12:23]Connected sock=10 [15:12: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 37 36 0F 01 00 00 9E 48 07 01 20 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D6 03 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B3 23 02 00 35 04 06 00 B6 43 BD A1 39 F4 B3 C7 01 0C F8 B7 35 C9 [15:12: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 37 36 4F 00 00 00 E8 5E 47 00 60 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 37 36 10 04 04 00 B3 23 02 00 F4 03 04 00 66 AA C5 66 B6 04 01 00 00 30 AD AA A8 7D 3F 28 24 [15:12:23]CommunicateWithHost err = 0 [15:12:23]CheckOFDResponse [15:12:23]1017 (14) - 77093643461234 [15:12:23]1041 (16) - 0000000000871776 [15:12:23]1040 (4) - 140211 [15:12:23]1012 (4) - 21.08.2024 08:50 [15:12:23]1206 (1) - 0 [15:12:23]OFD Sender: Remove packet 140211 [15:12:23]ProducePacketName [15:12:23]name=ofd_packets/00140211 [15:12:23]NVStorageDeleteData [15:12:23]Write to MH i2c: 01 00 00 8A 0D 97 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 D2 0C 7C [15:12:23]RasterBufferAndPrint [15:12:23]line [15:12:23]line [15:12:23]line [15:12:23]line [15:12:23]line [15:12:23]written 0, free lines is 3290 [15:12:23]MH_Cut [15:12:23]Write to MH i2c: D1 01 00 91 0D 01 70 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: D1 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: D1 01 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: D1 01 00 91 0D 00 6F [15:12:23]Write to MH i2c: 01 00 00 92 0D 9F [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:24]OFD Sender: No OFD packet to send [15:12:24]*** Cut start [15:12:24]*** Partial cut [15:12:24]*** CUTSNS_PIN = 1 [15:12:24]*** CUTSNS_PIN = 0 [15:12:24]*** Brake cut motor [15:12:25]Read from MH i2c: 01 [15:12:25]MH_I2C_Read... [15:12:25]*** Stop cut motor [15:12:25]*** Cut end [15:12:25]Read from MH i2c: 01 07 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [15:12:25]process_action close_receipt done [15:12:25]requested_data is exist [15:12:25]produce_requested_data [15:12:25]requested_item fm.sn is exist - process it [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 11 00 00 [15:12:25]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 17 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [15:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:12:25]wFMCommunicate OK [15:12:25]requested_item fd.num is exist - process it [15:12:25]SAM_PROTO_GetFieldsCounters [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 13 00 00 [15:12:25]Write to MH i2c: E2 08 00 94 0D 80 13 00 00 00 00 00 00 1D [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 62 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 62 00 94 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:25]wFMCommunicate OK [15:12:25]SAM_PROTO_GetFieldsCounters done [15:12:25]requested_item shift.num is exist - process it [15:12:25]requested_item shift.opened is exist - process it [15:12:25]req_shift_opened [15:12:25]FM_GetShiftState [15:12:25]SAM_PROTO_GetShiftState [15:12:25]wFMCommunicate request_size=4 [15:12:25]MH_SAM_APDU [15:12:25]CAPDU: 80 13 01 00 [15:12:25]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [15:12:25]Write i2c OK [15:12:25]MH_I2C_Read... [15:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:25]Read from MH i2c: E2 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 0E 00 [15:12:25]MH_I2C_Read... [15:12:25]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9F [15:12:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:12:25]wFMCommunicate OK [15:12:25]SAM_PROTO_GetShiftState done [15:12:25]FM_GetShiftState done [15:12:25]req_shift_opened done [15:12:25]requested_item shift.open_date is exist - process it [15:12:25]req_shift_open_date [15:12:25]req_shift_open_date done [15:12:25]produce_requested_data done [15:12:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140211,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:12:25]process_action_free close_receipt [15:12:25]json_value_free [15:12:25]json_value_free done [15:12:25]process_json_proto returns [15:12:25]Send response to host [15:12:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140211,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:12:25]free response buf [15:12:25]execute_script done [15:12:25]execute_script returns [15:12:25]free content buf [15:12:25]Sock 9.Close socket [15:12:25]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [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:31]accept exits with 8 [15:13:31]New connection [15:13:31]New thread 3067592036 created [15:13:31]Thread 3067448676 joined [15:13:31]Waiting for new connection... [15:13:31] Sock 8.Parse request [15:13:31]Sock 8.Check first char [15:13:31]Sock 8.First char is OK [15:13:31]request: POST /json_proto HTTP/1.0 [15:13:31]Method: POST [15:13:31]URL: /json_proto [15:13:31]Method is POST - this is cgi request [15:13:31]url: /json_proto [15:13:31]query_string will be loaded in cgi processing [15:13:31]execute_cgi json_proto POST (null) [15:13:31]execute_cgi path=json_proto method=POST [15:13:31]POST find Content-Length [15:13:31]Host: 172.17.45.67:8080 [15:13:31]Content-Length: 682 [15:13:31]Content-Type: application/json [15:13:31] [15:13:31]POST finish read [15:13:31]Found Content-Length = 682 [15:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.330, "sum" : 482.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 482.00, "payments": [ { "type": 0, "sum" : 482.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:31]execute_script... [15:13: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)594068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.330, "sum" : 482.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 482.00, "payments": [ { "type": 0, "sum" : 482.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:31]POST & json_proto [15:13:31]process_json_proto [15:13:31]json parsed OK: [15:13:31]protocol is kg_v1.0 [15:13:31]action value=close_receipt [15:13:31]process_action close_receipt [15:13:31]cmd_close_receipt [15:13:31]MH_GetDate [15:13:31]Write to MH i2c: F0 00 00 96 0D 92 [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: F0 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: F0 09 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: F0 09 00 96 0D 00 1C 04 C6 66 5F 7F 2B 66 56 [15:13:31]GetLastDocTimeStamp 1724253142 [15:13:31]current date 1724253212 [15:13:31]FM_GetShiftState [15:13:31]SAM_PROTO_GetShiftState [15:13:31]wFMCommunicate request_size=4 [15:13:31]MH_SAM_APDU [15:13:31]CAPDU: 80 13 01 00 [15:13:31]Write to MH i2c: E2 08 00 97 0D 80 13 01 00 00 00 00 00 21 [15:13:31]Write i2c OK [15:13:31]MH_I2C_Read... [15:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:31]Read from MH i2c: E2 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 0E 00 [15:13:31]MH_I2C_Read... [15:13:31]Read from MH i2c: E2 0E 00 97 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A1 [15:13:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:13:31]wFMCommunicate OK [15:13:31]SAM_PROTO_GetShiftState done [15:13:31]FM_GetShiftState done [15:13:31]opened in 1724200467 [15:13:31]opened+sec_in_day 1724286867 [15:13:31]quantity*price = 48234 [15:13:31]sum+1 = 48236 [15:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 482.00 Внесено: 500.00 СДАЧА: 18.00 НСП 1% : 4.27 НДС 12% : 51.22 Наличными: 482.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 229 21.08.2024 15:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140212 ФПД: 176658054512178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140212&fm=176658054512178&tin=02508201610067®Number=0000000000092569&sum=48200 [15:13:32]StoreToDocumentArchive [15:13:32]shift 454 fd 140212 [15:13:32]save to /storage/0454/doc_00140212 [15:13:32]save last doc name /storage/0454/doc_00140212 to /storage/kkm_last_doc_name [15:13:32]save OK [15:13:32]Clear old archive folders... [15:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:13:32]tlvbuf is 01CA0600 [15:13:32]SAM_PROTO_ClearQueue [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 09 00 00 [15:13:32]Write to MH i2c: E2 08 00 A4 0D 80 09 00 00 00 00 00 00 23 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [15:13:32]RAPDU: 90 00 [15:13:32]wFMCommunicate OK [15:13:32]SAM_PROTO_ClearQueue done [15:13:32]KKMCreateOFDPacket [15:13:32]OFDProtocolAddRootSTLVToBuf [15:13:32]FM_MakeSignedData [15:13:32]FM_MakeSignedData [15:13:32]SAM_PROTO_SignData [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 0D 01 02 [15:13:32]Write to MH i2c: E2 08 00 A5 0D 80 0D 01 02 00 00 00 00 2B [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [15:13:32]RAPDU: 90 00 [15:13:32]wFMCommunicate OK [15:13:32]wFMCommunicate request_size=255 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B BC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 14 00 00 00 00 07 04 06 00 48 BC 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 1C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 23 02 00 35 04 06 00 [15:13:32]Write to MH i2c: E2 02 01 A6 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B BC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 14 00 00 00 00 07 04 06 00 48 BC 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 1C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 23 02 00 35 04 06 00 00 00 EF [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [15:13:32]RAPDU: 90 00 [15:13:32]wFMCommunicate OK [15:13:32]wFMCommunicate request_size=11 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 0D 02 02 06 A0 AB 68 95 FE 32 [15:13:32]Write to MH i2c: E2 0E 00 A7 0D 80 0D 02 02 06 00 A0 AB 68 95 FE 32 00 00 B2 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [15:13:32]RAPDU: 90 00 [15:13:32]wFMCommunicate OK [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 0D 03 02 [15:13:32]Write to MH i2c: E2 08 00 A8 0D 80 0D 03 02 00 00 00 00 30 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 0B 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 0B 00 A8 0D 00 F6 59 59 12 A4 71 A4 A3 90 00 47 [15:13:32]RAPDU: F6 59 59 12 A4 71 A4 A3 90 00 [15:13:32]wFMCommunicate OK [15:13:32]SAM_PROTO_SignData done [15:13:32]FM_MakeSignedData done [15:13:32]CreateOFDProtocolMessage [15:13:32]wFMCommunicate request_size=4 [15:13:32]MH_SAM_APDU [15:13:32]CAPDU: 80 11 00 00 [15:13:32]Write to MH i2c: E2 08 00 A9 0D 80 11 00 00 00 00 00 00 30 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:32]Read from MH i2c: E2 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 17 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: E2 17 00 A9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 87 [15:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:32]wFMCommunicate OK [15:13:32]CreateOFDProtocolMessage done [15:13:32]OFDSenderStorePacket 140212 [15:13:32]StoreOFDPacket docnum=140212 [15:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 28 BD 08 01 3F 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B BC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 14 00 00 00 00 07 04 06 00 48 BC 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 1C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 23 02 00 35 04 06 00 A0 AB 68 95 FE 32 F6 59 59 12 A4 71 A4 A3 [15:13:32]CheckFolder [15:13:32]dirname=/storage/ofd_packets [15:13:32]CheckFolder done [15:13:32]ProducePacketName [15:13:32]name=ofd_packets/00140212 [15:13:32]NVStorageSaveData ofd_packets/00140212 [15:13:32]File name is /storage/ofd_packets/00140212 [15:13:32]Write 302 bytes [15:13:32]NVStorageSaveData done [15:13:32]OFDSenderStorePacket done [15:13:32]KKMCreateOFDPacket done [15:13:32]NVStorageSaveData kkm_last_timestamp [15:13:32]File name is /storage/kkm_last_timestamp [15:13:32]Write 4 bytes [15:13:32]NVStorageSaveData done [15:13:32]ExternCall_PrintAddStr [15:13:32]wPrintStart [15:13:32]Write to MH i2c: 01 00 00 AA 0D B7 [15:13:32]Write i2c OK [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: 01 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: 01 07 00 [15:13:32]MH_I2C_Read... [15:13:32]Read from MH i2c: 01 07 00 AA 0D 00 00 00 00 00 FF 0F CC [15:13:32]RasterBufferAndPrint [15:13:32]line Счет N : (1)594068 [15:13:32]line ИНН: 02508201610067 [15:13:32]line Контрольно-Кассовый Чек [15:13:32]line ПРОДАЖА [15:13:32]line ТРК (МРК, ГНК) : 64 [15:13:32]line Товар: 2710194210 [15:13:32]line ДТ(л)-К-5 [15:13:32]line 6.330 * 76.20 [15:13:32]line = 482.35 [15:13:32]line НДС 12% НСП 1% [15:13:32]line > о реализуемом товаре [15:13:32]line ОКРУГЛЕНИЕ: -0.35 [15:13:32]line ИТОГО: 482.00 [15:13:32]line Внесено: 500.00 [15:13:32]line СДАЧА: 18.00 [15:13:32]line НСП 1% : 4.27 [15:13:32]line НДС 12% : 51.22 [15:13:32]line Наличными: 482.00 [15:13:32]line Безнал.: 0.00 [15:13:32]line Место: АЗС № 136 "Партнер Нефть" [15:13:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:13:32]line СНО: Общий режим [15:13:32]line Чек 229 21.08.2024 15:13 [15:13:32]line Смена: 454 ФФД: 1.0 [15:13:32]line ЗНМ: 0300000067 [15:13:32]line РНМ: 0000000000092569 [15:13:32]line Версия ККМ: 001 [15:13:32]line ФМ: 0000000000871776 [15:13:32]line ФД: 140212 [15:13:32]line ФПД: 176658054512178 [15:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140212&fm=176658054512178&tin=02508201610067®Number=0000000000092569&sum=48200 [15:13:33]OFD Sender: Processing packet 140212 [packets to send 137, broken 136] [15:13:33]ProducePacketName [15:13:33]name=ofd_packets/00140212 [15:13:33]OFD Sender: To server: pG, [15:13:33]CommunicateWithHost lk.salyk.kg:30040 [15:13:33]ConnectInit lk.salyk.kg [15:13:33]written 0, free lines is 4095 [15:13:33]Connected sock=10 [15:13: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 37 36 10 01 00 00 28 BD 08 01 3F 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BA 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B BC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 14 00 00 00 00 07 04 06 00 48 BC 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 1C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B4 23 02 00 35 04 06 00 A0 AB 68 95 FE 32 F6 59 59 12 A4 71 A4 A3 [15:13: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 37 36 4F 00 00 00 6A 3E 47 00 33 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 37 36 10 04 04 00 B4 23 02 00 F4 03 04 00 AC AA C5 66 B6 04 01 00 00 90 18 85 F3 14 A5 9D 3A [15:13:33]CommunicateWithHost err = 0 [15:13:33]CheckOFDResponse [15:13:33]1017 (14) - 77093643461234 [15:13:33]1041 (16) - 0000000000871776 [15:13:33]1040 (4) - 140212 [15:13:33]1012 (4) - 21.08.2024 08:51 [15:13:33]1206 (1) - 0 [15:13:33]OFD Sender: Remove packet 140212 [15:13:33]ProducePacketName [15:13:33]name=ofd_packets/00140212 [15:13:33]NVStorageDeleteData [15:13:33]Write to MH i2c: 01 00 00 D5 0D E2 [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: 01 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: 01 07 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: 01 07 00 D5 0D 00 00 00 00 00 D4 0C C9 [15:13:33]RasterBufferAndPrint [15:13:33]line [15:13:33]line [15:13:33]line [15:13:33]line [15:13:33]line [15:13:33]written 0, free lines is 3292 [15:13:33]MH_Cut [15:13:33]Write to MH i2c: D1 01 00 DC 0D 01 BB [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: D1 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: D1 01 00 [15:13:33]MH_I2C_Read... [15:13:33]Read from MH i2c: D1 01 00 DC 0D 00 BA [15:13:33]Write to MH i2c: 01 00 00 DD 0D EA [15:13:33]Write i2c OK [15:13:33]MH_I2C_Read... [15:13:33]OFD Sender: No OFD packet to send [15:13:34]*** Cut start [15:13:34]*** Partial cut [15:13:34]*** CUTSNS_PIN = 1 [15:13:34]*** CUTSNS_PIN = 0 [15:13:34]*** Brake cut motor [15:13:34]Read from MH i2c: 01 [15:13:34]MH_I2C_Read... [15:13:34]*** Stop cut motor [15:13:34]*** Cut end [15:13:34]Read from MH i2c: 01 07 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 FF 0F FF [15:13:34]process_action close_receipt done [15:13:34]requested_data is exist [15:13:34]produce_requested_data [15:13:34]requested_item fm.sn is exist - process it [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 11 00 00 [15:13:34]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:34]Read from MH i2c: E2 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 17 00 [15:13:34]MH_I2C_Read... [15:13:34]Read from MH i2c: E2 17 00 DE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [15:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:34]wFMCommunicate OK [15:13:34]requested_item fd.num is exist - process it [15:13:34]SAM_PROTO_GetFieldsCounters [15:13:34]wFMCommunicate request_size=4 [15:13:34]MH_SAM_APDU [15:13:34]CAPDU: 80 13 00 00 [15:13:34]Write to MH i2c: E2 08 00 DF 0D 80 13 00 00 00 00 00 00 68 [15:13:34]Write i2c OK [15:13:34]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 62 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 62 00 DF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [15:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:35]wFMCommunicate OK [15:13:35]SAM_PROTO_GetFieldsCounters done [15:13:35]requested_item shift.num is exist - process it [15:13:35]requested_item shift.opened is exist - process it [15:13:35]req_shift_opened [15:13:35]FM_GetShiftState [15:13:35]SAM_PROTO_GetShiftState [15:13:35]wFMCommunicate request_size=4 [15:13:35]MH_SAM_APDU [15:13:35]CAPDU: 80 13 01 00 [15:13:35]Write to MH i2c: E2 08 00 E0 0D 80 13 01 00 00 00 00 00 6A [15:13:35]Write i2c OK [15:13:35]MH_I2C_Read... [15:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:35]Read from MH i2c: E2 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0E 00 [15:13:35]MH_I2C_Read... [15:13:35]Read from MH i2c: E2 0E 00 E0 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EA [15:13:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:13:35]wFMCommunicate OK [15:13:35]SAM_PROTO_GetShiftState done [15:13:35]FM_GetShiftState done [15:13:35]req_shift_opened done [15:13:35]requested_item shift.open_date is exist - process it [15:13:35]req_shift_open_date [15:13:35]req_shift_open_date done [15:13:35]produce_requested_data done [15:13:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140212,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:13:35]process_action_free close_receipt [15:13:35]json_value_free [15:13:35]json_value_free done [15:13:35]process_json_proto returns [15:13:35]Send response to host [15:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140212,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:13:35]free response buf [15:13:35]execute_script done [15:13:35]execute_script returns [15:13:35]free content buf [15:13:35]Sock 8.Close socket [15:13:35]Sock 8.Thread stoped [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:46]accept exits with 9 [15:13:46]New connection [15:13:46]New thread 3067448676 created [15:13:46]Thread 3067592036 joined [15:13:46]Waiting for new connection... [15:13:46] Sock 9.Parse request [15:13:46]Sock 9.Check first char [15:13:46]Sock 9.First char is OK [15:13:46]request: POST /json_proto HTTP/1.0 [15:13:46]Method: POST [15:13:46]URL: /json_proto [15:13:46]Method is POST - this is cgi request [15:13:46]url: /json_proto [15:13:46]query_string will be loaded in cgi processing [15:13:46]execute_cgi json_proto POST (null) [15:13:46]execute_cgi path=json_proto method=POST [15:13:46]POST find Content-Length [15:13:46]Host: 172.17.45.67:8080 [15:13:46]Content-Length: 838 [15:13:46]Content-Type: application/json [15:13:46] [15:13:46]POST finish read [15:13:46]Found Content-Length = 838 [15:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:46]execute_script... [15:13: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)594067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:46]POST & json_proto [15:13:46]process_json_proto [15:13:46]json parsed OK: [15:13:46]protocol is kg_v1.0 [15:13:46]action value=close_receipt [15:13:46]process_action close_receipt [15:13:46]cmd_close_receipt [15:13:46]MH_GetDate [15:13:46]Write to MH i2c: F0 00 00 E1 0D DD [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: F0 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: F0 09 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: F0 09 00 E1 0D 00 2B 04 C6 66 5F 7F 2B 66 B0 [15:13:46]GetLastDocTimeStamp 1724253212 [15:13:46]current date 1724253227 [15:13:46]FM_GetShiftState [15:13:46]SAM_PROTO_GetShiftState [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 13 01 00 [15:13:46]Write to MH i2c: E2 08 00 E2 0D 80 13 01 00 00 00 00 00 6C [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0E 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 0E 00 E2 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EC [15:13:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_GetShiftState done [15:13:46]FM_GetShiftState done [15:13:46]opened in 1724200467 [15:13:46]opened+sec_in_day 1724286867 [15:13:46]quantity*price = 100021 [15:13:46]sum+1 = 100023 [15:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 230 21.08.2024 15:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140213 ФПД: 185936959968697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140213&fm=185936959968697&tin=02508201610067®Number=0000000000092569&sum=100000 [15:13:47]StoreToDocumentArchive [15:13:47]shift 454 fd 140213 [15:13:47]save to /storage/0454/doc_00140213 [15:13:47]save last doc name /storage/0454/doc_00140213 to /storage/kkm_last_doc_name [15:13:47]save OK [15:13:47]Clear old archive folders... [15:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:47]tlvbuf is 01C5EBF0 [15:13:47]SAM_PROTO_ClearQueue [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 09 00 00 [15:13:47]Write to MH i2c: E2 08 00 EF 0D 80 09 00 00 00 00 00 00 6E [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_ClearQueue done [15:13:47]KKMCreateOFDPacket [15:13:47]OFDProtocolAddRootSTLVToBuf [15:13:47]FM_MakeSignedData [15:13:47]FM_MakeSignedData [15:13:47]SAM_PROTO_SignData [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 01 02 [15:13:47]Write to MH i2c: E2 08 00 F0 0D 80 0D 01 02 00 00 00 00 76 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]wFMCommunicate request_size=255 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 2B 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 23 02 00 35 04 06 00 A9 [15:13:47]Write to MH i2c: E2 02 01 F1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 2B 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 23 02 00 35 04 06 00 A9 00 00 B7 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]wFMCommunicate request_size=10 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 02 02 05 1B D2 73 15 B9 [15:13:47]Write to MH i2c: E2 0D 00 F2 0D 80 0D 02 02 05 00 1B D2 73 15 B9 00 00 B1 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 03 02 [15:13:47]Write to MH i2c: E2 08 00 F3 0D 80 0D 03 02 00 00 00 00 7B [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0B 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0B 00 F3 0D 00 EB 69 C9 44 FD 59 42 2D 90 00 A2 [15:13:47]RAPDU: EB 69 C9 44 FD 59 42 2D 90 00 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_SignData done [15:13:47]FM_MakeSignedData done [15:13:47]CreateOFDProtocolMessage [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 11 00 00 [15:13:47]Write to MH i2c: E2 08 00 F4 0D 80 11 00 00 00 00 00 00 7B [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 17 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 17 00 F4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D2 [15:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:47]wFMCommunicate OK [15:13:47]CreateOFDProtocolMessage done [15:13:47]OFDSenderStorePacket 140213 [15:13:47]StoreOFDPacket docnum=140213 [15:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 BD 07 01 38 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 2B 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 23 02 00 35 04 06 00 A9 1B D2 73 15 B9 EB 69 C9 44 FD 59 42 2D [15:13:47]CheckFolder [15:13:47]dirname=/storage/ofd_packets [15:13:47]CheckFolder done [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00140213 [15:13:47]NVStorageSaveData ofd_packets/00140213 [15:13:47]File name is /storage/ofd_packets/00140213 [15:13:47]Write 301 bytes [15:13:47]NVStorageSaveData done [15:13:47]OFDSenderStorePacket done [15:13:47]KKMCreateOFDPacket done [15:13:47]NVStorageSaveData kkm_last_timestamp [15:13:47]File name is /storage/kkm_last_timestamp [15:13:47]Write 4 bytes [15:13:47]NVStorageSaveData done [15:13:47]OFD Sender: Processing packet 140213 [packets to send 137, broken 136] [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00140213 [15:13:47]OFD Sender: To server: pG, [15:13:47]CommunicateWithHost lk.salyk.kg:30040 [15:13:47]ConnectInit lk.salyk.kg [15:13:47]ExternCall_PrintAddStr [15:13:47]wPrintStart [15:13:47]Write to MH i2c: 01 00 00 F5 0D 02 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 F5 0D 00 00 00 00 00 FF 0F 17 [15:13:47]RasterBufferAndPrint [15:13:47]line Счет N : (1)594067 [15:13:47]line ИНН: 02508201610067 [15:13:47]line Контрольно-Кассовый Чек [15:13:47]line ПРОДАЖА [15:13:47]line ТРК (МРК, ГНК) : 41 [15:13:47]line Товар: 2710124500 [15:13:47]line Аи-95-К-5 [15:13:47]line 13.480 * 74.20 [15:13:47]line = 1000.22 [15:13:47]line НДС 12% НСП 1% [15:13:47]line > о реализуемом товаре [15:13:47]line ОКРУГЛЕНИЕ: -0.22 [15:13:47]line ИТОГО: 1000.00 [15:13:47]line НСП 1% : 8.85 [15:13:47]line НДС 12% : 106.22 [15:13:47]line Наличными: 0.00 [15:13:47]line Безнал.: 1000.00 [15:13:47]line Место: АЗС № 136 "Партнер Нефть" [15:13:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:13:47]line СНО: Общий режим [15:13:47]line Чек 230 21.08.2024 15:13 [15:13:47]line Смена: 454 ФФД: 1.0 [15:13:47]line ЗНМ: 0300000067 [15:13:47]line РНМ: 0000000000092569 [15:13:47]line Версия ККМ: 001 [15:13:47]line Платежная система: Бакай Банк [15:13:47]line ФМ: 0000000000871776 [15:13:47]line ФД: 140213 [15:13:47]line ФПД: 185936959968697 [15:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140213&fm=185936959968697&tin=02508201610067®Number=0000000000092569&sum=100000 [15:13:48]Connected sock=11 [15:13: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 37 36 0F 01 00 00 34 BD 07 01 38 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 2B 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 23 02 00 35 04 06 00 A9 1B D2 73 15 B9 EB 69 C9 44 FD 59 42 2D [15:13:48]written 0, free lines is 4095 [15:13: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 37 36 4F 00 00 00 37 FF 47 00 C1 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B5 23 02 00 F4 03 04 00 BB AA C5 66 B6 04 01 00 00 C5 6B E4 25 85 56 14 D2 [15:13:48]CommunicateWithHost err = 0 [15:13:48]CheckOFDResponse [15:13:48]1017 (14) - 77093643461234 [15:13:48]1041 (16) - 0000000000871776 [15:13:48]1040 (4) - 140213 [15:13:48]1012 (4) - 21.08.2024 08:52 [15:13:48]1206 (1) - 0 [15:13:48]OFD Sender: Remove packet 140213 [15:13:48]ProducePacketName [15:13:48]name=ofd_packets/00140213 [15:13:48]NVStorageDeleteData [15:13:48]Write to MH i2c: 01 00 00 20 0E 2E [15:13:48]Write i2c OK [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: 01 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: 01 07 00 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: 01 07 00 20 0E 00 00 00 00 00 DC 0C 1D [15:13:48]RasterBufferAndPrint [15:13:48]line [15:13:48]line [15:13:48]line [15:13:48]line [15:13:48]line [15:13:48]written 0, free lines is 3298 [15:13:48]MH_Cut [15:13:48]Write to MH i2c: D1 01 00 27 0E 01 07 [15:13:48]Write i2c OK [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: D1 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: D1 01 00 [15:13:48]MH_I2C_Read... [15:13:48]Read from MH i2c: D1 01 00 27 0E 00 06 [15:13:48]Write to MH i2c: 01 00 00 28 0E 36 [15:13:48]Write i2c OK [15:13:48]MH_I2C_Read... [15:13:48]OFD Sender: No OFD packet to send [15:13:49]*** Cut start [15:13:49]*** Partial cut [15:13:49]*** CUTSNS_PIN = 1 [15:13:49]*** CUTSNS_PIN = 0 [15:13:49]*** Brake cut motor [15:13:49]Read from MH i2c: 01 [15:13:49]MH_I2C_Read... [15:13:49]*** Stop cut motor [15:13:49]*** Cut end [15:13:49]Read from MH i2c: 01 07 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [15:13:49]process_action close_receipt done [15:13:49]requested_data is exist [15:13:49]produce_requested_data [15:13:49]requested_item fm.sn is exist - process it [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 11 00 00 [15:13:49]Write to MH i2c: E2 08 00 29 0E 80 11 00 00 00 00 00 00 B1 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 17 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 17 00 29 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [15:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:13:50]wFMCommunicate OK [15:13:50]requested_item fd.num is exist - process it [15:13:50]SAM_PROTO_GetFieldsCounters [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 00 00 [15:13:50]Write to MH i2c: E2 08 00 2A 0E 80 13 00 00 00 00 00 00 B4 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 62 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 62 00 2A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetFieldsCounters done [15:13:50]requested_item shift.num is exist - process it [15:13:50]requested_item shift.opened is exist - process it [15:13:50]req_shift_opened [15:13:50]FM_GetShiftState [15:13:50]SAM_PROTO_GetShiftState [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 01 00 [15:13:50]Write to MH i2c: E2 08 00 2B 0E 80 13 01 00 00 00 00 00 B6 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 2B 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 36 [15:13:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetShiftState done [15:13:50]FM_GetShiftState done [15:13:50]req_shift_opened done [15:13:50]requested_item shift.open_date is exist - process it [15:13:50]req_shift_open_date [15:13:50]req_shift_open_date done [15:13:50]produce_requested_data done [15:13:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140213,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:13:50]process_action_free close_receipt [15:13:50]json_value_free [15:13:50]json_value_free done [15:13:50]process_json_proto returns [15:13:50]Send response to host [15:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140213,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:13:50]free response buf [15:13:50]execute_script done [15:13:50]execute_script returns [15:13:50]free content buf [15:13:50]Sock 9.Close socket [15:13:50]Sock 9.Thread stoped [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:35]accept exits with 10 [15:14:35]New connection [15:14:35]New thread 3067592036 created [15:14:35]Thread 3067448676 joined [15:14:35]Waiting for new connection... [15:14:35] Sock 10.Parse request [15:14:35]Sock 10.Check first char [15:14:35]Sock 10.First char is OK [15:14:35]request: POST /json_proto HTTP/1.0 [15:14:35]Method: POST [15:14:35]URL: /json_proto [15:14:35]Method is POST - this is cgi request [15:14:35]url: /json_proto [15:14:35]query_string will be loaded in cgi processing [15:14:35]execute_cgi json_proto POST (null) [15:14:35]execute_cgi path=json_proto method=POST [15:14:35]POST find Content-Length [15:14:35]Host: 172.17.45.67:8080 [15:14:35]Content-Length: 677 [15:14:35]Content-Type: application/json [15:14:35] [15:14:35]POST finish read [15:14:35]Found Content-Length = 677 [15:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:35]execute_script... [15:14: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)594069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:35]POST & json_proto [15:14:35]process_json_proto [15:14:35]json parsed OK: [15:14:35]protocol is kg_v1.0 [15:14:35]action value=close_receipt [15:14:35]process_action close_receipt [15:14:35]cmd_close_receipt [15:14:35]MH_GetDate [15:14:35]Write to MH i2c: F0 00 00 2C 0E 29 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 09 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: F0 09 00 2C 0E 00 5C 04 C6 66 5F 7F 2B 66 2D [15:14:35]GetLastDocTimeStamp 1724253227 [15:14:35]current date 1724253276 [15:14:35]FM_GetShiftState [15:14:35]SAM_PROTO_GetShiftState [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 13 01 00 [15:14:35]Write to MH i2c: E2 08 00 2D 0E 80 13 01 00 00 00 00 00 B8 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 0E 00 2D 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 38 [15:14:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:14:35]wFMCommunicate OK [15:14:35]SAM_PROTO_GetShiftState done [15:14:35]FM_GetShiftState done [15:14:35]opened in 1724200467 [15:14:35]opened+sec_in_day 1724286867 [15:14:35]quantity*price = 50036 [15:14:35]sum+1 = 50037 [15:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 231 21.08.2024 15:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140214 ФПД: 12795195502693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140214&fm=12795195502693&tin=02508201610067®Number=0000000000092569&sum=50000 [15:14:36]StoreToDocumentArchive [15:14:36]shift 454 fd 140214 [15:14:36]save to /storage/0454/doc_00140214 [15:14:36]save last doc name /storage/0454/doc_00140214 to /storage/kkm_last_doc_name [15:14:36]save OK [15:14:36]Clear old archive folders... [15:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:36]tlvbuf is 01CBE5A0 [15:14:36]SAM_PROTO_ClearQueue [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 09 00 00 [15:14:36]Write to MH i2c: E2 08 00 3A 0E 80 09 00 00 00 00 00 00 BA [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 3A 0E 00 90 00 BC [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_ClearQueue done [15:14:36]KKMCreateOFDPacket [15:14:36]OFDProtocolAddRootSTLVToBuf [15:14:36]FM_MakeSignedData [15:14:36]FM_MakeSignedData [15:14:36]SAM_PROTO_SignData [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 01 02 [15:14:36]Write to MH i2c: E2 08 00 3B 0E 80 0D 01 02 00 00 00 00 C2 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 3B 0E 00 90 00 BD [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=255 [15:14:36]MH_SAM_APDU [15:14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 5C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 23 02 00 35 04 06 00 0B [15:14:36]Write to MH i2c: E2 02 01 3C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 5C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 23 02 00 35 04 06 00 0B 00 00 6B [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=10 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 02 02 05 A3 1D 15 30 65 [15:14:36]Write to MH i2c: E2 0D 00 3D 0E 80 0D 02 02 05 00 A3 1D 15 30 65 00 00 39 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [15:14:36]RAPDU: 90 00 [15:14:36]wFMCommunicate OK [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 0D 03 02 [15:14:36]Write to MH i2c: E2 08 00 3E 0E 80 0D 03 02 00 00 00 00 C7 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0B 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 0B 00 3E 0E 00 A7 F8 66 52 B2 BC 6F 12 90 00 0E [15:14:36]RAPDU: A7 F8 66 52 B2 BC 6F 12 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_SignData done [15:14:36]FM_MakeSignedData done [15:14:36]CreateOFDProtocolMessage [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 11 00 00 [15:14:36]Write to MH i2c: E2 08 00 3F 0E 80 11 00 00 00 00 00 00 C7 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 17 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 17 00 3F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1E [15:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:14:36]wFMCommunicate OK [15:14:36]CreateOFDProtocolMessage done [15:14:36]OFDSenderStorePacket 140214 [15:14:36]StoreOFDPacket docnum=140214 [15:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EF E1 07 01 8D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 5C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 23 02 00 35 04 06 00 0B A3 1D 15 30 65 A7 F8 66 52 B2 BC 6F 12 [15:14:36]CheckFolder [15:14:36]dirname=/storage/ofd_packets [15:14:36]CheckFolder done [15:14:36]ProducePacketName [15:14:36]name=ofd_packets/00140214 [15:14:36]NVStorageSaveData ofd_packets/00140214 [15:14:36]File name is /storage/ofd_packets/00140214 [15:14:36]Write 301 bytes [15:14:36]NVStorageSaveData done [15:14:36]OFDSenderStorePacket done [15:14:36]KKMCreateOFDPacket done [15:14:36]NVStorageSaveData kkm_last_timestamp [15:14:36]File name is /storage/kkm_last_timestamp [15:14:36]Write 4 bytes [15:14:36]NVStorageSaveData done [15:14:36]ExternCall_PrintAddStr [15:14:36]wPrintStart [15:14:36]Write to MH i2c: 01 00 00 40 0E 4E [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 07 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [15:14:36]RasterBufferAndPrint [15:14:36]line Счет N : (1)594069 [15:14:36]line ИНН: 02508201610067 [15:14:36]line Контрольно-Кассовый Чек [15:14:36]line ПРОДАЖА [15:14:36]line ТРК (МРК, ГНК) : 52 [15:14:36]line Товар: 2710124130 [15:14:36]line Аи-92-К-5 [15:14:36]line 7.380 * 67.80 [15:14:36]line = 500.36 [15:14:36]line НДС 12% НСП 1% [15:14:36]line > о реализуемом товаре [15:14:36]line ОКРУГЛЕНИЕ: -0.36 [15:14:36]line ИТОГО: 500.00 [15:14:36]line Внесено: 500.00 [15:14:36]line СДАЧА: 0.00 [15:14:36]line НСП 1% : 4.43 [15:14:36]line НДС 12% : 53.14 [15:14:36]line Наличными: 500.00 [15:14:36]line Безнал.: 0.00 [15:14:36]line Место: АЗС № 136 "Партнер Нефть" [15:14:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:14:36]line СНО: Общий режим [15:14:36]line Чек 231 21.08.2024 15:14 [15:14:36]line Смена: 454 ФФД: 1.0 [15:14:36]line ЗНМ: 0300000067 [15:14:36]line РНМ: 0000000000092569 [15:14:36]line Версия ККМ: 001 [15:14:36]line ФМ: 0000000000871776 [15:14:36]line ФД: 140214 [15:14:36]line ФПД: 12795195502693 [15:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151436&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140214&fm=12795195502693&tin=02508201610067®Number=0000000000092569&sum=50000 [15:14:37]written 0, free lines is 4095 [15:14:37]OFD Sender: Processing packet 140214 [packets to send 137, broken 136] [15:14:37]ProducePacketName [15:14:37]name=ofd_packets/00140214 [15:14:37]OFD Sender: To server: pG, [15:14:37]CommunicateWithHost lk.salyk.kg:30040 [15:14:37]ConnectInit lk.salyk.kg [15:14:37]Connected sock=9 [15:14: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 37 36 0F 01 00 00 EF E1 07 01 8D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 5C 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B6 23 02 00 35 04 06 00 0B A3 1D 15 30 65 A7 F8 66 52 B2 BC 6F 12 [15:14: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 37 36 4F 00 00 00 E8 80 47 00 48 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 37 36 10 04 04 00 B6 23 02 00 F4 03 04 00 EC AA C5 66 B6 04 01 00 00 3A 55 1F ED 10 F7 22 EB [15:14:37]CommunicateWithHost err = 0 [15:14:37]CheckOFDResponse [15:14:37]1017 (14) - 77093643461234 [15:14:37]1041 (16) - 0000000000871776 [15:14:37]1040 (4) - 140214 [15:14:37]1012 (4) - 21.08.2024 08:53 [15:14:37]1206 (1) - 0 [15:14:37]OFD Sender: Remove packet 140214 [15:14:37]ProducePacketName [15:14:37]name=ofd_packets/00140214 [15:14:37]NVStorageDeleteData [15:14:37]Write to MH i2c: 01 00 00 6B 0E 79 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 07 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: 01 07 00 6B 0E 00 00 00 00 00 CD 0C 59 [15:14:37]RasterBufferAndPrint [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]line [15:14:37]written 0, free lines is 3283 [15:14:37]MH_Cut [15:14:37]Write to MH i2c: D1 01 00 72 0E 01 52 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 01 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: D1 01 00 72 0E 00 51 [15:14:37]Write to MH i2c: 01 00 00 73 0E 81 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:38]OFD Sender: No OFD packet to send [15:14:38]*** Cut start [15:14:38]*** Partial cut [15:14:38]*** CUTSNS_PIN = 1 [15:14:38]*** CUTSNS_PIN = 0 [15:14:38]*** Brake cut motor [15:14:38]Read from MH i2c: 01 [15:14:38]MH_I2C_Read... [15:14:38]*** Stop cut motor [15:14:38]*** Cut end [15:14:38]Read from MH i2c: 01 07 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: 01 07 00 73 0E 00 00 00 00 00 FF 0F 96 [15:14:38]process_action close_receipt done [15:14:38]requested_data is exist [15:14:38]produce_requested_data [15:14:38]requested_item fm.sn is exist - process it [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 11 00 00 [15:14:38]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 17 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [15:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:14:38]wFMCommunicate OK [15:14:38]requested_item fd.num is exist - process it [15:14:38]SAM_PROTO_GetFieldsCounters [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 13 00 00 [15:14:38]Write to MH i2c: E2 08 00 75 0E 80 13 00 00 00 00 00 00 FF [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 62 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 62 00 75 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_GetFieldsCounters done [15:14:39]requested_item shift.num is exist - process it [15:14:39]requested_item shift.opened is exist - process it [15:14:39]req_shift_opened [15:14:39]FM_GetShiftState [15:14:39]SAM_PROTO_GetShiftState [15:14:39]wFMCommunicate request_size=4 [15:14:39]MH_SAM_APDU [15:14:39]CAPDU: 80 13 01 00 [15:14:39]Write to MH i2c: E2 08 00 76 0E 80 13 01 00 00 00 00 00 01 [15:14:39]Write i2c OK [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:39]Read from MH i2c: E2 0E 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 0E 00 76 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 81 [15:14:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_GetShiftState done [15:14:39]FM_GetShiftState done [15:14:39]req_shift_opened done [15:14:39]requested_item shift.open_date is exist - process it [15:14:39]req_shift_open_date [15:14:39]req_shift_open_date done [15:14:39]produce_requested_data done [15:14:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140214,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:14:39]process_action_free close_receipt [15:14:39]json_value_free [15:14:39]json_value_free done [15:14:39]process_json_proto returns [15:14:39]Send response to host [15:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140214,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:14:39]free response buf [15:14:39]execute_script done [15:14:39]execute_script returns [15:14:39]free content buf [15:14:39]Sock 10.Close socket [15:14:39]Sock 10.Thread stoped [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]accept exits with 8 [15:16:03]New connection [15:16:03]New thread 3067448676 created [15:16:03]Thread 3067592036 joined [15:16:03]Waiting for new connection... [15:16:03] Sock 8.Parse request [15:16:03]Sock 8.Check first char [15:16:03]Sock 8.First char is OK [15:16:03]request: POST /json_proto HTTP/1.0 [15:16:03]Method: POST [15:16:03]URL: /json_proto [15:16:03]Method is POST - this is cgi request [15:16:03]url: /json_proto [15:16:03]query_string will be loaded in cgi processing [15:16:03]execute_cgi json_proto POST (null) [15:16:03]execute_cgi path=json_proto method=POST [15:16:03]POST find Content-Length [15:16:03]Host: 172.17.45.67:8080 [15:16:03]Content-Length: 677 [15:16:03]Content-Type: application/json [15:16:03] [15:16:03]POST finish read [15:16:03]Found Content-Length = 677 [15:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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:16:03]execute_script... [15:16:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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:16:03]POST & json_proto [15:16:03]process_json_proto [15:16:03]json parsed OK: [15:16:03]protocol is kg_v1.0 [15:16:03]action value=close_receipt [15:16:03]process_action close_receipt [15:16:03]cmd_close_receipt [15:16:03]MH_GetDate [15:16:03]Write to MH i2c: F0 00 00 77 0E 74 [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 09 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: F0 09 00 77 0E 00 B4 04 C6 66 5F 7F 2B 66 D0 [15:16:03]GetLastDocTimeStamp 1724253276 [15:16:03]current date 1724253364 [15:16:03]FM_GetShiftState [15:16:03]SAM_PROTO_GetShiftState [15:16:03]wFMCommunicate request_size=4 [15:16:03]MH_SAM_APDU [15:16:03]CAPDU: 80 13 01 00 [15:16:03]Write to MH i2c: E2 08 00 78 0E 80 13 01 00 00 00 00 00 03 [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:03]Read from MH i2c: E2 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 78 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 83 [15:16:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:16:03]wFMCommunicate OK [15:16:03]SAM_PROTO_GetShiftState done [15:16:03]FM_GetShiftState done [15:16:03]opened in 1724200467 [15:16:03]opened+sec_in_day 1724286867 [15:16:03]quantity*price = 35052 [15:16:03]sum+1 = 35054 [15:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 232 21.08.2024 15:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140215 ФПД: 219970508702502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151604&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140215&fm=219970508702502&tin=02508201610067®Number=0000000000092569&sum=35000 [15:16:04]StoreToDocumentArchive [15:16:04]shift 454 fd 140215 [15:16:04]save to /storage/0454/doc_00140215 [15:16:04]save last doc name /storage/0454/doc_00140215 to /storage/kkm_last_doc_name [15:16:04]save OK [15:16:04]Clear old archive folders... [15:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:04]tlvbuf is 01CBE830 [15:16:04]SAM_PROTO_ClearQueue [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 09 00 00 [15:16:04]Write to MH i2c: E2 08 00 85 0E 80 09 00 00 00 00 00 00 05 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 85 0E 00 90 00 07 [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_ClearQueue done [15:16:04]KKMCreateOFDPacket [15:16:04]OFDProtocolAddRootSTLVToBuf [15:16:04]FM_MakeSignedData [15:16:04]FM_MakeSignedData [15:16:04]SAM_PROTO_SignData [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 01 02 [15:16:04]Write to MH i2c: E2 08 00 86 0E 80 0D 01 02 00 00 00 00 0D [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 86 0E 00 90 00 08 [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]wFMCommunicate request_size=255 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 E8 00 00 00 F4 03 04 00 B4 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 23 02 00 35 04 06 00 C8 [15:16:04]Write to MH i2c: E2 02 01 87 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 E8 00 00 00 F4 03 04 00 B4 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 23 02 00 35 04 06 00 C8 00 00 F8 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 87 0E 00 90 00 09 [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]wFMCommunicate request_size=10 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 02 02 05 0F E0 08 43 26 [15:16:04]Write to MH i2c: E2 0D 00 88 0E 80 0D 02 02 05 00 0F E0 08 43 26 00 00 7A [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [15:16:04]RAPDU: 90 00 [15:16:04]wFMCommunicate OK [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 0D 03 02 [15:16:04]Write to MH i2c: E2 08 00 89 0E 80 0D 03 02 00 00 00 00 12 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0B 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 0B 00 89 0E 00 6D E7 2E BC 94 D0 74 FA 90 00 23 [15:16:04]RAPDU: 6D E7 2E BC 94 D0 74 FA 90 00 [15:16:04]wFMCommunicate OK [15:16:04]SAM_PROTO_SignData done [15:16:04]FM_MakeSignedData done [15:16:04]CreateOFDProtocolMessage [15:16:04]wFMCommunicate request_size=4 [15:16:04]MH_SAM_APDU [15:16:04]CAPDU: 80 11 00 00 [15:16:04]Write to MH i2c: E2 08 00 8A 0E 80 11 00 00 00 00 00 00 12 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:04]Read from MH i2c: E2 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 17 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: E2 17 00 8A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [15:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:04]wFMCommunicate OK [15:16:04]CreateOFDProtocolMessage done [15:16:04]OFDSenderStorePacket 140215 [15:16:04]StoreOFDPacket docnum=140215 [15:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 35 07 01 8B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 E8 00 00 00 F4 03 04 00 B4 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 23 02 00 35 04 06 00 C8 0F E0 08 43 26 6D E7 2E BC 94 D0 74 FA [15:16:04]CheckFolder [15:16:04]dirname=/storage/ofd_packets [15:16:04]CheckFolder done [15:16:04]ProducePacketName [15:16:04]name=ofd_packets/00140215 [15:16:04]NVStorageSaveData ofd_packets/00140215 [15:16:04]File name is /storage/ofd_packets/00140215 [15:16:04]Write 301 bytes [15:16:04]NVStorageSaveData done [15:16:04]OFDSenderStorePacket done [15:16:04]KKMCreateOFDPacket done [15:16:04]NVStorageSaveData kkm_last_timestamp [15:16:04]File name is /storage/kkm_last_timestamp [15:16:04]Write 4 bytes [15:16:04]NVStorageSaveData done [15:16:04]ExternCall_PrintAddStr [15:16:04]wPrintStart [15:16:04]Write to MH i2c: 01 00 00 8B 0E 99 [15:16:04]Write i2c OK [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: 01 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: 01 07 00 [15:16:04]MH_I2C_Read... [15:16:04]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [15:16:04]RasterBufferAndPrint [15:16:04]line Счет N : (1)594070 [15:16:04]line ИНН: 02508201610067 [15:16:04]line Контрольно-Кассовый Чек [15:16:04]line ПРОДАЖА [15:16:04]line ТРК (МРК, ГНК) : 62 [15:16:04]line Товар: 2710124130 [15:16:04]line Аи-92-К-5 [15:16:04]line 5.170 * 67.80 [15:16:04]line = 350.53 [15:16:04]line НДС 12% НСП 1% [15:16:04]line > о реализуемом товаре [15:16:04]line ОКРУГЛЕНИЕ: -0.53 [15:16:04]line ИТОГО: 350.00 [15:16:04]line Внесено: 350.00 [15:16:04]line СДАЧА: 0.00 [15:16:04]line НСП 1% : 3.10 [15:16:04]line НДС 12% : 37.22 [15:16:04]line Наличными: 350.00 [15:16:04]line Безнал.: 0.00 [15:16:04]line Место: АЗС № 136 "Партнер Нефть" [15:16:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:16:04]line СНО: Общий режим [15:16:04]line Чек 232 21.08.2024 15:16 [15:16:04]line Смена: 454 ФФД: 1.0 [15:16:04]line ЗНМ: 0300000067 [15:16:04]line РНМ: 0000000000092569 [15:16:04]line Версия ККМ: 001 [15:16:04]line ФМ: 0000000000871776 [15:16:04]line ФД: 140215 [15:16:04]line ФПД: 219970508702502 [15:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151604&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140215&fm=219970508702502&tin=02508201610067®Number=0000000000092569&sum=35000 [15:16:05]written 0, free lines is 4095 [15:16:05]OFD Sender: Processing packet 140215 [packets to send 137, broken 136] [15:16:05]ProducePacketName [15:16:05]name=ofd_packets/00140215 [15:16:05]OFD Sender: To server: pG, [15:16:05]CommunicateWithHost lk.salyk.kg:30040 [15:16:05]ConnectInit lk.salyk.kg [15:16:05]Write to MH i2c: 01 00 00 B6 0E C4 [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 07 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 CE 0C A5 [15:16:05]RasterBufferAndPrint [15:16:05]line [15:16:05]line [15:16:05]line [15:16:05]line [15:16:05]line [15:16:05]written 0, free lines is 3287 [15:16:05]MH_Cut [15:16:05]Write to MH i2c: D1 01 00 BD 0E 01 9D [15:16:05]Connected sock=10 [15:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 35 07 01 8B 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 E8 00 00 00 F4 03 04 00 B4 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B7 23 02 00 35 04 06 00 C8 0F E0 08 43 26 6D E7 2E BC 94 D0 74 FA [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: D1 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: D1 01 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: D1 01 00 BD 0E 00 9C [15:16:05]Write to MH i2c: 01 00 00 BE 0E CC [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16: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 37 36 4F 00 00 00 83 87 47 00 91 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 37 36 10 04 04 00 B7 23 02 00 F4 03 04 00 44 AB C5 66 B6 04 01 00 00 77 00 A3 20 25 E2 29 93 [15:16:05]CommunicateWithHost err = 0 [15:16:05]CheckOFDResponse [15:16:05]1017 (14) - 77093643461234 [15:16:05]1041 (16) - 0000000000871776 [15:16:05]1040 (4) - 140215 [15:16:05]1012 (4) - 21.08.2024 08:54 [15:16:05]1206 (1) - 0 [15:16:05]OFD Sender: Remove packet 140215 [15:16:05]ProducePacketName [15:16:05]name=ofd_packets/00140215 [15:16:05]NVStorageDeleteData [15:16:06]*** Cut start [15:16:06]*** Partial cut [15:16:06]*** CUTSNS_PIN = 1 [15:16:06]*** CUTSNS_PIN = 0 [15:16:06]OFD Sender: No OFD packet to send [15:16:06]*** Brake cut motor [15:16:06]Read from MH i2c: 01 [15:16:06]MH_I2C_Read... [15:16:06]*** Stop cut motor [15:16:06]*** Cut end [15:16:06]Read from MH i2c: 01 07 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [15:16:06]process_action close_receipt done [15:16:06]requested_data is exist [15:16:06]produce_requested_data [15:16:06]requested_item fm.sn is exist - process it [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 11 00 00 [15:16:06]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [15:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:06]wFMCommunicate OK [15:16:06]requested_item fd.num is exist - process it [15:16:06]SAM_PROTO_GetFieldsCounters [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 13 00 00 [15:16:06]Write to MH i2c: E2 08 00 C0 0E 80 13 00 00 00 00 00 00 4A [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:07]Read from MH i2c: E2 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 62 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 62 00 C0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [15:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:07]wFMCommunicate OK [15:16:07]SAM_PROTO_GetFieldsCounters done [15:16:07]requested_item shift.num is exist - process it [15:16:07]requested_item shift.opened is exist - process it [15:16:07]req_shift_opened [15:16:07]FM_GetShiftState [15:16:07]SAM_PROTO_GetShiftState [15:16:07]wFMCommunicate request_size=4 [15:16:07]MH_SAM_APDU [15:16:07]CAPDU: 80 13 01 00 [15:16:07]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:07]Read from MH i2c: E2 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 0E 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CC [15:16:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:16:07]wFMCommunicate OK [15:16:07]SAM_PROTO_GetShiftState done [15:16:07]FM_GetShiftState done [15:16:07]req_shift_opened done [15:16:07]requested_item shift.open_date is exist - process it [15:16:07]req_shift_open_date [15:16:07]req_shift_open_date done [15:16:07]produce_requested_data done [15:16:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140215,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:16:07]process_action_free close_receipt [15:16:07]json_value_free [15:16:07]json_value_free done [15:16:07]process_json_proto returns [15:16:07]Send response to host [15:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140215,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:16:07]free response buf [15:16:07]execute_script done [15:16:07]execute_script returns [15:16:07]free content buf [15:16:07]Sock 8.Close socket [15:16:07]Sock 8.Thread stoped [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:23]accept exits with 9 [15:16:23]New connection [15:16:23]New thread 3067592036 created [15:16:23]Thread 3067448676 joined [15:16:23]Waiting for new connection... [15:16:23] Sock 9.Parse request [15:16:23]Sock 9.Check first char [15:16:23]Sock 9.First char is OK [15:16:23]request: POST /json_proto HTTP/1.0 [15:16:23]Method: POST [15:16:23]URL: /json_proto [15:16:23]Method is POST - this is cgi request [15:16:23]url: /json_proto [15:16:23]query_string will be loaded in cgi processing [15:16:23]execute_cgi json_proto POST (null) [15:16:23]execute_cgi path=json_proto method=POST [15:16:23]POST find Content-Length [15:16:23]Host: 172.17.45.67:8080 [15:16:23]Content-Length: 678 [15:16:23]Content-Type: application/json [15:16:23] [15:16:23]POST finish read [15:16:23]Found Content-Length = 678 [15:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:23]execute_script... [15:16: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)594072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:23]POST & json_proto [15:16:23]process_json_proto [15:16:23]json parsed OK: [15:16:23]protocol is kg_v1.0 [15:16:23]action value=close_receipt [15:16:23]process_action close_receipt [15:16:23]cmd_close_receipt [15:16:23]MH_GetDate [15:16:23]Write to MH i2c: F0 00 00 C2 0E BF [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: F0 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: F0 09 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: F0 09 00 C2 0E 00 C8 04 C6 66 5F 7F 2B 66 2F [15:16:23]GetLastDocTimeStamp 1724253364 [15:16:23]current date 1724253384 [15:16:23]FM_GetShiftState [15:16:23]SAM_PROTO_GetShiftState [15:16:23]wFMCommunicate request_size=4 [15:16:23]MH_SAM_APDU [15:16:23]CAPDU: 80 13 01 00 [15:16:23]Write to MH i2c: E2 08 00 C3 0E 80 13 01 00 00 00 00 00 4E [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:23]Read from MH i2c: E2 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 0E 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: E2 0E 00 C3 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CE [15:16:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:16:23]wFMCommunicate OK [15:16:23]SAM_PROTO_GetShiftState done [15:16:23]FM_GetShiftState done [15:16:23]opened in 1724200467 [15:16:23]opened+sec_in_day 1724286867 [15:16:23]quantity*price = 70037 [15:16:23]sum+1 = 70038 [15:16:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 233 21.08.2024 15:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140216 ФПД: 261611643169836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140216&fm=261611643169836&tin=02508201610067®Number=0000000000092569&sum=70000 [15:16:24]StoreToDocumentArchive [15:16:24]shift 454 fd 140216 [15:16:24]save to /storage/0454/doc_00140216 [15:16:24]save last doc name /storage/0454/doc_00140216 to /storage/kkm_last_doc_name [15:16:24]save OK [15:16:24]Clear old archive folders... [15:16:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:24]tlvbuf is 01CBF430 [15:16:24]SAM_PROTO_ClearQueue [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 09 00 00 [15:16:24]Write to MH i2c: E2 08 00 D0 0E 80 09 00 00 00 00 00 00 50 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [15:16:24]RAPDU: 90 00 [15:16:24]wFMCommunicate OK [15:16:24]SAM_PROTO_ClearQueue done [15:16:24]KKMCreateOFDPacket [15:16:24]OFDProtocolAddRootSTLVToBuf [15:16:24]FM_MakeSignedData [15:16:24]FM_MakeSignedData [15:16:24]SAM_PROTO_SignData [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 0D 01 02 [15:16:24]Write to MH i2c: E2 08 00 D1 0E 80 0D 01 02 00 00 00 00 58 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [15:16:24]RAPDU: 90 00 [15:16:24]wFMCommunicate OK [15:16:24]wFMCommunicate request_size=255 [15:16:24]MH_SAM_APDU [15:16: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 23 02 00 35 04 06 00 ED [15:16:24]Write to MH i2c: E2 02 01 D2 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 23 02 00 35 04 06 00 ED 00 00 3A [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [15:16:24]RAPDU: 90 00 [15:16:24]wFMCommunicate OK [15:16:24]wFMCommunicate request_size=10 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 0D 02 02 05 EF 35 0F 6C 2C [15:16:24]Write to MH i2c: E2 0D 00 D3 0E 80 0D 02 02 05 00 EF 35 0F 6C 2C 00 00 30 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [15:16:24]RAPDU: 90 00 [15:16:24]wFMCommunicate OK [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 0D 03 02 [15:16:24]Write to MH i2c: E2 08 00 D4 0E 80 0D 03 02 00 00 00 00 5D [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 0B 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 0B 00 D4 0E 00 F0 E5 7E 55 1C 63 9D 41 90 00 63 [15:16:24]RAPDU: F0 E5 7E 55 1C 63 9D 41 90 00 [15:16:24]wFMCommunicate OK [15:16:24]SAM_PROTO_SignData done [15:16:24]FM_MakeSignedData done [15:16:24]CreateOFDProtocolMessage [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 11 00 00 [15:16:24]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 17 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [15:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:24]wFMCommunicate OK [15:16:24]CreateOFDProtocolMessage done [15:16:24]OFDSenderStorePacket 140216 [15:16:24]StoreOFDPacket docnum=140216 [15:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9B 7D 07 01 73 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 23 02 00 35 04 06 00 ED EF 35 0F 6C 2C F0 E5 7E 55 1C 63 9D 41 [15:16:24]CheckFolder [15:16:24]dirname=/storage/ofd_packets [15:16:24]CheckFolder done [15:16:24]ProducePacketName [15:16:24]name=ofd_packets/00140216 [15:16:24]NVStorageSaveData ofd_packets/00140216 [15:16:24]File name is /storage/ofd_packets/00140216 [15:16:24]Write 301 bytes [15:16:24]NVStorageSaveData done [15:16:24]OFDSenderStorePacket done [15:16:24]KKMCreateOFDPacket done [15:16:24]NVStorageSaveData kkm_last_timestamp [15:16:24]File name is /storage/kkm_last_timestamp [15:16:24]Write 4 bytes [15:16:24]NVStorageSaveData done [15:16:24]ExternCall_PrintAddStr [15:16:24]wPrintStart [15:16:24]Write to MH i2c: 01 00 00 D6 0E E4 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: 01 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: 01 07 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [15:16:24]RasterBufferAndPrint [15:16:24]line Счет N : (1)594072 [15:16:24]line ИНН: 02508201610067 [15:16:24]line Контрольно-Кассовый Чек [15:16:24]line ПРОДАЖА [15:16:24]line ТРК (МРК, ГНК) : 32 [15:16:24]line Товар: 2710124130 [15:16:24]line Аи-92-К-5 [15:16:24]line 10.330 * 67.80 [15:16:24]line = 700.37 [15:16:24]line НДС 12% НСП 1% [15:16:24]line > о реализуемом товаре [15:16:24]line ОКРУГЛЕНИЕ: -0.37 [15:16:24]line ИТОГО: 700.00 [15:16:24]line Внесено: 700.00 [15:16:24]line СДАЧА: 0.00 [15:16:24]line НСП 1% : 6.20 [15:16:24]line НДС 12% : 74.38 [15:16:24]line Наличными: 700.00 [15:16:24]line Безнал.: 0.00 [15:16:24]line Место: АЗС № 136 "Партнер Нефть" [15:16:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:16:24]line СНО: Общий режим [15:16:24]line Чек 233 21.08.2024 15:16 [15:16:24]line Смена: 454 ФФД: 1.0 [15:16:24]line ЗНМ: 0300000067 [15:16:24]line РНМ: 0000000000092569 [15:16:24]line Версия ККМ: 001 [15:16:24]line ФМ: 0000000000871776 [15:16:24]line ФД: 140216 [15:16:24]line ФПД: 261611643169836 [15:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151624&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140216&fm=261611643169836&tin=02508201610067®Number=0000000000092569&sum=70000 [15:16:25]OFD Sender: Processing packet 140216 [packets to send 137, broken 136] [15:16:25]ProducePacketName [15:16:25]name=ofd_packets/00140216 [15:16:25]OFD Sender: To server: pG, [15:16:25]CommunicateWithHost lk.salyk.kg:30040 [15:16:25]ConnectInit lk.salyk.kg [15:16:25]written 0, free lines is 4095 [15:16:25]Connected sock=10 [15:16: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 37 36 0F 01 00 00 9B 7D 07 01 73 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 C8 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 23 02 00 35 04 06 00 ED EF 35 0F 6C 2C F0 E5 7E 55 1C 63 9D 41 [15:16: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 37 36 4F 00 00 00 20 AA 47 00 F3 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B8 23 02 00 F4 03 04 00 58 AB C5 66 B6 04 01 00 00 99 63 8B 37 73 FD 9D CF [15:16:25]CommunicateWithHost err = 0 [15:16:25]CheckOFDResponse [15:16:25]1017 (14) - 77093643461234 [15:16:25]1041 (16) - 0000000000871776 [15:16:25]1040 (4) - 140216 [15:16:25]1012 (4) - 21.08.2024 08:54 [15:16:25]1206 (1) - 0 [15:16:25]OFD Sender: Remove packet 140216 [15:16:25]ProducePacketName [15:16:25]name=ofd_packets/00140216 [15:16:25]NVStorageDeleteData [15:16:25]Write to MH i2c: 01 00 00 01 0F 10 [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: 01 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: 01 07 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 D3 0C F6 [15:16:25]RasterBufferAndPrint [15:16:25]line [15:16:25]line [15:16:25]line [15:16:25]line [15:16:25]line [15:16:25]written 0, free lines is 3291 [15:16:25]MH_Cut [15:16:25]Write to MH i2c: D1 01 00 08 0F 01 E9 [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: D1 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: D1 01 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: D1 01 00 08 0F 00 E8 [15:16:25]Write to MH i2c: 01 00 00 09 0F 18 [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]OFD Sender: No OFD packet to send [15:16:26]*** Cut start [15:16:26]*** Partial cut [15:16:26]*** CUTSNS_PIN = 1 [15:16:26]*** CUTSNS_PIN = 0 [15:16:26]*** Brake cut motor [15:16:26]Read from MH i2c: 01 [15:16:26]MH_I2C_Read... [15:16:26]*** Stop cut motor [15:16:26]*** Cut end [15:16:26]Read from MH i2c: 01 07 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 FF 0F 2D [15:16:26]process_action close_receipt done [15:16:26]requested_data is exist [15:16:26]produce_requested_data [15:16:26]requested_item fm.sn is exist - process it [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 11 00 00 [15:16:26]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 17 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 17 00 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [15:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:16:26]wFMCommunicate OK [15:16:26]requested_item fd.num is exist - process it [15:16:26]SAM_PROTO_GetFieldsCounters [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 13 00 00 [15:16:26]Write to MH i2c: E2 08 00 0B 0F 80 13 00 00 00 00 00 00 96 [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 62 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 62 00 0B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [15:16: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:27]wFMCommunicate OK [15:16:27]SAM_PROTO_GetFieldsCounters done [15:16:27]requested_item shift.num is exist - process it [15:16:27]requested_item shift.opened is exist - process it [15:16:27]req_shift_opened [15:16:27]FM_GetShiftState [15:16:27]SAM_PROTO_GetShiftState [15:16:27]wFMCommunicate request_size=4 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 13 01 00 [15:16:27]Write to MH i2c: E2 08 00 0C 0F 80 13 01 00 00 00 00 00 98 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0E 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0E 00 0C 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [15:16:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:16:27]wFMCommunicate OK [15:16:27]SAM_PROTO_GetShiftState done [15:16:27]FM_GetShiftState done [15:16:27]req_shift_opened done [15:16:27]requested_item shift.open_date is exist - process it [15:16:27]req_shift_open_date [15:16:27]req_shift_open_date done [15:16:27]produce_requested_data done [15:16:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140216,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:16:27]process_action_free close_receipt [15:16:27]json_value_free [15:16:27]json_value_free done [15:16:27]process_json_proto returns [15:16:27]Send response to host [15:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140216,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:16:27]free response buf [15:16:27]execute_script done [15:16:27]execute_script returns [15:16:27]free content buf [15:16:27]Sock 9.Close socket [15:16:27]Sock 9.Thread stoped [15:16:30]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:16:59]accept exits with 8 [15:16:59]New connection [15:16:59]New thread 3067448676 created [15:16:59]Thread 3067592036 joined [15:16:59]Waiting for new connection... [15:16:59] Sock 8.Parse request [15:16:59]Sock 8.Check first char [15:16:59]Sock 8.First char is OK [15:16:59]request: POST /json_proto HTTP/1.0 [15:16:59]Method: POST [15:16:59]URL: /json_proto [15:16:59]Method is POST - this is cgi request [15:16:59]url: /json_proto [15:16:59]query_string will be loaded in cgi processing [15:16:59]execute_cgi json_proto POST (null) [15:16:59]execute_cgi path=json_proto method=POST [15:16:59]POST find Content-Length [15:16:59]Host: 172.17.45.67:8080 [15:16:59]Content-Length: 677 [15:16:59]Content-Type: application/json [15:16:59] [15:16:59]POST finish read [15:16:59]Found Content-Length = 677 [15:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:59]execute_script... [15:16: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)594073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:59]POST & json_proto [15:16:59]process_json_proto [15:16:59]json parsed OK: [15:16:59]protocol is kg_v1.0 [15:16:59]action value=close_receipt [15:16:59]process_action close_receipt [15:16:59]cmd_close_receipt [15:16:59]MH_GetDate [15:16:59]Write to MH i2c: F0 00 00 0D 0F 0B [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: F0 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: F0 09 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: F0 09 00 0D 0F 00 EC 04 C6 66 5F 7F 2B 66 9F [15:16:59]GetLastDocTimeStamp 1724253384 [15:16:59]current date 1724253420 [15:16:59]FM_GetShiftState [15:16:59]SAM_PROTO_GetShiftState [15:16:59]wFMCommunicate request_size=4 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 13 01 00 [15:16:59]Write to MH i2c: E2 08 00 0E 0F 80 13 01 00 00 00 00 00 9A [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:00]Read from MH i2c: E2 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: E2 0E 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: E2 0E 00 0E 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1A [15:17:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:17:00]wFMCommunicate OK [15:17:00]SAM_PROTO_GetShiftState done [15:17:00]FM_GetShiftState done [15:17:00]opened in 1724200467 [15:17:00]opened+sec_in_day 1724286867 [15:17:00]quantity*price = 50036 [15:17:00]sum+1 = 50037 [15:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 234 21.08.2024 15:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140217 ФПД: 156927580945742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140217&fm=156927580945742&tin=02508201610067®Number=0000000000092569&sum=50000 [15:17:01]StoreToDocumentArchive [15:17:01]shift 454 fd 140217 [15:17:01]save to /storage/0454/doc_00140217 [15:17:01]save last doc name /storage/0454/doc_00140217 to /storage/kkm_last_doc_name [15:17:01]save OK [15:17:01]Clear old archive folders... [15:17:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:01]tlvbuf is 01CBEC10 [15:17:01]SAM_PROTO_ClearQueue [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 09 00 00 [15:17:01]Write to MH i2c: E2 08 00 1B 0F 80 09 00 00 00 00 00 00 9C [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_ClearQueue done [15:17:01]KKMCreateOFDPacket [15:17:01]OFDProtocolAddRootSTLVToBuf [15:17:01]FM_MakeSignedData [15:17:01]FM_MakeSignedData [15:17:01]SAM_PROTO_SignData [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 01 02 [15:17:01]Write to MH i2c: E2 08 00 1C 0F 80 0D 01 02 00 00 00 00 A4 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=255 [15:17:01]MH_SAM_APDU [15:17: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 23 02 00 35 04 06 00 8E [15:17:01]Write to MH i2c: E2 02 01 1D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 23 02 00 35 04 06 00 8E 00 00 67 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=10 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 02 02 05 B9 8C B7 BD 4E [15:17:01]Write to MH i2c: E2 0D 00 1E 0F 80 0D 02 02 05 00 B9 8C B7 BD 4E 00 00 B8 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [15:17:01]RAPDU: 90 00 [15:17:01]wFMCommunicate OK [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 0D 03 02 [15:17:01]Write to MH i2c: E2 08 00 1F 0F 80 0D 03 02 00 00 00 00 A9 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0B 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0B 00 1F 0F 00 F5 85 1F 61 2C DF 15 1F 90 00 E3 [15:17:01]RAPDU: F5 85 1F 61 2C DF 15 1F 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_SignData done [15:17:01]FM_MakeSignedData done [15:17:01]CreateOFDProtocolMessage [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 11 00 00 [15:17:01]Write to MH i2c: E2 08 00 20 0F 80 11 00 00 00 00 00 00 A9 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 20 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [15:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:17:01]wFMCommunicate OK [15:17:01]CreateOFDProtocolMessage done [15:17:01]OFDSenderStorePacket 140217 [15:17:01]StoreOFDPacket docnum=140217 [15:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1A B7 07 01 9C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 23 02 00 35 04 06 00 8E B9 8C B7 BD 4E F5 85 1F 61 2C DF 15 1F [15:17:01]CheckFolder [15:17:01]dirname=/storage/ofd_packets [15:17:01]CheckFolder done [15:17:01]ProducePacketName [15:17:01]name=ofd_packets/00140217 [15:17:01]NVStorageSaveData ofd_packets/00140217 [15:17:01]File name is /storage/ofd_packets/00140217 [15:17:01]Write 301 bytes [15:17:01]NVStorageSaveData done [15:17:01]OFDSenderStorePacket done [15:17:01]KKMCreateOFDPacket done [15:17:01]NVStorageSaveData kkm_last_timestamp [15:17:01]File name is /storage/kkm_last_timestamp [15:17:01]Write 4 bytes [15:17:01]NVStorageSaveData done [15:17:01]OFD Sender: Processing packet 140217 [packets to send 137, broken 136] [15:17:01]ProducePacketName [15:17:01]name=ofd_packets/00140217 [15:17:01]OFD Sender: To server: pG, [15:17:01]CommunicateWithHost lk.salyk.kg:30040 [15:17:01]ConnectInit lk.salyk.kg [15:17:01]ExternCall_PrintAddStr [15:17:01]wPrintStart [15:17:01]Write to MH i2c: 01 00 00 21 0F 30 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 FF 0F 45 [15:17:01]RasterBufferAndPrint [15:17:01]line Счет N : (1)594073 [15:17:01]line ИНН: 02508201610067 [15:17:01]line Контрольно-Кассовый Чек [15:17:01]line ПРОДАЖА [15:17:01]line ТРК (МРК, ГНК) : 42 [15:17:01]line Товар: 2710124130 [15:17:01]line Аи-92-К-5 [15:17:01]line 7.380 * 67.80 [15:17:01]line = 500.36 [15:17:01]line НДС 12% НСП 1% [15:17:01]line > о реализуемом товаре [15:17:01]line ОКРУГЛЕНИЕ: -0.36 [15:17:01]line ИТОГО: 500.00 [15:17:01]line Внесено: 500.00 [15:17:01]line СДАЧА: 0.00 [15:17:01]line НСП 1% : 4.43 [15:17:01]line НДС 12% : 53.14 [15:17:01]line Наличными: 500.00 [15:17:01]line Безнал.: 0.00 [15:17:01]line Место: АЗС № 136 "Партнер Нефть" [15:17:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:17:01]line СНО: Общий режим [15:17:01]line Чек 234 21.08.2024 15:17 [15:17:01]line Смена: 454 ФФД: 1.0 [15:17:01]line ЗНМ: 0300000067 [15:17:01]line РНМ: 0000000000092569 [15:17:01]line Версия ККМ: 001 [15:17:01]line ФМ: 0000000000871776 [15:17:01]line ФД: 140217 [15:17:01]line ФПД: 156927580945742 [15:17:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140217&fm=156927580945742&tin=02508201610067®Number=0000000000092569&sum=50000 [15:17:02]Connected sock=11 [15:17: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 37 36 0F 01 00 00 1A B7 07 01 9C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 ED 04 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 B9 23 02 00 35 04 06 00 8E B9 8C B7 BD 4E F5 85 1F 61 2C DF 15 1F [15:17:02]written 0, free lines is 4095 [15:17: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 37 36 4F 00 00 00 83 D4 47 00 B4 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 37 36 10 04 04 00 B9 23 02 00 F4 03 04 00 7D AB C5 66 B6 04 01 00 00 8A 85 9D 50 73 76 89 86 [15:17:02]CommunicateWithHost err = 0 [15:17:02]CheckOFDResponse [15:17:02]1017 (14) - 77093643461234 [15:17:02]1041 (16) - 0000000000871776 [15:17:02]1040 (4) - 140217 [15:17:02]1012 (4) - 21.08.2024 08:55 [15:17:02]1206 (1) - 0 [15:17:02]OFD Sender: Remove packet 140217 [15:17:02]ProducePacketName [15:17:02]name=ofd_packets/00140217 [15:17:02]NVStorageDeleteData [15:17:02]Write to MH i2c: 01 00 00 4C 0F 5B [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 07 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: 01 07 00 4C 0F 00 00 00 00 00 D5 0C 43 [15:17:02]RasterBufferAndPrint [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]line [15:17:02]written 0, free lines is 3293 [15:17:02]MH_Cut [15:17:02]Write to MH i2c: D1 01 00 53 0F 01 34 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 01 00 [15:17:02]MH_I2C_Read... [15:17:02]Read from MH i2c: D1 01 00 53 0F 00 33 [15:17:02]Write to MH i2c: 01 00 00 54 0F 63 [15:17:02]Write i2c OK [15:17:02]MH_I2C_Read... [15:17:02]OFD Sender: No OFD packet to send [15:17:03]*** Cut start [15:17:03]*** Partial cut [15:17:03]*** CUTSNS_PIN = 1 [15:17:03]*** CUTSNS_PIN = 0 [15:17:03]*** Brake cut motor [15:17:03]Read from MH i2c: 01 [15:17:03]MH_I2C_Read... [15:17:03]*** Stop cut motor [15:17:03]*** Cut end [15:17:03]Read from MH i2c: 01 07 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: 01 07 00 54 0F 00 00 00 00 00 FF 0F 78 [15:17:03]process_action close_receipt done [15:17:03]requested_data is exist [15:17:03]produce_requested_data [15:17:03]requested_item fm.sn is exist - process it [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 11 00 00 [15:17:03]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [15:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:17:03]wFMCommunicate OK [15:17:03]requested_item fd.num is exist - process it [15:17:03]SAM_PROTO_GetFieldsCounters [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 13 00 00 [15:17:03]Write to MH i2c: E2 08 00 56 0F 80 13 00 00 00 00 00 00 E1 [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:03]Read from MH i2c: E2 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 62 00 [15:17:03]MH_I2C_Read... [15:17:03]Read from MH i2c: E2 62 00 56 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [15:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 B9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:03]wFMCommunicate OK [15:17:03]SAM_PROTO_GetFieldsCounters done [15:17:03]requested_item shift.num is exist - process it [15:17:03]requested_item shift.opened is exist - process it [15:17:03]req_shift_opened [15:17:03]FM_GetShiftState [15:17:03]SAM_PROTO_GetShiftState [15:17:03]wFMCommunicate request_size=4 [15:17:03]MH_SAM_APDU [15:17:03]CAPDU: 80 13 01 00 [15:17:03]Write to MH i2c: E2 08 00 57 0F 80 13 01 00 00 00 00 00 E3 [15:17:03]Write i2c OK [15:17:03]MH_I2C_Read... [15:17:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:04]Read from MH i2c: E2 [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 0E 00 [15:17:04]MH_I2C_Read... [15:17:04]Read from MH i2c: E2 0E 00 57 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [15:17:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:17:04]wFMCommunicate OK [15:17:04]SAM_PROTO_GetShiftState done [15:17:04]FM_GetShiftState done [15:17:04]req_shift_opened done [15:17:04]requested_item shift.open_date is exist - process it [15:17:04]req_shift_open_date [15:17:04]req_shift_open_date done [15:17:04]produce_requested_data done [15:17:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140217,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:17:04]process_action_free close_receipt [15:17:04]json_value_free [15:17:04]json_value_free done [15:17:04]process_json_proto returns [15:17:04]Send response to host [15:17:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140217,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:17:04]free response buf [15:17:04]execute_script done [15:17:04]execute_script returns [15:17:04]free content buf [15:17:04]Sock 8.Close socket [15:17:04]Sock 8.Thread stoped [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]accept exits with 10 [15:19:22]New connection [15:19:22]New thread 3067592036 created [15:19:22]Thread 3067448676 joined [15:19:22]Waiting for new connection... [15:19:22] Sock 10.Parse request [15:19:22]Sock 10.Check first char [15:19:22]Sock 10.First char is OK [15:19:22]request: POST /json_proto HTTP/1.0 [15:19:22]Method: POST [15:19:22]URL: /json_proto [15:19:22]Method is POST - this is cgi request [15:19:22]url: /json_proto [15:19:22]query_string will be loaded in cgi processing [15:19:22]execute_cgi json_proto POST (null) [15:19:22]execute_cgi path=json_proto method=POST [15:19:22]POST find Content-Length [15:19:22]Host: 172.17.45.67:8080 [15:19:22]Content-Length: 677 [15:19:22]Content-Type: application/json [15:19:22] [15:19:22]POST finish read [15:19:22]Found Content-Length = 677 [15:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:22]execute_script... [15:19: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)594074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:22]POST & json_proto [15:19:22]process_json_proto [15:19:22]json parsed OK: [15:19:22]protocol is kg_v1.0 [15:19:22]action value=close_receipt [15:19:22]process_action close_receipt [15:19:22]cmd_close_receipt [15:19:22]MH_GetDate [15:19:22]Write to MH i2c: F0 00 00 58 0F 56 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 09 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: F0 09 00 58 0F 00 7B 05 C6 66 5F 7F 2B 66 7A [15:19:22]GetLastDocTimeStamp 1724253421 [15:19:22]current date 1724253563 [15:19:22]FM_GetShiftState [15:19:22]SAM_PROTO_GetShiftState [15:19:22]wFMCommunicate request_size=4 [15:19:22]MH_SAM_APDU [15:19:22]CAPDU: 80 13 01 00 [15:19:22]Write to MH i2c: E2 08 00 59 0F 80 13 01 00 00 00 00 00 E5 [15:19:22]Write i2c OK [15:19:22]MH_I2C_Read... [15:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:22]Read from MH i2c: E2 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0E 00 [15:19:22]MH_I2C_Read... [15:19:22]Read from MH i2c: E2 0E 00 59 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 65 [15:19:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:19:22]wFMCommunicate OK [15:19:22]SAM_PROTO_GetShiftState done [15:19:22]FM_GetShiftState done [15:19:22]opened in 1724200467 [15:19:22]opened+sec_in_day 1724286867 [15:19:22]quantity*price = 30035 [15:19:22]sum+1 = 30036 [15:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 235 21.08.2024 15:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140218 ФПД: 25398801769184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140218&fm=25398801769184&tin=02508201610067®Number=0000000000092569&sum=30000 [15:19:23]StoreToDocumentArchive [15:19:23]shift 454 fd 140218 [15:19:23]save to /storage/0454/doc_00140218 [15:19:23]save last doc name /storage/0454/doc_00140218 to /storage/kkm_last_doc_name [15:19:23]save OK [15:19:23]Clear old archive folders... [15:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:23]tlvbuf is 01C5EA20 [15:19:23]SAM_PROTO_ClearQueue [15:19:23]wFMCommunicate request_size=4 [15:19:23]MH_SAM_APDU [15:19:23]CAPDU: 80 09 00 00 [15:19:23]Write to MH i2c: E2 08 00 66 0F 80 09 00 00 00 00 00 00 E7 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [15:19:23]RAPDU: 90 00 [15:19:23]wFMCommunicate OK [15:19:23]SAM_PROTO_ClearQueue done [15:19:23]KKMCreateOFDPacket [15:19:23]OFDProtocolAddRootSTLVToBuf [15:19:23]FM_MakeSignedData [15:19:23]FM_MakeSignedData [15:19:23]SAM_PROTO_SignData [15:19:23]wFMCommunicate request_size=4 [15:19:23]MH_SAM_APDU [15:19:23]CAPDU: 80 0D 01 02 [15:19:23]Write to MH i2c: E2 08 00 67 0F 80 0D 01 02 00 00 00 00 EF [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [15:19:23]RAPDU: 90 00 [15:19:23]wFMCommunicate OK [15:19:23]wFMCommunicate request_size=255 [15:19:23]MH_SAM_APDU [15:19: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7B 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 23 02 00 35 04 06 00 17 [15:19:23]Write to MH i2c: E2 02 01 68 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7B 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 23 02 00 35 04 06 00 17 00 00 EB [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [15:19:23]RAPDU: 90 00 [15:19:23]wFMCommunicate OK [15:19:23]wFMCommunicate request_size=10 [15:19:23]MH_SAM_APDU [15:19:23]CAPDU: 80 0D 02 02 05 19 9E 8E A2 E0 [15:19:23]Write to MH i2c: E2 0D 00 69 0F 80 0D 02 02 05 00 19 9E 8E A2 E0 00 00 C3 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [15:19:23]RAPDU: 90 00 [15:19:23]wFMCommunicate OK [15:19:23]wFMCommunicate request_size=4 [15:19:23]MH_SAM_APDU [15:19:23]CAPDU: 80 0D 03 02 [15:19:23]Write to MH i2c: E2 08 00 6A 0F 80 0D 03 02 00 00 00 00 F4 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 0B 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 0B 00 6A 0F 00 6B 67 FD E9 96 8F 58 E9 90 00 13 [15:19:23]RAPDU: 6B 67 FD E9 96 8F 58 E9 90 00 [15:19:23]wFMCommunicate OK [15:19:23]SAM_PROTO_SignData done [15:19:23]FM_MakeSignedData done [15:19:23]CreateOFDProtocolMessage [15:19:23]wFMCommunicate request_size=4 [15:19:23]MH_SAM_APDU [15:19:23]CAPDU: 80 11 00 00 [15:19:23]Write to MH i2c: E2 08 00 6B 0F 80 11 00 00 00 00 00 00 F4 [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:23]Read from MH i2c: E2 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 17 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: E2 17 00 6B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [15:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:23]wFMCommunicate OK [15:19:23]CreateOFDProtocolMessage done [15:19:23]OFDSenderStorePacket 140218 [15:19:23]StoreOFDPacket docnum=140218 [15:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 31 88 07 01 EC 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7B 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 23 02 00 35 04 06 00 17 19 9E 8E A2 E0 6B 67 FD E9 96 8F 58 E9 [15:19:23]CheckFolder [15:19:23]dirname=/storage/ofd_packets [15:19:23]CheckFolder done [15:19:23]ProducePacketName [15:19:23]name=ofd_packets/00140218 [15:19:23]NVStorageSaveData ofd_packets/00140218 [15:19:23]File name is /storage/ofd_packets/00140218 [15:19:23]Write 301 bytes [15:19:23]NVStorageSaveData done [15:19:23]OFDSenderStorePacket done [15:19:23]KKMCreateOFDPacket done [15:19:23]NVStorageSaveData kkm_last_timestamp [15:19:23]File name is /storage/kkm_last_timestamp [15:19:23]Write 4 bytes [15:19:23]NVStorageSaveData done [15:19:23]ExternCall_PrintAddStr [15:19:23]wPrintStart [15:19:23]Write to MH i2c: 01 00 00 6C 0F 7B [15:19:23]Write i2c OK [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 [15:19:23]MH_I2C_Read... [15:19:23]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [15:19:23]RasterBufferAndPrint [15:19:23]line Счет N : (1)594074 [15:19:23]line ИНН: 02508201610067 [15:19:23]line Контрольно-Кассовый Чек [15:19:23]line ПРОДАЖА [15:19:23]line ТРК (МРК, ГНК) : 62 [15:19:23]line Товар: 2710124130 [15:19:23]line Аи-92-К-5 [15:19:23]line 4.430 * 67.80 [15:19:23]line = 300.35 [15:19:23]line НДС 12% НСП 1% [15:19:23]line > о реализуемом товаре [15:19:23]line ОКРУГЛЕНИЕ: -0.35 [15:19:23]line ИТОГО: 300.00 [15:19:23]line Внесено: 300.00 [15:19:23]line СДАЧА: 0.00 [15:19:23]line НСП 1% : 2.66 [15:19:23]line НДС 12% : 31.90 [15:19:23]line Наличными: 300.00 [15:19:23]line Безнал.: 0.00 [15:19:23]line Место: АЗС № 136 "Партнер Нефть" [15:19:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:19:23]line СНО: Общий режим [15:19:23]line Чек 235 21.08.2024 15:19 [15:19:23]line Смена: 454 ФФД: 1.0 [15:19:23]line ЗНМ: 0300000067 [15:19:23]line РНМ: 0000000000092569 [15:19:23]line Версия ККМ: 001 [15:19:23]line ФМ: 0000000000871776 [15:19:23]line ФД: 140218 [15:19:23]line ФПД: 25398801769184 [15:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151923&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140218&fm=25398801769184&tin=02508201610067®Number=0000000000092569&sum=30000 [15:19:24]written 0, free lines is 4095 [15:19:24]OFD Sender: Processing packet 140218 [packets to send 137, broken 136] [15:19:24]ProducePacketName [15:19:24]name=ofd_packets/00140218 [15:19:24]OFD Sender: To server: pG, [15:19:24]CommunicateWithHost lk.salyk.kg:30040 [15:19:24]ConnectInit lk.salyk.kg [15:19:24]Connected sock=9 [15:19: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 37 36 0F 01 00 00 31 88 07 01 EC 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 7B 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BA 23 02 00 35 04 06 00 17 19 9E 8E A2 E0 6B 67 FD E9 96 8F 58 E9 [15:19: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 37 36 4F 00 00 00 74 B6 47 00 A0 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 37 36 10 04 04 00 BA 23 02 00 F4 03 04 00 0B AC C5 66 B6 04 01 00 00 4B 4E DC 2B C7 81 E8 93 [15:19:24]CommunicateWithHost err = 0 [15:19:24]CheckOFDResponse [15:19:24]1017 (14) - 77093643461234 [15:19:24]1041 (16) - 0000000000871776 [15:19:24]1040 (4) - 140218 [15:19:24]1012 (4) - 21.08.2024 08:57 [15:19:24]1206 (1) - 0 [15:19:24]OFD Sender: Remove packet 140218 [15:19:24]ProducePacketName [15:19:24]name=ofd_packets/00140218 [15:19:24]NVStorageDeleteData [15:19:24]Write to MH i2c: 01 00 00 97 0F A6 [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: 01 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: 01 07 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 D6 0C 8F [15:19:24]RasterBufferAndPrint [15:19:24]line [15:19:24]line [15:19:24]line [15:19:24]line [15:19:24]line [15:19:24]written 0, free lines is 3290 [15:19:24]MH_Cut [15:19:24]Write to MH i2c: D1 01 00 9E 0F 01 7F [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: D1 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: D1 01 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: D1 01 00 9E 0F 00 7E [15:19:24]Write to MH i2c: 01 00 00 9F 0F AE [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:25]OFD Sender: No OFD packet to send [15:19:25]*** Cut start [15:19:25]*** Partial cut [15:19:25]*** CUTSNS_PIN = 1 [15:19:25]*** CUTSNS_PIN = 0 [15:19:25]*** Brake cut motor [15:19:25]Read from MH i2c: 01 [15:19:25]MH_I2C_Read... [15:19:25]*** Stop cut motor [15:19:25]*** Cut end [15:19:25]Read from MH i2c: 01 07 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: 01 07 00 9F 0F 00 00 00 00 00 FF 0F C3 [15:19:25]process_action close_receipt done [15:19:25]requested_data is exist [15:19:25]produce_requested_data [15:19:25]requested_item fm.sn is exist - process it [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 11 00 00 [15:19:25]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 17 00 A0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [15:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:25]wFMCommunicate OK [15:19:25]requested_item fd.num is exist - process it [15:19:25]SAM_PROTO_GetFieldsCounters [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 13 00 00 [15:19:25]Write to MH i2c: E2 08 00 A1 0F 80 13 00 00 00 00 00 00 2C [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 62 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 62 00 A1 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:26]wFMCommunicate OK [15:19:26]SAM_PROTO_GetFieldsCounters done [15:19:26]requested_item shift.num is exist - process it [15:19:26]requested_item shift.opened is exist - process it [15:19:26]req_shift_opened [15:19:26]FM_GetShiftState [15:19:26]SAM_PROTO_GetShiftState [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 13 01 00 [15:19:26]Write to MH i2c: E2 08 00 A2 0F 80 13 01 00 00 00 00 00 2E [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 A2 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AE [15:19:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:19:26]wFMCommunicate OK [15:19:26]SAM_PROTO_GetShiftState done [15:19:26]FM_GetShiftState done [15:19:26]req_shift_opened done [15:19:26]requested_item shift.open_date is exist - process it [15:19:26]req_shift_open_date [15:19:26]req_shift_open_date done [15:19:26]produce_requested_data done [15:19:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140218,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:19:26]process_action_free close_receipt [15:19:26]json_value_free [15:19:26]json_value_free done [15:19:26]process_json_proto returns [15:19:26]Send response to host [15:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140218,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:19:26]free response buf [15:19:26]execute_script done [15:19:26]execute_script returns [15:19:26]free content buf [15:19:26]Sock 10.Close socket [15:19:26]Sock 10.Thread stoped [15:19:26]accept exits with 8 [15:19:26]New connection [15:19:26]New thread 3067448676 created [15:19:26]Thread 3067592036 joined [15:19:26]Waiting for new connection... [15:19:26] Sock 8.Parse request [15:19:26]Sock 8.Check first char [15:19:26]Sock 8.First char is OK [15:19:26]request: POST /json_proto HTTP/1.0 [15:19:26]Method: POST [15:19:26]URL: /json_proto [15:19:26]Method is POST - this is cgi request [15:19:26]url: /json_proto [15:19:26]query_string will be loaded in cgi processing [15:19:26]execute_cgi json_proto POST (null) [15:19:26]execute_cgi path=json_proto method=POST [15:19:26]POST find Content-Length [15:19:26]Host: 172.17.45.67:8080 [15:19:26]Content-Length: 677 [15:19:26]Content-Type: application/json [15:19:26] [15:19:26]POST finish read [15:19:26]Found Content-Length = 677 [15:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [15:19:26]execute_script... [15:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [15:19:26]POST & json_proto [15:19:26]process_json_proto [15:19:26]json parsed OK: [15:19:26]protocol is kg_v1.0 [15:19:26]action value=close_receipt [15:19:26]process_action close_receipt [15:19:26]cmd_close_receipt [15:19:26]MH_GetDate [15:19:26]Write to MH i2c: F0 00 00 A3 0F A1 [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 09 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 09 00 A3 0F 00 7F 05 C6 66 5F 7F 2B 66 C9 [15:19:26]GetLastDocTimeStamp 1724253563 [15:19:26]current date 1724253567 [15:19:26]FM_GetShiftState [15:19:26]SAM_PROTO_GetShiftState [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 13 01 00 [15:19:26]Write to MH i2c: E2 08 00 A4 0F 80 13 01 00 00 00 00 00 30 [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 A4 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B0 [15:19:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:19:26]wFMCommunicate OK [15:19:26]SAM_PROTO_GetShiftState done [15:19:26]FM_GetShiftState done [15:19:26]opened in 1724200467 [15:19:26]opened+sec_in_day 1724286867 [15:19:26]quantity*price = 25018 [15:19:26]sum+1 = 25019 [15:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 236 21.08.2024 15:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140219 ФПД: 217333232930096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140219&fm=217333232930096&tin=02508201610067®Number=0000000000092569&sum=25000 [15:19:28]StoreToDocumentArchive [15:19:28]shift 454 fd 140219 [15:19:28]save to /storage/0454/doc_00140219 [15:19:28]save last doc name /storage/0454/doc_00140219 to /storage/kkm_last_doc_name [15:19:28]save OK [15:19:28]Clear old archive folders... [15:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:28]tlvbuf is 01CD0EF0 [15:19:28]SAM_PROTO_ClearQueue [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 09 00 00 [15:19:28]Write to MH i2c: E2 08 00 B1 0F 80 09 00 00 00 00 00 00 32 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_ClearQueue done [15:19:28]KKMCreateOFDPacket [15:19:28]OFDProtocolAddRootSTLVToBuf [15:19:28]FM_MakeSignedData [15:19:28]FM_MakeSignedData [15:19:28]SAM_PROTO_SignData [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 0D 01 02 [15:19:28]Write to MH i2c: E2 08 00 B2 0F 80 0D 01 02 00 00 00 00 3A [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]wFMCommunicate request_size=255 [15:19:28]MH_SAM_APDU [15:19: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 EC 00 00 00 F4 03 04 00 7F 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 23 02 00 35 04 06 00 C5 [15:19:28]Write to MH i2c: E2 02 01 B3 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 EC 00 00 00 F4 03 04 00 7F 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 23 02 00 35 04 06 00 C5 00 00 D9 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]wFMCommunicate request_size=10 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 0D 02 02 05 A9 D6 25 8D 30 [15:19:28]Write to MH i2c: E2 0D 00 B4 0F 80 0D 02 02 05 00 A9 D6 25 8D 30 00 00 A8 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 0D 03 02 [15:19:28]Write to MH i2c: E2 08 00 B5 0F 80 0D 03 02 00 00 00 00 3F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0B 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0B 00 B5 0F 00 00 D7 A5 66 FB C4 74 13 90 00 68 [15:19:28]RAPDU: 00 D7 A5 66 FB C4 74 13 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_SignData done [15:19:28]FM_MakeSignedData done [15:19:28]CreateOFDProtocolMessage [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 11 00 00 [15:19:28]Write to MH i2c: E2 08 00 B6 0F 80 11 00 00 00 00 00 00 3F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 B6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [15:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:28]wFMCommunicate OK [15:19:28]CreateOFDProtocolMessage done [15:19:28]OFDSenderStorePacket 140219 [15:19:28]StoreOFDPacket docnum=140219 [15:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C 18 07 01 7D 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 EC 00 00 00 F4 03 04 00 7F 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 23 02 00 35 04 06 00 C5 A9 D6 25 8D 30 00 D7 A5 66 FB C4 74 13 [15:19:28]CheckFolder [15:19:28]dirname=/storage/ofd_packets [15:19:28]CheckFolder done [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00140219 [15:19:28]NVStorageSaveData ofd_packets/00140219 [15:19:28]File name is /storage/ofd_packets/00140219 [15:19:28]Write 301 bytes [15:19:28]NVStorageSaveData done [15:19:28]OFDSenderStorePacket done [15:19:28]KKMCreateOFDPacket done [15:19:28]NVStorageSaveData kkm_last_timestamp [15:19:28]File name is /storage/kkm_last_timestamp [15:19:28]Write 4 bytes [15:19:28]NVStorageSaveData done [15:19:28]ExternCall_PrintAddStr [15:19:28]wPrintStart [15:19:28]Write to MH i2c: 01 00 00 B7 0F C6 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 B7 0F 00 00 00 00 00 FF 0F DB [15:19:28]RasterBufferAndPrint [15:19:28]line Счет N : (1)594075 [15:19:28]line ИНН: 02508201610067 [15:19:28]line Контрольно-Кассовый Чек [15:19:28]line ПРОДАЖА [15:19:28]line ТРК (МРК, ГНК) : 32 [15:19:28]line Товар: 2710124130 [15:19:28]line Аи-92-К-5 [15:19:28]line 3.690 * 67.80 [15:19:28]line = 250.18 [15:19:28]line НДС 12% НСП 1% [15:19:28]line > о реализуемом товаре [15:19:28]line ОКРУГЛЕНИЕ: -0.18 [15:19:28]line ИТОГО: 250.00 [15:19:28]line Внесено: 250.00 [15:19:28]line СДАЧА: 0.00 [15:19:28]line НСП 1% : 2.21 [15:19:28]line НДС 12% : 26.57 [15:19:28]line Наличными: 250.00 [15:19:28]line Безнал.: 0.00 [15:19:28]line Место: АЗС № 136 "Партнер Нефть" [15:19:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:19:28]line СНО: Общий режим [15:19:28]line Чек 236 21.08.2024 15:19 [15:19:28]line Смена: 454 ФФД: 1.0 [15:19:28]line ЗНМ: 0300000067 [15:19:28]line РНМ: 0000000000092569 [15:19:28]line Версия ККМ: 001 [15:19:28]line ФМ: 0000000000871776 [15:19:28]line ФД: 140219 [15:19:28]line ФПД: 217333232930096 [15:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T151927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140219&fm=217333232930096&tin=02508201610067®Number=0000000000092569&sum=25000 [15:19:28]OFD Sender: Processing packet 140219 [packets to send 137, broken 136] [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00140219 [15:19:28]OFD Sender: To server: pG, [15:19:28]CommunicateWithHost lk.salyk.kg:30040 [15:19:28]ConnectInit lk.salyk.kg [15:19:28]written 0, free lines is 4095 [15:19:29]Connected sock=10 [15:19:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7C 18 07 01 7D 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 EC 00 00 00 F4 03 04 00 7F 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BB 23 02 00 35 04 06 00 C5 A9 D6 25 8D 30 00 D7 A5 66 FB C4 74 13 [15:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BF C0 47 00 56 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 37 36 10 04 04 00 BB 23 02 00 F4 03 04 00 10 AC C5 66 B6 04 01 00 00 46 9C D9 26 78 CE 93 94 [15:19:29]CommunicateWithHost err = 0 [15:19:29]CheckOFDResponse [15:19:29]1017 (14) - 77093643461234 [15:19:29]1041 (16) - 0000000000871776 [15:19:29]1040 (4) - 140219 [15:19:29]1012 (4) - 21.08.2024 08:57 [15:19:29]1206 (1) - 0 [15:19:29]OFD Sender: Remove packet 140219 [15:19:29]ProducePacketName [15:19:29]name=ofd_packets/00140219 [15:19:29]NVStorageDeleteData [15:19:29]Write to MH i2c: 01 00 00 E2 0F F1 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 DE 0C E2 [15:19:29]RasterBufferAndPrint [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]line [15:19:29]written 0, free lines is 3308 [15:19:29]MH_Cut [15:19:29]Write to MH i2c: D1 01 00 E9 0F 01 CA [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 01 00 [15:19:29]MH_I2C_Read... [15:19:29]Read from MH i2c: D1 01 00 E9 0F 00 C9 [15:19:29]Write to MH i2c: 01 00 00 EA 0F F9 [15:19:29]Write i2c OK [15:19:29]MH_I2C_Read... [15:19:29]OFD Sender: No OFD packet to send [15:19:30]*** Cut start [15:19:30]*** Partial cut [15:19:30]*** CUTSNS_PIN = 1 [15:19:30]*** CUTSNS_PIN = 0 [15:19:30]*** Brake cut motor [15:19:30]Read from MH i2c: 01 [15:19:30]MH_I2C_Read... [15:19:30]*** Stop cut motor [15:19:30]*** Cut end [15:19:30]Read from MH i2c: 01 07 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 FF 0F 0E [15:19:30]process_action close_receipt done [15:19:30]requested_data is exist [15:19:30]produce_requested_data [15:19:30]requested_item fm.sn is exist - process it [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 11 00 00 [15:19:30]Write to MH i2c: E2 08 00 EB 0F 80 11 00 00 00 00 00 00 74 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 EB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [15:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:19:30]wFMCommunicate OK [15:19:30]requested_item fd.num is exist - process it [15:19:30]SAM_PROTO_GetFieldsCounters [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 00 00 [15:19:30]Write to MH i2c: E2 08 00 EC 0F 80 13 00 00 00 00 00 00 77 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:30]Read from MH i2c: E2 62 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 62 00 EC 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:19:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetFieldsCounters done [15:19:30]requested_item shift.num is exist - process it [15:19:30]requested_item shift.opened is exist - process it [15:19:30]req_shift_opened [15:19:30]FM_GetShiftState [15:19:30]SAM_PROTO_GetShiftState [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 01 00 [15:19:30]Write to MH i2c: E2 08 00 ED 0F 80 13 01 00 00 00 00 00 79 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0E 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0E 00 ED 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F9 [15:19:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetShiftState done [15:19:30]FM_GetShiftState done [15:19:30]req_shift_opened done [15:19:30]requested_item shift.open_date is exist - process it [15:19:30]req_shift_open_date [15:19:30]req_shift_open_date done [15:19:31]produce_requested_data done [15:19:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140219,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:19:31]process_action_free close_receipt [15:19:31]json_value_free [15:19:31]json_value_free done [15:19:31]process_json_proto returns [15:19:31]Send response to host [15:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140219,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:19:31]free response buf [15:19:31]execute_script done [15:19:31]execute_script returns [15:19:31]free content buf [15:19:31]Sock 8.Close socket [15:19:31]Sock 8.Thread stoped [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:31]accept exits with 9 [15:20:31]New connection [15:20:31]New thread 3067592036 created [15:20:31]Thread 3067448676 joined [15:20:31]Waiting for new connection... [15:20:31] Sock 9.Parse request [15:20:31]Sock 9.Check first char [15:20:31]Sock 9.First char is OK [15:20:31]request: POST /json_proto HTTP/1.0 [15:20:31]Method: POST [15:20:31]URL: /json_proto [15:20:31]Method is POST - this is cgi request [15:20:31]url: /json_proto [15:20:31]query_string will be loaded in cgi processing [15:20:31]execute_cgi json_proto POST (null) [15:20:31]execute_cgi path=json_proto method=POST [15:20:31]POST find Content-Length [15:20:31]Host: 172.17.45.67:8080 [15:20:31]Content-Length: 677 [15:20:31]Content-Type: application/json [15:20:31] [15:20:31]POST finish read [15:20:31]Found Content-Length = 677 [15:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [15:20:31]execute_script... [15:20: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)594076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [15:20:31]POST & json_proto [15:20:31]process_json_proto [15:20:31]json parsed OK: [15:20:31]protocol is kg_v1.0 [15:20:31]action value=close_receipt [15:20:31]process_action close_receipt [15:20:31]cmd_close_receipt [15:20:31]MH_GetDate [15:20:31]Write to MH i2c: F0 00 00 EE 0F EC [15:20:31]Write i2c OK [15:20:31]MH_I2C_Read... [15:20:31]Read from MH i2c: F0 [15:20:31]MH_I2C_Read... [15:20:31]Read from MH i2c: F0 09 00 [15:20:31]MH_I2C_Read... [15:20:31]Read from MH i2c: F0 09 00 EE 0F 00 C0 05 C6 66 5F 7F 2B 66 55 [15:20:31]GetLastDocTimeStamp 1724253567 [15:20:31]current date 1724253632 [15:20:31]FM_GetShiftState [15:20:31]SAM_PROTO_GetShiftState [15:20:31]wFMCommunicate request_size=4 [15:20:31]MH_SAM_APDU [15:20:31]CAPDU: 80 13 01 00 [15:20:31]Write to MH i2c: E2 08 00 EF 0F 80 13 01 00 00 00 00 00 7B [15:20:31]Write i2c OK [15:20:31]MH_I2C_Read... [15:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:31]Read from MH i2c: E2 [15:20:31]MH_I2C_Read... [15:20:31]Read from MH i2c: E2 0E 00 [15:20:31]MH_I2C_Read... [15:20:31]Read from MH i2c: E2 0E 00 EF 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [15:20:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:20:31]wFMCommunicate OK [15:20:31]SAM_PROTO_GetShiftState done [15:20:31]FM_GetShiftState done [15:20:31]opened in 1724200467 [15:20:31]opened+sec_in_day 1724286867 [15:20:31]quantity*price = 10034 [15:20:31]sum+1 = 10035 [15:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 237 21.08.2024 15:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140220 ФПД: 34946931324622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152032&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140220&fm=34946931324622&tin=02508201610067®Number=0000000000092569&sum=10000 [15:20:33]StoreToDocumentArchive [15:20:33]shift 454 fd 140220 [15:20:33]save to /storage/0454/doc_00140220 [15:20:33]save last doc name /storage/0454/doc_00140220 to /storage/kkm_last_doc_name [15:20:33]save OK [15:20:33]Clear old archive folders... [15:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:33]tlvbuf is 01C5EAB0 [15:20:33]SAM_PROTO_ClearQueue [15:20:33]wFMCommunicate request_size=4 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 09 00 00 [15:20:33]Write to MH i2c: E2 08 00 FC 0F 80 09 00 00 00 00 00 00 7D [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [15:20:33]RAPDU: 90 00 [15:20:33]wFMCommunicate OK [15:20:33]SAM_PROTO_ClearQueue done [15:20:33]KKMCreateOFDPacket [15:20:33]OFDProtocolAddRootSTLVToBuf [15:20:33]FM_MakeSignedData [15:20:33]FM_MakeSignedData [15:20:33]SAM_PROTO_SignData [15:20:33]wFMCommunicate request_size=4 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 0D 01 02 [15:20:33]Write to MH i2c: E2 08 00 FD 0F 80 0D 01 02 00 00 00 00 85 [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [15:20:33]RAPDU: 90 00 [15:20:33]wFMCommunicate OK [15:20:33]wFMCommunicate request_size=255 [15:20:33]MH_SAM_APDU [15:20: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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 ED 00 00 00 F4 03 04 00 C0 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 23 02 00 35 04 06 00 1F [15:20:33]Write to MH i2c: E2 02 01 FE 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 ED 00 00 00 F4 03 04 00 C0 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 23 02 00 35 04 06 00 1F 00 00 EF [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [15:20:33]RAPDU: 90 00 [15:20:33]wFMCommunicate OK [15:20:33]wFMCommunicate request_size=10 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 0D 02 02 05 C8 B7 6D 76 CE [15:20:33]Write to MH i2c: E2 0D 00 FF 0F 80 0D 02 02 05 00 C8 B7 6D 76 CE 00 00 C2 [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [15:20:33]RAPDU: 90 00 [15:20:33]wFMCommunicate OK [15:20:33]wFMCommunicate request_size=4 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 0D 03 02 [15:20:33]Write to MH i2c: E2 08 00 00 10 80 0D 03 02 00 00 00 00 8B [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 0B 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 0B 00 00 10 00 70 05 9A 37 C4 EE CD 7D 90 00 CE [15:20:33]RAPDU: 70 05 9A 37 C4 EE CD 7D 90 00 [15:20:33]wFMCommunicate OK [15:20:33]SAM_PROTO_SignData done [15:20:33]FM_MakeSignedData done [15:20:33]CreateOFDProtocolMessage [15:20:33]wFMCommunicate request_size=4 [15:20:33]MH_SAM_APDU [15:20:33]CAPDU: 80 11 00 00 [15:20:33]Write to MH i2c: E2 08 00 01 10 80 11 00 00 00 00 00 00 8B [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:33]Read from MH i2c: E2 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 17 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: E2 17 00 01 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [15:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:20:33]wFMCommunicate OK [15:20:33]CreateOFDProtocolMessage done [15:20:33]OFDSenderStorePacket 140220 [15:20:33]StoreOFDPacket docnum=140220 [15:20:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 73 69 07 01 E9 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 ED 00 00 00 F4 03 04 00 C0 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 23 02 00 35 04 06 00 1F C8 B7 6D 76 CE 70 05 9A 37 C4 EE CD 7D [15:20:33]CheckFolder [15:20:33]dirname=/storage/ofd_packets [15:20:33]CheckFolder done [15:20:33]ProducePacketName [15:20:33]name=ofd_packets/00140220 [15:20:33]NVStorageSaveData ofd_packets/00140220 [15:20:33]File name is /storage/ofd_packets/00140220 [15:20:33]Write 301 bytes [15:20:33]NVStorageSaveData done [15:20:33]OFDSenderStorePacket done [15:20:33]KKMCreateOFDPacket done [15:20:33]NVStorageSaveData kkm_last_timestamp [15:20:33]File name is /storage/kkm_last_timestamp [15:20:33]Write 4 bytes [15:20:33]NVStorageSaveData done [15:20:33]ExternCall_PrintAddStr [15:20:33]wPrintStart [15:20:33]Write to MH i2c: 01 00 00 02 10 12 [15:20:33]Write i2c OK [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: 01 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: 01 07 00 [15:20:33]MH_I2C_Read... [15:20:33]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [15:20:33]RasterBufferAndPrint [15:20:33]line Счет N : (1)594076 [15:20:33]line ИНН: 02508201610067 [15:20:33]line Контрольно-Кассовый Чек [15:20:33]line ПРОДАЖА [15:20:33]line ТРК (МРК, ГНК) : 62 [15:20:33]line Товар: 2710124130 [15:20:33]line Аи-92-К-5 [15:20:33]line 1.480 * 67.80 [15:20:33]line = 100.34 [15:20:33]line НДС 12% НСП 1% [15:20:33]line > о реализуемом товаре [15:20:33]line ОКРУГЛЕНИЕ: -0.34 [15:20:33]line ИТОГО: 100.00 [15:20:33]line Внесено: 100.00 [15:20:33]line СДАЧА: 0.00 [15:20:33]line НСП 1% : 0.89 [15:20:33]line НДС 12% : 10.66 [15:20:33]line Наличными: 100.00 [15:20:33]line Безнал.: 0.00 [15:20:33]line Место: АЗС № 136 "Партнер Нефть" [15:20:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:20:33]line СНО: Общий режим [15:20:33]line Чек 237 21.08.2024 15:20 [15:20:33]line Смена: 454 ФФД: 1.0 [15:20:33]line ЗНМ: 0300000067 [15:20:33]line РНМ: 0000000000092569 [15:20:33]line Версия ККМ: 001 [15:20:33]line ФМ: 0000000000871776 [15:20:33]line ФД: 140220 [15:20:33]line ФПД: 34946931324622 [15:20:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152032&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140220&fm=34946931324622&tin=02508201610067®Number=0000000000092569&sum=10000 [15:20:33]written 0, free lines is 4095 [15:20:33]OFD Sender: Processing packet 140220 [packets to send 137, broken 136] [15:20:33]ProducePacketName [15:20:33]name=ofd_packets/00140220 [15:20:33]OFD Sender: To server: pG, [15:20:33]CommunicateWithHost lk.salyk.kg:30040 [15:20:33]ConnectInit lk.salyk.kg [15:20:34]Connected sock=10 [15:20: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 37 36 0F 01 00 00 73 69 07 01 E9 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 ED 00 00 00 F4 03 04 00 C0 05 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BC 23 02 00 35 04 06 00 1F C8 B7 6D 76 CE 70 05 9A 37 C4 EE CD 7D [15:20: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 37 36 4F 00 00 00 42 58 47 00 D1 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 37 36 10 04 04 00 BC 23 02 00 F4 03 04 00 51 AC C5 66 B6 04 01 00 00 81 C5 71 3D 27 7B 16 7C [15:20:34]CommunicateWithHost err = 0 [15:20:34]CheckOFDResponse [15:20:34]1017 (14) - 77093643461234 [15:20:34]1041 (16) - 0000000000871776 [15:20:34]1040 (4) - 140220 [15:20:34]1012 (4) - 21.08.2024 08:58 [15:20:34]1206 (1) - 0 [15:20:34]OFD Sender: Remove packet 140220 [15:20:34]ProducePacketName [15:20:34]name=ofd_packets/00140220 [15:20:34]NVStorageDeleteData [15:20:34]Write to MH i2c: 01 00 00 2D 10 3D [15:20:34]Write i2c OK [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: 01 [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: 01 07 00 [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 D5 0C 25 [15:20:34]RasterBufferAndPrint [15:20:34]line [15:20:34]line [15:20:34]line [15:20:34]line [15:20:34]line [15:20:34]written 0, free lines is 3293 [15:20:34]MH_Cut [15:20:34]Write to MH i2c: D1 01 00 34 10 01 16 [15:20:34]Write i2c OK [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: D1 [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: D1 01 00 [15:20:34]MH_I2C_Read... [15:20:34]Read from MH i2c: D1 01 00 34 10 00 15 [15:20:34]Write to MH i2c: 01 00 00 35 10 45 [15:20:34]Write i2c OK [15:20:34]MH_I2C_Read... [15:20:34]OFD Sender: No OFD packet to send [15:20:35]*** Cut start [15:20:35]*** Partial cut [15:20:35]*** CUTSNS_PIN = 1 [15:20:35]*** CUTSNS_PIN = 0 [15:20:35]*** Brake cut motor [15:20:35]Read from MH i2c: 01 [15:20:35]MH_I2C_Read... [15:20:35]*** Stop cut motor [15:20:35]*** Cut end [15:20:35]Read from MH i2c: 01 07 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 FF 0F 5A [15:20:35]process_action close_receipt done [15:20:35]requested_data is exist [15:20:35]produce_requested_data [15:20:35]requested_item fm.sn is exist - process it [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 11 00 00 [15:20:35]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 17 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [15:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:20:35]wFMCommunicate OK [15:20:35]requested_item fd.num is exist - process it [15:20:35]SAM_PROTO_GetFieldsCounters [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 13 00 00 [15:20:35]Write to MH i2c: E2 08 00 37 10 80 13 00 00 00 00 00 00 C3 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 62 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 62 00 37 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:35]wFMCommunicate OK [15:20:35]SAM_PROTO_GetFieldsCounters done [15:20:35]requested_item shift.num is exist - process it [15:20:35]requested_item shift.opened is exist - process it [15:20:35]req_shift_opened [15:20:35]FM_GetShiftState [15:20:35]SAM_PROTO_GetShiftState [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 13 01 00 [15:20:35]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0E 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 45 [15:20:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:20:35]wFMCommunicate OK [15:20:35]SAM_PROTO_GetShiftState done [15:20:35]FM_GetShiftState done [15:20:35]req_shift_opened done [15:20:35]requested_item shift.open_date is exist - process it [15:20:35]req_shift_open_date [15:20:35]req_shift_open_date done [15:20:35]produce_requested_data done [15:20:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140220,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:20:35]process_action_free close_receipt [15:20:35]json_value_free [15:20:35]json_value_free done [15:20:35]process_json_proto returns [15:20:35]Send response to host [15:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140220,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:20:35]free response buf [15:20:35]execute_script done [15:20:35]execute_script returns [15:20:35]free content buf [15:20:35]Sock 9.Close socket [15:20:35]Sock 9.Thread stoped [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:54]accept exits with 8 [15:25:54]New connection [15:25:54]New thread 3067448676 created [15:25:54]Thread 3067592036 joined [15:25:54]Waiting for new connection... [15:25:54] Sock 8.Parse request [15:25:54]Sock 8.Check first char [15:25:54]Sock 8.First char is OK [15:25:54]request: POST /json_proto HTTP/1.0 [15:25:54]Method: POST [15:25:54]URL: /json_proto [15:25:54]Method is POST - this is cgi request [15:25:54]url: /json_proto [15:25:54]query_string will be loaded in cgi processing [15:25:54]execute_cgi json_proto POST (null) [15:25:54]execute_cgi path=json_proto method=POST [15:25:54]POST find Content-Length [15:25:54]Host: 172.17.45.67:8080 [15:25:54]Content-Length: 677 [15:25:54]Content-Type: application/json [15:25:54] [15:25:54]POST finish read [15:25:54]Found Content-Length = 677 [15:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:25:54]execute_script... [15:25: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)594077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:25:54]POST & json_proto [15:25:54]process_json_proto [15:25:54]json parsed OK: [15:25:54]protocol is kg_v1.0 [15:25:54]action value=close_receipt [15:25:54]process_action close_receipt [15:25:54]cmd_close_receipt [15:25:54]MH_GetDate [15:25:54]Write to MH i2c: F0 00 00 39 10 38 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: F0 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: F0 09 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: F0 09 00 39 10 00 03 07 C6 66 5F 7F 2B 66 E6 [15:25:54]GetLastDocTimeStamp 1724253632 [15:25:54]current date 1724253955 [15:25:54]FM_GetShiftState [15:25:54]SAM_PROTO_GetShiftState [15:25:54]wFMCommunicate request_size=4 [15:25:54]MH_SAM_APDU [15:25:54]CAPDU: 80 13 01 00 [15:25:54]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:54]Read from MH i2c: E2 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 0E 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 47 [15:25:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:25:54]wFMCommunicate OK [15:25:54]SAM_PROTO_GetShiftState done [15:25:54]FM_GetShiftState done [15:25:54]opened in 1724200467 [15:25:54]opened+sec_in_day 1724286867 [15:25:54]quantity*price = 20001 [15:25:54]sum+1 = 20002 [15:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 238 21.08.2024 15:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140221 ФПД: 99144323064148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140221&fm=99144323064148&tin=02508201610067®Number=0000000000092569&sum=20000 [15:25:55]StoreToDocumentArchive [15:25:55]shift 454 fd 140221 [15:25:55]save to /storage/0454/doc_00140221 [15:25:55]save last doc name /storage/0454/doc_00140221 to /storage/kkm_last_doc_name [15:25:55]save OK [15:25:55]Clear old archive folders... [15:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:55]tlvbuf is 01C77750 [15:25:55]SAM_PROTO_ClearQueue [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 09 00 00 [15:25:55]Write to MH i2c: E2 08 00 47 10 80 09 00 00 00 00 00 00 C9 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [15:25:55]RAPDU: 90 00 [15:25:55]wFMCommunicate OK [15:25:55]SAM_PROTO_ClearQueue done [15:25:55]KKMCreateOFDPacket [15:25:55]OFDProtocolAddRootSTLVToBuf [15:25:55]FM_MakeSignedData [15:25:55]FM_MakeSignedData [15:25:55]SAM_PROTO_SignData [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 0D 01 02 [15:25:55]Write to MH i2c: E2 08 00 48 10 80 0D 01 02 00 00 00 00 D1 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [15:25:55]RAPDU: 90 00 [15:25:55]wFMCommunicate OK [15:25:55]wFMCommunicate request_size=255 [15:25:55]MH_SAM_APDU [15:25: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 00 00 00 F4 03 04 00 03 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 23 02 00 35 04 06 00 5A [15:25:55]Write to MH i2c: E2 02 01 49 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 00 00 00 F4 03 04 00 03 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 23 02 00 35 04 06 00 5A 00 00 83 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [15:25:55]RAPDU: 90 00 [15:25:55]wFMCommunicate OK [15:25:55]wFMCommunicate request_size=10 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 0D 02 02 05 2B D6 28 61 54 [15:25:55]Write to MH i2c: E2 0D 00 4A 10 80 0D 02 02 05 00 2B D6 28 61 54 00 00 BC [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [15:25:55]RAPDU: 90 00 [15:25:55]wFMCommunicate OK [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 0D 03 02 [15:25:55]Write to MH i2c: E2 08 00 4B 10 80 0D 03 02 00 00 00 00 D6 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0B 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0B 00 4B 10 00 93 AD BB F6 0E 44 4B E0 90 00 45 [15:25:55]RAPDU: 93 AD BB F6 0E 44 4B E0 90 00 [15:25:55]wFMCommunicate OK [15:25:55]SAM_PROTO_SignData done [15:25:55]FM_MakeSignedData done [15:25:55]CreateOFDProtocolMessage [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 11 00 00 [15:25:55]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 17 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [15:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:25:55]wFMCommunicate OK [15:25:55]CreateOFDProtocolMessage done [15:25:55]OFDSenderStorePacket 140221 [15:25:55]StoreOFDPacket docnum=140221 [15:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AE 2E 07 01 12 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 00 00 00 F4 03 04 00 03 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 23 02 00 35 04 06 00 5A 2B D6 28 61 54 93 AD BB F6 0E 44 4B E0 [15:25:55]CheckFolder [15:25:55]dirname=/storage/ofd_packets [15:25:55]CheckFolder done [15:25:55]ProducePacketName [15:25:55]name=ofd_packets/00140221 [15:25:55]NVStorageSaveData ofd_packets/00140221 [15:25:55]File name is /storage/ofd_packets/00140221 [15:25:55]Write 301 bytes [15:25:55]NVStorageSaveData done [15:25:55]OFDSenderStorePacket done [15:25:55]KKMCreateOFDPacket done [15:25:55]NVStorageSaveData kkm_last_timestamp [15:25:55]File name is /storage/kkm_last_timestamp [15:25:55]Write 4 bytes [15:25:55]NVStorageSaveData done [15:25:55]OFD Sender: Processing packet 140221 [packets to send 137, broken 136] [15:25:55]ProducePacketName [15:25:55]name=ofd_packets/00140221 [15:25:55]OFD Sender: To server: pG, [15:25:55]CommunicateWithHost lk.salyk.kg:30040 [15:25:55]ConnectInit lk.salyk.kg [15:25:55]ExternCall_PrintAddStr [15:25:55]wPrintStart [15:25:55]Write to MH i2c: 01 00 00 4D 10 5D [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: 01 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: 01 07 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [15:25:55]RasterBufferAndPrint [15:25:55]line Счет N : (1)594077 [15:25:55]line ИНН: 02508201610067 [15:25:55]line Контрольно-Кассовый Чек [15:25:55]line ПРОДАЖА [15:25:55]line ТРК (МРК, ГНК) : 42 [15:25:55]line Товар: 2710124130 [15:25:55]line Аи-92-К-5 [15:25:55]line 2.950 * 67.80 [15:25:55]line = 200.01 [15:25:55]line НДС 12% НСП 1% [15:25:55]line > о реализуемом товаре [15:25:55]line ОКРУГЛЕНИЕ: -0.01 [15:25:55]line ИТОГО: 200.00 [15:25:55]line Внесено: 200.00 [15:25:55]line СДАЧА: 0.00 [15:25:55]line НСП 1% : 1.77 [15:25:55]line НДС 12% : 21.24 [15:25:55]line Наличными: 200.00 [15:25:55]line Безнал.: 0.00 [15:25:55]line Место: АЗС № 136 "Партнер Нефть" [15:25:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:25:55]line СНО: Общий режим [15:25:55]line Чек 238 21.08.2024 15:25 [15:25:55]line Смена: 454 ФФД: 1.0 [15:25:55]line ЗНМ: 0300000067 [15:25:55]line РНМ: 0000000000092569 [15:25:55]line Версия ККМ: 001 [15:25:55]line ФМ: 0000000000871776 [15:25:55]line ФД: 140221 [15:25:55]line ФПД: 99144323064148 [15:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152555&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140221&fm=99144323064148&tin=02508201610067®Number=0000000000092569&sum=20000 [15:25:56]Connected sock=11 [15:25: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 37 36 0F 01 00 00 AE 2E 07 01 12 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 00 00 00 F4 03 04 00 03 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BD 23 02 00 35 04 06 00 5A 2B D6 28 61 54 93 AD BB F6 0E 44 4B E0 [15:25:56]written 0, free lines is 4095 [15:25: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 37 36 4F 00 00 00 8A A3 47 00 EB 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 37 36 10 04 04 00 BD 23 02 00 F4 03 04 00 93 AD C5 66 B6 04 01 00 00 EC 6A B7 30 86 5A C9 63 [15:25:56]CommunicateWithHost err = 0 [15:25:56]CheckOFDResponse [15:25:56]1017 (14) - 77093643461234 [15:25:56]1041 (16) - 0000000000871776 [15:25:56]1040 (4) - 140221 [15:25:56]1012 (4) - 21.08.2024 09:04 [15:25:56]1206 (1) - 0 [15:25:56]OFD Sender: Remove packet 140221 [15:25:56]ProducePacketName [15:25:56]name=ofd_packets/00140221 [15:25:56]NVStorageDeleteData [15:25:56]Write to MH i2c: 01 00 00 78 10 88 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 07 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 D1 0C 6C [15:25:56]RasterBufferAndPrint [15:25:56]line [15:25:56]line [15:25:56]line [15:25:56]line [15:25:56]line [15:25:56]written 0, free lines is 3285 [15:25:56]MH_Cut [15:25:56]Write to MH i2c: D1 01 00 7F 10 01 61 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: D1 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: D1 01 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: D1 01 00 7F 10 00 60 [15:25:56]Write to MH i2c: 01 00 00 80 10 90 [15:25:56]Write i2c OK [15:25:56]MH_I2C_Read... [15:25:56]OFD Sender: No OFD packet to send [15:25:57]*** Cut start [15:25:57]*** Partial cut [15:25:57]*** CUTSNS_PIN = 1 [15:25:57]*** CUTSNS_PIN = 0 [15:25:57]*** Brake cut motor [15:25:57]Read from MH i2c: 01 [15:25:57]MH_I2C_Read... [15:25:57]*** Stop cut motor [15:25:57]*** Cut end [15:25:57]Read from MH i2c: 01 07 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [15:25:57]process_action close_receipt done [15:25:57]requested_data is exist [15:25:57]produce_requested_data [15:25:57]requested_item fm.sn is exist - process it [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 11 00 00 [15:25:57]Write to MH i2c: E2 08 00 81 10 80 11 00 00 00 00 00 00 0B [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 81 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [15:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:25:58]wFMCommunicate OK [15:25:58]requested_item fd.num is exist - process it [15:25:58]SAM_PROTO_GetFieldsCounters [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 13 00 00 [15:25:58]Write to MH i2c: E2 08 00 82 10 80 13 00 00 00 00 00 00 0E [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 62 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 62 00 82 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_GetFieldsCounters done [15:25:58]requested_item shift.num is exist - process it [15:25:58]requested_item shift.opened is exist - process it [15:25:58]req_shift_opened [15:25:58]FM_GetShiftState [15:25:58]SAM_PROTO_GetShiftState [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 13 01 00 [15:25:58]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0E 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 90 [15:25:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_GetShiftState done [15:25:58]FM_GetShiftState done [15:25:58]req_shift_opened done [15:25:58]requested_item shift.open_date is exist - process it [15:25:58]req_shift_open_date [15:25:58]req_shift_open_date done [15:25:58]produce_requested_data done [15:25:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140221,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:25:58]process_action_free close_receipt [15:25:58]json_value_free [15:25:58]json_value_free done [15:25:58]process_json_proto returns [15:25:58]Send response to host [15:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140221,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:25:58]free response buf [15:25:58]execute_script done [15:25:58]execute_script returns [15:25:58]free content buf [15:25:58]Sock 8.Close socket [15:25:58]Sock 8.Thread stoped [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:26]accept exits with 9 [15:26:26]New connection [15:26:26]New thread 3067592036 created [15:26:26]Thread 3067448676 joined [15:26:26]Waiting for new connection... [15:26:26] Sock 9.Parse request [15:26:26]Sock 9.Check first char [15:26:26]Sock 9.First char is OK [15:26:26]request: POST /json_proto HTTP/1.0 [15:26:26]Method: POST [15:26:26]URL: /json_proto [15:26:26]Method is POST - this is cgi request [15:26:26]url: /json_proto [15:26:26]query_string will be loaded in cgi processing [15:26:26]execute_cgi json_proto POST (null) [15:26:26]execute_cgi path=json_proto method=POST [15:26:26]POST find Content-Length [15:26:26]Host: 172.17.45.67:8080 [15:26:26]Content-Length: 682 [15:26:26]Content-Type: application/json [15:26:26] [15:26:26]POST finish read [15:26:26]Found Content-Length = 682 [15:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:26]execute_script... [15:26: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)594078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:26]POST & json_proto [15:26:26]process_json_proto [15:26:26]json parsed OK: [15:26:26]protocol is kg_v1.0 [15:26:26]action value=close_receipt [15:26:26]process_action close_receipt [15:26:26]cmd_close_receipt [15:26:26]MH_GetDate [15:26:26]Write to MH i2c: F0 00 00 84 10 83 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: F0 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: F0 09 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: F0 09 00 84 10 00 23 07 C6 66 5F 7F 2B 66 51 [15:26:26]GetLastDocTimeStamp 1724253955 [15:26:26]current date 1724253987 [15:26:26]FM_GetShiftState [15:26:26]SAM_PROTO_GetShiftState [15:26:26]wFMCommunicate request_size=4 [15:26:26]MH_SAM_APDU [15:26:26]CAPDU: 80 13 01 00 [15:26:26]Write to MH i2c: E2 08 00 85 10 80 13 01 00 00 00 00 00 12 [15:26:26]Write i2c OK [15:26:26]MH_I2C_Read... [15:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:26]Read from MH i2c: E2 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 0E 00 [15:26:26]MH_I2C_Read... [15:26:26]Read from MH i2c: E2 0E 00 85 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 92 [15:26:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:26:26]wFMCommunicate OK [15:26:26]SAM_PROTO_GetShiftState done [15:26:26]FM_GetShiftState done [15:26:26]opened in 1724200467 [15:26:26]opened+sec_in_day 1724286867 [15:26:26]quantity*price = 100021 [15:26:26]sum+1 = 100023 [15:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 239 21.08.2024 15:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140222 ФПД: 267986604644953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152627&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140222&fm=267986604644953&tin=02508201610067®Number=0000000000092569&sum=100000 [15:26:27]StoreToDocumentArchive [15:26:27]shift 454 fd 140222 [15:26:27]save to /storage/0454/doc_00140222 [15:26:27]save last doc name /storage/0454/doc_00140222 to /storage/kkm_last_doc_name [15:26:27]save OK [15:26:27]Clear old archive folders... [15:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:27]tlvbuf is 01CBF4E0 [15:26:27]SAM_PROTO_ClearQueue [15:26:27]wFMCommunicate request_size=4 [15:26:27]MH_SAM_APDU [15:26:27]CAPDU: 80 09 00 00 [15:26:27]Write to MH i2c: E2 08 00 92 10 80 09 00 00 00 00 00 00 14 [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:27]Read from MH i2c: E2 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 03 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [15:26:27]RAPDU: 90 00 [15:26:27]wFMCommunicate OK [15:26:27]SAM_PROTO_ClearQueue done [15:26:27]KKMCreateOFDPacket [15:26:27]OFDProtocolAddRootSTLVToBuf [15:26:27]FM_MakeSignedData [15:26:27]FM_MakeSignedData [15:26:27]SAM_PROTO_SignData [15:26:27]wFMCommunicate request_size=4 [15:26:27]MH_SAM_APDU [15:26:27]CAPDU: 80 0D 01 02 [15:26:27]Write to MH i2c: E2 08 00 93 10 80 0D 01 02 00 00 00 00 1C [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:27]Read from MH i2c: E2 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 03 00 [15:26:27]MH_I2C_Read... [15:26:27]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [15:26:27]RAPDU: 90 00 [15:26:27]wFMCommunicate OK [15:26:27]wFMCommunicate request_size=255 [15:26:27]MH_SAM_APDU [15:26:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 23 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 23 02 00 35 04 06 00 F3 [15:26:27]Write to MH i2c: E2 02 01 94 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 23 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 23 02 00 35 04 06 00 F3 00 00 B4 [15:26:27]Write i2c OK [15:26:27]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 94 10 00 90 00 18 [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]wFMCommunicate request_size=10 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 0D 02 02 05 BB 7E 5F DA 59 [15:26:28]Write to MH i2c: E2 0D 00 95 10 80 0D 02 02 05 00 BB 7E 5F DA 59 00 00 F4 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [15:26:28]RAPDU: 90 00 [15:26:28]wFMCommunicate OK [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 0D 03 02 [15:26:28]Write to MH i2c: E2 08 00 96 10 80 0D 03 02 00 00 00 00 21 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0B 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 0B 00 96 10 00 97 40 8C B4 53 A9 18 A8 90 00 F5 [15:26:28]RAPDU: 97 40 8C B4 53 A9 18 A8 90 00 [15:26:28]wFMCommunicate OK [15:26:28]SAM_PROTO_SignData done [15:26:28]FM_MakeSignedData done [15:26:28]CreateOFDProtocolMessage [15:26:28]wFMCommunicate request_size=4 [15:26:28]MH_SAM_APDU [15:26:28]CAPDU: 80 11 00 00 [15:26:28]Write to MH i2c: E2 08 00 97 10 80 11 00 00 00 00 00 00 21 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:28]Read from MH i2c: E2 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: E2 17 00 97 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [15:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:26:28]wFMCommunicate OK [15:26:28]CreateOFDProtocolMessage done [15:26:28]OFDSenderStorePacket 140222 [15:26:28]StoreOFDPacket docnum=140222 [15:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 20 07 01 01 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 23 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 23 02 00 35 04 06 00 F3 BB 7E 5F DA 59 97 40 8C B4 53 A9 18 A8 [15:26:28]CheckFolder [15:26:28]dirname=/storage/ofd_packets [15:26:28]CheckFolder done [15:26:28]ProducePacketName [15:26:28]name=ofd_packets/00140222 [15:26:28]NVStorageSaveData ofd_packets/00140222 [15:26:28]File name is /storage/ofd_packets/00140222 [15:26:28]Write 301 bytes [15:26:28]NVStorageSaveData done [15:26:28]OFDSenderStorePacket done [15:26:28]KKMCreateOFDPacket done [15:26:28]NVStorageSaveData kkm_last_timestamp [15:26:28]File name is /storage/kkm_last_timestamp [15:26:28]Write 4 bytes [15:26:28]NVStorageSaveData done [15:26:28]ExternCall_PrintAddStr [15:26:28]wPrintStart [15:26:28]Write to MH i2c: 01 00 00 98 10 A8 [15:26:28]Write i2c OK [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 [15:26:28]MH_I2C_Read... [15:26:28]Read from MH i2c: 01 07 00 98 10 00 00 00 00 00 FF 0F BD [15:26:28]RasterBufferAndPrint [15:26:28]line Счет N : (1)594078 [15:26:28]line ИНН: 02508201610067 [15:26:28]line Контрольно-Кассовый Чек [15:26:28]line ПРОДАЖА [15:26:28]line ТРК (МРК, ГНК) : 31 [15:26:28]line Товар: 2710124500 [15:26:28]line Аи-95-К-5 [15:26:28]line 13.480 * 74.20 [15:26:28]line = 1000.22 [15:26:28]line НДС 12% НСП 1% [15:26:28]line > о реализуемом товаре [15:26:28]line ОКРУГЛЕНИЕ: -0.22 [15:26:28]line ИТОГО: 1000.00 [15:26:28]line Внесено: 1000.00 [15:26:28]line СДАЧА: 0.00 [15:26:28]line НСП 1% : 8.85 [15:26:28]line НДС 12% : 106.22 [15:26:28]line Наличными: 1000.00 [15:26:28]line Безнал.: 0.00 [15:26:28]line Место: АЗС № 136 "Партнер Нефть" [15:26:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:26:28]line СНО: Общий режим [15:26:28]line Чек 239 21.08.2024 15:26 [15:26:28]line Смена: 454 ФФД: 1.0 [15:26:28]line ЗНМ: 0300000067 [15:26:28]line РНМ: 0000000000092569 [15:26:28]line Версия ККМ: 001 [15:26:28]line ФМ: 0000000000871776 [15:26:28]line ФД: 140222 [15:26:28]line ФПД: 267986604644953 [15:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152627&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140222&fm=267986604644953&tin=02508201610067®Number=0000000000092569&sum=100000 [15:26:28]OFD Sender: Processing packet 140222 [packets to send 137, broken 136] [15:26:28]ProducePacketName [15:26:28]name=ofd_packets/00140222 [15:26:28]OFD Sender: To server: pG, [15:26:28]CommunicateWithHost lk.salyk.kg:30040 [15:26:28]ConnectInit lk.salyk.kg [15:26:28]written 0, free lines is 4095 [15:26:28]Connected sock=11 [15:26: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 37 36 0F 01 00 00 48 20 07 01 01 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 23 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BE 23 02 00 35 04 06 00 F3 BB 7E 5F DA 59 97 40 8C B4 53 A9 18 A8 [15:26: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 37 36 4F 00 00 00 54 D1 47 00 0F 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 37 36 10 04 04 00 BE 23 02 00 F4 03 04 00 B4 AD C5 66 B6 04 01 00 00 C9 3A E3 59 B8 76 AB F6 [15:26:29]CommunicateWithHost err = 0 [15:26:29]CheckOFDResponse [15:26:29]1017 (14) - 77093643461234 [15:26:29]1041 (16) - 0000000000871776 [15:26:29]1040 (4) - 140222 [15:26:29]1012 (4) - 21.08.2024 09:04 [15:26:29]1206 (1) - 0 [15:26:29]OFD Sender: Remove packet 140222 [15:26:29]ProducePacketName [15:26:29]name=ofd_packets/00140222 [15:26:29]NVStorageDeleteData [15:26:29]Write to MH i2c: 01 00 00 C3 10 D3 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 07 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 DD 0C C3 [15:26:29]RasterBufferAndPrint [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]line [15:26:29]written 0, free lines is 3299 [15:26:29]MH_Cut [15:26:29]Write to MH i2c: D1 01 00 CA 10 01 AC [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 01 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: D1 01 00 CA 10 00 AB [15:26:29]Write to MH i2c: 01 00 00 CB 10 DB [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]OFD Sender: No OFD packet to send [15:26:29]*** Cut start [15:26:29]*** Partial cut [15:26:29]*** CUTSNS_PIN = 1 [15:26:29]*** CUTSNS_PIN = 0 [15:26:30]*** Brake cut motor [15:26:30]Read from MH i2c: 01 [15:26:30]MH_I2C_Read... [15:26:30]*** Stop cut motor [15:26:30]*** Cut end [15:26:30]Read from MH i2c: 01 07 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [15:26:30]process_action close_receipt done [15:26:30]requested_data is exist [15:26:30]produce_requested_data [15:26:30]requested_item fm.sn is exist - process it [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 11 00 00 [15:26:30]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 17 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [15:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:26:30]wFMCommunicate OK [15:26:30]requested_item fd.num is exist - process it [15:26:30]SAM_PROTO_GetFieldsCounters [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 13 00 00 [15:26:30]Write to MH i2c: E2 08 00 CD 10 80 13 00 00 00 00 00 00 59 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 62 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 62 00 CD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_GetFieldsCounters done [15:26:30]requested_item shift.num is exist - process it [15:26:30]requested_item shift.opened is exist - process it [15:26:30]req_shift_opened [15:26:30]FM_GetShiftState [15:26:30]SAM_PROTO_GetShiftState [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 13 01 00 [15:26:30]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DB [15:26:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_GetShiftState done [15:26:30]FM_GetShiftState done [15:26:30]req_shift_opened done [15:26:30]requested_item shift.open_date is exist - process it [15:26:30]req_shift_open_date [15:26:30]req_shift_open_date done [15:26:30]produce_requested_data done [15:26:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140222,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:26:30]process_action_free close_receipt [15:26:30]json_value_free [15:26:30]json_value_free done [15:26:30]process_json_proto returns [15:26:30]Send response to host [15:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140222,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:26:30]free response buf [15:26:30]execute_script done [15:26:30]execute_script returns [15:26:30]free content buf [15:26:30]Sock 9.Close socket [15:26:30]Sock 9.Thread stoped [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:03]accept exits with 8 [15:27:03]New connection [15:27:03]New thread 3067448676 created [15:27:03]Thread 3067592036 joined [15:27:03]Waiting for new connection... [15:27:03] Sock 8.Parse request [15:27:03]Sock 8.Check first char [15:27:03]Sock 8.First char is OK [15:27:03]request: POST /json_proto HTTP/1.0 [15:27:03]Method: POST [15:27:03]URL: /json_proto [15:27:03]Method is POST - this is cgi request [15:27:03]url: /json_proto [15:27:03]query_string will be loaded in cgi processing [15:27:03]execute_cgi json_proto POST (null) [15:27:03]execute_cgi path=json_proto method=POST [15:27:03]POST find Content-Length [15:27:03]Host: 172.17.45.67:8080 [15:27:03]Content-Length: 682 [15:27:03]Content-Type: application/json [15:27:03] [15:27:03]POST finish read [15:27:03]Found Content-Length = 682 [15:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:03]execute_script... [15:27: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)594079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:03]POST & json_proto [15:27:03]process_json_proto [15:27:03]json parsed OK: [15:27:03]protocol is kg_v1.0 [15:27:03]action value=close_receipt [15:27:03]process_action close_receipt [15:27:03]cmd_close_receipt [15:27:03]MH_GetDate [15:27:03]Write to MH i2c: F0 00 00 CF 10 CE [15:27:03]Write i2c OK [15:27:03]MH_I2C_Read... [15:27:03]Read from MH i2c: F0 [15:27:03]MH_I2C_Read... [15:27:03]Read from MH i2c: F0 09 00 [15:27:03]MH_I2C_Read... [15:27:03]Read from MH i2c: F0 09 00 CF 10 00 48 07 C6 66 5F 7F 2B 66 C1 [15:27:03]GetLastDocTimeStamp 1724253987 [15:27:03]current date 1724254024 [15:27:03]FM_GetShiftState [15:27:03]SAM_PROTO_GetShiftState [15:27:03]wFMCommunicate request_size=4 [15:27:03]MH_SAM_APDU [15:27:03]CAPDU: 80 13 01 00 [15:27:03]Write to MH i2c: E2 08 00 D0 10 80 13 01 00 00 00 00 00 5D [15:27:03]Write i2c OK [15:27:03]MH_I2C_Read... [15:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:03]Read from MH i2c: E2 [15:27:03]MH_I2C_Read... [15:27:03]Read from MH i2c: E2 0E 00 [15:27:03]MH_I2C_Read... [15:27:03]Read from MH i2c: E2 0E 00 D0 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DD [15:27:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:27:03]wFMCommunicate OK [15:27:03]SAM_PROTO_GetShiftState done [15:27:03]FM_GetShiftState done [15:27:03]opened in 1724200467 [15:27:03]opened+sec_in_day 1724286867 [15:27:03]quantity*price = 100021 [15:27:03]sum+1 = 100023 [15:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 240 21.08.2024 15:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140223 ФПД: 92366403254913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140223&fm=92366403254913&tin=02508201610067®Number=0000000000092569&sum=100000 [15:27:04]StoreToDocumentArchive [15:27:04]shift 454 fd 140223 [15:27:04]save to /storage/0454/doc_00140223 [15:27:04]save last doc name /storage/0454/doc_00140223 to /storage/kkm_last_doc_name [15:27:04]save OK [15:27:04]Clear old archive folders... [15:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:04]tlvbuf is 01CBECF0 [15:27:04]SAM_PROTO_ClearQueue [15:27:04]wFMCommunicate request_size=4 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 09 00 00 [15:27:04]Write to MH i2c: E2 08 00 DD 10 80 09 00 00 00 00 00 00 5F [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [15:27:04]RAPDU: 90 00 [15:27:04]wFMCommunicate OK [15:27:04]SAM_PROTO_ClearQueue done [15:27:04]KKMCreateOFDPacket [15:27:04]OFDProtocolAddRootSTLVToBuf [15:27:04]FM_MakeSignedData [15:27:04]FM_MakeSignedData [15:27:04]SAM_PROTO_SignData [15:27:04]wFMCommunicate request_size=4 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 0D 01 02 [15:27:04]Write to MH i2c: E2 08 00 DE 10 80 0D 01 02 00 00 00 00 67 [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [15:27:04]RAPDU: 90 00 [15:27:04]wFMCommunicate OK [15:27:04]wFMCommunicate request_size=255 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 48 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 23 02 00 35 04 06 00 54 [15:27:04]Write to MH i2c: E2 02 01 DF 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 48 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 23 02 00 35 04 06 00 54 00 00 87 [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:04]OFD Sender: No OFD packet to send [15:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:04]Read from MH i2c: E2 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 [15:27:04]MH_I2C_Read... [15:27:04]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [15:27:04]RAPDU: 90 00 [15:27:04]wFMCommunicate OK [15:27:04]wFMCommunicate request_size=10 [15:27:04]MH_SAM_APDU [15:27:04]CAPDU: 80 0D 02 02 05 01 BA A7 BA 81 [15:27:04]Write to MH i2c: E2 0D 00 E0 10 80 0D 02 02 05 00 01 BA A7 BA 81 00 00 11 [15:27:04]Write i2c OK [15:27:04]MH_I2C_Read... [15:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:05]Read from MH i2c: E2 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 03 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [15:27:05]RAPDU: 90 00 [15:27:05]wFMCommunicate OK [15:27:05]wFMCommunicate request_size=4 [15:27:05]MH_SAM_APDU [15:27:05]CAPDU: 80 0D 03 02 [15:27:05]Write to MH i2c: E2 08 00 E1 10 80 0D 03 02 00 00 00 00 6C [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:05]Read from MH i2c: E2 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 0B 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 0B 00 E1 10 00 79 DF 8B 8A 4F 17 FF 02 90 00 41 [15:27:05]RAPDU: 79 DF 8B 8A 4F 17 FF 02 90 00 [15:27:05]wFMCommunicate OK [15:27:05]SAM_PROTO_SignData done [15:27:05]FM_MakeSignedData done [15:27:05]CreateOFDProtocolMessage [15:27:05]wFMCommunicate request_size=4 [15:27:05]MH_SAM_APDU [15:27:05]CAPDU: 80 11 00 00 [15:27:05]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:05]Read from MH i2c: E2 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 17 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [15:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:27:05]wFMCommunicate OK [15:27:05]CreateOFDProtocolMessage done [15:27:05]OFDSenderStorePacket 140223 [15:27:05]StoreOFDPacket docnum=140223 [15:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 C4 07 01 82 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 48 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 23 02 00 35 04 06 00 54 01 BA A7 BA 81 79 DF 8B 8A 4F 17 FF 02 [15:27:05]CheckFolder [15:27:05]dirname=/storage/ofd_packets [15:27:05]CheckFolder done [15:27:05]ProducePacketName [15:27:05]name=ofd_packets/00140223 [15:27:05]NVStorageSaveData ofd_packets/00140223 [15:27:05]File name is /storage/ofd_packets/00140223 [15:27:05]Write 301 bytes [15:27:05]NVStorageSaveData done [15:27:05]OFDSenderStorePacket done [15:27:05]KKMCreateOFDPacket done [15:27:05]NVStorageSaveData kkm_last_timestamp [15:27:05]File name is /storage/kkm_last_timestamp [15:27:05]Write 4 bytes [15:27:05]NVStorageSaveData done [15:27:05]ExternCall_PrintAddStr [15:27:05]wPrintStart [15:27:05]Write to MH i2c: 01 00 00 E3 10 F3 [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 07 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [15:27:05]RasterBufferAndPrint [15:27:05]line Счет N : (1)594079 [15:27:05]line ИНН: 02508201610067 [15:27:05]line Контрольно-Кассовый Чек [15:27:05]line ПРОДАЖА [15:27:05]line ТРК (МРК, ГНК) : 51 [15:27:05]line Товар: 2710124500 [15:27:05]line Аи-95-К-5 [15:27:05]line 13.480 * 74.20 [15:27:05]line = 1000.22 [15:27:05]line НДС 12% НСП 1% [15:27:05]line > о реализуемом товаре [15:27:05]line ОКРУГЛЕНИЕ: -0.22 [15:27:05]line ИТОГО: 1000.00 [15:27:05]line Внесено: 1000.00 [15:27:05]line СДАЧА: 0.00 [15:27:05]line НСП 1% : 8.85 [15:27:05]line НДС 12% : 106.22 [15:27:05]line Наличными: 1000.00 [15:27:05]line Безнал.: 0.00 [15:27:05]line Место: АЗС № 136 "Партнер Нефть" [15:27:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:27:05]line СНО: Общий режим [15:27:05]line Чек 240 21.08.2024 15:27 [15:27:05]line Смена: 454 ФФД: 1.0 [15:27:05]line ЗНМ: 0300000067 [15:27:05]line РНМ: 0000000000092569 [15:27:05]line Версия ККМ: 001 [15:27:05]line ФМ: 0000000000871776 [15:27:05]line ФД: 140223 [15:27:05]line ФПД: 92366403254913 [15:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140223&fm=92366403254913&tin=02508201610067®Number=0000000000092569&sum=100000 [15:27:05]OFD Sender: Processing packet 140223 [packets to send 137, broken 136] [15:27:05]ProducePacketName [15:27:05]name=ofd_packets/00140223 [15:27:05]OFD Sender: To server: pG, [15:27:05]CommunicateWithHost lk.salyk.kg:30040 [15:27:05]ConnectInit lk.salyk.kg [15:27:05]written 0, free lines is 4095 [15:27:05]Connected sock=10 [15:27: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 37 36 0F 01 00 00 74 C4 07 01 82 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 48 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 BF 23 02 00 35 04 06 00 54 01 BA A7 BA 81 79 DF 8B 8A 4F 17 FF 02 [15:27:05]Write to MH i2c: 01 00 00 0E 11 1F [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 07 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 DD 0C 0F [15:27:05]RasterBufferAndPrint [15:27:05]line [15:27:05]line [15:27:05]line [15:27:05]line [15:27:05]line [15:27:05]written 0, free lines is 3299 [15:27:05]MH_Cut [15:27:05]Write to MH i2c: D1 01 00 15 11 01 F8 [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: D1 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: D1 01 00 [15:27:05]MH_I2C_Read... [15:27:05]Read from MH i2c: D1 01 00 15 11 00 F7 [15:27:05]Write to MH i2c: 01 00 00 16 11 27 [15:27:05]Write i2c OK [15:27:05]MH_I2C_Read... [15:27: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 37 36 4F 00 00 00 D1 85 47 00 77 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 37 36 10 04 04 00 BF 23 02 00 F4 03 04 00 D9 AD C5 66 B6 04 01 00 00 A2 1D 2A 4A D4 38 E1 7A [15:27:05]CommunicateWithHost err = 0 [15:27:05]CheckOFDResponse [15:27:05]1017 (14) - 77093643461234 [15:27:05]1041 (16) - 0000000000871776 [15:27:05]1040 (4) - 140223 [15:27:05]1012 (4) - 21.08.2024 09:05 [15:27:05]1206 (1) - 0 [15:27:05]OFD Sender: Remove packet 140223 [15:27:05]ProducePacketName [15:27:05]name=ofd_packets/00140223 [15:27:05]NVStorageDeleteData [15:27:06]OFD Sender: No OFD packet to send [15:27:06]*** Cut start [15:27:06]*** Partial cut [15:27:06]*** CUTSNS_PIN = 1 [15:27:06]*** CUTSNS_PIN = 0 [15:27:06]*** Brake cut motor [15:27:07]Read from MH i2c: 01 [15:27:07]MH_I2C_Read... [15:27:07]*** Stop cut motor [15:27:07]*** Cut end [15:27:07]Read from MH i2c: 01 07 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [15:27:07]process_action close_receipt done [15:27:07]requested_data is exist [15:27:07]produce_requested_data [15:27:07]requested_item fm.sn is exist - process it [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 11 00 00 [15:27:07]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:07]Read from MH i2c: E2 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 17 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [15:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:27:07]wFMCommunicate OK [15:27:07]requested_item fd.num is exist - process it [15:27:07]SAM_PROTO_GetFieldsCounters [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 13 00 00 [15:27:07]Write to MH i2c: E2 08 00 18 11 80 13 00 00 00 00 00 00 A5 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:07]Read from MH i2c: E2 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 62 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 62 00 18 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [15:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 BF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:07]wFMCommunicate OK [15:27:07]SAM_PROTO_GetFieldsCounters done [15:27:07]requested_item shift.num is exist - process it [15:27:07]requested_item shift.opened is exist - process it [15:27:07]req_shift_opened [15:27:07]FM_GetShiftState [15:27:07]SAM_PROTO_GetShiftState [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 13 01 00 [15:27:07]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:07]Read from MH i2c: E2 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 0E 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [15:27:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:27:07]wFMCommunicate OK [15:27:07]SAM_PROTO_GetShiftState done [15:27:07]FM_GetShiftState done [15:27:07]req_shift_opened done [15:27:07]requested_item shift.open_date is exist - process it [15:27:07]req_shift_open_date [15:27:07]req_shift_open_date done [15:27:07]produce_requested_data done [15:27:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140223,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:27:07]process_action_free close_receipt [15:27:07]json_value_free [15:27:07]json_value_free done [15:27:07]process_json_proto returns [15:27:07]Send response to host [15:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140223,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:27:07]free response buf [15:27:07]execute_script done [15:27:07]execute_script returns [15:27:07]free content buf [15:27:07]Sock 8.Close socket [15:27:07]Sock 8.Thread stoped [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [15:27:44]New connection [15:27:44]New thread 3067592036 created [15:27:44]Thread 3067448676 joined [15:27:44]Waiting for new connection... [15:27:44] Sock 9.Parse request [15:27:44]Sock 9.Check first char [15:27:44]Sock 9.First char is OK [15:27:44]request: POST /json_proto HTTP/1.0 [15:27:44]Method: POST [15:27:44]URL: /json_proto [15:27:44]Method is POST - this is cgi request [15:27:44]url: /json_proto [15:27:44]query_string will be loaded in cgi processing [15:27:44]execute_cgi json_proto POST (null) [15:27:44]execute_cgi path=json_proto method=POST [15:27:44]POST find Content-Length [15:27:44]Host: 172.17.45.67:8080 [15:27:44]Content-Length: 803 [15:27:44]Content-Type: application/json [15:27:44] [15:27:44]POST finish read [15:27:44]Found Content-Length = 803 [15:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4202817-18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:44]execute_script... [15:27: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)594080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4202817-18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:44]POST & json_proto [15:27:44]process_json_proto [15:27:44]json parsed OK: [15:27:44]protocol is kg_v1.0 [15:27:44]action value=close_receipt [15:27:44]process_action close_receipt [15:27:44]cmd_close_receipt [15:27:44]MH_GetDate [15:27:44]Write to MH i2c: F0 00 00 1A 11 1A [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: F0 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: F0 09 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: F0 09 00 1A 11 00 71 07 C6 66 5F 7F 2B 66 36 [15:27:44]GetLastDocTimeStamp 1724254024 [15:27:44]current date 1724254065 [15:27:44]FM_GetShiftState [15:27:44]SAM_PROTO_GetShiftState [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 13 01 00 [15:27:44]Write to MH i2c: E2 08 00 1B 11 80 13 01 00 00 00 00 00 A9 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 0E 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 0E 00 1B 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [15:27:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:27:44]wFMCommunicate OK [15:27:44]SAM_PROTO_GetShiftState done [15:27:44]FM_GetShiftState done [15:27:44]opened in 1724200467 [15:27:44]opened+sec_in_day 1724286867 [15:27:44]quantity*price = 0 [15:27:44]sum+1 = 1 [15:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 241 21.08.2024 15:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 4202817-18 ФМ: 0000000000871776 ФД: 140224 ФПД: 241303404105563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152745&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140224&fm=241303404105563&tin=02508201610067®Number=0000000000092569&sum=0 [15:27:45]StoreToDocumentArchive [15:27:45]shift 454 fd 140224 [15:27:45]save to /storage/0454/doc_00140224 [15:27:45]save last doc name /storage/0454/doc_00140224 to /storage/kkm_last_doc_name [15:27:45]save OK [15:27:45]Clear old archive folders... [15:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:45]tlvbuf is 01C77230 [15:27:45]SAM_PROTO_ClearQueue [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 09 00 00 [15:27:45]Write to MH i2c: E2 08 00 28 11 80 09 00 00 00 00 00 00 AB [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_ClearQueue done [15:27:45]KKMCreateOFDPacket [15:27:45]OFDProtocolAddRootSTLVToBuf [15:27:45]FM_MakeSignedData [15:27:45]FM_MakeSignedData [15:27:45]SAM_PROTO_SignData [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 01 02 [15:27:45]Write to MH i2c: E2 08 00 29 11 80 0D 01 02 00 00 00 00 B3 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]wFMCommunicate request_size=255 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 71 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 23 02 00 35 04 06 00 DB [15:27:45]Write to MH i2c: E2 02 01 2A 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 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 F1 00 00 00 F4 03 04 00 71 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 23 02 00 35 04 06 00 DB 00 00 51 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]wFMCommunicate request_size=10 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 02 02 05 76 D3 AF 4F 5B [15:27:45]Write to MH i2c: E2 0D 00 2B 11 80 0D 02 02 05 00 76 D3 AF 4F 5B 00 00 62 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [15:27:45]RAPDU: 90 00 [15:27:45]wFMCommunicate OK [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 0D 03 02 [15:27:45]Write to MH i2c: E2 08 00 2C 11 80 0D 03 02 00 00 00 00 B8 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:46]Read from MH i2c: E2 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 0B 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 0B 00 2C 11 00 4C 87 7B C1 AC 72 98 9E 90 00 1C [15:27:46]RAPDU: 4C 87 7B C1 AC 72 98 9E 90 00 [15:27:46]wFMCommunicate OK [15:27:46]SAM_PROTO_SignData done [15:27:46]FM_MakeSignedData done [15:27:46]CreateOFDProtocolMessage [15:27:46]wFMCommunicate request_size=4 [15:27:46]MH_SAM_APDU [15:27:46]CAPDU: 80 11 00 00 [15:27:46]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:46]Read from MH i2c: E2 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 17 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [15:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:27:46]wFMCommunicate OK [15:27:46]CreateOFDProtocolMessage done [15:27:46]OFDSenderStorePacket 140224 [15:27:46]StoreOFDPacket docnum=140224 [15:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0A F7 07 01 CD 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 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 F1 00 00 00 F4 03 04 00 71 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 23 02 00 35 04 06 00 DB 76 D3 AF 4F 5B 4C 87 7B C1 AC 72 98 9E [15:27:46]CheckFolder [15:27:46]dirname=/storage/ofd_packets [15:27:46]CheckFolder done [15:27:46]ProducePacketName [15:27:46]name=ofd_packets/00140224 [15:27:46]NVStorageSaveData ofd_packets/00140224 [15:27:46]File name is /storage/ofd_packets/00140224 [15:27:46]Write 301 bytes [15:27:46]NVStorageSaveData done [15:27:46]OFDSenderStorePacket done [15:27:46]KKMCreateOFDPacket done [15:27:46]NVStorageSaveData kkm_last_timestamp [15:27:46]File name is /storage/kkm_last_timestamp [15:27:46]Write 4 bytes [15:27:46]NVStorageSaveData done [15:27:46]ExternCall_PrintAddStr [15:27:46]wPrintStart [15:27:46]Write to MH i2c: 01 00 00 2E 11 3F [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [15:27:46]RasterBufferAndPrint [15:27:46]line Счет N : (1)594080 [15:27:46]line ИНН: 02508201610067 [15:27:46]line Контрольно-Кассовый Чек [15:27:46]line ПРОДАЖА [15:27:46]line ТРК (МРК, ГНК) : 62 [15:27:46]line Товар: 2710124130 [15:27:46]line Аи-92-К-5 [15:27:46]line 20.000 * 0.00 [15:27:46]line = 0.00 [15:27:46]line НДС 12% НСП 1% [15:27:46]line > о реализуемом товаре [15:27:46]line ИТОГО: 0.00 [15:27:46]line НСП 1% : 0.00 [15:27:46]line НДС 12% : 0.00 [15:27:46]line Наличными: 0.00 [15:27:46]line Безнал.: 0.00 [15:27:46]line Место: АЗС № 136 "Партнер Нефть" [15:27:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:27:46]line СНО: Общий режим [15:27:46]line Чек 241 21.08.2024 15:27 [15:27:46]line Смена: 454 ФФД: 1.0 [15:27:46]line ЗНМ: 0300000067 [15:27:46]line РНМ: 0000000000092569 [15:27:46]line Версия ККМ: 001 [15:27:46]line Талоны: Топливные Талоны [15:27:46]line 4202817-18 [15:27:46]line ФМ: 0000000000871776 [15:27:46]line ФД: 140224 [15:27:46]line ФПД: 241303404105563 [15:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152745&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140224&fm=241303404105563&tin=02508201610067®Number=0000000000092569&sum=0 [15:27:46]written 0, free lines is 4095 [15:27:46]OFD Sender: Processing packet 140224 [packets to send 137, broken 136] [15:27:46]ProducePacketName [15:27:46]name=ofd_packets/00140224 [15:27:46]OFD Sender: To server: pG, [15:27:46]CommunicateWithHost lk.salyk.kg:30040 [15:27:46]ConnectInit lk.salyk.kg [15:27:46]Connected sock=10 [15:27: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 37 36 0F 01 00 00 0A F7 07 01 CD 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 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 F1 00 00 00 F4 03 04 00 71 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C0 23 02 00 35 04 06 00 DB 76 D3 AF 4F 5B 4C 87 7B C1 AC 72 98 9E [15:27:46]Write to MH i2c: 01 00 00 58 11 69 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 EF 0C 6B [15:27:46]RasterBufferAndPrint [15:27:46]line [15:27:46]line [15:27:46]line [15:27:46]line [15:27:46]line [15:27: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 37 36 4F 00 00 00 DD F7 47 00 9E 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 37 36 10 04 04 00 C0 23 02 00 F4 03 04 00 01 AE C5 66 B6 04 01 00 00 7F 15 7E 83 FA 2A 2D 8C [15:27:46]CommunicateWithHost err = 0 [15:27:46]CheckOFDResponse [15:27:46]1017 (14) - 77093643461234 [15:27:46]1041 (16) - 0000000000871776 [15:27:46]1040 (4) - 140224 [15:27:46]1012 (4) - 21.08.2024 09:06 [15:27:46]1206 (1) - 0 [15:27:46]OFD Sender: Remove packet 140224 [15:27:46]ProducePacketName [15:27:46]name=ofd_packets/00140224 [15:27:46]NVStorageDeleteData [15:27:46]written 0, free lines is 3317 [15:27:46]MH_Cut [15:27:46]Write to MH i2c: D1 01 00 5F 11 01 42 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 01 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: D1 01 00 5F 11 00 41 [15:27:46]Write to MH i2c: 01 00 00 60 11 71 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:47]OFD Sender: No OFD packet to send [15:27:47]*** Cut start [15:27:47]*** Partial cut [15:27:47]*** CUTSNS_PIN = 1 [15:27:47]*** CUTSNS_PIN = 0 [15:27:47]*** Brake cut motor [15:27:47]Read from MH i2c: 01 [15:27:47]MH_I2C_Read... [15:27:47]*** Stop cut motor [15:27:47]*** Cut end [15:27:47]Read from MH i2c: 01 07 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [15:27:47]process_action close_receipt done [15:27:47]requested_data is exist [15:27:47]produce_requested_data [15:27:47]requested_item fm.sn is exist - process it [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 11 00 00 [15:27:47]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 17 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [15:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:27:47]wFMCommunicate OK [15:27:47]requested_item fd.num is exist - process it [15:27:47]SAM_PROTO_GetFieldsCounters [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 13 00 00 [15:27:47]Write to MH i2c: E2 08 00 62 11 80 13 00 00 00 00 00 00 EF [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 62 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 62 00 62 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [15:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:48]wFMCommunicate OK [15:27:48]SAM_PROTO_GetFieldsCounters done [15:27:48]requested_item shift.num is exist - process it [15:27:48]requested_item shift.opened is exist - process it [15:27:48]req_shift_opened [15:27:48]FM_GetShiftState [15:27:48]SAM_PROTO_GetShiftState [15:27:48]wFMCommunicate request_size=4 [15:27:48]MH_SAM_APDU [15:27:48]CAPDU: 80 13 01 00 [15:27:48]Write to MH i2c: E2 08 00 63 11 80 13 01 00 00 00 00 00 F1 [15:27:48]Write i2c OK [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 [15:27:48]MH_I2C_Read... [15:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:48]Read from MH i2c: E2 0E 00 [15:27:48]MH_I2C_Read... [15:27:48]Read from MH i2c: E2 0E 00 63 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 71 [15:27:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:27:48]wFMCommunicate OK [15:27:48]SAM_PROTO_GetShiftState done [15:27:48]FM_GetShiftState done [15:27:48]req_shift_opened done [15:27:48]requested_item shift.open_date is exist - process it [15:27:48]req_shift_open_date [15:27:48]req_shift_open_date done [15:27:48]produce_requested_data done [15:27:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140224,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:27:48]process_action_free close_receipt [15:27:48]json_value_free [15:27:48]json_value_free done [15:27:48]process_json_proto returns [15:27:48]Send response to host [15:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140224,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:27:48]free response buf [15:27:48]execute_script done [15:27:48]execute_script returns [15:27:48]free content buf [15:27:48]Sock 9.Close socket [15:27:48]Sock 9.Thread stoped [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:49]accept exits with 8 [15:28:49]New connection [15:28:49]New thread 3067448676 created [15:28:49]Thread 3067592036 joined [15:28:49]Waiting for new connection... [15:28:49] Sock 8.Parse request [15:28:49]Sock 8.Check first char [15:28:49]Sock 8.First char is OK [15:28:49]request: POST /json_proto HTTP/1.0 [15:28:49]Method: POST [15:28:49]URL: /json_proto [15:28:49]Method is POST - this is cgi request [15:28:49]url: /json_proto [15:28:49]query_string will be loaded in cgi processing [15:28:49]execute_cgi json_proto POST (null) [15:28:49]execute_cgi path=json_proto method=POST [15:28:49]POST find Content-Length [15:28:49]Host: 172.17.45.67:8080 [15:28:49]Content-Length: 677 [15:28:49]Content-Type: application/json [15:28:49] [15:28:49]POST finish read [15:28:49]Found Content-Length = 677 [15:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:49]execute_script... [15:28: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)594082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:28:49]POST & json_proto [15:28:49]process_json_proto [15:28:49]json parsed OK: [15:28:49]protocol is kg_v1.0 [15:28:49]action value=close_receipt [15:28:49]process_action close_receipt [15:28:49]cmd_close_receipt [15:28:49]MH_GetDate [15:28:49]Write to MH i2c: F0 00 00 64 11 64 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 64 11 00 B2 07 C6 66 5F 7F 2B 66 C1 [15:28:49]GetLastDocTimeStamp 1724254065 [15:28:49]current date 1724254130 [15:28:49]FM_GetShiftState [15:28:49]SAM_PROTO_GetShiftState [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 13 01 00 [15:28:49]Write to MH i2c: E2 08 00 65 11 80 13 01 00 00 00 00 00 F3 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 65 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 73 [15:28:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:28:49]wFMCommunicate OK [15:28:49]SAM_PROTO_GetShiftState done [15:28:49]FM_GetShiftState done [15:28:49]opened in 1724200467 [15:28:49]opened+sec_in_day 1724286867 [15:28:49]quantity*price = 50036 [15:28:49]sum+1 = 50037 [15:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 242 21.08.2024 15:28 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140225 ФПД: 28767750636872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152850&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140225&fm=28767750636872&tin=02508201610067®Number=0000000000092569&sum=50000 [15:28:51]StoreToDocumentArchive [15:28:51]shift 454 fd 140225 [15:28:51]save to /storage/0454/doc_00140225 [15:28:51]save last doc name /storage/0454/doc_00140225 to /storage/kkm_last_doc_name [15:28:51]save OK [15:28:51]Clear old archive folders... [15:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:51]tlvbuf is 01C55D90 [15:28:51]SAM_PROTO_ClearQueue [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 09 00 00 [15:28:51]Write to MH i2c: E2 08 00 72 11 80 09 00 00 00 00 00 00 F5 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 72 11 00 90 00 F7 [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]SAM_PROTO_ClearQueue done [15:28:51]KKMCreateOFDPacket [15:28:51]OFDProtocolAddRootSTLVToBuf [15:28:51]FM_MakeSignedData [15:28:51]FM_MakeSignedData [15:28:51]SAM_PROTO_SignData [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 0D 01 02 [15:28:51]Write to MH i2c: E2 08 00 73 11 80 0D 01 02 00 00 00 00 FD [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 73 11 00 90 00 F8 [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=255 [15:28:51]MH_SAM_APDU [15:28: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B2 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 23 02 00 35 04 06 00 1A [15:28:51]Write to MH i2c: E2 02 01 74 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B2 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 23 02 00 35 04 06 00 1A 00 00 24 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=10 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 0D 02 02 05 2A 03 8E C5 48 [15:28:51]Write to MH i2c: E2 0D 00 75 11 80 0D 02 02 05 00 2A 03 8E C5 48 00 00 D2 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 0D 03 02 [15:28:51]Write to MH i2c: E2 08 00 76 11 80 0D 03 02 00 00 00 00 02 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 76 11 00 5B FD 1C CB E0 58 02 3C 90 00 B8 [15:28:51]RAPDU: 5B FD 1C CB E0 58 02 3C 90 00 [15:28:51]wFMCommunicate OK [15:28:51]SAM_PROTO_SignData done [15:28:51]FM_MakeSignedData done [15:28:51]CreateOFDProtocolMessage [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 11 00 00 [15:28:51]Write to MH i2c: E2 08 00 77 11 80 11 00 00 00 00 00 00 02 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 77 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 59 [15:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:28:51]wFMCommunicate OK [15:28:51]CreateOFDProtocolMessage done [15:28:51]OFDSenderStorePacket 140225 [15:28:51]StoreOFDPacket docnum=140225 [15:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 47 73 07 01 A0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B2 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 23 02 00 35 04 06 00 1A 2A 03 8E C5 48 5B FD 1C CB E0 58 02 3C [15:28:51]CheckFolder [15:28:51]dirname=/storage/ofd_packets [15:28:51]CheckFolder done [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00140225 [15:28:51]NVStorageSaveData ofd_packets/00140225 [15:28:51]File name is /storage/ofd_packets/00140225 [15:28:51]Write 301 bytes [15:28:51]NVStorageSaveData done [15:28:51]OFDSenderStorePacket done [15:28:51]KKMCreateOFDPacket done [15:28:51]NVStorageSaveData kkm_last_timestamp [15:28:51]File name is /storage/kkm_last_timestamp [15:28:51]Write 4 bytes [15:28:51]NVStorageSaveData done [15:28:51]ExternCall_PrintAddStr [15:28:51]wPrintStart [15:28:51]Write to MH i2c: 01 00 00 78 11 89 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 78 11 00 00 00 00 00 FF 0F 9E [15:28:51]RasterBufferAndPrint [15:28:51]line Счет N : (1)594082 [15:28:51]line ИНН: 02508201610067 [15:28:51]line Контрольно-Кассовый Чек [15:28:51]line ПРОДАЖА [15:28:51]line ТРК (МРК, ГНК) : 32 [15:28:51]line Товар: 2710124130 [15:28:51]line Аи-92-К-5 [15:28:51]line 7.380 * 67.80 [15:28:51]line = 500.36 [15:28:51]line НДС 12% НСП 1% [15:28:51]line > о реализуемом товаре [15:28:51]line ОКРУГЛЕНИЕ: -0.36 [15:28:51]line ИТОГО: 500.00 [15:28:51]line Внесено: 500.00 [15:28:51]line СДАЧА: 0.00 [15:28:51]line НСП 1% : 4.43 [15:28:51]line НДС 12% : 53.14 [15:28:51]line Наличными: 500.00 [15:28:51]line Безнал.: 0.00 [15:28:51]line Место: АЗС № 136 "Партнер Нефть" [15:28:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:28:51]line СНО: Общий режим [15:28:51]line Чек 242 21.08.2024 15:28 [15:28:51]line Смена: 454 ФФД: 1.0 [15:28:51]line ЗНМ: 0300000067 [15:28:51]line РНМ: 0000000000092569 [15:28:51]line Версия ККМ: 001 [15:28:51]line ФМ: 0000000000871776 [15:28:51]line ФД: 140225 [15:28:51]line ФПД: 28767750636872 [15:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152850&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140225&fm=28767750636872&tin=02508201610067®Number=0000000000092569&sum=50000 [15:28:51]OFD Sender: Processing packet 140225 [packets to send 137, broken 136] [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00140225 [15:28:51]OFD Sender: To server: pG, [15:28:51]CommunicateWithHost lk.salyk.kg:30040 [15:28:51]ConnectInit lk.salyk.kg [15:28:51]written 0, free lines is 4095 [15:28:52]Connected sock=10 [15:28: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 37 36 0F 01 00 00 47 73 07 01 A0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B2 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C1 23 02 00 35 04 06 00 1A 2A 03 8E C5 48 5B FD 1C CB E0 58 02 3C [15:28: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 37 36 4F 00 00 00 E0 53 47 00 36 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 37 36 10 04 04 00 C1 23 02 00 F4 03 04 00 43 AE C5 66 B6 04 01 00 00 01 84 A1 07 FC 41 85 FC [15:28:52]CommunicateWithHost err = 0 [15:28:52]CheckOFDResponse [15:28:52]1017 (14) - 77093643461234 [15:28:52]1041 (16) - 0000000000871776 [15:28:52]1040 (4) - 140225 [15:28:52]1012 (4) - 21.08.2024 09:07 [15:28:52]1206 (1) - 0 [15:28:52]OFD Sender: Remove packet 140225 [15:28:52]ProducePacketName [15:28:52]name=ofd_packets/00140225 [15:28:52]NVStorageDeleteData [15:28:52]Write to MH i2c: 01 00 00 A3 11 B4 [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 07 00 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 07 00 A3 11 00 00 00 00 00 DD 0C A4 [15:28:52]RasterBufferAndPrint [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]written 0, free lines is 3299 [15:28:52]MH_Cut [15:28:52]Write to MH i2c: D1 01 00 AA 11 01 8D [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 01 00 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 01 00 AA 11 00 8C [15:28:52]Write to MH i2c: 01 00 00 AB 11 BC [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:52]OFD Sender: No OFD packet to send [15:28:53]*** Cut start [15:28:53]*** Partial cut [15:28:53]*** CUTSNS_PIN = 1 [15:28:53]*** CUTSNS_PIN = 0 [15:28:53]*** Brake cut motor [15:28:53]Read from MH i2c: 01 [15:28:53]MH_I2C_Read... [15:28:53]*** Stop cut motor [15:28:53]*** Cut end [15:28:53]Read from MH i2c: 01 07 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 FF 0F D1 [15:28:53]process_action close_receipt done [15:28:53]requested_data is exist [15:28:53]produce_requested_data [15:28:53]requested_item fm.sn is exist - process it [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 11 00 00 [15:28:53]Write to MH i2c: E2 08 00 AC 11 80 11 00 00 00 00 00 00 37 [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 AC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [15:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:28:53]wFMCommunicate OK [15:28:53]requested_item fd.num is exist - process it [15:28:53]SAM_PROTO_GetFieldsCounters [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 00 00 [15:28:53]Write to MH i2c: E2 08 00 AD 11 80 13 00 00 00 00 00 00 3A [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 AD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetFieldsCounters done [15:28:53]requested_item shift.num is exist - process it [15:28:53]requested_item shift.opened is exist - process it [15:28:53]req_shift_opened [15:28:53]FM_GetShiftState [15:28:53]SAM_PROTO_GetShiftState [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 01 00 [15:28:53]Write to MH i2c: E2 08 00 AE 11 80 13 01 00 00 00 00 00 3C [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 AE 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BC [15:28:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetShiftState done [15:28:53]FM_GetShiftState done [15:28:53]req_shift_opened done [15:28:53]requested_item shift.open_date is exist - process it [15:28:53]req_shift_open_date [15:28:53]req_shift_open_date done [15:28:53]produce_requested_data done [15:28:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140225,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:28:53]process_action_free close_receipt [15:28:53]json_value_free [15:28:53]json_value_free done [15:28:53]process_json_proto returns [15:28:53]Send response to host [15:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140225,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:28:53]free response buf [15:28:53]execute_script done [15:28:53]execute_script returns [15:28:53]free content buf [15:28:53]Sock 8.Close socket [15:28:53]Sock 8.Thread stoped [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:43]accept exits with 9 [15:29:43]New connection [15:29:43]New thread 3067592036 created [15:29:43]Thread 3067448676 joined [15:29:43]Waiting for new connection... [15:29:43] Sock 9.Parse request [15:29:43]Sock 9.Check first char [15:29:43]Sock 9.First char is OK [15:29:43]request: POST /json_proto HTTP/1.0 [15:29:43]Method: POST [15:29:43]URL: /json_proto [15:29:43]Method is POST - this is cgi request [15:29:43]url: /json_proto [15:29:43]query_string will be loaded in cgi processing [15:29:43]execute_cgi json_proto POST (null) [15:29:43]execute_cgi path=json_proto method=POST [15:29:43]POST find Content-Length [15:29:43]Host: 172.17.45.67:8080 [15:29:43]Content-Length: 682 [15:29:43]Content-Type: application/json [15:29:43] [15:29:43]POST finish read [15:29:43]Found Content-Length = 682 [15:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:43]execute_script... [15:29: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)594083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:43]POST & json_proto [15:29:43]process_json_proto [15:29:43]json parsed OK: [15:29:43]protocol is kg_v1.0 [15:29:43]action value=close_receipt [15:29:43]process_action close_receipt [15:29:43]cmd_close_receipt [15:29:43]MH_GetDate [15:29:43]Write to MH i2c: F0 00 00 AF 11 AF [15:29:43]Write i2c OK [15:29:43]MH_I2C_Read... [15:29:43]Read from MH i2c: F0 [15:29:43]MH_I2C_Read... [15:29:43]Read from MH i2c: F0 09 00 [15:29:43]MH_I2C_Read... [15:29:43]Read from MH i2c: F0 09 00 AF 11 00 E8 07 C6 66 5F 7F 2B 66 42 [15:29:43]GetLastDocTimeStamp 1724254130 [15:29:43]current date 1724254184 [15:29:43]FM_GetShiftState [15:29:43]SAM_PROTO_GetShiftState [15:29:43]wFMCommunicate request_size=4 [15:29:43]MH_SAM_APDU [15:29:43]CAPDU: 80 13 01 00 [15:29:43]Write to MH i2c: E2 08 00 B0 11 80 13 01 00 00 00 00 00 3E [15:29:43]Write i2c OK [15:29:43]MH_I2C_Read... [15:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:43]Read from MH i2c: E2 [15:29:43]MH_I2C_Read... [15:29:43]Read from MH i2c: E2 0E 00 [15:29:43]MH_I2C_Read... [15:29:43]Read from MH i2c: E2 0E 00 B0 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BE [15:29:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:29:43]wFMCommunicate OK [15:29:43]SAM_PROTO_GetShiftState done [15:29:43]FM_GetShiftState done [15:29:43]opened in 1724200467 [15:29:43]opened+sec_in_day 1724286867 [15:29:43]quantity*price = 100021 [15:29:43]sum+1 = 100023 [15:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 243 21.08.2024 15:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140226 ФПД: 70996930870646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152944&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140226&fm=70996930870646&tin=02508201610067®Number=0000000000092569&sum=100000 [15:29:44]StoreToDocumentArchive [15:29:44]shift 454 fd 140226 [15:29:44]save to /storage/0454/doc_00140226 [15:29:44]save last doc name /storage/0454/doc_00140226 to /storage/kkm_last_doc_name [15:29:44]save OK [15:29:44]Clear old archive folders... [15:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:44]tlvbuf is 01CBE960 [15:29:44]SAM_PROTO_ClearQueue [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 09 00 00 [15:29:44]Write to MH i2c: E2 08 00 BD 11 80 09 00 00 00 00 00 00 40 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [15:29:44]RAPDU: 90 00 [15:29:44]wFMCommunicate OK [15:29:44]SAM_PROTO_ClearQueue done [15:29:44]KKMCreateOFDPacket [15:29:44]OFDProtocolAddRootSTLVToBuf [15:29:44]FM_MakeSignedData [15:29:44]FM_MakeSignedData [15:29:44]SAM_PROTO_SignData [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 0D 01 02 [15:29:44]Write to MH i2c: E2 08 00 BE 11 80 0D 01 02 00 00 00 00 48 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [15:29:44]RAPDU: 90 00 [15:29:44]wFMCommunicate OK [15:29:44]wFMCommunicate request_size=255 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 23 02 00 35 04 06 00 40 [15:29:44]Write to MH i2c: E2 02 01 BF 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 23 02 00 35 04 06 00 40 00 00 FA [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [15:29:44]RAPDU: 90 00 [15:29:44]wFMCommunicate OK [15:29:44]wFMCommunicate request_size=10 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 0D 02 02 05 92 42 D8 3D 76 [15:29:44]Write to MH i2c: E2 0D 00 C0 11 80 0D 02 02 05 00 92 42 D8 3D 76 00 00 B4 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [15:29:44]RAPDU: 90 00 [15:29:44]wFMCommunicate OK [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 0D 03 02 [15:29:44]Write to MH i2c: E2 08 00 C1 11 80 0D 03 02 00 00 00 00 4D [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 0B 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 0B 00 C1 11 00 D6 CB C1 52 EE B5 6E 24 90 00 37 [15:29:44]RAPDU: D6 CB C1 52 EE B5 6E 24 90 00 [15:29:44]wFMCommunicate OK [15:29:44]SAM_PROTO_SignData done [15:29:44]FM_MakeSignedData done [15:29:44]CreateOFDProtocolMessage [15:29:44]wFMCommunicate request_size=4 [15:29:44]MH_SAM_APDU [15:29:44]CAPDU: 80 11 00 00 [15:29:44]Write to MH i2c: E2 08 00 C2 11 80 11 00 00 00 00 00 00 4D [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:44]Read from MH i2c: E2 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 17 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: E2 17 00 C2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [15:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:29:44]wFMCommunicate OK [15:29:44]CreateOFDProtocolMessage done [15:29:44]OFDSenderStorePacket 140226 [15:29:44]StoreOFDPacket docnum=140226 [15:29:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D3 7E 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 23 02 00 35 04 06 00 40 92 42 D8 3D 76 D6 CB C1 52 EE B5 6E 24 [15:29:44]CheckFolder [15:29:44]dirname=/storage/ofd_packets [15:29:44]CheckFolder done [15:29:44]ProducePacketName [15:29:44]name=ofd_packets/00140226 [15:29:44]NVStorageSaveData ofd_packets/00140226 [15:29:44]File name is /storage/ofd_packets/00140226 [15:29:44]Write 301 bytes [15:29:44]NVStorageSaveData done [15:29:44]OFDSenderStorePacket done [15:29:44]KKMCreateOFDPacket done [15:29:44]NVStorageSaveData kkm_last_timestamp [15:29:44]File name is /storage/kkm_last_timestamp [15:29:44]Write 4 bytes [15:29:44]NVStorageSaveData done [15:29:44]ExternCall_PrintAddStr [15:29:44]wPrintStart [15:29:44]Write to MH i2c: 01 00 00 C3 11 D4 [15:29:44]Write i2c OK [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: 01 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: 01 07 00 [15:29:44]MH_I2C_Read... [15:29:44]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 FF 0F E9 [15:29:44]RasterBufferAndPrint [15:29:44]line Счет N : (1)594083 [15:29:44]line ИНН: 02508201610067 [15:29:44]line Контрольно-Кассовый Чек [15:29:44]line ПРОДАЖА [15:29:44]line ТРК (МРК, ГНК) : 41 [15:29:44]line Товар: 2710124500 [15:29:44]line Аи-95-К-5 [15:29:44]line 13.480 * 74.20 [15:29:44]line = 1000.22 [15:29:44]line НДС 12% НСП 1% [15:29:44]line > о реализуемом товаре [15:29:44]line ОКРУГЛЕНИЕ: -0.22 [15:29:44]line ИТОГО: 1000.00 [15:29:44]line Внесено: 1000.00 [15:29:44]line СДАЧА: 0.00 [15:29:44]line НСП 1% : 8.85 [15:29:44]line НДС 12% : 106.22 [15:29:44]line Наличными: 1000.00 [15:29:44]line Безнал.: 0.00 [15:29:44]line Место: АЗС № 136 "Партнер Нефть" [15:29:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:29:44]line СНО: Общий режим [15:29:44]line Чек 243 21.08.2024 15:29 [15:29:44]line Смена: 454 ФФД: 1.0 [15:29:44]line ЗНМ: 0300000067 [15:29:44]line РНМ: 0000000000092569 [15:29:44]line Версия ККМ: 001 [15:29:44]line ФМ: 0000000000871776 [15:29:44]line ФД: 140226 [15:29:44]line ФПД: 70996930870646 [15:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T152944&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140226&fm=70996930870646&tin=02508201610067®Number=0000000000092569&sum=100000 [15:29:45]written 0, free lines is 4095 [15:29:45]OFD Sender: Processing packet 140226 [packets to send 137, broken 136] [15:29:45]ProducePacketName [15:29:45]name=ofd_packets/00140226 [15:29:45]OFD Sender: To server: pG, [15:29:45]CommunicateWithHost lk.salyk.kg:30040 [15:29:45]ConnectInit lk.salyk.kg [15:29:45]Connected sock=10 [15:29: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 37 36 0F 01 00 00 D3 7E 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 07 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C2 23 02 00 35 04 06 00 40 92 42 D8 3D 76 D6 CB C1 52 EE B5 6E 24 [15:29: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 37 36 4F 00 00 00 7A AA 47 00 8F 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 37 36 10 04 04 00 C2 23 02 00 F4 03 04 00 78 AE C5 66 B6 04 01 00 00 75 5D 45 6A 21 F2 E6 E2 [15:29:45]CommunicateWithHost err = 0 [15:29:45]CheckOFDResponse [15:29:45]1017 (14) - 77093643461234 [15:29:45]1041 (16) - 0000000000871776 [15:29:45]1040 (4) - 140226 [15:29:45]1012 (4) - 21.08.2024 09:08 [15:29:45]1206 (1) - 0 [15:29:45]OFD Sender: Remove packet 140226 [15:29:45]ProducePacketName [15:29:45]name=ofd_packets/00140226 [15:29:45]NVStorageDeleteData [15:29:45]Write to MH i2c: 01 00 00 EE 11 FF [15:29:45]Write i2c OK [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: 01 [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: 01 07 00 [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: 01 07 00 EE 11 00 00 00 00 00 D9 0C EB [15:29:45]RasterBufferAndPrint [15:29:45]line [15:29:45]line [15:29:45]line [15:29:45]line [15:29:45]line [15:29:45]written 0, free lines is 3296 [15:29:45]MH_Cut [15:29:45]Write to MH i2c: D1 01 00 F5 11 01 D8 [15:29:45]Write i2c OK [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: D1 [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: D1 01 00 [15:29:45]MH_I2C_Read... [15:29:45]Read from MH i2c: D1 01 00 F5 11 00 D7 [15:29:45]Write to MH i2c: 01 00 00 F6 11 07 [15:29:45]Write i2c OK [15:29:45]MH_I2C_Read... [15:29:45]OFD Sender: No OFD packet to send [15:29:46]*** Cut start [15:29:46]*** Partial cut [15:29:46]*** CUTSNS_PIN = 1 [15:29:46]*** CUTSNS_PIN = 0 [15:29:46]*** Brake cut motor [15:29:46]Read from MH i2c: 01 [15:29:46]MH_I2C_Read... [15:29:46]*** Stop cut motor [15:29:46]*** Cut end [15:29:46]Read from MH i2c: 01 07 00 [15:29:46]MH_I2C_Read... [15:29:46]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 FF 0F 1C [15:29:46]process_action close_receipt done [15:29:46]requested_data is exist [15:29:46]produce_requested_data [15:29:46]requested_item fm.sn is exist - process it [15:29:46]wFMCommunicate request_size=4 [15:29:46]MH_SAM_APDU [15:29:46]CAPDU: 80 11 00 00 [15:29:46]Write to MH i2c: E2 08 00 F7 11 80 11 00 00 00 00 00 00 82 [15:29:46]Write i2c OK [15:29:46]MH_I2C_Read... [15:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:46]Read from MH i2c: E2 [15:29:46]MH_I2C_Read... [15:29:46]Read from MH i2c: E2 17 00 [15:29:46]MH_I2C_Read... [15:29:46]Read from MH i2c: E2 17 00 F7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [15:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:29:46]wFMCommunicate OK [15:29:46]requested_item fd.num is exist - process it [15:29:46]SAM_PROTO_GetFieldsCounters [15:29:46]wFMCommunicate request_size=4 [15:29:46]MH_SAM_APDU [15:29:46]CAPDU: 80 13 00 00 [15:29:46]Write to MH i2c: E2 08 00 F8 11 80 13 00 00 00 00 00 00 85 [15:29:46]Write i2c OK [15:29:46]MH_I2C_Read... [15:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:46]Read from MH i2c: E2 [15:29:46]MH_I2C_Read... [15:29:46]Read from MH i2c: E2 62 00 [15:29:46]MH_I2C_Read... [15:29:46]Read from MH i2c: E2 62 00 F8 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:46]wFMCommunicate OK [15:29:46]SAM_PROTO_GetFieldsCounters done [15:29:46]requested_item shift.num is exist - process it [15:29:46]requested_item shift.opened is exist - process it [15:29:46]req_shift_opened [15:29:46]FM_GetShiftState [15:29:46]SAM_PROTO_GetShiftState [15:29:46]wFMCommunicate request_size=4 [15:29:46]MH_SAM_APDU [15:29:46]CAPDU: 80 13 01 00 [15:29:47]Write to MH i2c: E2 08 00 F9 11 80 13 01 00 00 00 00 00 87 [15:29:47]Write i2c OK [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: E2 [15:29:47]MH_I2C_Read... [15:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:47]Read from MH i2c: E2 0E 00 [15:29:47]MH_I2C_Read... [15:29:47]Read from MH i2c: E2 0E 00 F9 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [15:29:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:29:47]wFMCommunicate OK [15:29:47]SAM_PROTO_GetShiftState done [15:29:47]FM_GetShiftState done [15:29:47]req_shift_opened done [15:29:47]requested_item shift.open_date is exist - process it [15:29:47]req_shift_open_date [15:29:47]req_shift_open_date done [15:29:47]produce_requested_data done [15:29:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140226,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:29:47]process_action_free close_receipt [15:29:47]json_value_free [15:29:47]json_value_free done [15:29:47]process_json_proto returns [15:29:47]Send response to host [15:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140226,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:29:47]free response buf [15:29:47]execute_script done [15:29:47]execute_script returns [15:29:47]free content buf [15:29:47]Sock 9.Close socket [15:29:47]Sock 9.Thread stoped [15:29:50]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:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:17]accept exits with 8 [15:30:17]New connection [15:30:17]New thread 3067448676 created [15:30:17]Thread 3067592036 joined [15:30:17]Waiting for new connection... [15:30:17] Sock 8.Parse request [15:30:17]Sock 8.Check first char [15:30:17]Sock 8.First char is OK [15:30:17]request: POST /json_proto HTTP/1.0 [15:30:17]Method: POST [15:30:17]URL: /json_proto [15:30:17]Method is POST - this is cgi request [15:30:17]url: /json_proto [15:30:17]query_string will be loaded in cgi processing [15:30:17]execute_cgi json_proto POST (null) [15:30:17]execute_cgi path=json_proto method=POST [15:30:17]POST find Content-Length [15:30:17]Host: 172.17.45.67:8080 [15:30:17]Content-Length: 678 [15:30:17]Content-Type: application/json [15:30:17] [15:30:17]POST finish read [15:30:17]Found Content-Length = 678 [15:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:17]execute_script... [15:30: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)594085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:17]POST & json_proto [15:30:17]process_json_proto [15:30:17]json parsed OK: [15:30:17]protocol is kg_v1.0 [15:30:17]action value=close_receipt [15:30:17]process_action close_receipt [15:30:17]cmd_close_receipt [15:30:17]MH_GetDate [15:30:17]Write to MH i2c: F0 00 00 FA 11 FA [15:30:17]Write i2c OK [15:30:17]MH_I2C_Read... [15:30:17]Read from MH i2c: F0 [15:30:17]MH_I2C_Read... [15:30:17]Read from MH i2c: F0 09 00 [15:30:17]MH_I2C_Read... [15:30:17]Read from MH i2c: F0 09 00 FA 11 00 0A 08 C6 66 5F 7F 2B 66 B0 [15:30:17]GetLastDocTimeStamp 1724254184 [15:30:17]current date 1724254218 [15:30:17]FM_GetShiftState [15:30:17]SAM_PROTO_GetShiftState [15:30:17]wFMCommunicate request_size=4 [15:30:17]MH_SAM_APDU [15:30:17]CAPDU: 80 13 01 00 [15:30:17]Write to MH i2c: E2 08 00 FB 11 80 13 01 00 00 00 00 00 89 [15:30:17]Write i2c OK [15:30:17]MH_I2C_Read... [15:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:17]Read from MH i2c: E2 [15:30:17]MH_I2C_Read... [15:30:17]Read from MH i2c: E2 0E 00 [15:30:17]MH_I2C_Read... [15:30:17]Read from MH i2c: E2 0E 00 FB 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 09 [15:30:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:30:17]wFMCommunicate OK [15:30:17]SAM_PROTO_GetShiftState done [15:30:17]FM_GetShiftState done [15:30:17]opened in 1724200467 [15:30:17]opened+sec_in_day 1724286867 [15:30:17]quantity*price = 70037 [15:30:17]sum+1 = 70038 [15:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 244 21.08.2024 15:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140227 ФПД: 231622663188162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153018&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140227&fm=231622663188162&tin=02508201610067®Number=0000000000092569&sum=70000 [15:30:19]StoreToDocumentArchive [15:30:19]shift 454 fd 140227 [15:30:19]save to /storage/0454/doc_00140227 [15:30:19]save last doc name /storage/0454/doc_00140227 to /storage/kkm_last_doc_name [15:30:19]save OK [15:30:19]Clear old archive folders... [15:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:19]tlvbuf is 01C5DEE0 [15:30:19]SAM_PROTO_ClearQueue [15:30:19]wFMCommunicate request_size=4 [15:30:19]MH_SAM_APDU [15:30:19]CAPDU: 80 09 00 00 [15:30:19]Write to MH i2c: E2 08 00 08 12 80 09 00 00 00 00 00 00 8C [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [15:30:19]RAPDU: 90 00 [15:30:19]wFMCommunicate OK [15:30:19]SAM_PROTO_ClearQueue done [15:30:19]KKMCreateOFDPacket [15:30:19]OFDProtocolAddRootSTLVToBuf [15:30:19]FM_MakeSignedData [15:30:19]FM_MakeSignedData [15:30:19]SAM_PROTO_SignData [15:30:19]wFMCommunicate request_size=4 [15:30:19]MH_SAM_APDU [15:30:19]CAPDU: 80 0D 01 02 [15:30:19]Write to MH i2c: E2 08 00 09 12 80 0D 01 02 00 00 00 00 94 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [15:30:19]RAPDU: 90 00 [15:30:19]wFMCommunicate OK [15:30:19]wFMCommunicate request_size=255 [15:30:19]MH_SAM_APDU [15:30: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 0A 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 23 02 00 35 04 06 00 D2 [15:30:19]Write to MH i2c: E2 02 01 0A 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 0A 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 23 02 00 35 04 06 00 D2 00 00 B7 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [15:30:19]RAPDU: 90 00 [15:30:19]wFMCommunicate OK [15:30:19]wFMCommunicate request_size=10 [15:30:19]MH_SAM_APDU [15:30:19]CAPDU: 80 0D 02 02 05 A8 DA 8F AE C2 [15:30:19]Write to MH i2c: E2 0D 00 0B 12 80 0D 02 02 05 00 A8 DA 8F AE C2 00 00 22 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [15:30:19]RAPDU: 90 00 [15:30:19]wFMCommunicate OK [15:30:19]wFMCommunicate request_size=4 [15:30:19]MH_SAM_APDU [15:30:19]CAPDU: 80 0D 03 02 [15:30:19]Write to MH i2c: E2 08 00 0C 12 80 0D 03 02 00 00 00 00 99 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 0B 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 0B 00 0C 12 00 A2 20 C5 63 50 84 90 5C 90 00 44 [15:30:19]RAPDU: A2 20 C5 63 50 84 90 5C 90 00 [15:30:19]wFMCommunicate OK [15:30:19]SAM_PROTO_SignData done [15:30:19]FM_MakeSignedData done [15:30:19]CreateOFDProtocolMessage [15:30:19]wFMCommunicate request_size=4 [15:30:19]MH_SAM_APDU [15:30:19]CAPDU: 80 11 00 00 [15:30:19]Write to MH i2c: E2 08 00 0D 12 80 11 00 00 00 00 00 00 99 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:19]Read from MH i2c: E2 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 17 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: E2 17 00 0D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [15:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:19]wFMCommunicate OK [15:30:19]CreateOFDProtocolMessage done [15:30:19]OFDSenderStorePacket 140227 [15:30:19]StoreOFDPacket docnum=140227 [15:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 7A 07 01 1F 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 0A 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 23 02 00 35 04 06 00 D2 A8 DA 8F AE C2 A2 20 C5 63 50 84 90 5C [15:30:19]CheckFolder [15:30:19]dirname=/storage/ofd_packets [15:30:19]CheckFolder done [15:30:19]ProducePacketName [15:30:19]name=ofd_packets/00140227 [15:30:19]NVStorageSaveData ofd_packets/00140227 [15:30:19]File name is /storage/ofd_packets/00140227 [15:30:19]Write 301 bytes [15:30:19]NVStorageSaveData done [15:30:19]OFDSenderStorePacket done [15:30:19]KKMCreateOFDPacket done [15:30:19]NVStorageSaveData kkm_last_timestamp [15:30:19]File name is /storage/kkm_last_timestamp [15:30:19]Write 4 bytes [15:30:19]NVStorageSaveData done [15:30:19]ExternCall_PrintAddStr [15:30:19]wPrintStart [15:30:19]Write to MH i2c: 01 00 00 0E 12 20 [15:30:19]Write i2c OK [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: 01 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: 01 07 00 [15:30:19]MH_I2C_Read... [15:30:19]Read from MH i2c: 01 07 00 0E 12 00 00 00 00 00 FF 0F 35 [15:30:19]RasterBufferAndPrint [15:30:19]line Счет N : (1)594085 [15:30:19]line ИНН: 02508201610067 [15:30:19]line Контрольно-Кассовый Чек [15:30:19]line ПРОДАЖА [15:30:19]line ТРК (МРК, ГНК) : 62 [15:30:19]line Товар: 2710124130 [15:30:19]line Аи-92-К-5 [15:30:19]line 10.330 * 67.80 [15:30:19]line = 700.37 [15:30:19]line НДС 12% НСП 1% [15:30:19]line > о реализуемом товаре [15:30:19]line ОКРУГЛЕНИЕ: -0.37 [15:30:19]line ИТОГО: 700.00 [15:30:19]line Внесено: 700.00 [15:30:19]line СДАЧА: 0.00 [15:30:19]line НСП 1% : 6.20 [15:30:19]line НДС 12% : 74.38 [15:30:19]line Наличными: 700.00 [15:30:19]line Безнал.: 0.00 [15:30:19]line Место: АЗС № 136 "Партнер Нефть" [15:30:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:30:19]line СНО: Общий режим [15:30:19]line Чек 244 21.08.2024 15:30 [15:30:19]line Смена: 454 ФФД: 1.0 [15:30:19]line ЗНМ: 0300000067 [15:30:19]line РНМ: 0000000000092569 [15:30:19]line Версия ККМ: 001 [15:30:19]line ФМ: 0000000000871776 [15:30:19]line ФД: 140227 [15:30:19]line ФПД: 231622663188162 [15:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153018&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140227&fm=231622663188162&tin=02508201610067®Number=0000000000092569&sum=70000 [15:30:19]written 0, free lines is 4095 [15:30:19]OFD Sender: Processing packet 140227 [packets to send 137, broken 136] [15:30:19]ProducePacketName [15:30:19]name=ofd_packets/00140227 [15:30:19]OFD Sender: To server: pG, [15:30:19]CommunicateWithHost lk.salyk.kg:30040 [15:30:19]ConnectInit lk.salyk.kg [15:30:19]Connected sock=11 [15:30: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 37 36 0F 01 00 00 66 7A 07 01 1F 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 0A 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 23 02 00 35 04 06 00 D2 A8 DA 8F AE C2 A2 20 C5 63 50 84 90 5C [15:30:20]Write to MH i2c: 01 00 00 39 12 4B [15:30:20]Write i2c OK [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: 01 [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: 01 07 00 [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: 01 07 00 39 12 00 00 00 00 00 E2 0C 40 [15:30:20]RasterBufferAndPrint [15:30:20]line [15:30:20]line [15:30:20]line [15:30:20]line [15:30:20]line [15:30:20]written 0, free lines is 3304 [15:30:20]MH_Cut [15:30:20]Write to MH i2c: D1 01 00 40 12 01 24 [15:30:20]Write i2c OK [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: D1 [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: D1 01 00 [15:30:20]MH_I2C_Read... [15:30:20]Read from MH i2c: D1 01 00 40 12 00 23 [15:30:20]Write to MH i2c: 01 00 00 41 12 53 [15:30:20]Write i2c OK [15:30:20]MH_I2C_Read... [15:30: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 37 36 4F 00 00 00 A1 C9 47 00 B6 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C3 23 02 00 F4 03 04 00 9B AE C5 66 B6 04 01 00 00 CB C8 C2 50 61 20 2D AD [15:30:20]CommunicateWithHost err = 0 [15:30:20]CheckOFDResponse [15:30:20]1017 (14) - 77093643461234 [15:30:20]1041 (16) - 0000000000871776 [15:30:20]1040 (4) - 140227 [15:30:20]1012 (4) - 21.08.2024 09:08 [15:30:20]1206 (1) - 0 [15:30:20]OFD Sender: Remove packet 140227 [15:30:20]ProducePacketName [15:30:20]name=ofd_packets/00140227 [15:30:20]NVStorageDeleteData [15:30:20]OFD Sender: No OFD packet to send [15:30:20]*** Cut start [15:30:20]*** Partial cut [15:30:20]*** CUTSNS_PIN = 1 [15:30:20]*** CUTSNS_PIN = 0 [15:30:21]*** Brake cut motor [15:30:21]Read from MH i2c: 01 [15:30:21]MH_I2C_Read... [15:30:21]*** Stop cut motor [15:30:21]*** Cut end [15:30:21]Read from MH i2c: 01 07 00 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [15:30:21]process_action close_receipt done [15:30:21]requested_data is exist [15:30:21]produce_requested_data [15:30:21]requested_item fm.sn is exist - process it [15:30:21]wFMCommunicate request_size=4 [15:30:21]MH_SAM_APDU [15:30:21]CAPDU: 80 11 00 00 [15:30:21]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [15:30:21]Write i2c OK [15:30:21]MH_I2C_Read... [15:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:21]Read from MH i2c: E2 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 17 00 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [15:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:21]wFMCommunicate OK [15:30:21]requested_item fd.num is exist - process it [15:30:21]SAM_PROTO_GetFieldsCounters [15:30:21]wFMCommunicate request_size=4 [15:30:21]MH_SAM_APDU [15:30:21]CAPDU: 80 13 00 00 [15:30:21]Write to MH i2c: E2 08 00 43 12 80 13 00 00 00 00 00 00 D1 [15:30:21]Write i2c OK [15:30:21]MH_I2C_Read... [15:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:21]Read from MH i2c: E2 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 62 00 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 62 00 43 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [15:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:21]wFMCommunicate OK [15:30:21]SAM_PROTO_GetFieldsCounters done [15:30:21]requested_item shift.num is exist - process it [15:30:21]requested_item shift.opened is exist - process it [15:30:21]req_shift_opened [15:30:21]FM_GetShiftState [15:30:21]SAM_PROTO_GetShiftState [15:30:21]wFMCommunicate request_size=4 [15:30:21]MH_SAM_APDU [15:30:21]CAPDU: 80 13 01 00 [15:30:21]Write to MH i2c: E2 08 00 44 12 80 13 01 00 00 00 00 00 D3 [15:30:21]Write i2c OK [15:30:21]MH_I2C_Read... [15:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:21]Read from MH i2c: E2 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 0E 00 [15:30:21]MH_I2C_Read... [15:30:21]Read from MH i2c: E2 0E 00 44 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 53 [15:30:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:30:21]wFMCommunicate OK [15:30:21]SAM_PROTO_GetShiftState done [15:30:21]FM_GetShiftState done [15:30:21]req_shift_opened done [15:30:21]requested_item shift.open_date is exist - process it [15:30:21]req_shift_open_date [15:30:21]req_shift_open_date done [15:30:21]produce_requested_data done [15:30:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140227,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:30:21]process_action_free close_receipt [15:30:21]json_value_free [15:30:21]json_value_free done [15:30:21]process_json_proto returns [15:30:21]Send response to host [15:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140227,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:30:21]free response buf [15:30:21]execute_script done [15:30:21]execute_script returns [15:30:21]free content buf [15:30:21]Sock 8.Close socket [15:30:21]Sock 8.Thread stoped [15:30:22]accept exits with 9 [15:30:22]New connection [15:30:22]New thread 3067592036 created [15:30:22]Thread 3067448676 joined [15:30:22]Waiting for new connection... [15:30:22] Sock 9.Parse request [15:30:22]Sock 9.Check first char [15:30:22]Sock 9.First char is OK [15:30:22]request: POST /json_proto HTTP/1.0 [15:30:22]Method: POST [15:30:22]URL: /json_proto [15:30:22]Method is POST - this is cgi request [15:30:22]url: /json_proto [15:30:22]query_string will be loaded in cgi processing [15:30:22]execute_cgi json_proto POST (null) [15:30:22]execute_cgi path=json_proto method=POST [15:30:22]POST find Content-Length [15:30:22]Host: 172.17.45.67:8080 [15:30:22]Content-Length: 677 [15:30:22]Content-Type: application/json [15:30:22] [15:30:22]POST finish read [15:30:22]Found Content-Length = 677 [15:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:22]execute_script... [15:30: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)594084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:22]POST & json_proto [15:30:22]process_json_proto [15:30:22]json parsed OK: [15:30:22]protocol is kg_v1.0 [15:30:22]action value=close_receipt [15:30:22]process_action close_receipt [15:30:22]cmd_close_receipt [15:30:22]MH_GetDate [15:30:22]Write to MH i2c: F0 00 00 45 12 46 [15:30:22]Write i2c OK [15:30:22]MH_I2C_Read... [15:30:22]Read from MH i2c: F0 [15:30:22]MH_I2C_Read... [15:30:22]Read from MH i2c: F0 09 00 [15:30:22]MH_I2C_Read... [15:30:22]Read from MH i2c: F0 09 00 45 12 00 0F 08 C6 66 5F 7F 2B 66 01 [15:30:22]GetLastDocTimeStamp 1724254218 [15:30:22]current date 1724254223 [15:30:22]FM_GetShiftState [15:30:22]SAM_PROTO_GetShiftState [15:30:22]wFMCommunicate request_size=4 [15:30:22]MH_SAM_APDU [15:30:22]CAPDU: 80 13 01 00 [15:30:22]Write to MH i2c: E2 08 00 46 12 80 13 01 00 00 00 00 00 D5 [15:30:22]Write i2c OK [15:30:22]MH_I2C_Read... [15:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:22]Read from MH i2c: E2 [15:30:22]MH_I2C_Read... [15:30:22]Read from MH i2c: E2 0E 00 [15:30:22]MH_I2C_Read... [15:30:22]Read from MH i2c: E2 0E 00 46 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 55 [15:30:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:30:22]wFMCommunicate OK [15:30:22]SAM_PROTO_GetShiftState done [15:30:22]FM_GetShiftState done [15:30:22]opened in 1724200467 [15:30:22]opened+sec_in_day 1724286867 [15:30:22]quantity*price = 60027 [15:30:22]sum+1 = 60029 [15:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 245 21.08.2024 15:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140228 ФПД: 71904256375382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140228&fm=71904256375382&tin=02508201610067®Number=0000000000092569&sum=60000 [15:30:24]StoreToDocumentArchive [15:30:24]shift 454 fd 140228 [15:30:24]save to /storage/0454/doc_00140228 [15:30:24]save last doc name /storage/0454/doc_00140228 to /storage/kkm_last_doc_name [15:30:24]save OK [15:30:24]Clear old archive folders... [15:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:24]tlvbuf is 01C95B20 [15:30:24]SAM_PROTO_ClearQueue [15:30:24]wFMCommunicate request_size=4 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 09 00 00 [15:30:24]Write to MH i2c: E2 08 00 53 12 80 09 00 00 00 00 00 00 D7 [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [15:30:24]RAPDU: 90 00 [15:30:24]wFMCommunicate OK [15:30:24]SAM_PROTO_ClearQueue done [15:30:24]KKMCreateOFDPacket [15:30:24]OFDProtocolAddRootSTLVToBuf [15:30:24]FM_MakeSignedData [15:30:24]FM_MakeSignedData [15:30:24]SAM_PROTO_SignData [15:30:24]wFMCommunicate request_size=4 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 0D 01 02 [15:30:24]Write to MH i2c: E2 08 00 54 12 80 0D 01 02 00 00 00 00 DF [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [15:30:24]RAPDU: 90 00 [15:30:24]wFMCommunicate OK [15:30:24]wFMCommunicate request_size=255 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 0F 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 23 02 00 35 04 06 00 41 [15:30:24]Write to MH i2c: E2 02 01 55 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 0F 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 23 02 00 35 04 06 00 41 00 00 FF [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [15:30:24]RAPDU: 90 00 [15:30:24]wFMCommunicate OK [15:30:24]wFMCommunicate request_size=10 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 0D 02 02 05 65 83 A8 BA 56 [15:30:24]Write to MH i2c: E2 0D 00 56 12 80 0D 02 02 05 00 65 83 A8 BA 56 00 00 8C [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [15:30:24]RAPDU: 90 00 [15:30:24]wFMCommunicate OK [15:30:24]wFMCommunicate request_size=4 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 0D 03 02 [15:30:24]Write to MH i2c: E2 08 00 57 12 80 0D 03 02 00 00 00 00 E4 [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 0B 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 0B 00 57 12 00 95 12 B3 A0 55 7E 59 85 90 00 90 [15:30:24]RAPDU: 95 12 B3 A0 55 7E 59 85 90 00 [15:30:24]wFMCommunicate OK [15:30:24]SAM_PROTO_SignData done [15:30:24]FM_MakeSignedData done [15:30:24]CreateOFDProtocolMessage [15:30:24]wFMCommunicate request_size=4 [15:30:24]MH_SAM_APDU [15:30:24]CAPDU: 80 11 00 00 [15:30:24]Write to MH i2c: E2 08 00 58 12 80 11 00 00 00 00 00 00 E4 [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:24]Read from MH i2c: E2 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 17 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: E2 17 00 58 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [15:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:24]wFMCommunicate OK [15:30:24]CreateOFDProtocolMessage done [15:30:24]OFDSenderStorePacket 140228 [15:30:24]StoreOFDPacket docnum=140228 [15:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A 28 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 0F 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 23 02 00 35 04 06 00 41 65 83 A8 BA 56 95 12 B3 A0 55 7E 59 85 [15:30:24]CheckFolder [15:30:24]dirname=/storage/ofd_packets [15:30:24]CheckFolder done [15:30:24]ProducePacketName [15:30:24]name=ofd_packets/00140228 [15:30:24]NVStorageSaveData ofd_packets/00140228 [15:30:24]File name is /storage/ofd_packets/00140228 [15:30:24]Write 301 bytes [15:30:24]NVStorageSaveData done [15:30:24]OFDSenderStorePacket done [15:30:24]KKMCreateOFDPacket done [15:30:24]NVStorageSaveData kkm_last_timestamp [15:30:24]File name is /storage/kkm_last_timestamp [15:30:24]Write 4 bytes [15:30:24]NVStorageSaveData done [15:30:24]ExternCall_PrintAddStr [15:30:24]wPrintStart [15:30:24]Write to MH i2c: 01 00 00 59 12 6B [15:30:24]Write i2c OK [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: 01 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: 01 07 00 [15:30:24]MH_I2C_Read... [15:30:24]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [15:30:24]RasterBufferAndPrint [15:30:24]line Счет N : (1)594084 [15:30:24]line ИНН: 02508201610067 [15:30:24]line Контрольно-Кассовый Чек [15:30:24]line ПРОДАЖА [15:30:24]line ТРК (МРК, ГНК) : 51 [15:30:24]line Товар: 2710124500 [15:30:24]line Аи-95-К-5 [15:30:24]line 8.090 * 74.20 [15:30:24]line = 600.28 [15:30:24]line НДС 12% НСП 1% [15:30:24]line > о реализуемом товаре [15:30:24]line ОКРУГЛЕНИЕ: -0.28 [15:30:24]line ИТОГО: 600.00 [15:30:24]line Внесено: 600.00 [15:30:24]line СДАЧА: 0.00 [15:30:24]line НСП 1% : 5.31 [15:30:24]line НДС 12% : 63.75 [15:30:24]line Наличными: 600.00 [15:30:24]line Безнал.: 0.00 [15:30:24]line Место: АЗС № 136 "Партнер Нефть" [15:30:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:30:24]line СНО: Общий режим [15:30:24]line Чек 245 21.08.2024 15:30 [15:30:24]line Смена: 454 ФФД: 1.0 [15:30:24]line ЗНМ: 0300000067 [15:30:24]line РНМ: 0000000000092569 [15:30:24]line Версия ККМ: 001 [15:30:24]line ФМ: 0000000000871776 [15:30:24]line ФД: 140228 [15:30:24]line ФПД: 71904256375382 [15:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153023&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140228&fm=71904256375382&tin=02508201610067®Number=0000000000092569&sum=60000 [15:30:24]written 0, free lines is 4095 [15:30:24]OFD Sender: Processing packet 140228 [packets to send 137, broken 136] [15:30:24]ProducePacketName [15:30:24]name=ofd_packets/00140228 [15:30:24]OFD Sender: To server: pG, [15:30:24]CommunicateWithHost lk.salyk.kg:30040 [15:30:24]ConnectInit lk.salyk.kg [15:30:24]Connected sock=10 [15:30: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 37 36 0F 01 00 00 8A 28 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 0F 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C4 23 02 00 35 04 06 00 41 65 83 A8 BA 56 95 12 B3 A0 55 7E 59 85 [15:30: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 37 36 4F 00 00 00 73 99 47 00 49 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 37 36 10 04 04 00 C4 23 02 00 F4 03 04 00 A0 AE C5 66 B6 04 01 00 00 4A 86 BB DA BE 53 E2 6F [15:30:25]CommunicateWithHost err = 0 [15:30:25]CheckOFDResponse [15:30:25]1017 (14) - 77093643461234 [15:30:25]1041 (16) - 0000000000871776 [15:30:25]1040 (4) - 140228 [15:30:25]1012 (4) - 21.08.2024 09:08 [15:30:25]1206 (1) - 0 [15:30:25]OFD Sender: Remove packet 140228 [15:30:25]ProducePacketName [15:30:25]name=ofd_packets/00140228 [15:30:25]NVStorageDeleteData [15:30:25]Write to MH i2c: 01 00 00 84 12 96 [15:30:25]Write i2c OK [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: 01 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: 01 07 00 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: 01 07 00 84 12 00 00 00 00 00 DD 0C 86 [15:30:25]RasterBufferAndPrint [15:30:25]line [15:30:25]line [15:30:25]line [15:30:25]line [15:30:25]line [15:30:25]written 0, free lines is 3302 [15:30:25]MH_Cut [15:30:25]Write to MH i2c: D1 01 00 8B 12 01 6F [15:30:25]Write i2c OK [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: D1 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: D1 01 00 [15:30:25]MH_I2C_Read... [15:30:25]Read from MH i2c: D1 01 00 8B 12 00 6E [15:30:25]Write to MH i2c: 01 00 00 8C 12 9E [15:30:25]Write i2c OK [15:30:25]MH_I2C_Read... [15:30:25]OFD Sender: No OFD packet to send [15:30:25]*** Cut start [15:30:25]*** Partial cut [15:30:25]*** CUTSNS_PIN = 1 [15:30:25]*** CUTSNS_PIN = 0 [15:30:26]*** Brake cut motor [15:30:26]Read from MH i2c: 01 [15:30:26]MH_I2C_Read... [15:30:26]*** Stop cut motor [15:30:26]*** Cut end [15:30:26]Read from MH i2c: 01 07 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [15:30:26]process_action close_receipt done [15:30:26]requested_data is exist [15:30:26]produce_requested_data [15:30:26]requested_item fm.sn is exist - process it [15:30:26]wFMCommunicate request_size=4 [15:30:26]MH_SAM_APDU [15:30:26]CAPDU: 80 11 00 00 [15:30:26]Write to MH i2c: E2 08 00 8D 12 80 11 00 00 00 00 00 00 19 [15:30:26]Write i2c OK [15:30:26]MH_I2C_Read... [15:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:26]Read from MH i2c: E2 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 17 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 17 00 8D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [15:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:30:26]wFMCommunicate OK [15:30:26]requested_item fd.num is exist - process it [15:30:26]SAM_PROTO_GetFieldsCounters [15:30:26]wFMCommunicate request_size=4 [15:30:26]MH_SAM_APDU [15:30:26]CAPDU: 80 13 00 00 [15:30:26]Write to MH i2c: E2 08 00 8E 12 80 13 00 00 00 00 00 00 1C [15:30:26]Write i2c OK [15:30:26]MH_I2C_Read... [15:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:26]Read from MH i2c: E2 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 62 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 62 00 8E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:26]wFMCommunicate OK [15:30:26]SAM_PROTO_GetFieldsCounters done [15:30:26]requested_item shift.num is exist - process it [15:30:26]requested_item shift.opened is exist - process it [15:30:26]req_shift_opened [15:30:26]FM_GetShiftState [15:30:26]SAM_PROTO_GetShiftState [15:30:26]wFMCommunicate request_size=4 [15:30:26]MH_SAM_APDU [15:30:26]CAPDU: 80 13 01 00 [15:30:26]Write to MH i2c: E2 08 00 8F 12 80 13 01 00 00 00 00 00 1E [15:30:26]Write i2c OK [15:30:26]MH_I2C_Read... [15:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:26]Read from MH i2c: E2 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 0E 00 [15:30:26]MH_I2C_Read... [15:30:26]Read from MH i2c: E2 0E 00 8F 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [15:30:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:30:26]wFMCommunicate OK [15:30:26]SAM_PROTO_GetShiftState done [15:30:26]FM_GetShiftState done [15:30:26]req_shift_opened done [15:30:26]requested_item shift.open_date is exist - process it [15:30:26]req_shift_open_date [15:30:26]req_shift_open_date done [15:30:26]produce_requested_data done [15:30:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140228,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:30:26]process_action_free close_receipt [15:30:26]json_value_free [15:30:26]json_value_free done [15:30:26]process_json_proto returns [15:30:26]Send response to host [15:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140228,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:30:26]free response buf [15:30:26]execute_script done [15:30:26]execute_script returns [15:30:26]free content buf [15:30:26]Sock 9.Close socket [15:30:26]Sock 9.Thread stoped [15:30:30]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:07]accept exits with 8 [15:33:07]New connection [15:33:07]New thread 3067448676 created [15:33:07]Thread 3067592036 joined [15:33:07]Waiting for new connection... [15:33:07] Sock 8.Parse request [15:33:07]Sock 8.Check first char [15:33:07]Sock 8.First char is OK [15:33:07]request: POST /json_proto HTTP/1.0 [15:33:07]Method: POST [15:33:07]URL: /json_proto [15:33:07]Method is POST - this is cgi request [15:33:07]url: /json_proto [15:33:07]query_string will be loaded in cgi processing [15:33:07]execute_cgi json_proto POST (null) [15:33:07]execute_cgi path=json_proto method=POST [15:33:07]POST find Content-Length [15:33:07]Host: 172.17.45.67:8080 [15:33:07]Content-Length: 677 [15:33:07]Content-Type: application/json [15:33:07] [15:33:07]POST finish read [15:33:07]Found Content-Length = 677 [15:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:07]execute_script... [15:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:07]POST & json_proto [15:33:07]process_json_proto [15:33:07]json parsed OK: [15:33:07]protocol is kg_v1.0 [15:33:07]action value=close_receipt [15:33:07]process_action close_receipt [15:33:07]cmd_close_receipt [15:33:07]MH_GetDate [15:33:07]Write to MH i2c: F0 00 00 90 12 91 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: F0 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: F0 09 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: F0 09 00 90 12 00 B4 08 C6 66 5F 7F 2B 66 F1 [15:33:07]GetLastDocTimeStamp 1724254223 [15:33:07]current date 1724254388 [15:33:07]FM_GetShiftState [15:33:07]SAM_PROTO_GetShiftState [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 01 00 [15:33:07]Write to MH i2c: E2 08 00 91 12 80 13 01 00 00 00 00 00 20 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 91 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [15:33:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetShiftState done [15:33:07]FM_GetShiftState done [15:33:07]opened in 1724200467 [15:33:07]opened+sec_in_day 1724286867 [15:33:07]quantity*price = 50010 [15:33:07]sum+1 = 50012 [15:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 246 21.08.2024 15:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140229 ФПД: 271528134147788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140229&fm=271528134147788&tin=02508201610067®Number=0000000000092569&sum=50000 [15:33:08]StoreToDocumentArchive [15:33:08]shift 454 fd 140229 [15:33:08]save to /storage/0454/doc_00140229 [15:33:08]save last doc name /storage/0454/doc_00140229 to /storage/kkm_last_doc_name [15:33:08]save OK [15:33:08]Clear old archive folders... [15:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:08]tlvbuf is 01C5E820 [15:33:08]SAM_PROTO_ClearQueue [15:33:08]wFMCommunicate request_size=4 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 09 00 00 [15:33:08]Write to MH i2c: E2 08 00 9E 12 80 09 00 00 00 00 00 00 22 [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:08]Read from MH i2c: E2 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [15:33:08]RAPDU: 90 00 [15:33:08]wFMCommunicate OK [15:33:08]SAM_PROTO_ClearQueue done [15:33:08]KKMCreateOFDPacket [15:33:08]OFDProtocolAddRootSTLVToBuf [15:33:08]FM_MakeSignedData [15:33:08]FM_MakeSignedData [15:33:08]SAM_PROTO_SignData [15:33:08]wFMCommunicate request_size=4 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 0D 01 02 [15:33:08]Write to MH i2c: E2 08 00 9F 12 80 0D 01 02 00 00 00 00 2A [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:08]Read from MH i2c: E2 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [15:33:08]RAPDU: 90 00 [15:33:08]wFMCommunicate OK [15:33:08]wFMCommunicate request_size=255 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B4 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 23 02 00 35 04 06 00 F6 [15:33:08]Write to MH i2c: E2 02 01 A0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B4 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 23 02 00 35 04 06 00 F6 00 00 20 [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:08]Read from MH i2c: E2 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [15:33:08]RAPDU: 90 00 [15:33:08]wFMCommunicate OK [15:33:08]wFMCommunicate request_size=10 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 0D 02 02 05 F4 11 FB 7E CC [15:33:08]Write to MH i2c: E2 0D 00 A1 12 80 0D 02 02 05 00 F4 11 FB 7E CC 00 00 81 [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:08]Read from MH i2c: E2 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [15:33:08]RAPDU: 90 00 [15:33:08]wFMCommunicate OK [15:33:08]wFMCommunicate request_size=4 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 0D 03 02 [15:33:08]Write to MH i2c: E2 08 00 A2 12 80 0D 03 02 00 00 00 00 2F [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:08]Read from MH i2c: E2 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 0B 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: E2 0B 00 A2 12 00 91 FB AB 21 20 D0 3A F5 90 00 A7 [15:33:08]RAPDU: 91 FB AB 21 20 D0 3A F5 90 00 [15:33:08]wFMCommunicate OK [15:33:08]SAM_PROTO_SignData done [15:33:08]FM_MakeSignedData done [15:33:08]CreateOFDProtocolMessage [15:33:08]wFMCommunicate request_size=4 [15:33:08]MH_SAM_APDU [15:33:08]CAPDU: 80 11 00 00 [15:33:08]Write to MH i2c: E2 08 00 A3 12 80 11 00 00 00 00 00 00 2F [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 17 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 17 00 A3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [15:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:33:09]wFMCommunicate OK [15:33:09]CreateOFDProtocolMessage done [15:33:09]OFDSenderStorePacket 140229 [15:33:09]StoreOFDPacket docnum=140229 [15:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 36 07 01 2E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B4 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 23 02 00 35 04 06 00 F6 F4 11 FB 7E CC 91 FB AB 21 20 D0 3A F5 [15:33:09]CheckFolder [15:33:09]dirname=/storage/ofd_packets [15:33:09]CheckFolder done [15:33:09]ProducePacketName [15:33:09]name=ofd_packets/00140229 [15:33:09]NVStorageSaveData ofd_packets/00140229 [15:33:09]File name is /storage/ofd_packets/00140229 [15:33:09]Write 301 bytes [15:33:09]NVStorageSaveData done [15:33:09]OFDSenderStorePacket done [15:33:09]KKMCreateOFDPacket done [15:33:09]NVStorageSaveData kkm_last_timestamp [15:33:09]File name is /storage/kkm_last_timestamp [15:33:09]Write 4 bytes [15:33:09]NVStorageSaveData done [15:33:09]ExternCall_PrintAddStr [15:33:09]wPrintStart [15:33:09]Write to MH i2c: 01 00 00 A4 12 B6 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 07 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 FF 0F CB [15:33:09]RasterBufferAndPrint [15:33:09]line Счет N : (1)594086 [15:33:09]line ИНН: 02508201610067 [15:33:09]line Контрольно-Кассовый Чек [15:33:09]line ПРОДАЖА [15:33:09]line ТРК (МРК, ГНК) : 51 [15:33:09]line Товар: 2710124500 [15:33:09]line Аи-95-К-5 [15:33:09]line 6.740 * 74.20 [15:33:09]line = 500.11 [15:33:09]line НДС 12% НСП 1% [15:33:09]line > о реализуемом товаре [15:33:09]line ОКРУГЛЕНИЕ: -0.11 [15:33:09]line ИТОГО: 500.00 [15:33:09]line Внесено: 500.00 [15:33:09]line СДАЧА: 0.00 [15:33:09]line НСП 1% : 4.43 [15:33:09]line НДС 12% : 53.11 [15:33:09]line Наличными: 500.00 [15:33:09]line Безнал.: 0.00 [15:33:09]line Место: АЗС № 136 "Партнер Нефть" [15:33:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:33:09]line СНО: Общий режим [15:33:09]line Чек 246 21.08.2024 15:33 [15:33:09]line Смена: 454 ФФД: 1.0 [15:33:09]line ЗНМ: 0300000067 [15:33:09]line РНМ: 0000000000092569 [15:33:09]line Версия ККМ: 001 [15:33:09]line ФМ: 0000000000871776 [15:33:09]line ФД: 140229 [15:33:09]line ФПД: 271528134147788 [15:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153308&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140229&fm=271528134147788&tin=02508201610067®Number=0000000000092569&sum=50000 [15:33:09]written 0, free lines is 4095 [15:33:09]OFD Sender: Processing packet 140229 [packets to send 137, broken 136] [15:33:09]ProducePacketName [15:33:09]name=ofd_packets/00140229 [15:33:09]OFD Sender: To server: pG, [15:33:09]CommunicateWithHost lk.salyk.kg:30040 [15:33:09]ConnectInit lk.salyk.kg [15:33:09]Connected sock=10 [15:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5E 36 07 01 2E 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B4 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 23 02 00 35 04 06 00 F6 F4 11 FB 7E CC 91 FB AB 21 20 D0 3A F5 [15:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A0 80 47 00 42 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C5 23 02 00 F4 03 04 00 44 AF C5 66 B6 04 01 00 00 C8 4F 24 E6 A8 3B EE 76 [15:33:09]CommunicateWithHost err = 0 [15:33:09]CheckOFDResponse [15:33:09]1017 (14) - 77093643461234 [15:33:09]1041 (16) - 0000000000871776 [15:33:09]1040 (4) - 140229 [15:33:09]1012 (4) - 21.08.2024 09:11 [15:33:09]1206 (1) - 0 [15:33:09]OFD Sender: Remove packet 140229 [15:33:09]ProducePacketName [15:33:09]name=ofd_packets/00140229 [15:33:09]NVStorageDeleteData [15:33:09]Write to MH i2c: 01 00 00 CF 12 E1 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 07 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 07 00 CF 12 00 00 00 00 00 CC 0C C0 [15:33:09]RasterBufferAndPrint [15:33:09]line [15:33:09]line [15:33:09]line [15:33:09]line [15:33:09]line [15:33:09]written 0, free lines is 3282 [15:33:09]MH_Cut [15:33:09]Write to MH i2c: D1 01 00 D6 12 01 BA [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: D1 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: D1 01 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: D1 01 00 D6 12 00 B9 [15:33:09]Write to MH i2c: 01 00 00 D7 12 E9 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:10]OFD Sender: No OFD packet to send [15:33:10]*** Cut start [15:33:10]*** Partial cut [15:33:10]*** CUTSNS_PIN = 1 [15:33:10]*** CUTSNS_PIN = 0 [15:33:10]*** Brake cut motor [15:33:11]Read from MH i2c: 01 [15:33:11]MH_I2C_Read... [15:33:11]*** Stop cut motor [15:33:11]*** Cut end [15:33:11]Read from MH i2c: 01 07 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [15:33:11]process_action close_receipt done [15:33:11]requested_data is exist [15:33:11]produce_requested_data [15:33:11]requested_item fm.sn is exist - process it [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 11 00 00 [15:33:11]Write to MH i2c: E2 08 00 D8 12 80 11 00 00 00 00 00 00 64 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 D8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [15:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:33:11]wFMCommunicate OK [15:33:11]requested_item fd.num is exist - process it [15:33:11]SAM_PROTO_GetFieldsCounters [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 13 00 00 [15:33:11]Write to MH i2c: E2 08 00 D9 12 80 13 00 00 00 00 00 00 67 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 62 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 62 00 D9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:11]wFMCommunicate OK [15:33:11]SAM_PROTO_GetFieldsCounters done [15:33:11]requested_item shift.num is exist - process it [15:33:11]requested_item shift.opened is exist - process it [15:33:11]req_shift_opened [15:33:11]FM_GetShiftState [15:33:11]SAM_PROTO_GetShiftState [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 13 01 00 [15:33:11]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0E 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [15:33:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:33:11]wFMCommunicate OK [15:33:11]SAM_PROTO_GetShiftState done [15:33:11]FM_GetShiftState done [15:33:11]req_shift_opened done [15:33:11]requested_item shift.open_date is exist - process it [15:33:11]req_shift_open_date [15:33:11]req_shift_open_date done [15:33:11]produce_requested_data done [15:33:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140229,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:33:11]process_action_free close_receipt [15:33:11]json_value_free [15:33:11]json_value_free done [15:33:11]process_json_proto returns [15:33:11]Send response to host [15:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140229,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:33:11]free response buf [15:33:11]execute_script done [15:33:11]execute_script returns [15:33:11]free content buf [15:33:11]Sock 8.Close socket [15:33:11]Sock 8.Thread stoped [15:33:12]accept exits with 9 [15:33:12]New connection [15:33:12]New thread 3067592036 created [15:33:12]Thread 3067448676 joined [15:33:12]Waiting for new connection... [15:33:12] Sock 9.Parse request [15:33:12]Sock 9.Check first char [15:33:12]Sock 9.First char is OK [15:33:12]request: POST /json_proto HTTP/1.0 [15:33:12]Method: POST [15:33:12]URL: /json_proto [15:33:12]Method is POST - this is cgi request [15:33:12]url: /json_proto [15:33:12]query_string will be loaded in cgi processing [15:33:12]execute_cgi json_proto POST (null) [15:33:12]execute_cgi path=json_proto method=POST [15:33:12]POST find Content-Length [15:33:12]Host: 172.17.45.67:8080 [15:33:12]Content-Length: 677 [15:33:12]Content-Type: application/json [15:33:12] [15:33:12]POST finish read [15:33:12]Found Content-Length = 677 [15:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]execute_script... [15: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)594087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]POST & json_proto [15:33:12]process_json_proto [15:33:12]json parsed OK: [15:33:12]protocol is kg_v1.0 [15:33:12]action value=close_receipt [15:33:12]process_action close_receipt [15:33:12]cmd_close_receipt [15:33:12]MH_GetDate [15:33:12]Write to MH i2c: F0 00 00 DB 12 DC [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 09 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: F0 09 00 DB 12 00 B9 08 C6 66 5F 7F 2B 66 41 [15:33:12]GetLastDocTimeStamp 1724254388 [15:33:12]current date 1724254393 [15:33:12]FM_GetShiftState [15:33:12]SAM_PROTO_GetShiftState [15:33:12]wFMCommunicate request_size=4 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 13 01 00 [15:33:12]Write to MH i2c: E2 08 00 DC 12 80 13 01 00 00 00 00 00 6B [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:12]Read from MH i2c: E2 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 0E 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 0E 00 DC 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [15:33:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:33:12]wFMCommunicate OK [15:33:12]SAM_PROTO_GetShiftState done [15:33:12]FM_GetShiftState done [15:33:12]opened in 1724200467 [15:33:12]opened+sec_in_day 1724286867 [15:33:12]quantity*price = 50036 [15:33:12]sum+1 = 50037 [15:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 247 21.08.2024 15:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140230 ФПД: 27067729822686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140230&fm=27067729822686&tin=02508201610067®Number=0000000000092569&sum=50000 [15:33:13]StoreToDocumentArchive [15:33:13]shift 454 fd 140230 [15:33:13]save to /storage/0454/doc_00140230 [15:33:13]save last doc name /storage/0454/doc_00140230 to /storage/kkm_last_doc_name [15:33:13]save OK [15:33:13]Clear old archive folders... [15:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:13]tlvbuf is 01C777F0 [15:33:13]SAM_PROTO_ClearQueue [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 09 00 00 [15:33:13]Write to MH i2c: E2 08 00 E9 12 80 09 00 00 00 00 00 00 6D [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_ClearQueue done [15:33:13]KKMCreateOFDPacket [15:33:13]OFDProtocolAddRootSTLVToBuf [15:33:13]FM_MakeSignedData [15:33:13]FM_MakeSignedData [15:33:13]SAM_PROTO_SignData [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 01 02 [15:33:13]Write to MH i2c: E2 08 00 EA 12 80 0D 01 02 00 00 00 00 75 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]wFMCommunicate request_size=255 [15:33:13]MH_SAM_APDU [15:33: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 23 02 00 35 04 06 00 18 [15:33:13]Write to MH i2c: E2 02 01 EB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 23 02 00 35 04 06 00 18 00 00 AC [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:14]Read from MH i2c: E2 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 03 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 03 00 EB 12 00 90 00 71 [15:33:14]RAPDU: 90 00 [15:33:14]wFMCommunicate OK [15:33:14]wFMCommunicate request_size=10 [15:33:14]MH_SAM_APDU [15:33:14]CAPDU: 80 0D 02 02 05 9E 32 6B C3 DE [15:33:14]Write to MH i2c: E2 0D 00 EC 12 80 0D 02 02 05 00 9E 32 6B C3 DE 00 00 5E [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:14]Read from MH i2c: E2 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 03 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [15:33:14]RAPDU: 90 00 [15:33:14]wFMCommunicate OK [15:33:14]wFMCommunicate request_size=4 [15:33:14]MH_SAM_APDU [15:33:14]CAPDU: 80 0D 03 02 [15:33:14]Write to MH i2c: E2 08 00 ED 12 80 0D 03 02 00 00 00 00 7A [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:14]Read from MH i2c: E2 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 0B 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 0B 00 ED 12 00 5E 68 F0 6B 64 A1 3D 5C 90 00 3A [15:33:14]RAPDU: 5E 68 F0 6B 64 A1 3D 5C 90 00 [15:33:14]wFMCommunicate OK [15:33:14]SAM_PROTO_SignData done [15:33:14]FM_MakeSignedData done [15:33:14]CreateOFDProtocolMessage [15:33:14]wFMCommunicate request_size=4 [15:33:14]MH_SAM_APDU [15:33:14]CAPDU: 80 11 00 00 [15:33:14]Write to MH i2c: E2 08 00 EE 12 80 11 00 00 00 00 00 00 7A [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:14]Read from MH i2c: E2 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 17 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: E2 17 00 EE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [15:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:33:14]wFMCommunicate OK [15:33:14]CreateOFDProtocolMessage done [15:33:14]OFDSenderStorePacket 140230 [15:33:14]StoreOFDPacket docnum=140230 [15:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 26 BB 07 01 77 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 23 02 00 35 04 06 00 18 9E 32 6B C3 DE 5E 68 F0 6B 64 A1 3D 5C [15:33:14]CheckFolder [15:33:14]dirname=/storage/ofd_packets [15:33:14]CheckFolder done [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00140230 [15:33:14]NVStorageSaveData ofd_packets/00140230 [15:33:14]File name is /storage/ofd_packets/00140230 [15:33:14]Write 301 bytes [15:33:14]NVStorageSaveData done [15:33:14]OFDSenderStorePacket done [15:33:14]KKMCreateOFDPacket done [15:33:14]NVStorageSaveData kkm_last_timestamp [15:33:14]File name is /storage/kkm_last_timestamp [15:33:14]Write 4 bytes [15:33:14]NVStorageSaveData done [15:33:14]ExternCall_PrintAddStr [15:33:14]wPrintStart [15:33:14]Write to MH i2c: 01 00 00 EF 12 01 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 FF 0F 16 [15:33:14]RasterBufferAndPrint [15:33:14]line Счет N : (1)594087 [15:33:14]line ИНН: 02508201610067 [15:33:14]line Контрольно-Кассовый Чек [15:33:14]line ПРОДАЖА [15:33:14]line ТРК (МРК, ГНК) : 62 [15:33:14]line Товар: 2710124130 [15:33:14]line Аи-92-К-5 [15:33:14]line 7.380 * 67.80 [15:33:14]line = 500.36 [15:33:14]line НДС 12% НСП 1% [15:33:14]line > о реализуемом товаре [15:33:14]line ОКРУГЛЕНИЕ: -0.36 [15:33:14]line ИТОГО: 500.00 [15:33:14]line Внесено: 500.00 [15:33:14]line СДАЧА: 0.00 [15:33:14]line НСП 1% : 4.43 [15:33:14]line НДС 12% : 53.14 [15:33:14]line Наличными: 500.00 [15:33:14]line Безнал.: 0.00 [15:33:14]line Место: АЗС № 136 "Партнер Нефть" [15:33:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:33:14]line СНО: Общий режим [15:33:14]line Чек 247 21.08.2024 15:33 [15:33:14]line Смена: 454 ФФД: 1.0 [15:33:14]line ЗНМ: 0300000067 [15:33:14]line РНМ: 0000000000092569 [15:33:14]line Версия ККМ: 001 [15:33:14]line ФМ: 0000000000871776 [15:33:14]line ФД: 140230 [15:33:14]line ФПД: 27067729822686 [15:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140230&fm=27067729822686&tin=02508201610067®Number=0000000000092569&sum=50000 [15:33:14]written 0, free lines is 4095 [15:33:14]OFD Sender: Processing packet 140230 [packets to send 137, broken 136] [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00140230 [15:33:14]OFD Sender: To server: pG, [15:33:14]CommunicateWithHost lk.salyk.kg:30040 [15:33:14]ConnectInit lk.salyk.kg [15:33:14]Connected sock=10 [15: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 37 36 0F 01 00 00 26 BB 07 01 77 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 08 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C6 23 02 00 35 04 06 00 18 9E 32 6B C3 DE 5E 68 F0 6B 64 A1 3D 5C [15:33: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 37 36 4F 00 00 00 0D 3C 47 00 67 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 37 36 10 04 04 00 C6 23 02 00 F4 03 04 00 49 AF C5 66 B6 04 01 00 00 1F E3 ED 4E 7C FE 7B 5E [15:33:14]CommunicateWithHost err = 0 [15:33:14]CheckOFDResponse [15:33:14]1017 (14) - 77093643461234 [15:33:14]1041 (16) - 0000000000871776 [15:33:14]1040 (4) - 140230 [15:33:14]1012 (4) - 21.08.2024 09:11 [15:33:14]1206 (1) - 0 [15:33:14]OFD Sender: Remove packet 140230 [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00140230 [15:33:14]NVStorageDeleteData [15:33:14]Write to MH i2c: 01 00 00 1A 13 2D [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: 01 07 00 1A 13 00 00 00 00 00 F2 0C 32 [15:33:14]RasterBufferAndPrint [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]line [15:33:14]written 0, free lines is 3327 [15:33:14]MH_Cut [15:33:14]Write to MH i2c: D1 01 00 21 13 01 06 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 01 00 [15:33:14]MH_I2C_Read... [15:33:14]Read from MH i2c: D1 01 00 21 13 00 05 [15:33:14]Write to MH i2c: 01 00 00 22 13 35 [15:33:14]Write i2c OK [15:33:14]MH_I2C_Read... [15:33:15]OFD Sender: No OFD packet to send [15:33:15]*** Cut start [15:33:15]*** Partial cut [15:33:15]*** CUTSNS_PIN = 1 [15:33:15]*** CUTSNS_PIN = 0 [15:33:15]*** Brake cut motor [15:33:16]Read from MH i2c: 01 [15:33:16]MH_I2C_Read... [15:33:16]*** Stop cut motor [15:33:16]*** Cut end [15:33:16]Read from MH i2c: 01 07 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [15:33:16]process_action close_receipt done [15:33:16]requested_data is exist [15:33:16]produce_requested_data [15:33:16]requested_item fm.sn is exist - process it [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 11 00 00 [15:33:16]Write to MH i2c: E2 08 00 23 13 80 11 00 00 00 00 00 00 B0 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 17 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 17 00 23 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [15:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:33:16]wFMCommunicate OK [15:33:16]requested_item fd.num is exist - process it [15:33:16]SAM_PROTO_GetFieldsCounters [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 13 00 00 [15:33:16]Write to MH i2c: E2 08 00 24 13 80 13 00 00 00 00 00 00 B3 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 62 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 62 00 24 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_GetFieldsCounters done [15:33:16]requested_item shift.num is exist - process it [15:33:16]requested_item shift.opened is exist - process it [15:33:16]req_shift_opened [15:33:16]FM_GetShiftState [15:33:16]SAM_PROTO_GetShiftState [15:33:16]wFMCommunicate request_size=4 [15:33:16]MH_SAM_APDU [15:33:16]CAPDU: 80 13 01 00 [15:33:16]Write to MH i2c: E2 08 00 25 13 80 13 01 00 00 00 00 00 B5 [15:33:16]Write i2c OK [15:33:16]MH_I2C_Read... [15:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:16]Read from MH i2c: E2 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 [15:33:16]MH_I2C_Read... [15:33:16]Read from MH i2c: E2 0E 00 25 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 35 [15:33:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:33:16]wFMCommunicate OK [15:33:16]SAM_PROTO_GetShiftState done [15:33:16]FM_GetShiftState done [15:33:16]req_shift_opened done [15:33:16]requested_item shift.open_date is exist - process it [15:33:16]req_shift_open_date [15:33:16]req_shift_open_date done [15:33:16]produce_requested_data done [15:33:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140230,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:33:16]process_action_free close_receipt [15:33:16]json_value_free [15:33:16]json_value_free done [15:33:16]process_json_proto returns [15:33:16]Send response to host [15:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140230,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:33:16]free response buf [15:33:16]execute_script done [15:33:16]execute_script returns [15:33:16]free content buf [15:33:16]Sock 9.Close socket [15:33:16]Sock 9.Thread stoped [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [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:35:00]OFD Sender: No OFD packet to send [15:35:03]accept exits with 8 [15:35:03]New connection [15:35:03]New thread 3067448676 created [15:35:03]Thread 3067592036 joined [15:35:03]Waiting for new connection... [15:35:03] Sock 8.Parse request [15:35:03]Sock 8.Check first char [15:35:03]Sock 8.First char is OK [15:35:03]request: POST /json_proto HTTP/1.0 [15:35:03]Method: POST [15:35:03]URL: /json_proto [15:35:03]Method is POST - this is cgi request [15:35:03]url: /json_proto [15:35:03]query_string will be loaded in cgi processing [15:35:03]execute_cgi json_proto POST (null) [15:35:03]execute_cgi path=json_proto method=POST [15:35:03]POST find Content-Length [15:35:03]Host: 172.17.45.67:8080 [15:35:03]Content-Length: 677 [15:35:03]Content-Type: application/json [15:35:03] [15:35:03]POST finish read [15:35:03]Found Content-Length = 677 [15:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:03]execute_script... [15:35: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)594088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.770, "sum" : 120.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:03]POST & json_proto [15:35:03]process_json_proto [15:35:03]json parsed OK: [15:35:03]protocol is kg_v1.0 [15:35:03]action value=close_receipt [15:35:03]process_action close_receipt [15:35:03]cmd_close_receipt [15:35:03]MH_GetDate [15:35:03]Write to MH i2c: F0 00 00 26 13 28 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: F0 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: F0 09 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: F0 09 00 26 13 00 28 09 C6 66 5F 7F 2B 66 FD [15:35:03]GetLastDocTimeStamp 1724254393 [15:35:03]current date 1724254504 [15:35:03]FM_GetShiftState [15:35:03]SAM_PROTO_GetShiftState [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 13 01 00 [15:35:03]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0E 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 37 [15:35:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:35:03]wFMCommunicate OK [15:35:03]SAM_PROTO_GetShiftState done [15:35:03]FM_GetShiftState done [15:35:03]opened in 1724200467 [15:35:03]opened+sec_in_day 1724286867 [15:35:03]quantity*price = 12000 [15:35:03]sum+1 = 12002 [15:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 248 21.08.2024 15:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140231 ФПД: 178709210791566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153504&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140231&fm=178709210791566&tin=02508201610067®Number=0000000000092569&sum=12000 [15:35:04]StoreToDocumentArchive [15:35:04]shift 454 fd 140231 [15:35:04]save to /storage/0454/doc_00140231 [15:35:04]save last doc name /storage/0454/doc_00140231 to /storage/kkm_last_doc_name [15:35:04]save OK [15:35:04]Clear old archive folders... [15:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:04]tlvbuf is 01C778E0 [15:35:04]SAM_PROTO_ClearQueue [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 09 00 00 [15:35:04]Write to MH i2c: E2 08 00 34 13 80 09 00 00 00 00 00 00 B9 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [15:35:04]RAPDU: 90 00 [15:35:04]wFMCommunicate OK [15:35:04]SAM_PROTO_ClearQueue done [15:35:04]KKMCreateOFDPacket [15:35:04]OFDProtocolAddRootSTLVToBuf [15:35:04]FM_MakeSignedData [15:35:04]FM_MakeSignedData [15:35:04]SAM_PROTO_SignData [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 0D 01 02 [15:35:04]Write to MH i2c: E2 08 00 35 13 80 0D 01 02 00 00 00 00 C1 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 35 13 00 90 00 BC [15:35:04]RAPDU: 90 00 [15:35:04]wFMCommunicate OK [15:35:04]wFMCommunicate request_size=255 [15:35:04]MH_SAM_APDU [15:35: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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 28 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 23 02 00 35 04 06 00 A2 [15:35:04]Write to MH i2c: E2 02 01 36 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 28 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 23 02 00 35 04 06 00 A2 00 00 98 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [15:35:04]RAPDU: 90 00 [15:35:04]wFMCommunicate OK [15:35:04]wFMCommunicate request_size=10 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 0D 02 02 05 88 FB 06 FE 8E [15:35:04]Write to MH i2c: E2 0D 00 37 13 80 0D 02 02 05 00 88 FB 06 FE 8E 00 00 E3 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [15:35:04]RAPDU: 90 00 [15:35:04]wFMCommunicate OK [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 0D 03 02 [15:35:04]Write to MH i2c: E2 08 00 38 13 80 0D 03 02 00 00 00 00 C6 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 0B 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 0B 00 38 13 00 C5 8D 9D 1C 3D 8F 76 B8 90 00 CC [15:35:04]RAPDU: C5 8D 9D 1C 3D 8F 76 B8 90 00 [15:35:04]wFMCommunicate OK [15:35:04]SAM_PROTO_SignData done [15:35:04]FM_MakeSignedData done [15:35:04]CreateOFDProtocolMessage [15:35:04]wFMCommunicate request_size=4 [15:35:04]MH_SAM_APDU [15:35:04]CAPDU: 80 11 00 00 [15:35:04]Write to MH i2c: E2 08 00 39 13 80 11 00 00 00 00 00 00 C6 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:04]Read from MH i2c: E2 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 17 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: E2 17 00 39 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [15:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:35:04]wFMCommunicate OK [15:35:04]CreateOFDProtocolMessage done [15:35:04]OFDSenderStorePacket 140231 [15:35:04]StoreOFDPacket docnum=140231 [15:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 D5 07 01 38 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 28 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 23 02 00 35 04 06 00 A2 88 FB 06 FE 8E C5 8D 9D 1C 3D 8F 76 B8 [15:35:04]CheckFolder [15:35:04]dirname=/storage/ofd_packets [15:35:04]CheckFolder done [15:35:04]ProducePacketName [15:35:04]name=ofd_packets/00140231 [15:35:04]NVStorageSaveData ofd_packets/00140231 [15:35:04]File name is /storage/ofd_packets/00140231 [15:35:04]Write 301 bytes [15:35:04]NVStorageSaveData done [15:35:04]OFDSenderStorePacket done [15:35:04]KKMCreateOFDPacket done [15:35:04]NVStorageSaveData kkm_last_timestamp [15:35:04]File name is /storage/kkm_last_timestamp [15:35:04]Write 4 bytes [15:35:04]NVStorageSaveData done [15:35:04]ExternCall_PrintAddStr [15:35:04]wPrintStart [15:35:04]Write to MH i2c: 01 00 00 3A 13 4D [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: 01 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: 01 07 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 FF 0F 62 [15:35:04]RasterBufferAndPrint [15:35:04]line Счет N : (1)594088 [15:35:04]line ИНН: 02508201610067 [15:35:04]line Контрольно-Кассовый Чек [15:35:04]line ПРОДАЖА [15:35:04]line ТРК (МРК, ГНК) : 42 [15:35:04]line Товар: 2710124130 [15:35:04]line Аи-92-К-5 [15:35:04]line 1.770 * 67.80 [15:35:04]line = 120.01 [15:35:04]line НДС 12% НСП 1% [15:35:04]line > о реализуемом товаре [15:35:04]line ОКРУГЛЕНИЕ: -0.01 [15:35:04]line ИТОГО: 120.00 [15:35:04]line Внесено: 120.00 [15:35:04]line СДАЧА: 0.00 [15:35:04]line НСП 1% : 1.06 [15:35:04]line НДС 12% : 12.74 [15:35:04]line Наличными: 120.00 [15:35:04]line Безнал.: 0.00 [15:35:04]line Место: АЗС № 136 "Партнер Нефть" [15:35:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:35:04]line СНО: Общий режим [15:35:04]line Чек 248 21.08.2024 15:35 [15:35:04]line Смена: 454 ФФД: 1.0 [15:35:04]line ЗНМ: 0300000067 [15:35:04]line РНМ: 0000000000092569 [15:35:04]line Версия ККМ: 001 [15:35:04]line ФМ: 0000000000871776 [15:35:04]line ФД: 140231 [15:35:04]line ФПД: 178709210791566 [15:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153504&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140231&fm=178709210791566&tin=02508201610067®Number=0000000000092569&sum=12000 [15:35:04]written 0, free lines is 4095 [15:35:04]OFD Sender: Processing packet 140231 [packets to send 137, broken 136] [15:35:04]ProducePacketName [15:35:04]name=ofd_packets/00140231 [15:35:04]OFD Sender: To server: pG, [15:35:04]CommunicateWithHost lk.salyk.kg:30040 [15:35:04]ConnectInit lk.salyk.kg [15:35:05]Connected sock=11 [15:35: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 37 36 0F 01 00 00 30 D5 07 01 38 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 EA 06 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E1 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 28 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 23 02 00 35 04 06 00 A2 88 FB 06 FE 8E C5 8D 9D 1C 3D 8F 76 B8 [15:35:05]Write to MH i2c: 01 00 00 65 13 78 [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: 01 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: 01 07 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: 01 07 00 65 13 00 00 00 00 00 CE 0C 59 [15:35:05]RasterBufferAndPrint [15:35:05]line [15:35:05]line [15:35:05]line [15:35:05]line [15:35:05]line [15:35:05]written 0, free lines is 3286 [15:35:05]MH_Cut [15:35:05]Write to MH i2c: D1 01 00 6C 13 01 51 [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: D1 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: D1 01 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: D1 01 00 6C 13 00 50 [15:35:05]Write to MH i2c: 01 00 00 6D 13 80 [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 67 47 00 1C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C7 23 02 00 F4 03 04 00 B8 AF C5 66 B6 04 01 00 00 A8 E7 D3 BB DC C0 57 49 [15:35:05]CommunicateWithHost err = 0 [15:35:05]CheckOFDResponse [15:35:05]1017 (14) - 77093643461234 [15:35:05]1041 (16) - 0000000000871776 [15:35:05]1040 (4) - 140231 [15:35:05]1012 (4) - 21.08.2024 09:13 [15:35:05]1206 (1) - 0 [15:35:05]OFD Sender: Remove packet 140231 [15:35:05]ProducePacketName [15:35:05]name=ofd_packets/00140231 [15:35:05]NVStorageDeleteData [15:35:05]OFD Sender: No OFD packet to send [15:35:05]*** Cut start [15:35:05]*** Partial cut [15:35:05]*** CUTSNS_PIN = 1 [15:35:05]*** CUTSNS_PIN = 0 [15:35:06]*** Brake cut motor [15:35:06]Read from MH i2c: 01 [15:35:06]MH_I2C_Read... [15:35:06]*** Stop cut motor [15:35:06]*** Cut end [15:35:06]Read from MH i2c: 01 07 00 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: 01 07 00 6D 13 00 00 00 00 00 FF 0F 95 [15:35:06]process_action close_receipt done [15:35:06]requested_data is exist [15:35:06]produce_requested_data [15:35:06]requested_item fm.sn is exist - process it [15:35:06]wFMCommunicate request_size=4 [15:35:06]MH_SAM_APDU [15:35:06]CAPDU: 80 11 00 00 [15:35:06]Write to MH i2c: E2 08 00 6E 13 80 11 00 00 00 00 00 00 FB [15:35:06]Write i2c OK [15:35:06]MH_I2C_Read... [15:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:06]Read from MH i2c: E2 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 17 00 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 17 00 6E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [15:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:35:06]wFMCommunicate OK [15:35:06]requested_item fd.num is exist - process it [15:35:06]SAM_PROTO_GetFieldsCounters [15:35:06]wFMCommunicate request_size=4 [15:35:06]MH_SAM_APDU [15:35:06]CAPDU: 80 13 00 00 [15:35:06]Write to MH i2c: E2 08 00 6F 13 80 13 00 00 00 00 00 00 FE [15:35:06]Write i2c OK [15:35:06]MH_I2C_Read... [15:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:06]Read from MH i2c: E2 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 62 00 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 62 00 6F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [15:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:06]wFMCommunicate OK [15:35:06]SAM_PROTO_GetFieldsCounters done [15:35:06]requested_item shift.num is exist - process it [15:35:06]requested_item shift.opened is exist - process it [15:35:06]req_shift_opened [15:35:06]FM_GetShiftState [15:35:06]SAM_PROTO_GetShiftState [15:35:06]wFMCommunicate request_size=4 [15:35:06]MH_SAM_APDU [15:35:06]CAPDU: 80 13 01 00 [15:35:06]Write to MH i2c: E2 08 00 70 13 80 13 01 00 00 00 00 00 00 [15:35:06]Write i2c OK [15:35:06]MH_I2C_Read... [15:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:06]Read from MH i2c: E2 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 0E 00 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 0E 00 70 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 80 [15:35:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:35:06]wFMCommunicate OK [15:35:06]SAM_PROTO_GetShiftState done [15:35:06]FM_GetShiftState done [15:35:06]req_shift_opened done [15:35:06]requested_item shift.open_date is exist - process it [15:35:06]req_shift_open_date [15:35:06]req_shift_open_date done [15:35:06]produce_requested_data done [15:35:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140231,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:35:06]process_action_free close_receipt [15:35:06]json_value_free [15:35:06]json_value_free done [15:35:06]process_json_proto returns [15:35:06]Send response to host [15:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140231,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:35:06]free response buf [15:35:06]execute_script done [15:35:06]execute_script returns [15:35:06]free content buf [15:35:06]Sock 8.Close socket [15:35:06]Sock 8.Thread stoped [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15: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:14]accept exits with 9 [15:37:14]New connection [15:37:14]New thread 3067592036 created [15:37:14]Thread 3067448676 joined [15:37:14]Waiting for new connection... [15:37:14] Sock 9.Parse request [15:37:14]Sock 9.Check first char [15:37:14]Sock 9.First char is OK [15:37:14]request: POST /json_proto HTTP/1.0 [15:37:14]Method: POST [15:37:14]URL: /json_proto [15:37:14]Method is POST - this is cgi request [15:37:14]url: /json_proto [15:37:14]query_string will be loaded in cgi processing [15:37:14]execute_cgi json_proto POST (null) [15:37:14]execute_cgi path=json_proto method=POST [15:37:14]POST find Content-Length [15:37:14]Host: 172.17.45.67:8080 [15:37:14]Content-Length: 677 [15:37:14]Content-Type: application/json [15:37:14] [15:37:14]POST finish read [15:37:14]Found Content-Length = 677 [15:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:14]execute_script... [15:37: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)594089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:14]POST & json_proto [15:37:14]process_json_proto [15:37:14]json parsed OK: [15:37:14]protocol is kg_v1.0 [15:37:14]action value=close_receipt [15:37:14]process_action close_receipt [15:37:14]cmd_close_receipt [15:37:14]MH_GetDate [15:37:14]Write to MH i2c: F0 00 00 71 13 73 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: F0 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: F0 09 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: F0 09 00 71 13 00 AB 09 C6 66 5F 7F 2B 66 CB [15:37:14]GetLastDocTimeStamp 1724254504 [15:37:14]current date 1724254635 [15:37:14]FM_GetShiftState [15:37:14]SAM_PROTO_GetShiftState [15:37:14]wFMCommunicate request_size=4 [15:37:14]MH_SAM_APDU [15:37:14]CAPDU: 80 13 01 00 [15:37:14]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [15:37:14]Write i2c OK [15:37:14]MH_I2C_Read... [15:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:14]Read from MH i2c: E2 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 0E 00 [15:37:14]MH_I2C_Read... [15:37:14]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 82 [15:37:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:37:14]wFMCommunicate OK [15:37:14]SAM_PROTO_GetShiftState done [15:37:14]FM_GetShiftState done [15:37:14]opened in 1724200467 [15:37:14]opened+sec_in_day 1724286867 [15:37:14]quantity*price = 30035 [15:37:14]sum+1 = 30036 [15:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 249 21.08.2024 15:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140232 ФПД: 94328216036257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153715&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140232&fm=94328216036257&tin=02508201610067®Number=0000000000092569&sum=30000 [15:37:15]StoreToDocumentArchive [15:37:15]shift 454 fd 140232 [15:37:15]save to /storage/0454/doc_00140232 [15:37:15]save last doc name /storage/0454/doc_00140232 to /storage/kkm_last_doc_name [15:37:15]save OK [15:37:15]Clear old archive folders... [15:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:15]tlvbuf is B6F44160 [15:37:15]SAM_PROTO_ClearQueue [15:37:15]wFMCommunicate request_size=4 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 09 00 00 [15:37:15]Write to MH i2c: E2 08 00 7F 13 80 09 00 00 00 00 00 00 04 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [15:37:15]RAPDU: 90 00 [15:37:15]wFMCommunicate OK [15:37:15]SAM_PROTO_ClearQueue done [15:37:15]KKMCreateOFDPacket [15:37:15]OFDProtocolAddRootSTLVToBuf [15:37:15]FM_MakeSignedData [15:37:15]FM_MakeSignedData [15:37:15]SAM_PROTO_SignData [15:37:15]wFMCommunicate request_size=4 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 0D 01 02 [15:37:15]Write to MH i2c: E2 08 00 80 13 80 0D 01 02 00 00 00 00 0C [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 80 13 00 90 00 07 [15:37:15]RAPDU: 90 00 [15:37:15]wFMCommunicate OK [15:37:15]wFMCommunicate request_size=255 [15:37:15]MH_SAM_APDU [15:37: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 AB 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 23 02 00 35 04 06 00 55 [15:37:15]Write to MH i2c: E2 02 01 81 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 AB 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 23 02 00 35 04 06 00 55 00 00 96 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 81 13 00 90 00 08 [15:37:15]RAPDU: 90 00 [15:37:15]wFMCommunicate OK [15:37:15]wFMCommunicate request_size=10 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 0D 02 02 05 CA 7F CF 23 A1 [15:37:15]Write to MH i2c: E2 0D 00 82 13 80 0D 02 02 05 00 CA 7F CF 23 A1 00 00 F5 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [15:37:15]RAPDU: 90 00 [15:37:15]wFMCommunicate OK [15:37:15]wFMCommunicate request_size=4 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 0D 03 02 [15:37:15]Write to MH i2c: E2 08 00 83 13 80 0D 03 02 00 00 00 00 11 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 0B 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 0B 00 83 13 00 9F F0 07 54 67 35 80 79 90 00 91 [15:37:15]RAPDU: 9F F0 07 54 67 35 80 79 90 00 [15:37:15]wFMCommunicate OK [15:37:15]SAM_PROTO_SignData done [15:37:15]FM_MakeSignedData done [15:37:15]CreateOFDProtocolMessage [15:37:15]wFMCommunicate request_size=4 [15:37:15]MH_SAM_APDU [15:37:15]CAPDU: 80 11 00 00 [15:37:15]Write to MH i2c: E2 08 00 84 13 80 11 00 00 00 00 00 00 11 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:15]Read from MH i2c: E2 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 17 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: E2 17 00 84 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [15:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:15]wFMCommunicate OK [15:37:15]CreateOFDProtocolMessage done [15:37:15]OFDSenderStorePacket 140232 [15:37:15]StoreOFDPacket docnum=140232 [15:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4F 24 07 01 E1 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 AB 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 23 02 00 35 04 06 00 55 CA 7F CF 23 A1 9F F0 07 54 67 35 80 79 [15:37:15]CheckFolder [15:37:15]dirname=/storage/ofd_packets [15:37:15]CheckFolder done [15:37:15]ProducePacketName [15:37:15]name=ofd_packets/00140232 [15:37:15]NVStorageSaveData ofd_packets/00140232 [15:37:15]File name is /storage/ofd_packets/00140232 [15:37:15]Write 301 bytes [15:37:15]NVStorageSaveData done [15:37:15]OFDSenderStorePacket done [15:37:15]KKMCreateOFDPacket done [15:37:15]NVStorageSaveData kkm_last_timestamp [15:37:15]File name is /storage/kkm_last_timestamp [15:37:15]Write 4 bytes [15:37:15]NVStorageSaveData done [15:37:15]OFD Sender: Processing packet 140232 [packets to send 137, broken 136] [15:37:15]ProducePacketName [15:37:15]name=ofd_packets/00140232 [15:37:15]OFD Sender: To server: pG, [15:37:15]CommunicateWithHost lk.salyk.kg:30040 [15:37:15]ConnectInit lk.salyk.kg [15:37:15]ExternCall_PrintAddStr [15:37:15]wPrintStart [15:37:15]Write to MH i2c: 01 00 00 85 13 98 [15:37:15]Write i2c OK [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: 01 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: 01 07 00 [15:37:15]MH_I2C_Read... [15:37:15]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 FF 0F AD [15:37:15]RasterBufferAndPrint [15:37:15]line Счет N : (1)594089 [15:37:15]line ИНН: 02508201610067 [15:37:15]line Контрольно-Кассовый Чек [15:37:15]line ПРОДАЖА [15:37:15]line ТРК (МРК, ГНК) : 52 [15:37:15]line Товар: 2710124130 [15:37:15]line Аи-92-К-5 [15:37:15]line 4.430 * 67.80 [15:37:15]line = 300.35 [15:37:15]line НДС 12% НСП 1% [15:37:15]line > о реализуемом товаре [15:37:15]line ОКРУГЛЕНИЕ: -0.35 [15:37:15]line ИТОГО: 300.00 [15:37:15]line Внесено: 300.00 [15:37:15]line СДАЧА: 0.00 [15:37:15]line НСП 1% : 2.66 [15:37:15]line НДС 12% : 31.90 [15:37:15]line Наличными: 300.00 [15:37:15]line Безнал.: 0.00 [15:37:15]line Место: АЗС № 136 "Партнер Нефть" [15:37:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:37:15]line СНО: Общий режим [15:37:15]line Чек 249 21.08.2024 15:37 [15:37:15]line Смена: 454 ФФД: 1.0 [15:37:15]line ЗНМ: 0300000067 [15:37:15]line РНМ: 0000000000092569 [15:37:15]line Версия ККМ: 001 [15:37:15]line ФМ: 0000000000871776 [15:37:15]line ФД: 140232 [15:37:15]line ФПД: 94328216036257 [15:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T153715&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140232&fm=94328216036257&tin=02508201610067®Number=0000000000092569&sum=30000 [15:37:16]Connected sock=11 [15:37: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 37 36 0F 01 00 00 4F 24 07 01 E1 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 AB 09 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C8 23 02 00 35 04 06 00 55 CA 7F CF 23 A1 9F F0 07 54 67 35 80 79 [15:37:16]written 0, free lines is 4095 [15:37: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 37 36 4F 00 00 00 59 23 47 00 A5 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 37 36 10 04 04 00 C8 23 02 00 F4 03 04 00 3B B0 C5 66 B6 04 01 00 00 83 AB BE AD 83 89 38 1D [15:37:16]CommunicateWithHost err = 0 [15:37:16]CheckOFDResponse [15:37:16]1017 (14) - 77093643461234 [15:37:16]1041 (16) - 0000000000871776 [15:37:16]1040 (4) - 140232 [15:37:16]1012 (4) - 21.08.2024 09:15 [15:37:16]1206 (1) - 0 [15:37:16]OFD Sender: Remove packet 140232 [15:37:16]ProducePacketName [15:37:16]name=ofd_packets/00140232 [15:37:16]NVStorageDeleteData [15:37:16]Write to MH i2c: 01 00 00 B0 13 C3 [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: 01 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: 01 07 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: 01 07 00 B0 13 00 00 00 00 00 E0 0C B6 [15:37:16]RasterBufferAndPrint [15:37:16]line [15:37:16]line [15:37:16]line [15:37:16]line [15:37:16]line [15:37:16]written 0, free lines is 3302 [15:37:16]MH_Cut [15:37:16]Write to MH i2c: D1 01 00 B7 13 01 9C [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: D1 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: D1 01 00 [15:37:16]MH_I2C_Read... [15:37:16]Read from MH i2c: D1 01 00 B7 13 00 9B [15:37:16]Write to MH i2c: 01 00 00 B8 13 CB [15:37:16]Write i2c OK [15:37:16]MH_I2C_Read... [15:37:17]OFD Sender: No OFD packet to send [15:37:17]*** Cut start [15:37:17]*** Partial cut [15:37:17]*** CUTSNS_PIN = 1 [15:37:17]*** CUTSNS_PIN = 0 [15:37:17]*** Brake cut motor [15:37:18]Read from MH i2c: 01 [15:37:18]MH_I2C_Read... [15:37:18]*** Stop cut motor [15:37:18]*** Cut end [15:37:18]Read from MH i2c: 01 07 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: 01 07 00 B8 13 00 00 00 00 00 FF 0F E0 [15:37:18]process_action close_receipt done [15:37:18]requested_data is exist [15:37:18]produce_requested_data [15:37:18]requested_item fm.sn is exist - process it [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 11 00 00 [15:37:18]Write to MH i2c: E2 08 00 B9 13 80 11 00 00 00 00 00 00 46 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 17 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 17 00 B9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9D [15:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:37:18]wFMCommunicate OK [15:37:18]requested_item fd.num is exist - process it [15:37:18]SAM_PROTO_GetFieldsCounters [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 13 00 00 [15:37:18]Write to MH i2c: E2 08 00 BA 13 80 13 00 00 00 00 00 00 49 [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 62 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 62 00 BA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:18]wFMCommunicate OK [15:37:18]SAM_PROTO_GetFieldsCounters done [15:37:18]requested_item shift.num is exist - process it [15:37:18]requested_item shift.opened is exist - process it [15:37:18]req_shift_opened [15:37:18]FM_GetShiftState [15:37:18]SAM_PROTO_GetShiftState [15:37:18]wFMCommunicate request_size=4 [15:37:18]MH_SAM_APDU [15:37:18]CAPDU: 80 13 01 00 [15:37:18]Write to MH i2c: E2 08 00 BB 13 80 13 01 00 00 00 00 00 4B [15:37:18]Write i2c OK [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 [15:37:18]MH_I2C_Read... [15:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:18]Read from MH i2c: E2 0E 00 [15:37:18]MH_I2C_Read... [15:37:18]Read from MH i2c: E2 0E 00 BB 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CB [15:37:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:37:18]wFMCommunicate OK [15:37:18]SAM_PROTO_GetShiftState done [15:37:18]FM_GetShiftState done [15:37:18]req_shift_opened done [15:37:18]requested_item shift.open_date is exist - process it [15:37:18]req_shift_open_date [15:37:18]req_shift_open_date done [15:37:18]produce_requested_data done [15:37:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140232,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:37:18]process_action_free close_receipt [15:37:18]json_value_free [15:37:18]json_value_free done [15:37:18]process_json_proto returns [15:37:18]Send response to host [15:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140232,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:37:18]free response buf [15:37:18]execute_script done [15:37:18]execute_script returns [15:37:18]free content buf [15:37:18]Sock 9.Close socket [15:37:18]Sock 9.Thread stoped [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:32]accept exits with 8 [15:40:32]New connection [15:40:32]New thread 3067448676 created [15:40:32]Thread 3067592036 joined [15:40:32]Waiting for new connection... [15:40:32] Sock 8.Parse request [15:40:32]Sock 8.Check first char [15:40:32]Sock 8.First char is OK [15:40:32]request: POST /json_proto HTTP/1.0 [15:40:32]Method: POST [15:40:32]URL: /json_proto [15:40:32]Method is POST - this is cgi request [15:40:32]url: /json_proto [15:40:32]query_string will be loaded in cgi processing [15:40:32]execute_cgi json_proto POST (null) [15:40:32]execute_cgi path=json_proto method=POST [15:40:32]POST find Content-Length [15:40:32]Host: 172.17.45.67:8080 [15:40:32]Content-Length: 658 [15:40:32]Content-Type: application/json [15:40:32] [15:40:32]POST finish read [15:40:32]Found Content-Length = 658 [15:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:32]execute_script... [15:40: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)594091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:32]POST & json_proto [15:40:32]process_json_proto [15:40:32]json parsed OK: [15:40:32]protocol is kg_v1.0 [15:40:32]action value=close_receipt [15:40:32]process_action close_receipt [15:40:32]cmd_close_receipt [15:40:32]MH_GetDate [15:40:32]Write to MH i2c: F0 00 00 BC 13 BE [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 BC 13 00 71 0A C6 66 5F 7F 2B 66 DD [15:40:32]GetLastDocTimeStamp 1724254635 [15:40:32]current date 1724254833 [15:40:32]FM_GetShiftState [15:40:32]SAM_PROTO_GetShiftState [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 13 01 00 [15:40:32]Write to MH i2c: E2 08 00 BD 13 80 13 01 00 00 00 00 00 4D [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 BD 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CD [15:40:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_GetShiftState done [15:40:32]FM_GetShiftState done [15:40:32]opened in 1724200467 [15:40:32]opened+sec_in_day 1724286867 [15:40:32]quantity*price = 50017 [15:40:32]sum+1 = 50019 [15:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 250 21.08.2024 15:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140233 ФПД: 216223860812541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140233&fm=216223860812541&tin=02508201610067®Number=0000000000092569&sum=50000 [15:40:33]StoreToDocumentArchive [15:40:33]shift 454 fd 140233 [15:40:33]save to /storage/0454/doc_00140233 [15:40:33]save last doc name /storage/0454/doc_00140233 to /storage/kkm_last_doc_name [15:40:33]save OK [15:40:33]Clear old archive folders... [15:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [15:40:33]tlvbuf is 01C99CA0 [15:40:33]SAM_PROTO_ClearQueue [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 09 00 00 [15:40:33]Write to MH i2c: E2 08 00 CA 13 80 09 00 00 00 00 00 00 4F [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_ClearQueue done [15:40:33]KKMCreateOFDPacket [15:40:33]OFDProtocolAddRootSTLVToBuf [15:40:33]FM_MakeSignedData [15:40:33]FM_MakeSignedData [15:40:33]SAM_PROTO_SignData [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 01 02 [15:40:33]Write to MH i2c: E2 08 00 CB 13 80 0D 01 02 00 00 00 00 57 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 CB 13 00 90 00 52 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=253 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 71 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 23 02 00 35 04 06 00 C4 A7 8A 6A 6A FD [15:40:33]Write to MH i2c: E2 00 01 CC 13 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 71 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 23 02 00 35 04 06 00 C4 A7 8A 6A 6A FD 00 00 8C [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 03 00 CC 13 00 90 00 53 [15:40:34]RAPDU: 90 00 [15:40:34]wFMCommunicate OK [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 0D 03 02 [15:40:34]Write to MH i2c: E2 08 00 CD 13 80 0D 03 02 00 00 00 00 5B [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 0B 00 CD 13 00 EC 8C D2 28 13 2C A9 2C 90 00 E2 [15:40:34]RAPDU: EC 8C D2 28 13 2C A9 2C 90 00 [15:40:34]wFMCommunicate OK [15:40:34]SAM_PROTO_SignData done [15:40:34]FM_MakeSignedData done [15:40:34]CreateOFDProtocolMessage [15:40:34]wFMCommunicate request_size=4 [15:40:34]MH_SAM_APDU [15:40:34]CAPDU: 80 11 00 00 [15:40:34]Write to MH i2c: E2 08 00 CE 13 80 11 00 00 00 00 00 00 5B [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 CE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [15:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:34]wFMCommunicate OK [15:40:34]CreateOFDProtocolMessage done [15:40:34]OFDSenderStorePacket 140233 [15:40:34]StoreOFDPacket docnum=140233 [15:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 A7 29 00 01 69 7B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 71 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 23 02 00 35 04 06 00 C4 A7 8A 6A 6A FD EC 8C D2 28 13 2C A9 2C [15:40:34]CheckFolder [15:40:34]dirname=/storage/ofd_packets [15:40:34]CheckFolder done [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00140233 [15:40:34]NVStorageSaveData ofd_packets/00140233 [15:40:34]File name is /storage/ofd_packets/00140233 [15:40:34]Write 294 bytes [15:40:34]NVStorageSaveData done [15:40:34]OFDSenderStorePacket done [15:40:34]KKMCreateOFDPacket done [15:40:34]NVStorageSaveData kkm_last_timestamp [15:40:34]File name is /storage/kkm_last_timestamp [15:40:34]Write 4 bytes [15:40:34]NVStorageSaveData done [15:40:34]ExternCall_PrintAddStr [15:40:34]wPrintStart [15:40:34]Write to MH i2c: 01 00 00 CF 13 E2 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 FF 0F F7 [15:40:34]RasterBufferAndPrint [15:40:34]line Счет N : (1)594091 [15:40:34]line ИНН: 02508201610067 [15:40:34]line Контрольно-Кассовый Чек [15:40:34]line ПРОДАЖА [15:40:34]line ТРК (МРК, ГНК) : 43 [15:40:34]line Товар: 2710124130 [15:40:34]line SU-92 [15:40:34]line 7.270 * 68.80 [15:40:34]line = 500.18 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line ОКРУГЛЕНИЕ: -0.18 [15:40:34]line ИТОГО: 500.00 [15:40:34]line Внесено: 500.00 [15:40:34]line СДАЧА: 0.00 [15:40:34]line НСП 1% : 4.43 [15:40:34]line НДС 12% : 53.12 [15:40:34]line Наличными: 500.00 [15:40:34]line Безнал.: 0.00 [15:40:34]line Место: АЗС № 136 "Партнер Нефть" [15:40:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:40:34]line СНО: Общий режим [15:40:34]line Чек 250 21.08.2024 15:40 [15:40:34]line Смена: 454 ФФД: 1.0 [15:40:34]line ЗНМ: 0300000067 [15:40:34]line РНМ: 0000000000092569 [15:40:34]line Версия ККМ: 001 [15:40:34]line ФМ: 0000000000871776 [15:40:34]line ФД: 140233 [15:40:34]line ФПД: 216223860812541 [15:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154033&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140233&fm=216223860812541&tin=02508201610067®Number=0000000000092569&sum=50000 [15:40:34]OFD Sender: Processing packet 140233 [packets to send 137, broken 136] [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00140233 [15:40:34]OFD Sender: To server: pG, [15:40:34]CommunicateWithHost lk.salyk.kg:30040 [15:40:34]ConnectInit lk.salyk.kg [15:40:34]written 0, free lines is 4095 [15:40:34]Connected sock=10 [15:40: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 37 36 08 01 00 00 A7 29 00 01 69 7B 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 71 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 C9 23 02 00 35 04 06 00 C4 A7 8A 6A 6A FD EC 8C D2 28 13 2C A9 2C [15:40: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 37 36 4F 00 00 00 93 37 47 00 09 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 37 36 10 04 04 00 C9 23 02 00 F4 03 04 00 02 B1 C5 66 B6 04 01 00 00 DD 09 D8 02 3F 7F 4E 02 [15:40:35]CommunicateWithHost err = 0 [15:40:35]CheckOFDResponse [15:40:35]1017 (14) - 77093643461234 [15:40:35]1041 (16) - 0000000000871776 [15:40:35]1040 (4) - 140233 [15:40:35]1012 (4) - 21.08.2024 09:18 [15:40:35]1206 (1) - 0 [15:40:35]OFD Sender: Remove packet 140233 [15:40:35]ProducePacketName [15:40:35]name=ofd_packets/00140233 [15:40:35]NVStorageDeleteData [15:40:35]Write to MH i2c: 01 00 00 FA 13 0D [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: 01 07 00 FA 13 00 00 00 00 00 D6 0C F6 [15:40:35]RasterBufferAndPrint [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]line [15:40:35]written 0, free lines is 3294 [15:40:35]MH_Cut [15:40:35]Write to MH i2c: D1 01 00 01 14 01 E7 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 [15:40:35]MH_I2C_Read... [15:40:35]Read from MH i2c: D1 01 00 01 14 00 E6 [15:40:35]Write to MH i2c: 01 00 00 02 14 16 [15:40:35]Write i2c OK [15:40:35]MH_I2C_Read... [15:40:35]OFD Sender: No OFD packet to send [15:40:35]*** Cut start [15:40:35]*** Partial cut [15:40:35]*** CUTSNS_PIN = 1 [15:40:35]*** CUTSNS_PIN = 0 [15:40:36]*** Brake cut motor [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]*** Stop cut motor [15:40:36]*** Cut end [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [15:40:36]process_action close_receipt done [15:40:36]requested_data is exist [15:40:36]produce_requested_data [15:40:36]requested_item fm.sn is exist - process it [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 11 00 00 [15:40:36]Write to MH i2c: E2 08 00 03 14 80 11 00 00 00 00 00 00 91 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 03 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [15:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:36]wFMCommunicate OK [15:40:36]requested_item fd.num is exist - process it [15:40:36]SAM_PROTO_GetFieldsCounters [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 00 00 [15:40:36]Write to MH i2c: E2 08 00 04 14 80 13 00 00 00 00 00 00 94 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 04 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 C9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetFieldsCounters done [15:40:36]requested_item shift.num is exist - process it [15:40:36]requested_item shift.opened is exist - process it [15:40:36]req_shift_opened [15:40:36]FM_GetShiftState [15:40:36]SAM_PROTO_GetShiftState [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 01 00 [15:40:36]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:36]Read from MH i2c: E2 0E 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [15:40:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetShiftState done [15:40:36]FM_GetShiftState done [15:40:36]req_shift_opened done [15:40:36]requested_item shift.open_date is exist - process it [15:40:36]req_shift_open_date [15:40:36]req_shift_open_date done [15:40:36]produce_requested_data done [15:40:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140233,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:40:36]process_action_free close_receipt [15:40:36]json_value_free [15:40:36]json_value_free done [15:40:36]process_json_proto returns [15:40:36]Send response to host [15:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140233,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:40:36]free response buf [15:40:36]execute_script done [15:40:36]execute_script returns [15:40:36]free content buf [15:40:36]Sock 8.Close socket [15:40:36]Sock 8.Thread stoped [15:40:37]accept exits with 9 [15:40:37]New connection [15:40:37]New thread 3067592036 created [15:40:37]Thread 3067448676 joined [15:40:37]Waiting for new connection... [15:40:37] Sock 9.Parse request [15:40:37]Sock 9.Check first char [15:40:37]Sock 9.First char is OK [15:40:37]request: POST /json_proto HTTP/1.0 [15:40:37]Method: POST [15:40:37]URL: /json_proto [15:40:37]Method is POST - this is cgi request [15:40:37]url: /json_proto [15:40:37]query_string will be loaded in cgi processing [15:40:37]execute_cgi json_proto POST (null) [15:40:37]execute_cgi path=json_proto method=POST [15:40:37]POST find Content-Length [15:40:37]Host: 172.17.45.67:8080 [15:40:37]Content-Length: 677 [15:40:37]Content-Type: application/json [15:40:37] [15:40:37]POST finish read [15:40:37]Found Content-Length = 677 [15:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:37]execute_script... [15:40:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:37]POST & json_proto [15:40:37]process_json_proto [15:40:37]json parsed OK: [15:40:37]protocol is kg_v1.0 [15:40:37]action value=close_receipt [15:40:37]process_action close_receipt [15:40:37]cmd_close_receipt [15:40:37]MH_GetDate [15:40:37]Write to MH i2c: F0 00 00 06 14 09 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: F0 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: F0 09 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: F0 09 00 06 14 00 76 0A C6 66 5F 7F 2B 66 2D [15:40:37]GetLastDocTimeStamp 1724254833 [15:40:37]current date 1724254838 [15:40:37]FM_GetShiftState [15:40:37]SAM_PROTO_GetShiftState [15:40:37]wFMCommunicate request_size=4 [15:40:37]MH_SAM_APDU [15:40:37]CAPDU: 80 13 01 00 [15:40:37]Write to MH i2c: E2 08 00 07 14 80 13 01 00 00 00 00 00 98 [15:40:37]Write i2c OK [15:40:37]MH_I2C_Read... [15:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:37]Read from MH i2c: E2 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 0E 00 [15:40:37]MH_I2C_Read... [15:40:37]Read from MH i2c: E2 0E 00 07 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [15:40:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:40:37]wFMCommunicate OK [15:40:37]SAM_PROTO_GetShiftState done [15:40:37]FM_GetShiftState done [15:40:37]opened in 1724200467 [15:40:37]opened+sec_in_day 1724286867 [15:40:37]quantity*price = 50036 [15:40:37]sum+1 = 50037 [15:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 251 21.08.2024 15:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140234 ФПД: 171611489396474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154038&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140234&fm=171611489396474&tin=02508201610067®Number=0000000000092569&sum=50000 [15:40:38]StoreToDocumentArchive [15:40:38]shift 454 fd 140234 [15:40:38]save to /storage/0454/doc_00140234 [15:40:38]save last doc name /storage/0454/doc_00140234 to /storage/kkm_last_doc_name [15:40:38]save OK [15:40:38]Clear old archive folders... [15:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:38]tlvbuf is 01C5EA50 [15:40:38]SAM_PROTO_ClearQueue [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 09 00 00 [15:40:38]Write to MH i2c: E2 08 00 14 14 80 09 00 00 00 00 00 00 9A [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [15:40:38]RAPDU: 90 00 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_ClearQueue done [15:40:38]KKMCreateOFDPacket [15:40:38]OFDProtocolAddRootSTLVToBuf [15:40:38]FM_MakeSignedData [15:40:38]FM_MakeSignedData [15:40:38]SAM_PROTO_SignData [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 0D 01 02 [15:40:38]Write to MH i2c: E2 08 00 15 14 80 0D 01 02 00 00 00 00 A2 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [15:40:38]RAPDU: 90 00 [15:40:38]wFMCommunicate OK [15:40:38]wFMCommunicate request_size=255 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 76 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 23 02 00 35 04 06 00 9C [15:40:38]Write to MH i2c: E2 02 01 16 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 76 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 23 02 00 35 04 06 00 9C 00 00 24 [15:40:38]Write i2c OK [15:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 16 14 00 90 00 9E [15:40:38]RAPDU: 90 00 [15:40:38]wFMCommunicate OK [15:40:38]wFMCommunicate request_size=10 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 0D 02 02 05 14 69 DD 66 FA [15:40:38]Write to MH i2c: E2 0D 00 17 14 80 0D 02 02 05 00 14 69 DD 66 FA 00 00 69 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 03 00 17 14 00 90 00 9F [15:40:38]RAPDU: 90 00 [15:40:38]wFMCommunicate OK [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 0D 03 02 [15:40:38]Write to MH i2c: E2 08 00 18 14 80 0D 03 02 00 00 00 00 A7 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0B 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0B 00 18 14 00 3C 83 BA 99 48 C2 D7 F3 90 00 8E [15:40:38]RAPDU: 3C 83 BA 99 48 C2 D7 F3 90 00 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_SignData done [15:40:38]FM_MakeSignedData done [15:40:38]CreateOFDProtocolMessage [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 11 00 00 [15:40:38]Write to MH i2c: E2 08 00 19 14 80 11 00 00 00 00 00 00 A7 [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:39]Read from MH i2c: E2 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 17 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: E2 17 00 19 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [15:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:39]wFMCommunicate OK [15:40:39]CreateOFDProtocolMessage done [15:40:39]OFDSenderStorePacket 140234 [15:40:39]StoreOFDPacket docnum=140234 [15:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C D3 07 01 7D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 76 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 23 02 00 35 04 06 00 9C 14 69 DD 66 FA 3C 83 BA 99 48 C2 D7 F3 [15:40:39]CheckFolder [15:40:39]dirname=/storage/ofd_packets [15:40:39]CheckFolder done [15:40:39]ProducePacketName [15:40:39]name=ofd_packets/00140234 [15:40:39]NVStorageSaveData ofd_packets/00140234 [15:40:39]File name is /storage/ofd_packets/00140234 [15:40:39]Write 301 bytes [15:40:39]NVStorageSaveData done [15:40:39]OFDSenderStorePacket done [15:40:39]KKMCreateOFDPacket done [15:40:39]NVStorageSaveData kkm_last_timestamp [15:40:39]File name is /storage/kkm_last_timestamp [15:40:39]Write 4 bytes [15:40:39]NVStorageSaveData done [15:40:39]ExternCall_PrintAddStr [15:40:39]wPrintStart [15:40:39]Write to MH i2c: 01 00 00 1A 14 2E [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 07 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [15:40:39]RasterBufferAndPrint [15:40:39]line Счет N : (1)594090 [15:40:39]line ИНН: 02508201610067 [15:40:39]line Контрольно-Кассовый Чек [15:40:39]line ПРОДАЖА [15:40:39]line ТРК (МРК, ГНК) : 52 [15:40:39]line Товар: 2710124130 [15:40:39]line Аи-92-К-5 [15:40:39]line 7.380 * 67.80 [15:40:39]line = 500.36 [15:40:39]line НДС 12% НСП 1% [15:40:39]line > о реализуемом товаре [15:40:39]line ОКРУГЛЕНИЕ: -0.36 [15:40:39]line ИТОГО: 500.00 [15:40:39]line Внесено: 500.00 [15:40:39]line СДАЧА: 0.00 [15:40:39]line НСП 1% : 4.43 [15:40:39]line НДС 12% : 53.14 [15:40:39]line Наличными: 500.00 [15:40:39]line Безнал.: 0.00 [15:40:39]line Место: АЗС № 136 "Партнер Нефть" [15:40:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:40:39]line СНО: Общий режим [15:40:39]line Чек 251 21.08.2024 15:40 [15:40:39]line Смена: 454 ФФД: 1.0 [15:40:39]line ЗНМ: 0300000067 [15:40:39]line РНМ: 0000000000092569 [15:40:39]line Версия ККМ: 001 [15:40:39]line ФМ: 0000000000871776 [15:40:39]line ФД: 140234 [15:40:39]line ФПД: 171611489396474 [15:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154038&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140234&fm=171611489396474&tin=02508201610067®Number=0000000000092569&sum=50000 [15:40:39]written 0, free lines is 4095 [15:40:39]OFD Sender: Processing packet 140234 [packets to send 137, broken 136] [15:40:39]ProducePacketName [15:40:39]name=ofd_packets/00140234 [15:40:39]OFD Sender: To server: pG, [15:40:39]CommunicateWithHost lk.salyk.kg:30040 [15:40:39]ConnectInit lk.salyk.kg [15:40:39]Connected sock=10 [15:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C D3 07 01 7D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 76 0A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 23 02 00 35 04 06 00 9C 14 69 DD 66 FA 3C 83 BA 99 48 C2 D7 F3 [15:40:39]Write to MH i2c: 01 00 00 45 14 59 [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 07 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: 01 07 00 45 14 00 00 00 00 00 DE 0C 4A [15:40:39]RasterBufferAndPrint [15:40:39]line [15:40:39]line [15:40:39]line [15:40:39]line [15:40:39]line [15:40:39]written 0, free lines is 3308 [15:40:39]MH_Cut [15:40:39]Write to MH i2c: D1 01 00 4C 14 01 32 [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: D1 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: D1 01 00 [15:40:39]MH_I2C_Read... [15:40:39]Read from MH i2c: D1 01 00 4C 14 00 31 [15:40:39]Write to MH i2c: 01 00 00 4D 14 61 [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B7 68 47 00 11 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CA 23 02 00 F4 03 04 00 07 B1 C5 66 B6 04 01 00 00 27 D8 33 9A 4B 2B 6F 31 [15:40:39]CommunicateWithHost err = 0 [15:40:39]CheckOFDResponse [15:40:39]1017 (14) - 77093643461234 [15:40:39]1041 (16) - 0000000000871776 [15:40:39]1040 (4) - 140234 [15:40:39]1012 (4) - 21.08.2024 09:19 [15:40:39]1206 (1) - 0 [15:40:39]OFD Sender: Remove packet 140234 [15:40:39]ProducePacketName [15:40:39]name=ofd_packets/00140234 [15:40:39]NVStorageDeleteData [15:40:40]OFD Sender: No OFD packet to send [15:40:40]*** Cut start [15:40:40]*** Partial cut [15:40:40]*** CUTSNS_PIN = 1 [15:40:40]*** CUTSNS_PIN = 0 [15:40:40]*** Brake cut motor [15:40:41]Read from MH i2c: 01 [15:40:41]MH_I2C_Read... [15:40:41]*** Stop cut motor [15:40:41]*** Cut end [15:40:41]Read from MH i2c: 01 07 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 4D 14 00 00 00 00 00 FF 0F 76 [15:40:41]process_action close_receipt done [15:40:41]requested_data is exist [15:40:41]produce_requested_data [15:40:41]requested_item fm.sn is exist - process it [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 11 00 00 [15:40:41]Write to MH i2c: E2 08 00 4E 14 80 11 00 00 00 00 00 00 DC [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 17 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 17 00 4E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [15:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:40:41]wFMCommunicate OK [15:40:41]requested_item fd.num is exist - process it [15:40:41]SAM_PROTO_GetFieldsCounters [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 13 00 00 [15:40:41]Write to MH i2c: E2 08 00 4F 14 80 13 00 00 00 00 00 00 DF [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 62 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 62 00 4F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [15:40:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:41]wFMCommunicate OK [15:40:41]SAM_PROTO_GetFieldsCounters done [15:40:41]requested_item shift.num is exist - process it [15:40:41]requested_item shift.opened is exist - process it [15:40:41]req_shift_opened [15:40:41]FM_GetShiftState [15:40:41]SAM_PROTO_GetShiftState [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 13 01 00 [15:40:41]Write to MH i2c: E2 08 00 50 14 80 13 01 00 00 00 00 00 E1 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 0E 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 0E 00 50 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [15:40:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:40:41]wFMCommunicate OK [15:40:41]SAM_PROTO_GetShiftState done [15:40:41]FM_GetShiftState done [15:40:41]req_shift_opened done [15:40:41]requested_item shift.open_date is exist - process it [15:40:41]req_shift_open_date [15:40:41]req_shift_open_date done [15:40:41]produce_requested_data done [15:40:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140234,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:40:41]process_action_free close_receipt [15:40:41]json_value_free [15:40:41]json_value_free done [15:40:41]process_json_proto returns [15:40:41]Send response to host [15:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140234,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:40:41]free response buf [15:40:41]execute_script done [15:40:41]execute_script returns [15:40:41]free content buf [15:40:41]Sock 9.Close socket [15:40:41]Sock 9.Thread stoped [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:34]accept exits with 8 [15:45:34]New connection [15:45:34]New thread 3067448676 created [15:45:34]Thread 3067592036 joined [15:45:34]Waiting for new connection... [15:45:34] Sock 8.Parse request [15:45:34]Sock 8.Check first char [15:45:34]Sock 8.First char is OK [15:45:34]request: POST /json_proto HTTP/1.0 [15:45:34]Method: POST [15:45:34]URL: /json_proto [15:45:34]Method is POST - this is cgi request [15:45:34]url: /json_proto [15:45:34]query_string will be loaded in cgi processing [15:45:34]execute_cgi json_proto POST (null) [15:45:34]execute_cgi path=json_proto method=POST [15:45:34]POST find Content-Length [15:45:34]Host: 172.17.45.67:8080 [15:45:34]Content-Length: 678 [15:45:34]Content-Type: application/json [15:45:34] [15:45:34]POST finish read [15:45:34]Found Content-Length = 678 [15:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:34]execute_script... [15:45: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)594092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:34]POST & json_proto [15:45:34]process_json_proto [15:45:34]json parsed OK: [15:45:34]protocol is kg_v1.0 [15:45:34]action value=close_receipt [15:45:34]process_action close_receipt [15:45:34]cmd_close_receipt [15:45:34]MH_GetDate [15:45:34]Write to MH i2c: F0 00 00 51 14 54 [15:45:34]Write i2c OK [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 09 00 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: F0 09 00 51 14 00 9F 0B C6 66 5F 7F 2B 66 A2 [15:45:34]GetLastDocTimeStamp 1724254838 [15:45:34]current date 1724255135 [15:45:34]FM_GetShiftState [15:45:34]SAM_PROTO_GetShiftState [15:45:34]wFMCommunicate request_size=4 [15:45:34]MH_SAM_APDU [15:45:34]CAPDU: 80 13 01 00 [15:45:34]Write to MH i2c: E2 08 00 52 14 80 13 01 00 00 00 00 00 E3 [15:45:34]Write i2c OK [15:45:34]MH_I2C_Read... [15:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:34]Read from MH i2c: E2 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: E2 0E 00 [15:45:34]MH_I2C_Read... [15:45:34]Read from MH i2c: E2 0E 00 52 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [15:45:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:45:34]wFMCommunicate OK [15:45:34]SAM_PROTO_GetShiftState done [15:45:34]FM_GetShiftState done [15:45:34]opened in 1724200467 [15:45:34]opened+sec_in_day 1724286867 [15:45:34]quantity*price = 70037 [15:45:34]sum+1 = 70038 [15:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 252 21.08.2024 15:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140235 ФПД: 166721423151733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140235&fm=166721423151733&tin=02508201610067®Number=0000000000092569&sum=70000 [15:45:35]StoreToDocumentArchive [15:45:35]shift 454 fd 140235 [15:45:35]save to /storage/0454/doc_00140235 [15:45:35]save last doc name /storage/0454/doc_00140235 to /storage/kkm_last_doc_name [15:45:35]save OK [15:45:35]Clear old archive folders... [15:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:35]tlvbuf is 01CBECA0 [15:45:35]SAM_PROTO_ClearQueue [15:45:35]wFMCommunicate request_size=4 [15:45:35]MH_SAM_APDU [15:45:35]CAPDU: 80 09 00 00 [15:45:35]Write to MH i2c: E2 08 00 5F 14 80 09 00 00 00 00 00 00 E5 [15:45:35]Write i2c OK [15:45:35]MH_I2C_Read... [15:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:35]Read from MH i2c: E2 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 03 00 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [15:45:35]RAPDU: 90 00 [15:45:35]wFMCommunicate OK [15:45:35]SAM_PROTO_ClearQueue done [15:45:35]KKMCreateOFDPacket [15:45:35]OFDProtocolAddRootSTLVToBuf [15:45:35]FM_MakeSignedData [15:45:35]FM_MakeSignedData [15:45:35]SAM_PROTO_SignData [15:45:35]wFMCommunicate request_size=4 [15:45:35]MH_SAM_APDU [15:45:35]CAPDU: 80 0D 01 02 [15:45:35]Write to MH i2c: E2 08 00 60 14 80 0D 01 02 00 00 00 00 ED [15:45:35]Write i2c OK [15:45:35]MH_I2C_Read... [15:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:35]Read from MH i2c: E2 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 03 00 [15:45:35]MH_I2C_Read... [15:45:35]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [15:45:35]RAPDU: 90 00 [15:45:35]wFMCommunicate OK [15:45:35]wFMCommunicate request_size=255 [15:45:35]MH_SAM_APDU [15:45: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 9F 0B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 23 02 00 35 04 06 00 97 [15:45:35]Write to MH i2c: E2 02 01 61 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 9F 0B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 23 02 00 35 04 06 00 97 00 00 7D [15:45:35]Write i2c OK [15:45:35]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 61 14 00 90 00 E9 [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=10 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 02 02 05 A1 DB 34 12 75 [15:45:36]Write to MH i2c: E2 0D 00 62 14 80 0D 02 02 05 00 A1 DB 34 12 75 00 00 31 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 03 00 62 14 00 90 00 EA [15:45:36]RAPDU: 90 00 [15:45:36]wFMCommunicate OK [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 0D 03 02 [15:45:36]Write to MH i2c: E2 08 00 63 14 80 0D 03 02 00 00 00 00 F2 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0B 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 0B 00 63 14 00 0E A5 7D 87 BC A3 28 EF 90 00 20 [15:45:36]RAPDU: 0E A5 7D 87 BC A3 28 EF 90 00 [15:45:36]wFMCommunicate OK [15:45:36]SAM_PROTO_SignData done [15:45:36]FM_MakeSignedData done [15:45:36]CreateOFDProtocolMessage [15:45:36]wFMCommunicate request_size=4 [15:45:36]MH_SAM_APDU [15:45:36]CAPDU: 80 11 00 00 [15:45:36]Write to MH i2c: E2 08 00 64 14 80 11 00 00 00 00 00 00 F2 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:36]Read from MH i2c: E2 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 17 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: E2 17 00 64 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [15:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:45:36]wFMCommunicate OK [15:45:36]CreateOFDProtocolMessage done [15:45:36]OFDSenderStorePacket 140235 [15:45:36]StoreOFDPacket docnum=140235 [15:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F9 29 07 01 84 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 9F 0B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 23 02 00 35 04 06 00 97 A1 DB 34 12 75 0E A5 7D 87 BC A3 28 EF [15:45:36]CheckFolder [15:45:36]dirname=/storage/ofd_packets [15:45:36]CheckFolder done [15:45:36]ProducePacketName [15:45:36]name=ofd_packets/00140235 [15:45:36]NVStorageSaveData ofd_packets/00140235 [15:45:36]File name is /storage/ofd_packets/00140235 [15:45:36]Write 301 bytes [15:45:36]NVStorageSaveData done [15:45:36]OFDSenderStorePacket done [15:45:36]KKMCreateOFDPacket done [15:45:36]NVStorageSaveData kkm_last_timestamp [15:45:36]File name is /storage/kkm_last_timestamp [15:45:36]Write 4 bytes [15:45:36]NVStorageSaveData done [15:45:36]ExternCall_PrintAddStr [15:45:36]wPrintStart [15:45:36]Write to MH i2c: 01 00 00 65 14 79 [15:45:36]Write i2c OK [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 07 00 [15:45:36]MH_I2C_Read... [15:45:36]Read from MH i2c: 01 07 00 65 14 00 00 00 00 00 FF 0F 8E [15:45:36]RasterBufferAndPrint [15:45:36]line Счет N : (1)594092 [15:45:36]line ИНН: 02508201610067 [15:45:36]line Контрольно-Кассовый Чек [15:45:36]line ПРОДАЖА [15:45:36]line ТРК (МРК, ГНК) : 52 [15:45:36]line Товар: 2710124130 [15:45:36]line Аи-92-К-5 [15:45:36]line 10.330 * 67.80 [15:45:36]line = 700.37 [15:45:36]line НДС 12% НСП 1% [15:45:36]line > о реализуемом товаре [15:45:36]line ОКРУГЛЕНИЕ: -0.37 [15:45:36]line ИТОГО: 700.00 [15:45:36]line Внесено: 700.00 [15:45:36]line СДАЧА: 0.00 [15:45:36]line НСП 1% : 6.20 [15:45:36]line НДС 12% : 74.38 [15:45:36]line Наличными: 700.00 [15:45:36]line Безнал.: 0.00 [15:45:36]line Место: АЗС № 136 "Партнер Нефть" [15:45:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:45:36]line СНО: Общий режим [15:45:36]line Чек 252 21.08.2024 15:45 [15:45:36]line Смена: 454 ФФД: 1.0 [15:45:36]line ЗНМ: 0300000067 [15:45:36]line РНМ: 0000000000092569 [15:45:36]line Версия ККМ: 001 [15:45:36]line ФМ: 0000000000871776 [15:45:36]line ФД: 140235 [15:45:36]line ФПД: 166721423151733 [15:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T154535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140235&fm=166721423151733&tin=02508201610067®Number=0000000000092569&sum=70000 [15:45:36]OFD Sender: Processing packet 140235 [packets to send 137, broken 136] [15:45:36]ProducePacketName [15:45:36]name=ofd_packets/00140235 [15:45:36]OFD Sender: To server: pG, [15:45:36]CommunicateWithHost lk.salyk.kg:30040 [15:45:36]ConnectInit lk.salyk.kg [15:45:36]written 0, free lines is 4095 [15:45:36]Connected sock=10 [15:45: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 37 36 0F 01 00 00 F9 29 07 01 84 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 9F 0B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CB 23 02 00 35 04 06 00 97 A1 DB 34 12 75 0E A5 7D 87 BC A3 28 EF [15:45: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 37 36 4F 00 00 00 54 D1 47 00 2C 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 37 36 10 04 04 00 CB 23 02 00 F4 03 04 00 30 B2 C5 66 B6 04 01 00 00 24 27 C3 AE 9E 9C E3 70 [15:45:37]CommunicateWithHost err = 0 [15:45:37]CheckOFDResponse [15:45:37]1017 (14) - 77093643461234 [15:45:37]1041 (16) - 0000000000871776 [15:45:37]1040 (4) - 140235 [15:45:37]1012 (4) - 21.08.2024 09:24 [15:45:37]1206 (1) - 0 [15:45:37]OFD Sender: Remove packet 140235 [15:45:37]ProducePacketName [15:45:37]name=ofd_packets/00140235 [15:45:37]NVStorageDeleteData [15:45:37]Write to MH i2c: 01 00 00 90 14 A4 [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: 01 07 00 90 14 00 00 00 00 00 DA 0C 91 [15:45:37]RasterBufferAndPrint [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]line [15:45:37]written 0, free lines is 3297 [15:45:37]MH_Cut [15:45:37]Write to MH i2c: D1 01 00 97 14 01 7D [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: D1 01 00 97 14 00 7C [15:45:37]Write to MH i2c: 01 00 00 98 14 AC [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]OFD Sender: No OFD packet to send [15:45:37]*** Cut start [15:45:37]*** Partial cut [15:45:37]*** CUTSNS_PIN = 1 [15:45:37]*** CUTSNS_PIN = 0 [15:45:38]*** Brake cut motor [15:45:38]Read from MH i2c: 01 [15:45:38]MH_I2C_Read... [15:45:38]*** Stop cut motor [15:45:38]*** Cut end [15:45:38]Read from MH i2c: 01 07 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [15:45:38]process_action close_receipt done [15:45:38]requested_data is exist [15:45:38]produce_requested_data [15:45:38]requested_item fm.sn is exist - process it [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 11 00 00 [15:45:38]Write to MH i2c: E2 08 00 99 14 80 11 00 00 00 00 00 00 27 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 17 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 17 00 99 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [15:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:45:38]wFMCommunicate OK [15:45:38]requested_item fd.num is exist - process it [15:45:38]SAM_PROTO_GetFieldsCounters [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 13 00 00 [15:45:38]Write to MH i2c: E2 08 00 9A 14 80 13 00 00 00 00 00 00 2A [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 62 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 62 00 9A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [15:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:38]wFMCommunicate OK [15:45:38]SAM_PROTO_GetFieldsCounters done [15:45:38]requested_item shift.num is exist - process it [15:45:38]requested_item shift.opened is exist - process it [15:45:38]req_shift_opened [15:45:38]FM_GetShiftState [15:45:38]SAM_PROTO_GetShiftState [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 13 01 00 [15:45:38]Write to MH i2c: E2 08 00 9B 14 80 13 01 00 00 00 00 00 2C [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 0E 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 0E 00 9B 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [15:45:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:45:38]wFMCommunicate OK [15:45:38]SAM_PROTO_GetShiftState done [15:45:38]FM_GetShiftState done [15:45:38]req_shift_opened done [15:45:38]requested_item shift.open_date is exist - process it [15:45:38]req_shift_open_date [15:45:38]req_shift_open_date done [15:45:38]produce_requested_data done [15:45:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140235,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:45:38]process_action_free close_receipt [15:45:38]json_value_free [15:45:38]json_value_free done [15:45:38]process_json_proto returns [15:45:38]Send response to host [15:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140235,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:45:38]free response buf [15:45:38]execute_script done [15:45:38]execute_script returns [15:45:38]free content buf [15:45:38]Sock 8.Close socket [15:45:38]Sock 8.Thread stoped [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:34]int [15:51:34]Write to MH i2c: 01 00 00 9C 14 B0 [15:51:34]*** FLAG_PRN_KEY set [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 9C 14 00 08 00 00 00 FF 0F CD [15:51:34]state=0 [15:51:34]Key pressed [15:51:34]Feed [15:51:34]Write to MH i2c: D8 00 00 9D 14 88 [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D8 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D8 01 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D8 01 00 9D 14 00 89 [15:51:34]int [15:51:34]Write to MH i2c: 01 00 00 9E 14 B2 [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 9E 14 00 48 00 00 00 3C 00 3D [15:51:34]state=2 [15:51:34]Key pressed [15:51:34]int [15:51:34]Write to MH i2c: 01 00 00 9F 14 B3 [15:51:34]*** FLAG_PRN_KEY reset [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 F5 0F BE [15:51:34]state=2 [15:51:34]Stop feed [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:01]accept exits with 9 [15:52:01]New connection [15:52:01]New thread 3067592036 created [15:52:01]Thread 3067448676 joined [15:52:01]Waiting for new connection... [15:52:01] Sock 9.Parse request [15:52:01]Sock 9.Check first char [15:52:01]Sock 9.First char is OK [15:52:01]request: POST /json_proto HTTP/1.0 [15:52:01]Method: POST [15:52:01]URL: /json_proto [15:52:01]Method is POST - this is cgi request [15:52:01]url: /json_proto [15:52:01]query_string will be loaded in cgi processing [15:52:01]execute_cgi json_proto POST (null) [15:52:01]execute_cgi path=json_proto method=POST [15:52:01]POST find Content-Length [15:52:01]Host: 172.17.45.67:8080 [15:52:01]Content-Length: 677 [15:52:01]Content-Type: application/json [15:52:01] [15:52:01]POST finish read [15:52:01]Found Content-Length = 677 [15:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:01]execute_script... [15:52: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)594093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:01]POST & json_proto [15:52:01]process_json_proto [15:52:01]json parsed OK: [15:52:01]protocol is kg_v1.0 [15:52:01]action value=close_receipt [15:52:01]process_action close_receipt [15:52:01]cmd_close_receipt [15:52:01]MH_GetDate [15:52:01]Write to MH i2c: F0 00 00 A0 14 A3 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 A0 14 00 22 0D C6 66 5F 7F 2B 66 76 [15:52:01]GetLastDocTimeStamp 1724255135 [15:52:01]current date 1724255522 [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 A1 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [15:52:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]opened in 1724200467 [15:52:01]opened+sec_in_day 1724286867 [15:52:01]quantity*price = 50036 [15:52:01]sum+1 = 50037 [15:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 253 21.08.2024 15:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140236 ФПД: 90272159155119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140236&fm=90272159155119&tin=02508201610067®Number=0000000000092569&sum=50000 [15:52:02]StoreToDocumentArchive [15:52:02]shift 454 fd 140236 [15:52:02]save to /storage/0454/doc_00140236 [15:52:02]save last doc name /storage/0454/doc_00140236 to /storage/kkm_last_doc_name [15:52:02]save OK [15:52:02]Clear old archive folders... [15:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:02]tlvbuf is 01CBED80 [15:52:02]SAM_PROTO_ClearQueue [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 09 00 00 [15:52:02]Write to MH i2c: E2 08 00 AE 14 80 09 00 00 00 00 00 00 34 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_ClearQueue done [15:52:02]KKMCreateOFDPacket [15:52:02]OFDProtocolAddRootSTLVToBuf [15:52:02]FM_MakeSignedData [15:52:02]FM_MakeSignedData [15:52:02]SAM_PROTO_SignData [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 01 02 [15:52:02]Write to MH i2c: E2 08 00 AF 14 80 0D 01 02 00 00 00 00 3C [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=255 [15:52:02]MH_SAM_APDU [15:52: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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 22 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 23 02 00 35 04 06 00 52 [15:52:02]Write to MH i2c: E2 02 01 B0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 22 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 23 02 00 35 04 06 00 52 00 00 27 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=10 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 02 02 05 1A 1F FA C3 AF [15:52:02]Write to MH i2c: E2 0D 00 B1 14 80 0D 02 02 05 00 1A 1F FA C3 AF 00 00 EE [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 03 02 [15:52:02]Write to MH i2c: E2 08 00 B2 14 80 0D 03 02 00 00 00 00 41 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0B 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0B 00 B2 14 00 04 3B 9E D0 31 C3 F2 B7 90 00 8C [15:52:02]RAPDU: 04 3B 9E D0 31 C3 F2 B7 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_SignData done [15:52:02]FM_MakeSignedData done [15:52:02]CreateOFDProtocolMessage [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 11 00 00 [15:52:02]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 17 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [15:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:52:02]wFMCommunicate OK [15:52:02]CreateOFDProtocolMessage done [15:52:02]OFDSenderStorePacket 140236 [15:52:02]StoreOFDPacket docnum=140236 [15:52:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DC EB 07 01 5F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 22 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 23 02 00 35 04 06 00 52 1A 1F FA C3 AF 04 3B 9E D0 31 C3 F2 B7 [15:52:02]CheckFolder [15:52:02]dirname=/storage/ofd_packets [15:52:02]CheckFolder done [15:52:02]ProducePacketName [15:52:02]name=ofd_packets/00140236 [15:52:02]NVStorageSaveData ofd_packets/00140236 [15:52:02]File name is /storage/ofd_packets/00140236 [15:52:02]Write 301 bytes [15:52:02]NVStorageSaveData done [15:52:02]OFDSenderStorePacket done [15:52:02]KKMCreateOFDPacket done [15:52:02]NVStorageSaveData kkm_last_timestamp [15:52:02]File name is /storage/kkm_last_timestamp [15:52:02]Write 4 bytes [15:52:02]NVStorageSaveData done [15:52:02]ExternCall_PrintAddStr [15:52:02]wPrintStart [15:52:02]Write to MH i2c: 01 00 00 B4 14 C8 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: 01 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: 01 07 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 FF 0F DD [15:52:02]RasterBufferAndPrint [15:52:02]line Счет N : (1)594093 [15:52:02]line ИНН: 02508201610067 [15:52:02]line Контрольно-Кассовый Чек [15:52:02]line ПРОДАЖА [15:52:02]line ТРК (МРК, ГНК) : 42 [15:52:02]line Товар: 2710124130 [15:52:02]line Аи-92-К-5 [15:52:02]line 7.380 * 67.80 [15:52:02]line = 500.36 [15:52:02]line НДС 12% НСП 1% [15:52:02]line > о реализуемом товаре [15:52:02]line ОКРУГЛЕНИЕ: -0.36 [15:52:02]line ИТОГО: 500.00 [15:52:02]line Внесено: 500.00 [15:52:02]line СДАЧА: 0.00 [15:52:02]line НСП 1% : 4.43 [15:52:02]line НДС 12% : 53.14 [15:52:02]line Наличными: 500.00 [15:52:02]line Безнал.: 0.00 [15:52:02]line Место: АЗС № 136 "Партнер Нефть" [15:52:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:52:02]line СНО: Общий режим [15:52:02]line Чек 253 21.08.2024 15:52 [15:52:02]line Смена: 454 ФФД: 1.0 [15:52:02]line ЗНМ: 0300000067 [15:52:02]line РНМ: 0000000000092569 [15:52:02]line Версия ККМ: 001 [15:52:02]line ФМ: 0000000000871776 [15:52:02]line ФД: 140236 [15:52:02]line ФПД: 90272159155119 [15:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155202&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140236&fm=90272159155119&tin=02508201610067®Number=0000000000092569&sum=50000 [15:52:03]OFD Sender: Processing packet 140236 [packets to send 137, broken 136] [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00140236 [15:52:03]OFD Sender: To server: pG, [15:52:03]CommunicateWithHost lk.salyk.kg:30040 [15:52:03]ConnectInit lk.salyk.kg [15:52:03]written 0, free lines is 4095 [15:52:03]Connected sock=10 [15:52: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 37 36 0F 01 00 00 DC EB 07 01 5F 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 22 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CC 23 02 00 35 04 06 00 52 1A 1F FA C3 AF 04 3B 9E D0 31 C3 F2 B7 [15: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 37 36 4F 00 00 00 9A CD 47 00 5B 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 37 36 10 04 04 00 CC 23 02 00 F4 03 04 00 B2 B3 C5 66 B6 04 01 00 00 42 16 85 02 E4 8F F1 F7 [15:52:03]CommunicateWithHost err = 0 [15:52:03]CheckOFDResponse [15:52:03]1017 (14) - 77093643461234 [15:52:03]1041 (16) - 0000000000871776 [15:52:03]1040 (4) - 140236 [15:52:03]1012 (4) - 21.08.2024 09:30 [15:52:03]1206 (1) - 0 [15:52:03]OFD Sender: Remove packet 140236 [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00140236 [15:52:03]NVStorageDeleteData [15:52:03]Write to MH i2c: 01 00 00 DF 14 F3 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 DF 14 00 00 00 00 00 D4 0C DA [15:52:03]RasterBufferAndPrint [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]written 0, free lines is 3292 [15:52:03]MH_Cut [15:52:03]Write to MH i2c: D1 01 00 E6 14 01 CC [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 01 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 01 00 E6 14 00 CB [15:52:03]Write to MH i2c: 01 00 00 E7 14 FB [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]OFD Sender: No OFD packet to send [15:52:04]*** Cut start [15:52:04]*** Partial cut [15:52:04]*** CUTSNS_PIN = 1 [15:52:04]*** CUTSNS_PIN = 0 [15:52:04]*** Brake cut motor [15:52:04]Read from MH i2c: 01 [15:52:04]MH_I2C_Read... [15:52:04]*** Stop cut motor [15:52:04]*** Cut end [15:52:04]Read from MH i2c: 01 07 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: 01 07 00 E7 14 00 00 00 00 00 FF 0F 10 [15:52:04]process_action close_receipt done [15:52:04]requested_data is exist [15:52:04]produce_requested_data [15:52:04]requested_item fm.sn is exist - process it [15:52:04]wFMCommunicate request_size=4 [15:52:04]MH_SAM_APDU [15:52:04]CAPDU: 80 11 00 00 [15:52:04]Write to MH i2c: E2 08 00 E8 14 80 11 00 00 00 00 00 00 76 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:04]Read from MH i2c: E2 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 17 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 17 00 E8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [15:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:52:04]wFMCommunicate OK [15:52:04]requested_item fd.num is exist - process it [15:52:04]SAM_PROTO_GetFieldsCounters [15:52:04]wFMCommunicate request_size=4 [15:52:04]MH_SAM_APDU [15:52:04]CAPDU: 80 13 00 00 [15:52:04]Write to MH i2c: E2 08 00 E9 14 80 13 00 00 00 00 00 00 79 [15:52:04]Write i2c OK [15:52:04]MH_I2C_Read... [15:52:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:04]Read from MH i2c: E2 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 62 00 [15:52:04]MH_I2C_Read... [15:52:04]Read from MH i2c: E2 62 00 E9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [15:52:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:04]wFMCommunicate OK [15:52:04]SAM_PROTO_GetFieldsCounters done [15:52:04]requested_item shift.num is exist - process it [15:52:04]requested_item shift.opened is exist - process it [15:52:04]req_shift_opened [15:52:04]FM_GetShiftState [15:52:04]SAM_PROTO_GetShiftState [15:52:04]wFMCommunicate request_size=4 [15:52:04]MH_SAM_APDU [15:52:04]CAPDU: 80 13 01 00 [15:52:04]Write to MH i2c: E2 08 00 EA 14 80 13 01 00 00 00 00 00 7B [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 EA 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [15:52:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_GetShiftState done [15:52:05]FM_GetShiftState done [15:52:05]req_shift_opened done [15:52:05]requested_item shift.open_date is exist - process it [15:52:05]req_shift_open_date [15:52:05]req_shift_open_date done [15:52:05]produce_requested_data done [15:52:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140236,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:52:05]process_action_free close_receipt [15:52:05]json_value_free [15:52:05]json_value_free done [15:52:05]process_json_proto returns [15:52:05]Send response to host [15:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140236,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:52:05]free response buf [15:52:05]execute_script done [15:52:05]execute_script returns [15:52:05]free content buf [15:52:05]Sock 9.Close socket [15:52:05]Sock 9.Thread stoped [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52: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:29]accept exits with 8 [15:53:29]New connection [15:53:29]New thread 3067448676 created [15:53:29]Thread 3067592036 joined [15:53:29]Waiting for new connection... [15:53:29] Sock 8.Parse request [15:53:29]Sock 8.Check first char [15:53:29]Sock 8.First char is OK [15:53:29]request: POST /json_proto HTTP/1.0 [15:53:29]Method: POST [15:53:29]URL: /json_proto [15:53:29]Method is POST - this is cgi request [15:53:29]url: /json_proto [15:53:29]query_string will be loaded in cgi processing [15:53:29]execute_cgi json_proto POST (null) [15:53:29]execute_cgi path=json_proto method=POST [15:53:29]POST find Content-Length [15:53:29]Host: 172.17.45.67:8080 [15:53:29]Content-Length: 677 [15:53:29]Content-Type: application/json [15:53:29] [15:53:29]POST finish read [15:53:29]Found Content-Length = 677 [15:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:29]execute_script... [15:53:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:29]POST & json_proto [15:53:29]process_json_proto [15:53:29]json parsed OK: [15:53:29]protocol is kg_v1.0 [15:53:29]action value=close_receipt [15:53:29]process_action close_receipt [15:53:29]cmd_close_receipt [15:53:29]MH_GetDate [15:53:29]Write to MH i2c: F0 00 00 EB 14 EE [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 09 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: F0 09 00 EB 14 00 7A 0D C6 66 5F 7F 2B 66 19 [15:53:29]GetLastDocTimeStamp 1724255522 [15:53:29]current date 1724255610 [15:53:29]FM_GetShiftState [15:53:29]SAM_PROTO_GetShiftState [15:53:29]wFMCommunicate request_size=4 [15:53:29]MH_SAM_APDU [15:53:29]CAPDU: 80 13 01 00 [15:53:29]Write to MH i2c: E2 08 00 EC 14 80 13 01 00 00 00 00 00 7D [15:53:29]Write i2c OK [15:53:29]MH_I2C_Read... [15:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:29]Read from MH i2c: E2 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 [15:53:29]MH_I2C_Read... [15:53:29]Read from MH i2c: E2 0E 00 EC 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FD [15:53:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:53:29]wFMCommunicate OK [15:53:29]SAM_PROTO_GetShiftState done [15:53:29]FM_GetShiftState done [15:53:29]opened in 1724200467 [15:53:29]opened+sec_in_day 1724286867 [15:53:29]quantity*price = 50036 [15:53:29]sum+1 = 50037 [15:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 254 21.08.2024 15:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140237 ФПД: 132207329196383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140237&fm=132207329196383&tin=02508201610067®Number=0000000000092569&sum=50000 [15:53:30]StoreToDocumentArchive [15:53:30]shift 454 fd 140237 [15:53:30]save to /storage/0454/doc_00140237 [15:53:30]save last doc name /storage/0454/doc_00140237 to /storage/kkm_last_doc_name [15:53:30]save OK [15:53:30]Clear old archive folders... [15:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:30]tlvbuf is 01CD1230 [15:53:30]SAM_PROTO_ClearQueue [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 09 00 00 [15:53:30]Write to MH i2c: E2 08 00 F9 14 80 09 00 00 00 00 00 00 7F [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [15:53:30]RAPDU: 90 00 [15:53:30]wFMCommunicate OK [15:53:30]SAM_PROTO_ClearQueue done [15:53:30]KKMCreateOFDPacket [15:53:30]OFDProtocolAddRootSTLVToBuf [15:53:30]FM_MakeSignedData [15:53:30]FM_MakeSignedData [15:53:30]SAM_PROTO_SignData [15:53:30]wFMCommunicate request_size=4 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 0D 01 02 [15:53:30]Write to MH i2c: E2 08 00 FA 14 80 0D 01 02 00 00 00 00 87 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:30]Read from MH i2c: E2 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 [15:53:30]MH_I2C_Read... [15:53:30]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [15:53:30]RAPDU: 90 00 [15:53:30]wFMCommunicate OK [15:53:30]wFMCommunicate request_size=255 [15:53:30]MH_SAM_APDU [15:53:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7A 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 23 02 00 35 04 06 00 78 [15:53:30]Write to MH i2c: E2 02 01 FB 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7A 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 23 02 00 35 04 06 00 78 00 00 F2 [15:53:30]Write i2c OK [15:53:30]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [15:53:31]RAPDU: 90 00 [15:53:31]wFMCommunicate OK [15:53:31]wFMCommunicate request_size=10 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 0D 02 02 05 3D EA E4 B9 5F [15:53:31]Write to MH i2c: E2 0D 00 FC 14 80 0D 02 02 05 00 3D EA E4 B9 5F 00 00 B7 [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [15:53:31]RAPDU: 90 00 [15:53:31]wFMCommunicate OK [15:53:31]wFMCommunicate request_size=4 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 0D 03 02 [15:53:31]Write to MH i2c: E2 08 00 FD 14 80 0D 03 02 00 00 00 00 8C [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0B 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 0B 00 FD 14 00 EB 02 A8 90 DA 34 11 65 90 00 36 [15:53:31]RAPDU: EB 02 A8 90 DA 34 11 65 90 00 [15:53:31]wFMCommunicate OK [15:53:31]SAM_PROTO_SignData done [15:53:31]FM_MakeSignedData done [15:53:31]CreateOFDProtocolMessage [15:53:31]wFMCommunicate request_size=4 [15:53:31]MH_SAM_APDU [15:53:31]CAPDU: 80 11 00 00 [15:53:31]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:31]Read from MH i2c: E2 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 17 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [15:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:53:31]wFMCommunicate OK [15:53:31]CreateOFDProtocolMessage done [15:53:31]OFDSenderStorePacket 140237 [15:53:31]StoreOFDPacket docnum=140237 [15:53:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C 3D 07 01 AE 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7A 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 23 02 00 35 04 06 00 78 3D EA E4 B9 5F EB 02 A8 90 DA 34 11 65 [15:53:31]CheckFolder [15:53:31]dirname=/storage/ofd_packets [15:53:31]CheckFolder done [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00140237 [15:53:31]NVStorageSaveData ofd_packets/00140237 [15:53:31]File name is /storage/ofd_packets/00140237 [15:53:31]Write 301 bytes [15:53:31]NVStorageSaveData done [15:53:31]OFDSenderStorePacket done [15:53:31]KKMCreateOFDPacket done [15:53:31]NVStorageSaveData kkm_last_timestamp [15:53:31]File name is /storage/kkm_last_timestamp [15:53:31]Write 4 bytes [15:53:31]NVStorageSaveData done [15:53:31]ExternCall_PrintAddStr [15:53:31]wPrintStart [15:53:31]Write to MH i2c: 01 00 00 FF 14 13 [15:53:31]Write i2c OK [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 07 00 [15:53:31]MH_I2C_Read... [15:53:31]Read from MH i2c: 01 07 00 FF 14 00 00 00 00 00 FF 0F 28 [15:53:31]RasterBufferAndPrint [15:53:31]line Счет N : (1)594094 [15:53:31]line ИНН: 02508201610067 [15:53:31]line Контрольно-Кассовый Чек [15:53:31]line ПРОДАЖА [15:53:31]line ТРК (МРК, ГНК) : 62 [15:53:31]line Товар: 2710124130 [15:53:31]line Аи-92-К-5 [15:53:31]line 7.380 * 67.80 [15:53:31]line = 500.36 [15:53:31]line НДС 12% НСП 1% [15:53:31]line > о реализуемом товаре [15:53:31]line ОКРУГЛЕНИЕ: -0.36 [15:53:31]line ИТОГО: 500.00 [15:53:31]line Внесено: 500.00 [15:53:31]line СДАЧА: 0.00 [15:53:31]line НСП 1% : 4.43 [15:53:31]line НДС 12% : 53.14 [15:53:31]line Наличными: 500.00 [15:53:31]line Безнал.: 0.00 [15:53:31]line Место: АЗС № 136 "Партнер Нефть" [15:53:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:53:31]line СНО: Общий режим [15:53:31]line Чек 254 21.08.2024 15:53 [15:53:31]line Смена: 454 ФФД: 1.0 [15:53:31]line ЗНМ: 0300000067 [15:53:31]line РНМ: 0000000000092569 [15:53:31]line Версия ККМ: 001 [15:53:31]line ФМ: 0000000000871776 [15:53:31]line ФД: 140237 [15:53:31]line ФПД: 132207329196383 [15:53:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155330&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140237&fm=132207329196383&tin=02508201610067®Number=0000000000092569&sum=50000 [15:53:31]OFD Sender: Processing packet 140237 [packets to send 137, broken 136] [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00140237 [15:53:31]OFD Sender: To server: pG, [15:53:31]CommunicateWithHost lk.salyk.kg:30040 [15:53:31]ConnectInit lk.salyk.kg [15:53:31]written 0, free lines is 4095 [15:53:31]Connected sock=10 [15:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3C 3D 07 01 AE 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7A 0D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CD 23 02 00 35 04 06 00 78 3D EA E4 B9 5F EB 02 A8 90 DA 34 11 65 [15:53: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 37 36 4F 00 00 00 D3 AC 47 00 FF 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 37 36 10 04 04 00 CD 23 02 00 F4 03 04 00 0B B4 C5 66 B6 04 01 00 00 4E 3D 4B DA A8 88 34 47 [15:53:32]CommunicateWithHost err = 0 [15:53:32]CheckOFDResponse [15:53:32]1017 (14) - 77093643461234 [15:53:32]1041 (16) - 0000000000871776 [15:53:32]1040 (4) - 140237 [15:53:32]1012 (4) - 21.08.2024 09:31 [15:53:32]1206 (1) - 0 [15:53:32]OFD Sender: Remove packet 140237 [15:53:32]ProducePacketName [15:53:32]name=ofd_packets/00140237 [15:53:32]NVStorageDeleteData [15:53:32]Write to MH i2c: 01 00 00 2A 15 3F [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: 01 07 00 2A 15 00 00 00 00 00 DA 0C 2C [15:53:32]RasterBufferAndPrint [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]line [15:53:32]written 0, free lines is 3297 [15:53:32]MH_Cut [15:53:32]Write to MH i2c: D1 01 00 31 15 01 18 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 01 00 [15:53:32]MH_I2C_Read... [15:53:32]Read from MH i2c: D1 01 00 31 15 00 17 [15:53:32]Write to MH i2c: 01 00 00 32 15 47 [15:53:32]Write i2c OK [15:53:32]MH_I2C_Read... [15:53:32]OFD Sender: No OFD packet to send [15:53:32]*** Cut start [15:53:32]*** Partial cut [15:53:32]*** CUTSNS_PIN = 1 [15:53:32]*** CUTSNS_PIN = 0 [15:53:33]*** Brake cut motor [15:53:33]Read from MH i2c: 01 [15:53:33]MH_I2C_Read... [15:53:33]*** Stop cut motor [15:53:33]*** Cut end [15:53:33]Read from MH i2c: 01 07 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: 01 07 00 32 15 00 00 00 00 00 FF 0F 5C [15:53:33]process_action close_receipt done [15:53:33]requested_data is exist [15:53:33]produce_requested_data [15:53:33]requested_item fm.sn is exist - process it [15:53:33]wFMCommunicate request_size=4 [15:53:33]MH_SAM_APDU [15:53:33]CAPDU: 80 11 00 00 [15:53:33]Write to MH i2c: E2 08 00 33 15 80 11 00 00 00 00 00 00 C2 [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:33]Read from MH i2c: E2 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 17 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 17 00 33 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 19 [15:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:53:33]wFMCommunicate OK [15:53:33]requested_item fd.num is exist - process it [15:53:33]SAM_PROTO_GetFieldsCounters [15:53:33]wFMCommunicate request_size=4 [15:53:33]MH_SAM_APDU [15:53:33]CAPDU: 80 13 00 00 [15:53:33]Write to MH i2c: E2 08 00 34 15 80 13 00 00 00 00 00 00 C5 [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:33]Read from MH i2c: E2 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 62 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 62 00 34 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [15:53:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:33]wFMCommunicate OK [15:53:33]SAM_PROTO_GetFieldsCounters done [15:53:33]requested_item shift.num is exist - process it [15:53:33]requested_item shift.opened is exist - process it [15:53:33]req_shift_opened [15:53:33]FM_GetShiftState [15:53:33]SAM_PROTO_GetShiftState [15:53:33]wFMCommunicate request_size=4 [15:53:33]MH_SAM_APDU [15:53:33]CAPDU: 80 13 01 00 [15:53:33]Write to MH i2c: E2 08 00 35 15 80 13 01 00 00 00 00 00 C7 [15:53:33]Write i2c OK [15:53:33]MH_I2C_Read... [15:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:33]Read from MH i2c: E2 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 0E 00 [15:53:33]MH_I2C_Read... [15:53:33]Read from MH i2c: E2 0E 00 35 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 47 [15:53:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:53:33]wFMCommunicate OK [15:53:33]SAM_PROTO_GetShiftState done [15:53:33]FM_GetShiftState done [15:53:33]req_shift_opened done [15:53:33]requested_item shift.open_date is exist - process it [15:53:33]req_shift_open_date [15:53:33]req_shift_open_date done [15:53:33]produce_requested_data done [15:53:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140237,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:53:33]process_action_free close_receipt [15:53:33]json_value_free [15:53:33]json_value_free done [15:53:33]process_json_proto returns [15:53:33]Send response to host [15:53:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140237,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:53:33]free response buf [15:53:33]execute_script done [15:53:33]execute_script returns [15:53:33]free content buf [15:53:33]Sock 8.Close socket [15:53:33]Sock 8.Thread stoped [15:53:37]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:00]accept exits with 9 [15:57:00]New connection [15:57:00]New thread 3067592036 created [15:57:00]Thread 3067448676 joined [15:57:00]Waiting for new connection... [15:57:00] Sock 9.Parse request [15:57:00]Sock 9.Check first char [15:57:00]Sock 9.First char is OK [15:57:00]request: POST /json_proto HTTP/1.0 [15:57:00]Method: POST [15:57:00]URL: /json_proto [15:57:00]Method is POST - this is cgi request [15:57:00]url: /json_proto [15:57:00]query_string will be loaded in cgi processing [15:57:00]execute_cgi json_proto POST (null) [15:57:00]execute_cgi path=json_proto method=POST [15:57:00]POST find Content-Length [15:57:00]Host: 172.17.45.67:8080 [15:57:00]Content-Length: 677 [15:57:00]Content-Type: application/json [15:57:00] [15:57:00]POST finish read [15:57:00]Found Content-Length = 677 [15:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:00]execute_script... [15:57: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)594095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:00]POST & json_proto [15:57:00]process_json_proto [15:57:00]json parsed OK: [15:57:00]protocol is kg_v1.0 [15:57:00]action value=close_receipt [15:57:00]process_action close_receipt [15:57:00]cmd_close_receipt [15:57:00]MH_GetDate [15:57:00]Write to MH i2c: F0 00 00 36 15 3A [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 09 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: F0 09 00 36 15 00 4D 0E C6 66 5F 7F 2B 66 39 [15:57:00]GetLastDocTimeStamp 1724255610 [15:57:00]current date 1724255821 [15:57:00]FM_GetShiftState [15:57:00]SAM_PROTO_GetShiftState [15:57:00]wFMCommunicate request_size=4 [15:57:00]MH_SAM_APDU [15:57:00]CAPDU: 80 13 01 00 [15:57:00]Write to MH i2c: E2 08 00 37 15 80 13 01 00 00 00 00 00 C9 [15:57:00]Write i2c OK [15:57:00]MH_I2C_Read... [15:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:00]Read from MH i2c: E2 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 0E 00 [15:57:00]MH_I2C_Read... [15:57:00]Read from MH i2c: E2 0E 00 37 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 49 [15:57:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:57:00]wFMCommunicate OK [15:57:00]SAM_PROTO_GetShiftState done [15:57:00]FM_GetShiftState done [15:57:00]opened in 1724200467 [15:57:00]opened+sec_in_day 1724286867 [15:57:00]quantity*price = 30051 [15:57:00]sum+1 = 30052 [15:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 255 21.08.2024 15:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140238 ФПД: 184198212873813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140238&fm=184198212873813&tin=02508201610067®Number=0000000000092569&sum=30000 [15:57:02]StoreToDocumentArchive [15:57:02]shift 454 fd 140238 [15:57:02]save to /storage/0454/doc_00140238 [15:57:02]save last doc name /storage/0454/doc_00140238 to /storage/kkm_last_doc_name [15:57:02]save OK [15:57:02]Clear old archive folders... [15:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:02]tlvbuf is 01CDC4A0 [15:57:02]SAM_PROTO_ClearQueue [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 09 00 00 [15:57:02]Write to MH i2c: E2 08 00 44 15 80 09 00 00 00 00 00 00 CB [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 44 15 00 90 00 CD [15:57:02]RAPDU: 90 00 [15:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_ClearQueue done [15:57:02]KKMCreateOFDPacket [15:57:02]OFDProtocolAddRootSTLVToBuf [15:57:02]FM_MakeSignedData [15:57:02]FM_MakeSignedData [15:57:02]SAM_PROTO_SignData [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 0D 01 02 [15:57:02]Write to MH i2c: E2 08 00 45 15 80 0D 01 02 00 00 00 00 D3 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 45 15 00 90 00 CE [15:57:02]RAPDU: 90 00 [15:57:02]wFMCommunicate OK [15:57:02]wFMCommunicate request_size=255 [15:57:02]MH_SAM_APDU [15:57: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4E 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 23 02 00 35 04 06 00 A7 [15:57:02]Write to MH i2c: E2 02 01 46 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4E 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 23 02 00 35 04 06 00 A7 00 00 7C [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [15:57:02]RAPDU: 90 00 [15:57:02]wFMCommunicate OK [15:57:02]wFMCommunicate request_size=10 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 0D 02 02 05 86 FD 0B EE 55 [15:57:02]Write to MH i2c: E2 0D 00 47 15 80 0D 02 02 05 00 86 FD 0B EE 55 00 00 B1 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [15:57:02]RAPDU: 90 00 [15:57:02]wFMCommunicate OK [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 0D 03 02 [15:57:02]Write to MH i2c: E2 08 00 48 15 80 0D 03 02 00 00 00 00 D8 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0B 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 0B 00 48 15 00 CF F3 7C B4 B1 D0 5A D0 90 00 76 [15:57:02]RAPDU: CF F3 7C B4 B1 D0 5A D0 90 00 [15:57:02]wFMCommunicate OK [15:57:02]SAM_PROTO_SignData done [15:57:02]FM_MakeSignedData done [15:57:02]CreateOFDProtocolMessage [15:57:02]wFMCommunicate request_size=4 [15:57:02]MH_SAM_APDU [15:57:02]CAPDU: 80 11 00 00 [15:57:02]Write to MH i2c: E2 08 00 49 15 80 11 00 00 00 00 00 00 D8 [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:02]Read from MH i2c: E2 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 17 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: E2 17 00 49 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [15:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:57:02]wFMCommunicate OK [15:57:02]CreateOFDProtocolMessage done [15:57:02]OFDSenderStorePacket 140238 [15:57:02]StoreOFDPacket docnum=140238 [15:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C2 0F 07 01 EE 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4E 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 23 02 00 35 04 06 00 A7 86 FD 0B EE 55 CF F3 7C B4 B1 D0 5A D0 [15:57:02]CheckFolder [15:57:02]dirname=/storage/ofd_packets [15:57:02]CheckFolder done [15:57:02]ProducePacketName [15:57:02]name=ofd_packets/00140238 [15:57:02]NVStorageSaveData ofd_packets/00140238 [15:57:02]File name is /storage/ofd_packets/00140238 [15:57:02]Write 301 bytes [15:57:02]NVStorageSaveData done [15:57:02]OFDSenderStorePacket done [15:57:02]KKMCreateOFDPacket done [15:57:02]NVStorageSaveData kkm_last_timestamp [15:57:02]File name is /storage/kkm_last_timestamp [15:57:02]Write 4 bytes [15:57:02]NVStorageSaveData done [15:57:02]OFD Sender: Processing packet 140238 [packets to send 137, broken 136] [15:57:02]ProducePacketName [15:57:02]name=ofd_packets/00140238 [15:57:02]OFD Sender: To server: pG, [15:57:02]CommunicateWithHost lk.salyk.kg:30040 [15:57:02]ConnectInit lk.salyk.kg [15:57:02]ExternCall_PrintAddStr [15:57:02]wPrintStart [15:57:02]Write to MH i2c: 01 00 00 4A 15 5F [15:57:02]Write i2c OK [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 [15:57:02]MH_I2C_Read... [15:57:02]Read from MH i2c: 01 07 00 4A 15 00 00 00 00 00 FF 0F 74 [15:57:02]RasterBufferAndPrint [15:57:02]line Счет N : (1)594095 [15:57:02]line ИНН: 02508201610067 [15:57:02]line Контрольно-Кассовый Чек [15:57:02]line ПРОДАЖА [15:57:02]line ТРК (МРК, ГНК) : 61 [15:57:02]line Товар: 2710124500 [15:57:02]line Аи-95-К-5 [15:57:02]line 4.050 * 74.20 [15:57:02]line = 300.51 [15:57:02]line НДС 12% НСП 1% [15:57:02]line > о реализуемом товаре [15:57:02]line ОКРУГЛЕНИЕ: -0.51 [15:57:02]line ИТОГО: 300.00 [15:57:02]line Внесено: 300.00 [15:57:02]line СДАЧА: 0.00 [15:57:02]line НСП 1% : 2.66 [15:57:02]line НДС 12% : 31.91 [15:57:02]line Наличными: 300.00 [15:57:02]line Безнал.: 0.00 [15:57:02]line Место: АЗС № 136 "Партнер Нефть" [15:57:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:57:02]line СНО: Общий режим [15:57:02]line Чек 255 21.08.2024 15:57 [15:57:02]line Смена: 454 ФФД: 1.0 [15:57:02]line ЗНМ: 0300000067 [15:57:02]line РНМ: 0000000000092569 [15:57:02]line Версия ККМ: 001 [15:57:02]line ФМ: 0000000000871776 [15:57:02]line ФД: 140238 [15:57:02]line ФПД: 184198212873813 [15:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155702&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140238&fm=184198212873813&tin=02508201610067®Number=0000000000092569&sum=30000 [15:57:02]Connected sock=11 [15:57: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 37 36 0F 01 00 00 C2 0F 07 01 EE 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4E 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 23 02 00 35 04 06 00 A7 86 FD 0B EE 55 CF F3 7C B4 B1 D0 5A D0 [15:57:02]written 0, free lines is 4095 [15:57: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 37 36 4F 00 00 00 45 ED 47 00 AA 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CE 23 02 00 F4 03 04 00 DE B4 C5 66 B6 04 01 00 00 DC 28 4E 51 7C 85 C7 3E [15:57:03]CommunicateWithHost err = 0 [15:57:03]CheckOFDResponse [15:57:03]1017 (14) - 77093643461234 [15:57:03]1041 (16) - 0000000000871776 [15:57:03]1040 (4) - 140238 [15:57:03]1012 (4) - 21.08.2024 09:35 [15:57:03]1206 (1) - 0 [15:57:03]OFD Sender: Remove packet 140238 [15:57:03]ProducePacketName [15:57:03]name=ofd_packets/00140238 [15:57:03]NVStorageDeleteData [15:57:03]Write to MH i2c: 01 00 00 75 15 8A [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: 01 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: 01 07 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 CD 0C 6A [15:57:03]RasterBufferAndPrint [15:57:03]line [15:57:03]line [15:57:03]line [15:57:03]line [15:57:03]line [15:57:03]written 0, free lines is 3285 [15:57:03]MH_Cut [15:57:03]Write to MH i2c: D1 01 00 7C 15 01 63 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: D1 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: D1 01 00 [15:57:03]MH_I2C_Read... [15:57:03]Read from MH i2c: D1 01 00 7C 15 00 62 [15:57:03]Write to MH i2c: 01 00 00 7D 15 92 [15:57:03]Write i2c OK [15:57:03]MH_I2C_Read... [15:57:03]OFD Sender: No OFD packet to send [15:57:04]*** Cut start [15:57:04]*** Partial cut [15:57:04]*** CUTSNS_PIN = 1 [15:57:04]*** CUTSNS_PIN = 0 [15:57:04]*** Brake cut motor [15:57:04]Read from MH i2c: 01 [15:57:04]MH_I2C_Read... [15:57:04]*** Stop cut motor [15:57:04]*** Cut end [15:57:04]Read from MH i2c: 01 07 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 FF 0F A7 [15:57:04]process_action close_receipt done [15:57:04]requested_data is exist [15:57:04]produce_requested_data [15:57:04]requested_item fm.sn is exist - process it [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 11 00 00 [15:57:04]Write to MH i2c: E2 08 00 7E 15 80 11 00 00 00 00 00 00 0D [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 17 00 7E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 64 [15:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:57:04]wFMCommunicate OK [15:57:04]requested_item fd.num is exist - process it [15:57:04]SAM_PROTO_GetFieldsCounters [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 00 00 [15:57:04]Write to MH i2c: E2 08 00 7F 15 80 13 00 00 00 00 00 00 10 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 62 00 7F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [15:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetFieldsCounters done [15:57:04]requested_item shift.num is exist - process it [15:57:04]requested_item shift.opened is exist - process it [15:57:04]req_shift_opened [15:57:04]FM_GetShiftState [15:57:04]SAM_PROTO_GetShiftState [15:57:04]wFMCommunicate request_size=4 [15:57:04]MH_SAM_APDU [15:57:04]CAPDU: 80 13 01 00 [15:57:04]Write to MH i2c: E2 08 00 80 15 80 13 01 00 00 00 00 00 12 [15:57:04]Write i2c OK [15:57:04]MH_I2C_Read... [15:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:04]Read from MH i2c: E2 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 [15:57:04]MH_I2C_Read... [15:57:04]Read from MH i2c: E2 0E 00 80 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 92 [15:57:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:57:04]wFMCommunicate OK [15:57:04]SAM_PROTO_GetShiftState done [15:57:04]FM_GetShiftState done [15:57:04]req_shift_opened done [15:57:04]requested_item shift.open_date is exist - process it [15:57:04]req_shift_open_date [15:57:04]req_shift_open_date done [15:57:04]produce_requested_data done [15:57:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140238,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:57:04]process_action_free close_receipt [15:57:04]json_value_free [15:57:04]json_value_free done [15:57:04]process_json_proto returns [15:57:04]Send response to host [15:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140238,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:57:04]free response buf [15:57:04]execute_script done [15:57:04]execute_script returns [15:57:04]free content buf [15:57:04]Sock 9.Close socket [15:57:04]Sock 9.Thread stoped [15:57:08]OFD Sender: No OFD packet to send [15:57:10]accept exits with 8 [15:57:10]New connection [15:57:10]New thread 3067448676 created [15:57:10]Thread 3067592036 joined [15:57:10]Waiting for new connection... [15:57:10] Sock 8.Parse request [15:57:10]Sock 8.Check first char [15:57:10]Sock 8.First char is OK [15:57:10]request: POST /json_proto HTTP/1.0 [15:57:10]Method: POST [15:57:10]URL: /json_proto [15:57:10]Method is POST - this is cgi request [15:57:10]url: /json_proto [15:57:10]query_string will be loaded in cgi processing [15:57:10]execute_cgi json_proto POST (null) [15:57:10]execute_cgi path=json_proto method=POST [15:57:10]POST find Content-Length [15:57:10]Host: 172.17.45.67:8080 [15:57:10]Content-Length: 677 [15:57:10]Content-Type: application/json [15:57:10] [15:57:10]POST finish read [15:57:10]Found Content-Length = 677 [15:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:57:10]execute_script... [15:57: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)594096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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:57:10]POST & json_proto [15:57:10]process_json_proto [15:57:10]json parsed OK: [15:57:10]protocol is kg_v1.0 [15:57:10]action value=close_receipt [15:57:10]process_action close_receipt [15:57:10]cmd_close_receipt [15:57:10]MH_GetDate [15:57:10]Write to MH i2c: F0 00 00 81 15 85 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: F0 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: F0 09 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: F0 09 00 81 15 00 57 0E C6 66 5F 7F 2B 66 8E [15:57:10]GetLastDocTimeStamp 1724255822 [15:57:10]current date 1724255831 [15:57:10]FM_GetShiftState [15:57:10]SAM_PROTO_GetShiftState [15:57:10]wFMCommunicate request_size=4 [15:57:10]MH_SAM_APDU [15:57:10]CAPDU: 80 13 01 00 [15:57:10]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [15:57:10]Write i2c OK [15:57:10]MH_I2C_Read... [15:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:10]Read from MH i2c: E2 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 0E 00 [15:57:10]MH_I2C_Read... [15:57:10]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 94 [15:57:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:57:10]wFMCommunicate OK [15:57:10]SAM_PROTO_GetShiftState done [15:57:10]FM_GetShiftState done [15:57:10]opened in 1724200467 [15:57:10]opened+sec_in_day 1724286867 [15:57:10]quantity*price = 60003 [15:57:10]sum+1 = 60004 [15:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 256 21.08.2024 15:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140239 ФПД: 125278024417400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140239&fm=125278024417400&tin=02508201610067®Number=0000000000092569&sum=60000 [15:57:11]StoreToDocumentArchive [15:57:11]shift 454 fd 140239 [15:57:11]save to /storage/0454/doc_00140239 [15:57:11]save last doc name /storage/0454/doc_00140239 to /storage/kkm_last_doc_name [15:57:11]save OK [15:57:11]Clear old archive folders... [15:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:11]tlvbuf is 01C77750 [15:57:11]SAM_PROTO_ClearQueue [15:57:11]wFMCommunicate request_size=4 [15:57:11]MH_SAM_APDU [15:57:11]CAPDU: 80 09 00 00 [15:57:11]Write to MH i2c: E2 08 00 8F 15 80 09 00 00 00 00 00 00 16 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [15:57:11]RAPDU: 90 00 [15:57:11]wFMCommunicate OK [15:57:11]SAM_PROTO_ClearQueue done [15:57:11]KKMCreateOFDPacket [15:57:11]OFDProtocolAddRootSTLVToBuf [15:57:11]FM_MakeSignedData [15:57:11]FM_MakeSignedData [15:57:11]SAM_PROTO_SignData [15:57:11]wFMCommunicate request_size=4 [15:57:11]MH_SAM_APDU [15:57:11]CAPDU: 80 0D 01 02 [15:57:11]Write to MH i2c: E2 08 00 90 15 80 0D 01 02 00 00 00 00 1E [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [15:57:11]RAPDU: 90 00 [15:57:11]wFMCommunicate OK [15:57:11]wFMCommunicate request_size=255 [15:57:11]MH_SAM_APDU [15:57: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 00 01 00 00 F4 03 04 00 57 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 23 02 00 35 04 06 00 71 [15:57:11]Write to MH i2c: E2 02 01 91 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 00 01 00 00 F4 03 04 00 57 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 23 02 00 35 04 06 00 71 00 00 2C [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [15:57:11]RAPDU: 90 00 [15:57:11]wFMCommunicate OK [15:57:11]wFMCommunicate request_size=10 [15:57:11]MH_SAM_APDU [15:57:11]CAPDU: 80 0D 02 02 05 F0 90 24 C0 78 [15:57:11]Write to MH i2c: E2 0D 00 92 15 80 0D 02 02 05 00 F0 90 24 C0 78 00 00 07 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [15:57:11]RAPDU: 90 00 [15:57:11]wFMCommunicate OK [15:57:11]wFMCommunicate request_size=4 [15:57:11]MH_SAM_APDU [15:57:11]CAPDU: 80 0D 03 02 [15:57:11]Write to MH i2c: E2 08 00 93 15 80 0D 03 02 00 00 00 00 23 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 0B 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 0B 00 93 15 00 33 C0 B1 C1 75 57 E3 D4 90 00 0C [15:57:11]RAPDU: 33 C0 B1 C1 75 57 E3 D4 90 00 [15:57:11]wFMCommunicate OK [15:57:11]SAM_PROTO_SignData done [15:57:11]FM_MakeSignedData done [15:57:11]CreateOFDProtocolMessage [15:57:11]wFMCommunicate request_size=4 [15:57:11]MH_SAM_APDU [15:57:11]CAPDU: 80 11 00 00 [15:57:11]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:11]Read from MH i2c: E2 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 17 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [15:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:57:11]wFMCommunicate OK [15:57:11]CreateOFDProtocolMessage done [15:57:11]OFDSenderStorePacket 140239 [15:57:11]StoreOFDPacket docnum=140239 [15:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 CA 07 01 A2 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 00 01 00 00 F4 03 04 00 57 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 23 02 00 35 04 06 00 71 F0 90 24 C0 78 33 C0 B1 C1 75 57 E3 D4 [15:57:11]CheckFolder [15:57:11]dirname=/storage/ofd_packets [15:57:11]CheckFolder done [15:57:11]ProducePacketName [15:57:11]name=ofd_packets/00140239 [15:57:11]NVStorageSaveData ofd_packets/00140239 [15:57:11]File name is /storage/ofd_packets/00140239 [15:57:11]Write 301 bytes [15:57:11]NVStorageSaveData done [15:57:11]OFDSenderStorePacket done [15:57:11]KKMCreateOFDPacket done [15:57:11]NVStorageSaveData kkm_last_timestamp [15:57:11]File name is /storage/kkm_last_timestamp [15:57:11]Write 4 bytes [15:57:11]NVStorageSaveData done [15:57:11]ExternCall_PrintAddStr [15:57:11]wPrintStart [15:57:11]Write to MH i2c: 01 00 00 95 15 AA [15:57:11]Write i2c OK [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: 01 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: 01 07 00 [15:57:11]MH_I2C_Read... [15:57:11]Read from MH i2c: 01 07 00 95 15 00 00 00 00 00 FF 0F BF [15:57:11]RasterBufferAndPrint [15:57:11]line Счет N : (1)594096 [15:57:11]line ИНН: 02508201610067 [15:57:11]line Контрольно-Кассовый Чек [15:57:11]line ПРОДАЖА [15:57:11]line ТРК (МРК, ГНК) : 52 [15:57:11]line Товар: 2710124130 [15:57:11]line Аи-92-К-5 [15:57:11]line 8.850 * 67.80 [15:57:11]line = 600.03 [15:57:11]line НДС 12% НСП 1% [15:57:11]line > о реализуемом товаре [15:57:11]line ОКРУГЛЕНИЕ: -0.03 [15:57:11]line ИТОГО: 600.00 [15:57:11]line Внесено: 600.00 [15:57:11]line СДАЧА: 0.00 [15:57:11]line НСП 1% : 5.31 [15:57:11]line НДС 12% : 63.72 [15:57:11]line Наличными: 600.00 [15:57:11]line Безнал.: 0.00 [15:57:11]line Место: АЗС № 136 "Партнер Нефть" [15:57:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [15:57:11]line СНО: Общий режим [15:57:11]line Чек 256 21.08.2024 15:57 [15:57:11]line Смена: 454 ФФД: 1.0 [15:57:11]line ЗНМ: 0300000067 [15:57:11]line РНМ: 0000000000092569 [15:57:11]line Версия ККМ: 001 [15:57:11]line ФМ: 0000000000871776 [15:57:11]line ФД: 140239 [15:57:11]line ФПД: 125278024417400 [15:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T155711&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140239&fm=125278024417400&tin=02508201610067®Number=0000000000092569&sum=60000 [15:57:11]written 0, free lines is 4095 [15:57:11]OFD Sender: Processing packet 140239 [packets to send 137, broken 136] [15:57:11]ProducePacketName [15:57:11]name=ofd_packets/00140239 [15:57:11]OFD Sender: To server: pG, [15:57:11]CommunicateWithHost lk.salyk.kg:30040 [15:57:11]ConnectInit lk.salyk.kg [15:57:12]Connected sock=9 [15:57: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 37 36 0F 01 00 00 19 CA 07 01 A2 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 00 01 00 00 F4 03 04 00 57 0E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 CF 23 02 00 35 04 06 00 71 F0 90 24 C0 78 33 C0 B1 C1 75 57 E3 D4 [15:57:12]Write to MH i2c: 01 00 00 C0 15 D5 [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: 01 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: 01 07 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 DF 0C C7 [15:57:12]RasterBufferAndPrint [15:57:12]line [15:57:12]line [15:57:12]line [15:57:12]line [15:57:12]line [15:57:12]written 0, free lines is 3306 [15:57:12]MH_Cut [15:57:12]Write to MH i2c: D1 01 00 C7 15 01 AE [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: D1 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: D1 01 00 [15:57:12]MH_I2C_Read... [15:57:12]Read from MH i2c: D1 01 00 C7 15 00 AD [15:57:12]Write to MH i2c: 01 00 00 C8 15 DD [15:57:12]Write i2c OK [15:57:12]MH_I2C_Read... [15:57: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 37 36 4F 00 00 00 9C C4 47 00 52 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 37 36 10 04 04 00 CF 23 02 00 F4 03 04 00 E7 B4 C5 66 B6 04 01 00 00 73 01 0E 6D 5C 2A B5 B7 [15:57:12]CommunicateWithHost err = 0 [15:57:12]CheckOFDResponse [15:57:12]1017 (14) - 77093643461234 [15:57:12]1041 (16) - 0000000000871776 [15:57:12]1040 (4) - 140239 [15:57:12]1012 (4) - 21.08.2024 09:35 [15:57:12]1206 (1) - 0 [15:57:12]OFD Sender: Remove packet 140239 [15:57:12]ProducePacketName [15:57:12]name=ofd_packets/00140239 [15:57:12]NVStorageDeleteData [15:57:12]OFD Sender: No OFD packet to send [15:57:12]*** Cut start [15:57:12]*** Partial cut [15:57:12]*** CUTSNS_PIN = 1 [15:57:13]*** CUTSNS_PIN = 0 [15:57:13]*** Brake cut motor [15:57:13]Read from MH i2c: 01 [15:57:13]MH_I2C_Read... [15:57:13]*** Stop cut motor [15:57:13]*** Cut end [15:57:13]Read from MH i2c: 01 07 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [15:57:13]process_action close_receipt done [15:57:13]requested_data is exist [15:57:13]produce_requested_data [15:57:13]requested_item fm.sn is exist - process it [15:57:13]wFMCommunicate request_size=4 [15:57:13]MH_SAM_APDU [15:57:13]CAPDU: 80 11 00 00 [15:57:13]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [15:57:13]Write i2c OK [15:57:13]MH_I2C_Read... [15:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:13]Read from MH i2c: E2 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 17 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AF [15:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [15:57:13]wFMCommunicate OK [15:57:13]requested_item fd.num is exist - process it [15:57:13]SAM_PROTO_GetFieldsCounters [15:57:13]wFMCommunicate request_size=4 [15:57:13]MH_SAM_APDU [15:57:13]CAPDU: 80 13 00 00 [15:57:13]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [15:57:13]Write i2c OK [15:57:13]MH_I2C_Read... [15:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:13]Read from MH i2c: E2 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 62 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 62 00 CA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 CF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:13]wFMCommunicate OK [15:57:13]SAM_PROTO_GetFieldsCounters done [15:57:13]requested_item shift.num is exist - process it [15:57:13]requested_item shift.opened is exist - process it [15:57:13]req_shift_opened [15:57:13]FM_GetShiftState [15:57:13]SAM_PROTO_GetShiftState [15:57:13]wFMCommunicate request_size=4 [15:57:13]MH_SAM_APDU [15:57:13]CAPDU: 80 13 01 00 [15:57:13]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [15:57:13]Write i2c OK [15:57:13]MH_I2C_Read... [15:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:13]Read from MH i2c: E2 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 [15:57:13]MH_I2C_Read... [15:57:13]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DD [15:57:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [15:57:13]wFMCommunicate OK [15:57:13]SAM_PROTO_GetShiftState done [15:57:13]FM_GetShiftState done [15:57:13]req_shift_opened done [15:57:13]requested_item shift.open_date is exist - process it [15:57:13]req_shift_open_date [15:57:13]req_shift_open_date done [15:57:13]produce_requested_data done [15:57:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140239,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [15:57:13]process_action_free close_receipt [15:57:13]json_value_free [15:57:13]json_value_free done [15:57:13]process_json_proto returns [15:57:13]Send response to host [15:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140239,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [15:57:13]free response buf [15:57:13]execute_script done [15:57:13]execute_script returns [15:57:13]free content buf [15:57:13]Sock 8.Close socket [15:57:13]Sock 8.Thread stoped [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:30]accept exits with 10 [16:00:30]New connection [16:00:30]New thread 3067592036 created [16:00:30]Thread 3067448676 joined [16:00:30]Waiting for new connection... [16:00:30] Sock 10.Parse request [16:00:30]Sock 10.Check first char [16:00:30]Sock 10.First char is OK [16:00:30]request: POST /json_proto HTTP/1.0 [16:00:30]Method: POST [16:00:30]URL: /json_proto [16:00:30]Method is POST - this is cgi request [16:00:30]url: /json_proto [16:00:30]query_string will be loaded in cgi processing [16:00:30]execute_cgi json_proto POST (null) [16:00:30]execute_cgi path=json_proto method=POST [16:00:30]POST find Content-Length [16:00:30]Host: 172.17.45.67:8080 [16:00:30]Content-Length: 677 [16:00:30]Content-Type: application/json [16:00:30] [16:00:30]POST finish read [16:00:30]Found Content-Length = 677 [16:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.860, "sum" : 360.61, "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" ] } } [16:00:30]execute_script... [16:00: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)594097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.860, "sum" : 360.61, "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" ] } } [16:00:30]POST & json_proto [16:00:30]process_json_proto [16:00:30]json parsed OK: [16:00:30]protocol is kg_v1.0 [16:00:30]action value=close_receipt [16:00:30]process_action close_receipt [16:00:30]cmd_close_receipt [16:00:30]MH_GetDate [16:00:30]Write to MH i2c: F0 00 00 CC 15 D0 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 09 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 09 00 CC 15 00 1F 0F C6 66 5F 7F 2B 66 A2 [16:00:30]GetLastDocTimeStamp 1724255831 [16:00:30]current date 1724256031 [16:00:30]FM_GetShiftState [16:00:30]SAM_PROTO_GetShiftState [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 13 01 00 [16:00:30]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DF [16:00:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:00:30]wFMCommunicate OK [16:00:30]SAM_PROTO_GetShiftState done [16:00:30]FM_GetShiftState done [16:00:30]opened in 1724200467 [16:00:30]opened+sec_in_day 1724286867 [16:00:30]quantity*price = 36061 [16:00:30]sum+1 = 36062 [16:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 257 21.08.2024 16:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140240 ФПД: 132917455332149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140240&fm=132917455332149&tin=02508201610067®Number=0000000000092569&sum=36000 [16:00:31]StoreToDocumentArchive [16:00:31]shift 454 fd 140240 [16:00:31]save to /storage/0454/doc_00140240 [16:00:31]save last doc name /storage/0454/doc_00140240 to /storage/kkm_last_doc_name [16:00:31]save OK [16:00:31]Clear old archive folders... [16:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:31]tlvbuf is 01C9A4D0 [16:00:31]SAM_PROTO_ClearQueue [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 09 00 00 [16:00:31]Write to MH i2c: E2 08 00 DA 15 80 09 00 00 00 00 00 00 61 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]SAM_PROTO_ClearQueue done [16:00:31]KKMCreateOFDPacket [16:00:31]OFDProtocolAddRootSTLVToBuf [16:00:31]FM_MakeSignedData [16:00:31]FM_MakeSignedData [16:00:31]SAM_PROTO_SignData [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 01 02 [16:00:31]Write to MH i2c: E2 08 00 DB 15 80 0D 01 02 00 00 00 00 69 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=255 [16:00:31]MH_SAM_APDU [16:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DD 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 01 01 00 00 F4 03 04 00 1F 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 23 02 00 35 04 06 00 78 [16:00:31]Write to MH i2c: E2 02 01 DC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DD 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 01 01 00 00 F4 03 04 00 1F 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 23 02 00 35 04 06 00 78 00 00 3B [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]wFMCommunicate request_size=10 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 02 02 05 E3 41 B5 A3 35 [16:00:32]Write to MH i2c: E2 0D 00 DD 15 80 0D 02 02 05 00 E3 41 B5 A3 35 00 00 27 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [16:00:32]RAPDU: 90 00 [16:00:32]wFMCommunicate OK [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 0D 03 02 [16:00:32]Write to MH i2c: E2 08 00 DE 15 80 0D 03 02 00 00 00 00 6E [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0B 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 0B 00 DE 15 00 71 E6 F3 7A F6 ED 81 0E 90 00 A5 [16:00:32]RAPDU: 71 E6 F3 7A F6 ED 81 0E 90 00 [16:00:32]wFMCommunicate OK [16:00:32]SAM_PROTO_SignData done [16:00:32]FM_MakeSignedData done [16:00:32]CreateOFDProtocolMessage [16:00:32]wFMCommunicate request_size=4 [16:00:32]MH_SAM_APDU [16:00:32]CAPDU: 80 11 00 00 [16:00:32]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:32]Read from MH i2c: E2 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C5 [16:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:32]wFMCommunicate OK [16:00:32]CreateOFDProtocolMessage done [16:00:32]OFDSenderStorePacket 140240 [16:00:32]StoreOFDPacket docnum=140240 [16:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 7D 07 01 09 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DD 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 01 01 00 00 F4 03 04 00 1F 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 23 02 00 35 04 06 00 78 E3 41 B5 A3 35 71 E6 F3 7A F6 ED 81 0E [16:00:32]CheckFolder [16:00:32]dirname=/storage/ofd_packets [16:00:32]CheckFolder done [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00140240 [16:00:32]NVStorageSaveData ofd_packets/00140240 [16:00:32]File name is /storage/ofd_packets/00140240 [16:00:32]Write 301 bytes [16:00:32]NVStorageSaveData done [16:00:32]OFDSenderStorePacket done [16:00:32]KKMCreateOFDPacket done [16:00:32]NVStorageSaveData kkm_last_timestamp [16:00:32]File name is /storage/kkm_last_timestamp [16:00:32]Write 4 bytes [16:00:32]NVStorageSaveData done [16:00:32]ExternCall_PrintAddStr [16:00:32]wPrintStart [16:00:32]Write to MH i2c: 01 00 00 E0 15 F5 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FF 0F 0A [16:00:32]RasterBufferAndPrint [16:00:32]line Счет N : (1)594097 [16:00:32]line ИНН: 02508201610067 [16:00:32]line Контрольно-Кассовый Чек [16:00:32]line ПРОДАЖА [16:00:32]line ТРК (МРК, ГНК) : 41 [16:00:32]line Товар: 2710124500 [16:00:32]line Аи-95-К-5 [16:00:32]line 4.860 * 74.20 [16:00:32]line = 360.61 [16:00:32]line НДС 12% НСП 1% [16:00:32]line > о реализуемом товаре [16:00:32]line ОКРУГЛЕНИЕ: -0.61 [16:00:32]line ИТОГО: 360.00 [16:00:32]line Внесено: 360.00 [16:00:32]line СДАЧА: 0.00 [16:00:32]line НСП 1% : 3.19 [16:00:32]line НДС 12% : 38.29 [16:00:32]line Наличными: 360.00 [16:00:32]line Безнал.: 0.00 [16:00:32]line Место: АЗС № 136 "Партнер Нефть" [16:00:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:00:32]line СНО: Общий режим [16:00:32]line Чек 257 21.08.2024 16:00 [16:00:32]line Смена: 454 ФФД: 1.0 [16:00:32]line ЗНМ: 0300000067 [16:00:32]line РНМ: 0000000000092569 [16:00:32]line Версия ККМ: 001 [16:00:32]line ФМ: 0000000000871776 [16:00:32]line ФД: 140240 [16:00:32]line ФПД: 132917455332149 [16:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140240&fm=132917455332149&tin=02508201610067®Number=0000000000092569&sum=36000 [16:00:32]OFD Sender: Processing packet 140240 [packets to send 137, broken 136] [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00140240 [16:00:32]OFD Sender: To server: pG, [16:00:32]CommunicateWithHost lk.salyk.kg:30040 [16:00:32]ConnectInit lk.salyk.kg [16:00:32]written 0, free lines is 4095 [16:00:32]Connected sock=9 [16:00: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 37 36 0F 01 00 00 92 7D 07 01 09 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 12 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DD 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 01 01 00 00 F4 03 04 00 1F 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D0 23 02 00 35 04 06 00 78 E3 41 B5 A3 35 71 E6 F3 7A F6 ED 81 0E [16: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 37 36 4F 00 00 00 D4 5E 47 00 CA 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 37 36 10 04 04 00 D0 23 02 00 F4 03 04 00 B0 B5 C5 66 B6 04 01 00 00 D6 16 D7 40 D4 B8 B4 21 [16:00:33]CommunicateWithHost err = 0 [16:00:33]CheckOFDResponse [16:00:33]1017 (14) - 77093643461234 [16:00:33]1041 (16) - 0000000000871776 [16:00:33]1040 (4) - 140240 [16:00:33]1012 (4) - 21.08.2024 09:38 [16:00:33]1206 (1) - 0 [16:00:33]OFD Sender: Remove packet 140240 [16:00:33]ProducePacketName [16:00:33]name=ofd_packets/00140240 [16:00:33]NVStorageDeleteData [16:00:33]Write to MH i2c: 01 00 00 0B 16 21 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 07 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 F5 0C 29 [16:00:33]RasterBufferAndPrint [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]line [16:00:33]written 0, free lines is 3326 [16:00:33]MH_Cut [16:00:33]Write to MH i2c: D1 01 00 12 16 01 FA [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 01 00 [16:00:33]MH_I2C_Read... [16:00:33]Read from MH i2c: D1 01 00 12 16 00 F9 [16:00:33]Write to MH i2c: 01 00 00 13 16 29 [16:00:33]Write i2c OK [16:00:33]MH_I2C_Read... [16:00:33]OFD Sender: No OFD packet to send [16:00:33]*** Cut start [16:00:33]*** Partial cut [16:00:33]*** CUTSNS_PIN = 1 [16:00:33]*** CUTSNS_PIN = 0 [16:00:34]*** Brake cut motor [16:00:34]Read from MH i2c: 01 [16:00:34]MH_I2C_Read... [16:00:34]*** Stop cut motor [16:00:34]*** Cut end [16:00:34]Read from MH i2c: 01 07 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 FF 0F 3E [16:00:34]process_action close_receipt done [16:00:34]requested_data is exist [16:00:34]produce_requested_data [16:00:34]requested_item fm.sn is exist - process it [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 11 00 00 [16:00:34]Write to MH i2c: E2 08 00 14 16 80 11 00 00 00 00 00 00 A4 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 14 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FB [16:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:00:34]wFMCommunicate OK [16:00:34]requested_item fd.num is exist - process it [16:00:34]SAM_PROTO_GetFieldsCounters [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 00 00 [16:00:34]Write to MH i2c: E2 08 00 15 16 80 13 00 00 00 00 00 00 A7 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 15 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [16:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetFieldsCounters done [16:00:34]requested_item shift.num is exist - process it [16:00:34]requested_item shift.opened is exist - process it [16:00:34]req_shift_opened [16:00:34]FM_GetShiftState [16:00:34]SAM_PROTO_GetShiftState [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 01 00 [16:00:34]Write to MH i2c: E2 08 00 16 16 80 13 01 00 00 00 00 00 A9 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 16 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [16:00:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetShiftState done [16:00:34]FM_GetShiftState done [16:00:34]req_shift_opened done [16:00:34]requested_item shift.open_date is exist - process it [16:00:34]req_shift_open_date [16:00:34]req_shift_open_date done [16:00:34]produce_requested_data done [16:00:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140240,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:00:34]process_action_free close_receipt [16:00:34]json_value_free [16:00:34]json_value_free done [16:00:34]process_json_proto returns [16:00:34]Send response to host [16:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140240,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:00:34]free response buf [16:00:34]execute_script done [16:00:34]execute_script returns [16:00:34]free content buf [16:00:34]Sock 10.Close socket [16:00:34]Sock 10.Thread stoped [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [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]accept exits with 8 [16:03:53]New connection [16:03:53]New thread 3067448676 created [16:03:53]Thread 3067592036 joined [16:03:53]Waiting for new connection... [16:03:53] Sock 8.Parse request [16:03:53]Sock 8.Check first char [16:03:53]Sock 8.First char is OK [16:03:53]request: POST /json_proto HTTP/1.0 [16:03:53]Method: POST [16:03:53]URL: /json_proto [16:03:53]Method is POST - this is cgi request [16:03:53]url: /json_proto [16:03:53]query_string will be loaded in cgi processing [16:03:53]execute_cgi json_proto POST (null) [16:03:53]execute_cgi path=json_proto method=POST [16:03:53]POST find Content-Length [16:03:53]Host: 172.17.45.67:8080 [16:03:53]Content-Length: 677 [16:03:53]Content-Type: application/json [16:03:53] [16:03:53]POST finish read [16:03:53]Found Content-Length = 677 [16:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:53]execute_script... [16:03:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:53]POST & json_proto [16:03:53]process_json_proto [16:03:53]json parsed OK: [16:03:53]protocol is kg_v1.0 [16:03:53]action value=close_receipt [16:03:53]process_action close_receipt [16:03:53]cmd_close_receipt [16:03:53]MH_GetDate [16:03:53]Write to MH i2c: F0 00 00 17 16 1C [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: F0 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: F0 09 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: F0 09 00 17 16 00 EA 0F C6 66 5F 7F 2B 66 B9 [16:03:53]GetLastDocTimeStamp 1724256031 [16:03:53]current date 1724256234 [16:03:53]FM_GetShiftState [16:03:53]SAM_PROTO_GetShiftState [16:03:53]wFMCommunicate request_size=4 [16:03:53]MH_SAM_APDU [16:03:53]CAPDU: 80 13 01 00 [16:03:53]Write to MH i2c: E2 08 00 18 16 80 13 01 00 00 00 00 00 AB [16:03:53]Write i2c OK [16:03:53]MH_I2C_Read... [16:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:53]Read from MH i2c: E2 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 [16:03:53]MH_I2C_Read... [16:03:53]Read from MH i2c: E2 0E 00 18 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2B [16:03:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:03:53]wFMCommunicate OK [16:03:53]SAM_PROTO_GetShiftState done [16:03:53]FM_GetShiftState done [16:03:53]opened in 1724200467 [16:03:53]opened+sec_in_day 1724286867 [16:03:53]quantity*price = 50010 [16:03:53]sum+1 = 50012 [16:03:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 258 21.08.2024 16:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140241 ФПД: 234333018927831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160354&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140241&fm=234333018927831&tin=02508201610067®Number=0000000000092569&sum=50000 [16:03:54]StoreToDocumentArchive [16:03:54]shift 454 fd 140241 [16:03:54]save to /storage/0454/doc_00140241 [16:03:54]save last doc name /storage/0454/doc_00140241 to /storage/kkm_last_doc_name [16:03:54]save OK [16:03:54]Clear old archive folders... [16:03:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:54]tlvbuf is 01CC8250 [16:03:54]SAM_PROTO_ClearQueue [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 09 00 00 [16:03:54]Write to MH i2c: E2 08 00 25 16 80 09 00 00 00 00 00 00 AD [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]SAM_PROTO_ClearQueue done [16:03:54]KKMCreateOFDPacket [16:03:54]OFDProtocolAddRootSTLVToBuf [16:03:54]FM_MakeSignedData [16:03:54]FM_MakeSignedData [16:03:54]SAM_PROTO_SignData [16:03:54]wFMCommunicate request_size=4 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 01 02 [16:03:54]Write to MH i2c: E2 08 00 26 16 80 0D 01 02 00 00 00 00 B5 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:54]Read from MH i2c: E2 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 [16:03:54]MH_I2C_Read... [16:03:54]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [16:03:54]RAPDU: 90 00 [16:03:54]wFMCommunicate OK [16:03:54]wFMCommunicate request_size=255 [16:03:54]MH_SAM_APDU [16:03:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 EA 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 23 02 00 35 04 06 00 D5 [16:03:54]Write to MH i2c: E2 02 01 27 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 EA 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 23 02 00 35 04 06 00 D5 00 00 E0 [16:03:54]Write i2c OK [16:03:54]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 03 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [16:03:55]RAPDU: 90 00 [16:03:55]wFMCommunicate OK [16:03:55]wFMCommunicate request_size=10 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 0D 02 02 05 1F E8 5A 32 D7 [16:03:55]Write to MH i2c: E2 0D 00 28 16 80 0D 02 02 05 00 1F E8 5A 32 D7 00 00 2C [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 03 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [16:03:55]RAPDU: 90 00 [16:03:55]wFMCommunicate OK [16:03:55]wFMCommunicate request_size=4 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 0D 03 02 [16:03:55]Write to MH i2c: E2 08 00 29 16 80 0D 03 02 00 00 00 00 BA [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 0B 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 0B 00 29 16 00 C0 2F 9C E4 A8 C8 D8 A0 90 00 12 [16:03:55]RAPDU: C0 2F 9C E4 A8 C8 D8 A0 90 00 [16:03:55]wFMCommunicate OK [16:03:55]SAM_PROTO_SignData done [16:03:55]FM_MakeSignedData done [16:03:55]CreateOFDProtocolMessage [16:03:55]wFMCommunicate request_size=4 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 11 00 00 [16:03:55]Write to MH i2c: E2 08 00 2A 16 80 11 00 00 00 00 00 00 BA [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 17 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 17 00 2A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 11 [16:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:03:55]wFMCommunicate OK [16:03:55]CreateOFDProtocolMessage done [16:03:55]OFDSenderStorePacket 140241 [16:03:55]StoreOFDPacket docnum=140241 [16:03:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7F 63 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 EA 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 23 02 00 35 04 06 00 D5 1F E8 5A 32 D7 C0 2F 9C E4 A8 C8 D8 A0 [16:03:55]CheckFolder [16:03:55]dirname=/storage/ofd_packets [16:03:55]CheckFolder done [16:03:55]ProducePacketName [16:03:55]name=ofd_packets/00140241 [16:03:55]NVStorageSaveData ofd_packets/00140241 [16:03:55]File name is /storage/ofd_packets/00140241 [16:03:55]Write 301 bytes [16:03:55]NVStorageSaveData done [16:03:55]OFDSenderStorePacket done [16:03:55]KKMCreateOFDPacket done [16:03:55]NVStorageSaveData kkm_last_timestamp [16:03:55]File name is /storage/kkm_last_timestamp [16:03:55]Write 4 bytes [16:03:55]NVStorageSaveData done [16:03:55]ExternCall_PrintAddStr [16:03:55]wPrintStart [16:03:55]Write to MH i2c: 01 00 00 2B 16 41 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 07 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 FF 0F 56 [16:03:55]RasterBufferAndPrint [16:03:55]line Счет N : (1)594098 [16:03:55]line ИНН: 02508201610067 [16:03:55]line Контрольно-Кассовый Чек [16:03:55]line ПРОДАЖА [16:03:55]line ТРК (МРК, ГНК) : 41 [16:03:55]line Товар: 2710124500 [16:03:55]line Аи-95-К-5 [16:03:55]line 6.740 * 74.20 [16:03:55]line = 500.11 [16:03:55]line НДС 12% НСП 1% [16:03:55]line > о реализуемом товаре [16:03:55]line ОКРУГЛЕНИЕ: -0.11 [16:03:55]line ИТОГО: 500.00 [16:03:55]line Внесено: 500.00 [16:03:55]line СДАЧА: 0.00 [16:03:55]line НСП 1% : 4.43 [16:03:55]line НДС 12% : 53.11 [16:03:55]line Наличными: 500.00 [16:03:55]line Безнал.: 0.00 [16:03:55]line Место: АЗС № 136 "Партнер Нефть" [16:03:55]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:03:55]line СНО: Общий режим [16:03:55]line Чек 258 21.08.2024 16:03 [16:03:55]line Смена: 454 ФФД: 1.0 [16:03:55]line ЗНМ: 0300000067 [16:03:55]line РНМ: 0000000000092569 [16:03:55]line Версия ККМ: 001 [16:03:55]line ФМ: 0000000000871776 [16:03:55]line ФД: 140241 [16:03:55]line ФПД: 234333018927831 [16:03:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160354&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140241&fm=234333018927831&tin=02508201610067®Number=0000000000092569&sum=50000 [16:03:55]written 0, free lines is 4095 [16:03:55]OFD Sender: Processing packet 140241 [packets to send 137, broken 136] [16:03:55]ProducePacketName [16:03:55]name=ofd_packets/00140241 [16:03:55]OFD Sender: To server: pG, [16:03:55]CommunicateWithHost lk.salyk.kg:30040 [16:03:55]ConnectInit lk.salyk.kg [16:03:55]Connected sock=10 [16:03:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7F 63 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 EA 0F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D1 23 02 00 35 04 06 00 D5 1F E8 5A 32 D7 C0 2F 9C E4 A8 C8 D8 A0 [16:03:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 15 28 47 00 C6 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 37 36 10 04 04 00 D1 23 02 00 F4 03 04 00 7B B6 C5 66 B6 04 01 00 00 A7 0B 5A 15 16 3D CD ED [16:03:56]CommunicateWithHost err = 0 [16:03:56]CheckOFDResponse [16:03:56]1017 (14) - 77093643461234 [16:03:56]1041 (16) - 0000000000871776 [16:03:56]1040 (4) - 140241 [16:03:56]1012 (4) - 21.08.2024 09:42 [16:03:56]1206 (1) - 0 [16:03:56]OFD Sender: Remove packet 140241 [16:03:56]ProducePacketName [16:03:56]name=ofd_packets/00140241 [16:03:56]NVStorageDeleteData [16:03:56]Write to MH i2c: 01 00 00 56 16 6C [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: 01 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: 01 07 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 D7 0C 56 [16:03:56]RasterBufferAndPrint [16:03:56]line [16:03:56]line [16:03:56]line [16:03:56]line [16:03:56]line [16:03:56]written 0, free lines is 3294 [16:03:56]MH_Cut [16:03:56]Write to MH i2c: D1 01 00 5D 16 01 45 [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: D1 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: D1 01 00 [16:03:56]MH_I2C_Read... [16:03:56]Read from MH i2c: D1 01 00 5D 16 00 44 [16:03:56]Write to MH i2c: 01 00 00 5E 16 74 [16:03:56]Write i2c OK [16:03:56]MH_I2C_Read... [16:03:56]OFD Sender: No OFD packet to send [16:03:56]*** Cut start [16:03:56]*** Partial cut [16:03:56]*** CUTSNS_PIN = 1 [16:03:56]*** CUTSNS_PIN = 0 [16:03:57]*** Brake cut motor [16:03:57]Read from MH i2c: 01 [16:03:57]MH_I2C_Read... [16:03:57]*** Stop cut motor [16:03:57]*** Cut end [16:03:57]Read from MH i2c: 01 07 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: 01 07 00 5E 16 00 00 00 00 00 FF 0F 89 [16:03:57]process_action close_receipt done [16:03:57]requested_data is exist [16:03:57]produce_requested_data [16:03:57]requested_item fm.sn is exist - process it [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 11 00 00 [16:03:57]Write to MH i2c: E2 08 00 5F 16 80 11 00 00 00 00 00 00 EF [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 17 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 17 00 5F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 46 [16:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:03:57]wFMCommunicate OK [16:03:57]requested_item fd.num is exist - process it [16:03:57]SAM_PROTO_GetFieldsCounters [16:03:57]wFMCommunicate request_size=4 [16:03:57]MH_SAM_APDU [16:03:57]CAPDU: 80 13 00 00 [16:03:57]Write to MH i2c: E2 08 00 60 16 80 13 00 00 00 00 00 00 F2 [16:03:57]Write i2c OK [16:03:57]MH_I2C_Read... [16:03:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:57]Read from MH i2c: E2 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 62 00 [16:03:57]MH_I2C_Read... [16:03:57]Read from MH i2c: E2 62 00 60 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:03:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:57]wFMCommunicate OK [16:03:57]SAM_PROTO_GetFieldsCounters done [16:03:57]requested_item shift.num is exist - process it [16:03:57]requested_item shift.opened is exist - process it [16:03:57]req_shift_opened [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 61 16 80 13 01 00 00 00 00 00 F4 [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 61 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [16:03:57]RAPDU: 09 00 01 13 36 C5 66 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]req_shift_opened done [16:03:57]requested_item shift.open_date is exist - process it [16:03:57]req_shift_open_date [16:03:57]req_shift_open_date done [16:03:57]produce_requested_data done [16:03:57]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140241,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:03:57]process_action_free close_receipt [16:03:57]json_value_free [16:03:57]json_value_free done [16:03:57]process_json_proto returns [16:03:57]Send response to host [16:03:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140241,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:03:57]free response buf [16:03:57]execute_script done [16:03:57]execute_script returns [16:03:57]free content buf [16:03:57]Sock 8.Close socket [16:03:57]Sock 8.Thread stoped [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:36]accept exits with 9 [16:04:36]New connection [16:04:36]New thread 3067592036 created [16:04:36]Thread 3067448676 joined [16:04:36]Waiting for new connection... [16:04:36] Sock 9.Parse request [16:04:36]Sock 9.Check first char [16:04:36]Sock 9.First char is OK [16:04:36]request: POST /json_proto HTTP/1.0 [16:04:36]Method: POST [16:04:36]URL: /json_proto [16:04:36]Method is POST - this is cgi request [16:04:36]url: /json_proto [16:04:36]query_string will be loaded in cgi processing [16:04:36]execute_cgi json_proto POST (null) [16:04:36]execute_cgi path=json_proto method=POST [16:04:36]POST find Content-Length [16:04:36]Host: 172.17.45.67:8080 [16:04:36]Content-Length: 658 [16:04:36]Content-Type: application/json [16:04:36] [16:04:36]POST finish read [16:04:36]Found Content-Length = 658 [16:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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:04:36]execute_script... [16:04: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)594099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 8.730, "sum" : 600.62, "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:04:36]POST & json_proto [16:04:36]process_json_proto [16:04:36]json parsed OK: [16:04:36]protocol is kg_v1.0 [16:04:36]action value=close_receipt [16:04:36]process_action close_receipt [16:04:36]cmd_close_receipt [16:04:36]MH_GetDate [16:04:36]Write to MH i2c: F0 00 00 62 16 67 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: F0 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: F0 09 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: F0 09 00 62 16 00 16 10 C6 66 5F 7F 2B 66 31 [16:04:36]GetLastDocTimeStamp 1724256234 [16:04:36]current date 1724256278 [16:04:36]FM_GetShiftState [16:04:36]SAM_PROTO_GetShiftState [16:04:36]wFMCommunicate request_size=4 [16:04:36]MH_SAM_APDU [16:04:36]CAPDU: 80 13 01 00 [16:04:36]Write to MH i2c: E2 08 00 63 16 80 13 01 00 00 00 00 00 F6 [16:04:36]Write i2c OK [16:04:36]MH_I2C_Read... [16:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:36]Read from MH i2c: E2 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 [16:04:36]MH_I2C_Read... [16:04:36]Read from MH i2c: E2 0E 00 63 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 76 [16:04:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:04:36]wFMCommunicate OK [16:04:36]SAM_PROTO_GetShiftState done [16:04:36]FM_GetShiftState done [16:04:36]opened in 1724200467 [16:04:36]opened+sec_in_day 1724286867 [16:04:36]quantity*price = 60062 [16:04:36]sum+1 = 60063 [16:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 259 21.08.2024 16:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140242 ФПД: 281305056315633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160438&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140242&fm=281305056315633&tin=02508201610067®Number=0000000000092569&sum=60000 [16:04:38]StoreToDocumentArchive [16:04:38]shift 454 fd 140242 [16:04:38]save to /storage/0454/doc_00140242 [16:04:38]save last doc name /storage/0454/doc_00140242 to /storage/kkm_last_doc_name [16:04:38]save OK [16:04:38]Clear old archive folders... [16:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:04:38]tlvbuf is B6F443B0 [16:04:38]SAM_PROTO_ClearQueue [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 09 00 00 [16:04:38]Write to MH i2c: E2 08 00 70 16 80 09 00 00 00 00 00 00 F8 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [16:04:38]RAPDU: 90 00 [16:04:38]wFMCommunicate OK [16:04:38]SAM_PROTO_ClearQueue done [16:04:38]KKMCreateOFDPacket [16:04:38]OFDProtocolAddRootSTLVToBuf [16:04:38]FM_MakeSignedData [16:04:38]FM_MakeSignedData [16:04:38]SAM_PROTO_SignData [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 0D 01 02 [16:04:38]Write to MH i2c: E2 08 00 71 16 80 0D 01 02 00 00 00 00 00 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [16:04:38]RAPDU: 90 00 [16:04:38]wFMCommunicate OK [16:04:38]wFMCommunicate request_size=253 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 03 01 00 00 F4 03 04 00 16 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 23 02 00 35 04 06 00 FF D8 6F F4 88 F1 [16:04:38]Write to MH i2c: E2 00 01 72 16 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 03 01 00 00 F4 03 04 00 16 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 23 02 00 35 04 06 00 FF D8 6F F4 88 F1 00 00 F2 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [16:04:38]RAPDU: 90 00 [16:04:38]wFMCommunicate OK [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 0D 03 02 [16:04:38]Write to MH i2c: E2 08 00 73 16 80 0D 03 02 00 00 00 00 04 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 0B 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 0B 00 73 16 00 11 C3 77 C9 2D 1E CA 27 90 00 55 [16:04:38]RAPDU: 11 C3 77 C9 2D 1E CA 27 90 00 [16:04:38]wFMCommunicate OK [16:04:38]SAM_PROTO_SignData done [16:04:38]FM_MakeSignedData done [16:04:38]CreateOFDProtocolMessage [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 11 00 00 [16:04:38]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 17 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [16:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:04:38]wFMCommunicate OK [16:04:38]CreateOFDProtocolMessage done [16:04:38]OFDSenderStorePacket 140242 [16:04:38]StoreOFDPacket docnum=140242 [16:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 F2 9E 00 01 19 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 03 01 00 00 F4 03 04 00 16 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 23 02 00 35 04 06 00 FF D8 6F F4 88 F1 11 C3 77 C9 2D 1E CA 27 [16:04:38]CheckFolder [16:04:38]dirname=/storage/ofd_packets [16:04:38]CheckFolder done [16:04:38]ProducePacketName [16:04:38]name=ofd_packets/00140242 [16:04:38]NVStorageSaveData ofd_packets/00140242 [16:04:38]File name is /storage/ofd_packets/00140242 [16:04:38]Write 294 bytes [16:04:38]NVStorageSaveData done [16:04:38]OFDSenderStorePacket done [16:04:38]KKMCreateOFDPacket done [16:04:38]NVStorageSaveData kkm_last_timestamp [16:04:38]File name is /storage/kkm_last_timestamp [16:04:38]Write 4 bytes [16:04:38]NVStorageSaveData done [16:04:38]ExternCall_PrintAddStr [16:04:38]wPrintStart [16:04:38]Write to MH i2c: 01 00 00 75 16 8B [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 07 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 FF 0F A0 [16:04:38]RasterBufferAndPrint [16:04:38]line Счет N : (1)594099 [16:04:38]line ИНН: 02508201610067 [16:04:38]line Контрольно-Кассовый Чек [16:04:38]line ПРОДАЖА [16:04:38]line ТРК (МРК, ГНК) : 63 [16:04:38]line Товар: 2710124130 [16:04:38]line SU-92 [16:04:38]line 8.730 * 68.80 [16:04:38]line = 600.62 [16:04:38]line НДС 12% НСП 1% [16:04:38]line > о реализуемом товаре [16:04:38]line ОКРУГЛЕНИЕ: -0.62 [16:04:38]line ИТОГО: 600.00 [16:04:38]line Внесено: 600.00 [16:04:38]line СДАЧА: 0.00 [16:04:38]line НСП 1% : 5.31 [16:04:38]line НДС 12% : 63.78 [16:04:38]line Наличными: 600.00 [16:04:38]line Безнал.: 0.00 [16:04:38]line Место: АЗС № 136 "Партнер Нефть" [16:04:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:04:38]line СНО: Общий режим [16:04:38]line Чек 259 21.08.2024 16:04 [16:04:38]line Смена: 454 ФФД: 1.0 [16:04:38]line ЗНМ: 0300000067 [16:04:38]line РНМ: 0000000000092569 [16:04:38]line Версия ККМ: 001 [16:04:38]line ФМ: 0000000000871776 [16:04:38]line ФД: 140242 [16:04:38]line ФПД: 281305056315633 [16:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160438&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140242&fm=281305056315633&tin=02508201610067®Number=0000000000092569&sum=60000 [16:04:38]OFD Sender: Processing packet 140242 [packets to send 137, broken 136] [16:04:38]ProducePacketName [16:04:38]name=ofd_packets/00140242 [16:04:38]OFD Sender: To server: pG, [16:04:38]CommunicateWithHost lk.salyk.kg:30040 [16:04:38]ConnectInit lk.salyk.kg [16:04:38]written 0, free lines is 4095 [16:04:39]Connected sock=10 [16:04: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 37 36 08 01 00 00 F2 9E 00 01 19 A0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 9E 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 EA 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 03 01 00 00 F4 03 04 00 16 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D2 23 02 00 35 04 06 00 FF D8 6F F4 88 F1 11 C3 77 C9 2D 1E CA 27 [16:04: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 37 36 4F 00 00 00 89 12 47 00 73 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 37 36 10 04 04 00 D2 23 02 00 F4 03 04 00 A6 B6 C5 66 B6 04 01 00 00 46 71 FE 5C 4B 40 2C EC [16:04:39]CommunicateWithHost err = 0 [16:04:39]CheckOFDResponse [16:04:39]1017 (14) - 77093643461234 [16:04:39]1041 (16) - 0000000000871776 [16:04:39]1040 (4) - 140242 [16:04:39]1012 (4) - 21.08.2024 09:43 [16:04:39]1206 (1) - 0 [16:04:39]OFD Sender: Remove packet 140242 [16:04:39]ProducePacketName [16:04:39]name=ofd_packets/00140242 [16:04:39]NVStorageDeleteData [16:04:39]Write to MH i2c: 01 00 00 A0 16 B6 [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 07 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 E1 0C AA [16:04:39]RasterBufferAndPrint [16:04:39]line [16:04:39]line [16:04:39]line [16:04:39]line [16:04:39]line [16:04:39]written 0, free lines is 3303 [16:04:39]MH_Cut [16:04:39]Write to MH i2c: D1 01 00 A7 16 01 8F [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: D1 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: D1 01 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: D1 01 00 A7 16 00 8E [16:04:39]Write to MH i2c: 01 00 00 A8 16 BE [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]OFD Sender: No OFD packet to send [16:04:40]*** Cut start [16:04:40]*** Partial cut [16:04:40]*** CUTSNS_PIN = 1 [16:04:40]*** CUTSNS_PIN = 0 [16:04:40]*** Brake cut motor [16:04:40]Read from MH i2c: 01 [16:04:40]MH_I2C_Read... [16:04:40]*** Stop cut motor [16:04:40]*** Cut end [16:04:40]Read from MH i2c: 01 07 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [16:04:40]process_action close_receipt done [16:04:40]requested_data is exist [16:04:40]produce_requested_data [16:04:40]requested_item fm.sn is exist - process it [16:04:40]wFMCommunicate request_size=4 [16:04:40]MH_SAM_APDU [16:04:40]CAPDU: 80 11 00 00 [16:04:40]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:40]Read from MH i2c: E2 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 17 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [16:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:04:40]wFMCommunicate OK [16:04:40]requested_item fd.num is exist - process it [16:04:40]SAM_PROTO_GetFieldsCounters [16:04:40]wFMCommunicate request_size=4 [16:04:40]MH_SAM_APDU [16:04:40]CAPDU: 80 13 00 00 [16:04:40]Write to MH i2c: E2 08 00 AA 16 80 13 00 00 00 00 00 00 3C [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:40]Read from MH i2c: E2 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 62 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 62 00 AA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [16:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:40]wFMCommunicate OK [16:04:40]SAM_PROTO_GetFieldsCounters done [16:04:40]requested_item shift.num is exist - process it [16:04:40]requested_item shift.opened is exist - process it [16:04:40]req_shift_opened [16:04:40]FM_GetShiftState [16:04:40]SAM_PROTO_GetShiftState [16:04:40]wFMCommunicate request_size=4 [16:04:40]MH_SAM_APDU [16:04:40]CAPDU: 80 13 01 00 [16:04:40]Write to MH i2c: E2 08 00 AB 16 80 13 01 00 00 00 00 00 3E [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:40]Read from MH i2c: E2 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 0E 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: E2 0E 00 AB 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BE [16:04:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:04:40]wFMCommunicate OK [16:04:40]SAM_PROTO_GetShiftState done [16:04:40]FM_GetShiftState done [16:04:40]req_shift_opened done [16:04:40]requested_item shift.open_date is exist - process it [16:04:40]req_shift_open_date [16:04:40]req_shift_open_date done [16:04:40]produce_requested_data done [16:04:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140242,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:04:40]process_action_free close_receipt [16:04:40]json_value_free [16:04:40]json_value_free done [16:04:40]process_json_proto returns [16:04:40]Send response to host [16:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140242,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:04:40]free response buf [16:04:40]execute_script done [16:04:40]execute_script returns [16:04:40]free content buf [16:04:40]Sock 9.Close socket [16:04:40]Sock 9.Thread stoped [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:04]accept exits with 8 [16:08:04]New connection [16:08:04]New thread 3067448676 created [16:08:04]Thread 3067592036 joined [16:08:04]Waiting for new connection... [16:08:04] Sock 8.Parse request [16:08:04]Sock 8.Check first char [16:08:04]Sock 8.First char is OK [16:08:04]request: POST /json_proto HTTP/1.0 [16:08:04]Method: POST [16:08:04]URL: /json_proto [16:08:04]Method is POST - this is cgi request [16:08:04]url: /json_proto [16:08:04]query_string will be loaded in cgi processing [16:08:04]execute_cgi json_proto POST (null) [16:08:04]execute_cgi path=json_proto method=POST [16:08:04]POST find Content-Length [16:08:04]Host: 172.17.45.67:8080 [16:08:04]Content-Length: 677 [16:08:04]Content-Type: application/json [16:08:04] [16:08:04]POST finish read [16:08:04]Found Content-Length = 677 [16:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:04]execute_script... [16:08: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)594100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:04]POST & json_proto [16:08:04]process_json_proto [16:08:04]json parsed OK: [16:08:04]protocol is kg_v1.0 [16:08:04]action value=close_receipt [16:08:04]process_action close_receipt [16:08:04]cmd_close_receipt [16:08:04]MH_GetDate [16:08:04]Write to MH i2c: F0 00 00 AC 16 B1 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 09 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: F0 09 00 AC 16 00 E5 10 C6 66 5F 7F 2B 66 4A [16:08:04]GetLastDocTimeStamp 1724256278 [16:08:04]current date 1724256485 [16:08:04]FM_GetShiftState [16:08:04]SAM_PROTO_GetShiftState [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 13 01 00 [16:08:04]Write to MH i2c: E2 08 00 AD 16 80 13 01 00 00 00 00 00 40 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 AD 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C0 [16:08:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_GetShiftState done [16:08:04]FM_GetShiftState done [16:08:04]opened in 1724200467 [16:08:04]opened+sec_in_day 1724286867 [16:08:04]quantity*price = 30035 [16:08:04]sum+1 = 30036 [16:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 260 21.08.2024 16:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140243 ФПД: 164085045506835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140243&fm=164085045506835&tin=02508201610067®Number=0000000000092569&sum=30000 [16:08:05]StoreToDocumentArchive [16:08:05]shift 454 fd 140243 [16:08:05]save to /storage/0454/doc_00140243 [16:08:05]save last doc name /storage/0454/doc_00140243 to /storage/kkm_last_doc_name [16:08:05]save OK [16:08:05]Clear old archive folders... [16:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:05]tlvbuf is 01CF3160 [16:08:05]SAM_PROTO_ClearQueue [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 09 00 00 [16:08:05]Write to MH i2c: E2 08 00 BA 16 80 09 00 00 00 00 00 00 42 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [16:08:05]RAPDU: 90 00 [16:08:05]wFMCommunicate OK [16:08:05]SAM_PROTO_ClearQueue done [16:08:05]KKMCreateOFDPacket [16:08:05]OFDProtocolAddRootSTLVToBuf [16:08:05]FM_MakeSignedData [16:08:05]FM_MakeSignedData [16:08:05]SAM_PROTO_SignData [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 0D 01 02 [16:08:05]Write to MH i2c: E2 08 00 BB 16 80 0D 01 02 00 00 00 00 4A [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [16:08:05]RAPDU: 90 00 [16:08:05]wFMCommunicate OK [16:08:05]wFMCommunicate request_size=255 [16:08:05]MH_SAM_APDU [16:08: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 23 02 00 35 04 06 00 95 [16:08:05]Write to MH i2c: E2 02 01 BC 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 23 02 00 35 04 06 00 95 00 00 6C [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [16:08:05]RAPDU: 90 00 [16:08:05]wFMCommunicate OK [16:08:05]wFMCommunicate request_size=10 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 0D 02 02 05 3C 06 D9 B3 13 [16:08:05]Write to MH i2c: E2 0D 00 BD 16 80 0D 02 02 05 00 3C 06 D9 B3 13 00 00 38 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [16:08:05]RAPDU: 90 00 [16:08:05]wFMCommunicate OK [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 0D 03 02 [16:08:05]Write to MH i2c: E2 08 00 BE 16 80 0D 03 02 00 00 00 00 4F [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 0B 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 0B 00 BE 16 00 3D 3C 19 C5 21 E3 B5 63 90 00 C3 [16:08:05]RAPDU: 3D 3C 19 C5 21 E3 B5 63 90 00 [16:08:05]wFMCommunicate OK [16:08:05]SAM_PROTO_SignData done [16:08:05]FM_MakeSignedData done [16:08:05]CreateOFDProtocolMessage [16:08:05]wFMCommunicate request_size=4 [16:08:05]MH_SAM_APDU [16:08:05]CAPDU: 80 11 00 00 [16:08:05]Write to MH i2c: E2 08 00 BF 16 80 11 00 00 00 00 00 00 4F [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:05]Read from MH i2c: E2 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 17 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: E2 17 00 BF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [16:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:05]wFMCommunicate OK [16:08:05]CreateOFDProtocolMessage done [16:08:05]OFDSenderStorePacket 140243 [16:08:05]StoreOFDPacket docnum=140243 [16:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 47 4A 07 01 23 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 23 02 00 35 04 06 00 95 3C 06 D9 B3 13 3D 3C 19 C5 21 E3 B5 63 [16:08:05]CheckFolder [16:08:05]dirname=/storage/ofd_packets [16:08:05]CheckFolder done [16:08:05]ProducePacketName [16:08:05]name=ofd_packets/00140243 [16:08:05]NVStorageSaveData ofd_packets/00140243 [16:08:05]File name is /storage/ofd_packets/00140243 [16:08:05]Write 301 bytes [16:08:05]NVStorageSaveData done [16:08:05]OFDSenderStorePacket done [16:08:05]KKMCreateOFDPacket done [16:08:05]NVStorageSaveData kkm_last_timestamp [16:08:05]File name is /storage/kkm_last_timestamp [16:08:05]Write 4 bytes [16:08:05]NVStorageSaveData done [16:08:05]ExternCall_PrintAddStr [16:08:05]wPrintStart [16:08:05]Write to MH i2c: 01 00 00 C0 16 D6 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [16:08:05]RasterBufferAndPrint [16:08:05]line Счет N : (1)594100 [16:08:05]line ИНН: 02508201610067 [16:08:05]line Контрольно-Кассовый Чек [16:08:05]line ПРОДАЖА [16:08:05]line ТРК (МРК, ГНК) : 32 [16:08:05]line Товар: 2710124130 [16:08:05]line Аи-92-К-5 [16:08:05]line 4.430 * 67.80 [16:08:05]line = 300.35 [16:08:05]line НДС 12% НСП 1% [16:08:05]line > о реализуемом товаре [16:08:05]line ОКРУГЛЕНИЕ: -0.35 [16:08:05]line ИТОГО: 300.00 [16:08:05]line Внесено: 300.00 [16:08:05]line СДАЧА: 0.00 [16:08:05]line НСП 1% : 2.66 [16:08:05]line НДС 12% : 31.90 [16:08:05]line Наличными: 300.00 [16:08:05]line Безнал.: 0.00 [16:08:05]line Место: АЗС № 136 "Партнер Нефть" [16:08:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:08:05]line СНО: Общий режим [16:08:05]line Чек 260 21.08.2024 16:08 [16:08:05]line Смена: 454 ФФД: 1.0 [16:08:05]line ЗНМ: 0300000067 [16:08:05]line РНМ: 0000000000092569 [16:08:05]line Версия ККМ: 001 [16:08:05]line ФМ: 0000000000871776 [16:08:05]line ФД: 140243 [16:08:06]line ФПД: 164085045506835 [16:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T160805&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140243&fm=164085045506835&tin=02508201610067®Number=0000000000092569&sum=30000 [16:08:06]OFD Sender: Processing packet 140243 [packets to send 137, broken 136] [16:08:06]ProducePacketName [16:08:06]name=ofd_packets/00140243 [16:08:06]OFD Sender: To server: pG, [16:08:06]CommunicateWithHost lk.salyk.kg:30040 [16:08:06]ConnectInit lk.salyk.kg [16:08:06]written 0, free lines is 4095 [16:08:06]Connected sock=10 [16:08: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 37 36 0F 01 00 00 47 4A 07 01 23 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E5 10 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 23 02 00 35 04 06 00 95 3C 06 D9 B3 13 3D 3C 19 C5 21 E3 B5 63 [16:08: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 37 36 4F 00 00 00 52 05 47 00 9C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D3 23 02 00 F4 03 04 00 75 B7 C5 66 B6 04 01 00 00 99 00 CF 04 CE FC EB 8A [16:08:06]CommunicateWithHost err = 0 [16:08:06]CheckOFDResponse [16:08:06]1017 (14) - 77093643461234 [16:08:06]1041 (16) - 0000000000871776 [16:08:06]1040 (4) - 140243 [16:08:06]1012 (4) - 21.08.2024 09:46 [16:08:06]1206 (1) - 0 [16:08:06]OFD Sender: Remove packet 140243 [16:08:06]ProducePacketName [16:08:06]name=ofd_packets/00140243 [16:08:06]NVStorageDeleteData [16:08:06]Write to MH i2c: 01 00 00 EB 16 01 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 D0 0C E4 [16:08:06]RasterBufferAndPrint [16:08:06]line [16:08:06]line [16:08:06]line [16:08:06]line [16:08:06]line [16:08:06]written 0, free lines is 3284 [16:08:06]MH_Cut [16:08:06]Write to MH i2c: D1 01 00 F2 16 01 DA [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: D1 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: D1 01 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: D1 01 00 F2 16 00 D9 [16:08:06]Write to MH i2c: 01 00 00 F3 16 09 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:07]OFD Sender: No OFD packet to send [16:08:07]*** Cut start [16:08:07]*** Partial cut [16:08:07]*** CUTSNS_PIN = 1 [16:08:07]*** CUTSNS_PIN = 0 [16:08:07]*** Brake cut motor [16:08:07]Read from MH i2c: 01 [16:08:07]MH_I2C_Read... [16:08:07]*** Stop cut motor [16:08:07]*** Cut end [16:08:07]Read from MH i2c: 01 07 00 [16:08:07]MH_I2C_Read... [16:08:07]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [16:08:07]process_action close_receipt done [16:08:07]requested_data is exist [16:08:07]produce_requested_data [16:08:07]requested_item fm.sn is exist - process it [16:08:07]wFMCommunicate request_size=4 [16:08:07]MH_SAM_APDU [16:08:07]CAPDU: 80 11 00 00 [16:08:07]Write to MH i2c: E2 08 00 F4 16 80 11 00 00 00 00 00 00 84 [16:08:07]Write i2c OK [16:08:07]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 17 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 17 00 F4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [16:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:08:08]wFMCommunicate OK [16:08:08]requested_item fd.num is exist - process it [16:08:08]SAM_PROTO_GetFieldsCounters [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 13 00 00 [16:08:08]Write to MH i2c: E2 08 00 F5 16 80 13 00 00 00 00 00 00 87 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 62 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 62 00 F5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:08]wFMCommunicate OK [16:08:08]SAM_PROTO_GetFieldsCounters done [16:08:08]requested_item shift.num is exist - process it [16:08:08]requested_item shift.opened is exist - process it [16:08:08]req_shift_opened [16:08:08]FM_GetShiftState [16:08:08]SAM_PROTO_GetShiftState [16:08:08]wFMCommunicate request_size=4 [16:08:08]MH_SAM_APDU [16:08:08]CAPDU: 80 13 01 00 [16:08:08]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [16:08:08]Write i2c OK [16:08:08]MH_I2C_Read... [16:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:08]Read from MH i2c: E2 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 0E 00 [16:08:08]MH_I2C_Read... [16:08:08]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 09 [16:08:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:08:08]wFMCommunicate OK [16:08:08]SAM_PROTO_GetShiftState done [16:08:08]FM_GetShiftState done [16:08:08]req_shift_opened done [16:08:08]requested_item shift.open_date is exist - process it [16:08:08]req_shift_open_date [16:08:08]req_shift_open_date done [16:08:08]produce_requested_data done [16:08:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140243,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:08:08]process_action_free close_receipt [16:08:08]json_value_free [16:08:08]json_value_free done [16:08:08]process_json_proto returns [16:08:08]Send response to host [16:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140243,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:08:08]free response buf [16:08:08]execute_script done [16:08:08]execute_script returns [16:08:08]free content buf [16:08:08]Sock 8.Close socket [16:08:08]Sock 8.Thread stoped [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:33]accept exits with 9 [16:13:33]New connection [16:13:33]New thread 3067592036 created [16:13:33]Thread 3067448676 joined [16:13:33]Waiting for new connection... [16:13:33] Sock 9.Parse request [16:13:33]Sock 9.Check first char [16:13:33]Sock 9.First char is OK [16:13:33]request: POST /json_proto HTTP/1.0 [16:13:33]Method: POST [16:13:33]URL: /json_proto [16:13:33]Method is POST - this is cgi request [16:13:33]url: /json_proto [16:13:33]query_string will be loaded in cgi processing [16:13:33]execute_cgi json_proto POST (null) [16:13:33]execute_cgi path=json_proto method=POST [16:13:33]POST find Content-Length [16:13:33]Host: 172.17.45.67:8080 [16:13:33]Content-Length: 682 [16:13:33]Content-Type: application/json [16:13:33] [16:13:33]POST finish read [16:13:33]Found Content-Length = 682 [16:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:33]execute_script... [16:13:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:33]POST & json_proto [16:13:33]process_json_proto [16:13:33]json parsed OK: [16:13:33]protocol is kg_v1.0 [16:13:33]action value=close_receipt [16:13:33]process_action close_receipt [16:13:33]cmd_close_receipt [16:13:33]MH_GetDate [16:13:33]Write to MH i2c: F0 00 00 F7 16 FC [16:13:33]Write i2c OK [16:13:33]MH_I2C_Read... [16:13:33]Read from MH i2c: F0 [16:13:33]MH_I2C_Read... [16:13:33]Read from MH i2c: F0 09 00 [16:13:33]MH_I2C_Read... [16:13:33]Read from MH i2c: F0 09 00 F7 16 00 2E 12 C6 66 5F 7F 2B 66 E0 [16:13:33]GetLastDocTimeStamp 1724256485 [16:13:33]current date 1724256814 [16:13:33]FM_GetShiftState [16:13:33]SAM_PROTO_GetShiftState [16:13:33]wFMCommunicate request_size=4 [16:13:33]MH_SAM_APDU [16:13:33]CAPDU: 80 13 01 00 [16:13:33]Write to MH i2c: E2 08 00 F8 16 80 13 01 00 00 00 00 00 8B [16:13:33]Write i2c OK [16:13:33]MH_I2C_Read... [16:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:33]Read from MH i2c: E2 [16:13:33]MH_I2C_Read... [16:13:33]Read from MH i2c: E2 0E 00 [16:13:33]MH_I2C_Read... [16:13:33]Read from MH i2c: E2 0E 00 F8 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [16:13:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:13:33]wFMCommunicate OK [16:13:33]SAM_PROTO_GetShiftState done [16:13:33]FM_GetShiftState done [16:13:33]opened in 1724200467 [16:13:33]opened+sec_in_day 1724286867 [16:13:33]quantity*price = 100005 [16:13:33]sum+1 = 100006 [16:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 261 21.08.2024 16:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140244 ФПД: 107621151081581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T161334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140244&fm=107621151081581&tin=02508201610067®Number=0000000000092569&sum=100000 [16:13:34]StoreToDocumentArchive [16:13:34]shift 454 fd 140244 [16:13:34]save to /storage/0454/doc_00140244 [16:13:34]save last doc name /storage/0454/doc_00140244 to /storage/kkm_last_doc_name [16:13:34]save OK [16:13:34]Clear old archive folders... [16:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:34]tlvbuf is B6F5D630 [16:13:34]SAM_PROTO_ClearQueue [16:13:34]wFMCommunicate request_size=4 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 09 00 00 [16:13:34]Write to MH i2c: E2 08 00 05 17 80 09 00 00 00 00 00 00 8E [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [16:13:34]RAPDU: 90 00 [16:13:34]wFMCommunicate OK [16:13:34]SAM_PROTO_ClearQueue done [16:13:34]KKMCreateOFDPacket [16:13:34]OFDProtocolAddRootSTLVToBuf [16:13:34]FM_MakeSignedData [16:13:34]FM_MakeSignedData [16:13:34]SAM_PROTO_SignData [16:13:34]wFMCommunicate request_size=4 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 0D 01 02 [16:13:34]Write to MH i2c: E2 08 00 06 17 80 0D 01 02 00 00 00 00 96 [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [16:13:34]RAPDU: 90 00 [16:13:34]wFMCommunicate OK [16:13:34]wFMCommunicate request_size=255 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2E 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 23 02 00 35 04 06 00 61 [16:13:34]Write to MH i2c: E2 02 01 07 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2E 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 23 02 00 35 04 06 00 61 00 00 41 [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [16:13:34]RAPDU: 90 00 [16:13:34]wFMCommunicate OK [16:13:34]wFMCommunicate request_size=10 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 0D 02 02 05 E1 80 7B 04 6D [16:13:34]Write to MH i2c: E2 0D 00 08 17 80 0D 02 02 05 00 E1 80 7B 04 6D 00 00 F0 [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [16:13:34]RAPDU: 90 00 [16:13:34]wFMCommunicate OK [16:13:34]wFMCommunicate request_size=4 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 0D 03 02 [16:13:34]Write to MH i2c: E2 08 00 09 17 80 0D 03 02 00 00 00 00 9B [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 0B 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 0B 00 09 17 00 24 DB 99 BA 5D F7 53 A6 90 00 3B [16:13:34]RAPDU: 24 DB 99 BA 5D F7 53 A6 90 00 [16:13:34]wFMCommunicate OK [16:13:34]SAM_PROTO_SignData done [16:13:34]FM_MakeSignedData done [16:13:34]CreateOFDProtocolMessage [16:13:34]wFMCommunicate request_size=4 [16:13:34]MH_SAM_APDU [16:13:34]CAPDU: 80 11 00 00 [16:13:34]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:34]Read from MH i2c: E2 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 17 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [16:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:13:34]wFMCommunicate OK [16:13:34]CreateOFDProtocolMessage done [16:13:34]OFDSenderStorePacket 140244 [16:13:34]StoreOFDPacket docnum=140244 [16:13:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 42 07 01 B7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2E 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 23 02 00 35 04 06 00 61 E1 80 7B 04 6D 24 DB 99 BA 5D F7 53 A6 [16:13:34]CheckFolder [16:13:34]dirname=/storage/ofd_packets [16:13:34]CheckFolder done [16:13:34]ProducePacketName [16:13:34]name=ofd_packets/00140244 [16:13:34]NVStorageSaveData ofd_packets/00140244 [16:13:34]File name is /storage/ofd_packets/00140244 [16:13:34]Write 301 bytes [16:13:34]NVStorageSaveData done [16:13:34]OFDSenderStorePacket done [16:13:34]KKMCreateOFDPacket done [16:13:34]NVStorageSaveData kkm_last_timestamp [16:13:34]File name is /storage/kkm_last_timestamp [16:13:34]Write 4 bytes [16:13:34]NVStorageSaveData done [16:13:34]ExternCall_PrintAddStr [16:13:34]wPrintStart [16:13:34]Write to MH i2c: 01 00 00 0B 17 22 [16:13:34]Write i2c OK [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: 01 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: 01 07 00 [16:13:34]MH_I2C_Read... [16:13:34]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [16:13:34]RasterBufferAndPrint [16:13:34]line Счет N : (1)594101 [16:13:34]line ИНН: 02508201610067 [16:13:34]line Контрольно-Кассовый Чек [16:13:34]line ПРОДАЖА [16:13:34]line ТРК (МРК, ГНК) : 32 [16:13:34]line Товар: 2710124130 [16:13:34]line Аи-92-К-5 [16:13:34]line 14.750 * 67.80 [16:13:34]line = 1000.05 [16:13:34]line НДС 12% НСП 1% [16:13:34]line > о реализуемом товаре [16:13:34]line ОКРУГЛЕНИЕ: -0.05 [16:13:34]line ИТОГО: 1000.00 [16:13:34]line Внесено: 1000.00 [16:13:34]line СДАЧА: 0.00 [16:13:34]line НСП 1% : 8.85 [16:13:34]line НДС 12% : 106.20 [16:13:34]line Наличными: 1000.00 [16:13:34]line Безнал.: 0.00 [16:13:34]line Место: АЗС № 136 "Партнер Нефть" [16:13:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:13:34]line СНО: Общий режим [16:13:34]line Чек 261 21.08.2024 16:13 [16:13:34]line Смена: 454 ФФД: 1.0 [16:13:34]line ЗНМ: 0300000067 [16:13:34]line РНМ: 0000000000092569 [16:13:34]line Версия ККМ: 001 [16:13:34]line ФМ: 0000000000871776 [16:13:34]line ФД: 140244 [16:13:34]line ФПД: 107621151081581 [16:13:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T161334&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140244&fm=107621151081581&tin=02508201610067®Number=0000000000092569&sum=100000 [16:13:35]OFD Sender: Processing packet 140244 [packets to send 137, broken 136] [16:13:35]ProducePacketName [16:13:35]name=ofd_packets/00140244 [16:13:35]OFD Sender: To server: pG, [16:13:35]CommunicateWithHost lk.salyk.kg:30040 [16:13:35]ConnectInit lk.salyk.kg [16:13:35]written 0, free lines is 4095 [16:13:35]Connected sock=10 [16:13:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3B 42 07 01 B7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 2E 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 23 02 00 35 04 06 00 61 E1 80 7B 04 6D 24 DB 99 BA 5D F7 53 A6 [16:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 51 E4 47 00 D5 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D4 23 02 00 F4 03 04 00 BE B8 C5 66 B6 04 01 00 00 6E 19 9A 88 34 65 0C 89 [16:13:35]CommunicateWithHost err = 0 [16:13:35]CheckOFDResponse [16:13:35]1017 (14) - 77093643461234 [16:13:35]1041 (16) - 0000000000871776 [16:13:35]1040 (4) - 140244 [16:13:35]1012 (4) - 21.08.2024 09:51 [16:13:35]1206 (1) - 0 [16:13:35]OFD Sender: Remove packet 140244 [16:13:35]ProducePacketName [16:13:35]name=ofd_packets/00140244 [16:13:35]NVStorageDeleteData [16:13:35]Write to MH i2c: 01 00 00 36 17 4D [16:13:35]Write i2c OK [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: 01 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: 01 07 00 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 DD 0C 3D [16:13:35]RasterBufferAndPrint [16:13:35]line [16:13:35]line [16:13:35]line [16:13:35]line [16:13:35]line [16:13:35]written 0, free lines is 3299 [16:13:35]MH_Cut [16:13:35]Write to MH i2c: D1 01 00 3D 17 01 26 [16:13:35]Write i2c OK [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: D1 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: D1 01 00 [16:13:35]MH_I2C_Read... [16:13:35]Read from MH i2c: D1 01 00 3D 17 00 25 [16:13:35]Write to MH i2c: 01 00 00 3E 17 55 [16:13:35]Write i2c OK [16:13:35]MH_I2C_Read... [16:13:36]OFD Sender: No OFD packet to send [16:13:36]*** Cut start [16:13:36]*** Partial cut [16:13:36]*** CUTSNS_PIN = 1 [16:13:36]*** CUTSNS_PIN = 0 [16:13:36]*** Brake cut motor [16:13:36]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]*** Stop cut motor [16:13:37]*** Cut end [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [16:13:37]process_action close_receipt done [16:13:37]requested_data is exist [16:13:37]produce_requested_data [16:13:37]requested_item fm.sn is exist - process it [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 11 00 00 [16:13:37]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 17 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [16:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:13:37]wFMCommunicate OK [16:13:37]requested_item fd.num is exist - process it [16:13:37]SAM_PROTO_GetFieldsCounters [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 13 00 00 [16:13:37]Write to MH i2c: E2 08 00 40 17 80 13 00 00 00 00 00 00 D3 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]int [16:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:37]*** FLAG_PRN_KEY set [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 62 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 62 00 40 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [16:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:37]wFMCommunicate OK [16:13:37]SAM_PROTO_GetFieldsCounters done [16:13:37]requested_item shift.num is exist - process it [16:13:37]requested_item shift.opened is exist - process it [16:13:37]req_shift_opened [16:13:37]FM_GetShiftState [16:13:37]SAM_PROTO_GetShiftState [16:13:37]wFMCommunicate request_size=4 [16:13:37]MH_SAM_APDU [16:13:37]CAPDU: 80 13 01 00 [16:13:37]Write to MH i2c: 01 00 00 41 17 58 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 41 17 00 08 00 00 00 FF 0F 75 [16:13:37]state=0 [16:13:37]Key pressed [16:13:37]Feed [16:13:37]Write to MH i2c: D8 00 00 42 17 30 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 01 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 01 00 42 17 00 31 [16:13:37]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]int [16:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:37]Read from MH i2c: E2 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0E 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 57 [16:13:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:13:37]wFMCommunicate OK [16:13:37]SAM_PROTO_GetShiftState done [16:13:37]FM_GetShiftState done [16:13:37]req_shift_opened done [16:13:37]requested_item shift.open_date is exist - process it [16:13:37]req_shift_open_date [16:13:37]req_shift_open_date done [16:13:37]produce_requested_data done [16:13:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140244,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:13:37]process_action_free close_receipt [16:13:37]json_value_free [16:13:37]json_value_free done [16:13:37]process_json_proto returns [16:13:37]Send response to host [16:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140244,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:13:37]free response buf [16:13:37]execute_script done [16:13:37]execute_script returns [16:13:37]free content buf [16:13:37]Sock 9.Close socket [16:13:37]Sock 9.Thread stoped [16:13:37]Write to MH i2c: 01 00 00 44 17 5B [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 44 17 00 48 00 00 00 3C 00 E6 [16:13:37]state=2 [16:13:37]Key pressed [16:13:37]int [16:13:37]Write to MH i2c: 01 00 00 45 17 *** FLAG_PRN_KEY reset [16:13:37]5C [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 45 17 00 00 00 00 00 F5 0F 67 [16:13:37]state=2 [16:13:37]Stop feed [16:13:37]int [16:13:37]Write to MH i2c: 01 00 00 46 17 5D [16:13:37]*** FLAG_PRN_KEY set [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 46 17 00 08 00 00 00 FF 0F 7A [16:13:37]state=0 [16:13:37]Key pressed [16:13:37]Feed [16:13:37]Write to MH i2c: D8 00 00 47 17 35 [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 01 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: D8 01 00 47 17 00 36 [16:13:37]int [16:13:37]Write to MH i2c: 01 00 00 48 17 5F [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 48 17 00 48 00 00 00 3C 00 EA [16:13:37]state=2 [16:13:37]Key pressed [16:13:37]int [16:13:37]Write to MH i2c: 01 00 00 49 17 60 [16:13:37]*** FLAG_PRN_KEY reset [16:13:37]Write i2c OK [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 [16:13:37]MH_I2C_Read... [16:13:37]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 F5 0F 6B [16:13:37]state=2 [16:13:37]Stop feed [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:42]accept exits with 8 [16:15:42]New connection [16:15:42]New thread 3067448676 created [16:15:42]Thread 3067592036 joined [16:15:42]Waiting for new connection... [16:15:42] Sock 8.Parse request [16:15:42]Sock 8.Check first char [16:15:42]Sock 8.First char is OK [16:15:42]request: POST /json_proto HTTP/1.0 [16:15:42]Method: POST [16:15:42]URL: /json_proto [16:15:42]Method is POST - this is cgi request [16:15:42]url: /json_proto [16:15:42]query_string will be loaded in cgi processing [16:15:42]execute_cgi json_proto POST (null) [16:15:42]execute_cgi path=json_proto method=POST [16:15:42]POST find Content-Length [16:15:42]Host: 172.17.45.67:8080 [16:15:42]Content-Length: 754 [16:15:42]Content-Type: application/json [16:15:42] [16:15:42]POST finish read [16:15:42]Found Content-Length = 754 [16:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:42]execute_script... [16:15: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)594102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:42]POST & json_proto [16:15:42]process_json_proto [16:15:42]json parsed OK: [16:15:42]protocol is kg_v1.0 [16:15:42]action value=close_receipt [16:15:42]process_action close_receipt [16:15:42]cmd_close_receipt [16:15:42]MH_GetDate [16:15:42]Write to MH i2c: F0 00 00 4A 17 50 [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: F0 09 00 4A 17 00 AF 12 C6 66 5F 7F 2B 66 B5 [16:15:42]GetLastDocTimeStamp 1724256814 [16:15:42]current date 1724256943 [16:15:42]FM_GetShiftState [16:15:42]SAM_PROTO_GetShiftState [16:15:42]wFMCommunicate request_size=4 [16:15:42]MH_SAM_APDU [16:15:42]CAPDU: 80 13 01 00 [16:15:42]Write to MH i2c: E2 08 00 4B 17 80 13 01 00 00 00 00 00 DF [16:15:42]Write i2c OK [16:15:42]MH_I2C_Read... [16:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:42]Read from MH i2c: E2 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 [16:15:42]MH_I2C_Read... [16:15:42]Read from MH i2c: E2 0E 00 4B 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [16:15:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:15:42]wFMCommunicate OK [16:15:42]SAM_PROTO_GetShiftState done [16:15:42]FM_GetShiftState done [16:15:42]opened in 1724200467 [16:15:42]opened+sec_in_day 1724286867 [16:15:42]quantity*price = 0 [16:15:42]sum+1 = 1 [16:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 262 21.08.2024 16:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104261 ФМ: 0000000000871776 ФД: 140245 ФПД: 104282776985324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T161543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140245&fm=104282776985324&tin=02508201610067®Number=0000000000092569&sum=0 [16:15:43]StoreToDocumentArchive [16:15:43]shift 454 fd 140245 [16:15:43]save to /storage/0454/doc_00140245 [16:15:43]save last doc name /storage/0454/doc_00140245 to /storage/kkm_last_doc_name [16:15:43]save OK [16:15:43]Clear old archive folders... [16:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:43]tlvbuf is B6F5DDB0 [16:15:43]SAM_PROTO_ClearQueue [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 09 00 00 [16:15:43]Write to MH i2c: E2 08 00 58 17 80 09 00 00 00 00 00 00 E1 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]SAM_PROTO_ClearQueue done [16:15:43]KKMCreateOFDPacket [16:15:43]OFDProtocolAddRootSTLVToBuf [16:15:43]FM_MakeSignedData [16:15:43]FM_MakeSignedData [16:15:43]SAM_PROTO_SignData [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 01 02 [16:15:43]Write to MH i2c: E2 08 00 59 17 80 0D 01 02 00 00 00 00 E9 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=255 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 01 00 00 F4 03 04 00 AF 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 23 02 00 35 04 06 00 5E [16:15:43]Write to MH i2c: E2 02 01 5A 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 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 06 01 00 00 F4 03 04 00 AF 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 23 02 00 35 04 06 00 5E 00 00 7E [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=10 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 02 02 05 D8 39 E0 DE EC [16:15:43]Write to MH i2c: E2 0D 00 5B 17 80 0D 02 02 05 00 D8 39 E0 DE EC 00 00 B1 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [16:15:43]RAPDU: 90 00 [16:15:43]wFMCommunicate OK [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 0D 03 02 [16:15:43]Write to MH i2c: E2 08 00 5C 17 80 0D 03 02 00 00 00 00 EE [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 0B 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 0B 00 5C 17 00 B2 5A 48 AC 9F F9 82 63 90 00 6C [16:15:43]RAPDU: B2 5A 48 AC 9F F9 82 63 90 00 [16:15:43]wFMCommunicate OK [16:15:43]SAM_PROTO_SignData done [16:15:43]FM_MakeSignedData done [16:15:43]CreateOFDProtocolMessage [16:15:43]wFMCommunicate request_size=4 [16:15:43]MH_SAM_APDU [16:15:43]CAPDU: 80 11 00 00 [16:15:43]Write to MH i2c: E2 08 00 5D 17 80 11 00 00 00 00 00 00 EE [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:43]Read from MH i2c: E2 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 17 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: E2 17 00 5D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [16:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:43]wFMCommunicate OK [16:15:43]CreateOFDProtocolMessage done [16:15:43]OFDSenderStorePacket 140245 [16:15:43]StoreOFDPacket docnum=140245 [16:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 35 07 01 E5 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 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 06 01 00 00 F4 03 04 00 AF 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 23 02 00 35 04 06 00 5E D8 39 E0 DE EC B2 5A 48 AC 9F F9 82 63 [16:15:43]CheckFolder [16:15:43]dirname=/storage/ofd_packets [16:15:43]CheckFolder done [16:15:43]ProducePacketName [16:15:43]name=ofd_packets/00140245 [16:15:43]NVStorageSaveData ofd_packets/00140245 [16:15:43]File name is /storage/ofd_packets/00140245 [16:15:43]Write 301 bytes [16:15:43]NVStorageSaveData done [16:15:43]OFDSenderStorePacket done [16:15:43]KKMCreateOFDPacket done [16:15:43]NVStorageSaveData kkm_last_timestamp [16:15:43]File name is /storage/kkm_last_timestamp [16:15:43]Write 4 bytes [16:15:43]NVStorageSaveData done [16:15:43]ExternCall_PrintAddStr [16:15:43]wPrintStart [16:15:43]Write to MH i2c: 01 00 00 5E 17 75 [16:15:43]Write i2c OK [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 07 00 [16:15:43]MH_I2C_Read... [16:15:43]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [16:15:43]RasterBufferAndPrint [16:15:43]line Счет N : (1)594102 [16:15:43]line ИНН: 02508201610067 [16:15:43]line Контрольно-Кассовый Чек [16:15:43]line ПРОДАЖА [16:15:43]line ТРК (МРК, ГНК) : 42 [16:15:43]line Товар: 2710124130 [16:15:43]line Аи-92-К-5 [16:15:43]line 20.000 * 0.00 [16:15:43]line = 0.00 [16:15:43]line НДС 12% НСП 1% [16:15:43]line > о реализуемом товаре [16:15:43]line ИТОГО: 0.00 [16:15:43]line НСП 1% : 0.00 [16:15:43]line НДС 12% : 0.00 [16:15:43]line Наличными: 0.00 [16:15:43]line Безнал.: 0.00 [16:15:43]line Место: АЗС № 136 "Партнер Нефть" [16:15:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:15:43]line СНО: Общий режим [16:15:43]line Чек 262 21.08.2024 16:15 [16:15:43]line Смена: 454 ФФД: 1.0 [16:15:43]line ЗНМ: 0300000067 [16:15:43]line РНМ: 0000000000092569 [16:15:43]line Версия ККМ: 001 [16:15:43]line Талоны: ТК ГПНА Online [16:15:43]line 30104261 [16:15:43]line ФМ: 0000000000871776 [16:15:43]line ФД: 140245 [16:15:43]line ФПД: 104282776985324 [16:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T161543&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140245&fm=104282776985324&tin=02508201610067®Number=0000000000092569&sum=0 [16:15:43]written 0, free lines is 4095 [16:15:43]OFD Sender: Processing packet 140245 [packets to send 137, broken 136] [16:15:43]ProducePacketName [16:15:43]name=ofd_packets/00140245 [16:15:43]OFD Sender: To server: pG, [16:15:43]CommunicateWithHost lk.salyk.kg:30040 [16:15:43]ConnectInit lk.salyk.kg [16:15:44]Connected sock=10 [16:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9E 35 07 01 E5 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 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 06 01 00 00 F4 03 04 00 AF 12 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D5 23 02 00 35 04 06 00 5E D8 39 E0 DE EC B2 5A 48 AC 9F F9 82 63 [16:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4E EF 47 00 F1 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 37 36 10 04 04 00 D5 23 02 00 F4 03 04 00 3F B9 C5 66 B6 04 01 00 00 47 37 92 A7 8E A4 15 90 [16:15:44]CommunicateWithHost err = 0 [16:15:44]CheckOFDResponse [16:15:44]1017 (14) - 77093643461234 [16:15:44]1041 (16) - 0000000000871776 [16:15:44]1040 (4) - 140245 [16:15:44]1012 (4) - 21.08.2024 09:54 [16:15:44]1206 (1) - 0 [16:15:44]OFD Sender: Remove packet 140245 [16:15:44]ProducePacketName [16:15:44]name=ofd_packets/00140245 [16:15:44]NVStorageDeleteData [16:15:44]Write to MH i2c: 01 00 00 88 17 9F [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 F8 0C AA [16:15:44]RasterBufferAndPrint [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]line [16:15:44]written 0, free lines is 3326 [16:15:44]MH_Cut [16:15:44]Write to MH i2c: D1 01 00 8F 17 01 78 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 01 00 [16:15:44]MH_I2C_Read... [16:15:44]Read from MH i2c: D1 01 00 8F 17 00 77 [16:15:44]Write to MH i2c: 01 00 00 90 17 A7 [16:15:44]Write i2c OK [16:15:44]MH_I2C_Read... [16:15:44]OFD Sender: No OFD packet to send [16:15:45]*** Cut start [16:15:45]*** Partial cut [16:15:45]*** CUTSNS_PIN = 1 [16:15:45]*** CUTSNS_PIN = 0 [16:15:45]*** Brake cut motor [16:15:45]Read from MH i2c: 01 [16:15:45]MH_I2C_Read... [16:15:45]*** Stop cut motor [16:15:45]*** Cut end [16:15:45]Read from MH i2c: 01 07 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 FF 0F BC [16:15:45]process_action close_receipt done [16:15:45]requested_data is exist [16:15:45]produce_requested_data [16:15:45]requested_item fm.sn is exist - process it [16:15:45]wFMCommunicate request_size=4 [16:15:45]MH_SAM_APDU [16:15:45]CAPDU: 80 11 00 00 [16:15:45]Write to MH i2c: E2 08 00 91 17 80 11 00 00 00 00 00 00 22 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:45]Read from MH i2c: E2 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 17 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 17 00 91 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [16:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:15:45]wFMCommunicate OK [16:15:45]requested_item fd.num is exist - process it [16:15:45]SAM_PROTO_GetFieldsCounters [16:15:45]wFMCommunicate request_size=4 [16:15:45]MH_SAM_APDU [16:15:45]CAPDU: 80 13 00 00 [16:15:45]Write to MH i2c: E2 08 00 92 17 80 13 00 00 00 00 00 00 25 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:45]Read from MH i2c: E2 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 62 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 62 00 92 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:45]wFMCommunicate OK [16:15:45]SAM_PROTO_GetFieldsCounters done [16:15:45]requested_item shift.num is exist - process it [16:15:45]requested_item shift.opened is exist - process it [16:15:45]req_shift_opened [16:15:45]FM_GetShiftState [16:15:45]SAM_PROTO_GetShiftState [16:15:45]wFMCommunicate request_size=4 [16:15:45]MH_SAM_APDU [16:15:45]CAPDU: 80 13 01 00 [16:15:45]Write to MH i2c: E2 08 00 93 17 80 13 01 00 00 00 00 00 27 [16:15:45]Write i2c OK [16:15:45]MH_I2C_Read... [16:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:45]Read from MH i2c: E2 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 0E 00 [16:15:45]MH_I2C_Read... [16:15:45]Read from MH i2c: E2 0E 00 93 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [16:15:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:15:45]wFMCommunicate OK [16:15:45]SAM_PROTO_GetShiftState done [16:15:45]FM_GetShiftState done [16:15:45]req_shift_opened done [16:15:45]requested_item shift.open_date is exist - process it [16:15:45]req_shift_open_date [16:15:45]req_shift_open_date done [16:15:45]produce_requested_data done [16:15:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140245,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:15:45]process_action_free close_receipt [16:15:45]json_value_free [16:15:45]json_value_free done [16:15:45]process_json_proto returns [16:15:45]Send response to host [16:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140245,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:15:45]free response buf [16:15:45]execute_script done [16:15:45]execute_script returns [16:15:45]free content buf [16:15:45]Sock 8.Close socket [16:15:45]Sock 8.Thread stoped [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:52]accept exits with 9 [16:21:52]New connection [16:21:52]New thread 3067592036 created [16:21:52]Thread 3067448676 joined [16:21:52]Waiting for new connection... [16:21:52] Sock 9.Parse request [16:21:52]Sock 9.Check first char [16:21:52]Sock 9.First char is OK [16:21:52]request: POST /json_proto HTTP/1.0 [16:21:52]Method: POST [16:21:52]URL: /json_proto [16:21:52]Method is POST - this is cgi request [16:21:52]url: /json_proto [16:21:52]query_string will be loaded in cgi processing [16:21:52]execute_cgi json_proto POST (null) [16:21:52]execute_cgi path=json_proto method=POST [16:21:52]POST find Content-Length [16:21:52]Host: 172.17.45.67:8080 [16:21:52]Content-Length: 663 [16:21:52]Content-Type: application/json [16:21:52] [16:21:52]POST finish read [16:21:52]Found Content-Length = 663 [16:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:52]execute_script... [16:21: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)594103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:52]POST & json_proto [16:21:52]process_json_proto [16:21:52]json parsed OK: [16:21:52]protocol is kg_v1.0 [16:21:52]action value=close_receipt [16:21:52]process_action close_receipt [16:21:52]cmd_close_receipt [16:21:52]MH_GetDate [16:21:52]Write to MH i2c: F0 00 00 94 17 9A [16:21:52]Write i2c OK [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 09 00 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: F0 09 00 94 17 00 21 14 C6 66 5F 7F 2B 66 73 [16:21:52]GetLastDocTimeStamp 1724256943 [16:21:52]current date 1724257313 [16:21:52]FM_GetShiftState [16:21:52]SAM_PROTO_GetShiftState [16:21:52]wFMCommunicate request_size=4 [16:21:52]MH_SAM_APDU [16:21:52]CAPDU: 80 13 01 00 [16:21:52]Write to MH i2c: E2 08 00 95 17 80 13 01 00 00 00 00 00 29 [16:21:52]Write i2c OK [16:21:52]MH_I2C_Read... [16:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:52]Read from MH i2c: E2 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: E2 0E 00 [16:21:52]MH_I2C_Read... [16:21:52]Read from MH i2c: E2 0E 00 95 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A9 [16:21:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:21:52]wFMCommunicate OK [16:21:52]SAM_PROTO_GetShiftState done [16:21:52]FM_GetShiftState done [16:21:52]opened in 1724200467 [16:21:52]opened+sec_in_day 1724286867 [16:21:52]quantity*price = 100035 [16:21:52]sum+1 = 100036 [16:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 263 21.08.2024 16:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140246 ФПД: 84843230425443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140246&fm=84843230425443&tin=02508201610067®Number=0000000000092569&sum=100000 [16:21:53]StoreToDocumentArchive [16:21:53]shift 454 fd 140246 [16:21:53]save to /storage/0454/doc_00140246 [16:21:53]save last doc name /storage/0454/doc_00140246 to /storage/kkm_last_doc_name [16:21:53]save OK [16:21:53]Clear old archive folders... [16:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:21:53]tlvbuf is B6F44110 [16:21:53]SAM_PROTO_ClearQueue [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 09 00 00 [16:21:53]Write to MH i2c: E2 08 00 A2 17 80 09 00 00 00 00 00 00 2B [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [16:21:53]RAPDU: 90 00 [16:21:53]wFMCommunicate OK [16:21:53]SAM_PROTO_ClearQueue done [16:21:53]KKMCreateOFDPacket [16:21:53]OFDProtocolAddRootSTLVToBuf [16:21:53]FM_MakeSignedData [16:21:53]FM_MakeSignedData [16:21:53]SAM_PROTO_SignData [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 0D 01 02 [16:21:53]Write to MH i2c: E2 08 00 A3 17 80 0D 01 02 00 00 00 00 33 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [16:21:53]RAPDU: 90 00 [16:21:53]wFMCommunicate OK [16:21:53]wFMCommunicate request_size=253 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 21 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 23 02 00 35 04 06 00 4D 2A 1A 9C 71 63 [16:21:53]Write to MH i2c: E2 00 01 A4 17 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 21 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 23 02 00 35 04 06 00 4D 2A 1A 9C 71 63 00 00 D7 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [16:21:53]RAPDU: 90 00 [16:21:53]wFMCommunicate OK [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 0D 03 02 [16:21:53]Write to MH i2c: E2 08 00 A5 17 80 0D 03 02 00 00 00 00 37 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 0B 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 0B 00 A5 17 00 62 6A AF 97 13 C6 3D 69 90 00 C9 [16:21:53]RAPDU: 62 6A AF 97 13 C6 3D 69 90 00 [16:21:53]wFMCommunicate OK [16:21:53]SAM_PROTO_SignData done [16:21:53]FM_MakeSignedData done [16:21:53]CreateOFDProtocolMessage [16:21:53]wFMCommunicate request_size=4 [16:21:53]MH_SAM_APDU [16:21:53]CAPDU: 80 11 00 00 [16:21:53]Write to MH i2c: E2 08 00 A6 17 80 11 00 00 00 00 00 00 37 [16:21:53]Write i2c OK [16:21:53]MH_I2C_Read... [16:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:53]Read from MH i2c: E2 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 17 00 [16:21:53]MH_I2C_Read... [16:21:53]Read from MH i2c: E2 17 00 A6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8E [16:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:21:53]wFMCommunicate OK [16:21:53]CreateOFDProtocolMessage done [16:21:53]OFDSenderStorePacket 140246 [16:21:53]StoreOFDPacket docnum=140246 [16:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 11 1D 00 01 22 F4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 21 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 23 02 00 35 04 06 00 4D 2A 1A 9C 71 63 62 6A AF 97 13 C6 3D 69 [16:21:53]CheckFolder [16:21:53]dirname=/storage/ofd_packets [16:21:53]CheckFolder done [16:21:53]ProducePacketName [16:21:53]name=ofd_packets/00140246 [16:21:53]NVStorageSaveData ofd_packets/00140246 [16:21:53]File name is /storage/ofd_packets/00140246 [16:21:53]Write 294 bytes [16:21:53]NVStorageSaveData done [16:21:53]OFDSenderStorePacket done [16:21:53]KKMCreateOFDPacket done [16:21:53]NVStorageSaveData kkm_last_timestamp [16:21:53]File name is /storage/kkm_last_timestamp [16:21:53]Write 4 bytes [16:21:53]NVStorageSaveData done [16:21:54]ExternCall_PrintAddStr [16:21:54]wPrintStart [16:21:54]Write to MH i2c: 01 00 00 A7 17 BE [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [16:21:54]RasterBufferAndPrint [16:21:54]line Счет N : (1)594103 [16:21:54]line ИНН: 02508201610067 [16:21:54]line Контрольно-Кассовый Чек [16:21:54]line ПРОДАЖА [16:21:54]line ТРК (МРК, ГНК) : 53 [16:21:54]line Товар: 2710124130 [16:21:54]line SU-92 [16:21:54]line 14.540 * 68.80 [16:21:54]line = 1000.35 [16:21:54]line НДС 12% НСП 1% [16:21:54]line > о реализуемом товаре [16:21:54]line ОКРУГЛЕНИЕ: -0.35 [16:21:54]line ИТОГО: 1000.00 [16:21:54]line Внесено: 1000.00 [16:21:54]line СДАЧА: 0.00 [16:21:54]line НСП 1% : 8.85 [16:21:54]line НДС 12% : 106.23 [16:21:54]line Наличными: 1000.00 [16:21:54]line Безнал.: 0.00 [16:21:54]line Место: АЗС № 136 "Партнер Нефть" [16:21:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:21:54]line СНО: Общий режим [16:21:54]line Чек 263 21.08.2024 16:21 [16:21:54]line Смена: 454 ФФД: 1.0 [16:21:54]line ЗНМ: 0300000067 [16:21:54]line РНМ: 0000000000092569 [16:21:54]line Версия ККМ: 001 [16:21:54]line ФМ: 0000000000871776 [16:21:54]line ФД: 140246 [16:21:54]line ФПД: 84843230425443 [16:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162153&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140246&fm=84843230425443&tin=02508201610067®Number=0000000000092569&sum=100000 [16:21:54]OFD Sender: Processing packet 140246 [packets to send 137, broken 136] [16:21:54]ProducePacketName [16:21:54]name=ofd_packets/00140246 [16:21:54]OFD Sender: To server: pG, [16:21:54]CommunicateWithHost lk.salyk.kg:30040 [16:21:54]ConnectInit lk.salyk.kg [16:21:54]written 0, free lines is 4095 [16:21:54]Connected sock=10 [16:21: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 37 36 08 01 00 00 11 1D 00 01 22 F4 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 21 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D6 23 02 00 35 04 06 00 4D 2A 1A 9C 71 63 62 6A AF 97 13 C6 3D 69 [16:21: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 37 36 4F 00 00 00 9F EC 47 00 EA 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 37 36 10 04 04 00 D6 23 02 00 F4 03 04 00 B1 BA C5 66 B6 04 01 00 00 BD 8C 86 69 02 01 DA 73 [16:21:54]CommunicateWithHost err = 0 [16:21:54]CheckOFDResponse [16:21:54]1017 (14) - 77093643461234 [16:21:54]1041 (16) - 0000000000871776 [16:21:54]1040 (4) - 140246 [16:21:54]1012 (4) - 21.08.2024 10:00 [16:21:54]1206 (1) - 0 [16:21:54]OFD Sender: Remove packet 140246 [16:21:54]ProducePacketName [16:21:54]name=ofd_packets/00140246 [16:21:54]NVStorageDeleteData [16:21:54]Write to MH i2c: 01 00 00 D2 17 E9 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 CD 0C C9 [16:21:54]RasterBufferAndPrint [16:21:54]line [16:21:54]line [16:21:54]line [16:21:54]line [16:21:54]line [16:21:54]written 0, free lines is 3283 [16:21:54]MH_Cut [16:21:54]Write to MH i2c: D1 01 00 D9 17 01 C2 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: D1 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: D1 01 00 [16:21:54]MH_I2C_Read... [16:21:54]Read from MH i2c: D1 01 00 D9 17 00 C1 [16:21:54]Write to MH i2c: 01 00 00 DA 17 F1 [16:21:54]Write i2c OK [16:21:54]MH_I2C_Read... [16:21:55]OFD Sender: No OFD packet to send [16:21:55]*** Cut start [16:21:55]*** Partial cut [16:21:55]*** CUTSNS_PIN = 1 [16:21:55]*** CUTSNS_PIN = 0 [16:21:55]*** Brake cut motor [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]*** Stop cut motor [16:21:56]*** Cut end [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 FF 0F 06 [16:21:56]process_action close_receipt done [16:21:56]requested_data is exist [16:21:56]produce_requested_data [16:21:56]requested_item fm.sn is exist - process it [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 11 00 00 [16:21:56]Write to MH i2c: E2 08 00 DB 17 80 11 00 00 00 00 00 00 6C [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 DB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [16:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:21:56]wFMCommunicate OK [16:21:56]requested_item fd.num is exist - process it [16:21:56]SAM_PROTO_GetFieldsCounters [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 00 00 [16:21:56]Write to MH i2c: E2 08 00 DC 17 80 13 00 00 00 00 00 00 6F [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 62 00 DC 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetFieldsCounters done [16:21:56]requested_item shift.num is exist - process it [16:21:56]requested_item shift.opened is exist - process it [16:21:56]req_shift_opened [16:21:56]FM_GetShiftState [16:21:56]SAM_PROTO_GetShiftState [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 13 01 00 [16:21:56]Write to MH i2c: E2 08 00 DD 17 80 13 01 00 00 00 00 00 71 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:56]Read from MH i2c: E2 0E 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0E 00 DD 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F1 [16:21:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_GetShiftState done [16:21:56]FM_GetShiftState done [16:21:56]req_shift_opened done [16:21:56]requested_item shift.open_date is exist - process it [16:21:56]req_shift_open_date [16:21:56]req_shift_open_date done [16:21:56]produce_requested_data done [16:21:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140246,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:21:56]process_action_free close_receipt [16:21:56]json_value_free [16:21:56]json_value_free done [16:21:56]process_json_proto returns [16:21:56]Send response to host [16:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140246,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:21:56]free response buf [16:21:56]execute_script done [16:21:56]execute_script returns [16:21:56]free content buf [16:21:56]Sock 9.Close socket [16:21:56]Sock 9.Thread stoped [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:39]accept exits with 8 [16:22:39]New connection [16:22:39]New thread 3067448676 created [16:22:39]Thread 3067592036 joined [16:22:39]Waiting for new connection... [16:22:39] Sock 8.Parse request [16:22:39]Sock 8.Check first char [16:22:39]Sock 8.First char is OK [16:22:39]request: POST /json_proto HTTP/1.0 [16:22:39]Method: POST [16:22:39]URL: /json_proto [16:22:39]Method is POST - this is cgi request [16:22:39]url: /json_proto [16:22:39]query_string will be loaded in cgi processing [16:22:39]execute_cgi json_proto POST (null) [16:22:39]execute_cgi path=json_proto method=POST [16:22:39]POST find Content-Length [16:22:39]Host: 172.17.45.67:8080 [16:22:39]Content-Length: 682 [16:22:39]Content-Type: application/json [16:22:39] [16:22:39]POST finish read [16:22:39]Found Content-Length = 682 [16:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:39]execute_script... [16:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:39]POST & json_proto [16:22:39]process_json_proto [16:22:39]json parsed OK: [16:22:39]protocol is kg_v1.0 [16:22:39]action value=close_receipt [16:22:39]process_action close_receipt [16:22:39]cmd_close_receipt [16:22:39]MH_GetDate [16:22:39]Write to MH i2c: F0 00 00 DE 17 E4 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: F0 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: F0 09 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: F0 09 00 DE 17 00 50 14 C6 66 5F 7F 2B 66 EC [16:22:39]GetLastDocTimeStamp 1724257313 [16:22:39]current date 1724257360 [16:22:39]FM_GetShiftState [16:22:39]SAM_PROTO_GetShiftState [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 01 00 [16:22:39]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F3 [16:22:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_GetShiftState done [16:22:39]FM_GetShiftState done [16:22:39]opened in 1724200467 [16:22:39]opened+sec_in_day 1724286867 [16:22:39]quantity*price = 100005 [16:22:39]sum+1 = 100006 [16:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 264 21.08.2024 16:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140247 ФПД: 275217456102580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140247&fm=275217456102580&tin=02508201610067®Number=0000000000092569&sum=100000 [16:22:40]StoreToDocumentArchive [16:22:40]shift 454 fd 140247 [16:22:40]save to /storage/0454/doc_00140247 [16:22:40]save last doc name /storage/0454/doc_00140247 to /storage/kkm_last_doc_name [16:22:40]save OK [16:22:40]Clear old archive folders... [16:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:40]tlvbuf is 01C73F90 [16:22:40]SAM_PROTO_ClearQueue [16:22:40]wFMCommunicate request_size=4 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 09 00 00 [16:22:40]Write to MH i2c: E2 08 00 EC 17 80 09 00 00 00 00 00 00 75 [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [16:22:40]RAPDU: 90 00 [16:22:40]wFMCommunicate OK [16:22:40]SAM_PROTO_ClearQueue done [16:22:40]KKMCreateOFDPacket [16:22:40]OFDProtocolAddRootSTLVToBuf [16:22:40]FM_MakeSignedData [16:22:40]FM_MakeSignedData [16:22:40]SAM_PROTO_SignData [16:22:40]wFMCommunicate request_size=4 [16:22:40]MH_SAM_APDU [16:22:40]CAPDU: 80 0D 01 02 [16:22:40]Write to MH i2c: E2 08 00 ED 17 80 0D 01 02 00 00 00 00 7D [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:40]Read from MH i2c: E2 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 [16:22:40]MH_I2C_Read... [16:22:40]Read from MH i2c: E2 03 00 ED 17 00 90 00 78 [16:22:40]RAPDU: 90 00 [16:22:40]wFMCommunicate OK [16:22:40]wFMCommunicate request_size=255 [16:22:40]MH_SAM_APDU [16:22: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 23 02 00 35 04 06 00 FA [16:22:40]Write to MH i2c: E2 02 01 EE 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 23 02 00 35 04 06 00 FA 00 00 EB [16:22:40]Write i2c OK [16:22:40]MH_I2C_Read... [16:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:41]Read from MH i2c: E2 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 03 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [16:22:41]RAPDU: 90 00 [16:22:41]wFMCommunicate OK [16:22:41]wFMCommunicate request_size=10 [16:22:41]MH_SAM_APDU [16:22:41]CAPDU: 80 0D 02 02 05 4F 0E B4 FC B4 [16:22:41]Write to MH i2c: E2 0D 00 EF 17 80 0D 02 02 05 00 4F 0E B4 FC B4 00 00 4B [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:41]Read from MH i2c: E2 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 03 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [16:22:41]RAPDU: 90 00 [16:22:41]wFMCommunicate OK [16:22:41]wFMCommunicate request_size=4 [16:22:41]MH_SAM_APDU [16:22:41]CAPDU: 80 0D 03 02 [16:22:41]Write to MH i2c: E2 08 00 F0 17 80 0D 03 02 00 00 00 00 82 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:41]Read from MH i2c: E2 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 0B 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 0B 00 F0 17 00 16 9E 0A 14 B9 40 20 40 90 00 AE [16:22:41]RAPDU: 16 9E 0A 14 B9 40 20 40 90 00 [16:22:41]wFMCommunicate OK [16:22:41]SAM_PROTO_SignData done [16:22:41]FM_MakeSignedData done [16:22:41]CreateOFDProtocolMessage [16:22:41]wFMCommunicate request_size=4 [16:22:41]MH_SAM_APDU [16:22:41]CAPDU: 80 11 00 00 [16:22:41]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:41]Read from MH i2c: E2 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 17 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [16:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:22:41]wFMCommunicate OK [16:22:41]CreateOFDProtocolMessage done [16:22:41]OFDSenderStorePacket 140247 [16:22:41]StoreOFDPacket docnum=140247 [16:22:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB 2D 07 01 A1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 23 02 00 35 04 06 00 FA 4F 0E B4 FC B4 16 9E 0A 14 B9 40 20 40 [16:22:41]CheckFolder [16:22:41]dirname=/storage/ofd_packets [16:22:41]CheckFolder done [16:22:41]ProducePacketName [16:22:41]name=ofd_packets/00140247 [16:22:41]NVStorageSaveData ofd_packets/00140247 [16:22:41]File name is /storage/ofd_packets/00140247 [16:22:41]Write 301 bytes [16:22:41]NVStorageSaveData done [16:22:41]OFDSenderStorePacket done [16:22:41]KKMCreateOFDPacket done [16:22:41]NVStorageSaveData kkm_last_timestamp [16:22:41]File name is /storage/kkm_last_timestamp [16:22:41]Write 4 bytes [16:22:41]NVStorageSaveData done [16:22:41]ExternCall_PrintAddStr [16:22:41]wPrintStart [16:22:41]Write to MH i2c: 01 00 00 F2 17 09 [16:22:41]Write i2c OK [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 07 00 [16:22:41]MH_I2C_Read... [16:22:41]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [16:22:41]RasterBufferAndPrint [16:22:41]line Счет N : (1)594104 [16:22:41]line ИНН: 02508201610067 [16:22:41]line Контрольно-Кассовый Чек [16:22:41]line ПРОДАЖА [16:22:41]line ТРК (МРК, ГНК) : 42 [16:22:41]line Товар: 2710124130 [16:22:41]line Аи-92-К-5 [16:22:41]line 14.750 * 67.80 [16:22:41]line = 1000.05 [16:22:41]line НДС 12% НСП 1% [16:22:41]line > о реализуемом товаре [16:22:41]line ОКРУГЛЕНИЕ: -0.05 [16:22:41]line ИТОГО: 1000.00 [16:22:41]line Внесено: 1000.00 [16:22:41]line СДАЧА: 0.00 [16:22:41]line НСП 1% : 8.85 [16:22:41]line НДС 12% : 106.20 [16:22:41]line Наличными: 1000.00 [16:22:41]line Безнал.: 0.00 [16:22:41]line Место: АЗС № 136 "Партнер Нефть" [16:22:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:22:41]line СНО: Общий режим [16:22:41]line Чек 264 21.08.2024 16:22 [16:22:41]line Смена: 454 ФФД: 1.0 [16:22:41]line ЗНМ: 0300000067 [16:22:41]line РНМ: 0000000000092569 [16:22:41]line Версия ККМ: 001 [16:22:41]line ФМ: 0000000000871776 [16:22:41]line ФД: 140247 [16:22:41]line ФПД: 275217456102580 [16:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140247&fm=275217456102580&tin=02508201610067®Number=0000000000092569&sum=100000 [16:22:41]OFD Sender: Processing packet 140247 [packets to send 137, broken 136] [16:22:41]ProducePacketName [16:22:41]name=ofd_packets/00140247 [16:22:41]OFD Sender: To server: pG, [16:22:41]CommunicateWithHost lk.salyk.kg:30040 [16:22:41]ConnectInit lk.salyk.kg [16:22:41]written 0, free lines is 4095 [16:22:41]Connected sock=10 [16:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CB 2D 07 01 A1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 50 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 23 02 00 35 04 06 00 FA 4F 0E B4 FC B4 16 9E 0A 14 B9 40 20 40 [16:22: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 37 36 4F 00 00 00 03 89 47 00 27 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D7 23 02 00 F4 03 04 00 E1 BA C5 66 B6 04 01 00 00 91 26 54 90 F4 83 FA CC [16:22:42]CommunicateWithHost err = 0 [16:22:42]CheckOFDResponse [16:22:42]1017 (14) - 77093643461234 [16:22:42]1041 (16) - 0000000000871776 [16:22:42]1040 (4) - 140247 [16:22:42]1012 (4) - 21.08.2024 10:01 [16:22:42]1206 (1) - 0 [16:22:42]OFD Sender: Remove packet 140247 [16:22:42]ProducePacketName [16:22:42]name=ofd_packets/00140247 [16:22:42]NVStorageDeleteData [16:22:42]Write to MH i2c: 01 00 00 1D 18 35 [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: 01 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: 01 07 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 D7 0C 1F [16:22:42]RasterBufferAndPrint [16:22:42]line [16:22:42]line [16:22:42]line [16:22:42]line [16:22:42]line [16:22:42]written 0, free lines is 3293 [16:22:42]MH_Cut [16:22:42]Write to MH i2c: D1 01 00 24 18 01 0E [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: D1 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: D1 01 00 [16:22:42]MH_I2C_Read... [16:22:42]Read from MH i2c: D1 01 00 24 18 00 0D [16:22:42]Write to MH i2c: 01 00 00 25 18 3D [16:22:42]Write i2c OK [16:22:42]MH_I2C_Read... [16:22:42]OFD Sender: No OFD packet to send [16:22:42]*** Cut start [16:22:42]*** Partial cut [16:22:42]*** CUTSNS_PIN = 1 [16:22:42]*** CUTSNS_PIN = 0 [16:22:43]*** Brake cut motor [16:22:43]Read from MH i2c: 01 [16:22:43]MH_I2C_Read... [16:22:43]*** Stop cut motor [16:22:43]*** Cut end [16:22:43]Read from MH i2c: 01 07 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: 01 07 00 25 18 00 00 00 00 00 FF 0F 52 [16:22:43]process_action close_receipt done [16:22:43]requested_data is exist [16:22:43]produce_requested_data [16:22:43]requested_item fm.sn is exist - process it [16:22:43]wFMCommunicate request_size=4 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 11 00 00 [16:22:43]Write to MH i2c: E2 08 00 26 18 80 11 00 00 00 00 00 00 B8 [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 17 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 17 00 26 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [16:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:22:43]wFMCommunicate OK [16:22:43]requested_item fd.num is exist - process it [16:22:43]SAM_PROTO_GetFieldsCounters [16:22:43]wFMCommunicate request_size=4 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 13 00 00 [16:22:43]Write to MH i2c: E2 08 00 27 18 80 13 00 00 00 00 00 00 BB [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 62 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 62 00 27 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:22:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D7 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:43]wFMCommunicate OK [16:22:43]SAM_PROTO_GetFieldsCounters done [16:22:43]requested_item shift.num is exist - process it [16:22:43]requested_item shift.opened is exist - process it [16:22:43]req_shift_opened [16:22:43]FM_GetShiftState [16:22:43]SAM_PROTO_GetShiftState [16:22:43]wFMCommunicate request_size=4 [16:22:43]MH_SAM_APDU [16:22:43]CAPDU: 80 13 01 00 [16:22:43]Write to MH i2c: E2 08 00 28 18 80 13 01 00 00 00 00 00 BD [16:22:43]Write i2c OK [16:22:43]MH_I2C_Read... [16:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:43]Read from MH i2c: E2 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 0E 00 [16:22:43]MH_I2C_Read... [16:22:43]Read from MH i2c: E2 0E 00 28 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3D [16:22:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:22:43]wFMCommunicate OK [16:22:43]SAM_PROTO_GetShiftState done [16:22:43]FM_GetShiftState done [16:22:43]req_shift_opened done [16:22:43]requested_item shift.open_date is exist - process it [16:22:43]req_shift_open_date [16:22:43]req_shift_open_date done [16:22:43]produce_requested_data done [16:22:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140247,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:22:43]process_action_free close_receipt [16:22:43]json_value_free [16:22:43]json_value_free done [16:22:43]process_json_proto returns [16:22:43]Send response to host [16:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140247,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:22:43]free response buf [16:22:43]execute_script done [16:22:43]execute_script returns [16:22:43]free content buf [16:22:43]Sock 8.Close socket [16:22:43]Sock 8.Thread stoped [16:22:47]OFD Sender: No OFD packet to send [16:22:48]accept exits with 9 [16:22:48]New connection [16:22:48]New thread 3067592036 created [16:22:48]Thread 3067448676 joined [16:22:48]Waiting for new connection... [16:22:48] Sock 9.Parse request [16:22:48]Sock 9.Check first char [16:22:48]Sock 9.First char is OK [16:22:48]request: POST /json_proto HTTP/1.0 [16:22:48]Method: POST [16:22:48]URL: /json_proto [16:22:48]Method is POST - this is cgi request [16:22:48]url: /json_proto [16:22:48]query_string will be loaded in cgi processing [16:22:48]execute_cgi json_proto POST (null) [16:22:48]execute_cgi path=json_proto method=POST [16:22:48]POST find Content-Length [16:22:48]Host: 172.17.45.67:8080 [16:22:48]Content-Length: 677 [16:22:48]Content-Type: application/json [16:22:48] [16:22:48]POST finish read [16:22:48]Found Content-Length = 677 [16:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:48]execute_script... [16:22: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)594105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:48]POST & json_proto [16:22:48]process_json_proto [16:22:48]json parsed OK: [16:22:48]protocol is kg_v1.0 [16:22:48]action value=close_receipt [16:22:48]process_action close_receipt [16:22:48]cmd_close_receipt [16:22:48]MH_GetDate [16:22:48]Write to MH i2c: F0 00 00 29 18 30 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 09 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: F0 09 00 29 18 00 59 14 C6 66 5F 7F 2B 66 41 [16:22:48]GetLastDocTimeStamp 1724257360 [16:22:48]current date 1724257369 [16:22:48]FM_GetShiftState [16:22:48]SAM_PROTO_GetShiftState [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 13 01 00 [16:22:48]Write to MH i2c: E2 08 00 2A 18 80 13 01 00 00 00 00 00 BF [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0E 00 2A 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3F [16:22:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_GetShiftState done [16:22:48]FM_GetShiftState done [16:22:48]opened in 1724200467 [16:22:48]opened+sec_in_day 1724286867 [16:22:48]quantity*price = 40002 [16:22:48]sum+1 = 40003 [16:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 265 21.08.2024 16:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140248 ФПД: 4734617684691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140248&fm=4734617684691&tin=02508201610067®Number=0000000000092569&sum=40000 [16:22:49]StoreToDocumentArchive [16:22:49]shift 454 fd 140248 [16:22:49]save to /storage/0454/doc_00140248 [16:22:49]save last doc name /storage/0454/doc_00140248 to /storage/kkm_last_doc_name [16:22:49]save OK [16:22:49]Clear old archive folders... [16:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:49]tlvbuf is 01CE86D0 [16:22:49]SAM_PROTO_ClearQueue [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 09 00 00 [16:22:49]Write to MH i2c: E2 08 00 37 18 80 09 00 00 00 00 00 00 C1 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]SAM_PROTO_ClearQueue done [16:22:49]KKMCreateOFDPacket [16:22:49]OFDProtocolAddRootSTLVToBuf [16:22:49]FM_MakeSignedData [16:22:49]FM_MakeSignedData [16:22:49]SAM_PROTO_SignData [16:22:49]wFMCommunicate request_size=4 [16:22:49]MH_SAM_APDU [16:22:49]CAPDU: 80 0D 01 02 [16:22:49]Write to MH i2c: E2 08 00 38 18 80 0D 01 02 00 00 00 00 C9 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:49]Read from MH i2c: E2 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [16:22:49]RAPDU: 90 00 [16:22:49]wFMCommunicate OK [16:22:49]wFMCommunicate request_size=255 [16:22:49]MH_SAM_APDU [16:22: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 59 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 23 02 00 35 04 06 00 04 [16:22:49]Write to MH i2c: E2 02 01 39 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 59 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 23 02 00 35 04 06 00 04 00 00 A2 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:50]Read from MH i2c: E2 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 03 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [16:22:50]RAPDU: 90 00 [16:22:50]wFMCommunicate OK [16:22:50]wFMCommunicate request_size=10 [16:22:50]MH_SAM_APDU [16:22:50]CAPDU: 80 0D 02 02 05 4E 5D 34 8A D3 [16:22:50]Write to MH i2c: E2 0D 00 3A 18 80 0D 02 02 05 00 4E 5D 34 8A D3 00 00 12 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:50]Read from MH i2c: E2 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 03 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [16:22:50]RAPDU: 90 00 [16:22:50]wFMCommunicate OK [16:22:50]wFMCommunicate request_size=4 [16:22:50]MH_SAM_APDU [16:22:50]CAPDU: 80 0D 03 02 [16:22:50]Write to MH i2c: E2 08 00 3B 18 80 0D 03 02 00 00 00 00 CE [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:50]Read from MH i2c: E2 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 0B 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 0B 00 3B 18 00 8E E3 58 CC F5 83 ED EB 90 00 B4 [16:22:50]RAPDU: 8E E3 58 CC F5 83 ED EB 90 00 [16:22:50]wFMCommunicate OK [16:22:50]SAM_PROTO_SignData done [16:22:50]FM_MakeSignedData done [16:22:50]CreateOFDProtocolMessage [16:22:50]wFMCommunicate request_size=4 [16:22:50]MH_SAM_APDU [16:22:50]CAPDU: 80 11 00 00 [16:22:50]Write to MH i2c: E2 08 00 3C 18 80 11 00 00 00 00 00 00 CE [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:50]Read from MH i2c: E2 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 17 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: E2 17 00 3C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [16:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:22:50]wFMCommunicate OK [16:22:50]CreateOFDProtocolMessage done [16:22:50]OFDSenderStorePacket 140248 [16:22:50]StoreOFDPacket docnum=140248 [16:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 B3 07 01 75 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 59 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 23 02 00 35 04 06 00 04 4E 5D 34 8A D3 8E E3 58 CC F5 83 ED EB [16:22:50]CheckFolder [16:22:50]dirname=/storage/ofd_packets [16:22:50]CheckFolder done [16:22:50]ProducePacketName [16:22:50]name=ofd_packets/00140248 [16:22:50]NVStorageSaveData ofd_packets/00140248 [16:22:50]File name is /storage/ofd_packets/00140248 [16:22:50]Write 301 bytes [16:22:50]NVStorageSaveData done [16:22:50]OFDSenderStorePacket done [16:22:50]KKMCreateOFDPacket done [16:22:50]NVStorageSaveData kkm_last_timestamp [16:22:50]File name is /storage/kkm_last_timestamp [16:22:50]Write 4 bytes [16:22:50]NVStorageSaveData done [16:22:50]ExternCall_PrintAddStr [16:22:50]wPrintStart [16:22:50]Write to MH i2c: 01 00 00 3D 18 55 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 3D 18 00 00 00 00 00 FF 0F 6A [16:22:50]RasterBufferAndPrint [16:22:50]line Счет N : (1)594105 [16:22:50]line ИНН: 02508201610067 [16:22:50]line Контрольно-Кассовый Чек [16:22:50]line ПРОДАЖА [16:22:50]line ТРК (МРК, ГНК) : 62 [16:22:50]line Товар: 2710124130 [16:22:50]line Аи-92-К-5 [16:22:50]line 5.900 * 67.80 [16:22:50]line = 400.02 [16:22:50]line НДС 12% НСП 1% [16:22:50]line > о реализуемом товаре [16:22:50]line ОКРУГЛЕНИЕ: -0.02 [16:22:50]line ИТОГО: 400.00 [16:22:50]line Внесено: 400.00 [16:22:50]line СДАЧА: 0.00 [16:22:50]line НСП 1% : 3.54 [16:22:50]line НДС 12% : 42.48 [16:22:50]line Наличными: 400.00 [16:22:50]line Безнал.: 0.00 [16:22:50]line Место: АЗС № 136 "Партнер Нефть" [16:22:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:22:50]line СНО: Общий режим [16:22:50]line Чек 265 21.08.2024 16:22 [16:22:50]line Смена: 454 ФФД: 1.0 [16:22:50]line ЗНМ: 0300000067 [16:22:50]line РНМ: 0000000000092569 [16:22:50]line Версия ККМ: 001 [16:22:50]line ФМ: 0000000000871776 [16:22:50]line ФД: 140248 [16:22:50]line ФПД: 4734617684691 [16:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162249&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140248&fm=4734617684691&tin=02508201610067®Number=0000000000092569&sum=40000 [16:22:50]written 0, free lines is 4095 [16:22:50]OFD Sender: Processing packet 140248 [packets to send 137, broken 136] [16:22:50]ProducePacketName [16:22:50]name=ofd_packets/00140248 [16:22:50]OFD Sender: To server: pG, [16:22:50]CommunicateWithHost lk.salyk.kg:30040 [16:22:50]ConnectInit lk.salyk.kg [16:22:50]Connected sock=10 [16:22: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 37 36 0F 01 00 00 06 B3 07 01 75 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 59 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 23 02 00 35 04 06 00 04 4E 5D 34 8A D3 8E E3 58 CC F5 83 ED EB [16:22:50]Write to MH i2c: 01 00 00 68 18 80 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 CF 0C 62 [16:22:50]RasterBufferAndPrint [16:22:50]line [16:22:50]line [16:22:50]line [16:22:50]line [16:22:50]line [16:22: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 37 36 4F 00 00 00 5E 30 47 00 3B 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D8 23 02 00 F4 03 04 00 EA BA C5 66 B6 04 01 00 00 38 91 37 7B 07 54 7F CA [16:22:50]CommunicateWithHost err = 0 [16:22:50]CheckOFDResponse [16:22:50]1017 (14) - 77093643461234 [16:22:50]1041 (16) - 0000000000871776 [16:22:50]1040 (4) - 140248 [16:22:50]1012 (4) - 21.08.2024 10:01 [16:22:50]1206 (1) - 0 [16:22:50]OFD Sender: Remove packet 140248 [16:22:50]ProducePacketName [16:22:50]name=ofd_packets/00140248 [16:22:50]NVStorageDeleteData [16:22:50]written 0, free lines is 3302 [16:22:50]MH_Cut [16:22:50]Write to MH i2c: D1 01 00 6F 18 01 59 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 01 00 [16:22:50]MH_I2C_Read... [16:22:50]Read from MH i2c: D1 01 00 6F 18 00 58 [16:22:50]Write to MH i2c: 01 00 00 70 18 88 [16:22:50]Write i2c OK [16:22:50]MH_I2C_Read... [16:22:51]OFD Sender: No OFD packet to send [16:22:51]*** Cut start [16:22:51]*** Partial cut [16:22:51]*** CUTSNS_PIN = 1 [16:22:51]*** CUTSNS_PIN = 0 [16:22:51]*** Brake cut motor [16:22:52]Read from MH i2c: 01 [16:22:52]MH_I2C_Read... [16:22:52]*** Stop cut motor [16:22:52]*** Cut end [16:22:52]Read from MH i2c: 01 07 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 FF 0F 9D [16:22:52]process_action close_receipt done [16:22:52]requested_data is exist [16:22:52]produce_requested_data [16:22:52]requested_item fm.sn is exist - process it [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 11 00 00 [16:22:52]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [16:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:22:52]wFMCommunicate OK [16:22:52]requested_item fd.num is exist - process it [16:22:52]SAM_PROTO_GetFieldsCounters [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 13 00 00 [16:22:52]Write to MH i2c: E2 08 00 72 18 80 13 00 00 00 00 00 00 06 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 62 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 62 00 72 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [16:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_GetFieldsCounters done [16:22:52]requested_item shift.num is exist - process it [16:22:52]requested_item shift.opened is exist - process it [16:22:52]req_shift_opened [16:22:52]FM_GetShiftState [16:22:52]SAM_PROTO_GetShiftState [16:22:52]wFMCommunicate request_size=4 [16:22:52]MH_SAM_APDU [16:22:52]CAPDU: 80 13 01 00 [16:22:52]Write to MH i2c: E2 08 00 73 18 80 13 01 00 00 00 00 00 08 [16:22:52]Write i2c OK [16:22:52]MH_I2C_Read... [16:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:52]Read from MH i2c: E2 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 [16:22:52]MH_I2C_Read... [16:22:52]Read from MH i2c: E2 0E 00 73 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 88 [16:22:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:22:52]wFMCommunicate OK [16:22:52]SAM_PROTO_GetShiftState done [16:22:52]FM_GetShiftState done [16:22:52]req_shift_opened done [16:22:52]requested_item shift.open_date is exist - process it [16:22:52]req_shift_open_date [16:22:52]req_shift_open_date done [16:22:52]produce_requested_data done [16:22:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140248,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:22:52]process_action_free close_receipt [16:22:52]json_value_free [16:22:52]json_value_free done [16:22:52]process_json_proto returns [16:22:52]Send response to host [16:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140248,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:22:52]free response buf [16:22:52]execute_script done [16:22:52]execute_script returns [16:22:52]free content buf [16:22:52]Sock 9.Close socket [16:22:52]Sock 9.Thread stoped [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:14]accept exits with 8 [16:25:14]New connection [16:25:14]New thread 3067448676 created [16:25:14]Thread 3067592036 joined [16:25:14]Waiting for new connection... [16:25:14] Sock 8.Parse request [16:25:14]Sock 8.Check first char [16:25:14]Sock 8.First char is OK [16:25:14]request: POST /json_proto HTTP/1.0 [16:25:14]Method: POST [16:25:14]URL: /json_proto [16:25:14]Method is POST - this is cgi request [16:25:14]url: /json_proto [16:25:14]query_string will be loaded in cgi processing [16:25:14]execute_cgi json_proto POST (null) [16:25:14]execute_cgi path=json_proto method=POST [16:25:14]POST find Content-Length [16:25:14]Host: 172.17.45.67:8080 [16:25:14]Content-Length: 677 [16:25:14]Content-Type: application/json [16:25:14] [16:25:14]POST finish read [16:25:14]Found Content-Length = 677 [16:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:14]execute_script... [16:25: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)594106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:14]POST & json_proto [16:25:14]process_json_proto [16:25:14]json parsed OK: [16:25:14]protocol is kg_v1.0 [16:25:14]action value=close_receipt [16:25:14]process_action close_receipt [16:25:14]cmd_close_receipt [16:25:14]MH_GetDate [16:25:14]Write to MH i2c: F0 00 00 74 18 7B [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: F0 09 00 74 18 00 EB 14 C6 66 5F 7F 2B 66 1E [16:25:14]GetLastDocTimeStamp 1724257369 [16:25:14]current date 1724257515 [16:25:14]FM_GetShiftState [16:25:14]SAM_PROTO_GetShiftState [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 01 00 [16:25:14]Write to MH i2c: E2 08 00 75 18 80 13 01 00 00 00 00 00 0A [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 75 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8A [16:25:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetShiftState done [16:25:14]FM_GetShiftState done [16:25:14]opened in 1724200467 [16:25:14]opened+sec_in_day 1724286867 [16:25:14]quantity*price = 40002 [16:25:14]sum+1 = 40003 [16:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 266 21.08.2024 16:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140249 ФПД: 43734793086302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140249&fm=43734793086302&tin=02508201610067®Number=0000000000092569&sum=40000 [16:25:15]StoreToDocumentArchive [16:25:15]shift 454 fd 140249 [16:25:15]save to /storage/0454/doc_00140249 [16:25:15]save last doc name /storage/0454/doc_00140249 to /storage/kkm_last_doc_name [16:25:15]save OK [16:25:15]Clear old archive folders... [16:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:15]tlvbuf is 01CE20A0 [16:25:15]SAM_PROTO_ClearQueue [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 09 00 00 [16:25:15]Write to MH i2c: E2 08 00 82 18 80 09 00 00 00 00 00 00 0C [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_ClearQueue done [16:25:15]KKMCreateOFDPacket [16:25:15]OFDProtocolAddRootSTLVToBuf [16:25:15]FM_MakeSignedData [16:25:15]FM_MakeSignedData [16:25:15]SAM_PROTO_SignData [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 01 02 [16:25:15]Write to MH i2c: E2 08 00 83 18 80 0D 01 02 00 00 00 00 14 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 83 18 00 90 00 0F [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=255 [16:25:15]MH_SAM_APDU [16:25: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 EB 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 23 02 00 35 04 06 00 27 [16:25:15]Write to MH i2c: E2 02 01 84 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 EB 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 23 02 00 35 04 06 00 27 00 00 A4 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=10 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 02 02 05 C6 CC CE 65 5E [16:25:15]Write to MH i2c: E2 0D 00 85 18 80 0D 02 02 05 00 C6 CC CE 65 5E 00 00 44 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [16:25:15]RAPDU: 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 0D 03 02 [16:25:15]Write to MH i2c: E2 08 00 86 18 80 0D 03 02 00 00 00 00 19 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 0B 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 0B 00 86 18 00 64 17 DA 05 05 FD E6 6C 90 00 C8 [16:25:15]RAPDU: 64 17 DA 05 05 FD E6 6C 90 00 [16:25:15]wFMCommunicate OK [16:25:15]SAM_PROTO_SignData done [16:25:15]FM_MakeSignedData done [16:25:15]CreateOFDProtocolMessage [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 11 00 00 [16:25:15]Write to MH i2c: E2 08 00 87 18 80 11 00 00 00 00 00 00 19 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 17 00 87 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [16:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:25:16]wFMCommunicate OK [16:25:16]CreateOFDProtocolMessage done [16:25:16]OFDSenderStorePacket 140249 [16:25:16]StoreOFDPacket docnum=140249 [16:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA C5 07 01 00 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 EB 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 23 02 00 35 04 06 00 27 C6 CC CE 65 5E 64 17 DA 05 05 FD E6 6C [16:25:16]CheckFolder [16:25:16]dirname=/storage/ofd_packets [16:25:16]CheckFolder done [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00140249 [16:25:16]NVStorageSaveData ofd_packets/00140249 [16:25:16]File name is /storage/ofd_packets/00140249 [16:25:16]Write 301 bytes [16:25:16]NVStorageSaveData done [16:25:16]OFDSenderStorePacket done [16:25:16]KKMCreateOFDPacket done [16:25:16]NVStorageSaveData kkm_last_timestamp [16:25:16]File name is /storage/kkm_last_timestamp [16:25:16]Write 4 bytes [16:25:16]NVStorageSaveData done [16:25:16]ExternCall_PrintAddStr [16:25:16]wPrintStart [16:25:16]Write to MH i2c: 01 00 00 88 18 A0 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 88 18 00 00 00 00 00 FF 0F B5 [16:25:16]RasterBufferAndPrint [16:25:16]line Счет N : (1)594106 [16:25:16]line ИНН: 02508201610067 [16:25:16]line Контрольно-Кассовый Чек [16:25:16]line ПРОДАЖА [16:25:16]line ТРК (МРК, ГНК) : 42 [16:25:16]line Товар: 2710124130 [16:25:16]line Аи-92-К-5 [16:25:16]line 5.900 * 67.80 [16:25:16]line = 400.02 [16:25:16]line НДС 12% НСП 1% [16:25:16]line > о реализуемом товаре [16:25:16]line ОКРУГЛЕНИЕ: -0.02 [16:25:16]line ИТОГО: 400.00 [16:25:16]line Внесено: 400.00 [16:25:16]line СДАЧА: 0.00 [16:25:16]line НСП 1% : 3.54 [16:25:16]line НДС 12% : 42.48 [16:25:16]line Наличными: 400.00 [16:25:16]line Безнал.: 0.00 [16:25:16]line Место: АЗС № 136 "Партнер Нефть" [16:25:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:25:16]line СНО: Общий режим [16:25:16]line Чек 266 21.08.2024 16:25 [16:25:16]line Смена: 454 ФФД: 1.0 [16:25:16]line ЗНМ: 0300000067 [16:25:16]line РНМ: 0000000000092569 [16:25:16]line Версия ККМ: 001 [16:25:16]line ФМ: 0000000000871776 [16:25:16]line ФД: 140249 [16:25:16]line ФПД: 43734793086302 [16:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162515&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140249&fm=43734793086302&tin=02508201610067®Number=0000000000092569&sum=40000 [16:25:16]OFD Sender: Processing packet 140249 [packets to send 137, broken 136] [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00140249 [16:25:16]OFD Sender: To server: pG, [16:25:16]CommunicateWithHost lk.salyk.kg:30040 [16:25:16]ConnectInit lk.salyk.kg [16:25:16]written 0, free lines is 4095 [16:25:16]Connected sock=11 [16:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EA C5 07 01 00 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 EB 14 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 D9 23 02 00 35 04 06 00 27 C6 CC CE 65 5E 64 17 DA 05 05 FD E6 6C [16:25:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B4 AD 47 00 3A 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 37 36 10 04 04 00 D9 23 02 00 F4 03 04 00 7B BB C5 66 B6 04 01 00 00 12 4E 43 E0 18 D6 6F 43 [16:25:16]CommunicateWithHost err = 0 [16:25:16]CheckOFDResponse [16:25:16]1017 (14) - 77093643461234 [16:25:16]1041 (16) - 0000000000871776 [16:25:16]1040 (4) - 140249 [16:25:16]1012 (4) - 21.08.2024 10:03 [16:25:16]1206 (1) - 0 [16:25:16]OFD Sender: Remove packet 140249 [16:25:16]ProducePacketName [16:25:16]name=ofd_packets/00140249 [16:25:16]NVStorageDeleteData [16:25:16]Write to MH i2c: 01 00 00 B3 18 CB [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 D4 0C B2 [16:25:16]RasterBufferAndPrint [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]line [16:25:16]written 0, free lines is 3288 [16:25:16]MH_Cut [16:25:16]Write to MH i2c: D1 01 00 BA 18 01 A4 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: D1 01 00 BA 18 00 A3 [16:25:16]Write to MH i2c: 01 00 00 BB 18 D3 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:17]OFD Sender: No OFD packet to send [16:25:17]*** Cut start [16:25:17]*** Partial cut [16:25:17]*** CUTSNS_PIN = 1 [16:25:17]*** CUTSNS_PIN = 0 [16:25:17]*** Brake cut motor [16:25:18]Read from MH i2c: 01 [16:25:18]MH_I2C_Read... [16:25:18]*** Stop cut motor [16:25:18]*** Cut end [16:25:18]Read from MH i2c: 01 07 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [16:25:18]process_action close_receipt done [16:25:18]requested_data is exist [16:25:18]produce_requested_data [16:25:18]requested_item fm.sn is exist - process it [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 11 00 00 [16:25:18]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [16:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:25:18]wFMCommunicate OK [16:25:18]requested_item fd.num is exist - process it [16:25:18]SAM_PROTO_GetFieldsCounters [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 00 00 [16:25:18]Write to MH i2c: E2 08 00 BD 18 80 13 00 00 00 00 00 00 51 [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 62 00 BD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [16:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 D9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:18]wFMCommunicate OK [16:25:18]SAM_PROTO_GetFieldsCounters done [16:25:18]requested_item shift.num is exist - process it [16:25:18]requested_item shift.opened is exist - process it [16:25:18]req_shift_opened [16:25:18]FM_GetShiftState [16:25:18]SAM_PROTO_GetShiftState [16:25:18]wFMCommunicate request_size=4 [16:25:18]MH_SAM_APDU [16:25:18]CAPDU: 80 13 01 00 [16:25:18]Write to MH i2c: E2 08 00 BE 18 80 13 01 00 00 00 00 00 53 [16:25:18]Write i2c OK [16:25:18]MH_I2C_Read... [16:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:18]Read from MH i2c: E2 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 0E 00 [16:25:18]MH_I2C_Read... [16:25:18]Read from MH i2c: E2 0E 00 BE 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D3 [16:25:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:25:18]wFMCommunicate OK [16:25:18]SAM_PROTO_GetShiftState done [16:25:18]FM_GetShiftState done [16:25:18]req_shift_opened done [16:25:18]requested_item shift.open_date is exist - process it [16:25:18]req_shift_open_date [16:25:18]req_shift_open_date done [16:25:18]produce_requested_data done [16:25:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140249,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:25:18]process_action_free close_receipt [16:25:18]json_value_free [16:25:18]json_value_free done [16:25:18]process_json_proto returns [16:25:18]Send response to host [16:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140249,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:25:18]free response buf [16:25:18]execute_script done [16:25:18]execute_script returns [16:25:18]free content buf [16:25:18]Sock 8.Close socket [16:25:18]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:24]accept exits with 9 [16:27:24]New connection [16:27:24]New thread 3067592036 created [16:27:24]Thread 3067448676 joined [16:27:24]Waiting for new connection... [16:27:24] Sock 9.Parse request [16:27:24]Sock 9.Check first char [16:27:24]Sock 9.First char is OK [16:27:24]request: POST /json_proto HTTP/1.0 [16:27:24]Method: POST [16:27:24]URL: /json_proto [16:27:24]Method is POST - this is cgi request [16:27:24]url: /json_proto [16:27:24]query_string will be loaded in cgi processing [16:27:24]execute_cgi json_proto POST (null) [16:27:24]execute_cgi path=json_proto method=POST [16:27:24]POST find Content-Length [16:27:24]Host: 172.17.45.67:8080 [16:27:24]Content-Length: 678 [16:27:24]Content-Type: application/json [16:27:24] [16:27:24]POST finish read [16:27:24]Found Content-Length = 678 [16:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]execute_script... [16:27: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)594107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:24]POST & json_proto [16:27:24]process_json_proto [16:27:24]json parsed OK: [16:27:24]protocol is kg_v1.0 [16:27:24]action value=close_receipt [16:27:24]process_action close_receipt [16:27:24]cmd_close_receipt [16:27:24]MH_GetDate [16:27:24]Write to MH i2c: F0 00 00 BF 18 C6 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: F0 09 00 BF 18 00 6D 15 C6 66 5F 7F 2B 66 EC [16:27:24]GetLastDocTimeStamp 1724257515 [16:27:24]current date 1724257645 [16:27:24]FM_GetShiftState [16:27:24]SAM_PROTO_GetShiftState [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 13 01 00 [16:27:24]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:24]Read from MH i2c: E2 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D5 [16:27:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:27:24]wFMCommunicate OK [16:27:24]SAM_PROTO_GetShiftState done [16:27:24]FM_GetShiftState done [16:27:24]opened in 1724200467 [16:27:24]opened+sec_in_day 1724286867 [16:27:24]quantity*price = 70037 [16:27:24]sum+1 = 70038 [16:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 267 21.08.2024 16:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140250 ФПД: 38806726837070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140250&fm=38806726837070&tin=02508201610067®Number=0000000000092569&sum=70000 [16:27:25]StoreToDocumentArchive [16:27:25]shift 454 fd 140250 [16:27:25]save to /storage/0454/doc_00140250 [16:27:25]save last doc name /storage/0454/doc_00140250 to /storage/kkm_last_doc_name [16:27:25]save OK [16:27:25]Clear old archive folders... [16:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:25]tlvbuf is B6F5D620 [16:27:25]SAM_PROTO_ClearQueue [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 09 00 00 [16:27:25]Write to MH i2c: E2 08 00 CD 18 80 09 00 00 00 00 00 00 57 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_ClearQueue done [16:27:25]KKMCreateOFDPacket [16:27:25]OFDProtocolAddRootSTLVToBuf [16:27:25]FM_MakeSignedData [16:27:25]FM_MakeSignedData [16:27:25]SAM_PROTO_SignData [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 01 02 [16:27:25]Write to MH i2c: E2 08 00 CE 18 80 0D 01 02 00 00 00 00 5F [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=255 [16:27:25]MH_SAM_APDU [16:27: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6D 15 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 23 02 00 35 04 06 00 23 [16:27:25]Write to MH i2c: E2 02 01 CF 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6D 15 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 23 02 00 35 04 06 00 23 00 00 72 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=10 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 02 02 05 4B 65 2B 03 4E [16:27:25]Write to MH i2c: E2 0D 00 D0 18 80 0D 02 02 05 00 4B 65 2B 03 4E 00 00 98 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [16:27:25]RAPDU: 90 00 [16:27:25]wFMCommunicate OK [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 0D 03 02 [16:27:25]Write to MH i2c: E2 08 00 D1 18 80 0D 03 02 00 00 00 00 64 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 0B 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 0B 00 D1 18 00 E7 65 27 E9 30 05 AF 2F 90 00 D4 [16:27:25]RAPDU: E7 65 27 E9 30 05 AF 2F 90 00 [16:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_SignData done [16:27:25]FM_MakeSignedData done [16:27:25]CreateOFDProtocolMessage [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 11 00 00 [16:27:25]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [16:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:27:25]wFMCommunicate OK [16:27:25]CreateOFDProtocolMessage done [16:27:25]OFDSenderStorePacket 140250 [16:27:25]StoreOFDPacket docnum=140250 [16:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 E3 07 01 76 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6D 15 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 23 02 00 35 04 06 00 23 4B 65 2B 03 4E E7 65 27 E9 30 05 AF 2F [16:27:25]CheckFolder [16:27:25]dirname=/storage/ofd_packets [16:27:25]CheckFolder done [16:27:25]ProducePacketName [16:27:25]name=ofd_packets/00140250 [16:27:25]NVStorageSaveData ofd_packets/00140250 [16:27:25]File name is /storage/ofd_packets/00140250 [16:27:25]Write 301 bytes [16:27:25]NVStorageSaveData done [16:27:25]OFDSenderStorePacket done [16:27:25]KKMCreateOFDPacket done [16:27:25]NVStorageSaveData kkm_last_timestamp [16:27:25]File name is /storage/kkm_last_timestamp [16:27:25]Write 4 bytes [16:27:25]NVStorageSaveData done [16:27:25]ExternCall_PrintAddStr [16:27:25]wPrintStart [16:27:25]Write to MH i2c: 01 00 00 D3 18 EB [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [16:27:25]RasterBufferAndPrint [16:27:25]line Счет N : (1)594107 [16:27:25]line ИНН: 02508201610067 [16:27:25]line Контрольно-Кассовый Чек [16:27:25]line ПРОДАЖА [16:27:25]line ТРК (МРК, ГНК) : 52 [16:27:25]line Товар: 2710124130 [16:27:25]line Аи-92-К-5 [16:27:25]line 10.330 * 67.80 [16:27:25]line = 700.37 [16:27:25]line НДС 12% НСП 1% [16:27:25]line > о реализуемом товаре [16:27:25]line ОКРУГЛЕНИЕ: -0.37 [16:27:25]line ИТОГО: 700.00 [16:27:25]line Внесено: 700.00 [16:27:25]line СДАЧА: 0.00 [16:27:25]line НСП 1% : 6.20 [16:27:25]line НДС 12% : 74.38 [16:27:25]line Наличными: 700.00 [16:27:25]line Безнал.: 0.00 [16:27:25]line Место: АЗС № 136 "Партнер Нефть" [16:27:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:27:25]line СНО: Общий режим [16:27:25]line Чек 267 21.08.2024 16:27 [16:27:25]line Смена: 454 ФФД: 1.0 [16:27:25]line ЗНМ: 0300000067 [16:27:25]line РНМ: 0000000000092569 [16:27:25]line Версия ККМ: 001 [16:27:25]line ФМ: 0000000000871776 [16:27:25]line ФД: 140250 [16:27:25]line ФПД: 38806726837070 [16:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140250&fm=38806726837070&tin=02508201610067®Number=0000000000092569&sum=70000 [16:27:26]OFD Sender: Processing packet 140250 [packets to send 137, broken 136] [16:27:26]ProducePacketName [16:27:26]name=ofd_packets/00140250 [16:27:26]OFD Sender: To server: pG, [16:27:26]CommunicateWithHost lk.salyk.kg:30040 [16:27:26]ConnectInit lk.salyk.kg [16:27:26]written 0, free lines is 4095 [16:27:26]Connected sock=10 [16:27: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 37 36 0F 01 00 00 30 E3 07 01 76 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6D 15 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DA 23 02 00 35 04 06 00 23 4B 65 2B 03 4E E7 65 27 E9 30 05 AF 2F [16:27: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 37 36 4F 00 00 00 2B A4 47 00 F5 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 37 36 10 04 04 00 DA 23 02 00 F4 03 04 00 FD BB C5 66 B6 04 01 00 00 0E AF 81 D9 D2 B9 E4 26 [16:27:26]CommunicateWithHost err = 0 [16:27:26]CheckOFDResponse [16:27:26]1017 (14) - 77093643461234 [16:27:26]1041 (16) - 0000000000871776 [16:27:26]1040 (4) - 140250 [16:27:26]1012 (4) - 21.08.2024 10:05 [16:27:26]1206 (1) - 0 [16:27:26]OFD Sender: Remove packet 140250 [16:27:26]ProducePacketName [16:27:26]name=ofd_packets/00140250 [16:27:26]NVStorageDeleteData [16:27:26]Write to MH i2c: 01 00 00 FE 18 16 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 D4 0C FD [16:27:26]RasterBufferAndPrint [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]line [16:27:26]written 0, free lines is 3288 [16:27:26]MH_Cut [16:27:26]Write to MH i2c: D1 01 00 05 19 01 F0 [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 01 00 [16:27:26]MH_I2C_Read... [16:27:26]Read from MH i2c: D1 01 00 05 19 00 EF [16:27:26]Write to MH i2c: 01 00 00 06 19 1F [16:27:26]Write i2c OK [16:27:26]MH_I2C_Read... [16:27:27]OFD Sender: No OFD packet to send [16:27:27]*** Cut start [16:27:27]*** Partial cut [16:27:27]*** CUTSNS_PIN = 1 [16:27:27]*** CUTSNS_PIN = 0 [16:27:27]*** Brake cut motor [16:27:27]Read from MH i2c: 01 [16:27:27]MH_I2C_Read... [16:27:27]*** Stop cut motor [16:27:27]*** Cut end [16:27:27]Read from MH i2c: 01 07 00 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [16:27:27]process_action close_receipt done [16:27:27]requested_data is exist [16:27:27]produce_requested_data [16:27:27]requested_item fm.sn is exist - process it [16:27:27]wFMCommunicate request_size=4 [16:27:27]MH_SAM_APDU [16:27:27]CAPDU: 80 11 00 00 [16:27:27]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [16:27:27]Write i2c OK [16:27:27]MH_I2C_Read... [16:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:27]Read from MH i2c: E2 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: E2 17 00 [16:27:27]MH_I2C_Read... [16:27:27]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [16:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:27:27]wFMCommunicate OK [16:27:27]requested_item fd.num is exist - process it [16:27:27]SAM_PROTO_GetFieldsCounters [16:27:27]wFMCommunicate request_size=4 [16:27:27]MH_SAM_APDU [16:27:27]CAPDU: 80 13 00 00 [16:27:27]Write to MH i2c: E2 08 00 08 19 80 13 00 00 00 00 00 00 9D [16:27:27]Write i2c OK [16:27:27]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 62 00 08 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [16:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:28]wFMCommunicate OK [16:27:28]SAM_PROTO_GetFieldsCounters done [16:27:28]requested_item shift.num is exist - process it [16:27:28]requested_item shift.opened is exist - process it [16:27:28]req_shift_opened [16:27:28]FM_GetShiftState [16:27:28]SAM_PROTO_GetShiftState [16:27:28]wFMCommunicate request_size=4 [16:27:28]MH_SAM_APDU [16:27:28]CAPDU: 80 13 01 00 [16:27:28]Write to MH i2c: E2 08 00 09 19 80 13 01 00 00 00 00 00 9F [16:27:28]Write i2c OK [16:27:28]MH_I2C_Read... [16:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:28]Read from MH i2c: E2 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 [16:27:28]MH_I2C_Read... [16:27:28]Read from MH i2c: E2 0E 00 09 19 00 09 [00:00:08]/dev/ttyS4 opened [00:00:08] *** EcrCore started. Build 196 *** [00:00:08]MH_InterfaceInit /dev/i2c-1 [00:00:08]Malloc ok [00:00:08]MH_GetMetrics [00:00:08]Write to MH i2c: 00 00 00 01 00 00 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 00 29 00 [00:00:08]MH_I2C_Read... [00:00:08]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 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 74 [00:00:08]Are we in boot? [00:00:08]We are in boot - try to switch [00:00:08]Write to MH i2c: A0 00 00 02 00 A1 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:08]*** [00:00:08]Read from MH i2c: A0 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: A0 01 00 [00:00:08]MH_I2C_Read... [00:00:08]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:08]*** Waiting for read because exit forced [00:00:08]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:08]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005724D0 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 10131077+1714126687=1724257764 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:09]*** Is cutter blocked? [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 03 00 02 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 24 D0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 75 [00:00:09]Are we in boot? [00:00:09]We are not in boot now [00:00:09]Write to MH i2c: 01 00 00 04 00 04 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:09]Model is 3 [00:00:09]MH firmware is 30620 [00:00:09]MH boot firmware is 3 [00:00:09]MH_SetPrinterDots 448 [00:00:09]HeadWidthInBytes 56 [00:00:09]maxmasksize 7 [00:00:09]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:09]Write to MH i2c: D5 00 00 06 00 DA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:09]Load OK [00:00:09]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 E4 15 C6 66 5F 7F 2B 66 93 [16:29:24]Current date/time: 21.08.2024 16:29 [16:29:24]FM_Init [16:29:24]wFMConnect [16:29:24]MH_SAM_On [16:29:24]Write to MH i2c: E0 00 00 08 00 E7 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_init finished! [16:29:24]*** atr: [16:29:24]*** 0F 3B D5 18 FF 81 91 FE [16:29:24]*** 1F C3 80 73 C8 21 10 0A [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]*** 00 00 00 00 00 00 00 00 [16:29:24]Read from MH i2c: E0 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E0 10 00 [16:29:24]MH_I2C_Read... [16:29:24]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 [16:29:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:29:24]wFMCommunicate request_size=10 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:29:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 11 00 00 [16:29:24]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 17 00 [16:29:24]MH_I2C_Read... [16:29:24]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 37 36 90 00 DB [16:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:24]wFMCommunicate OK [16:29:24]Detected FM SN is 0000000000871776 [16:29:24]Stored FM SN is 0000000000871776 [16:29:24]wFMCommunicate request_size=9 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 16 00 00 04 3F B1 00 00 [16:29:24]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3F B1 00 00 00 00 82 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]FM PIN OK [16:29:24]wFMCommunicate request_size=8 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 14 04 00 03 02 00 01 [16:29:24]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]wFMCommunicate request_size=13 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:29:24]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 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:29:24]RAPDU: 90 00 [16:29:24]wFMCommunicate OK [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 11 00 00 [16:29:24]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 17 00 [16:29:24]MH_I2C_Read... [16:29:24]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 37 36 90 00 DF [16:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:24]wFMCommunicate OK [16:29:24]DocumentArchiveInit [16:29:24]Start Httpd... [16:29:24]Httpd thread 3067882852 created [16:29:24]Write to MH i2c: 01 00 00 0F 00 0F [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: 01 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: 01 07 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:29:24]MH Int Process started [16:29:24]Allocated Socket 8 [16:29:24]Bind OK [16:29:24]Listen OK [16:29:24]httpd running on port 8080 [16:29:24]Waiting for new connection... [16:29:24]OFD Sender: Processing packet 140251 [packets to send 137, broken 136] [16:29:24]ProducePacketName [16:29:24]name=ofd_packets/00140251 [16:29:24]OFD Sender: To server: pG, [16:29:24]CommunicateWithHost lk.salyk.kg:30040 [16:29:24]ConnectInit lk.salyk.kg [16:29:24]accept exits with 9 [16:29:24]New connection [16:29:24]New thread 3067596132 created [16:29:24]Waiting for new connection... [16:29:24] Sock 9.Parse request [16:29:24]Sock 9.Check first char [16:29:24]Sock 9.First char is OK [16:29:24]request: POST /json_proto HTTP/1.0 [16:29:24]Method: POST [16:29:24]URL: /json_proto [16:29:24]Method is POST - this is cgi request [16:29:24]url: /json_proto [16:29:24]query_string will be loaded in cgi processing [16:29:24]execute_cgi json_proto POST (null) [16:29:24]execute_cgi path=json_proto method=POST [16:29:24]POST find Content-Length [16:29:24]Host: 172.17.45.67:8080 [16:29:24]Content-Length: 215 [16:29:24]Content-Type: application/json [16:29:24] [16:29:24]POST finish read [16:29:24]Found Content-Length = 215 [16:29:24]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" ] } } [16:29:24]execute_script... [16:29:24]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" ] } } [16:29:24]POST & json_proto [16:29:24]process_json_proto [16:29:24]json parsed OK: [16:29:24]protocol is kg_v1.0 [16:29:24]action value=get_value [16:29:24]process_action get_value [16:29:24]cmd_get_value [16:29:24]process_action get_value done [16:29:24]requested_data is exist [16:29:24]produce_requested_data [16:29:24]requested_item kkm.sn is exist - process it [16:29:24]requested_item kkm.ver is exist - process it [16:29:24]requested_item fm.sn is exist - process it [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 11 00 00 [16:29:24]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:24]Connected sock=6 [16:29: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 37 36 0F 01 00 00 4C A3 07 01 77 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 77 15 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DB 23 02 00 35 04 06 00 8F 5C 77 C1 4A A9 1D C6 DA 95 84 B4 5C 2A [16:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:24]Read from MH i2c: E2 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: E2 17 00 [16:29:24]MH_I2C_Read... [16:29:24]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 37 36 90 00 E1 [16:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:29:24]wFMCommunicate OK [16:29:24]requested_item fd.num is exist - process it [16:29:24]SAM_PROTO_GetFieldsCounters [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 13 00 00 [16:29:24]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 62 00 [16:29:25]MH_I2C_Read... [16:29:25]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetFieldsCounters done [16:29:25]requested_item shift.num is exist - process it [16:29:25]requested_item shift.opened is exist - process it [16:29:25]req_shift_opened [16:29:25]FM_GetShiftState [16:29:25]SAM_PROTO_GetShiftState [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 01 00 [16:29:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0F [16:29:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetShiftState done [16:29:25]FM_GetShiftState done [16:29:25]req_shift_opened done [16:29:25]requested_item shift.open_date is exist - process it [16:29:25]req_shift_open_date [16:29:25]req_shift_open_date done [16:29:25]produce_requested_data done [16:29:25]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140251,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:29:25]process_action_free get_value [16:29:25]json_value_free [16:29:25]json_value_free done [16:29:25]process_json_proto returns [16:29:25]Send response to host [16:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140251,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:29:25]free response buf [16:29:25]execute_script done [16:29:25]execute_script returns [16:29:25]free content buf [16:29:25]Sock 9.Close socket [16:29:25]Sock 9.Thread stoped [16:29:25]accept exits with 10 [16:29:25]New connection [16:29:25]New thread 3067452772 created [16:29:25]Thread 3067596132 joined [16:29:25]Waiting for new connection... [16:29:25] Sock 10.Parse request [16:29:25]Sock 10.Check first char [16:29:25]Sock 10.First char is OK [16:29:25]request: POST /json_proto HTTP/1.0 [16:29:25]Method: POST [16:29:25]URL: /json_proto [16:29:25]Method is POST - this is cgi request [16:29:25]url: /json_proto [16:29:25]query_string will be loaded in cgi processing [16:29:25]execute_cgi json_proto POST (null) [16:29:25]execute_cgi path=json_proto method=POST [16:29:25]POST find Content-Length [16:29:25]Host: 172.17.45.67:8080 [16:29:25]Content-Length: 331 [16:29:25]Content-Type: application/json [16:29:25] [16:29:25]POST finish read [16:29:25]Found Content-Length = 331 [16:29:25]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" ] } } [16:29:25]execute_script... [16:29:25]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" ] } } [16:29:25]POST & json_proto [16:29:25]process_json_proto [16:29:25]json parsed OK: [16:29:25]protocol is kg_v1.0 [16:29:25]action value=get_value [16:29:25]process_action get_value [16:29:25]cmd_get_value [16:29:25]process_action get_value done [16:29:25]requested_data is exist [16:29:25]produce_requested_data [16:29:25]requested_item fm.sale.total is exist - process it [16:29:25]SAM_PROTO_GetFMData [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 03 00 [16:29:25]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:29: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 37 36 4F 00 00 00 16 CA 47 00 3D 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 37 36 10 04 04 00 DB 23 02 00 F4 03 04 00 73 BC C5 66 B6 04 01 00 00 1F 12 E6 4C 60 C5 56 10 [16:29:25]CommunicateWithHost err = 0 [16:29:25]CheckOFDResponse [16:29:25]1017 (14) - 77093643461234 [16:29:25]1041 (16) - 0000000000871776 [16:29:25]1040 (4) - 140251 [16:29:25]1012 (4) - 21.08.2024 10:07 [16:29:25]1206 (1) - 0 [16:29:25]OFD Sender: Remove packet 140251 [16:29:25]ProducePacketName [16:29:25]name=ofd_packets/00140251 [16:29:25]NVStorageDeleteData [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 FD 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 4E 20 02 00 69 04 A3 00 6F 04 04 00 CD 1F 02 00 B1 04 05 00 F7 EB 24 3D 02 70 04 05 00 D0 42 DF F2 01 72 04 04 00 27 A9 45 4A 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 F6 AF E4 3C 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 72 EF 12 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 29 [16:29:25]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 4E 20 02 00 69 04 A3 00 6F 04 04 00 CD 1F 02 00 B1 04 05 00 F7 EB 24 3D 02 70 04 05 00 D0 42 DF F2 01 72 04 04 00 27 A9 45 4A 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 F6 AF E4 3C 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 72 EF 12 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 17 00 00 [16:29:25]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]OFD Sender: No OFD packet to send [16:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 99 [16:29:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [16:29:26]wFMCommunicate OK [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 17 00 00 [16:29:26]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [16:29:26]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:29:26]wFMCommunicate OK [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 17 00 00 [16:29:26]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [16:29:26]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:29:26]wFMCommunicate OK [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 17 00 00 [16:29:26]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:29:26]Write i2c OK [16:29:26]MH_I2C_Read... [16:29:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [16:29:26]Read from MH i2c: E2 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 E1 00 [16:29:26]MH_I2C_Read... [16:29:26]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [16:29:26]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [16:29:26]wFMCommunicate OK [16:29:26]SAM_PROTO_GetFMData done [16:29:26]requested_item fm.sale_refund.total is exist - process it [16:29:26]requested_item fm.buy.total is exist - process it [16:29:26]requested_item shift.sale.total is exist - process it [16:29:26]SAM_PROTO_GetShiftData [16:29:26]wFMCommunicate request_size=4 [16:29:26]MH_SAM_APDU [16:29:26]CAPDU: 80 13 02 00 [16:29:26]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:29:26]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 FD 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 0C 01 00 00 69 04 9C 00 6F 04 04 00 0C 01 00 00 B1 04 03 00 D8 AE F0 70 04 03 00 98 DD E3 72 04 03 00 40 D1 0C 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 F2 91 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 21 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B2 [16:29:27]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 0C 01 00 00 69 04 9C 00 6F 04 04 00 0C 01 00 00 B1 04 03 00 D8 AE F0 70 04 03 00 98 DD E3 72 04 03 00 40 D1 0C 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 F2 91 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 88 21 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [16:29:27]wFMCommunicate OK [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 17 00 00 [16:29:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:27]Read from MH i2c: E2 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 FD 00 [16:29:27]MH_I2C_Read... [16:29:27]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [16:29:27]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 [16:29:27]wFMCommunicate OK [16:29:27]wFMCommunicate request_size=4 [16:29:27]MH_SAM_APDU [16:29:27]CAPDU: 80 17 00 00 [16:29:27]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:29:27]Write i2c OK [16:29:27]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 FD 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [16:29:28]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 [16:29:28]wFMCommunicate OK [16:29:28]wFMCommunicate request_size=4 [16:29:28]MH_SAM_APDU [16:29:28]CAPDU: 80 17 00 00 [16:29:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 FD 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [16:29:28]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 [16:29:28]wFMCommunicate OK [16:29:28]wFMCommunicate request_size=4 [16:29:28]MH_SAM_APDU [16:29:28]CAPDU: 80 17 00 00 [16:29:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:29:28]Write i2c OK [16:29:28]MH_I2C_Read... [16:29:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:29:28]Read from MH i2c: E2 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 CC 00 [16:29:28]MH_I2C_Read... [16:29:28]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [16:29:28]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 [16:29:28]wFMCommunicate OK [16:29:28]SAM_PROTO_GetShiftData done [16:29:28]requested_item shift.sale.total_cash is exist - process it [16:29:28]requested_item shift.sale_refund.total is exist - process it [16:29:28]requested_item shift.sale_refund.total_cash is exist - process it [16:29:28]requested_item shift.buy.total is exist - process it [16:29:28]requested_item shift.buy.total_cash is exist - process it [16:29:28]produce_requested_data done [16:29:28]produce_requested_data return {"fm.sale.total":96157644.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":157734.00,"shift.sale.total_cash":149334.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} [16:29:28]process_action_free get_value [16:29:28]json_value_free [16:29:28]json_value_free done [16:29:28]process_json_proto returns [16:29:28]Send response to host [16:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96157644.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":157734.00,"shift.sale.total_cash":149334.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}}} [16:29:28]free response buf [16:29:28]execute_script done [16:29:28]execute_script returns [16:29:28]free content buf [16:29:28]Sock 10.Close socket [16:29:28]Sock 10.Thread stoped [16:29:29]accept exits with 9 [16:29:29]New connection [16:29:29]New thread 3067596132 created [16:29:29]Thread 3067452772 joined [16:29:29]Waiting for new connection... [16:29:29] Sock 9.Parse request [16:29:29]Sock 9.Check first char [16:29:29]Sock 9.First char is OK [16:29:29]request: POST /json_proto HTTP/1.0 [16:29:29]Method: POST [16:29:29]URL: /json_proto [16:29:29]Method is POST - this is cgi request [16:29:29]url: /json_proto [16:29:29]query_string will be loaded in cgi processing [16:29:29]execute_cgi json_proto POST (null) [16:29:29]execute_cgi path=json_proto method=POST [16:29:29]POST find Content-Length [16:29:29]Host: 172.17.45.67:8080 [16:29:29]Content-Length: 144 [16:29:29]Content-Type: application/json [16:29:29] [16:29:29]POST finish read [16:29:29]Found Content-Length = 144 [16:29:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:29:29]execute_script... [16:29:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [16:29:29]POST & json_proto [16:29:29]process_json_proto [16:29:29]json parsed OK: [16:29:29]protocol is kg_v1.0 [16:29:29]action value=print_doc [16:29:29]process_action print_doc [16:29:29]ExternCall_PrintAddStr [16:29:29]wPrintStart [16:29:29]Write to MH i2c: 01 00 00 1D 00 1D [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [16:29:29]RasterBufferAndPrint [16:29:29]line Счет N : (1)594108 [16:29:29]line ИНН: 02508201610067 [16:29:29]line Контрольно-Кассовый Чек [16:29:29]line ПРОДАЖА [16:29:29]line ТРК (МРК, ГНК) : 42 [16:29:29]line Товар: 2710124130 [16:29:29]line Аи-92-К-5 [16:29:29]line 7.380 * 67.80 [16:29:29]line = 500.36 [16:29:29]line НДС 12% НСП 1% [16:29:29]line > о реализуемом товаре [16:29:29]line ОКРУГЛЕНИЕ: -0.36 [16:29:29]line ИТОГО: 500.00 [16:29:29]line Внесено: 500.00 [16:29:29]line СДАЧА: 0.00 [16:29:29]line НСП 1% : 4.43 [16:29:29]line НДС 12% : 53.14 [16:29:29]line Наличными: 500.00 [16:29:29]line Безнал.: 0.00 [16:29:29]line Место: АЗС № 136 "Партнер Нефть" [16:29:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:29:29]line СНО: Общий режим [16:29:29]line Чек 268 21.08.2024 16:27 [16:29:29]line Смена: 454 ФФД: 1.0 [16:29:29]line ЗНМ: 0300000067 [16:29:29]line РНМ: 0000000000092569 [16:29:29]line Версия ККМ: 001 [16:29:29]line ФМ: 0000000000871776 [16:29:29]line ФД: 140251 [16:29:29]line ФПД: 157627308919465 [16:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T162735&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140251&fm=157627308919465&tin=02508201610067®Number=0000000000092569&sum=50000 [16:29:29]written 0, free lines is 4095 [16:29:29]Write to MH i2c: 01 00 00 48 00 48 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D7 0C 32 [16:29:29]RasterBufferAndPrint [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]line [16:29:29]written 0, free lines is 3303 [16:29:29]MH_Cut [16:29:29]Write to MH i2c: D1 01 00 4F 00 01 21 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 01 00 [16:29:29]MH_I2C_Read... [16:29:29]Read from MH i2c: D1 01 00 4F 00 00 20 [16:29:29]Write to MH i2c: 01 00 00 50 00 50 [16:29:29]Write i2c OK [16:29:29]MH_I2C_Read... [16:29:30]*** Cut start [16:29:30]*** Partial cut [16:29:30]*** CUTSNS_PIN = 1 [16:29:30]*** CUTSNS_PIN = 0 [16:29:30]*** Brake cut motor [16:29:30]Read from MH i2c: 01 [16:29:30]MH_I2C_Read... [16:29:30]*** Stop cut motor [16:29:30]*** Cut end [16:29:30]Read from MH i2c: 01 07 00 [16:29:30]MH_I2C_Read... [16:29:30]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [16:29:30]process_action print_doc done [16:29:30]requested_data is exist [16:29:30]produce_requested_data [16:29:30]produce_requested_data return (null) [16:29:30]process_action_free print_doc [16:29:30]json_value_free [16:29:30]json_value_free done [16:29:30]process_json_proto returns [16:29:30]Send response to host [16:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:29:30]free response buf [16:29:30]execute_script done [16:29:30]execute_script returns [16:29:30]free content buf [16:29:30]Sock 9.Close socket [16:29:30]Sock 9.Thread stoped [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:10]accept exits with 6 [16:31:10]New connection [16:31:10]New thread 3067452772 created [16:31:10]Thread 3067596132 joined [16:31:10]Waiting for new connection... [16:31:10] Sock 6.Parse request [16:31:10]Sock 6.Check first char [16:31:10]Sock 6.First char is OK [16:31:10]request: POST /json_proto HTTP/1.0 [16:31:10]Method: POST [16:31:10]URL: /json_proto [16:31:10]Method is POST - this is cgi request [16:31:10]url: /json_proto [16:31:10]query_string will be loaded in cgi processing [16:31:10]execute_cgi json_proto POST (null) [16:31:10]execute_cgi path=json_proto method=POST [16:31:10]POST find Content-Length [16:31:10]Host: 172.17.45.67:8080 [16:31:10]Content-Length: 682 [16:31:10]Content-Type: application/json [16:31:10] [16:31:10]POST finish read [16:31:10]Found Content-Length = 682 [16:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:10]execute_script... [16:31:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:10]POST & json_proto [16:31:10]process_json_proto [16:31:10]json parsed OK: [16:31:10]protocol is kg_v1.0 [16:31:10]action value=close_receipt [16:31:10]process_action close_receipt [16:31:10]cmd_close_receipt [16:31:10]MH_GetDate [16:31:10]Write to MH i2c: F0 00 00 51 00 40 [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: F0 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: F0 09 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: F0 09 00 51 00 00 4F 16 C6 66 5F 7F 2B 66 49 [16:31:10]GetLastDocTimeStamp 1724257655 [16:31:10]current date 1724257871 [16:31:10]FM_GetShiftState [16:31:10]SAM_PROTO_GetShiftState [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 13 01 00 [16:31:10]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 [16:31:11]MH_I2C_Read... [16:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:11]Read from MH i2c: E2 0E 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [16:31:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:11]wFMCommunicate OK [16:31:11]SAM_PROTO_GetShiftState done [16:31:11]FM_GetShiftState done [16:31:11]opened in 1724200467 [16:31:11]opened+sec_in_day 1724286867 [16:31:11]quantity*price = 100005 [16:31:11]sum+1 = 100006 [16:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 269 21.08.2024 16:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140252 ФПД: 27330805557830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163111&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140252&fm=27330805557830&tin=02508201610067®Number=0000000000092569&sum=100000 [16:31:12]StoreToDocumentArchive [16:31:12]shift 454 fd 140252 [16:31:12]save to /storage/0454/doc_00140252 [16:31:12]save last doc name /storage/0454/doc_00140252 to /storage/kkm_last_doc_name [16:31:12]save OK [16:31:12]Clear old archive folders... [16:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:12]tlvbuf is 019FA680 [16:31:12]SAM_PROTO_ClearQueue [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 09 00 00 [16:31:12]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_ClearQueue done [16:31:12]KKMCreateOFDPacket [16:31:12]OFDProtocolAddRootSTLVToBuf [16:31:12]FM_MakeSignedData [16:31:12]FM_MakeSignedData [16:31:12]SAM_PROTO_SignData [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 01 02 [16:31:12]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=255 [16:31:12]MH_SAM_APDU [16:31: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4F 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 23 02 00 35 04 06 00 18 [16:31:12]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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4F 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 23 02 00 35 04 06 00 18 00 00 70 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=10 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 02 02 05 DB 72 F4 EA 46 [16:31:12]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 DB 72 F4 EA 46 00 00 57 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 03 02 [16:31:12]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0B 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0B 00 63 00 00 9D 19 25 61 E0 F1 6D 7B 90 00 D4 [16:31:12]RAPDU: 9D 19 25 61 E0 F1 6D 7B 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_SignData done [16:31:12]FM_MakeSignedData done [16:31:12]CreateOFDProtocolMessage [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 11 00 00 [16:31:12]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 17 00 [16:31:12]MH_I2C_Read... [16:31:12]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 37 36 90 00 35 [16:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:12]wFMCommunicate OK [16:31:12]CreateOFDProtocolMessage done [16:31:12]OFDSenderStorePacket 140252 [16:31:12]StoreOFDPacket docnum=140252 [16:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 1A 07 01 DB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4F 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 23 02 00 35 04 06 00 18 DB 72 F4 EA 46 9D 19 25 61 E0 F1 6D 7B [16:31:12]CheckFolder [16:31:12]dirname=/storage/ofd_packets [16:31:12]CheckFolder done [16:31:12]ProducePacketName [16:31:12]name=ofd_packets/00140252 [16:31:12]NVStorageSaveData ofd_packets/00140252 [16:31:12]File name is /storage/ofd_packets/00140252 [16:31:12]Write 301 bytes [16:31:12]NVStorageSaveData done [16:31:12]OFDSenderStorePacket done [16:31:12]KKMCreateOFDPacket done [16:31:12]NVStorageSaveData kkm_last_timestamp [16:31:12]File name is /storage/kkm_last_timestamp [16:31:12]Write 4 bytes [16:31:12]NVStorageSaveData done [16:31:12]ExternCall_PrintAddStr [16:31:12]wPrintStart [16:31:12]Write to MH i2c: 01 00 00 65 00 65 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 07 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [16:31:12]RasterBufferAndPrint [16:31:12]line Счет N : (1)594110 [16:31:12]line ИНН: 02508201610067 [16:31:12]line Контрольно-Кассовый Чек [16:31:12]line ПРОДАЖА [16:31:12]line ТРК (МРК, ГНК) : 52 [16:31:12]line Товар: 2710124130 [16:31:12]line Аи-92-К-5 [16:31:12]line 14.750 * 67.80 [16:31:12]line = 1000.05 [16:31:12]line НДС 12% НСП 1% [16:31:12]line > о реализуемом товаре [16:31:12]line ОКРУГЛЕНИЕ: -0.05 [16:31:12]line ИТОГО: 1000.00 [16:31:12]line Внесено: 1000.00 [16:31:12]line СДАЧА: 0.00 [16:31:12]line НСП 1% : 8.85 [16:31:12]line НДС 12% : 106.20 [16:31:12]line Наличными: 1000.00 [16:31:12]line Безнал.: 0.00 [16:31:12]line Место: АЗС № 136 "Партнер Нефть" [16:31:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:31:12]line СНО: Общий режим [16:31:12]line Чек 269 21.08.2024 16:31 [16:31:12]line Смена: 454 ФФД: 1.0 [16:31:12]line ЗНМ: 0300000067 [16:31:12]line РНМ: 0000000000092569 [16:31:12]line Версия ККМ: 001 [16:31:12]line ФМ: 0000000000871776 [16:31:12]line ФД: 140252 [16:31:12]line ФПД: 27330805557830 [16:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163111&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140252&fm=27330805557830&tin=02508201610067®Number=0000000000092569&sum=100000 [16:31:13]written 0, free lines is 4095 [16:31:13]OFD Sender: Processing packet 140252 [packets to send 137, broken 136] [16:31:13]ProducePacketName [16:31:13]name=ofd_packets/00140252 [16:31:13]OFD Sender: To server: pG, [16:31:13]CommunicateWithHost lk.salyk.kg:30040 [16:31:13]ConnectInit lk.salyk.kg [16:31:13]Connected sock=10 [16:31: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 37 36 0F 01 00 00 72 1A 07 01 DB 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 4F 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DC 23 02 00 35 04 06 00 18 DB 72 F4 EA 46 9D 19 25 61 E0 F1 6D 7B [16:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AB A6 47 00 3D 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 37 36 10 04 04 00 DC 23 02 00 F4 03 04 00 E0 BC C5 66 B6 04 01 00 00 D8 8C 88 36 70 E9 EB FD [16:31:13]CommunicateWithHost err = 0 [16:31:13]CheckOFDResponse [16:31:13]1017 (14) - 77093643461234 [16:31:13]1041 (16) - 0000000000871776 [16:31:13]1040 (4) - 140252 [16:31:13]1012 (4) - 21.08.2024 10:09 [16:31:13]1206 (1) - 0 [16:31:13]OFD Sender: Remove packet 140252 [16:31:13]ProducePacketName [16:31:13]name=ofd_packets/00140252 [16:31:13]NVStorageDeleteData [16:31:13]Write to MH i2c: 01 00 00 90 00 90 [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 07 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 E6 0C 89 [16:31:13]RasterBufferAndPrint [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]written 0, free lines is 3308 [16:31:13]MH_Cut [16:31:13]Write to MH i2c: D1 01 00 97 00 01 69 [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 01 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 01 00 97 00 00 68 [16:31:13]Write to MH i2c: 01 00 00 98 00 98 [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]OFD Sender: No OFD packet to send [16:31:14]*** Cut start [16:31:14]*** Partial cut [16:31:14]*** CUTSNS_PIN = 1 [16:31:14]*** CUTSNS_PIN = 0 [16:31:14]*** Brake cut motor [16:31:14]Read from MH i2c: 01 [16:31:14]MH_I2C_Read... [16:31:14]*** Stop cut motor [16:31:14]*** Cut end [16:31:14]Read from MH i2c: 01 07 00 [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [16:31:14]process_action close_receipt done [16:31:14]requested_data is exist [16:31:14]produce_requested_data [16:31:14]requested_item fm.sn is exist - process it [16:31:14]wFMCommunicate request_size=4 [16:31:14]MH_SAM_APDU [16:31:14]CAPDU: 80 11 00 00 [16:31:14]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [16:31:14]Write i2c OK [16:31:14]MH_I2C_Read... [16:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:14]Read from MH i2c: E2 [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: E2 17 00 [16:31:14]MH_I2C_Read... [16:31:14]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 37 36 90 00 6A [16:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:14]wFMCommunicate OK [16:31:14]requested_item fd.num is exist - process it [16:31:14]SAM_PROTO_GetFieldsCounters [16:31:14]wFMCommunicate request_size=4 [16:31:14]MH_SAM_APDU [16:31:14]CAPDU: 80 13 00 00 [16:31:14]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [16:31:14]Write i2c OK [16:31:14]MH_I2C_Read... [16:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:14]Read from MH i2c: E2 [16:31:14]MH_I2C_Read... [16:31:14]Read from MH i2c: E2 62 00 [16:31:14]MH_I2C_Read... [16:31:14]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [16:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:14]wFMCommunicate OK [16:31:14]SAM_PROTO_GetFieldsCounters done [16:31:14]requested_item shift.num is exist - process it [16:31:14]requested_item shift.opened is exist - process it [16:31:14]req_shift_opened [16:31:14]FM_GetShiftState [16:31:14]SAM_PROTO_GetShiftState [16:31:14]wFMCommunicate request_size=4 [16:31:14]MH_SAM_APDU [16:31:14]CAPDU: 80 13 01 00 [16:31:14]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [16:31:14]Write i2c OK [16:31:14]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 0E 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [16:31:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:15]wFMCommunicate OK [16:31:15]SAM_PROTO_GetShiftState done [16:31:15]FM_GetShiftState done [16:31:15]req_shift_opened done [16:31:15]requested_item shift.open_date is exist - process it [16:31:15]req_shift_open_date [16:31:15]req_shift_open_date done [16:31:15]produce_requested_data done [16:31:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140252,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:31:15]process_action_free close_receipt [16:31:15]json_value_free [16:31:15]json_value_free done [16:31:15]process_json_proto returns [16:31:15]Send response to host [16:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140252,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:31:15]free response buf [16:31:15]execute_script done [16:31:15]execute_script returns [16:31:15]free content buf [16:31:15]Sock 6.Close socket [16:31:15]Sock 6.Thread stoped [16:31:18]OFD Sender: No OFD packet to send [16:31:22]accept exits with 9 [16:31:22]New connection [16:31:22]New thread 3067596132 created [16:31:22]Thread 3067452772 joined [16:31:22]Waiting for new connection... [16:31:22] Sock 9.Parse request [16:31:22]Sock 9.Check first char [16:31:22]Sock 9.First char is OK [16:31:22]request: POST /json_proto HTTP/1.0 [16:31:22]Method: POST [16:31:22]URL: /json_proto [16:31:22]Method is POST - this is cgi request [16:31:22]url: /json_proto [16:31:22]query_string will be loaded in cgi processing [16:31:22]execute_cgi json_proto POST (null) [16:31:22]execute_cgi path=json_proto method=POST [16:31:22]POST find Content-Length [16:31:22]Host: 172.17.45.67:8080 [16:31:22]Content-Length: 677 [16:31:22]Content-Type: application/json [16:31:22] [16:31:22]POST finish read [16:31:22]Found Content-Length = 677 [16:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:22]execute_script... [16:31: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)594111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:22]POST & json_proto [16:31:22]process_json_proto [16:31:22]json parsed OK: [16:31:22]protocol is kg_v1.0 [16:31:22]action value=close_receipt [16:31:22]process_action close_receipt [16:31:22]cmd_close_receipt [16:31:22]MH_GetDate [16:31:22]Write to MH i2c: F0 00 00 9C 00 8B [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: F0 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: F0 09 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: F0 09 00 9C 00 00 5A 16 C6 66 5F 7F 2B 66 9F [16:31:22]GetLastDocTimeStamp 1724257871 [16:31:22]current date 1724257882 [16:31:22]FM_GetShiftState [16:31:22]SAM_PROTO_GetShiftState [16:31:22]wFMCommunicate request_size=4 [16:31:22]MH_SAM_APDU [16:31:22]CAPDU: 80 13 01 00 [16:31:22]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [16:31:22]Write i2c OK [16:31:22]MH_I2C_Read... [16:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:22]Read from MH i2c: E2 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 0E 00 [16:31:22]MH_I2C_Read... [16:31:22]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9A [16:31:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:22]wFMCommunicate OK [16:31:22]SAM_PROTO_GetShiftState done [16:31:22]FM_GetShiftState done [16:31:22]opened in 1724200467 [16:31:22]opened+sec_in_day 1724286867 [16:31:22]quantity*price = 40002 [16:31:22]sum+1 = 40003 [16:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 270 21.08.2024 16:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140253 ФПД: 188895046474585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163123&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140253&fm=188895046474585&tin=02508201610067®Number=0000000000092569&sum=40000 [16:31:23]StoreToDocumentArchive [16:31:23]shift 454 fd 140253 [16:31:23]save to /storage/0454/doc_00140253 [16:31:23]save last doc name /storage/0454/doc_00140253 to /storage/kkm_last_doc_name [16:31:23]save OK [16:31:23]Clear old archive folders... [16:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:23]tlvbuf is 019F4A80 [16:31:23]SAM_PROTO_ClearQueue [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 09 00 00 [16:31:23]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [16:31:23]RAPDU: 90 00 [16:31:23]wFMCommunicate OK [16:31:23]SAM_PROTO_ClearQueue done [16:31:23]KKMCreateOFDPacket [16:31:23]OFDProtocolAddRootSTLVToBuf [16:31:23]FM_MakeSignedData [16:31:23]FM_MakeSignedData [16:31:23]SAM_PROTO_SignData [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 0D 01 02 [16:31:23]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [16:31:23]RAPDU: 90 00 [16:31:23]wFMCommunicate OK [16:31:23]wFMCommunicate request_size=255 [16:31:23]MH_SAM_APDU [16:31: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5B 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 23 02 00 35 04 06 00 AB [16:31:23]Write to MH i2c: E2 02 01 AC 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5B 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 23 02 00 35 04 06 00 AB 00 00 B2 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [16:31:23]RAPDU: 90 00 [16:31:23]wFMCommunicate OK [16:31:23]wFMCommunicate request_size=10 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 0D 02 02 05 CC 8E 25 1B 59 [16:31:23]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 CC 8E 25 1B 59 00 00 24 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [16:31:23]RAPDU: 90 00 [16:31:23]wFMCommunicate OK [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 0D 03 02 [16:31:23]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 0B 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 0B 00 AE 00 00 72 72 C8 AA CF F8 A9 19 90 00 09 [16:31:23]RAPDU: 72 72 C8 AA CF F8 A9 19 90 00 [16:31:23]wFMCommunicate OK [16:31:23]SAM_PROTO_SignData done [16:31:23]FM_MakeSignedData done [16:31:23]CreateOFDProtocolMessage [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 11 00 00 [16:31:23]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 17 00 [16:31:23]MH_I2C_Read... [16:31:23]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 37 36 90 00 80 [16:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:23]wFMCommunicate OK [16:31:23]CreateOFDProtocolMessage done [16:31:23]OFDSenderStorePacket 140253 [16:31:23]StoreOFDPacket docnum=140253 [16:31:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 74 25 07 01 9C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5B 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 23 02 00 35 04 06 00 AB CC 8E 25 1B 59 72 72 C8 AA CF F8 A9 19 [16:31:23]CheckFolder [16:31:23]dirname=/storage/ofd_packets [16:31:23]CheckFolder done [16:31:23]ProducePacketName [16:31:23]name=ofd_packets/00140253 [16:31:23]NVStorageSaveData ofd_packets/00140253 [16:31:23]File name is /storage/ofd_packets/00140253 [16:31:23]Write 301 bytes [16:31:23]NVStorageSaveData done [16:31:23]OFDSenderStorePacket done [16:31:23]KKMCreateOFDPacket done [16:31:23]NVStorageSaveData kkm_last_timestamp [16:31:23]File name is /storage/kkm_last_timestamp [16:31:23]Write 4 bytes [16:31:23]NVStorageSaveData done [16:31:23]ExternCall_PrintAddStr [16:31:23]wPrintStart [16:31:23]Write to MH i2c: 01 00 00 B0 00 B0 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: 01 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: 01 07 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [16:31:23]RasterBufferAndPrint [16:31:23]line Счет N : (1)594111 [16:31:23]line ИНН: 02508201610067 [16:31:23]line Контрольно-Кассовый Чек [16:31:23]line ПРОДАЖА [16:31:23]line ТРК (МРК, ГНК) : 32 [16:31:23]line Товар: 2710124130 [16:31:23]line Аи-92-К-5 [16:31:23]line 5.900 * 67.80 [16:31:23]line = 400.02 [16:31:23]line НДС 12% НСП 1% [16:31:23]line > о реализуемом товаре [16:31:23]line ОКРУГЛЕНИЕ: -0.02 [16:31:23]line ИТОГО: 400.00 [16:31:23]line Внесено: 400.00 [16:31:23]line СДАЧА: 0.00 [16:31:23]line НСП 1% : 3.54 [16:31:23]line НДС 12% : 42.48 [16:31:23]line Наличными: 400.00 [16:31:23]line Безнал.: 0.00 [16:31:23]line Место: АЗС № 136 "Партнер Нефть" [16:31:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:31:23]line СНО: Общий режим [16:31:23]line Чек 270 21.08.2024 16:31 [16:31:23]line Смена: 454 ФФД: 1.0 [16:31:23]line ЗНМ: 0300000067 [16:31:23]line РНМ: 0000000000092569 [16:31:23]line Версия ККМ: 001 [16:31:23]line ФМ: 0000000000871776 [16:31:23]line ФД: 140253 [16:31:23]line ФПД: 188895046474585 [16:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163123&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140253&fm=188895046474585&tin=02508201610067®Number=0000000000092569&sum=40000 [16:31:23]written 0, free lines is 4095 [16:31:23]OFD Sender: Processing packet 140253 [packets to send 137, broken 136] [16:31:23]ProducePacketName [16:31:23]name=ofd_packets/00140253 [16:31:23]OFD Sender: To server: pG, [16:31:23]CommunicateWithHost lk.salyk.kg:30040 [16:31:23]ConnectInit lk.salyk.kg [16:31:24]Connected sock=10 [16:31: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 37 36 0F 01 00 00 74 25 07 01 9C CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 5B 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DD 23 02 00 35 04 06 00 AB CC 8E 25 1B 59 72 72 C8 AA CF F8 A9 19 [16:31: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 37 36 4F 00 00 00 EF 7D 47 00 B1 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 37 36 10 04 04 00 DD 23 02 00 F4 03 04 00 EB BC C5 66 B6 04 01 00 00 E8 1A 40 F5 9A 7E F2 59 [16:31:24]CommunicateWithHost err = 0 [16:31:24]CheckOFDResponse [16:31:24]1017 (14) - 77093643461234 [16:31:24]1041 (16) - 0000000000871776 [16:31:24]1040 (4) - 140253 [16:31:24]1012 (4) - 21.08.2024 10:09 [16:31:24]1206 (1) - 0 [16:31:24]OFD Sender: Remove packet 140253 [16:31:24]ProducePacketName [16:31:24]name=ofd_packets/00140253 [16:31:24]NVStorageDeleteData [16:31:24]Write to MH i2c: 01 00 00 DB 00 DB [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 FC 0C EA [16:31:24]RasterBufferAndPrint [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]line [16:31:24]written 0, free lines is 3333 [16:31:24]MH_Cut [16:31:24]Write to MH i2c: D1 01 00 E2 00 01 B4 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 01 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: D1 01 00 E2 00 00 B3 [16:31:24]Write to MH i2c: 01 00 00 E3 00 E3 [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]OFD Sender: No OFD packet to send [16:31:25]*** Cut start [16:31:25]*** Partial cut [16:31:25]*** CUTSNS_PIN = 1 [16:31:25]*** CUTSNS_PIN = 0 [16:31:25]*** Brake cut motor [16:31:25]Read from MH i2c: 01 [16:31:25]MH_I2C_Read... [16:31:25]*** Stop cut motor [16:31:25]*** Cut end [16:31:25]Read from MH i2c: 01 07 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [16:31:25]process_action close_receipt done [16:31:25]requested_data is exist [16:31:25]produce_requested_data [16:31:25]requested_item fm.sn is exist - process it [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 11 00 00 [16:31:25]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 [16:31:25]MH_I2C_Read... [16:31:25]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 37 36 90 00 B5 [16:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:25]wFMCommunicate OK [16:31:25]requested_item fd.num is exist - process it [16:31:25]SAM_PROTO_GetFieldsCounters [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 13 00 00 [16:31:25]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 62 00 [16:31:25]MH_I2C_Read... [16:31:25]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [16:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DD 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_GetFieldsCounters done [16:31:25]requested_item shift.num is exist - process it [16:31:25]requested_item shift.opened is exist - process it [16:31:25]req_shift_opened [16:31:25]FM_GetShiftState [16:31:25]SAM_PROTO_GetShiftState [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 13 01 00 [16:31:25]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [16:31:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_GetShiftState done [16:31:25]FM_GetShiftState done [16:31:25]req_shift_opened done [16:31:25]requested_item shift.open_date is exist - process it [16:31:25]req_shift_open_date [16:31:25]req_shift_open_date done [16:31:25]produce_requested_data done [16:31:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140253,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:31:25]process_action_free close_receipt [16:31:25]json_value_free [16:31:25]json_value_free done [16:31:25]process_json_proto returns [16:31:25]Send response to host [16:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140253,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:31:25]free response buf [16:31:25]execute_script done [16:31:25]execute_script returns [16:31:25]free content buf [16:31:25]Sock 9.Close socket [16:31:25]Sock 9.Thread stoped [16:31:29]OFD Sender: No OFD packet to send [16:31:33]accept exits with 7 [16:31:33]New connection [16:31:33]New thread 3067452772 created [16:31:33]Thread 3067596132 joined [16:31:33]Waiting for new connection... [16:31:33] Sock 7.Parse request [16:31:33]Sock 7.Check first char [16:31:33]Sock 7.First char is OK [16:31:33]request: POST /json_proto HTTP/1.0 [16:31:33]Method: POST [16:31:33]URL: /json_proto [16:31:33]Method is POST - this is cgi request [16:31:33]url: /json_proto [16:31:33]query_string will be loaded in cgi processing [16:31:33]execute_cgi json_proto POST (null) [16:31:33]execute_cgi path=json_proto method=POST [16:31:33]POST find Content-Length [16:31:33]Host: 172.17.45.67:8080 [16:31:33]Content-Length: 754 [16:31:33]Content-Type: application/json [16:31:33] [16:31:33]POST finish read [16:31:33]Found Content-Length = 754 [16:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096152", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:33]execute_script... [16:31: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)594109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096152", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:33]POST & json_proto [16:31:33]process_json_proto [16:31:33]json parsed OK: [16:31:33]protocol is kg_v1.0 [16:31:33]action value=close_receipt [16:31:33]process_action close_receipt [16:31:33]cmd_close_receipt [16:31:33]MH_GetDate [16:31:33]Write to MH i2c: F0 00 00 E7 00 D6 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: F0 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: F0 09 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: F0 09 00 E7 00 00 66 16 C6 66 5F 7F 2B 66 F6 [16:31:33]GetLastDocTimeStamp 1724257883 [16:31:33]current date 1724257894 [16:31:33]FM_GetShiftState [16:31:33]SAM_PROTO_GetShiftState [16:31:33]wFMCommunicate request_size=4 [16:31:33]MH_SAM_APDU [16:31:33]CAPDU: 80 13 01 00 [16:31:33]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [16:31:33]Write i2c OK [16:31:33]MH_I2C_Read... [16:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:33]Read from MH i2c: E2 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 0E 00 [16:31:33]MH_I2C_Read... [16:31:33]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E5 [16:31:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:33]wFMCommunicate OK [16:31:33]SAM_PROTO_GetShiftState done [16:31:33]FM_GetShiftState done [16:31:33]opened in 1724200467 [16:31:33]opened+sec_in_day 1724286867 [16:31:33]quantity*price = 0 [16:31:33]sum+1 = 1 [16:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 271 21.08.2024 16:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096152 ФМ: 0000000000871776 ФД: 140254 ФПД: 218807519384922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140254&fm=218807519384922&tin=02508201610067®Number=0000000000092569&sum=0 [16:31:34]StoreToDocumentArchive [16:31:34]shift 454 fd 140254 [16:31:34]save to /storage/0454/doc_00140254 [16:31:34]save last doc name /storage/0454/doc_00140254 to /storage/kkm_last_doc_name [16:31:34]save OK [16:31:34]Clear old archive folders... [16:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:34]tlvbuf is 019B89D0 [16:31:34]SAM_PROTO_ClearQueue [16:31:34]wFMCommunicate request_size=4 [16:31:34]MH_SAM_APDU [16:31:34]CAPDU: 80 09 00 00 [16:31:34]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [16:31:34]RAPDU: 90 00 [16:31:34]wFMCommunicate OK [16:31:34]SAM_PROTO_ClearQueue done [16:31:34]KKMCreateOFDPacket [16:31:34]OFDProtocolAddRootSTLVToBuf [16:31:34]FM_MakeSignedData [16:31:34]FM_MakeSignedData [16:31:34]SAM_PROTO_SignData [16:31:34]wFMCommunicate request_size=4 [16:31:34]MH_SAM_APDU [16:31:34]CAPDU: 80 0D 01 02 [16:31:34]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [16:31:34]RAPDU: 90 00 [16:31:34]wFMCommunicate OK [16:31:34]wFMCommunicate request_size=255 [16:31:34]MH_SAM_APDU [16:31: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 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 0F 01 00 00 F4 03 04 00 66 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 23 02 00 35 04 06 00 C7 [16:31:34]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 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 0F 01 00 00 F4 03 04 00 66 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 23 02 00 35 04 06 00 C7 00 00 3A [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [16:31:34]RAPDU: 90 00 [16:31:34]wFMCommunicate OK [16:31:34]wFMCommunicate request_size=10 [16:31:34]MH_SAM_APDU [16:31:34]CAPDU: 80 0D 02 02 05 01 18 77 95 5A [16:31:34]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 01 18 77 95 5A 00 00 FB [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [16:31:34]RAPDU: 90 00 [16:31:34]wFMCommunicate OK [16:31:34]wFMCommunicate request_size=4 [16:31:34]MH_SAM_APDU [16:31:34]CAPDU: 80 0D 03 02 [16:31:34]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]OFD Sender: No OFD packet to send [16:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 0B 00 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 0B 00 F9 00 00 11 6D 3C E0 D1 DC B5 CB 90 00 3C [16:31:34]RAPDU: 11 6D 3C E0 D1 DC B5 CB 90 00 [16:31:34]wFMCommunicate OK [16:31:34]SAM_PROTO_SignData done [16:31:34]FM_MakeSignedData done [16:31:34]CreateOFDProtocolMessage [16:31:34]wFMCommunicate request_size=4 [16:31:34]MH_SAM_APDU [16:31:34]CAPDU: 80 11 00 00 [16:31:34]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:34]Read from MH i2c: E2 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: E2 17 00 [16:31:34]MH_I2C_Read... [16:31:34]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 37 36 90 00 CB [16:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:34]wFMCommunicate OK [16:31:34]CreateOFDProtocolMessage done [16:31:34]OFDSenderStorePacket 140254 [16:31:34]StoreOFDPacket docnum=140254 [16:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AB 56 07 01 F6 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 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 0F 01 00 00 F4 03 04 00 66 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 23 02 00 35 04 06 00 C7 01 18 77 95 5A 11 6D 3C E0 D1 DC B5 CB [16:31:34]CheckFolder [16:31:34]dirname=/storage/ofd_packets [16:31:34]CheckFolder done [16:31:34]ProducePacketName [16:31:34]name=ofd_packets/00140254 [16:31:34]NVStorageSaveData ofd_packets/00140254 [16:31:34]File name is /storage/ofd_packets/00140254 [16:31:34]Write 301 bytes [16:31:34]NVStorageSaveData done [16:31:34]OFDSenderStorePacket done [16:31:34]KKMCreateOFDPacket done [16:31:34]NVStorageSaveData kkm_last_timestamp [16:31:34]File name is /storage/kkm_last_timestamp [16:31:34]Write 4 bytes [16:31:34]NVStorageSaveData done [16:31:34]ExternCall_PrintAddStr [16:31:34]wPrintStart [16:31:34]Write to MH i2c: 01 00 00 FB 00 FB [16:31:34]Write i2c OK [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: 01 [16:31:34]MH_I2C_Read... [16:31:34]Read from MH i2c: 01 07 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [16:31:35]RasterBufferAndPrint [16:31:35]line Счет N : (1)594109 [16:31:35]line ИНН: 02508201610067 [16:31:35]line Контрольно-Кассовый Чек [16:31:35]line ПРОДАЖА [16:31:35]line ТРК (МРК, ГНК) : 62 [16:31:35]line Товар: 2710124130 [16:31:35]line Аи-92-К-5 [16:31:35]line 20.000 * 0.00 [16:31:35]line = 0.00 [16:31:35]line НДС 12% НСП 1% [16:31:35]line > о реализуемом товаре [16:31:35]line ИТОГО: 0.00 [16:31:35]line НСП 1% : 0.00 [16:31:35]line НДС 12% : 0.00 [16:31:35]line Наличными: 0.00 [16:31:35]line Безнал.: 0.00 [16:31:35]line Место: АЗС № 136 "Партнер Нефть" [16:31:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:31:35]line СНО: Общий режим [16:31:35]line Чек 271 21.08.2024 16:31 [16:31:35]line Смена: 454 ФФД: 1.0 [16:31:35]line ЗНМ: 0300000067 [16:31:35]line РНМ: 0000000000092569 [16:31:35]line Версия ККМ: 001 [16:31:35]line Талоны: ТК ГПНА Online [16:31:35]line 30096152 [16:31:35]line ФМ: 0000000000871776 [16:31:35]line ФД: 140254 [16:31:35]line ФПД: 218807519384922 [16:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140254&fm=218807519384922&tin=02508201610067®Number=0000000000092569&sum=0 [16:31:35]written 0, free lines is 4095 [16:31:35]OFD Sender: Processing packet 140254 [packets to send 137, broken 136] [16:31:35]ProducePacketName [16:31:35]name=ofd_packets/00140254 [16:31:35]OFD Sender: To server: pG, [16:31:35]CommunicateWithHost lk.salyk.kg:30040 [16:31:35]ConnectInit lk.salyk.kg [16:31:35]Connected sock=10 [16:31: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 37 36 0F 01 00 00 AB 56 07 01 F6 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 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 0F 01 00 00 F4 03 04 00 66 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DE 23 02 00 35 04 06 00 C7 01 18 77 95 5A 11 6D 3C E0 D1 DC B5 CB [16:31:35]Write to MH i2c: 01 00 00 25 01 26 [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: 01 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: 01 07 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 F5 0C 2E [16:31:35]RasterBufferAndPrint [16:31:35]line [16:31:35]line [16:31:35]line [16:31:35]line [16:31:35]line [16:31:35]written 0, free lines is 3333 [16:31:35]MH_Cut [16:31:35]Write to MH i2c: D1 01 00 2C 01 01 FF [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: D1 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: D1 01 00 [16:31:35]MH_I2C_Read... [16:31:35]Read from MH i2c: D1 01 00 2C 01 00 FE [16:31:35]Write to MH i2c: 01 00 00 2D 01 2E [16:31:35]Write i2c OK [16:31:35]MH_I2C_Read... [16:31: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 37 36 4F 00 00 00 1A 39 47 00 84 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 37 36 10 04 04 00 DE 23 02 00 F4 03 04 00 F6 BC C5 66 B6 04 01 00 00 D8 98 62 CC 34 2D 64 0D [16:31:35]CommunicateWithHost err = 0 [16:31:35]CheckOFDResponse [16:31:35]1017 (14) - 77093643461234 [16:31:35]1041 (16) - 0000000000871776 [16:31:35]1040 (4) - 140254 [16:31:35]1012 (4) - 21.08.2024 10:09 [16:31:35]1206 (1) - 0 [16:31:35]OFD Sender: Remove packet 140254 [16:31:35]ProducePacketName [16:31:35]name=ofd_packets/00140254 [16:31:35]NVStorageDeleteData [16:31:36]OFD Sender: No OFD packet to send [16:31:36]*** Cut start [16:31:36]*** Partial cut [16:31:36]*** CUTSNS_PIN = 1 [16:31:36]*** CUTSNS_PIN = 0 [16:31:36]*** Brake cut motor [16:31:36]Read from MH i2c: 01 [16:31:36]MH_I2C_Read... [16:31:36]*** Stop cut motor [16:31:36]Read from MH i2c: 01 07 00 [16:31:36]MH_I2C_Read... [16:31:36]*** Cut end [16:31:36]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [16:31:36]process_action close_receipt done [16:31:36]requested_data is exist [16:31:36]produce_requested_data [16:31:36]requested_item fm.sn is exist - process it [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 11 00 00 [16:31:36]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 17 00 [16:31:36]MH_I2C_Read... [16:31:36]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 37 36 90 00 00 [16:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:31:36]wFMCommunicate OK [16:31:36]requested_item fd.num is exist - process it [16:31:36]SAM_PROTO_GetFieldsCounters [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 13 00 00 [16:31:36]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 62 00 [16:31:36]MH_I2C_Read... [16:31:36]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:36]wFMCommunicate OK [16:31:36]SAM_PROTO_GetFieldsCounters done [16:31:36]requested_item shift.num is exist - process it [16:31:36]requested_item shift.opened is exist - process it [16:31:36]req_shift_opened [16:31:36]FM_GetShiftState [16:31:36]SAM_PROTO_GetShiftState [16:31:36]wFMCommunicate request_size=4 [16:31:36]MH_SAM_APDU [16:31:36]CAPDU: 80 13 01 00 [16:31:36]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [16:31:36]Write i2c OK [16:31:36]MH_I2C_Read... [16:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:36]Read from MH i2c: E2 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0E 00 [16:31:36]MH_I2C_Read... [16:31:36]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [16:31:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:31:36]wFMCommunicate OK [16:31:36]SAM_PROTO_GetShiftState done [16:31:36]FM_GetShiftState done [16:31:36]req_shift_opened done [16:31:36]requested_item shift.open_date is exist - process it [16:31:37]req_shift_open_date [16:31:37]req_shift_open_date done [16:31:37]produce_requested_data done [16:31:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140254,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:31:37]process_action_free close_receipt [16:31:37]json_value_free [16:31:37]json_value_free done [16:31:37]process_json_proto returns [16:31:37]Send response to host [16:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140254,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:31:37]free response buf [16:31:37]execute_script done [16:31:37]execute_script returns [16:31:37]free content buf [16:31:37]Sock 7.Close socket [16:31:37]Sock 7.Thread stoped [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:12]accept exits with 9 [16:33:12]New connection [16:33:12]New thread 3067596132 created [16:33:12]Thread 3067452772 joined [16:33:12]Waiting for new connection... [16:33:12] Sock 9.Parse request [16:33:12]Sock 9.Check first char [16:33:12]Sock 9.First char is OK [16:33:12]request: POST /json_proto HTTP/1.0 [16:33:12]Method: POST [16:33:12]URL: /json_proto [16:33:12]Method is POST - this is cgi request [16:33:12]url: /json_proto [16:33:12]query_string will be loaded in cgi processing [16:33:12]execute_cgi json_proto POST (null) [16:33:12]execute_cgi path=json_proto method=POST [16:33:12]POST find Content-Length [16:33:12]Host: 172.17.45.67:8080 [16:33:12]Content-Length: 677 [16:33:12]Content-Type: application/json [16:33:12] [16:33:12]POST finish read [16:33:12]Found Content-Length = 677 [16:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:12]execute_script... [16: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)594112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:12]POST & json_proto [16:33:12]process_json_proto [16:33:12]json parsed OK: [16:33:12]protocol is kg_v1.0 [16:33:12]action value=close_receipt [16:33:12]process_action close_receipt [16:33:12]cmd_close_receipt [16:33:12]MH_GetDate [16:33:12]Write to MH i2c: F0 00 00 31 01 21 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: F0 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: F0 09 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: F0 09 00 31 01 00 C9 16 C6 66 5F 7F 2B 66 A4 [16:33:12]GetLastDocTimeStamp 1724257894 [16:33:12]current date 1724257993 [16:33:12]FM_GetShiftState [16:33:12]SAM_PROTO_GetShiftState [16:33:12]wFMCommunicate request_size=4 [16:33:12]MH_SAM_APDU [16:33:12]CAPDU: 80 13 01 00 [16:33:12]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [16:33:12]Write i2c OK [16:33:12]MH_I2C_Read... [16:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:12]Read from MH i2c: E2 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 0E 00 [16:33:12]MH_I2C_Read... [16:33:12]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 30 [16:33:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:33:12]wFMCommunicate OK [16:33:12]SAM_PROTO_GetShiftState done [16:33:12]FM_GetShiftState done [16:33:12]opened in 1724200467 [16:33:12]opened+sec_in_day 1724286867 [16:33:12]quantity*price = 50036 [16:33:12]sum+1 = 50037 [16:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 272 21.08.2024 16:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140255 ФПД: 34942133095357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140255&fm=34942133095357&tin=02508201610067®Number=0000000000092569&sum=50000 [16:33:13]StoreToDocumentArchive [16:33:13]shift 454 fd 140255 [16:33:13]save to /storage/0454/doc_00140255 [16:33:13]save last doc name /storage/0454/doc_00140255 to /storage/kkm_last_doc_name [16:33:13]save OK [16:33:13]Clear old archive folders... [16:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:13]tlvbuf is 019B4090 [16:33:13]SAM_PROTO_ClearQueue [16:33:13]wFMCommunicate request_size=4 [16:33:13]MH_SAM_APDU [16:33:13]CAPDU: 80 09 00 00 [16:33:13]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:13]Read from MH i2c: E2 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 03 00 [16:33:13]MH_I2C_Read... [16:33:13]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [16:33:13]RAPDU: 90 00 [16:33:13]wFMCommunicate OK [16:33:13]SAM_PROTO_ClearQueue done [16:33:13]KKMCreateOFDPacket [16:33:13]OFDProtocolAddRootSTLVToBuf [16:33:13]FM_MakeSignedData [16:33:13]FM_MakeSignedData [16:33:13]SAM_PROTO_SignData [16:33:13]wFMCommunicate request_size=4 [16:33:13]MH_SAM_APDU [16:33:13]CAPDU: 80 0D 01 02 [16:33:13]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [16:33:13]Write i2c OK [16:33:13]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=255 [16:33:14]MH_SAM_APDU [16: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C9 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 23 02 00 35 04 06 00 1F [16:33:14]Write to MH i2c: E2 02 01 41 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C9 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 23 02 00 35 04 06 00 1F 00 00 49 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=10 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 0D 02 02 05 C7 99 6E 4B BD [16:33:14]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 C7 99 6E 4B BD 00 00 9D [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [16:33:14]RAPDU: 90 00 [16:33:14]wFMCommunicate OK [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 0D 03 02 [16:33:14]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0B 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 0B 00 43 01 00 DD BB 8E 59 4F 30 F3 59 90 00 0A [16:33:14]RAPDU: DD BB 8E 59 4F 30 F3 59 90 00 [16:33:14]wFMCommunicate OK [16:33:14]SAM_PROTO_SignData done [16:33:14]FM_MakeSignedData done [16:33:14]CreateOFDProtocolMessage [16:33:14]wFMCommunicate request_size=4 [16:33:14]MH_SAM_APDU [16:33:14]CAPDU: 80 11 00 00 [16:33:14]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:14]Read from MH i2c: E2 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: E2 17 00 [16:33:14]MH_I2C_Read... [16:33:14]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 37 36 90 00 16 [16:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:33:14]wFMCommunicate OK [16:33:14]CreateOFDProtocolMessage done [16:33:14]OFDSenderStorePacket 140255 [16:33:14]StoreOFDPacket docnum=140255 [16:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 04 07 01 08 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C9 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 23 02 00 35 04 06 00 1F C7 99 6E 4B BD DD BB 8E 59 4F 30 F3 59 [16:33:14]CheckFolder [16:33:14]dirname=/storage/ofd_packets [16:33:14]CheckFolder done [16:33:14]ProducePacketName [16:33:14]name=ofd_packets/00140255 [16:33:14]NVStorageSaveData ofd_packets/00140255 [16:33:14]File name is /storage/ofd_packets/00140255 [16:33:14]Write 301 bytes [16:33:14]NVStorageSaveData done [16:33:14]OFDSenderStorePacket done [16:33:14]KKMCreateOFDPacket done [16:33:14]NVStorageSaveData kkm_last_timestamp [16:33:14]File name is /storage/kkm_last_timestamp [16:33:14]Write 4 bytes [16:33:14]NVStorageSaveData done [16:33:14]ExternCall_PrintAddStr [16:33:14]wPrintStart [16:33:14]Write to MH i2c: 01 00 00 45 01 46 [16:33:14]Write i2c OK [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 [16:33:14]MH_I2C_Read... [16:33:14]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [16:33:14]RasterBufferAndPrint [16:33:14]line Счет N : (1)594112 [16:33:14]line ИНН: 02508201610067 [16:33:14]line Контрольно-Кассовый Чек [16:33:14]line ПРОДАЖА [16:33:14]line ТРК (МРК, ГНК) : 52 [16:33:14]line Товар: 2710124130 [16:33:14]line Аи-92-К-5 [16:33:14]line 7.380 * 67.80 [16:33:14]line = 500.36 [16:33:14]line НДС 12% НСП 1% [16:33:14]line > о реализуемом товаре [16:33:14]line ОКРУГЛЕНИЕ: -0.36 [16:33:14]line ИТОГО: 500.00 [16:33:14]line Внесено: 500.00 [16:33:14]line СДАЧА: 0.00 [16:33:14]line НСП 1% : 4.43 [16:33:14]line НДС 12% : 53.14 [16:33:14]line Наличными: 500.00 [16:33:14]line Безнал.: 0.00 [16:33:14]line Место: АЗС № 136 "Партнер Нефть" [16:33:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:33:14]line СНО: Общий режим [16:33:14]line Чек 272 21.08.2024 16:33 [16:33:14]line Смена: 454 ФФД: 1.0 [16:33:14]line ЗНМ: 0300000067 [16:33:14]line РНМ: 0000000000092569 [16:33:14]line Версия ККМ: 001 [16:33:14]line ФМ: 0000000000871776 [16:33:14]line ФД: 140255 [16:33:14]line ФПД: 34942133095357 [16:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140255&fm=34942133095357&tin=02508201610067®Number=0000000000092569&sum=50000 [16:33:14]OFD Sender: Processing packet 140255 [packets to send 137, broken 136] [16:33:14]ProducePacketName [16:33:14]name=ofd_packets/00140255 [16:33:14]OFD Sender: To server: pG, [16:33:14]CommunicateWithHost lk.salyk.kg:30040 [16:33:14]ConnectInit lk.salyk.kg [16:33:14]written 0, free lines is 4095 [16:33:14]Connected sock=10 [16: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 37 36 0F 01 00 00 48 04 07 01 08 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 C9 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 DF 23 02 00 35 04 06 00 1F C7 99 6E 4B BD DD BB 8E 59 4F 30 F3 59 [16: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 37 36 4F 00 00 00 43 CC 47 00 BF 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 37 36 10 04 04 00 DF 23 02 00 F4 03 04 00 5A BD C5 66 B6 04 01 00 00 3B 70 A6 6B 85 B5 AF 62 [16:33:15]CommunicateWithHost err = 0 [16:33:15]CheckOFDResponse [16:33:15]1017 (14) - 77093643461234 [16:33:15]1041 (16) - 0000000000871776 [16:33:15]1040 (4) - 140255 [16:33:15]1012 (4) - 21.08.2024 10:11 [16:33:15]1206 (1) - 0 [16:33:15]OFD Sender: Remove packet 140255 [16:33:15]ProducePacketName [16:33:15]name=ofd_packets/00140255 [16:33:15]NVStorageDeleteData [16:33:15]Write to MH i2c: 01 00 00 70 01 71 [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 07 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 E6 0C 6A [16:33:15]RasterBufferAndPrint [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]line [16:33:15]written 0, free lines is 3308 [16:33:15]MH_Cut [16:33:15]Write to MH i2c: D1 01 00 77 01 01 4A [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 01 00 [16:33:15]MH_I2C_Read... [16:33:15]Read from MH i2c: D1 01 00 77 01 00 49 [16:33:15]Write to MH i2c: 01 00 00 78 01 79 [16:33:15]Write i2c OK [16:33:15]MH_I2C_Read... [16:33:15]OFD Sender: No OFD packet to send [16:33:15]*** Cut start [16:33:15]*** Partial cut [16:33:15]*** CUTSNS_PIN = 1 [16:33:15]*** CUTSNS_PIN = 0 [16:33:16]*** Brake cut motor [16:33:16]Read from MH i2c: 01 [16:33:16]MH_I2C_Read... [16:33:16]*** Stop cut motor [16:33:16]*** Cut end [16:33:16]Read from MH i2c: 01 07 00 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [16:33:16]process_action close_receipt done [16:33:16]requested_data is exist [16:33:16]produce_requested_data [16:33:16]requested_item fm.sn is exist - process it [16:33:16]wFMCommunicate request_size=4 [16:33:16]MH_SAM_APDU [16:33:16]CAPDU: 80 11 00 00 [16:33:16]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [16:33:16]Write i2c OK [16:33:16]MH_I2C_Read... [16:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:16]Read from MH i2c: E2 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 17 00 [16:33:16]MH_I2C_Read... [16:33:16]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 37 36 90 00 4B [16:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:33:16]wFMCommunicate OK [16:33:16]requested_item fd.num is exist - process it [16:33:16]SAM_PROTO_GetFieldsCounters [16:33:16]wFMCommunicate request_size=4 [16:33:16]MH_SAM_APDU [16:33:16]CAPDU: 80 13 00 00 [16:33:16]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [16:33:16]Write i2c OK [16:33:16]MH_I2C_Read... [16:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:16]Read from MH i2c: E2 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 62 00 [16:33:16]MH_I2C_Read... [16:33:16]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 DF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:16]wFMCommunicate OK [16:33:16]SAM_PROTO_GetFieldsCounters done [16:33:16]requested_item shift.num is exist - process it [16:33:16]requested_item shift.opened is exist - process it [16:33:16]req_shift_opened [16:33:16]FM_GetShiftState [16:33:16]SAM_PROTO_GetShiftState [16:33:16]wFMCommunicate request_size=4 [16:33:16]MH_SAM_APDU [16:33:16]CAPDU: 80 13 01 00 [16:33:16]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [16:33:16]Write i2c OK [16:33:16]MH_I2C_Read... [16:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:16]Read from MH i2c: E2 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 0E 00 [16:33:16]MH_I2C_Read... [16:33:16]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [16:33:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:33:16]wFMCommunicate OK [16:33:16]SAM_PROTO_GetShiftState done [16:33:16]FM_GetShiftState done [16:33:16]req_shift_opened done [16:33:16]requested_item shift.open_date is exist - process it [16:33:16]req_shift_open_date [16:33:16]req_shift_open_date done [16:33:16]produce_requested_data done [16:33:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140255,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:33:16]process_action_free close_receipt [16:33:16]json_value_free [16:33:16]json_value_free done [16:33:16]process_json_proto returns [16:33:16]Send response to host [16:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140255,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:33:16]free response buf [16:33:16]execute_script done [16:33:16]execute_script returns [16:33:16]free content buf [16:33:16]Sock 9.Close socket [16:33:16]Sock 9.Thread stoped [16:33:17]accept exits with 7 [16:33:17]New connection [16:33:17]New thread 3067452772 created [16:33:17]Thread 3067596132 joined [16:33:17]Waiting for new connection... [16:33:17] Sock 7.Parse request [16:33:17]Sock 7.Check first char [16:33:17]Sock 7.First char is OK [16:33:17]request: POST /json_proto HTTP/1.0 [16:33:17]Method: POST [16:33:17]URL: /json_proto [16:33:17]Method is POST - this is cgi request [16:33:17]url: /json_proto [16:33:17]query_string will be loaded in cgi processing [16:33:17]execute_cgi json_proto POST (null) [16:33:17]execute_cgi path=json_proto method=POST [16:33:17]POST find Content-Length [16:33:17]Host: 172.17.45.67:8080 [16:33:17]Content-Length: 677 [16:33:17]Content-Type: application/json [16:33:17] [16:33:17]POST finish read [16:33:17]Found Content-Length = 677 [16:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:17]execute_script... [16:33: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)594113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:17]POST & json_proto [16:33:17]process_json_proto [16:33:17]json parsed OK: [16:33:17]protocol is kg_v1.0 [16:33:17]action value=close_receipt [16:33:17]process_action close_receipt [16:33:17]cmd_close_receipt [16:33:17]MH_GetDate [16:33:17]Write to MH i2c: F0 00 00 7C 01 6C [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: F0 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: F0 09 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: F0 09 00 7C 01 00 CE 16 C6 66 5F 7F 2B 66 F4 [16:33:17]GetLastDocTimeStamp 1724257993 [16:33:17]current date 1724257998 [16:33:17]FM_GetShiftState [16:33:17]SAM_PROTO_GetShiftState [16:33:17]wFMCommunicate request_size=4 [16:33:17]MH_SAM_APDU [16:33:17]CAPDU: 80 13 01 00 [16:33:17]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [16:33:17]Write i2c OK [16:33:17]MH_I2C_Read... [16:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:17]Read from MH i2c: E2 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 0E 00 [16:33:17]MH_I2C_Read... [16:33:17]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [16:33:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:33:17]wFMCommunicate OK [16:33:17]SAM_PROTO_GetShiftState done [16:33:17]FM_GetShiftState done [16:33:17]opened in 1724200467 [16:33:17]opened+sec_in_day 1724286867 [16:33:17]quantity*price = 50036 [16:33:17]sum+1 = 50037 [16:33:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 273 21.08.2024 16:33 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140256 ФПД: 111256998409541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163318&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140256&fm=111256998409541&tin=02508201610067®Number=0000000000092569&sum=50000 [16:33:18]StoreToDocumentArchive [16:33:18]shift 454 fd 140256 [16:33:18]save to /storage/0454/doc_00140256 [16:33:18]save last doc name /storage/0454/doc_00140256 to /storage/kkm_last_doc_name [16:33:18]save OK [16:33:18]Clear old archive folders... [16:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:18]tlvbuf is 019FA800 [16:33:18]SAM_PROTO_ClearQueue [16:33:18]wFMCommunicate request_size=4 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 09 00 00 [16:33:18]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]SAM_PROTO_ClearQueue done [16:33:18]KKMCreateOFDPacket [16:33:18]OFDProtocolAddRootSTLVToBuf [16:33:18]FM_MakeSignedData [16:33:18]FM_MakeSignedData [16:33:18]SAM_PROTO_SignData [16:33:18]wFMCommunicate request_size=4 [16:33:18]MH_SAM_APDU [16:33:18]CAPDU: 80 0D 01 02 [16:33:18]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [16:33:18]Write i2c OK [16:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 [16:33:18]MH_I2C_Read... [16:33:18]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [16:33:18]RAPDU: 90 00 [16:33:18]wFMCommunicate OK [16:33:18]wFMCommunicate request_size=255 [16:33:18]MH_SAM_APDU [16:33: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CE 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 23 02 00 35 04 06 00 65 [16:33:18]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CE 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 23 02 00 35 04 06 00 65 00 00 E1 [16:33:18]Write i2c OK [16:33:18]MH_I2C_Read... [16:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:19]Read from MH i2c: E2 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 03 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [16:33:19]RAPDU: 90 00 [16:33:19]wFMCommunicate OK [16:33:19]wFMCommunicate request_size=10 [16:33:19]MH_SAM_APDU [16:33:19]CAPDU: 80 0D 02 02 05 30 09 DE 75 45 [16:33:19]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 30 09 DE 75 45 00 00 E3 [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:19]Read from MH i2c: E2 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 03 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [16:33:19]RAPDU: 90 00 [16:33:19]wFMCommunicate OK [16:33:19]wFMCommunicate request_size=4 [16:33:19]MH_SAM_APDU [16:33:19]CAPDU: 80 0D 03 02 [16:33:19]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:19]Read from MH i2c: E2 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 0B 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 0B 00 8E 01 00 19 DF A1 A7 C6 4B FB 6B 90 00 C2 [16:33:19]RAPDU: 19 DF A1 A7 C6 4B FB 6B 90 00 [16:33:19]wFMCommunicate OK [16:33:19]SAM_PROTO_SignData done [16:33:19]FM_MakeSignedData done [16:33:19]CreateOFDProtocolMessage [16:33:19]wFMCommunicate request_size=4 [16:33:19]MH_SAM_APDU [16:33:19]CAPDU: 80 11 00 00 [16:33:19]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:19]Read from MH i2c: E2 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: E2 17 00 [16:33:19]MH_I2C_Read... [16:33:19]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 37 36 90 00 61 [16:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:33:19]wFMCommunicate OK [16:33:19]CreateOFDProtocolMessage done [16:33:19]OFDSenderStorePacket 140256 [16:33:19]StoreOFDPacket docnum=140256 [16:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 66 BC 07 01 16 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CE 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 23 02 00 35 04 06 00 65 30 09 DE 75 45 19 DF A1 A7 C6 4B FB 6B [16:33:19]CheckFolder [16:33:19]dirname=/storage/ofd_packets [16:33:19]CheckFolder done [16:33:19]ProducePacketName [16:33:19]name=ofd_packets/00140256 [16:33:19]NVStorageSaveData ofd_packets/00140256 [16:33:19]File name is /storage/ofd_packets/00140256 [16:33:19]Write 301 bytes [16:33:19]NVStorageSaveData done [16:33:19]OFDSenderStorePacket done [16:33:19]KKMCreateOFDPacket done [16:33:19]NVStorageSaveData kkm_last_timestamp [16:33:19]File name is /storage/kkm_last_timestamp [16:33:19]Write 4 bytes [16:33:19]NVStorageSaveData done [16:33:19]ExternCall_PrintAddStr [16:33:19]wPrintStart [16:33:19]Write to MH i2c: 01 00 00 90 01 91 [16:33:19]Write i2c OK [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 [16:33:19]MH_I2C_Read... [16:33:19]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [16:33:19]RasterBufferAndPrint [16:33:19]line Счет N : (1)594113 [16:33:19]line ИНН: 02508201610067 [16:33:19]line Контрольно-Кассовый Чек [16:33:19]line ПРОДАЖА [16:33:19]line ТРК (МРК, ГНК) : 32 [16:33:19]line Товар: 2710124130 [16:33:19]line Аи-92-К-5 [16:33:19]line 7.380 * 67.80 [16:33:19]line = 500.36 [16:33:19]line НДС 12% НСП 1% [16:33:19]line > о реализуемом товаре [16:33:19]line ОКРУГЛЕНИЕ: -0.36 [16:33:19]line ИТОГО: 500.00 [16:33:19]line Внесено: 500.00 [16:33:19]line СДАЧА: 0.00 [16:33:19]line НСП 1% : 4.43 [16:33:19]line НДС 12% : 53.14 [16:33:19]line Наличными: 500.00 [16:33:19]line Безнал.: 0.00 [16:33:19]line Место: АЗС № 136 "Партнер Нефть" [16:33:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:33:19]line СНО: Общий режим [16:33:19]line Чек 273 21.08.2024 16:33 [16:33:19]line Смена: 454 ФФД: 1.0 [16:33:19]line ЗНМ: 0300000067 [16:33:19]line РНМ: 0000000000092569 [16:33:19]line Версия ККМ: 001 [16:33:19]line ФМ: 0000000000871776 [16:33:19]line ФД: 140256 [16:33:19]line ФПД: 111256998409541 [16:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T163318&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140256&fm=111256998409541&tin=02508201610067®Number=0000000000092569&sum=50000 [16:33:19]OFD Sender: Processing packet 140256 [packets to send 137, broken 136] [16:33:19]ProducePacketName [16:33:19]name=ofd_packets/00140256 [16:33:19]OFD Sender: To server: pG, [16:33:19]CommunicateWithHost lk.salyk.kg:30040 [16:33:19]ConnectInit lk.salyk.kg [16:33:19]written 0, free lines is 4095 [16:33:19]Connected sock=10 [16:33: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 37 36 0F 01 00 00 66 BC 07 01 16 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 CE 16 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E0 23 02 00 35 04 06 00 65 30 09 DE 75 45 19 DF A1 A7 C6 4B FB 6B [16:33: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 37 36 4F 00 00 00 D4 9B 47 00 45 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 37 36 10 04 04 00 E0 23 02 00 F4 03 04 00 5E BD C5 66 B6 04 01 00 00 96 76 07 ED FB FD 51 2F [16:33:19]CommunicateWithHost err = 0 [16:33:19]CheckOFDResponse [16:33:19]1017 (14) - 77093643461234 [16:33:19]1041 (16) - 0000000000871776 [16:33:19]1040 (4) - 140256 [16:33:19]1012 (4) - 21.08.2024 10:11 [16:33:19]1206 (1) - 0 [16:33:19]OFD Sender: Remove packet 140256 [16:33:19]ProducePacketName [16:33:19]name=ofd_packets/00140256 [16:33:19]NVStorageDeleteData [16:33:20]Write to MH i2c: 01 00 00 BB 01 BC [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: 01 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: 01 07 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 F1 0C C0 [16:33:20]RasterBufferAndPrint [16:33:20]line [16:33:20]line [16:33:20]line [16:33:20]line [16:33:20]line [16:33:20]written 0, free lines is 3323 [16:33:20]MH_Cut [16:33:20]Write to MH i2c: D1 01 00 C2 01 01 95 [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: D1 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: D1 01 00 [16:33:20]MH_I2C_Read... [16:33:20]Read from MH i2c: D1 01 00 C2 01 00 94 [16:33:20]Write to MH i2c: 01 00 00 C3 01 C4 [16:33:20]Write i2c OK [16:33:20]MH_I2C_Read... [16:33:20]OFD Sender: No OFD packet to send [16:33:20]*** Cut start [16:33:20]*** Partial cut [16:33:20]*** CUTSNS_PIN = 1 [16:33:20]*** CUTSNS_PIN = 0 [16:33:20]*** Brake cut motor [16:33:21]Read from MH i2c: 01 [16:33:21]*** Stop cut motor [16:33:21]MH_I2C_Read... [16:33:21]*** Cut end [16:33:21]Read from MH i2c: 01 07 00 [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [16:33:21]process_action close_receipt done [16:33:21]requested_data is exist [16:33:21]produce_requested_data [16:33:21]requested_item fm.sn is exist - process it [16:33:21]wFMCommunicate request_size=4 [16:33:21]MH_SAM_APDU [16:33:21]CAPDU: 80 11 00 00 [16:33:21]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [16:33:21]Write i2c OK [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:21]E2 [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: E2 17 00 [16:33:21]MH_I2C_Read... [16:33:21]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 37 36 90 00 96 [16:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:33:21]wFMCommunicate OK [16:33:21]requested_item fd.num is exist - process it [16:33:21]SAM_PROTO_GetFieldsCounters [16:33:21]wFMCommunicate request_size=4 [16:33:21]MH_SAM_APDU [16:33:21]CAPDU: 80 13 00 00 [16:33:21]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [16:33:21]Write i2c OK [16:33:21]MH_I2C_Read... [16:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:21]Read from MH i2c: E2 [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: E2 62 00 [16:33:21]MH_I2C_Read... [16:33:21]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:33: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E0 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:21]wFMCommunicate OK [16:33:21]SAM_PROTO_GetFieldsCounters done [16:33:21]requested_item shift.num is exist - process it [16:33:21]requested_item shift.opened is exist - process it [16:33:21]req_shift_opened [16:33:21]FM_GetShiftState [16:33:21]SAM_PROTO_GetShiftState [16:33:21]wFMCommunicate request_size=4 [16:33:21]MH_SAM_APDU [16:33:21]CAPDU: 80 13 01 00 [16:33:21]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [16:33:21]Write i2c OK [16:33:21]MH_I2C_Read... [16:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:21]Read from MH i2c: E2 [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: E2 0E 00 [16:33:21]MH_I2C_Read... [16:33:21]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [16:33:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:33:21]wFMCommunicate OK [16:33:21]SAM_PROTO_GetShiftState done [16:33:21]FM_GetShiftState done [16:33:21]req_shift_opened done [16:33:21]requested_item shift.open_date is exist - process it [16:33:21]req_shift_open_date [16:33:21]req_shift_open_date done [16:33:21]produce_requested_data done [16:33:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140256,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:33:21]process_action_free close_receipt [16:33:21]json_value_free [16:33:21]json_value_free done [16:33:21]process_json_proto returns [16:33:21]Send response to host [16:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140256,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:33:21]free response buf [16:33:21]execute_script done [16:33:21]execute_script returns [16:33:21]free content buf [16:33:21]Sock 7.Close socket [16:33:21]Sock 7.Thread stoped [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:09]accept exits with 9 [16:40:09]New connection [16:40:09]New thread 3067596132 created [16:40:09]Thread 3067452772 joined [16:40:09]Waiting for new connection... [16:40:09] Sock 9.Parse request [16:40:09]Sock 9.Check first char [16:40:09]Sock 9.First char is OK [16:40:09]request: POST /json_proto HTTP/1.0 [16:40:09]Method: POST [16:40:09]URL: /json_proto [16:40:09]Method is POST - this is cgi request [16:40:09]url: /json_proto [16:40:09]query_string will be loaded in cgi processing [16:40:09]execute_cgi json_proto POST (null) [16:40:09]execute_cgi path=json_proto method=POST [16:40:09]POST find Content-Length [16:40:09]Host: 172.17.45.67:8080 [16:40:09]Content-Length: 677 [16:40:09]Content-Type: application/json [16:40:09] [16:40:09]POST finish read [16:40:09]Found Content-Length = 677 [16:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:09]execute_script... [16:40:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:09]POST & json_proto [16:40:09]process_json_proto [16:40:09]json parsed OK: [16:40:09]protocol is kg_v1.0 [16:40:09]action value=close_receipt [16:40:09]process_action close_receipt [16:40:09]cmd_close_receipt [16:40:09]MH_GetDate [16:40:09]Write to MH i2c: F0 00 00 C7 01 B7 [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: F0 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: F0 09 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: F0 09 00 C7 01 00 6A 18 C6 66 5F 7F 2B 66 DD [16:40:09]GetLastDocTimeStamp 1724257998 [16:40:09]current date 1724258410 [16:40:09]FM_GetShiftState [16:40:09]SAM_PROTO_GetShiftState [16:40:09]wFMCommunicate request_size=4 [16:40:09]MH_SAM_APDU [16:40:09]CAPDU: 80 13 01 00 [16:40:09]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [16:40:09]Write i2c OK [16:40:09]MH_I2C_Read... [16:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:09]Read from MH i2c: E2 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 0E 00 [16:40:09]MH_I2C_Read... [16:40:09]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [16:40:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:40:09]wFMCommunicate OK [16:40:09]SAM_PROTO_GetShiftState done [16:40:09]FM_GetShiftState done [16:40:09]opened in 1724200467 [16:40:09]opened+sec_in_day 1724286867 [16:40:09]quantity*price = 35052 [16:40:09]sum+1 = 35054 [16:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 274 21.08.2024 16:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140257 ФПД: 181451129105958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140257&fm=181451129105958&tin=02508201610067®Number=0000000000092569&sum=35000 [16:40:10]StoreToDocumentArchive [16:40:10]shift 454 fd 140257 [16:40:10]save to /storage/0454/doc_00140257 [16:40:10]save last doc name /storage/0454/doc_00140257 to /storage/kkm_last_doc_name [16:40:10]save OK [16:40:10]Clear old archive folders... [16:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:10]tlvbuf is 019BB480 [16:40:10]SAM_PROTO_ClearQueue [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 09 00 00 [16:40:10]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]SAM_PROTO_ClearQueue done [16:40:10]KKMCreateOFDPacket [16:40:10]OFDProtocolAddRootSTLVToBuf [16:40:10]FM_MakeSignedData [16:40:10]FM_MakeSignedData [16:40:10]SAM_PROTO_SignData [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 0D 01 02 [16:40:10]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]wFMCommunicate request_size=255 [16:40:10]MH_SAM_APDU [16:40: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 12 01 00 00 F4 03 04 00 6A 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 23 02 00 35 04 06 00 A5 [16:40:10]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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 12 01 00 00 F4 03 04 00 6A 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 23 02 00 35 04 06 00 A5 00 00 37 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]wFMCommunicate request_size=10 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 0D 02 02 05 07 62 18 2E 26 [16:40:10]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 07 62 18 2E 26 00 00 32 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:10]Read from MH i2c: E2 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 [16:40:10]MH_I2C_Read... [16:40:10]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [16:40:10]RAPDU: 90 00 [16:40:10]wFMCommunicate OK [16:40:10]wFMCommunicate request_size=4 [16:40:10]MH_SAM_APDU [16:40:10]CAPDU: 80 0D 03 02 [16:40:10]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [16:40:10]Write i2c OK [16:40:10]MH_I2C_Read... [16:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:11]Read from MH i2c: E2 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 0B 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 0B 00 D9 01 00 35 C5 DF 34 CF 0B 2B 4C 90 00 B4 [16:40:11]RAPDU: 35 C5 DF 34 CF 0B 2B 4C 90 00 [16:40:11]wFMCommunicate OK [16:40:11]SAM_PROTO_SignData done [16:40:11]FM_MakeSignedData done [16:40:11]CreateOFDProtocolMessage [16:40:11]wFMCommunicate request_size=4 [16:40:11]MH_SAM_APDU [16:40:11]CAPDU: 80 11 00 00 [16:40:11]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:11]Read from MH i2c: E2 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 17 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [16:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:40:11]wFMCommunicate OK [16:40:11]CreateOFDProtocolMessage done [16:40:11]OFDSenderStorePacket 140257 [16:40:11]StoreOFDPacket docnum=140257 [16:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 39 B9 07 01 59 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 12 01 00 00 F4 03 04 00 6A 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 23 02 00 35 04 06 00 A5 07 62 18 2E 26 35 C5 DF 34 CF 0B 2B 4C [16:40:11]CheckFolder [16:40:11]dirname=/storage/ofd_packets [16:40:11]CheckFolder done [16:40:11]ProducePacketName [16:40:11]name=ofd_packets/00140257 [16:40:11]NVStorageSaveData ofd_packets/00140257 [16:40:11]File name is /storage/ofd_packets/00140257 [16:40:11]Write 301 bytes [16:40:11]NVStorageSaveData done [16:40:11]OFDSenderStorePacket done [16:40:11]KKMCreateOFDPacket done [16:40:11]NVStorageSaveData kkm_last_timestamp [16:40:11]File name is /storage/kkm_last_timestamp [16:40:11]Write 4 bytes [16:40:11]NVStorageSaveData done [16:40:11]OFD Sender: Processing packet 140257 [packets to send 137, broken 136] [16:40:11]ProducePacketName [16:40:11]name=ofd_packets/00140257 [16:40:11]OFD Sender: To server: pG, [16:40:11]CommunicateWithHost lk.salyk.kg:30040 [16:40:11]ConnectInit lk.salyk.kg [16:40:11]ExternCall_PrintAddStr [16:40:11]wPrintStart [16:40:11]Write to MH i2c: 01 00 00 DB 01 DC [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [16:40:11]RasterBufferAndPrint [16:40:11]line Счет N : (1)594114 [16:40:11]line ИНН: 02508201610067 [16:40:11]line Контрольно-Кассовый Чек [16:40:11]line ПРОДАЖА [16:40:11]line ТРК (МРК, ГНК) : 62 [16:40:11]line Товар: 2710124130 [16:40:11]line Аи-92-К-5 [16:40:11]line 5.170 * 67.80 [16:40:11]line = 350.53 [16:40:11]line НДС 12% НСП 1% [16:40:11]line > о реализуемом товаре [16:40:11]line ОКРУГЛЕНИЕ: -0.53 [16:40:11]line ИТОГО: 350.00 [16:40:11]line Внесено: 350.00 [16:40:11]line СДАЧА: 0.00 [16:40:11]line НСП 1% : 3.10 [16:40:11]line НДС 12% : 37.22 [16:40:11]line Наличными: 350.00 [16:40:11]line Безнал.: 0.00 [16:40:11]line Место: АЗС № 136 "Партнер Нефть" [16:40:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:40:11]line СНО: Общий режим [16:40:11]line Чек 274 21.08.2024 16:40 [16:40:11]line Смена: 454 ФФД: 1.0 [16:40:11]line ЗНМ: 0300000067 [16:40:11]line РНМ: 0000000000092569 [16:40:11]line Версия ККМ: 001 [16:40:11]line ФМ: 0000000000871776 [16:40:11]line ФД: 140257 [16:40:11]line ФПД: 181451129105958 [16:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164010&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140257&fm=181451129105958&tin=02508201610067®Number=0000000000092569&sum=35000 [16:40:11]Connected sock=11 [16:40: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 37 36 0F 01 00 00 39 B9 07 01 59 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 12 01 00 00 F4 03 04 00 6A 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E1 23 02 00 35 04 06 00 A5 07 62 18 2E 26 35 C5 DF 34 CF 0B 2B 4C [16:40:11]written 0, free lines is 4095 [16:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 02 69 47 00 FA 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 37 36 10 04 04 00 E1 23 02 00 F4 03 04 00 FA BE C5 66 B6 04 01 00 00 0D 3C 9A 79 99 69 94 F7 [16:40:11]CommunicateWithHost err = 0 [16:40:11]CheckOFDResponse [16:40:11]1017 (14) - 77093643461234 [16:40:11]1041 (16) - 0000000000871776 [16:40:11]1040 (4) - 140257 [16:40:11]1012 (4) - 21.08.2024 10:18 [16:40:11]1206 (1) - 0 [16:40:11]OFD Sender: Remove packet 140257 [16:40:11]ProducePacketName [16:40:11]name=ofd_packets/00140257 [16:40:11]NVStorageDeleteData [16:40:11]Write to MH i2c: 01 00 00 06 02 08 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 DD 0C F8 [16:40:11]RasterBufferAndPrint [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]line [16:40:11]written 0, free lines is 3299 [16:40:11]MH_Cut [16:40:11]Write to MH i2c: D1 01 00 0D 02 01 E1 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: D1 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: D1 01 00 [16:40:11]MH_I2C_Read... [16:40:11]Read from MH i2c: D1 01 00 0D 02 00 E0 [16:40:11]Write to MH i2c: 01 00 00 0E 02 10 [16:40:11]Write i2c OK [16:40:11]MH_I2C_Read... [16:40:12]OFD Sender: No OFD packet to send [16:40:12]*** Cut start [16:40:12]*** Partial cut [16:40:12]*** CUTSNS_PIN = 1 [16:40:12]*** CUTSNS_PIN = 0 [16:40:12]*** Brake cut motor [16:40:13]Read from MH i2c: 01 [16:40:13]MH_I2C_Read... [16:40:13]*** Stop cut motor [16:40:13]*** Cut end [16:40:13]Read from MH i2c: 01 07 00 [16:40:13]MH_I2C_Read... [16:40:13]Read from MH i2c: 01 07 00 0E 02 00 00 00 00 00 FF 0F 25 [16:40:13]process_action close_receipt done [16:40:13]requested_data is exist [16:40:13]produce_requested_data [16:40:13]requested_item fm.sn is exist - process it [16:40:13]wFMCommunicate request_size=4 [16:40:13]MH_SAM_APDU [16:40:13]CAPDU: 80 11 00 00 [16:40:13]Write to MH i2c: E2 08 00 0F 02 80 11 00 00 00 00 00 00 8B [16:40:13]Write i2c OK [16:40:13]MH_I2C_Read... [16:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:13]Read from MH i2c: E2 [16:40:13]MH_I2C_Read... [16:40:13]Read from MH i2c: E2 17 00 [16:40:13]MH_I2C_Read... [16:40:13]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 37 36 90 00 E2 [16:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:40:13]wFMCommunicate OK [16:40:13]requested_item fd.num is exist - process it [16:40:13]SAM_PROTO_GetFieldsCounters [16:40:13]wFMCommunicate request_size=4 [16:40:13]MH_SAM_APDU [16:40:13]CAPDU: 80 13 00 00 [16:40:13]Write to MH i2c: E2 08 00 10 02 80 13 00 00 00 00 00 00 8E [16:40:13]Write i2c OK [16:40:13]MH_I2C_Read... [16:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:13]Read from MH i2c: E2 [16:40:13]MH_I2C_Read... [16:40:13]Read from MH i2c: E2 62 00 [16:40:13]MH_I2C_Read... [16:40:13]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [16:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E1 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:13]wFMCommunicate OK [16:40:13]SAM_PROTO_GetFieldsCounters done [16:40:13]requested_item shift.num is exist - process it [16:40:13]requested_item shift.opened is exist - process it [16:40:13]req_shift_opened [16:40:13]FM_GetShiftState [16:40:13]SAM_PROTO_GetShiftState [16:40:13]wFMCommunicate request_size=4 [16:40:13]MH_SAM_APDU [16:40:13]CAPDU: 80 13 01 00 [16:40:13]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [16:40:13]Write i2c OK [16:40:13]MH_I2C_Read... [16:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:13]Read from MH i2c: E2 [16:40:13]MH_I2C_Read... [16:40:13]Read from MH i2c: E2 0E 00 [16:40:13]MH_I2C_Read... [16:40:13]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [16:40:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:40:13]wFMCommunicate OK [16:40:13]SAM_PROTO_GetShiftState done [16:40:13]FM_GetShiftState done [16:40:13]req_shift_opened done [16:40:13]requested_item shift.open_date is exist - process it [16:40:13]req_shift_open_date [16:40:13]req_shift_open_date done [16:40:13]produce_requested_data done [16:40:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140257,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:40:13]process_action_free close_receipt [16:40:13]json_value_free [16:40:13]json_value_free done [16:40:13]process_json_proto returns [16:40:13]Send response to host [16:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140257,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:40:13]free response buf [16:40:13]execute_script done [16:40:13]execute_script returns [16:40:13]free content buf [16:40:13]Sock 9.Close socket [16:40:13]Sock 9.Thread stoped [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:11]accept exits with 7 [16:41:11]New connection [16:41:11]New thread 3067452772 created [16:41:11]Thread 3067596132 joined [16:41:11]Waiting for new connection... [16:41:11] Sock 7.Parse request [16:41:11]Sock 7.Check first char [16:41:11]Sock 7.First char is OK [16:41:11]request: POST /json_proto HTTP/1.0 [16:41:11]Method: POST [16:41:11]URL: /json_proto [16:41:11]Method is POST - this is cgi request [16:41:11]url: /json_proto [16:41:11]query_string will be loaded in cgi processing [16:41:11]execute_cgi json_proto POST (null) [16:41:11]execute_cgi path=json_proto method=POST [16:41:11]POST find Content-Length [16:41:11]Host: 172.17.45.67:8080 [16:41:11]Content-Length: 682 [16:41:11]Content-Type: application/json [16:41:11] [16:41:11]POST finish read [16:41:11]Found Content-Length = 682 [16:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:11]execute_script... [16:41: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)594115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:11]POST & json_proto [16:41:11]process_json_proto [16:41:11]json parsed OK: [16:41:11]protocol is kg_v1.0 [16:41:11]action value=close_receipt [16:41:11]process_action close_receipt [16:41:11]cmd_close_receipt [16:41:11]MH_GetDate [16:41:11]Write to MH i2c: F0 00 00 12 02 03 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: F0 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: F0 09 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: F0 09 00 12 02 00 A7 18 C6 66 5F 7F 2B 66 66 [16:41:11]GetLastDocTimeStamp 1724258410 [16:41:11]current date 1724258471 [16:41:11]FM_GetShiftState [16:41:11]SAM_PROTO_GetShiftState [16:41:11]wFMCommunicate request_size=4 [16:41:11]MH_SAM_APDU [16:41:11]CAPDU: 80 13 01 00 [16:41:11]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [16:41:11]Write i2c OK [16:41:11]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0E 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 12 [16:41:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_GetShiftState done [16:41:11]FM_GetShiftState done [16:41:11]opened in 1724200467 [16:41:11]opened+sec_in_day 1724286867 [16:41:11]quantity*price = 100005 [16:41:11]sum+1 = 100006 [16:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 275 21.08.2024 16:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140258 ФПД: 199573073990135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164112&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140258&fm=199573073990135&tin=02508201610067®Number=0000000000092569&sum=100000 [16:41:12]StoreToDocumentArchive [16:41:12]shift 454 fd 140258 [16:41:12]save to /storage/0454/doc_00140258 [16:41:12]save last doc name /storage/0454/doc_00140258 to /storage/kkm_last_doc_name [16:41:12]save OK [16:41:12]Clear old archive folders... [16:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:12]tlvbuf is 019A3080 [16:41:12]SAM_PROTO_ClearQueue [16:41:12]wFMCommunicate request_size=4 [16:41:12]MH_SAM_APDU [16:41:12]CAPDU: 80 09 00 00 [16:41:12]Write to MH i2c: E2 08 00 20 02 80 09 00 00 00 00 00 00 94 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [16:41:12]RAPDU: 90 00 [16:41:12]wFMCommunicate OK [16:41:12]SAM_PROTO_ClearQueue done [16:41:12]KKMCreateOFDPacket [16:41:12]OFDProtocolAddRootSTLVToBuf [16:41:12]FM_MakeSignedData [16:41:12]FM_MakeSignedData [16:41:12]SAM_PROTO_SignData [16:41:12]wFMCommunicate request_size=4 [16:41:12]MH_SAM_APDU [16:41:12]CAPDU: 80 0D 01 02 [16:41:12]Write to MH i2c: E2 08 00 21 02 80 0D 01 02 00 00 00 00 9C [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [16:41:12]RAPDU: 90 00 [16:41:12]wFMCommunicate OK [16:41:12]wFMCommunicate request_size=255 [16:41:12]MH_SAM_APDU [16:41: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 A8 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 23 02 00 35 04 06 00 B5 [16:41:12]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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 A8 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 23 02 00 35 04 06 00 B5 00 00 37 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [16:41:12]RAPDU: 90 00 [16:41:12]wFMCommunicate OK [16:41:12]wFMCommunicate request_size=10 [16:41:12]MH_SAM_APDU [16:41:12]CAPDU: 80 0D 02 02 05 82 BA 2E 91 F7 [16:41:12]Write to MH i2c: E2 0D 00 23 02 80 0D 02 02 05 00 82 BA 2E 91 F7 00 00 9B [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [16:41:12]RAPDU: 90 00 [16:41:12]wFMCommunicate OK [16:41:12]wFMCommunicate request_size=4 [16:41:12]MH_SAM_APDU [16:41:12]CAPDU: 80 0D 03 02 [16:41:12]Write to MH i2c: E2 08 00 24 02 80 0D 03 02 00 00 00 00 A1 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 0B 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 0B 00 24 02 00 68 25 F6 BA CA B4 B2 D9 90 00 E8 [16:41:12]RAPDU: 68 25 F6 BA CA B4 B2 D9 90 00 [16:41:12]wFMCommunicate OK [16:41:12]SAM_PROTO_SignData done [16:41:12]FM_MakeSignedData done [16:41:12]CreateOFDProtocolMessage [16:41:12]wFMCommunicate request_size=4 [16:41:12]MH_SAM_APDU [16:41:12]CAPDU: 80 11 00 00 [16:41:12]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:12]Read from MH i2c: E2 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: E2 17 00 [16:41:12]MH_I2C_Read... [16:41:12]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 37 36 90 00 F8 [16:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:41:12]wFMCommunicate OK [16:41:12]CreateOFDProtocolMessage done [16:41:12]OFDSenderStorePacket 140258 [16:41:12]StoreOFDPacket docnum=140258 [16:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 08 6C 07 01 EB 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 A8 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 23 02 00 35 04 06 00 B5 82 BA 2E 91 F7 68 25 F6 BA CA B4 B2 D9 [16:41:12]CheckFolder [16:41:12]dirname=/storage/ofd_packets [16:41:12]CheckFolder done [16:41:12]ProducePacketName [16:41:12]name=ofd_packets/00140258 [16:41:12]NVStorageSaveData ofd_packets/00140258 [16:41:12]File name is /storage/ofd_packets/00140258 [16:41:12]Write 301 bytes [16:41:12]NVStorageSaveData done [16:41:12]OFDSenderStorePacket done [16:41:12]KKMCreateOFDPacket done [16:41:12]NVStorageSaveData kkm_last_timestamp [16:41:12]File name is /storage/kkm_last_timestamp [16:41:12]Write 4 bytes [16:41:12]NVStorageSaveData done [16:41:12]ExternCall_PrintAddStr [16:41:12]wPrintStart [16:41:12]Write to MH i2c: 01 00 00 26 02 28 [16:41:12]Write i2c OK [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 [16:41:12]MH_I2C_Read... [16:41:12]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0F 3D [16:41:12]RasterBufferAndPrint [16:41:12]line Счет N : (1)594115 [16:41:12]line ИНН: 02508201610067 [16:41:12]line Контрольно-Кассовый Чек [16:41:12]line ПРОДАЖА [16:41:12]line ТРК (МРК, ГНК) : 52 [16:41:12]line Товар: 2710124130 [16:41:12]line Аи-92-К-5 [16:41:12]line 14.750 * 67.80 [16:41:12]line = 1000.05 [16:41:12]line НДС 12% НСП 1% [16:41:12]line > о реализуемом товаре [16:41:12]line ОКРУГЛЕНИЕ: -0.05 [16:41:12]line ИТОГО: 1000.00 [16:41:12]line Внесено: 1000.00 [16:41:12]line СДАЧА: 0.00 [16:41:12]line НСП 1% : 8.85 [16:41:12]line НДС 12% : 106.20 [16:41:12]line Наличными: 1000.00 [16:41:12]line Безнал.: 0.00 [16:41:12]line Место: АЗС № 136 "Партнер Нефть" [16:41:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:41:12]line СНО: Общий режим [16:41:12]line Чек 275 21.08.2024 16:41 [16:41:12]line Смена: 454 ФФД: 1.0 [16:41:12]line ЗНМ: 0300000067 [16:41:12]line РНМ: 0000000000092569 [16:41:12]line Версия ККМ: 001 [16:41:12]line ФМ: 0000000000871776 [16:41:12]line ФД: 140258 [16:41:12]line ФПД: 199573073990135 [16:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164112&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140258&fm=199573073990135&tin=02508201610067®Number=0000000000092569&sum=100000 [16:41:12]written 0, free lines is 4095 [16:41:12]OFD Sender: Processing packet 140258 [packets to send 137, broken 136] [16:41:12]ProducePacketName [16:41:12]name=ofd_packets/00140258 [16:41:12]OFD Sender: To server: pG, [16:41:12]CommunicateWithHost lk.salyk.kg:30040 [16:41:13]ConnectInit lk.salyk.kg [16:41:13]Write to MH i2c: 01 00 00 51 02 53 [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: 01 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: 01 07 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 D3 0C 39 [16:41:13]RasterBufferAndPrint [16:41:13]line [16:41:13]line [16:41:13]line [16:41:13]line [16:41:13]line [16:41:13]written 0, free lines is 3289 [16:41:13]Connected sock=9 [16:41: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 37 36 0F 01 00 00 08 6C 07 01 EB 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 A8 18 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 23 02 00 35 04 06 00 B5 82 BA 2E 91 F7 68 25 F6 BA CA B4 B2 D9 [16:41:13]MH_Cut [16:41:13]Write to MH i2c: D1 01 00 58 02 01 2C [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: D1 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: D1 01 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: D1 01 00 58 02 00 2B [16:41:13]Write to MH i2c: 01 00 00 59 02 5B [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41: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 37 36 4F 00 00 00 98 6A 47 00 09 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E2 23 02 00 F4 03 04 00 38 BF C5 66 B6 04 01 00 00 4C FE 24 25 5E 0C 7D EE [16:41:13]CommunicateWithHost err = 0 [16:41:13]CheckOFDResponse [16:41:13]1017 (14) - 77093643461234 [16:41:13]1041 (16) - 0000000000871776 [16:41:13]1040 (4) - 140258 [16:41:13]1012 (4) - 21.08.2024 10:19 [16:41:13]1206 (1) - 0 [16:41:13]OFD Sender: Remove packet 140258 [16:41:13]ProducePacketName [16:41:13]name=ofd_packets/00140258 [16:41:13]NVStorageDeleteData [16:41:13]*** Cut start [16:41:14]*** Partial cut [16:41:14]*** CUTSNS_PIN = 1 [16:41:14]*** CUTSNS_PIN = 0 [16:41:14]OFD Sender: No OFD packet to send [16:41:14]*** Brake cut motor [16:41:14]Read from MH i2c: 01 [16:41:14]MH_I2C_Read... [16:41:14]*** Stop cut motor [16:41:14]*** Cut end [16:41:14]Read from MH i2c: 01 07 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [16:41:14]process_action close_receipt done [16:41:14]requested_data is exist [16:41:14]produce_requested_data [16:41:14]requested_item fm.sn is exist - process it [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 11 00 00 [16:41:14]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 17 00 [16:41:14]MH_I2C_Read... [16:41:14]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 37 36 90 00 2D [16:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:41:14]wFMCommunicate OK [16:41:14]requested_item fd.num is exist - process it [16:41:14]SAM_PROTO_GetFieldsCounters [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 00 00 [16:41:14]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 62 00 [16:41:14]MH_I2C_Read... [16:41:14]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [16:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E2 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetFieldsCounters done [16:41:14]requested_item shift.num is exist - process it [16:41:14]requested_item shift.opened is exist - process it [16:41:14]req_shift_opened [16:41:14]FM_GetShiftState [16:41:14]SAM_PROTO_GetShiftState [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 13 01 00 [16:41:14]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:14]Read from MH i2c: E2 0E 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5B [16:41:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_GetShiftState done [16:41:14]FM_GetShiftState done [16:41:14]req_shift_opened done [16:41:14]requested_item shift.open_date is exist - process it [16:41:14]req_shift_open_date [16:41:14]req_shift_open_date done [16:41:14]produce_requested_data done [16:41:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140258,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:41:14]process_action_free close_receipt [16:41:14]json_value_free [16:41:14]json_value_free done [16:41:14]process_json_proto returns [16:41:14]Send response to host [16:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140258,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:41:14]free response buf [16:41:14]execute_script done [16:41:14]execute_script returns [16:41:14]free content buf [16:41:14]Sock 7.Close socket [16:41:14]Sock 7.Thread stoped [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42: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:10]accept exits with 10 [16:44:10]New connection [16:44:10]New thread 3067596132 created [16:44:10]Thread 3067452772 joined [16:44:10]Waiting for new connection... [16:44:10] Sock 10.Parse request [16:44:10]Sock 10.Check first char [16:44:10]Sock 10.First char is OK [16:44:10]request: POST /json_proto HTTP/1.0 [16:44:10]Method: POST [16:44:10]URL: /json_proto [16:44:10]Method is POST - this is cgi request [16:44:10]url: /json_proto [16:44:10]query_string will be loaded in cgi processing [16:44:10]execute_cgi json_proto POST (null) [16:44:10]execute_cgi path=json_proto method=POST [16:44:10]POST find Content-Length [16:44:10]Host: 172.17.45.67:8080 [16:44:10]Content-Length: 677 [16:44:10]Content-Type: application/json [16:44:10] [16:44:10]POST finish read [16:44:10]Found Content-Length = 677 [16:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:10]execute_script... [16:44:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:10]POST & json_proto [16:44:10]process_json_proto [16:44:10]json parsed OK: [16:44:10]protocol is kg_v1.0 [16:44:10]action value=close_receipt [16:44:10]process_action close_receipt [16:44:10]cmd_close_receipt [16:44:10]MH_GetDate [16:44:10]Write to MH i2c: F0 00 00 5D 02 4E [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 09 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: F0 09 00 5D 02 00 5B 19 C6 66 5F 7F 2B 66 66 [16:44:10]GetLastDocTimeStamp 1724258472 [16:44:10]current date 1724258651 [16:44:10]FM_GetShiftState [16:44:10]SAM_PROTO_GetShiftState [16:44:10]wFMCommunicate request_size=4 [16:44:10]MH_SAM_APDU [16:44:10]CAPDU: 80 13 01 00 [16:44:10]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [16:44:10]Write i2c OK [16:44:10]MH_I2C_Read... [16:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:10]Read from MH i2c: E2 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0E 00 [16:44:10]MH_I2C_Read... [16:44:10]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5D [16:44:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:44:10]wFMCommunicate OK [16:44:10]SAM_PROTO_GetShiftState done [16:44:10]FM_GetShiftState done [16:44:10]opened in 1724200467 [16:44:10]opened+sec_in_day 1724286867 [16:44:10]quantity*price = 30035 [16:44:10]sum+1 = 30036 [16:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 276 21.08.2024 16:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140259 ФПД: 150992905418727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140259&fm=150992905418727&tin=02508201610067®Number=0000000000092569&sum=30000 [16:44:12]StoreToDocumentArchive [16:44:12]shift 454 fd 140259 [16:44:12]save to /storage/0454/doc_00140259 [16:44:12]save last doc name /storage/0454/doc_00140259 to /storage/kkm_last_doc_name [16:44:12]save OK [16:44:12]Clear old archive folders... [16:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:12]tlvbuf is 019A0FB0 [16:44:12]SAM_PROTO_ClearQueue [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 09 00 00 [16:44:12]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [16:44:12]RAPDU: 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_ClearQueue done [16:44:12]KKMCreateOFDPacket [16:44:12]OFDProtocolAddRootSTLVToBuf [16:44:12]FM_MakeSignedData [16:44:12]FM_MakeSignedData [16:44:12]SAM_PROTO_SignData [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 0D 01 02 [16:44:12]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [16:44:12]RAPDU: 90 00 [16:44:12]wFMCommunicate OK [16:44:12]wFMCommunicate request_size=255 [16:44:12]MH_SAM_APDU [16:44: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5B 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 23 02 00 35 04 06 00 89 [16:44:12]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5B 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 23 02 00 35 04 06 00 89 00 00 9C [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [16:44:12]RAPDU: 90 00 [16:44:12]wFMCommunicate OK [16:44:12]wFMCommunicate request_size=10 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 0D 02 02 05 53 C6 7D B7 E7 [16:44:12]Write to MH i2c: E2 0D 00 6E 02 80 0D 02 02 05 00 53 C6 7D B7 E7 00 00 28 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [16:44:12]RAPDU: 90 00 [16:44:12]wFMCommunicate OK [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 0D 03 02 [16:44:12]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0B 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 0B 00 6F 02 00 07 00 93 29 92 5A 7C F5 90 00 0D [16:44:12]RAPDU: 07 00 93 29 92 5A 7C F5 90 00 [16:44:12]wFMCommunicate OK [16:44:12]SAM_PROTO_SignData done [16:44:12]FM_MakeSignedData done [16:44:12]CreateOFDProtocolMessage [16:44:12]wFMCommunicate request_size=4 [16:44:12]MH_SAM_APDU [16:44:12]CAPDU: 80 11 00 00 [16:44:12]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:12]Read from MH i2c: E2 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [16:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:12]wFMCommunicate OK [16:44:12]CreateOFDProtocolMessage done [16:44:12]OFDSenderStorePacket 140259 [16:44:12]StoreOFDPacket docnum=140259 [16:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 33 D0 07 01 E1 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5B 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 23 02 00 35 04 06 00 89 53 C6 7D B7 E7 07 00 93 29 92 5A 7C F5 [16:44:12]CheckFolder [16:44:12]dirname=/storage/ofd_packets [16:44:12]CheckFolder done [16:44:12]ProducePacketName [16:44:12]name=ofd_packets/00140259 [16:44:12]NVStorageSaveData ofd_packets/00140259 [16:44:12]File name is /storage/ofd_packets/00140259 [16:44:12]Write 301 bytes [16:44:12]NVStorageSaveData done [16:44:12]OFDSenderStorePacket done [16:44:12]KKMCreateOFDPacket done [16:44:12]NVStorageSaveData kkm_last_timestamp [16:44:12]File name is /storage/kkm_last_timestamp [16:44:12]Write 4 bytes [16:44:12]NVStorageSaveData done [16:44:12]ExternCall_PrintAddStr [16:44:12]wPrintStart [16:44:12]Write to MH i2c: 01 00 00 71 02 73 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [16:44:12]RasterBufferAndPrint [16:44:12]line Счет N : (1)594116 [16:44:12]line ИНН: 02508201610067 [16:44:12]line Контрольно-Кассовый Чек [16:44:12]line ПРОДАЖА [16:44:12]line ТРК (МРК, ГНК) : 52 [16:44:12]line Товар: 2710124130 [16:44:12]line Аи-92-К-5 [16:44:12]line 4.430 * 67.80 [16:44:12]line = 300.35 [16:44:12]line НДС 12% НСП 1% [16:44:12]line > о реализуемом товаре [16:44:12]line ОКРУГЛЕНИЕ: -0.35 [16:44:12]line ИТОГО: 300.00 [16:44:12]line Внесено: 300.00 [16:44:12]line СДАЧА: 0.00 [16:44:12]line НСП 1% : 2.66 [16:44:12]line НДС 12% : 31.90 [16:44:12]line Наличными: 300.00 [16:44:12]line Безнал.: 0.00 [16:44:12]line Место: АЗС № 136 "Партнер Нефть" [16:44:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:44:12]line СНО: Общий режим [16:44:12]line Чек 276 21.08.2024 16:44 [16:44:12]line Смена: 454 ФФД: 1.0 [16:44:12]line ЗНМ: 0300000067 [16:44:12]line РНМ: 0000000000092569 [16:44:12]line Версия ККМ: 001 [16:44:12]line ФМ: 0000000000871776 [16:44:12]line ФД: 140259 [16:44:12]line ФПД: 150992905418727 [16:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140259&fm=150992905418727&tin=02508201610067®Number=0000000000092569&sum=30000 [16:44:12]written 0, free lines is 4095 [16:44:12]OFD Sender: Processing packet 140259 [packets to send 137, broken 136] [16:44:12]ProducePacketName [16:44:12]name=ofd_packets/00140259 [16:44:12]OFD Sender: To server: pG, [16:44:12]CommunicateWithHost lk.salyk.kg:30040 [16:44:12]ConnectInit lk.salyk.kg [16:44:13]Connected sock=9 [16:44: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 37 36 0F 01 00 00 33 D0 07 01 E1 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 5B 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E3 23 02 00 35 04 06 00 89 53 C6 7D B7 E7 07 00 93 29 92 5A 7C F5 [16:44: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 37 36 4F 00 00 00 52 71 47 00 0C 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 37 36 10 04 04 00 E3 23 02 00 F4 03 04 00 EC BF C5 66 B6 04 01 00 00 F7 1E A8 B2 78 5F 2F 48 [16:44:13]CommunicateWithHost err = 0 [16:44:13]CheckOFDResponse [16:44:13]1017 (14) - 77093643461234 [16:44:13]1041 (16) - 0000000000871776 [16:44:13]1040 (4) - 140259 [16:44:13]1012 (4) - 21.08.2024 10:22 [16:44:13]1206 (1) - 0 [16:44:13]OFD Sender: Remove packet 140259 [16:44:13]ProducePacketName [16:44:13]name=ofd_packets/00140259 [16:44:13]NVStorageDeleteData [16:44:13]Write to MH i2c: 01 00 00 9C 02 9E [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: 01 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: 01 07 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 DD 0C 8E [16:44:13]RasterBufferAndPrint [16:44:13]line [16:44:13]line [16:44:13]line [16:44:13]line [16:44:13]line [16:44:13]written 0, free lines is 3299 [16:44:13]MH_Cut [16:44:13]Write to MH i2c: D1 01 00 A3 02 01 77 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: D1 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: D1 01 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: D1 01 00 A3 02 00 76 [16:44:13]Write to MH i2c: 01 00 00 A4 02 A6 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]OFD Sender: No OFD packet to send [16:44:14]*** Cut start [16:44:14]*** Partial cut [16:44:14]*** CUTSNS_PIN = 1 [16:44:14]*** CUTSNS_PIN = 0 [16:44:14]*** Brake cut motor [16:44:14]Read from MH i2c: 01 [16:44:14]MH_I2C_Read... [16:44:14]*** Stop cut motor [16:44:14]*** Cut end [16:44:14]Read from MH i2c: 01 07 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [16:44:14]process_action close_receipt done [16:44:14]requested_data is exist [16:44:14]produce_requested_data [16:44:14]requested_item fm.sn is exist - process it [16:44:14]wFMCommunicate request_size=4 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 11 00 00 [16:44:14]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 17 00 [16:44:14]MH_I2C_Read... [16:44:14]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 37 36 90 00 78 [16:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:44:14]wFMCommunicate OK [16:44:14]requested_item fd.num is exist - process it [16:44:14]SAM_PROTO_GetFieldsCounters [16:44:14]wFMCommunicate request_size=4 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 13 00 00 [16:44:14]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 62 00 [16:44:14]MH_I2C_Read... [16:44:14]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [16:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E3 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:14]wFMCommunicate OK [16:44:14]SAM_PROTO_GetFieldsCounters done [16:44:14]requested_item shift.num is exist - process it [16:44:14]requested_item shift.opened is exist - process it [16:44:14]req_shift_opened [16:44:14]FM_GetShiftState [16:44:14]SAM_PROTO_GetShiftState [16:44:14]wFMCommunicate request_size=4 [16:44:14]MH_SAM_APDU [16:44:14]CAPDU: 80 13 01 00 [16:44:14]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [16:44:14]Write i2c OK [16:44:14]MH_I2C_Read... [16:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:14]Read from MH i2c: E2 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 0E 00 [16:44:14]MH_I2C_Read... [16:44:14]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A6 [16:44:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:44:14]wFMCommunicate OK [16:44:14]SAM_PROTO_GetShiftState done [16:44:14]FM_GetShiftState done [16:44:14]req_shift_opened done [16:44:14]requested_item shift.open_date is exist - process it [16:44:14]req_shift_open_date [16:44:14]req_shift_open_date done [16:44:14]produce_requested_data done [16:44:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140259,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:44:14]process_action_free close_receipt [16:44:14]json_value_free [16:44:14]json_value_free done [16:44:14]process_json_proto returns [16:44:14]Send response to host [16:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140259,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:44:14]free response buf [16:44:14]execute_script done [16:44:14]execute_script returns [16:44:14]free content buf [16:44:14]Sock 10.Close socket [16:44:14]Sock 10.Thread stoped [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:21]accept exits with 7 [16:45:21]New connection [16:45:21]New thread 3067452772 created [16:45:21]Thread 3067596132 joined [16:45:21]Waiting for new connection... [16:45:21] Sock 7.Parse request [16:45:21]Sock 7.Check first char [16:45:21]Sock 7.First char is OK [16:45:21]request: POST /json_proto HTTP/1.0 [16:45:21]Method: POST [16:45:21]URL: /json_proto [16:45:21]Method is POST - this is cgi request [16:45:21]url: /json_proto [16:45:21]query_string will be loaded in cgi processing [16:45:21]execute_cgi json_proto POST (null) [16:45:21]execute_cgi path=json_proto method=POST [16:45:21]POST find Content-Length [16:45:21]Host: 172.17.45.67:8080 [16:45:21]Content-Length: 677 [16:45:21]Content-Type: application/json [16:45:21] [16:45:21]POST finish read [16:45:21]Found Content-Length = 677 [16:45:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:21]execute_script... [16:45: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)594117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:21]POST & json_proto [16:45:21]process_json_proto [16:45:21]json parsed OK: [16:45:21]protocol is kg_v1.0 [16:45:21]action value=close_receipt [16:45:21]process_action close_receipt [16:45:21]cmd_close_receipt [16:45:21]MH_GetDate [16:45:21]Write to MH i2c: F0 00 00 A8 02 99 [16:45:21]Write i2c OK [16:45:21]MH_I2C_Read... [16:45:21]Read from MH i2c: F0 [16:45:21]MH_I2C_Read... [16:45:21]Read from MH i2c: F0 09 00 [16:45:21]MH_I2C_Read... [16:45:21]Read from MH i2c: F0 09 00 A8 02 00 A2 19 C6 66 5F 7F 2B 66 F8 [16:45:21]GetLastDocTimeStamp 1724258651 [16:45:21]current date 1724258722 [16:45:21]FM_GetShiftState [16:45:21]SAM_PROTO_GetShiftState [16:45:21]wFMCommunicate request_size=4 [16:45:21]MH_SAM_APDU [16:45:21]CAPDU: 80 13 01 00 [16:45:21]Write to MH i2c: E2 08 00 A9 02 80 13 01 00 00 00 00 00 28 [16:45:21]Write i2c OK [16:45:21]MH_I2C_Read... [16:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:21]Read from MH i2c: E2 [16:45:21]MH_I2C_Read... [16:45:21]Read from MH i2c: E2 0E 00 [16:45:21]MH_I2C_Read... [16:45:21]Read from MH i2c: E2 0E 00 A9 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A8 [16:45:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:45:21]wFMCommunicate OK [16:45:21]SAM_PROTO_GetShiftState done [16:45:21]FM_GetShiftState done [16:45:21]opened in 1724200467 [16:45:21]opened+sec_in_day 1724286867 [16:45:21]quantity*price = 40002 [16:45:21]sum+1 = 40003 [16:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 277 21.08.2024 16:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140260 ФПД: 244443547329996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164522&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140260&fm=244443547329996&tin=02508201610067®Number=0000000000092569&sum=40000 [16:45:22]StoreToDocumentArchive [16:45:22]shift 454 fd 140260 [16:45:22]save to /storage/0454/doc_00140260 [16:45:22]save last doc name /storage/0454/doc_00140260 to /storage/kkm_last_doc_name [16:45:22]save OK [16:45:22]Clear old archive folders... [16:45:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:22]tlvbuf is 019B3470 [16:45:22]SAM_PROTO_ClearQueue [16:45:22]wFMCommunicate request_size=4 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 09 00 00 [16:45:22]Write to MH i2c: E2 08 00 B6 02 80 09 00 00 00 00 00 00 2A [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [16:45:22]RAPDU: 90 00 [16:45:22]wFMCommunicate OK [16:45:22]SAM_PROTO_ClearQueue done [16:45:22]KKMCreateOFDPacket [16:45:22]OFDProtocolAddRootSTLVToBuf [16:45:22]FM_MakeSignedData [16:45:22]FM_MakeSignedData [16:45:22]SAM_PROTO_SignData [16:45:22]wFMCommunicate request_size=4 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 0D 01 02 [16:45:22]Write to MH i2c: E2 08 00 B7 02 80 0D 01 02 00 00 00 00 32 [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [16:45:22]RAPDU: 90 00 [16:45:22]wFMCommunicate OK [16:45:22]wFMCommunicate request_size=255 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A2 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 23 02 00 35 04 06 00 DE [16:45:22]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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A2 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 23 02 00 35 04 06 00 DE 00 00 4B [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [16:45:22]RAPDU: 90 00 [16:45:22]wFMCommunicate OK [16:45:22]wFMCommunicate request_size=10 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 0D 02 02 05 51 F2 CE 65 CC [16:45:22]Write to MH i2c: E2 0D 00 B9 02 80 0D 02 02 05 00 51 F2 CE 65 CC 00 00 81 [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:22]Read from MH i2c: E2 03 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [16:45:22]RAPDU: 90 00 [16:45:22]wFMCommunicate OK [16:45:22]wFMCommunicate request_size=4 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 0D 03 02 [16:45:22]Write to MH i2c: E2 08 00 BA 02 80 0D 03 02 00 00 00 00 37 [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 0B 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 0B 00 BA 02 00 F7 04 D7 BD 8B 97 C9 60 90 00 12 [16:45:22]RAPDU: F7 04 D7 BD 8B 97 C9 60 90 00 [16:45:22]wFMCommunicate OK [16:45:22]SAM_PROTO_SignData done [16:45:22]FM_MakeSignedData done [16:45:22]CreateOFDProtocolMessage [16:45:22]wFMCommunicate request_size=4 [16:45:22]MH_SAM_APDU [16:45:22]CAPDU: 80 11 00 00 [16:45:22]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:22]Read from MH i2c: E2 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: E2 17 00 [16:45:22]MH_I2C_Read... [16:45:22]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 37 36 90 00 8E [16:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:45:22]wFMCommunicate OK [16:45:22]CreateOFDProtocolMessage done [16:45:22]OFDSenderStorePacket 140260 [16:45:22]StoreOFDPacket docnum=140260 [16:45:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6A A8 07 01 93 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A2 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 23 02 00 35 04 06 00 DE 51 F2 CE 65 CC F7 04 D7 BD 8B 97 C9 60 [16:45:22]CheckFolder [16:45:22]dirname=/storage/ofd_packets [16:45:22]CheckFolder done [16:45:22]ProducePacketName [16:45:22]name=ofd_packets/00140260 [16:45:22]NVStorageSaveData ofd_packets/00140260 [16:45:22]File name is /storage/ofd_packets/00140260 [16:45:22]Write 301 bytes [16:45:22]NVStorageSaveData done [16:45:22]OFDSenderStorePacket done [16:45:22]KKMCreateOFDPacket done [16:45:22]NVStorageSaveData kkm_last_timestamp [16:45:22]File name is /storage/kkm_last_timestamp [16:45:22]Write 4 bytes [16:45:22]NVStorageSaveData done [16:45:22]ExternCall_PrintAddStr [16:45:22]wPrintStart [16:45:22]Write to MH i2c: 01 00 00 BC 02 BE [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: 01 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: 01 07 00 [16:45:22]MH_I2C_Read... [16:45:22]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [16:45:22]RasterBufferAndPrint [16:45:22]line Счет N : (1)594117 [16:45:22]line ИНН: 02508201610067 [16:45:22]line Контрольно-Кассовый Чек [16:45:22]line ПРОДАЖА [16:45:22]line ТРК (МРК, ГНК) : 32 [16:45:22]line Товар: 2710124130 [16:45:22]line Аи-92-К-5 [16:45:22]line 5.900 * 67.80 [16:45:22]line = 400.02 [16:45:22]line НДС 12% НСП 1% [16:45:22]line > о реализуемом товаре [16:45:22]line ОКРУГЛЕНИЕ: -0.02 [16:45:22]line ИТОГО: 400.00 [16:45:22]line Внесено: 400.00 [16:45:22]line СДАЧА: 0.00 [16:45:22]line НСП 1% : 3.54 [16:45:22]line НДС 12% : 42.48 [16:45:22]line Наличными: 400.00 [16:45:22]line Безнал.: 0.00 [16:45:22]line Место: АЗС № 136 "Партнер Нефть" [16:45:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:45:22]line СНО: Общий режим [16:45:22]line Чек 277 21.08.2024 16:45 [16:45:22]line Смена: 454 ФФД: 1.0 [16:45:22]line ЗНМ: 0300000067 [16:45:22]line РНМ: 0000000000092569 [16:45:22]line Версия ККМ: 001 [16:45:22]line ФМ: 0000000000871776 [16:45:22]line ФД: 140260 [16:45:22]line ФПД: 244443547329996 [16:45:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164522&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140260&fm=244443547329996&tin=02508201610067®Number=0000000000092569&sum=40000 [16:45:22]written 0, free lines is 4095 [16:45:22]OFD Sender: Processing packet 140260 [packets to send 137, broken 136] [16:45:22]ProducePacketName [16:45:22]name=ofd_packets/00140260 [16:45:22]OFD Sender: To server: pG, [16:45:22]CommunicateWithHost lk.salyk.kg:30040 [16:45:22]ConnectInit lk.salyk.kg [16:45:23]Connected sock=10 [16:45:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6A A8 07 01 93 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 A2 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E4 23 02 00 35 04 06 00 DE 51 F2 CE 65 CC F7 04 D7 BD 8B 97 C9 60 [16:45: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 37 36 4F 00 00 00 7B F4 47 00 C7 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 37 36 10 04 04 00 E4 23 02 00 F4 03 04 00 32 C0 C5 66 B6 04 01 00 00 67 D0 8E 23 96 F8 6B 5C [16:45:23]CommunicateWithHost err = 0 [16:45:23]CheckOFDResponse [16:45:23]1017 (14) - 77093643461234 [16:45:23]1041 (16) - 0000000000871776 [16:45:23]1040 (4) - 140260 [16:45:23]1012 (4) - 21.08.2024 10:23 [16:45:23]1206 (1) - 0 [16:45:23]OFD Sender: Remove packet 140260 [16:45:23]ProducePacketName [16:45:23]name=ofd_packets/00140260 [16:45:23]NVStorageDeleteData [16:45:23]Write to MH i2c: 01 00 00 E7 02 E9 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: 01 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: 01 07 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 DE 0C DA [16:45:23]RasterBufferAndPrint [16:45:23]line [16:45:23]line [16:45:23]line [16:45:23]line [16:45:23]line [16:45:23]written 0, free lines is 3300 [16:45:23]MH_Cut [16:45:23]Write to MH i2c: D1 01 00 EE 02 01 C2 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: D1 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: D1 01 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: D1 01 00 EE 02 00 C1 [16:45:23]Write to MH i2c: 01 00 00 EF 02 F1 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]OFD Sender: No OFD packet to send [16:45:24]*** Cut start [16:45:24]*** Partial cut [16:45:24]*** CUTSNS_PIN = 1 [16:45:24]*** CUTSNS_PIN = 0 [16:45:24]*** Brake cut motor [16:45:24]Read from MH i2c: 01 [16:45:24]MH_I2C_Read... [16:45:24]*** Stop cut motor [16:45:24]*** Cut end [16:45:24]Read from MH i2c: 01 07 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 FF 0F 06 [16:45:24]process_action close_receipt done [16:45:24]requested_data is exist [16:45:24]produce_requested_data [16:45:24]requested_item fm.sn is exist - process it [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 11 00 00 [16:45:24]Write to MH i2c: E2 08 00 F0 02 80 11 00 00 00 00 00 00 6C [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 17 00 [16:45:24]MH_I2C_Read... [16:45:24]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 37 36 90 00 C3 [16:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:45:24]wFMCommunicate OK [16:45:24]requested_item fd.num is exist - process it [16:45:24]SAM_PROTO_GetFieldsCounters [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 13 00 00 [16:45:24]Write to MH i2c: E2 08 00 F1 02 80 13 00 00 00 00 00 00 6F [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 62 00 [16:45:24]MH_I2C_Read... [16:45:24]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [16:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E4 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_GetFieldsCounters done [16:45:24]requested_item shift.num is exist - process it [16:45:24]requested_item shift.opened is exist - process it [16:45:24]req_shift_opened [16:45:24]FM_GetShiftState [16:45:24]SAM_PROTO_GetShiftState [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 13 01 00 [16:45:24]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0E 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F1 [16:45:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_GetShiftState done [16:45:24]FM_GetShiftState done [16:45:24]req_shift_opened done [16:45:24]requested_item shift.open_date is exist - process it [16:45:24]req_shift_open_date [16:45:24]req_shift_open_date done [16:45:24]produce_requested_data done [16:45:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140260,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:45:24]process_action_free close_receipt [16:45:24]json_value_free [16:45:24]json_value_free done [16:45:24]process_json_proto returns [16:45:24]Send response to host [16:45:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140260,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:45:24]free response buf [16:45:24]execute_script done [16:45:24]execute_script returns [16:45:24]free content buf [16:45:24]Sock 7.Close socket [16:45:24]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:21]accept exits with 9 [16:46:21]New connection [16:46:21]New thread 3067596132 created [16:46:21]Thread 3067452772 joined [16:46:21]Waiting for new connection... [16:46:21] Sock 9.Parse request [16:46:21]Sock 9.Check first char [16:46:21]Sock 9.First char is OK [16:46:21]request: POST /json_proto HTTP/1.0 [16:46:21]Method: POST [16:46:21]URL: /json_proto [16:46:21]Method is POST - this is cgi request [16:46:21]url: /json_proto [16:46:21]query_string will be loaded in cgi processing [16:46:21]execute_cgi json_proto POST (null) [16:46:21]execute_cgi path=json_proto method=POST [16:46:21]POST find Content-Length [16:46:21]Host: 172.17.45.67:8080 [16:46:21]Content-Length: 682 [16:46:21]Content-Type: application/json [16:46:21] [16:46:21]POST finish read [16:46:21]Found Content-Length = 682 [16:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:46:21]execute_script... [16:46: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)594118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:46:21]POST & json_proto [16:46:21]process_json_proto [16:46:21]json parsed OK: [16:46:21]protocol is kg_v1.0 [16:46:21]action value=close_receipt [16:46:21]process_action close_receipt [16:46:21]cmd_close_receipt [16:46:21]MH_GetDate [16:46:21]Write to MH i2c: F0 00 00 F3 02 E4 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 09 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: F0 09 00 F3 02 00 DE 19 C6 66 5F 7F 2B 66 7F [16:46:21]GetLastDocTimeStamp 1724258722 [16:46:21]current date 1724258782 [16:46:21]FM_GetShiftState [16:46:21]SAM_PROTO_GetShiftState [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 13 01 00 [16:46:21]Write to MH i2c: E2 08 00 F4 02 80 13 01 00 00 00 00 00 73 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 F4 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F3 [16:46:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:46:21]wFMCommunicate OK [16:46:21]SAM_PROTO_GetShiftState done [16:46:21]FM_GetShiftState done [16:46:21]opened in 1724200467 [16:46:21]opened+sec_in_day 1724286867 [16:46:21]quantity*price = 50063 [16:46:21]sum+1 = 50064 [16:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 278 21.08.2024 16:46 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140261 ФПД: 102075559103020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140261&fm=102075559103020&tin=02508201610067®Number=0000000000092569&sum=50000 [16:46:23]StoreToDocumentArchive [16:46:23]shift 454 fd 140261 [16:46:23]save to /storage/0454/doc_00140261 [16:46:23]save last doc name /storage/0454/doc_00140261 to /storage/kkm_last_doc_name [16:46:23]save OK [16:46:23]Clear old archive folders... [16:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:46:23]tlvbuf is 019CCBB0 [16:46:23]SAM_PROTO_ClearQueue [16:46:23]wFMCommunicate request_size=4 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 09 00 00 [16:46:23]Write to MH i2c: E2 08 00 01 03 80 09 00 00 00 00 00 00 76 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [16:46:23]RAPDU: 90 00 [16:46:23]wFMCommunicate OK [16:46:23]SAM_PROTO_ClearQueue done [16:46:23]KKMCreateOFDPacket [16:46:23]OFDProtocolAddRootSTLVToBuf [16:46:23]FM_MakeSignedData [16:46:23]FM_MakeSignedData [16:46:23]SAM_PROTO_SignData [16:46:23]wFMCommunicate request_size=4 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 0D 01 02 [16:46:23]Write to MH i2c: E2 08 00 02 03 80 0D 01 02 00 00 00 00 7E [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [16:46:23]RAPDU: 90 00 [16:46:23]wFMCommunicate OK [16:46:23]wFMCommunicate request_size=255 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 DE 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 23 02 00 35 04 06 00 [16:46:23]Write to MH i2c: E2 02 01 03 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 DE 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 23 02 00 35 04 06 00 00 00 88 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [16:46:23]RAPDU: 90 00 [16:46:23]wFMCommunicate OK [16:46:23]wFMCommunicate request_size=11 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 0D 02 02 06 5C D6 51 70 CA 2C [16:46:23]Write to MH i2c: E2 0E 00 04 03 80 0D 02 02 06 00 5C D6 51 70 CA 2C 00 00 76 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [16:46:23]RAPDU: 90 00 [16:46:23]wFMCommunicate OK [16:46:23]wFMCommunicate request_size=4 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 0D 03 02 [16:46:23]Write to MH i2c: E2 08 00 05 03 80 0D 03 02 00 00 00 00 83 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 0B 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 0B 00 05 03 00 CF 83 C9 90 76 82 8C AC 90 00 5F [16:46:23]RAPDU: CF 83 C9 90 76 82 8C AC 90 00 [16:46:23]wFMCommunicate OK [16:46:23]SAM_PROTO_SignData done [16:46:23]FM_MakeSignedData done [16:46:23]CreateOFDProtocolMessage [16:46:23]wFMCommunicate request_size=4 [16:46:23]MH_SAM_APDU [16:46:23]CAPDU: 80 11 00 00 [16:46:23]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:23]Read from MH i2c: E2 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: E2 17 00 [16:46:23]MH_I2C_Read... [16:46:23]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 37 36 90 00 DA [16:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:46:23]wFMCommunicate OK [16:46:23]CreateOFDProtocolMessage done [16:46:23]OFDSenderStorePacket 140261 [16:46:23]StoreOFDPacket docnum=140261 [16:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F7 B3 08 01 FB E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 DE 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 23 02 00 35 04 06 00 5C D6 51 70 CA 2C CF 83 C9 90 76 82 8C AC [16:46:23]CheckFolder [16:46:23]dirname=/storage/ofd_packets [16:46:23]CheckFolder done [16:46:23]ProducePacketName [16:46:23]name=ofd_packets/00140261 [16:46:23]NVStorageSaveData ofd_packets/00140261 [16:46:23]File name is /storage/ofd_packets/00140261 [16:46:23]Write 302 bytes [16:46:23]NVStorageSaveData done [16:46:23]OFDSenderStorePacket done [16:46:23]KKMCreateOFDPacket done [16:46:23]NVStorageSaveData kkm_last_timestamp [16:46:23]File name is /storage/kkm_last_timestamp [16:46:23]Write 4 bytes [16:46:23]NVStorageSaveData done [16:46:23]ExternCall_PrintAddStr [16:46:23]wPrintStart [16:46:23]Write to MH i2c: 01 00 00 07 03 0A [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 FF 0F 1F [16:46:23]RasterBufferAndPrint [16:46:23]line Счет N : (1)594118 [16:46:23]line ИНН: 02508201610067 [16:46:23]line Контрольно-Кассовый Чек [16:46:23]line ПРОДАЖА [16:46:23]line ТРК (МРК, ГНК) : 54 [16:46:23]line Товар: 2710194210 [16:46:23]line ДТ(л)-К-5 [16:46:23]line 6.570 * 76.20 [16:46:23]line = 500.63 [16:46:23]line НДС 12% НСП 1% [16:46:23]line > о реализуемом товаре [16:46:23]line ОКРУГЛЕНИЕ: -0.63 [16:46:23]line ИТОГО: 500.00 [16:46:23]line Внесено: 500.00 [16:46:23]line СДАЧА: 0.00 [16:46:23]line НСП 1% : 4.43 [16:46:23]line НДС 12% : 53.16 [16:46:23]line Наличными: 500.00 [16:46:23]line Безнал.: 0.00 [16:46:23]line Место: АЗС № 136 "Партнер Нефть" [16:46:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:46:23]line СНО: Общий режим [16:46:23]line Чек 278 21.08.2024 16:46 [16:46:23]line Смена: 454 ФФД: 1.0 [16:46:23]line ЗНМ: 0300000067 [16:46:23]line РНМ: 0000000000092569 [16:46:23]line Версия ККМ: 001 [16:46:23]line ФМ: 0000000000871776 [16:46:23]line ФД: 140261 [16:46:23]line ФПД: 102075559103020 [16:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T164622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140261&fm=102075559103020&tin=02508201610067®Number=0000000000092569&sum=50000 [16:46:23]OFD Sender: Processing packet 140261 [packets to send 137, broken 136] [16:46:23]ProducePacketName [16:46:23]name=ofd_packets/00140261 [16:46:23]OFD Sender: To server: pG, [16:46:23]CommunicateWithHost lk.salyk.kg:30040 [16:46:23]ConnectInit lk.salyk.kg [16:46:23]written 0, free lines is 4095 [16:46:24]Connected sock=10 [16: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 37 36 10 01 00 00 F7 B3 08 01 FB E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 DE 19 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E5 23 02 00 35 04 06 00 5C D6 51 70 CA 2C CF 83 C9 90 76 82 8C AC [16:46:24]Write to MH i2c: 01 00 00 32 03 35 [16:46:24]Write i2c OK [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 07 00 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 DA 0C 22 [16:46:24]RasterBufferAndPrint [16:46:24]line [16:46:24]line [16:46:24]line [16:46:24]line [16:46:24]line [16:46:24]written 0, free lines is 3297 [16: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 37 36 4F 00 00 00 63 CB 47 00 AD 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 37 36 10 04 04 00 E5 23 02 00 F4 03 04 00 6F C0 C5 66 B6 04 01 00 00 A2 09 F5 C0 0F 7B BD DB [16:46:24]CommunicateWithHost err = 0 [16:46:24]CheckOFDResponse [16:46:24]1017 (14) - 77093643461234 [16:46:24]1041 (16) - 0000000000871776 [16:46:24]1040 (4) - 140261 [16:46:24]1012 (4) - 21.08.2024 10:24 [16:46:24]1206 (1) - 0 [16:46:24]OFD Sender: Remove packet 140261 [16:46:24]ProducePacketName [16:46:24]name=ofd_packets/00140261 [16:46:24]NVStorageDeleteData [16:46:24]MH_Cut [16:46:24]Write to MH i2c: D1 01 00 39 03 01 0E [16:46:24]Write i2c OK [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: D1 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: D1 01 00 [16:46:24]MH_I2C_Read... [16:46:24]Read from MH i2c: D1 01 00 39 03 00 0D [16:46:24]Write to MH i2c: 01 00 00 3A 03 3D [16:46:24]Write i2c OK [16:46:24]MH_I2C_Read... [16:46:24]OFD Sender: No OFD packet to send [16:46:25]*** Cut start [16:46:25]*** Partial cut [16:46:25]*** CUTSNS_PIN = 1 [16:46:25]*** CUTSNS_PIN = 0 [16:46:25]*** Brake cut motor [16:46:25]Read from MH i2c: 01 [16:46:25]MH_I2C_Read... [16:46:25]*** Stop cut motor [16:46:25]*** Cut end [16:46:25]Read from MH i2c: 01 07 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 FF 0F 52 [16:46:25]process_action close_receipt done [16:46:25]requested_data is exist [16:46:25]produce_requested_data [16:46:25]requested_item fm.sn is exist - process it [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 11 00 00 [16:46:25]Write to MH i2c: E2 08 00 3B 03 80 11 00 00 00 00 00 00 B8 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 17 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 17 00 3B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [16:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:46:25]wFMCommunicate OK [16:46:25]requested_item fd.num is exist - process it [16:46:25]SAM_PROTO_GetFieldsCounters [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 13 00 00 [16:46:25]Write to MH i2c: E2 08 00 3C 03 80 13 00 00 00 00 00 00 BB [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 62 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 62 00 3C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [16:46: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E5 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:25]wFMCommunicate OK [16:46:25]SAM_PROTO_GetFieldsCounters done [16:46:25]requested_item shift.num is exist - process it [16:46:25]requested_item shift.opened is exist - process it [16:46:25]req_shift_opened [16:46:25]FM_GetShiftState [16:46:25]SAM_PROTO_GetShiftState [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 13 01 00 [16:46:25]Write to MH i2c: E2 08 00 3D 03 80 13 01 00 00 00 00 00 BD [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 3D 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3D [16:46:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:46:25]wFMCommunicate OK [16:46:25]SAM_PROTO_GetShiftState done [16:46:25]FM_GetShiftState done [16:46:25]req_shift_opened done [16:46:25]requested_item shift.open_date is exist - process it [16:46:25]req_shift_open_date [16:46:25]req_shift_open_date done [16:46:25]produce_requested_data done [16:46:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140261,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:46:25]process_action_free close_receipt [16:46:25]json_value_free [16:46:25]json_value_free done [16:46:25]process_json_proto returns [16:46:25]Send response to host [16:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140261,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:46:25]free response buf [16:46:25]execute_script done [16:46:25]execute_script returns [16:46:25]free content buf [16:46:25]Sock 9.Close socket [16:46:25]Sock 9.Thread stoped [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48: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:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:30]accept exits with 7 [16:50:30]New connection [16:50:30]New thread 3067452772 created [16:50:30]Thread 3067596132 joined [16:50:30]Waiting for new connection... [16:50:30] Sock 7.Parse request [16:50:30]Sock 7.Check first char [16:50:30]Sock 7.First char is OK [16:50:30]request: POST /json_proto HTTP/1.0 [16:50:30]Method: POST [16:50:30]URL: /json_proto [16:50:30]Method is POST - this is cgi request [16:50:30]url: /json_proto [16:50:30]query_string will be loaded in cgi processing [16:50:30]execute_cgi json_proto POST (null) [16:50:30]execute_cgi path=json_proto method=POST [16:50:30]POST find Content-Length [16:50:30]Host: 172.17.45.67:8080 [16:50:30]Content-Length: 677 [16:50:30]Content-Type: application/json [16:50:30] [16:50:30]POST finish read [16:50:30]Found Content-Length = 677 [16:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:30]execute_script... [16:50: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)594119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:30]POST & json_proto [16:50:30]process_json_proto [16:50:30]json parsed OK: [16:50:30]protocol is kg_v1.0 [16:50:30]action value=close_receipt [16:50:30]process_action close_receipt [16:50:30]cmd_close_receipt [16:50:30]MH_GetDate [16:50:30]Write to MH i2c: F0 00 00 3E 03 30 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: F0 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: F0 09 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: F0 09 00 3E 03 00 D7 1A C6 66 5F 7F 2B 66 C5 [16:50:30]GetLastDocTimeStamp 1724258782 [16:50:30]current date 1724259031 [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 3F 03 80 13 01 00 00 00 00 00 BF [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 3F 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3F [16:50:30]RAPDU: 09 00 01 13 36 C5 66 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]opened in 1724200467 [16:50:30]opened+sec_in_day 1724286867 [16:50:30]quantity*price = 30035 [16:50:30]sum+1 = 30036 [16:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 279 21.08.2024 16:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140262 ФПД: 116761739836661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140262&fm=116761739836661&tin=02508201610067®Number=0000000000092569&sum=30000 [16:50:32]StoreToDocumentArchive [16:50:32]shift 454 fd 140262 [16:50:32]save to /storage/0454/doc_00140262 [16:50:32]save last doc name /storage/0454/doc_00140262 to /storage/kkm_last_doc_name [16:50:32]save OK [16:50:32]Clear old archive folders... [16:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:32]tlvbuf is 019CC780 [16:50:32]SAM_PROTO_ClearQueue [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 09 00 00 [16:50:32]Write to MH i2c: E2 08 00 4C 03 80 09 00 00 00 00 00 00 C1 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [16:50:32]RAPDU: 90 00 [16:50:32]wFMCommunicate OK [16:50:32]SAM_PROTO_ClearQueue done [16:50:32]KKMCreateOFDPacket [16:50:32]OFDProtocolAddRootSTLVToBuf [16:50:32]FM_MakeSignedData [16:50:32]FM_MakeSignedData [16:50:32]SAM_PROTO_SignData [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 0D 01 02 [16:50:32]Write to MH i2c: E2 08 00 4D 03 80 0D 01 02 00 00 00 00 C9 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [16:50:32]RAPDU: 90 00 [16:50:32]wFMCommunicate OK [16:50:32]wFMCommunicate request_size=255 [16:50:32]MH_SAM_APDU [16:50: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 D7 1A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 23 02 00 35 04 06 00 6A [16:50:32]Write to MH i2c: E2 02 01 4E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 D7 1A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 23 02 00 35 04 06 00 6A 00 00 E2 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [16:50:32]RAPDU: 90 00 [16:50:32]wFMCommunicate OK [16:50:32]wFMCommunicate request_size=10 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 0D 02 02 05 31 B6 06 BC F5 [16:50:32]Write to MH i2c: E2 0D 00 4F 03 80 0D 02 02 05 00 31 B6 06 BC F5 00 00 74 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [16:50:32]RAPDU: 90 00 [16:50:32]wFMCommunicate OK [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 0D 03 02 [16:50:32]Write to MH i2c: E2 08 00 50 03 80 0D 03 02 00 00 00 00 CE [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 0B 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 0B 00 50 03 00 56 2A 88 68 53 04 B2 73 90 00 BB [16:50:32]RAPDU: 56 2A 88 68 53 04 B2 73 90 00 [16:50:32]wFMCommunicate OK [16:50:32]SAM_PROTO_SignData done [16:50:32]FM_MakeSignedData done [16:50:32]CreateOFDProtocolMessage [16:50:32]wFMCommunicate request_size=4 [16:50:32]MH_SAM_APDU [16:50:32]CAPDU: 80 11 00 00 [16:50:32]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:32]Read from MH i2c: E2 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 17 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [16:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:50:32]wFMCommunicate OK [16:50:32]CreateOFDProtocolMessage done [16:50:32]OFDSenderStorePacket 140262 [16:50:32]StoreOFDPacket docnum=140262 [16:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F6 54 07 01 C3 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 D7 1A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 23 02 00 35 04 06 00 6A 31 B6 06 BC F5 56 2A 88 68 53 04 B2 73 [16:50:32]CheckFolder [16:50:32]dirname=/storage/ofd_packets [16:50:32]CheckFolder done [16:50:32]ProducePacketName [16:50:32]name=ofd_packets/00140262 [16:50:32]NVStorageSaveData ofd_packets/00140262 [16:50:32]File name is /storage/ofd_packets/00140262 [16:50:32]Write 301 bytes [16:50:32]NVStorageSaveData done [16:50:32]OFDSenderStorePacket done [16:50:32]KKMCreateOFDPacket done [16:50:32]NVStorageSaveData kkm_last_timestamp [16:50:32]File name is /storage/kkm_last_timestamp [16:50:32]Write 4 bytes [16:50:32]NVStorageSaveData done [16:50:32]ExternCall_PrintAddStr [16:50:32]wPrintStart [16:50:32]Write to MH i2c: 01 00 00 52 03 55 [16:50:32]Write i2c OK [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 07 00 [16:50:32]MH_I2C_Read... [16:50:32]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 FF 0F 6A [16:50:32]RasterBufferAndPrint [16:50:32]line Счет N : (1)594119 [16:50:32]line ИНН: 02508201610067 [16:50:32]line Контрольно-Кассовый Чек [16:50:32]line ПРОДАЖА [16:50:32]line ТРК (МРК, ГНК) : 52 [16:50:32]line Товар: 2710124130 [16:50:32]line Аи-92-К-5 [16:50:32]line 4.430 * 67.80 [16:50:32]line = 300.35 [16:50:32]line НДС 12% НСП 1% [16:50:32]line > о реализуемом товаре [16:50:32]line ОКРУГЛЕНИЕ: -0.35 [16:50:32]line ИТОГО: 300.00 [16:50:32]line Внесено: 300.00 [16:50:32]line СДАЧА: 0.00 [16:50:32]line НСП 1% : 2.66 [16:50:32]line НДС 12% : 31.90 [16:50:32]line Наличными: 300.00 [16:50:32]line Безнал.: 0.00 [16:50:32]line Место: АЗС № 136 "Партнер Нефть" [16:50:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:50:32]line СНО: Общий режим [16:50:32]line Чек 279 21.08.2024 16:50 [16:50:32]line Смена: 454 ФФД: 1.0 [16:50:32]line ЗНМ: 0300000067 [16:50:32]line РНМ: 0000000000092569 [16:50:32]line Версия ККМ: 001 [16:50:32]line ФМ: 0000000000871776 [16:50:32]line ФД: 140262 [16:50:32]line ФПД: 116761739836661 [16:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140262&fm=116761739836661&tin=02508201610067®Number=0000000000092569&sum=30000 [16:50:32]written 0, free lines is 4095 [16:50:32]OFD Sender: Processing packet 140262 [packets to send 137, broken 136] [16:50:32]ProducePacketName [16:50:32]name=ofd_packets/00140262 [16:50:32]OFD Sender: To server: pG, [16:50:32]CommunicateWithHost lk.salyk.kg:30040 [16:50:32]ConnectInit lk.salyk.kg [16:50:33]Connected sock=10 [16:50: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 37 36 0F 01 00 00 F6 54 07 01 C3 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 D7 1A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E6 23 02 00 35 04 06 00 6A 31 B6 06 BC F5 56 2A 88 68 53 04 B2 73 [16:50: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 37 36 4F 00 00 00 28 2A 47 00 CD 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 37 36 10 04 04 00 E6 23 02 00 F4 03 04 00 68 C1 C5 66 B6 04 01 00 00 C7 02 99 23 C1 0E 00 1A [16:50:33]CommunicateWithHost err = 0 [16:50:33]CheckOFDResponse [16:50:33]1017 (14) - 77093643461234 [16:50:33]1041 (16) - 0000000000871776 [16:50:33]1040 (4) - 140262 [16:50:33]1012 (4) - 21.08.2024 10:28 [16:50:33]1206 (1) - 0 [16:50:33]OFD Sender: Remove packet 140262 [16:50:33]ProducePacketName [16:50:33]name=ofd_packets/00140262 [16:50:33]NVStorageDeleteData [16:50:33]Write to MH i2c: 01 00 00 7D 03 80 [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 D4 0C 67 [16:50:33]RasterBufferAndPrint [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]line [16:50:33]written 0, free lines is 3289 [16:50:33]MH_Cut [16:50:33]Write to MH i2c: D1 01 00 84 03 01 59 [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 01 00 [16:50:33]MH_I2C_Read... [16:50:33]Read from MH i2c: D1 01 00 84 03 00 58 [16:50:33]Write to MH i2c: 01 00 00 85 03 88 [16:50:33]Write i2c OK [16:50:33]MH_I2C_Read... [16:50:33]OFD Sender: No OFD packet to send [16:50:34]*** Cut start [16:50:34]*** Partial cut [16:50:34]*** CUTSNS_PIN = 1 [16:50:34]*** CUTSNS_PIN = 0 [16:50:34]*** Brake cut motor [16:50:34]Read from MH i2c: 01 [16:50:34]MH_I2C_Read... [16:50:34]*** Stop cut motor [16:50:34]*** Cut end [16:50:34]Read from MH i2c: 01 07 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 FF 0F 9D [16:50:34]process_action close_receipt done [16:50:34]requested_data is exist [16:50:34]produce_requested_data [16:50:34]requested_item fm.sn is exist - process it [16:50:34]wFMCommunicate request_size=4 [16:50:34]MH_SAM_APDU [16:50:34]CAPDU: 80 11 00 00 [16:50:34]Write to MH i2c: E2 08 00 86 03 80 11 00 00 00 00 00 00 03 [16:50:34]Write i2c OK [16:50:34]MH_I2C_Read... [16:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:34]Read from MH i2c: E2 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 17 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 17 00 86 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [16:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:50:34]wFMCommunicate OK [16:50:34]requested_item fd.num is exist - process it [16:50:34]SAM_PROTO_GetFieldsCounters [16:50:34]wFMCommunicate request_size=4 [16:50:34]MH_SAM_APDU [16:50:34]CAPDU: 80 13 00 00 [16:50:34]Write to MH i2c: E2 08 00 87 03 80 13 00 00 00 00 00 00 06 [16:50:34]Write i2c OK [16:50:34]MH_I2C_Read... [16:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:34]Read from MH i2c: E2 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 62 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 62 00 87 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 23 02 00 0E 04 04 00 C6 01 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 4B [16:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E6 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:34]wFMCommunicate OK [16:50:34]SAM_PROTO_GetFieldsCounters done [16:50:34]requested_item shift.num is exist - process it [16:50:34]requested_item shift.opened is exist - process it [16:50:34]req_shift_opened [16:50:34]FM_GetShiftState [16:50:34]SAM_PROTO_GetShiftState [16:50:34]wFMCommunicate request_size=4 [16:50:34]MH_SAM_APDU [16:50:34]CAPDU: 80 13 01 00 [16:50:34]Write to MH i2c: E2 08 00 88 03 80 13 01 00 00 00 00 00 08 [16:50:34]Write i2c OK [16:50:34]MH_I2C_Read... [16:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:34]Read from MH i2c: E2 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 0E 00 [16:50:34]MH_I2C_Read... [16:50:34]Read from MH i2c: E2 0E 00 88 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 88 [16:50:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:50:34]wFMCommunicate OK [16:50:34]SAM_PROTO_GetShiftState done [16:50:34]FM_GetShiftState done [16:50:34]req_shift_opened done [16:50:34]requested_item shift.open_date is exist - process it [16:50:34]req_shift_open_date [16:50:34]req_shift_open_date done [16:50:34]produce_requested_data done [16:50:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140262,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:50:34]process_action_free close_receipt [16:50:34]json_value_free [16:50:34]json_value_free done [16:50:34]process_json_proto returns [16:50:34]Send response to host [16:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140262,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:50:34]free response buf [16:50:34]execute_script done [16:50:34]execute_script returns [16:50:34]free content buf [16:50:34]Sock 7.Close socket [16:50:34]Sock 7.Thread stoped [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:19]int [16:51:19]Write to MH i2c: 01 00 00 89 03 8C [16:51:19]*** FLAG_PRN_KEY set [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 89 03 00 08 00 00 00 FF 0F A9 [16:51:19]state=0 [16:51:19]Key pressed [16:51:19]Feed [16:51:19]Write to MH i2c: D8 00 00 8A 03 64 [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D8 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D8 01 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D8 01 00 8A 03 00 65 [16:51:19]int [16:51:19]Write to MH i2c: 01 00 00 8B 03 8E [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 8B 03 00 48 00 00 00 3C 00 19 [16:51:19]state=2 [16:51:19]Key pressed [16:51:20]int [16:51:20]Write to MH i2c: 01 00 00 8C 03 8F [16:51:20]*** FLAG_PRN_KEY reset [16:51:20]Write i2c OK [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: 01 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: 01 07 00 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 F6 0F 9B [16:51:20]state=2 [16:51:20]Stop feed [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:22]accept exits with 9 [16:52:22]New connection [16:52:22]New thread 3067596132 created [16:52:22]Thread 3067452772 joined [16:52:22]Waiting for new connection... [16:52:22] Sock 9.Parse request [16:52:22]Sock 9.Check first char [16:52:22]Sock 9.First char is OK [16:52:22]request: POST /json_proto HTTP/1.0 [16:52:22]Method: POST [16:52:22]URL: /json_proto [16:52:22]Method is POST - this is cgi request [16:52:22]url: /json_proto [16:52:22]query_string will be loaded in cgi processing [16:52:22]execute_cgi json_proto POST (null) [16:52:22]execute_cgi path=json_proto method=POST [16:52:22]POST find Content-Length [16:52:22]Host: 172.17.45.67:8080 [16:52:22]Content-Length: 683 [16:52:22]Content-Type: application/json [16:52:22] [16:52:22]POST finish read [16:52:22]Found Content-Length = 683 [16:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:52:22]execute_script... [16:52: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)594120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:52:22]POST & json_proto [16:52:22]process_json_proto [16:52:22]json parsed OK: [16:52:22]protocol is kg_v1.0 [16:52:22]action value=close_receipt [16:52:22]process_action close_receipt [16:52:22]cmd_close_receipt [16:52:22]MH_GetDate [16:52:22]Write to MH i2c: F0 00 00 8D 03 7F [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 09 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: F0 09 00 8D 03 00 47 1B C6 66 5F 7F 2B 66 85 [16:52:22]GetLastDocTimeStamp 1724259031 [16:52:22]current date 1724259143 [16:52:22]FM_GetShiftState [16:52:22]SAM_PROTO_GetShiftState [16:52:22]wFMCommunicate request_size=4 [16:52:22]MH_SAM_APDU [16:52:22]CAPDU: 80 13 01 00 [16:52:22]Write to MH i2c: E2 08 00 8E 03 80 13 01 00 00 00 00 00 0E [16:52:22]Write i2c OK [16:52:22]MH_I2C_Read... [16:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:22]Read from MH i2c: E2 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 [16:52:22]MH_I2C_Read... [16:52:22]Read from MH i2c: E2 0E 00 8E 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8E [16:52:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:52:22]wFMCommunicate OK [16:52:22]SAM_PROTO_GetShiftState done [16:52:22]FM_GetShiftState done [16:52:22]opened in 1724200467 [16:52:22]opened+sec_in_day 1724286867 [16:52:22]quantity*price = 80010 [16:52:22]sum+1 = 80011 [16:52:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 280 21.08.2024 16:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140263 ФПД: 269704461952051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140263&fm=269704461952051&tin=02508201610067®Number=0000000000092569&sum=80000 [16:52:23]StoreToDocumentArchive [16:52:23]shift 454 fd 140263 [16:52:23]save to /storage/0454/doc_00140263 [16:52:23]save last doc name /storage/0454/doc_00140263 to /storage/kkm_last_doc_name [16:52:23]save OK [16:52:23]Clear old archive folders... [16:52:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:52:23]tlvbuf is 019AC220 [16:52:23]SAM_PROTO_ClearQueue [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 09 00 00 [16:52:23]Write to MH i2c: E2 08 00 9B 03 80 09 00 00 00 00 00 00 10 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]SAM_PROTO_ClearQueue done [16:52:23]KKMCreateOFDPacket [16:52:23]OFDProtocolAddRootSTLVToBuf [16:52:23]FM_MakeSignedData [16:52:23]FM_MakeSignedData [16:52:23]SAM_PROTO_SignData [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 01 02 [16:52:23]Write to MH i2c: E2 08 00 9C 03 80 0D 01 02 00 00 00 00 18 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=255 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 01 00 00 F4 03 04 00 47 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 23 02 00 35 04 06 00 [16:52:23]Write to MH i2c: E2 02 01 9D 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 01 00 00 F4 03 04 00 47 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 23 02 00 35 04 06 00 00 00 3C [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=11 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 02 02 06 F5 4B 76 A6 24 33 [16:52:23]Write to MH i2c: E2 0E 00 9E 03 80 0D 02 02 06 00 F5 4B 76 A6 24 33 00 00 DA [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [16:52:23]RAPDU: 90 00 [16:52:23]wFMCommunicate OK [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 0D 03 02 [16:52:23]Write to MH i2c: E2 08 00 9F 03 80 0D 03 02 00 00 00 00 1D [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 0B 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 0B 00 9F 03 00 8E 6D B9 0C B8 B7 B4 BD 90 00 BE [16:52:23]RAPDU: 8E 6D B9 0C B8 B7 B4 BD 90 00 [16:52:23]wFMCommunicate OK [16:52:23]SAM_PROTO_SignData done [16:52:23]FM_MakeSignedData done [16:52:23]CreateOFDProtocolMessage [16:52:23]wFMCommunicate request_size=4 [16:52:23]MH_SAM_APDU [16:52:23]CAPDU: 80 11 00 00 [16:52:23]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:23]Read from MH i2c: E2 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 17 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [16:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:23]wFMCommunicate OK [16:52:23]CreateOFDProtocolMessage done [16:52:23]OFDSenderStorePacket 140263 [16:52:23]StoreOFDPacket docnum=140263 [16:52:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F7 CE 08 01 87 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 01 00 00 F4 03 04 00 47 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 23 02 00 35 04 06 00 F5 4B 76 A6 24 33 8E 6D B9 0C B8 B7 B4 BD [16:52:23]CheckFolder [16:52:23]dirname=/storage/ofd_packets [16:52:23]CheckFolder done [16:52:23]ProducePacketName [16:52:23]name=ofd_packets/00140263 [16:52:23]NVStorageSaveData ofd_packets/00140263 [16:52:23]File name is /storage/ofd_packets/00140263 [16:52:23]Write 302 bytes [16:52:23]NVStorageSaveData done [16:52:23]OFDSenderStorePacket done [16:52:23]KKMCreateOFDPacket done [16:52:23]NVStorageSaveData kkm_last_timestamp [16:52:23]File name is /storage/kkm_last_timestamp [16:52:23]Write 4 bytes [16:52:23]NVStorageSaveData done [16:52:23]ExternCall_PrintAddStr [16:52:23]wPrintStart [16:52:23]Write to MH i2c: 01 00 00 A1 03 A4 [16:52:23]Write i2c OK [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 07 00 [16:52:23]MH_I2C_Read... [16:52:23]Read from MH i2c: 01 07 00 A1 03 00 00 00 00 00 FF 0F B9 [16:52:23]RasterBufferAndPrint [16:52:23]line Счет N : (1)594120 [16:52:23]line ИНН: 02508201610067 [16:52:23]line Контрольно-Кассовый Чек [16:52:23]line ПРОДАЖА [16:52:23]line ТРК (МРК, ГНК) : 21 [16:52:23]line Товар: 2710194210 [16:52:23]line ДТ(л)-К-5 [16:52:23]line 10.500 * 76.20 [16:52:23]line = 800.10 [16:52:23]line НДС 12% НСП 1% [16:52:23]line > о реализуемом товаре [16:52:23]line ОКРУГЛЕНИЕ: -0.10 [16:52:23]line ИТОГО: 800.00 [16:52:23]line Внесено: 800.00 [16:52:23]line СДАЧА: 0.00 [16:52:23]line НСП 1% : 7.08 [16:52:23]line НДС 12% : 84.97 [16:52:23]line Наличными: 800.00 [16:52:23]line Безнал.: 0.00 [16:52:24]line Место: АЗС № 136 "Партнер Нефть" [16:52:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:52:24]line СНО: Общий режим [16:52:24]line Чек 280 21.08.2024 16:52 [16:52:24]line Смена: 454 ФФД: 1.0 [16:52:24]line ЗНМ: 0300000067 [16:52:24]line РНМ: 0000000000092569 [16:52:24]line Версия ККМ: 001 [16:52:24]line ФМ: 0000000000871776 [16:52:24]line ФД: 140263 [16:52:24]line ФПД: 269704461952051 [16:52:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140263&fm=269704461952051&tin=02508201610067®Number=0000000000092569&sum=80000 [16:52:24]OFD Sender: Processing packet 140263 [packets to send 137, broken 136] [16:52:24]ProducePacketName [16:52:24]name=ofd_packets/00140263 [16:52:24]OFD Sender: To server: pG, [16:52:24]CommunicateWithHost lk.salyk.kg:30040 [16:52:24]ConnectInit lk.salyk.kg [16:52:24]written 0, free lines is 4095 [16:52:24]Connected sock=10 [16:52: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 37 36 10 01 00 00 F7 CE 08 01 87 7F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 01 00 00 F4 03 04 00 47 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 23 02 00 35 04 06 00 F5 4B 76 A6 24 33 8E 6D B9 0C B8 B7 B4 BD [16:52: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 37 36 4F 00 00 00 FF F1 47 00 5E 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E7 23 02 00 F4 03 04 00 D7 C1 C5 66 B6 04 01 00 00 B3 D3 70 70 7E 52 D8 CF [16:52:24]CommunicateWithHost err = 0 [16:52:24]CheckOFDResponse [16:52:24]1017 (14) - 77093643461234 [16:52:24]1041 (16) - 0000000000871776 [16:52:24]1040 (4) - 140263 [16:52:24]1012 (4) - 21.08.2024 10:30 [16:52:24]1206 (1) - 0 [16:52:24]OFD Sender: Remove packet 140263 [16:52:24]ProducePacketName [16:52:24]name=ofd_packets/00140263 [16:52:24]NVStorageDeleteData [16:52:24]Write to MH i2c: 01 00 00 CC 03 CF [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 07 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 EE 0C D0 [16:52:24]RasterBufferAndPrint [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]line [16:52:24]written 0, free lines is 3316 [16:52:24]MH_Cut [16:52:24]Write to MH i2c: D1 01 00 D3 03 01 A8 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 01 00 [16:52:24]MH_I2C_Read... [16:52:24]Read from MH i2c: D1 01 00 D3 03 00 A7 [16:52:24]Write to MH i2c: 01 00 00 D4 03 D7 [16:52:24]Write i2c OK [16:52:24]MH_I2C_Read... [16:52:25]OFD Sender: No OFD packet to send [16:52:25]*** Cut start [16:52:25]*** Partial cut [16:52:25]*** CUTSNS_PIN = 1 [16:52:25]*** CUTSNS_PIN = 0 [16:52:25]*** Brake cut motor [16:52:26]Read from MH i2c: 01 [16:52:26]MH_I2C_Read... [16:52:26]*** Stop cut motor [16:52:26]*** Cut end [16:52:26]Read from MH i2c: 01 07 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 FF 0F EC [16:52:26]process_action close_receipt done [16:52:26]requested_data is exist [16:52:26]produce_requested_data [16:52:26]requested_item fm.sn is exist - process it [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 11 00 00 [16:52:26]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:26]Read from MH i2c: E2 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 17 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [16:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:26]wFMCommunicate OK [16:52:26]requested_item fd.num is exist - process it [16:52:26]SAM_PROTO_GetFieldsCounters [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 13 00 00 [16:52:26]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:26]Read from MH i2c: E2 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 62 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 62 00 D6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 23 02 00 0E 04 04 00 C6 01 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 9E [16:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E7 23 02 00 0E 04 04 00 C6 01 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 [16:52:26]wFMCommunicate OK [16:52:26]SAM_PROTO_GetFieldsCounters done [16:52:26]requested_item shift.num is exist - process it [16:52:26]requested_item shift.opened is exist - process it [16:52:26]req_shift_opened [16:52:26]FM_GetShiftState [16:52:26]SAM_PROTO_GetShiftState [16:52:26]wFMCommunicate request_size=4 [16:52:26]MH_SAM_APDU [16:52:26]CAPDU: 80 13 01 00 [16:52:26]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [16:52:26]Write i2c OK [16:52:26]MH_I2C_Read... [16:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:26]Read from MH i2c: E2 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 0E 00 [16:52:26]MH_I2C_Read... [16:52:26]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [16:52:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:52:26]wFMCommunicate OK [16:52:26]SAM_PROTO_GetShiftState done [16:52:26]FM_GetShiftState done [16:52:26]req_shift_opened done [16:52:26]requested_item shift.open_date is exist - process it [16:52:26]req_shift_open_date [16:52:26]req_shift_open_date done [16:52:26]produce_requested_data done [16:52:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140263,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:52:26]process_action_free close_receipt [16:52:26]json_value_free [16:52:26]json_value_free done [16:52:26]process_json_proto returns [16:52:26]Send response to host [16:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140263,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:52:26]free response buf [16:52:26]execute_script done [16:52:26]execute_script returns [16:52:26]free content buf [16:52:26]Sock 9.Close socket [16:52:26]Sock 9.Thread stoped [16:52:30]OFD Sender: No OFD packet to send [16:52:35]accept exits with 7 [16:52:35]New connection [16:52:35]New thread 3067452772 created [16:52:35]Thread 3067596132 joined [16:52:35]Waiting for new connection... [16:52:35] Sock 7.Parse request [16:52:35]Sock 7.Check first char [16:52:35]Sock 7.First char is OK [16:52:35]request: POST /json_proto HTTP/1.0 [16:52:35]Method: POST [16:52:35]URL: /json_proto [16:52:35]Method is POST - this is cgi request [16:52:35]url: /json_proto [16:52:35]query_string will be loaded in cgi processing [16:52:35]execute_cgi json_proto POST (null) [16:52:35]execute_cgi path=json_proto method=POST [16:52:35]POST find Content-Length [16:52:35]Host: 172.17.45.67:8080 [16:52:35]Content-Length: 658 [16:52:35]Content-Type: application/json [16:52:35] [16:52:35]POST finish read [16:52:35]Found Content-Length = 658 [16:52:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:35]execute_script... [16:52: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)594121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:35]POST & json_proto [16:52:35]process_json_proto [16:52:35]json parsed OK: [16:52:35]protocol is kg_v1.0 [16:52:35]action value=close_receipt [16:52:35]process_action close_receipt [16:52:35]cmd_close_receipt [16:52:35]MH_GetDate [16:52:35]Write to MH i2c: F0 00 00 D8 03 CA [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: F0 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: F0 09 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: F0 09 00 D8 03 00 54 1B C6 66 5F 7F 2B 66 DD [16:52:35]GetLastDocTimeStamp 1724259143 [16:52:35]current date 1724259156 [16:52:35]FM_GetShiftState [16:52:35]SAM_PROTO_GetShiftState [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 13 01 00 [16:52:35]Write to MH i2c: E2 08 00 D9 03 80 13 01 00 00 00 00 00 59 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:35]OFD Sender: No OFD packet to send [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0E 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0E 00 D9 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [16:52:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_GetShiftState done [16:52:35]FM_GetShiftState done [16:52:35]opened in 1724200467 [16:52:35]opened+sec_in_day 1724286867 [16:52:35]quantity*price = 40041 [16:52:35]sum+1 = 40043 [16:52:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 281 21.08.2024 16:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140264 ФПД: 108089941950931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165236&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140264&fm=108089941950931&tin=02508201610067®Number=0000000000092569&sum=40000 [16:52:36]StoreToDocumentArchive [16:52:36]shift 454 fd 140264 [16:52:36]save to /storage/0454/doc_00140264 [16:52:36]save last doc name /storage/0454/doc_00140264 to /storage/kkm_last_doc_name [16:52:36]save OK [16:52:36]Clear old archive folders... [16:52:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:52:36]tlvbuf is 019ADCA0 [16:52:36]SAM_PROTO_ClearQueue [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 09 00 00 [16:52:36]Write to MH i2c: E2 08 00 E6 03 80 09 00 00 00 00 00 00 5B [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [16:52:36]RAPDU: 90 00 [16:52:36]wFMCommunicate OK [16:52:36]SAM_PROTO_ClearQueue done [16:52:36]KKMCreateOFDPacket [16:52:36]OFDProtocolAddRootSTLVToBuf [16:52:36]FM_MakeSignedData [16:52:36]FM_MakeSignedData [16:52:36]SAM_PROTO_SignData [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 0D 01 02 [16:52:36]Write to MH i2c: E2 08 00 E7 03 80 0D 01 02 00 00 00 00 63 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [16:52:36]RAPDU: 90 00 [16:52:36]wFMCommunicate OK [16:52:36]wFMCommunicate request_size=253 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 54 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 23 02 00 35 04 06 00 62 4E A6 98 01 D3 [16:52:36]Write to MH i2c: E2 00 01 E8 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 54 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 23 02 00 35 04 06 00 62 4E A6 98 01 D3 00 00 09 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [16:52:36]RAPDU: 90 00 [16:52:36]wFMCommunicate OK [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 0D 03 02 [16:52:36]Write to MH i2c: E2 08 00 E9 03 80 0D 03 02 00 00 00 00 67 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 0B 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 0B 00 E9 03 00 FF DE E9 28 88 21 EB 26 90 00 10 [16:52:36]RAPDU: FF DE E9 28 88 21 EB 26 90 00 [16:52:36]wFMCommunicate OK [16:52:36]SAM_PROTO_SignData done [16:52:36]FM_MakeSignedData done [16:52:36]CreateOFDProtocolMessage [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 11 00 00 [16:52:36]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 17 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [16:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:36]wFMCommunicate OK [16:52:36]CreateOFDProtocolMessage done [16:52:36]OFDSenderStorePacket 140264 [16:52:36]StoreOFDPacket docnum=140264 [16:52:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 48 6F 00 01 F7 38 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 54 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 23 02 00 35 04 06 00 62 4E A6 98 01 D3 FF DE E9 28 88 21 EB 26 [16:52:36]CheckFolder [16:52:36]dirname=/storage/ofd_packets [16:52:36]CheckFolder done [16:52:36]ProducePacketName [16:52:36]name=ofd_packets/00140264 [16:52:36]NVStorageSaveData ofd_packets/00140264 [16:52:36]File name is /storage/ofd_packets/00140264 [16:52:36]Write 294 bytes [16:52:36]NVStorageSaveData done [16:52:36]OFDSenderStorePacket done [16:52:36]KKMCreateOFDPacket done [16:52:36]NVStorageSaveData kkm_last_timestamp [16:52:36]File name is /storage/kkm_last_timestamp [16:52:36]Write 4 bytes [16:52:36]NVStorageSaveData done [16:52:36]ExternCall_PrintAddStr [16:52:36]wPrintStart [16:52:36]Write to MH i2c: 01 00 00 EB 03 EE [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [16:52:36]RasterBufferAndPrint [16:52:36]line Счет N : (1)594121 [16:52:36]line ИНН: 02508201610067 [16:52:36]line Контрольно-Кассовый Чек [16:52:36]line ПРОДАЖА [16:52:36]line ТРК (МРК, ГНК) : 43 [16:52:36]line Товар: 2710124130 [16:52:36]line SU-92 [16:52:36]line 5.820 * 68.80 [16:52:36]line = 400.42 [16:52:36]line НДС 12% НСП 1% [16:52:36]line > о реализуемом товаре [16:52:36]line ОКРУГЛЕНИЕ: -0.42 [16:52:36]line ИТОГО: 400.00 [16:52:36]line Внесено: 400.00 [16:52:36]line СДАЧА: 0.00 [16:52:36]line НСП 1% : 3.54 [16:52:36]line НДС 12% : 42.52 [16:52:36]line Наличными: 400.00 [16:52:36]line Безнал.: 0.00 [16:52:36]line Место: АЗС № 136 "Партнер Нефть" [16:52:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:52:36]line СНО: Общий режим [16:52:36]line Чек 281 21.08.2024 16:52 [16:52:36]line Смена: 454 ФФД: 1.0 [16:52:36]line ЗНМ: 0300000067 [16:52:36]line РНМ: 0000000000092569 [16:52:36]line Версия ККМ: 001 [16:52:36]line ФМ: 0000000000871776 [16:52:36]line ФД: 140264 [16:52:36]line ФПД: 108089941950931 [16:52:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165236&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140264&fm=108089941950931&tin=02508201610067®Number=0000000000092569&sum=40000 [16:52:36]written 0, free lines is 4095 [16:52:36]OFD Sender: Processing packet 140264 [packets to send 137, broken 136] [16:52:36]ProducePacketName [16:52:36]name=ofd_packets/00140264 [16:52:36]OFD Sender: To server: pG, [16:52:36]CommunicateWithHost lk.salyk.kg:30040 [16:52:36]ConnectInit lk.salyk.kg [16:52:37]Connected sock=10 [16:52: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 37 36 08 01 00 00 48 6F 00 01 F7 38 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 54 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E8 23 02 00 35 04 06 00 62 4E A6 98 01 D3 FF DE E9 28 88 21 EB 26 [16:52:37]Write to MH i2c: 01 00 00 16 04 1A [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 07 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 D9 0C 06 [16:52:37]RasterBufferAndPrint [16:52:37]line [16:52:37]line [16:52:37]line [16:52:37]line [16:52:37]line [16:52:37]written 0, free lines is 3299 [16:52:37]MH_Cut [16:52:37]Write to MH i2c: D1 01 00 1D 04 01 F3 [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: D1 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: D1 01 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: D1 01 00 1D 04 00 F2 [16:52:37]Write to MH i2c: 01 00 00 1E 04 22 [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52: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 37 36 4F 00 00 00 FF 2C 47 00 E7 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 37 36 10 04 04 00 E8 23 02 00 F4 03 04 00 E4 C1 C5 66 B6 04 01 00 00 BB 50 11 A7 F0 C5 EF DB [16:52:37]CommunicateWithHost err = 0 [16:52:37]CheckOFDResponse [16:52:37]1017 (14) - 77093643461234 [16:52:37]1041 (16) - 0000000000871776 [16:52:37]1040 (4) - 140264 [16:52:37]1012 (4) - 21.08.2024 10:31 [16:52:37]1206 (1) - 0 [16:52:37]OFD Sender: Remove packet 140264 [16:52:37]ProducePacketName [16:52:37]name=ofd_packets/00140264 [16:52:37]NVStorageDeleteData [16:52:37]OFD Sender: No OFD packet to send [16:52:38]*** Cut start [16:52:38]*** Partial cut [16:52:38]*** CUTSNS_PIN = 1 [16:52:38]*** CUTSNS_PIN = 0 [16:52:38]*** Brake cut motor [16:52:38]Read from MH i2c: 01 [16:52:38]MH_I2C_Read... [16:52:38]*** Stop cut motor [16:52:38]*** Cut end [16:52:38]Read from MH i2c: 01 07 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [16:52:38]process_action close_receipt done [16:52:38]requested_data is exist [16:52:38]produce_requested_data [16:52:38]requested_item fm.sn is exist - process it [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 11 00 00 [16:52:38]Write to MH i2c: E2 08 00 1F 04 80 11 00 00 00 00 00 00 9D [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 17 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 17 00 1F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [16:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:52:38]wFMCommunicate OK [16:52:38]requested_item fd.num is exist - process it [16:52:38]SAM_PROTO_GetFieldsCounters [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 13 00 00 [16:52:38]Write to MH i2c: E2 08 00 20 04 80 13 00 00 00 00 00 00 A0 [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 62 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 62 00 20 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [16:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E8 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:38]wFMCommunicate OK [16:52:38]SAM_PROTO_GetFieldsCounters done [16:52:38]requested_item shift.num is exist - process it [16:52:38]requested_item shift.opened is exist - process it [16:52:38]req_shift_opened [16:52:38]FM_GetShiftState [16:52:38]SAM_PROTO_GetShiftState [16:52:38]wFMCommunicate request_size=4 [16:52:38]MH_SAM_APDU [16:52:38]CAPDU: 80 13 01 00 [16:52:38]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [16:52:38]Write i2c OK [16:52:38]MH_I2C_Read... [16:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:38]Read from MH i2c: E2 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 0E 00 [16:52:38]MH_I2C_Read... [16:52:38]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 22 [16:52:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:52:38]wFMCommunicate OK [16:52:38]SAM_PROTO_GetShiftState done [16:52:38]FM_GetShiftState done [16:52:38]req_shift_opened done [16:52:38]requested_item shift.open_date is exist - process it [16:52:38]req_shift_open_date [16:52:38]req_shift_open_date done [16:52:38]produce_requested_data done [16:52:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140264,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:52:38]process_action_free close_receipt [16:52:38]json_value_free [16:52:38]json_value_free done [16:52:38]process_json_proto returns [16:52:38]Send response to host [16:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140264,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:52:38]free response buf [16:52:38]execute_script done [16:52:38]execute_script returns [16:52:38]free content buf [16:52:38]Sock 7.Close socket [16:52:38]Sock 7.Thread stoped [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53: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:08]OFD Sender: No OFD packet to send [16:55:09]accept exits with 9 [16:55:09]New connection [16:55:09]New thread 3067596132 created [16:55:09]Thread 3067452772 joined [16:55:09]Waiting for new connection... [16:55:09] Sock 9.Parse request [16:55:09]Sock 9.Check first char [16:55:09]Sock 9.First char is OK [16:55:09]request: POST /json_proto HTTP/1.0 [16:55:09]Method: POST [16:55:09]URL: /json_proto [16:55:09]Method is POST - this is cgi request [16:55:09]url: /json_proto [16:55:09]query_string will be loaded in cgi processing [16:55:09]execute_cgi json_proto POST (null) [16:55:09]execute_cgi path=json_proto method=POST [16:55:09]POST find Content-Length [16:55:09]Host: 172.17.45.67:8080 [16:55:09]Content-Length: 677 [16:55:09]Content-Type: application/json [16:55:09] [16:55:09]POST finish read [16:55:09]Found Content-Length = 677 [16:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:09]execute_script... [16:55: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)594122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:09]POST & json_proto [16:55:09]process_json_proto [16:55:09]json parsed OK: [16:55:09]protocol is kg_v1.0 [16:55:09]action value=close_receipt [16:55:09]process_action close_receipt [16:55:09]cmd_close_receipt [16:55:09]MH_GetDate [16:55:09]Write to MH i2c: F0 00 00 22 04 15 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 09 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: F0 09 00 22 04 00 EE 1B C6 66 5F 7F 2B 66 C2 [16:55:09]GetLastDocTimeStamp 1724259156 [16:55:09]current date 1724259310 [16:55:09]FM_GetShiftState [16:55:09]SAM_PROTO_GetShiftState [16:55:09]wFMCommunicate request_size=4 [16:55:09]MH_SAM_APDU [16:55:09]CAPDU: 80 13 01 00 [16:55:09]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [16:55:09]Write i2c OK [16:55:09]MH_I2C_Read... [16:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:09]Read from MH i2c: E2 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0E 00 [16:55:09]MH_I2C_Read... [16:55:09]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 24 [16:55:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:55:09]wFMCommunicate OK [16:55:09]SAM_PROTO_GetShiftState done [16:55:09]FM_GetShiftState done [16:55:09]opened in 1724200467 [16:55:09]opened+sec_in_day 1724286867 [16:55:09]quantity*price = 50036 [16:55:09]sum+1 = 50037 [16:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 282 21.08.2024 16:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140265 ФПД: 249659134893722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140265&fm=249659134893722&tin=02508201610067®Number=0000000000092569&sum=50000 [16:55:10]StoreToDocumentArchive [16:55:10]shift 454 fd 140265 [16:55:10]save to /storage/0454/doc_00140265 [16:55:10]save last doc name /storage/0454/doc_00140265 to /storage/kkm_last_doc_name [16:55:10]save OK [16:55:10]Clear old archive folders... [16:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:10]tlvbuf is 019ACA30 [16:55:10]SAM_PROTO_ClearQueue [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 09 00 00 [16:55:10]Write to MH i2c: E2 08 00 30 04 80 09 00 00 00 00 00 00 A6 [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:10]Read from MH i2c: E2 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 [16:55:10]MH_I2C_Read... [16:55:10]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [16:55:10]RAPDU: 90 00 [16:55:10]wFMCommunicate OK [16:55:10]SAM_PROTO_ClearQueue done [16:55:10]KKMCreateOFDPacket [16:55:10]OFDProtocolAddRootSTLVToBuf [16:55:10]FM_MakeSignedData [16:55:10]FM_MakeSignedData [16:55:10]SAM_PROTO_SignData [16:55:10]wFMCommunicate request_size=4 [16:55:10]MH_SAM_APDU [16:55:10]CAPDU: 80 0D 01 02 [16:55:10]Write to MH i2c: E2 08 00 31 04 80 0D 01 02 00 00 00 00 AE [16:55:10]Write i2c OK [16:55:10]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=255 [16:55:11]MH_SAM_APDU [16:55: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EE 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 23 02 00 35 04 06 00 E3 [16:55:11]Write to MH i2c: E2 02 01 32 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EE 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 23 02 00 35 04 06 00 E3 00 00 3F [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=10 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 02 02 05 10 4C 0C DE 9A [16:55:11]Write to MH i2c: E2 0D 00 33 04 80 0D 02 02 05 00 10 4C 0C DE 9A 00 00 9B [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [16:55:11]RAPDU: 90 00 [16:55:11]wFMCommunicate OK [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 0D 03 02 [16:55:11]Write to MH i2c: E2 08 00 34 04 80 0D 03 02 00 00 00 00 B3 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0B 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0B 00 34 04 00 2B FB 2D 26 B4 AD 6D BB 90 00 B6 [16:55:11]RAPDU: 2B FB 2D 26 B4 AD 6D BB 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_SignData done [16:55:11]FM_MakeSignedData done [16:55:11]CreateOFDProtocolMessage [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 11 00 00 [16:55:11]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [16:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:55:11]wFMCommunicate OK [16:55:11]CreateOFDProtocolMessage done [16:55:11]OFDSenderStorePacket 140265 [16:55:11]StoreOFDPacket docnum=140265 [16:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E0 F6 07 01 ED 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EE 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 23 02 00 35 04 06 00 E3 10 4C 0C DE 9A 2B FB 2D 26 B4 AD 6D BB [16:55:11]CheckFolder [16:55:11]dirname=/storage/ofd_packets [16:55:11]CheckFolder done [16:55:11]ProducePacketName [16:55:11]name=ofd_packets/00140265 [16:55:11]NVStorageSaveData ofd_packets/00140265 [16:55:11]File name is /storage/ofd_packets/00140265 [16:55:11]Write 301 bytes [16:55:11]NVStorageSaveData done [16:55:11]OFDSenderStorePacket done [16:55:11]KKMCreateOFDPacket done [16:55:11]NVStorageSaveData kkm_last_timestamp [16:55:11]File name is /storage/kkm_last_timestamp [16:55:11]Write 4 bytes [16:55:11]NVStorageSaveData done [16:55:11]ExternCall_PrintAddStr [16:55:11]wPrintStart [16:55:11]Write to MH i2c: 01 00 00 36 04 3A [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [16:55:11]RasterBufferAndPrint [16:55:11]line Счет N : (1)594122 [16:55:11]line ИНН: 02508201610067 [16:55:11]line Контрольно-Кассовый Чек [16:55:11]line ПРОДАЖА [16:55:11]line ТРК (МРК, ГНК) : 42 [16:55:11]line Товар: 2710124130 [16:55:11]line Аи-92-К-5 [16:55:11]line 7.380 * 67.80 [16:55:11]line = 500.36 [16:55:11]line НДС 12% НСП 1% [16:55:11]line > о реализуемом товаре [16:55:11]line ОКРУГЛЕНИЕ: -0.36 [16:55:11]line ИТОГО: 500.00 [16:55:11]line Внесено: 500.00 [16:55:11]line СДАЧА: 0.00 [16:55:11]line НСП 1% : 4.43 [16:55:11]line НДС 12% : 53.14 [16:55:11]line Наличными: 500.00 [16:55:11]line Безнал.: 0.00 [16:55:11]line Место: АЗС № 136 "Партнер Нефть" [16:55:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:55:11]line СНО: Общий режим [16:55:11]line Чек 282 21.08.2024 16:55 [16:55:11]line Смена: 454 ФФД: 1.0 [16:55:11]line ЗНМ: 0300000067 [16:55:11]line РНМ: 0000000000092569 [16:55:11]line Версия ККМ: 001 [16:55:11]line ФМ: 0000000000871776 [16:55:11]line ФД: 140265 [16:55:11]line ФПД: 249659134893722 [16:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140265&fm=249659134893722&tin=02508201610067®Number=0000000000092569&sum=50000 [16:55:11]written 0, free lines is 4095 [16:55:11]OFD Sender: Processing packet 140265 [packets to send 137, broken 136] [16:55:11]ProducePacketName [16:55:11]name=ofd_packets/00140265 [16:55:11]OFD Sender: To server: pG, [16:55:11]CommunicateWithHost lk.salyk.kg:30040 [16:55:11]ConnectInit lk.salyk.kg [16:55:11]Connected sock=10 [16:55: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 37 36 0F 01 00 00 E0 F6 07 01 ED 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 EE 1B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 E9 23 02 00 35 04 06 00 E3 10 4C 0C DE 9A 2B FB 2D 26 B4 AD 6D BB [16:55: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 37 36 4F 00 00 00 6C 64 47 00 7A 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 37 36 10 04 04 00 E9 23 02 00 F4 03 04 00 7F C2 C5 66 B6 04 01 00 00 85 3F 85 80 3C D6 C6 6B [16:55:12]CommunicateWithHost err = 0 [16:55:12]CheckOFDResponse [16:55:12]1017 (14) - 77093643461234 [16:55:12]1041 (16) - 0000000000871776 [16:55:12]1040 (4) - 140265 [16:55:12]1012 (4) - 21.08.2024 10:33 [16:55:12]1206 (1) - 0 [16:55:12]OFD Sender: Remove packet 140265 [16:55:12]ProducePacketName [16:55:12]name=ofd_packets/00140265 [16:55:12]NVStorageDeleteData [16:55:12]Write to MH i2c: 01 00 00 61 04 65 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 D5 0C 4D [16:55:12]RasterBufferAndPrint [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]line [16:55:12]written 0, free lines is 3290 [16:55:12]MH_Cut [16:55:12]Write to MH i2c: D1 01 00 68 04 01 3E [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 01 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: D1 01 00 68 04 00 3D [16:55:12]Write to MH i2c: 01 00 00 69 04 6D [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]OFD Sender: No OFD packet to send [16:55:12]*** Cut start [16:55:12]*** Partial cut [16:55:12]*** CUTSNS_PIN = 1 [16:55:13]*** CUTSNS_PIN = 0 [16:55:13]*** Brake cut motor [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]*** Stop cut motor [16:55:13]*** Cut end [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [16:55:13]process_action close_receipt done [16:55:13]requested_data is exist [16:55:13]produce_requested_data [16:55:13]requested_item fm.sn is exist - process it [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 11 00 00 [16:55:13]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [16:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:55:13]wFMCommunicate OK [16:55:13]requested_item fd.num is exist - process it [16:55:13]SAM_PROTO_GetFieldsCounters [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 00 00 [16:55:13]Write to MH i2c: E2 08 00 6B 04 80 13 00 00 00 00 00 00 EB [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 62 00 6B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 E9 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetFieldsCounters done [16:55:13]requested_item shift.num is exist - process it [16:55:13]requested_item shift.opened is exist - process it [16:55:13]req_shift_opened [16:55:13]FM_GetShiftState [16:55:13]SAM_PROTO_GetShiftState [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 13 01 00 [16:55:13]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6D [16:55:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_GetShiftState done [16:55:13]FM_GetShiftState done [16:55:13]req_shift_opened done [16:55:13]requested_item shift.open_date is exist - process it [16:55:13]req_shift_open_date [16:55:13]req_shift_open_date done [16:55:13]produce_requested_data done [16:55:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140265,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:55:13]process_action_free close_receipt [16:55:13]json_value_free [16:55:13]json_value_free done [16:55:13]process_json_proto returns [16:55:13]Send response to host [16:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140265,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:55:13]free response buf [16:55:13]execute_script done [16:55:13]execute_script returns [16:55:13]free content buf [16:55:13]Sock 9.Close socket [16:55:13]Sock 9.Thread stoped [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:54]accept exits with 7 [16:57:54]New connection [16:57:54]New thread 3067452772 created [16:57:54]Thread 3067596132 joined [16:57:54]Waiting for new connection... [16:57:54] Sock 7.Parse request [16:57:54]Sock 7.Check first char [16:57:54]Sock 7.First char is OK [16:57:54]request: POST /json_proto HTTP/1.0 [16:57:54]Method: POST [16:57:54]URL: /json_proto [16:57:54]Method is POST - this is cgi request [16:57:54]url: /json_proto [16:57:54]query_string will be loaded in cgi processing [16:57:54]execute_cgi json_proto POST (null) [16:57:54]execute_cgi path=json_proto method=POST [16:57:54]POST find Content-Length [16:57:54]Host: 172.17.45.67:8080 [16:57:54]Content-Length: 677 [16:57:54]Content-Type: application/json [16:57:54] [16:57:54]POST finish read [16:57:54]Found Content-Length = 677 [16:57:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:54]execute_script... [16:57: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)594123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:54]POST & json_proto [16:57:54]process_json_proto [16:57:54]json parsed OK: [16:57:54]protocol is kg_v1.0 [16:57:54]action value=close_receipt [16:57:54]process_action close_receipt [16:57:54]cmd_close_receipt [16:57:54]MH_GetDate [16:57:54]Write to MH i2c: F0 00 00 6D 04 60 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: F0 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: F0 09 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: F0 09 00 6D 04 00 93 1C C6 66 5F 7F 2B 66 B3 [16:57:54]GetLastDocTimeStamp 1724259310 [16:57:54]current date 1724259475 [16:57:54]FM_GetShiftState [16:57:54]SAM_PROTO_GetShiftState [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 13 01 00 [16:57:54]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6F [16:57:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_GetShiftState done [16:57:54]FM_GetShiftState done [16:57:54]opened in 1724200467 [16:57:54]opened+sec_in_day 1724286867 [16:57:54]quantity*price = 30035 [16:57:54]sum+1 = 30036 [16:57:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 283 21.08.2024 16:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140266 ФПД: 18725701581714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140266&fm=18725701581714&tin=02508201610067®Number=0000000000092569&sum=30000 [16:57:55]StoreToDocumentArchive [16:57:55]shift 454 fd 140266 [16:57:55]save to /storage/0454/doc_00140266 [16:57:55]save last doc name /storage/0454/doc_00140266 to /storage/kkm_last_doc_name [16:57:55]save OK [16:57:55]Clear old archive folders... [16:57:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:55]tlvbuf is B6F77780 [16:57:55]SAM_PROTO_ClearQueue [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 09 00 00 [16:57:55]Write to MH i2c: E2 08 00 7B 04 80 09 00 00 00 00 00 00 F1 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]SAM_PROTO_ClearQueue done [16:57:55]KKMCreateOFDPacket [16:57:55]OFDProtocolAddRootSTLVToBuf [16:57:55]FM_MakeSignedData [16:57:55]FM_MakeSignedData [16:57:55]SAM_PROTO_SignData [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 01 02 [16:57:55]Write to MH i2c: E2 08 00 7C 04 80 0D 01 02 00 00 00 00 F9 [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=255 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 93 1C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 23 02 00 35 04 06 00 11 [16:57:55]Write to MH i2c: E2 02 01 7D 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 93 1C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 23 02 00 35 04 06 00 11 00 00 7F [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=10 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 02 02 05 07 EA CA 7B 92 [16:57:55]Write to MH i2c: E2 0D 00 7E 04 80 0D 02 02 05 00 07 EA CA 7B 92 00 00 CE [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [16:57:55]RAPDU: 90 00 [16:57:55]wFMCommunicate OK [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 0D 03 02 [16:57:55]Write to MH i2c: E2 08 00 7F 04 80 0D 03 02 00 00 00 00 FE [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:55]Read from MH i2c: E2 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 0B 00 [16:57:55]MH_I2C_Read... [16:57:55]Read from MH i2c: E2 0B 00 7F 04 00 45 A0 D6 C2 EE EF 04 E3 90 00 40 [16:57:55]RAPDU: 45 A0 D6 C2 EE EF 04 E3 90 00 [16:57:55]wFMCommunicate OK [16:57:55]SAM_PROTO_SignData done [16:57:55]FM_MakeSignedData done [16:57:55]CreateOFDProtocolMessage [16:57:55]wFMCommunicate request_size=4 [16:57:55]MH_SAM_APDU [16:57:55]CAPDU: 80 11 00 00 [16:57:55]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [16:57:55]Write i2c OK [16:57:55]MH_I2C_Read... [16:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:56]Read from MH i2c: E2 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [16:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:57:56]wFMCommunicate OK [16:57:56]CreateOFDProtocolMessage done [16:57:56]OFDSenderStorePacket 140266 [16:57:56]StoreOFDPacket docnum=140266 [16:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B9 50 07 01 3E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 93 1C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 23 02 00 35 04 06 00 11 07 EA CA 7B 92 45 A0 D6 C2 EE EF 04 E3 [16:57:56]CheckFolder [16:57:56]dirname=/storage/ofd_packets [16:57:56]CheckFolder done [16:57:56]ProducePacketName [16:57:56]name=ofd_packets/00140266 [16:57:56]NVStorageSaveData ofd_packets/00140266 [16:57:56]File name is /storage/ofd_packets/00140266 [16:57:56]Write 301 bytes [16:57:56]NVStorageSaveData done [16:57:56]OFDSenderStorePacket done [16:57:56]KKMCreateOFDPacket done [16:57:56]NVStorageSaveData kkm_last_timestamp [16:57:56]File name is /storage/kkm_last_timestamp [16:57:56]Write 4 bytes [16:57:56]NVStorageSaveData done [16:57:56]ExternCall_PrintAddStr [16:57:56]wPrintStart [16:57:56]Write to MH i2c: 01 00 00 81 04 85 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 FF 0F 9A [16:57:56]RasterBufferAndPrint [16:57:56]line Счет N : (1)594123 [16:57:56]line ИНН: 02508201610067 [16:57:56]line Контрольно-Кассовый Чек [16:57:56]line ПРОДАЖА [16:57:56]line ТРК (МРК, ГНК) : 32 [16:57:56]line Товар: 2710124130 [16:57:56]line Аи-92-К-5 [16:57:56]line 4.430 * 67.80 [16:57:56]line = 300.35 [16:57:56]line НДС 12% НСП 1% [16:57:56]line > о реализуемом товаре [16:57:56]line ОКРУГЛЕНИЕ: -0.35 [16:57:56]line ИТОГО: 300.00 [16:57:56]line Внесено: 300.00 [16:57:56]line СДАЧА: 0.00 [16:57:56]line НСП 1% : 2.66 [16:57:56]line НДС 12% : 31.90 [16:57:56]line Наличными: 300.00 [16:57:56]line Безнал.: 0.00 [16:57:56]line Место: АЗС № 136 "Партнер Нефть" [16:57:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [16:57:56]line СНО: Общий режим [16:57:56]line Чек 283 21.08.2024 16:57 [16:57:56]line Смена: 454 ФФД: 1.0 [16:57:56]line ЗНМ: 0300000067 [16:57:56]line РНМ: 0000000000092569 [16:57:56]line Версия ККМ: 001 [16:57:56]line ФМ: 0000000000871776 [16:57:56]line ФД: 140266 [16:57:56]line ФПД: 18725701581714 [16:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T165755&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140266&fm=18725701581714&tin=02508201610067®Number=0000000000092569&sum=30000 [16:57:56]OFD Sender: Processing packet 140266 [packets to send 137, broken 136] [16:57:56]ProducePacketName [16:57:56]name=ofd_packets/00140266 [16:57:56]OFD Sender: To server: pG, [16:57:56]CommunicateWithHost lk.salyk.kg:30040 [16:57:56]ConnectInit lk.salyk.kg [16:57:56]written 0, free lines is 4095 [16:57:56]Connected sock=10 [16:57:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B9 50 07 01 3E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 93 1C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EA 23 02 00 35 04 06 00 11 07 EA CA 7B 92 45 A0 D6 C2 EE EF 04 E3 [16:57:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1D C4 47 00 7D 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 37 36 10 04 04 00 EA 23 02 00 F4 03 04 00 23 C3 C5 66 B6 04 01 00 00 46 35 A1 27 EF DF F2 A9 [16:57:56]CommunicateWithHost err = 0 [16:57:56]CheckOFDResponse [16:57:56]1017 (14) - 77093643461234 [16:57:56]1041 (16) - 0000000000871776 [16:57:56]1040 (4) - 140266 [16:57:56]1012 (4) - 21.08.2024 10:36 [16:57:56]1206 (1) - 0 [16:57:56]OFD Sender: Remove packet 140266 [16:57:56]ProducePacketName [16:57:56]name=ofd_packets/00140266 [16:57:56]NVStorageDeleteData [16:57:56]Write to MH i2c: 01 00 00 AC 04 B0 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 DA 0C 9D [16:57:56]RasterBufferAndPrint [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]line [16:57:56]written 0, free lines is 3297 [16:57:56]MH_Cut [16:57:56]Write to MH i2c: D1 01 00 B3 04 01 89 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 01 00 [16:57:56]MH_I2C_Read... [16:57:56]Read from MH i2c: D1 01 00 B3 04 00 88 [16:57:56]Write to MH i2c: 01 00 00 B4 04 B8 [16:57:56]Write i2c OK [16:57:56]MH_I2C_Read... [16:57:57]OFD Sender: No OFD packet to send [16:57:57]*** Cut start [16:57:57]*** Partial cut [16:57:57]*** CUTSNS_PIN = 1 [16:57:57]*** CUTSNS_PIN = 0 [16:57:57]*** Brake cut motor [16:57:58]Read from MH i2c: 01 [16:57:58]MH_I2C_Read... [16:57:58]*** Stop cut motor [16:57:58]*** Cut end [16:57:58]Read from MH i2c: 01 07 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [16:57:58]process_action close_receipt done [16:57:58]requested_data is exist [16:57:58]produce_requested_data [16:57:58]requested_item fm.sn is exist - process it [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 11 00 00 [16:57:58]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [16:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [16:57:58]wFMCommunicate OK [16:57:58]requested_item fd.num is exist - process it [16:57:58]SAM_PROTO_GetFieldsCounters [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 13 00 00 [16:57:58]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 62 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 62 00 B6 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EA 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_GetFieldsCounters done [16:57:58]requested_item shift.num is exist - process it [16:57:58]requested_item shift.opened is exist - process it [16:57:58]req_shift_opened [16:57:58]FM_GetShiftState [16:57:58]SAM_PROTO_GetShiftState [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 13 01 00 [16:57:58]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0E 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B8 [16:57:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_GetShiftState done [16:57:58]FM_GetShiftState done [16:57:58]req_shift_opened done [16:57:58]requested_item shift.open_date is exist - process it [16:57:58]req_shift_open_date [16:57:58]req_shift_open_date done [16:57:58]produce_requested_data done [16:57:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140266,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [16:57:58]process_action_free close_receipt [16:57:58]json_value_free [16:57:58]json_value_free done [16:57:58]process_json_proto returns [16:57:58]Send response to host [16:57:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140266,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [16:57:58]free response buf [16:57:58]execute_script done [16:57:58]execute_script returns [16:57:58]free content buf [16:57:58]Sock 7.Close socket [16:57:58]Sock 7.Thread stoped [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:55]int [17:01:55]Write to MH i2c: 01 00 00 B8 04 BC [17:01:55]*** FLAG_PRN_KEY set [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 B8 04 00 08 00 00 00 FF 0F D9 [17:01:55]state=0 [17:01:55]Key pressed [17:01:55]Feed [17:01:55]Write to MH i2c: D8 00 00 B9 04 94 [17:01:55]Write i2c OK [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D8 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D8 01 00 [17:01:55]MH_I2C_Read... [17:01:55]Read from MH i2c: D8 01 00 B9 04 00 95 [17:01:55]int [17:01:55]Write to MH i2c: 01 00 00 BA 04 BE [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 BA 04 00 48 00 00 00 3C 00 49 [17:01:55]state=2 [17:01:55]Key pressed [17:01:55]int [17:01:55]Write to MH i2c: 01 00 00 BB 04 BF [17:01:55]*** FLAG_PRN_KEY reset [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 BB 04 00 00 00 00 00 F5 0F CA [17:01:55]state=2 [17:01:55]Stop feed [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:55]accept exits with 9 [17:02:55]New connection [17:02:55]New thread 3067596132 created [17:02:55]Thread 3067452772 joined [17:02:55]Waiting for new connection... [17:02:55] Sock 9.Parse request [17:02:55]Sock 9.Check first char [17:02:55]Sock 9.First char is OK [17:02:55]request: POST /json_proto HTTP/1.0 [17:02:55]Method: POST [17:02:55]URL: /json_proto [17:02:55]Method is POST - this is cgi request [17:02:55]url: /json_proto [17:02:55]query_string will be loaded in cgi processing [17:02:55]execute_cgi json_proto POST (null) [17:02:55]execute_cgi path=json_proto method=POST [17:02:55]POST find Content-Length [17:02:55]Host: 172.17.45.67:8080 [17:02:55]Content-Length: 792 [17:02:55]Content-Type: application/json [17:02:55] [17:02:55]POST finish read [17:02:55]Found Content-Length = 792 [17:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:55]execute_script... [17:02: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)594124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:55]POST & json_proto [17:02:55]process_json_proto [17:02:55]json parsed OK: [17:02:55]protocol is kg_v1.0 [17:02:55]action value=close_receipt [17:02:55]process_action close_receipt [17:02:55]cmd_close_receipt [17:02:55]MH_GetDate [17:02:55]Write to MH i2c: F0 00 00 BC 04 AF [17:02:55]Write i2c OK [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 09 00 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: F0 09 00 BC 04 00 C0 1D C6 66 5F 7F 2B 66 30 [17:02:55]GetLastDocTimeStamp 1724259475 [17:02:55]current date 1724259776 [17:02:55]FM_GetShiftState [17:02:55]SAM_PROTO_GetShiftState [17:02:55]wFMCommunicate request_size=4 [17:02:55]MH_SAM_APDU [17:02:55]CAPDU: 80 13 01 00 [17:02:55]Write to MH i2c: E2 08 00 BD 04 80 13 01 00 00 00 00 00 3E [17:02:55]Write i2c OK [17:02:55]MH_I2C_Read... [17:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:55]Read from MH i2c: E2 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: E2 0E 00 [17:02:55]MH_I2C_Read... [17:02:55]Read from MH i2c: E2 0E 00 BD 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BE [17:02:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:02:55]wFMCommunicate OK [17:02:55]SAM_PROTO_GetShiftState done [17:02:55]FM_GetShiftState done [17:02:55]opened in 1724200467 [17:02:55]opened+sec_in_day 1724286867 [17:02:55]quantity*price = 0 [17:02:55]sum+1 = 1 [17:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 284 21.08.2024 17:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 03824 ФМ: 0000000000871776 ФД: 140267 ФПД: 49940023674736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170256&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140267&fm=49940023674736&tin=02508201610067®Number=0000000000092569&sum=0 [17:02:57]StoreToDocumentArchive [17:02:57]shift 454 fd 140267 [17:02:57]save to /storage/0454/doc_00140267 [17:02:57]save last doc name /storage/0454/doc_00140267 to /storage/kkm_last_doc_name [17:02:57]save OK [17:02:57]Clear old archive folders... [17:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:57]tlvbuf is 019AD5C0 [17:02:57]SAM_PROTO_ClearQueue [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 09 00 00 [17:02:57]Write to MH i2c: E2 08 00 CA 04 80 09 00 00 00 00 00 00 40 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [17:02:57]RAPDU: 90 00 [17:02:57]wFMCommunicate OK [17:02:57]SAM_PROTO_ClearQueue done [17:02:57]KKMCreateOFDPacket [17:02:57]OFDProtocolAddRootSTLVToBuf [17:02:57]FM_MakeSignedData [17:02:57]FM_MakeSignedData [17:02:57]SAM_PROTO_SignData [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 0D 01 02 [17:02:57]Write to MH i2c: E2 08 00 CB 04 80 0D 01 02 00 00 00 00 48 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [17:02:57]RAPDU: 90 00 [17:02:57]wFMCommunicate OK [17:02:57]wFMCommunicate request_size=255 [17:02:57]MH_SAM_APDU [17:02: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 C0 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 23 02 00 35 04 06 00 2D [17:02:57]Write to MH i2c: E2 02 01 CC 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 C0 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 23 02 00 35 04 06 00 2D 00 00 BD [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [17:02:57]RAPDU: 90 00 [17:02:57]wFMCommunicate OK [17:02:57]wFMCommunicate request_size=10 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 0D 02 02 05 6B 91 5F 07 70 [17:02:57]Write to MH i2c: E2 0D 00 CD 04 80 0D 02 02 05 00 6B 91 5F 07 70 00 00 27 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [17:02:57]RAPDU: 90 00 [17:02:57]wFMCommunicate OK [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 0D 03 02 [17:02:57]Write to MH i2c: E2 08 00 CE 04 80 0D 03 02 00 00 00 00 4D [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0B 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 0B 00 CE 04 00 CE 68 D9 8F 32 3B CB 45 90 00 69 [17:02:57]RAPDU: CE 68 D9 8F 32 3B CB 45 90 00 [17:02:57]wFMCommunicate OK [17:02:57]SAM_PROTO_SignData done [17:02:57]FM_MakeSignedData done [17:02:57]CreateOFDProtocolMessage [17:02:57]wFMCommunicate request_size=4 [17:02:57]MH_SAM_APDU [17:02:57]CAPDU: 80 11 00 00 [17:02:57]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:57]Read from MH i2c: E2 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 17 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A4 [17:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:02:57]wFMCommunicate OK [17:02:57]CreateOFDProtocolMessage done [17:02:57]OFDSenderStorePacket 140267 [17:02:57]StoreOFDPacket docnum=140267 [17:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E7 FD 07 01 C0 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 C0 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 23 02 00 35 04 06 00 2D 6B 91 5F 07 70 CE 68 D9 8F 32 3B CB 45 [17:02:57]CheckFolder [17:02:57]dirname=/storage/ofd_packets [17:02:57]CheckFolder done [17:02:57]ProducePacketName [17:02:57]name=ofd_packets/00140267 [17:02:57]NVStorageSaveData ofd_packets/00140267 [17:02:57]File name is /storage/ofd_packets/00140267 [17:02:57]Write 301 bytes [17:02:57]NVStorageSaveData done [17:02:57]OFDSenderStorePacket done [17:02:57]KKMCreateOFDPacket done [17:02:57]NVStorageSaveData kkm_last_timestamp [17:02:57]File name is /storage/kkm_last_timestamp [17:02:57]Write 4 bytes [17:02:57]NVStorageSaveData done [17:02:57]ExternCall_PrintAddStr [17:02:57]wPrintStart [17:02:57]Write to MH i2c: 01 00 00 D0 04 D4 [17:02:57]Write i2c OK [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 [17:02:57]MH_I2C_Read... [17:02:57]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [17:02:57]RasterBufferAndPrint [17:02:57]line Счет N : (1)594124 [17:02:57]line ИНН: 02508201610067 [17:02:57]line Контрольно-Кассовый Чек [17:02:57]line ПРОДАЖА [17:02:57]line ТРК (МРК, ГНК) : 52 [17:02:57]line Товар: 2710124130 [17:02:57]line Аи-92-К-5 [17:02:57]line 10.000 * 0.00 [17:02:57]line = 0.00 [17:02:57]line НДС 12% НСП 1% [17:02:57]line > о реализуемом товаре [17:02:57]line ИТОГО: 0.00 [17:02:57]line НСП 1% : 0.00 [17:02:57]line НДС 12% : 0.00 [17:02:57]line Наличными: 0.00 [17:02:57]line Безнал.: 0.00 [17:02:57]line Место: АЗС № 136 "Партнер Нефть" [17:02:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:02:57]line СНО: Общий режим [17:02:57]line Чек 284 21.08.2024 17:02 [17:02:57]line Смена: 454 ФФД: 1.0 [17:02:57]line ЗНМ: 0300000067 [17:02:57]line РНМ: 0000000000092569 [17:02:57]line Версия ККМ: 001 [17:02:57]line Талоны: Топливная Карта [17:02:57]line 03824 [17:02:57]line ФМ: 0000000000871776 [17:02:57]line ФД: 140267 [17:02:57]line ФПД: 49940023674736 [17:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170256&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140267&fm=49940023674736&tin=02508201610067®Number=0000000000092569&sum=0 [17:02:57]written 0, free lines is 4095 [17:02:57]OFD Sender: Processing packet 140267 [packets to send 137, broken 136] [17:02:57]ProducePacketName [17:02:57]name=ofd_packets/00140267 [17:02:57]OFD Sender: To server: pG, [17:02:57]CommunicateWithHost lk.salyk.kg:30040 [17:02:57]ConnectInit lk.salyk.kg [17:02:57]Connected sock=7 [17:02: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 37 36 0F 01 00 00 E7 FD 07 01 C0 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 C0 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EB 23 02 00 35 04 06 00 2D 6B 91 5F 07 70 CE 68 D9 8F 32 3B CB 45 [17:02:58]Write to MH i2c: 01 00 00 FA 04 FE [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: 01 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: 01 07 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: 01 07 00 FA 04 00 00 00 00 00 FB 0C 0C [17:02:58]RasterBufferAndPrint [17:02:58]line [17:02:58]line [17:02:58]line [17:02:58]line [17:02:58]line [17:02:58]written 0, free lines is 3330 [17:02:58]MH_Cut [17:02:58]Write to MH i2c: D1 01 00 01 05 01 D8 [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: D1 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: D1 01 00 [17:02:58]MH_I2C_Read... [17:02:58]Read from MH i2c: D1 01 00 01 05 00 D7 [17:02:58]Write to MH i2c: 01 00 00 02 05 07 [17:02:58]Write i2c OK [17:02:58]MH_I2C_Read... [17:02: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 37 36 4F 00 00 00 66 92 47 00 B4 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 37 36 10 04 04 00 EB 23 02 00 F4 03 04 00 50 C4 C5 66 B6 04 01 00 00 E2 53 F5 10 39 8E 4F AB [17:02:58]CommunicateWithHost err = 0 [17:02:58]CheckOFDResponse [17:02:58]1017 (14) - 77093643461234 [17:02:58]1041 (16) - 0000000000871776 [17:02:58]1040 (4) - 140267 [17:02:58]1012 (4) - 21.08.2024 10:41 [17:02:58]1206 (1) - 0 [17:02:58]OFD Sender: Remove packet 140267 [17:02:58]ProducePacketName [17:02:58]name=ofd_packets/00140267 [17:02:58]NVStorageDeleteData [17:02:58]OFD Sender: No OFD packet to send [17:02:58]*** Cut start [17:02:58]*** Partial cut [17:02:58]*** CUTSNS_PIN = 1 [17:02:58]*** CUTSNS_PIN = 0 [17:02:58]*** Brake cut motor [17:02:59]Read from MH i2c: 01 [17:02:59]MH_I2C_Read... [17:02:59]*** Stop cut motor [17:02:59]*** Cut end [17:02:59]Read from MH i2c: 01 07 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [17:02:59]process_action close_receipt done [17:02:59]requested_data is exist [17:02:59]produce_requested_data [17:02:59]requested_item fm.sn is exist - process it [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 11 00 00 [17:02:59]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [17:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:02:59]wFMCommunicate OK [17:02:59]requested_item fd.num is exist - process it [17:02:59]SAM_PROTO_GetFieldsCounters [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 00 00 [17:02:59]Write to MH i2c: E2 08 00 04 05 80 13 00 00 00 00 00 00 85 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 62 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 62 00 04 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [17:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EB 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetFieldsCounters done [17:02:59]requested_item shift.num is exist - process it [17:02:59]requested_item shift.opened is exist - process it [17:02:59]req_shift_opened [17:02:59]FM_GetShiftState [17:02:59]SAM_PROTO_GetShiftState [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 01 00 [17:02:59]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [17:02:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetShiftState done [17:02:59]FM_GetShiftState done [17:02:59]req_shift_opened done [17:02:59]requested_item shift.open_date is exist - process it [17:02:59]req_shift_open_date [17:02:59]req_shift_open_date done [17:02:59]produce_requested_data done [17:02:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140267,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:02:59]process_action_free close_receipt [17:02:59]json_value_free [17:02:59]json_value_free done [17:02:59]process_json_proto returns [17:02:59]Send response to host [17:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140267,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:02:59]free response buf [17:02:59]execute_script done [17:02:59]execute_script returns [17:02:59]free content buf [17:02:59]Sock 9.Close socket [17:02:59]Sock 9.Thread stoped [17:02:59]accept exits with 10 [17:02:59]New connection [17:02:59]New thread 3067452772 created [17:02:59]Thread 3067596132 joined [17:02:59]Waiting for new connection... [17:02:59] Sock 10.Parse request [17:02:59]Sock 10.Check first char [17:02:59]Sock 10.First char is OK [17:02:59]request: POST /json_proto HTTP/1.0 [17:02:59]Method: POST [17:02:59]URL: /json_proto [17:02:59]Method is POST - this is cgi request [17:02:59]url: /json_proto [17:02:59]query_string will be loaded in cgi processing [17:02:59]execute_cgi json_proto POST (null) [17:02:59]execute_cgi path=json_proto method=POST [17:02:59]POST find Content-Length [17:02:59]Host: 172.17.45.67:8080 [17:02:59]Content-Length: 818 [17:02:59]Content-Type: application/json [17:02:59] [17:02:59]POST finish read [17:02:59]Found Content-Length = 818 [17:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:59]execute_script... [17:02:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:59]POST & json_proto [17:02:59]process_json_proto [17:02:59]json parsed OK: [17:02:59]protocol is kg_v1.0 [17:02:59]action value=close_receipt [17:02:59]process_action close_receipt [17:02:59]cmd_close_receipt [17:02:59]MH_GetDate [17:02:59]Write to MH i2c: F0 00 00 06 05 FA [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 09 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 09 00 06 05 00 C4 1D C6 66 5F 7F 2B 66 7F [17:02:59]GetLastDocTimeStamp 1724259776 [17:02:59]current date 1724259780 [17:02:59]FM_GetShiftState [17:02:59]SAM_PROTO_GetShiftState [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 01 00 [17:02:59]Write to MH i2c: E2 08 00 07 05 80 13 01 00 00 00 00 00 89 [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 07 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 09 [17:02:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetShiftState done [17:02:59]FM_GetShiftState done [17:02:59]opened in 1724200467 [17:02:59]opened+sec_in_day 1724286867 [17:02:59]quantity*price = 50036 [17:02:59]sum+1 = 50037 [17:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 285 21.08.2024 17:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140268 ФПД: 142234292703836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140268&fm=142234292703836&tin=02508201610067®Number=0000000000092569&sum=50000 [17:03:01]StoreToDocumentArchive [17:03:01]shift 454 fd 140268 [17:03:01]save to /storage/0454/doc_00140268 [17:03:01]save last doc name /storage/0454/doc_00140268 to /storage/kkm_last_doc_name [17:03:01]save OK [17:03:01]Clear old archive folders... [17:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:01]tlvbuf is 019AA420 [17:03:01]SAM_PROTO_ClearQueue [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 09 00 00 [17:03:01]Write to MH i2c: E2 08 00 14 05 80 09 00 00 00 00 00 00 8B [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_ClearQueue done [17:03:01]KKMCreateOFDPacket [17:03:01]OFDProtocolAddRootSTLVToBuf [17:03:01]FM_MakeSignedData [17:03:01]FM_MakeSignedData [17:03:01]SAM_PROTO_SignData [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 01 02 [17:03:01]Write to MH i2c: E2 08 00 15 05 80 0D 01 02 00 00 00 00 93 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=255 [17:03:01]MH_SAM_APDU [17:03: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 23 02 00 35 04 06 00 81 [17:03:01]Write to MH i2c: E2 02 01 16 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 23 02 00 35 04 06 00 81 00 00 A0 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=10 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 05 5C 80 7D D2 5C [17:03:01]Write to MH i2c: E2 0D 00 17 05 80 0D 02 02 05 00 5C 80 7D D2 5C 00 00 27 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 03 02 [17:03:01]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 18 05 00 5E B5 1D B5 6A D0 D8 5E 90 00 EE [17:03:01]RAPDU: 5E B5 1D B5 6A D0 D8 5E 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_SignData done [17:03:01]FM_MakeSignedData done [17:03:01]CreateOFDProtocolMessage [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 11 00 00 [17:03:01]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [17:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:03:01]wFMCommunicate OK [17:03:01]CreateOFDProtocolMessage done [17:03:01]OFDSenderStorePacket 140268 [17:03:01]StoreOFDPacket docnum=140268 [17:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB DF 07 01 8C 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 23 02 00 35 04 06 00 81 5C 80 7D D2 5C 5E B5 1D B5 6A D0 D8 5E [17:03:01]CheckFolder [17:03:01]dirname=/storage/ofd_packets [17:03:01]CheckFolder done [17:03:01]ProducePacketName [17:03:01]name=ofd_packets/00140268 [17:03:01]NVStorageSaveData ofd_packets/00140268 [17:03:01]File name is /storage/ofd_packets/00140268 [17:03:01]Write 301 bytes [17:03:01]NVStorageSaveData done [17:03:01]OFDSenderStorePacket done [17:03:01]KKMCreateOFDPacket done [17:03:02]NVStorageSaveData kkm_last_timestamp [17:03:02]File name is /storage/kkm_last_timestamp [17:03:02]Write 4 bytes [17:03:02]NVStorageSaveData done [17:03:02]ExternCall_PrintAddStr [17:03:02]wPrintStart [17:03:02]Write to MH i2c: 01 00 00 1A 05 1F [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [17:03:02]RasterBufferAndPrint [17:03:02]line Счет N : (1)594125 [17:03:02]line ИНН: 02508201610067 [17:03:02]line Контрольно-Кассовый Чек [17:03:02]line ПРОДАЖА [17:03:02]line ТРК (МРК, ГНК) : 32 [17:03:02]line Товар: 2710124130 [17:03:02]line Аи-92-К-5 [17:03:02]line 7.380 * 67.80 [17:03:02]line = 500.36 [17:03:02]line НДС 12% НСП 1% [17:03:02]line > о реализуемом товаре [17:03:02]line ОКРУГЛЕНИЕ: -0.36 [17:03:02]line ИТОГО: 500.00 [17:03:02]line НСП 1% : 4.43 [17:03:02]line НДС 12% : 53.14 [17:03:02]line Наличными: 0.00 [17:03:02]line Безнал.: 500.00 [17:03:02]line Место: АЗС № 136 "Партнер Нефть" [17:03:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:03:02]line СНО: Общий режим [17:03:02]line Чек 285 21.08.2024 17:03 [17:03:02]line Смена: 454 ФФД: 1.0 [17:03:02]line ЗНМ: 0300000067 [17:03:02]line РНМ: 0000000000092569 [17:03:02]line Версия ККМ: 001 [17:03:02]line Платежная система: O! деньги [17:03:02]line ФМ: 0000000000871776 [17:03:02]line ФД: 140268 [17:03:02]line ФПД: 142234292703836 [17:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140268&fm=142234292703836&tin=02508201610067®Number=0000000000092569&sum=50000 [17:03:02]OFD Sender: Processing packet 140268 [packets to send 137, broken 136] [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00140268 [17:03:02]OFD Sender: To server: pG, [17:03:02]CommunicateWithHost lk.salyk.kg:30040 [17:03:02]ConnectInit lk.salyk.kg [17:03:02]written 0, free lines is 4095 [17:03:02]Connected sock=9 [17:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EB DF 07 01 8C 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 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 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 C4 1D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EC 23 02 00 35 04 06 00 81 5C 80 7D D2 5C 5E B5 1D B5 6A D0 D8 5E [17:03: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 37 36 4F 00 00 00 54 48 47 00 0C 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 37 36 10 04 04 00 EC 23 02 00 F4 03 04 00 55 C4 C5 66 B6 04 01 00 00 19 34 91 32 C2 B1 9E D1 [17:03:02]CommunicateWithHost err = 0 [17:03:02]CheckOFDResponse [17:03:02]1017 (14) - 77093643461234 [17:03:02]1041 (16) - 0000000000871776 [17:03:02]1040 (4) - 140268 [17:03:02]1012 (4) - 21.08.2024 10:41 [17:03:02]1206 (1) - 0 [17:03:02]OFD Sender: Remove packet 140268 [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00140268 [17:03:02]NVStorageDeleteData [17:03:02]Write to MH i2c: 01 00 00 45 05 4A [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 EA 0C 47 [17:03:02]RasterBufferAndPrint [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]written 0, free lines is 3318 [17:03:02]MH_Cut [17:03:02]Write to MH i2c: D1 01 00 4C 05 01 23 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 4C 05 00 22 [17:03:02]Write to MH i2c: 01 00 00 4D 05 52 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:03]OFD Sender: No OFD packet to send [17:03:03]*** Cut start [17:03:03]*** Partial cut [17:03:03]*** CUTSNS_PIN = 1 [17:03:03]*** CUTSNS_PIN = 0 [17:03:03]*** Brake cut motor [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 4E 05 80 11 00 00 00 00 00 00 CD [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 4E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:03:04]wFMCommunicate OK [17:03:04]requested_item fd.num is exist - process it [17:03:04]SAM_PROTO_GetFieldsCounters [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 00 00 [17:03:04]Write to MH i2c: E2 08 00 4F 05 80 13 00 00 00 00 00 00 D0 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 4F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 23 02 00 0E 04 04 00 C6 01 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 2D [17:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EC 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetFieldsCounters done [17:03:04]requested_item shift.num is exist - process it [17:03:04]requested_item shift.opened is exist - process it [17:03:04]req_shift_opened [17:03:04]FM_GetShiftState [17:03:04]SAM_PROTO_GetShiftState [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 01 00 [17:03:04]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 52 [17:03:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetShiftState done [17:03:04]FM_GetShiftState done [17:03:04]req_shift_opened done [17:03:04]requested_item shift.open_date is exist - process it [17:03:04]req_shift_open_date [17:03:04]req_shift_open_date done [17:03:04]produce_requested_data done [17:03:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140268,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:03:04]process_action_free close_receipt [17:03:04]json_value_free [17:03:04]json_value_free done [17:03:04]process_json_proto returns [17:03:04]Send response to host [17:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140268,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:03:04]free response buf [17:03:04]execute_script done [17:03:04]execute_script returns [17:03:04]free content buf [17:03:04]Sock 10.Close socket [17:03:04]Sock 10.Thread stoped [17:03:07]int [17:03:07]Write to MH i2c: 01 00 00 51 05 56 [17:03:07]*** FLAG_PRN_KEY set [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 51 05 00 08 00 00 00 FF 0F 73 [17:03:07]state=0 [17:03:07]Key pressed [17:03:07]Feed [17:03:07]Write to MH i2c: D8 00 00 52 05 2E [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D8 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D8 01 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: D8 01 00 52 05 00 2F [17:03:07]int [17:03:07]Write to MH i2c: 01 00 00 53 05 58 [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 53 05 00 48 00 00 00 3C 00 E3 [17:03:07]state=2 [17:03:07]Key pressed [17:03:07]int [17:03:07]Write to MH i2c: 01 00 00 54 05 59 [17:03:07]*** FLAG_PRN_KEY reset [17:03:07]Write i2c OK [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 [17:03:07]MH_I2C_Read... [17:03:07]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 F9 0F 68 [17:03:07]state=2 [17:03:07]Stop feed [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:40]accept exits with 7 [17:04:40]New connection [17:04:40]New thread 3067596132 created [17:04:40]Thread 3067452772 joined [17:04:40]Waiting for new connection... [17:04:40] Sock 7.Parse request [17:04:40]Sock 7.Check first char [17:04:40]Sock 7.First char is OK [17:04:40]request: POST /json_proto HTTP/1.0 [17:04:40]Method: POST [17:04:40]URL: /json_proto [17:04:40]Method is POST - this is cgi request [17:04:40]url: /json_proto [17:04:40]query_string will be loaded in cgi processing [17:04:40]execute_cgi json_proto POST (null) [17:04:40]execute_cgi path=json_proto method=POST [17:04:40]POST find Content-Length [17:04:40]Host: 172.17.45.67:8080 [17:04:40]Content-Length: 677 [17:04:40]Content-Type: application/json [17:04:40] [17:04:40]POST finish read [17:04:40]Found Content-Length = 677 [17:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:40]execute_script... [17:04:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:40]POST & json_proto [17:04:40]process_json_proto [17:04:40]json parsed OK: [17:04:40]protocol is kg_v1.0 [17:04:40]action value=close_receipt [17:04:40]process_action close_receipt [17:04:40]cmd_close_receipt [17:04:40]MH_GetDate [17:04:40]Write to MH i2c: F0 00 00 55 05 49 [17:04:40]Write i2c OK [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: F0 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: F0 09 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: F0 09 00 55 05 00 29 1E C6 66 5F 7F 2B 66 34 [17:04:40]GetLastDocTimeStamp 1724259780 [17:04:40]current date 1724259881 [17:04:40]FM_GetShiftState [17:04:40]SAM_PROTO_GetShiftState [17:04:40]wFMCommunicate request_size=4 [17:04:40]MH_SAM_APDU [17:04:40]CAPDU: 80 13 01 00 [17:04:40]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [17:04:40]Write i2c OK [17:04:40]MH_I2C_Read... [17:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:40]Read from MH i2c: E2 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 0E 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 58 [17:04:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:04:40]wFMCommunicate OK [17:04:40]SAM_PROTO_GetShiftState done [17:04:40]FM_GetShiftState done [17:04:40]opened in 1724200467 [17:04:40]opened+sec_in_day 1724286867 [17:04:40]quantity*price = 30035 [17:04:40]sum+1 = 30036 [17:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 286 21.08.2024 17:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140269 ФПД: 222699161761848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170441&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140269&fm=222699161761848&tin=02508201610067®Number=0000000000092569&sum=30000 [17:04:41]StoreToDocumentArchive [17:04:41]shift 454 fd 140269 [17:04:41]save to /storage/0454/doc_00140269 [17:04:41]save last doc name /storage/0454/doc_00140269 to /storage/kkm_last_doc_name [17:04:41]save OK [17:04:41]Clear old archive folders... [17:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:41]tlvbuf is 019A9E30 [17:04:41]SAM_PROTO_ClearQueue [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 09 00 00 [17:04:41]Write to MH i2c: E2 08 00 63 05 80 09 00 00 00 00 00 00 DA [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 03 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [17:04:41]RAPDU: 90 00 [17:04:41]wFMCommunicate OK [17:04:41]SAM_PROTO_ClearQueue done [17:04:41]KKMCreateOFDPacket [17:04:41]OFDProtocolAddRootSTLVToBuf [17:04:41]FM_MakeSignedData [17:04:41]FM_MakeSignedData [17:04:41]SAM_PROTO_SignData [17:04:41]wFMCommunicate request_size=4 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 0D 01 02 [17:04:41]Write to MH i2c: E2 08 00 64 05 80 0D 01 02 00 00 00 00 E2 [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:41]Read from MH i2c: E2 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 03 00 [17:04:41]MH_I2C_Read... [17:04:41]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [17:04:41]RAPDU: 90 00 [17:04:41]wFMCommunicate OK [17:04:41]wFMCommunicate request_size=255 [17:04:41]MH_SAM_APDU [17:04:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 29 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 23 02 00 35 04 06 00 CA [17:04:41]Write to MH i2c: E2 02 01 65 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 29 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 23 02 00 35 04 06 00 CA 00 00 BF [17:04:41]Write i2c OK [17:04:41]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [17:04:42]RAPDU: 90 00 [17:04:42]wFMCommunicate OK [17:04:42]wFMCommunicate request_size=10 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 0D 02 02 05 8B 30 6D B8 38 [17:04:42]Write to MH i2c: E2 0D 00 66 05 80 0D 02 02 05 00 8B 30 6D B8 38 00 00 07 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [17:04:42]RAPDU: 90 00 [17:04:42]wFMCommunicate OK [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 0D 03 02 [17:04:42]Write to MH i2c: E2 08 00 67 05 80 0D 03 02 00 00 00 00 E7 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0B 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0B 00 67 05 00 FA 85 83 0D D4 CF E1 3A 90 00 B5 [17:04:42]RAPDU: FA 85 83 0D D4 CF E1 3A 90 00 [17:04:42]wFMCommunicate OK [17:04:42]SAM_PROTO_SignData done [17:04:42]FM_MakeSignedData done [17:04:42]CreateOFDProtocolMessage [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 11 00 00 [17:04:42]Write to MH i2c: E2 08 00 68 05 80 11 00 00 00 00 00 00 E7 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 17 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 17 00 68 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3E [17:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:04:42]wFMCommunicate OK [17:04:42]CreateOFDProtocolMessage done [17:04:42]OFDSenderStorePacket 140269 [17:04:42]StoreOFDPacket docnum=140269 [17:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 2A 07 01 A4 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 29 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 23 02 00 35 04 06 00 CA 8B 30 6D B8 38 FA 85 83 0D D4 CF E1 3A [17:04:42]CheckFolder [17:04:42]dirname=/storage/ofd_packets [17:04:42]CheckFolder done [17:04:42]ProducePacketName [17:04:42]name=ofd_packets/00140269 [17:04:42]NVStorageSaveData ofd_packets/00140269 [17:04:42]File name is /storage/ofd_packets/00140269 [17:04:42]Write 301 bytes [17:04:42]NVStorageSaveData done [17:04:42]OFDSenderStorePacket done [17:04:42]KKMCreateOFDPacket done [17:04:42]NVStorageSaveData kkm_last_timestamp [17:04:42]File name is /storage/kkm_last_timestamp [17:04:42]Write 4 bytes [17:04:42]NVStorageSaveData done [17:04:42]ExternCall_PrintAddStr [17:04:42]wPrintStart [17:04:42]Write to MH i2c: 01 00 00 69 05 6E [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: 01 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: 01 07 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [17:04:42]RasterBufferAndPrint [17:04:42]line Счет N : (1)594126 [17:04:42]line ИНН: 02508201610067 [17:04:42]line Контрольно-Кассовый Чек [17:04:42]line ПРОДАЖА [17:04:42]line ТРК (МРК, ГНК) : 52 [17:04:42]line Товар: 2710124130 [17:04:42]line Аи-92-К-5 [17:04:42]line 4.430 * 67.80 [17:04:42]line = 300.35 [17:04:42]line НДС 12% НСП 1% [17:04:42]line > о реализуемом товаре [17:04:42]line ОКРУГЛЕНИЕ: -0.35 [17:04:42]line ИТОГО: 300.00 [17:04:42]line Внесено: 300.00 [17:04:42]line СДАЧА: 0.00 [17:04:42]line НСП 1% : 2.66 [17:04:42]line НДС 12% : 31.90 [17:04:42]line Наличными: 300.00 [17:04:42]line Безнал.: 0.00 [17:04:42]line Место: АЗС № 136 "Партнер Нефть" [17:04:42]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:04:42]line СНО: Общий режим [17:04:42]line Чек 286 21.08.2024 17:04 [17:04:42]line Смена: 454 ФФД: 1.0 [17:04:42]line ЗНМ: 0300000067 [17:04:42]line РНМ: 0000000000092569 [17:04:42]line Версия ККМ: 001 [17:04:42]line ФМ: 0000000000871776 [17:04:42]line ФД: 140269 [17:04:42]line ФПД: 222699161761848 [17:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170441&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140269&fm=222699161761848&tin=02508201610067®Number=0000000000092569&sum=30000 [17:04:42]OFD Sender: Processing packet 140269 [packets to send 137, broken 136] [17:04:42]ProducePacketName [17:04:42]name=ofd_packets/00140269 [17:04:42]OFD Sender: To server: pG, [17:04:42]CommunicateWithHost lk.salyk.kg:30040 [17:04:42]ConnectInit lk.salyk.kg [17:04:42]written 0, free lines is 4095 [17:04:42]Connected sock=10 [17:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CF 2A 07 01 A4 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 29 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 23 02 00 35 04 06 00 CA 8B 30 6D B8 38 FA 85 83 0D D4 CF E1 3A [17:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 AC 8A 47 00 03 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 ED 23 02 00 F4 03 04 00 B9 C4 C5 66 B6 04 01 00 00 57 A0 A1 CB B2 99 51 6C [17:04:42]CommunicateWithHost err = 0 [17:04:42]CheckOFDResponse [17:04:42]1017 (14) - 77093643461234 [17:04:42]1041 (16) - 0000000000871776 [17:04:42]1040 (4) - 140269 [17:04:42]1012 (4) - 21.08.2024 10:43 [17:04:42]1206 (1) - 0 [17:04:42]OFD Sender: Remove packet 140269 [17:04:42]ProducePacketName [17:04:42]name=ofd_packets/00140269 [17:04:42]NVStorageDeleteData [17:04:43]Write to MH i2c: 01 00 00 94 05 99 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 E5 0C 91 [17:04:43]RasterBufferAndPrint [17:04:43]line [17:04:43]line [17:04:43]line [17:04:43]line [17:04:43]line [17:04:43]written 0, free lines is 3310 [17:04:43]MH_Cut [17:04:43]Write to MH i2c: D1 01 00 9B 05 01 72 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: D1 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: D1 01 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: D1 01 00 9B 05 00 71 [17:04:43]Write to MH i2c: 01 00 00 9C 05 A1 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]OFD Sender: No OFD packet to send [17:04:43]*** Cut start [17:04:43]*** Partial cut [17:04:43]*** CUTSNS_PIN = 1 [17:04:43]*** CUTSNS_PIN = 0 [17:04:43]*** Brake cut motor [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]*** Stop cut motor [17:04:44]*** Cut end [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [17:04:44]process_action close_receipt done [17:04:44]requested_data is exist [17:04:44]produce_requested_data [17:04:44]requested_item fm.sn is exist - process it [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 11 00 00 [17:04:44]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 17 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 73 [17:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:04:44]wFMCommunicate OK [17:04:44]requested_item fd.num is exist - process it [17:04:44]SAM_PROTO_GetFieldsCounters [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 13 00 00 [17:04:44]Write to MH i2c: E2 08 00 9E 05 80 13 00 00 00 00 00 00 1F [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 62 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 62 00 9E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 23 02 00 0E 04 04 00 C6 01 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 80 [17:04: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 ED 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:44]wFMCommunicate OK [17:04:44]SAM_PROTO_GetFieldsCounters done [17:04:44]requested_item shift.num is exist - process it [17:04:44]requested_item shift.opened is exist - process it [17:04:44]req_shift_opened [17:04:44]FM_GetShiftState [17:04:44]SAM_PROTO_GetShiftState [17:04:44]wFMCommunicate request_size=4 [17:04:44]MH_SAM_APDU [17:04:44]CAPDU: 80 13 01 00 [17:04:44]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:44]Read from MH i2c: E2 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 0E 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A1 [17:04:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:04:44]wFMCommunicate OK [17:04:44]SAM_PROTO_GetShiftState done [17:04:44]FM_GetShiftState done [17:04:44]req_shift_opened done [17:04:44]requested_item shift.open_date is exist - process it [17:04:44]req_shift_open_date [17:04:44]req_shift_open_date done [17:04:44]produce_requested_data done [17:04:44]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140269,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:04:44]process_action_free close_receipt [17:04:44]json_value_free [17:04:44]json_value_free done [17:04:44]process_json_proto returns [17:04:44]Send response to host [17:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140269,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:04:44]free response buf [17:04:44]execute_script done [17:04:44]execute_script returns [17:04:44]free content buf [17:04:44]Sock 7.Close socket [17:04:44]Sock 7.Thread stoped [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:44]accept exits with 9 [17:05:44]New connection [17:05:44]New thread 3067452772 created [17:05:44]Thread 3067596132 joined [17:05:44]Waiting for new connection... [17:05:44] Sock 9.Parse request [17:05:44]Sock 9.Check first char [17:05:44]Sock 9.First char is OK [17:05:44]request: POST /json_proto HTTP/1.0 [17:05:44]Method: POST [17:05:44]URL: /json_proto [17:05:44]Method is POST - this is cgi request [17:05:44]url: /json_proto [17:05:44]query_string will be loaded in cgi processing [17:05:44]execute_cgi json_proto POST (null) [17:05:44]execute_cgi path=json_proto method=POST [17:05:44]POST find Content-Length [17:05:44]Host: 172.17.45.67:8080 [17:05:44]Content-Length: 678 [17:05:44]Content-Type: application/json [17:05:44] [17:05:44]POST finish read [17:05:44]Found Content-Length = 678 [17:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:44]execute_script... [17:05: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)594127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:44]POST & json_proto [17:05:44]process_json_proto [17:05:44]json parsed OK: [17:05:44]protocol is kg_v1.0 [17:05:44]action value=close_receipt [17:05:44]process_action close_receipt [17:05:44]cmd_close_receipt [17:05:44]MH_GetDate [17:05:44]Write to MH i2c: F0 00 00 A0 05 94 [17:05:44]Write i2c OK [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: F0 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: F0 09 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: F0 09 00 A0 05 00 69 1E C6 66 5F 7F 2B 66 BF [17:05:44]GetLastDocTimeStamp 1724259881 [17:05:44]current date 1724259945 [17:05:44]FM_GetShiftState [17:05:44]SAM_PROTO_GetShiftState [17:05:44]wFMCommunicate request_size=4 [17:05:44]MH_SAM_APDU [17:05:44]CAPDU: 80 13 01 00 [17:05:44]Write to MH i2c: E2 08 00 A1 05 80 13 01 00 00 00 00 00 23 [17:05:44]Write i2c OK [17:05:44]MH_I2C_Read... [17:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:44]Read from MH i2c: E2 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 0E 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 0E 00 A1 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A3 [17:05:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:05:44]wFMCommunicate OK [17:05:44]SAM_PROTO_GetShiftState done [17:05:44]FM_GetShiftState done [17:05:44]opened in 1724200467 [17:05:44]opened+sec_in_day 1724286867 [17:05:44]quantity*price = 70037 [17:05:44]sum+1 = 70038 [17:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 287 21.08.2024 17:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140270 ФПД: 215766806390587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140270&fm=215766806390587&tin=02508201610067®Number=0000000000092569&sum=70000 [17:05:45]StoreToDocumentArchive [17:05:45]shift 454 fd 140270 [17:05:45]save to /storage/0454/doc_00140270 [17:05:45]save last doc name /storage/0454/doc_00140270 to /storage/kkm_last_doc_name [17:05:45]save OK [17:05:45]Clear old archive folders... [17:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:45]tlvbuf is 019AF0E0 [17:05:45]SAM_PROTO_ClearQueue [17:05:45]wFMCommunicate request_size=4 [17:05:45]MH_SAM_APDU [17:05:45]CAPDU: 80 09 00 00 [17:05:45]Write to MH i2c: E2 08 00 AE 05 80 09 00 00 00 00 00 00 25 [17:05:45]Write i2c OK [17:05:45]MH_I2C_Read... [17:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:45]Read from MH i2c: E2 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 03 00 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [17:05:45]RAPDU: 90 00 [17:05:45]wFMCommunicate OK [17:05:45]SAM_PROTO_ClearQueue done [17:05:45]KKMCreateOFDPacket [17:05:45]OFDProtocolAddRootSTLVToBuf [17:05:45]FM_MakeSignedData [17:05:45]FM_MakeSignedData [17:05:45]SAM_PROTO_SignData [17:05:45]wFMCommunicate request_size=4 [17:05:45]MH_SAM_APDU [17:05:45]CAPDU: 80 0D 01 02 [17:05:45]Write to MH i2c: E2 08 00 AF 05 80 0D 01 02 00 00 00 00 2D [17:05:45]Write i2c OK [17:05:45]MH_I2C_Read... [17:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:45]Read from MH i2c: E2 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 03 00 [17:05:45]MH_I2C_Read... [17:05:45]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [17:05:45]RAPDU: 90 00 [17:05:45]wFMCommunicate OK [17:05:45]wFMCommunicate request_size=255 [17:05:45]MH_SAM_APDU [17:05: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 69 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 23 02 00 35 04 06 00 C4 [17:05:46]Write to MH i2c: E2 02 01 B0 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 69 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 23 02 00 35 04 06 00 C4 00 00 0E [17:05:46]Write i2c OK [17:05:46]MH_I2C_Read... [17:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:46]Read from MH i2c: E2 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 03 00 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [17:05:46]RAPDU: 90 00 [17:05:46]wFMCommunicate OK [17:05:46]wFMCommunicate request_size=10 [17:05:46]MH_SAM_APDU [17:05:46]CAPDU: 80 0D 02 02 05 3D 1F D9 67 3B [17:05:46]Write to MH i2c: E2 0D 00 B1 05 80 0D 02 02 05 00 3D 1F D9 67 3B 00 00 11 [17:05:46]Write i2c OK [17:05:46]MH_I2C_Read... [17:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:46]Read from MH i2c: E2 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 03 00 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [17:05:46]RAPDU: 90 00 [17:05:46]wFMCommunicate OK [17:05:46]wFMCommunicate request_size=4 [17:05:46]MH_SAM_APDU [17:05:46]CAPDU: 80 0D 03 02 [17:05:46]Write to MH i2c: E2 08 00 B2 05 80 0D 03 02 00 00 00 00 32 [17:05:46]Write i2c OK [17:05:46]MH_I2C_Read... [17:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:46]Read from MH i2c: E2 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 0B 00 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 0B 00 B2 05 00 73 5B 4A 3D B8 89 0D E0 90 00 B6 [17:05:46]RAPDU: 73 5B 4A 3D B8 89 0D E0 90 00 [17:05:46]wFMCommunicate OK [17:05:46]SAM_PROTO_SignData done [17:05:46]FM_MakeSignedData done [17:05:46]CreateOFDProtocolMessage [17:05:46]wFMCommunicate request_size=4 [17:05:46]MH_SAM_APDU [17:05:46]CAPDU: 80 11 00 00 [17:05:46]Write to MH i2c: E2 08 00 B3 05 80 11 00 00 00 00 00 00 32 [17:05:46]Write i2c OK [17:05:46]MH_I2C_Read... [17:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:46]Read from MH i2c: E2 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 17 00 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: E2 17 00 B3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 89 [17:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:05:46]wFMCommunicate OK [17:05:46]CreateOFDProtocolMessage done [17:05:46]OFDSenderStorePacket 140270 [17:05:46]StoreOFDPacket docnum=140270 [17:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 79 07 01 4A 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 69 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 23 02 00 35 04 06 00 C4 3D 1F D9 67 3B 73 5B 4A 3D B8 89 0D E0 [17:05:46]CheckFolder [17:05:46]dirname=/storage/ofd_packets [17:05:46]CheckFolder done [17:05:46]ProducePacketName [17:05:46]name=ofd_packets/00140270 [17:05:46]NVStorageSaveData ofd_packets/00140270 [17:05:46]File name is /storage/ofd_packets/00140270 [17:05:46]Write 301 bytes [17:05:46]NVStorageSaveData done [17:05:46]OFDSenderStorePacket done [17:05:46]KKMCreateOFDPacket done [17:05:46]NVStorageSaveData kkm_last_timestamp [17:05:46]File name is /storage/kkm_last_timestamp [17:05:46]Write 4 bytes [17:05:46]NVStorageSaveData done [17:05:46]ExternCall_PrintAddStr [17:05:46]wPrintStart [17:05:46]Write to MH i2c: 01 00 00 B4 05 B9 [17:05:46]Write i2c OK [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: 01 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: 01 07 00 [17:05:46]MH_I2C_Read... [17:05:46]Read from MH i2c: 01 07 00 B4 05 00 00 00 00 00 FF 0F CE [17:05:46]RasterBufferAndPrint [17:05:46]line Счет N : (1)594127 [17:05:46]line ИНН: 02508201610067 [17:05:46]line Контрольно-Кассовый Чек [17:05:46]line ПРОДАЖА [17:05:46]line ТРК (МРК, ГНК) : 62 [17:05:46]line Товар: 2710124130 [17:05:46]line Аи-92-К-5 [17:05:46]line 10.330 * 67.80 [17:05:46]line = 700.37 [17:05:46]line НДС 12% НСП 1% [17:05:46]line > о реализуемом товаре [17:05:46]line ОКРУГЛЕНИЕ: -0.37 [17:05:46]line ИТОГО: 700.00 [17:05:46]line Внесено: 700.00 [17:05:46]line СДАЧА: 0.00 [17:05:46]line НСП 1% : 6.20 [17:05:46]line НДС 12% : 74.38 [17:05:46]line Наличными: 700.00 [17:05:46]line Безнал.: 0.00 [17:05:46]line Место: АЗС № 136 "Партнер Нефть" [17:05:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:05:46]line СНО: Общий режим [17:05:46]line Чек 287 21.08.2024 17:05 [17:05:46]line Смена: 454 ФФД: 1.0 [17:05:46]line ЗНМ: 0300000067 [17:05:46]line РНМ: 0000000000092569 [17:05:46]line Версия ККМ: 001 [17:05:46]line ФМ: 0000000000871776 [17:05:46]line ФД: 140270 [17:05:46]line ФПД: 215766806390587 [17:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140270&fm=215766806390587&tin=02508201610067®Number=0000000000092569&sum=70000 [17:05:46]OFD Sender: Processing packet 140270 [packets to send 137, broken 136] [17:05:46]ProducePacketName [17:05:46]name=ofd_packets/00140270 [17:05:46]OFD Sender: To server: pG, [17:05:46]CommunicateWithHost lk.salyk.kg:30040 [17:05:46]ConnectInit lk.salyk.kg [17:05:46]written 0, free lines is 4095 [17:05:46]Connected sock=10 [17:05: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 37 36 0F 01 00 00 48 79 07 01 4A 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 69 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EE 23 02 00 35 04 06 00 C4 3D 1F D9 67 3B 73 5B 4A 3D B8 89 0D E0 [17:05: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 37 36 4F 00 00 00 59 10 47 00 3D 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 37 36 10 04 04 00 EE 23 02 00 F4 03 04 00 FA C4 C5 66 B6 04 01 00 00 B9 E0 C6 B3 5D 9A 86 3B [17:05:47]CommunicateWithHost err = 0 [17:05:47]CheckOFDResponse [17:05:47]1017 (14) - 77093643461234 [17:05:47]1041 (16) - 0000000000871776 [17:05:47]1040 (4) - 140270 [17:05:47]1012 (4) - 21.08.2024 10:44 [17:05:47]1206 (1) - 0 [17:05:47]OFD Sender: Remove packet 140270 [17:05:47]ProducePacketName [17:05:47]name=ofd_packets/00140270 [17:05:47]NVStorageDeleteData [17:05:47]Write to MH i2c: 01 00 00 DF 05 E4 [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 07 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 D8 0C CF [17:05:47]RasterBufferAndPrint [17:05:47]line [17:05:47]line [17:05:47]line [17:05:47]line [17:05:47]line [17:05:47]written 0, free lines is 3295 [17:05:47]MH_Cut [17:05:47]Write to MH i2c: D1 01 00 E6 05 01 BD [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: D1 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: D1 01 00 [17:05:47]MH_I2C_Read... [17:05:47]Read from MH i2c: D1 01 00 E6 05 00 BC [17:05:47]Write to MH i2c: 01 00 00 E7 05 EC [17:05:47]Write i2c OK [17:05:47]MH_I2C_Read... [17:05:47]OFD Sender: No OFD packet to send [17:05:47]*** Cut start [17:05:47]*** Partial cut [17:05:47]*** CUTSNS_PIN = 1 [17:05:47]*** CUTSNS_PIN = 0 [17:05:48]*** Brake cut motor [17:05:48]Read from MH i2c: 01 [17:05:48]MH_I2C_Read... [17:05:48]*** Stop cut motor [17:05:48]*** Cut end [17:05:48]Read from MH i2c: 01 07 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [17:05:48]process_action close_receipt done [17:05:48]requested_data is exist [17:05:48]produce_requested_data [17:05:48]requested_item fm.sn is exist - process it [17:05:48]wFMCommunicate request_size=4 [17:05:48]MH_SAM_APDU [17:05:48]CAPDU: 80 11 00 00 [17:05:48]Write to MH i2c: E2 08 00 E8 05 80 11 00 00 00 00 00 00 67 [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:48]Read from MH i2c: E2 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 17 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 17 00 E8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BE [17:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:05:48]wFMCommunicate OK [17:05:48]requested_item fd.num is exist - process it [17:05:48]SAM_PROTO_GetFieldsCounters [17:05:48]wFMCommunicate request_size=4 [17:05:48]MH_SAM_APDU [17:05:48]CAPDU: 80 13 00 00 [17:05:48]Write to MH i2c: E2 08 00 E9 05 80 13 00 00 00 00 00 00 6A [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:48]Read from MH i2c: E2 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 62 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 62 00 E9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 23 02 00 0E 04 04 00 C6 01 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 CF [17:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EE 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:48]wFMCommunicate OK [17:05:48]SAM_PROTO_GetFieldsCounters done [17:05:48]requested_item shift.num is exist - process it [17:05:48]requested_item shift.opened is exist - process it [17:05:48]req_shift_opened [17:05:48]FM_GetShiftState [17:05:48]SAM_PROTO_GetShiftState [17:05:48]wFMCommunicate request_size=4 [17:05:48]MH_SAM_APDU [17:05:48]CAPDU: 80 13 01 00 [17:05:48]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [17:05:48]Write i2c OK [17:05:48]MH_I2C_Read... [17:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:48]Read from MH i2c: E2 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 0E 00 [17:05:48]MH_I2C_Read... [17:05:48]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EC [17:05:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:05:48]wFMCommunicate OK [17:05:48]SAM_PROTO_GetShiftState done [17:05:48]FM_GetShiftState done [17:05:48]req_shift_opened done [17:05:48]requested_item shift.open_date is exist - process it [17:05:48]req_shift_open_date [17:05:48]req_shift_open_date done [17:05:48]produce_requested_data done [17:05:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140270,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:05:48]process_action_free close_receipt [17:05:48]json_value_free [17:05:48]json_value_free done [17:05:48]process_json_proto returns [17:05:48]Send response to host [17:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140270,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:05:48]free response buf [17:05:48]execute_script done [17:05:48]execute_script returns [17:05:48]free content buf [17:05:48]Sock 9.Close socket [17:05:48]Sock 9.Thread stoped [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:00]accept exits with 7 [17:06:00]New connection [17:06:00]New thread 3067596132 created [17:06:00]Thread 3067452772 joined [17:06:00]Waiting for new connection... [17:06:00] Sock 7.Parse request [17:06:00]Sock 7.Check first char [17:06:00]Sock 7.First char is OK [17:06:00]request: POST /json_proto HTTP/1.0 [17:06:00]Method: POST [17:06:00]URL: /json_proto [17:06:00]Method is POST - this is cgi request [17:06:00]url: /json_proto [17:06:00]query_string will be loaded in cgi processing [17:06:00]execute_cgi json_proto POST (null) [17:06:00]execute_cgi path=json_proto method=POST [17:06:00]POST find Content-Length [17:06:00]Host: 172.17.45.67:8080 [17:06:00]Content-Length: 678 [17:06:00]Content-Type: application/json [17:06:00] [17:06:00]POST finish read [17:06:00]Found Content-Length = 678 [17:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:00]execute_script... [17:06: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)594128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:00]POST & json_proto [17:06:00]process_json_proto [17:06:00]json parsed OK: [17:06:00]protocol is kg_v1.0 [17:06:00]action value=close_receipt [17:06:00]process_action close_receipt [17:06:00]cmd_close_receipt [17:06:00]MH_GetDate [17:06:00]Write to MH i2c: F0 00 00 EB 05 DF [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: F0 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: F0 09 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: F0 09 00 EB 05 00 79 1E C6 66 5F 7F 2B 66 1A [17:06:00]GetLastDocTimeStamp 1724259945 [17:06:00]current date 1724259961 [17:06:00]FM_GetShiftState [17:06:00]SAM_PROTO_GetShiftState [17:06:00]wFMCommunicate request_size=4 [17:06:00]MH_SAM_APDU [17:06:00]CAPDU: 80 13 01 00 [17:06:00]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:00]Read from MH i2c: E2 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 0E 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EE [17:06:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:06:00]wFMCommunicate OK [17:06:00]SAM_PROTO_GetShiftState done [17:06:00]FM_GetShiftState done [17:06:00]opened in 1724200467 [17:06:00]opened+sec_in_day 1724286867 [17:06:00]quantity*price = 70037 [17:06:00]sum+1 = 70038 [17:06:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 288 21.08.2024 17:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140271 ФПД: 243208827784985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140271&fm=243208827784985&tin=02508201610067®Number=0000000000092569&sum=70000 [17:06:01]StoreToDocumentArchive [17:06:01]shift 454 fd 140271 [17:06:01]save to /storage/0454/doc_00140271 [17:06:01]save last doc name /storage/0454/doc_00140271 to /storage/kkm_last_doc_name [17:06:01]save OK [17:06:01]Clear old archive folders... [17:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:01]tlvbuf is 019A8380 [17:06:01]SAM_PROTO_ClearQueue [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 09 00 00 [17:06:01]Write to MH i2c: E2 08 00 F9 05 80 09 00 00 00 00 00 00 70 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]SAM_PROTO_ClearQueue done [17:06:01]KKMCreateOFDPacket [17:06:01]OFDProtocolAddRootSTLVToBuf [17:06:01]FM_MakeSignedData [17:06:01]FM_MakeSignedData [17:06:01]SAM_PROTO_SignData [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 0D 01 02 [17:06:01]Write to MH i2c: E2 08 00 FA 05 80 0D 01 02 00 00 00 00 78 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]wFMCommunicate request_size=255 [17:06:01]MH_SAM_APDU [17:06: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 79 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 23 02 00 35 04 06 00 DD [17:06:01]Write to MH i2c: E2 02 01 FB 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 79 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 23 02 00 35 04 06 00 DD 00 00 84 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]wFMCommunicate request_size=10 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 0D 02 02 05 32 77 C9 4F 19 [17:06:01]Write to MH i2c: E2 0D 00 FC 05 80 0D 02 02 05 00 32 77 C9 4F 19 00 00 5F [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [17:06:01]RAPDU: 90 00 [17:06:01]wFMCommunicate OK [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 0D 03 02 [17:06:01]Write to MH i2c: E2 08 00 FD 05 80 0D 03 02 00 00 00 00 7D [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 0B 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 0B 00 FD 05 00 70 FB F9 EA 56 4D 72 D3 90 00 B4 [17:06:01]RAPDU: 70 FB F9 EA 56 4D 72 D3 90 00 [17:06:01]wFMCommunicate OK [17:06:01]SAM_PROTO_SignData done [17:06:01]FM_MakeSignedData done [17:06:01]CreateOFDProtocolMessage [17:06:01]wFMCommunicate request_size=4 [17:06:01]MH_SAM_APDU [17:06:01]CAPDU: 80 11 00 00 [17:06:01]Write to MH i2c: E2 08 00 FE 05 80 11 00 00 00 00 00 00 7D [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:01]Read from MH i2c: E2 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 17 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: E2 17 00 FE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D4 [17:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:06:01]wFMCommunicate OK [17:06:01]CreateOFDProtocolMessage done [17:06:01]OFDSenderStorePacket 140271 [17:06:01]StoreOFDPacket docnum=140271 [17:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 57 93 07 01 8B 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 79 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 23 02 00 35 04 06 00 DD 32 77 C9 4F 19 70 FB F9 EA 56 4D 72 D3 [17:06:01]CheckFolder [17:06:01]dirname=/storage/ofd_packets [17:06:01]CheckFolder done [17:06:01]ProducePacketName [17:06:01]name=ofd_packets/00140271 [17:06:01]NVStorageSaveData ofd_packets/00140271 [17:06:01]File name is /storage/ofd_packets/00140271 [17:06:01]Write 301 bytes [17:06:01]NVStorageSaveData done [17:06:01]OFDSenderStorePacket done [17:06:01]KKMCreateOFDPacket done [17:06:01]NVStorageSaveData kkm_last_timestamp [17:06:01]File name is /storage/kkm_last_timestamp [17:06:01]Write 4 bytes [17:06:01]NVStorageSaveData done [17:06:01]OFD Sender: Processing packet 140271 [packets to send 137, broken 136] [17:06:01]ProducePacketName [17:06:01]name=ofd_packets/00140271 [17:06:01]OFD Sender: To server: pG, [17:06:01]CommunicateWithHost lk.salyk.kg:30040 [17:06:01]ConnectInit lk.salyk.kg [17:06:01]ExternCall_PrintAddStr [17:06:01]wPrintStart [17:06:01]Write to MH i2c: 01 00 00 FF 05 04 [17:06:01]Write i2c OK [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: 01 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: 01 07 00 [17:06:01]MH_I2C_Read... [17:06:01]Read from MH i2c: 01 07 00 FF 05 00 00 00 00 00 FF 0F 19 [17:06:01]RasterBufferAndPrint [17:06:01]line Счет N : (1)594128 [17:06:01]line ИНН: 02508201610067 [17:06:01]line Контрольно-Кассовый Чек [17:06:01]line ПРОДАЖА [17:06:01]line ТРК (МРК, ГНК) : 42 [17:06:01]line Товар: 2710124130 [17:06:01]line Аи-92-К-5 [17:06:01]line 10.330 * 67.80 [17:06:01]line = 700.37 [17:06:01]line НДС 12% НСП 1% [17:06:01]line > о реализуемом товаре [17:06:01]line ОКРУГЛЕНИЕ: -0.37 [17:06:01]line ИТОГО: 700.00 [17:06:01]line Внесено: 700.00 [17:06:01]line СДАЧА: 0.00 [17:06:01]line НСП 1% : 6.20 [17:06:01]line НДС 12% : 74.38 [17:06:01]line Наличными: 700.00 [17:06:01]line Безнал.: 0.00 [17:06:01]line Место: АЗС № 136 "Партнер Нефть" [17:06:01]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:06:01]line СНО: Общий режим [17:06:01]line Чек 288 21.08.2024 17:06 [17:06:01]line Смена: 454 ФФД: 1.0 [17:06:01]line ЗНМ: 0300000067 [17:06:01]line РНМ: 0000000000092569 [17:06:01]line Версия ККМ: 001 [17:06:01]line ФМ: 0000000000871776 [17:06:01]line ФД: 140271 [17:06:01]line ФПД: 243208827784985 [17:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T170601&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140271&fm=243208827784985&tin=02508201610067®Number=0000000000092569&sum=70000 [17:06:02]Connected sock=11 [17:06: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 37 36 0F 01 00 00 57 93 07 01 8B 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 79 1E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 EF 23 02 00 35 04 06 00 DD 32 77 C9 4F 19 70 FB F9 EA 56 4D 72 D3 [17:06:02]written 0, free lines is 4095 [17:06: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 37 36 4F 00 00 00 CD 63 47 00 01 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 37 36 10 04 04 00 EF 23 02 00 F4 03 04 00 09 C5 C5 66 B6 04 01 00 00 B7 D5 97 B4 DA 45 C3 0F [17:06:02]CommunicateWithHost err = 0 [17:06:02]CheckOFDResponse [17:06:02]1017 (14) - 77093643461234 [17:06:02]1041 (16) - 0000000000871776 [17:06:02]1040 (4) - 140271 [17:06:02]1012 (4) - 21.08.2024 10:44 [17:06:02]1206 (1) - 0 [17:06:02]OFD Sender: Remove packet 140271 [17:06:02]ProducePacketName [17:06:02]name=ofd_packets/00140271 [17:06:02]NVStorageDeleteData [17:06:02]Write to MH i2c: 01 00 00 2A 06 30 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: 01 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: 01 07 00 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 D4 0C 17 [17:06:02]RasterBufferAndPrint [17:06:02]line [17:06:02]line [17:06:02]line [17:06:02]line [17:06:02]line [17:06:02]written 0, free lines is 3292 [17:06:02]MH_Cut [17:06:02]Write to MH i2c: D1 01 00 31 06 01 09 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: D1 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: D1 01 00 [17:06:02]MH_I2C_Read... [17:06:02]Read from MH i2c: D1 01 00 31 06 00 08 [17:06:02]Write to MH i2c: 01 00 00 32 06 38 [17:06:02]Write i2c OK [17:06:02]MH_I2C_Read... [17:06:02]OFD Sender: No OFD packet to send [17:06:03]*** Cut start [17:06:03]*** Partial cut [17:06:03]*** CUTSNS_PIN = 1 [17:06:03]*** CUTSNS_PIN = 0 [17:06:03]*** Brake cut motor [17:06:03]Read from MH i2c: 01 [17:06:03]MH_I2C_Read... [17:06:03]*** Stop cut motor [17:06:03]*** Cut end [17:06:03]Read from MH i2c: 01 07 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [17:06:03]process_action close_receipt done [17:06:03]requested_data is exist [17:06:03]produce_requested_data [17:06:03]requested_item fm.sn is exist - process it [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 11 00 00 [17:06:03]Write to MH i2c: E2 08 00 33 06 80 11 00 00 00 00 00 00 B3 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:03]Read from MH i2c: E2 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 17 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: E2 17 00 33 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0A [17:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:06:03]wFMCommunicate OK [17:06:03]requested_item fd.num is exist - process it [17:06:03]SAM_PROTO_GetFieldsCounters [17:06:03]wFMCommunicate request_size=4 [17:06:03]MH_SAM_APDU [17:06:03]CAPDU: 80 13 00 00 [17:06:03]Write to MH i2c: E2 08 00 34 06 80 13 00 00 00 00 00 00 B6 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:04]Read from MH i2c: E2 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 62 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 62 00 34 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 23 02 00 0E 04 04 00 C6 01 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 1F [17:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 EF 23 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:04]wFMCommunicate OK [17:06:04]SAM_PROTO_GetFieldsCounters done [17:06:04]requested_item shift.num is exist - process it [17:06:04]requested_item shift.opened is exist - process it [17:06:04]req_shift_opened [17:06:04]FM_GetShiftState [17:06:04]SAM_PROTO_GetShiftState [17:06:04]wFMCommunicate request_size=4 [17:06:04]MH_SAM_APDU [17:06:04]CAPDU: 80 13 01 00 [17:06:04]Write to MH i2c: E2 08 00 35 06 80 13 01 00 00 00 00 00 B8 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:04]Read from MH i2c: E2 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 0E 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 0E 00 35 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 38 [17:06:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:06:04]wFMCommunicate OK [17:06:04]SAM_PROTO_GetShiftState done [17:06:04]FM_GetShiftState done [17:06:04]req_shift_opened done [17:06:04]requested_item shift.open_date is exist - process it [17:06:04]req_shift_open_date [17:06:04]req_shift_open_date done [17:06:04]produce_requested_data done [17:06:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140271,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:06:04]process_action_free close_receipt [17:06:04]json_value_free [17:06:04]json_value_free done [17:06:04]process_json_proto returns [17:06:04]Send response to host [17:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140271,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:06:04]free response buf [17:06:04]execute_script done [17:06:04]execute_script returns [17:06:04]free content buf [17:06:04]Sock 7.Close socket [17:06:04]Sock 7.Thread stoped [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:13]accept exits with 9 [17:14:13]New connection [17:14:13]New thread 3067452772 created [17:14:13]Thread 3067596132 joined [17:14:13]Waiting for new connection... [17:14:13] Sock 9.Parse request [17:14:13]Sock 9.Check first char [17:14:13]Sock 9.First char is OK [17:14:13]request: POST /json_proto HTTP/1.0 [17:14:13]Method: POST [17:14:13]URL: /json_proto [17:14:13]Method is POST - this is cgi request [17:14:13]url: /json_proto [17:14:13]query_string will be loaded in cgi processing [17:14:13]execute_cgi json_proto POST (null) [17:14:13]execute_cgi path=json_proto method=POST [17:14:13]POST find Content-Length [17:14:13]Host: 172.17.45.67:8080 [17:14:13]Content-Length: 682 [17:14:13]Content-Type: application/json [17:14:13] [17:14:13]POST finish read [17:14:13]Found Content-Length = 682 [17:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:13]execute_script... [17:14: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)594129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:13]POST & json_proto [17:14:13]process_json_proto [17:14:13]json parsed OK: [17:14:13]protocol is kg_v1.0 [17:14:13]action value=close_receipt [17:14:13]process_action close_receipt [17:14:13]cmd_close_receipt [17:14:13]MH_GetDate [17:14:13]Write to MH i2c: F0 00 00 36 06 2B [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: F0 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: F0 09 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: F0 09 00 36 06 00 66 20 C6 66 5F 7F 2B 66 55 [17:14:13]GetLastDocTimeStamp 1724259961 [17:14:13]current date 1724260454 [17:14:13]FM_GetShiftState [17:14:13]SAM_PROTO_GetShiftState [17:14:13]wFMCommunicate request_size=4 [17:14:13]MH_SAM_APDU [17:14:13]CAPDU: 80 13 01 00 [17:14:13]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [17:14:13]Write i2c OK [17:14:13]MH_I2C_Read... [17:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:13]Read from MH i2c: E2 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0E 00 [17:14:13]MH_I2C_Read... [17:14:13]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3A [17:14:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:14:13]wFMCommunicate OK [17:14:13]SAM_PROTO_GetShiftState done [17:14:13]FM_GetShiftState done [17:14:13]opened in 1724200467 [17:14:13]opened+sec_in_day 1724286867 [17:14:13]quantity*price = 200043 [17:14:13]sum+1 = 200044 [17:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 289 21.08.2024 17:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140272 ФПД: 44542517680446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T171414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140272&fm=44542517680446&tin=02508201610067®Number=0000000000092569&sum=200000 [17:14:15]StoreToDocumentArchive [17:14:15]shift 454 fd 140272 [17:14:15]save to /storage/0454/doc_00140272 [17:14:15]save last doc name /storage/0454/doc_00140272 to /storage/kkm_last_doc_name [17:14:15]save OK [17:14:15]Clear old archive folders... [17:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:15]tlvbuf is 019A9F90 [17:14:15]SAM_PROTO_ClearQueue [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 09 00 00 [17:14:15]Write to MH i2c: E2 08 00 44 06 80 09 00 00 00 00 00 00 BC [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]SAM_PROTO_ClearQueue done [17:14:15]KKMCreateOFDPacket [17:14:15]OFDProtocolAddRootSTLVToBuf [17:14:15]FM_MakeSignedData [17:14:15]FM_MakeSignedData [17:14:15]SAM_PROTO_SignData [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 01 02 [17:14:15]Write to MH i2c: E2 08 00 45 06 80 0D 01 02 00 00 00 00 C4 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]wFMCommunicate request_size=255 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 66 20 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 23 02 00 35 04 06 00 28 [17:14:15]Write to MH i2c: E2 02 01 46 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 66 20 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 23 02 00 35 04 06 00 28 00 00 DD [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]wFMCommunicate request_size=10 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 02 02 05 82 DC F1 99 3E [17:14:15]Write to MH i2c: E2 0D 00 47 06 80 0D 02 02 05 00 82 DC F1 99 3E 00 00 F7 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [17:14:15]RAPDU: 90 00 [17:14:15]wFMCommunicate OK [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 0D 03 02 [17:14:15]Write to MH i2c: E2 08 00 48 06 80 0D 03 02 00 00 00 00 C9 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 0B 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 0B 00 48 06 00 D6 B4 5A 50 88 C0 8C 32 90 00 04 [17:14:15]RAPDU: D6 B4 5A 50 88 C0 8C 32 90 00 [17:14:15]wFMCommunicate OK [17:14:15]SAM_PROTO_SignData done [17:14:15]FM_MakeSignedData done [17:14:15]CreateOFDProtocolMessage [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 11 00 00 [17:14:15]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 17 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 20 [17:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:14:15]wFMCommunicate OK [17:14:15]CreateOFDProtocolMessage done [17:14:15]OFDSenderStorePacket 140272 [17:14:15]StoreOFDPacket docnum=140272 [17:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 F5 07 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 66 20 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 23 02 00 35 04 06 00 28 82 DC F1 99 3E D6 B4 5A 50 88 C0 8C 32 [17:14:15]CheckFolder [17:14:15]dirname=/storage/ofd_packets [17:14:15]CheckFolder done [17:14:15]ProducePacketName [17:14:15]name=ofd_packets/00140272 [17:14:15]NVStorageSaveData ofd_packets/00140272 [17:14:15]File name is /storage/ofd_packets/00140272 [17:14:15]Write 301 bytes [17:14:15]NVStorageSaveData done [17:14:15]OFDSenderStorePacket done [17:14:15]KKMCreateOFDPacket done [17:14:15]NVStorageSaveData kkm_last_timestamp [17:14:15]File name is /storage/kkm_last_timestamp [17:14:15]Write 4 bytes [17:14:15]NVStorageSaveData done [17:14:15]ExternCall_PrintAddStr [17:14:15]wPrintStart [17:14:15]Write to MH i2c: 01 00 00 4A 06 50 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: 01 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: 01 07 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 FF 0F 65 [17:14:15]RasterBufferAndPrint [17:14:15]line Счет N : (1)594129 [17:14:15]line ИНН: 02508201610067 [17:14:15]line Контрольно-Кассовый Чек [17:14:15]line ПРОДАЖА [17:14:15]line ТРК (МРК, ГНК) : 61 [17:14:15]line Товар: 2710124500 [17:14:15]line Аи-95-К-5 [17:14:15]line 26.960 * 74.20 [17:14:15]line = 2000.43 [17:14:15]line НДС 12% НСП 1% [17:14:15]line > о реализуемом товаре [17:14:15]line ОКРУГЛЕНИЕ: -0.43 [17:14:15]line ИТОГО: 2000.00 [17:14:15]line Внесено: 2000.00 [17:14:15]line СДАЧА: 0.00 [17:14:15]line НСП 1% : 17.70 [17:14:15]line НДС 12% : 212.43 [17:14:15]line Наличными: 2000.00 [17:14:15]line Безнал.: 0.00 [17:14:15]line Место: АЗС № 136 "Партнер Нефть" [17:14:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:14:15]line СНО: Общий режим [17:14:15]line Чек 289 21.08.2024 17:14 [17:14:15]line Смена: 454 ФФД: 1.0 [17:14:15]line ЗНМ: 0300000067 [17:14:15]line РНМ: 0000000000092569 [17:14:15]line Версия ККМ: 001 [17:14:15]line ФМ: 0000000000871776 [17:14:15]line ФД: 140272 [17:14:15]line ФПД: 44542517680446 [17:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T171414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140272&fm=44542517680446&tin=02508201610067®Number=0000000000092569&sum=200000 [17:14:15]OFD Sender: Processing packet 140272 [packets to send 137, broken 136] [17:14:15]ProducePacketName [17:14:15]name=ofd_packets/00140272 [17:14:15]OFD Sender: To server: pG, [17:14:15]CommunicateWithHost lk.salyk.kg:30040 [17:14:15]ConnectInit lk.salyk.kg [17:14:15]written 0, free lines is 4095 [17:14:16]Connected sock=10 [17:14: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 37 36 0F 01 00 00 C1 F5 07 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 66 20 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F0 23 02 00 35 04 06 00 28 82 DC F1 99 3E D6 B4 5A 50 88 C0 8C 32 [17:14: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 37 36 4F 00 00 00 95 94 47 00 FE 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 37 36 10 04 04 00 F0 23 02 00 F4 03 04 00 F7 C6 C5 66 B6 04 01 00 00 A1 2D 51 06 36 FA C3 9C [17:14:16]CommunicateWithHost err = 0 [17:14:16]CheckOFDResponse [17:14:16]1017 (14) - 77093643461234 [17:14:16]1041 (16) - 0000000000871776 [17:14:16]1040 (4) - 140272 [17:14:16]1012 (4) - 21.08.2024 10:52 [17:14:16]1206 (1) - 0 [17:14:16]OFD Sender: Remove packet 140272 [17:14:16]ProducePacketName [17:14:16]name=ofd_packets/00140272 [17:14:16]NVStorageDeleteData [17:14:16]Write to MH i2c: 01 00 00 75 06 7B [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 07 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 D3 0C 61 [17:14:16]RasterBufferAndPrint [17:14:16]line [17:14:16]line [17:14:16]line [17:14:16]line [17:14:16]line [17:14:16]written 0, free lines is 3293 [17:14:16]MH_Cut [17:14:16]Write to MH i2c: D1 01 00 7C 06 01 54 [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: D1 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: D1 01 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: D1 01 00 7C 06 00 53 [17:14:16]Write to MH i2c: 01 00 00 7D 06 83 [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]OFD Sender: No OFD packet to send [17:14:17]*** Cut start [17:14:17]*** Partial cut [17:14:17]*** CUTSNS_PIN = 1 [17:14:17]*** CUTSNS_PIN = 0 [17:14:17]*** Brake cut motor [17:14:17]Read from MH i2c: 01 [17:14:17]MH_I2C_Read... [17:14:17]*** Stop cut motor [17:14:17]*** Cut end [17:14:17]Read from MH i2c: 01 07 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 FF 0F 98 [17:14:17]process_action close_receipt done [17:14:17]requested_data is exist [17:14:17]produce_requested_data [17:14:17]requested_item fm.sn is exist - process it [17:14:17]wFMCommunicate request_size=4 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 11 00 00 [17:14:17]Write to MH i2c: E2 08 00 7E 06 80 11 00 00 00 00 00 00 FE [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 17 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 17 00 7E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 55 [17:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:14:17]wFMCommunicate OK [17:14:17]requested_item fd.num is exist - process it [17:14:17]SAM_PROTO_GetFieldsCounters [17:14:17]wFMCommunicate request_size=4 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 13 00 00 [17:14:17]Write to MH i2c: E2 08 00 7F 06 80 13 00 00 00 00 00 00 01 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 62 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 62 00 7F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 23 02 00 0E 04 04 00 C6 01 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 6E [17:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F0 23 02 00 0E 04 04 00 C6 01 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 [17:14:17]wFMCommunicate OK [17:14:17]SAM_PROTO_GetFieldsCounters done [17:14:17]requested_item shift.num is exist - process it [17:14:17]requested_item shift.opened is exist - process it [17:14:17]req_shift_opened [17:14:17]FM_GetShiftState [17:14:17]SAM_PROTO_GetShiftState [17:14:17]wFMCommunicate request_size=4 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 13 01 00 [17:14:17]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:17]Read from MH i2c: E2 0E 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 83 [17:14:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:14:17]wFMCommunicate OK [17:14:17]SAM_PROTO_GetShiftState done [17:14:17]FM_GetShiftState done [17:14:17]req_shift_opened done [17:14:17]requested_item shift.open_date is exist - process it [17:14:17]req_shift_open_date [17:14:17]req_shift_open_date done [17:14:17]produce_requested_data done [17:14:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140272,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:14:17]process_action_free close_receipt [17:14:17]json_value_free [17:14:17]json_value_free done [17:14:17]process_json_proto returns [17:14:17]Send response to host [17:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140272,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:14:17]free response buf [17:14:17]execute_script done [17:14:17]execute_script returns [17:14:17]free content buf [17:14:17]Sock 9.Close socket [17:14:17]Sock 9.Thread stoped [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:24]accept exits with 7 [17:17:24]New connection [17:17:24]New thread 3067596132 created [17:17:24]Thread 3067452772 joined [17:17:24]Waiting for new connection... [17:17:24] Sock 7.Parse request [17:17:24]Sock 7.Check first char [17:17:24]Sock 7.First char is OK [17:17:24]request: POST /json_proto HTTP/1.0 [17:17:24]Method: POST [17:17:24]URL: /json_proto [17:17:24]Method is POST - this is cgi request [17:17:24]url: /json_proto [17:17:24]query_string will be loaded in cgi processing [17:17:24]execute_cgi json_proto POST (null) [17:17:24]execute_cgi path=json_proto method=POST [17:17:24]POST find Content-Length [17:17:24]Host: 172.17.45.67:8080 [17:17:24]Content-Length: 677 [17:17:24]Content-Type: application/json [17:17:24] [17:17:24]POST finish read [17:17:24]Found Content-Length = 677 [17:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [17:17:24]execute_script... [17:17: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)594130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [17:17:24]POST & json_proto [17:17:24]process_json_proto [17:17:24]json parsed OK: [17:17:24]protocol is kg_v1.0 [17:17:24]action value=close_receipt [17:17:24]process_action close_receipt [17:17:24]cmd_close_receipt [17:17:24]MH_GetDate [17:17:24]Write to MH i2c: F0 00 00 81 06 76 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 09 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: F0 09 00 81 06 00 25 21 C6 66 5F 7F 2B 66 60 [17:17:24]GetLastDocTimeStamp 1724260454 [17:17:24]current date 1724260645 [17:17:24]FM_GetShiftState [17:17:24]SAM_PROTO_GetShiftState [17:17:24]wFMCommunicate request_size=4 [17:17:24]MH_SAM_APDU [17:17:24]CAPDU: 80 13 01 00 [17:17:24]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [17:17:24]Write i2c OK [17:17:24]MH_I2C_Read... [17:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:24]Read from MH i2c: E2 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 [17:17:24]MH_I2C_Read... [17:17:24]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 85 [17:17:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:17:24]wFMCommunicate OK [17:17:24]SAM_PROTO_GetShiftState done [17:17:24]FM_GetShiftState done [17:17:24]opened in 1724200467 [17:17:24]opened+sec_in_day 1724286867 [17:17:24]quantity*price = 22035 [17:17:24]sum+1 = 22036 [17:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре [17:19:50]line ОКРУГЛЕНИЕ: -0.35 [17:19:50]line ИТОГО: 220.00 [17:19:50]line Внесено: 220.00 [17:19:50]line СДАЧА: 0.00 [17:19:50]line НСП 1% : 1.95 [17:19:50]line НДС 12% : 23.40 [17:19:50]line Наличными: 220.00 [17:19:50]line Безнал.: 0.00 [17:19:50]line Место: АЗС № 136 "Партнер Нефть" [17:19:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:19:50]line СНО: Общий режим [17:19:50]line Чек 290 21.08.2024 17:17 [17:19:50]line Смена: 454 ФФД: 1.0 [17:19:50]line ЗНМ: 0300000067 [17:19:50]line РНМ: 0000000000092569 [17:19:50]line Версия ККМ: 001 [17:19:50]line ФМ: 0000000000871776 [17:19:50]line ФД: 140273 [17:19:50]line ФПД: 264199872612547 [17:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T171725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140273&fm=264199872612547&tin=02508201610067®Number=0000000000092569&sum=22000 [17:19:50]written 0, free lines is 4095 [17:19:50]OFD Sender: No OFD packet to send [17:19:51]Write to MH i2c: 01 00 00 48 00 48 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 07 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D4 0C 2F [17:19:51]RasterBufferAndPrint [17:19:51]line [17:19:51]line [17:19:51]line [17:19:51]line [17:19:51]line [17:19:51]written 0, free lines is 3302 [17:19:51]MH_Cut [17:19:51]Write to MH i2c: D1 01 00 4F 00 01 21 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: D1 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: D1 01 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: D1 01 00 4F 00 00 20 [17:19:51]Write to MH i2c: 01 00 00 50 00 50 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** Cut start [17:19:51]*** Partial cut [17:19:51]*** CUTSNS_PIN = 1 [17:19:51]*** CUTSNS_PIN = 0 [17:19:52]*** Brake cut motor [17:19:52]Read from MH i2c: 01 [17:19:52]MH_I2C_Read... [17:19:52]*** Stop cut motor [17:19:52]*** Cut end [17:19:52]Read from MH i2c: 01 07 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [17:19:52]process_action print_doc done [17:19:52]requested_data is exist [17:19:52]produce_requested_data [17:19:52]produce_requested_data return (null) [17:19:52]process_action_free print_doc [17:19:52]json_value_free [17:19:52]json_value_free done [17:19:52]process_json_proto returns [17:19:52]Send response to host [17:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:19:52]free response buf [17:19:52]execute_script done [17:19:52]execute_script returns [17:19:52]free content buf [17:19:52]Sock 9.Close socket [17:19:52]Sock 9.Thread stoped [17:19:52]accept exits with 6 [17:19:52]New connection [17:19:52]New thread 3067469156 created [17:19:52]Thread 3067612516 joined [17:19:52]Waiting for new connection... [17:19:52] Sock 6.Parse request [17:19:52]Sock 6.Check first char [17:19:52]Sock 6.First char is OK [17:19:52]request: POST /json_proto HTTP/1.0 [17:19:52]Method: POST [17:19:52]URL: /json_proto [17:19:52]Method is POST - this is cgi request [17:19:52]url: /json_proto [17:19:52]query_string will be loaded in cgi processing [17:19:52]execute_cgi json_proto POST (null) [17:19:52]execute_cgi path=json_proto method=POST [17:19:52]POST find Content-Length [17:19:52]Host: 172.17.45.67:8080 [17:19:52]Content-Length: 677 [17:19:52]Content-Type: application/json [17:19:52] [17:19:52]POST finish read [17:19:52]Found Content-Length = 677 [17:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:52]execute_script... [17:19: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)594131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:52]POST & json_proto [17:19:52]process_json_proto [17:19:52]json parsed OK: [17:19:52]protocol is kg_v1.0 [17:19:52]action value=close_receipt [17:19:52]process_action close_receipt [17:19:52]cmd_close_receipt [17:19:52]MH_GetDate [17:19:52]Write to MH i2c: F0 00 00 51 00 40 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: F0 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: F0 09 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: F0 09 00 51 00 00 B8 21 C6 66 5F 7F 2B 66 BD [17:19:52]GetLastDocTimeStamp 1724260645 [17:19:52]current date 1724260792 [17:19:52]FM_GetShiftState [17:19:52]SAM_PROTO_GetShiftState [17:19:52]wFMCommunicate request_size=4 [17:19:52]MH_SAM_APDU [17:19:52]CAPDU: 80 13 01 00 [17:19:52]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 0E 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4F [17:19:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:19:52]wFMCommunicate OK [17:19:52]SAM_PROTO_GetShiftState done [17:19:52]FM_GetShiftState done [17:19:52]opened in 1724200467 [17:19:52]opened+sec_in_day 1724286867 [17:19:52]quantity*price = 50036 [17:19:52]sum+1 = 50037 [17:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 291 21.08.2024 17:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140274 ФПД: 206241234950300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T171953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140274&fm=206241234950300&tin=02508201610067®Number=0000000000092569&sum=50000 [17:19:53]StoreToDocumentArchive [17:19:53]shift 454 fd 140274 [17:19:53]save to /storage/0454/doc_00140274 [17:19:53]save last doc name /storage/0454/doc_00140274 to /storage/kkm_last_doc_name [17:19:53]save OK [17:19:53]Clear old archive folders... [17:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:53]tlvbuf is 00C34F20 [17:19:53]SAM_PROTO_ClearQueue [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 09 00 00 [17:19:53]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 03 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:19:53]RAPDU: 90 00 [17:19:53]wFMCommunicate OK [17:19:53]SAM_PROTO_ClearQueue done [17:19:53]KKMCreateOFDPacket [17:19:53]OFDProtocolAddRootSTLVToBuf [17:19:53]FM_MakeSignedData [17:19:53]FM_MakeSignedData [17:19:53]SAM_PROTO_SignData [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 0D 01 02 [17:19:53]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 03 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:19:53]RAPDU: 90 00 [17:19:53]wFMCommunicate OK [17:19:53]wFMCommunicate request_size=255 [17:19:53]MH_SAM_APDU [17:19: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B9 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 23 02 00 35 04 06 00 BB [17:19:53]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B9 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 23 02 00 35 04 06 00 BB 00 00 25 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=10 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 0D 02 02 05 93 47 8C 18 9C [17:19:54]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 93 47 8C 18 9C 00 00 00 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [17:19:54]RAPDU: 90 00 [17:19:54]wFMCommunicate OK [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 0D 03 02 [17:19:54]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0B 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0B 00 63 00 00 61 D7 C4 D3 0D C0 61 60 90 00 3C [17:19:54]RAPDU: 61 D7 C4 D3 0D C0 61 60 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_SignData done [17:19:54]FM_MakeSignedData done [17:19:54]CreateOFDProtocolMessage [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 11 00 00 [17:19:54]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 17 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [17:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:19:54]wFMCommunicate OK [17:19:54]CreateOFDProtocolMessage done [17:19:54]OFDSenderStorePacket 140274 [17:19:54]StoreOFDPacket docnum=140274 [17:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E D6 07 01 EA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B9 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 23 02 00 35 04 06 00 BB 93 47 8C 18 9C 61 D7 C4 D3 0D C0 61 60 [17:19:54]CheckFolder [17:19:54]dirname=/storage/ofd_packets [17:19:54]CheckFolder done [17:19:54]ProducePacketName [17:19:54]name=ofd_packets/00140274 [17:19:54]NVStorageSaveData ofd_packets/00140274 [17:19:54]File name is /storage/ofd_packets/00140274 [17:19:54]Write 301 bytes [17:19:54]NVStorageSaveData done [17:19:54]OFDSenderStorePacket done [17:19:54]KKMCreateOFDPacket done [17:19:54]NVStorageSaveData kkm_last_timestamp [17:19:54]File name is /storage/kkm_last_timestamp [17:19:54]Write 4 bytes [17:19:54]NVStorageSaveData done [17:19:54]ExternCall_PrintAddStr [17:19:54]wPrintStart [17:19:54]Write to MH i2c: 01 00 00 65 00 65 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 07 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [17:19:54]RasterBufferAndPrint [17:19:54]line Счет N : (1)594131 [17:19:54]line ИНН: 02508201610067 [17:19:54]line Контрольно-Кассовый Чек [17:19:54]line ПРОДАЖА [17:19:54]line ТРК (МРК, ГНК) : 32 [17:19:54]line Товар: 2710124130 [17:19:54]line Аи-92-К-5 [17:19:54]line 7.380 * 67.80 [17:19:54]line = 500.36 [17:19:54]line НДС 12% НСП 1% [17:19:54]line > о реализуемом товаре [17:19:54]line ОКРУГЛЕНИЕ: -0.36 [17:19:54]line ИТОГО: 500.00 [17:19:54]line Внесено: 500.00 [17:19:54]line СДАЧА: 0.00 [17:19:54]line НСП 1% : 4.43 [17:19:54]line НДС 12% : 53.14 [17:19:54]line Наличными: 500.00 [17:19:54]line Безнал.: 0.00 [17:19:54]line Место: АЗС № 136 "Партнер Нефть" [17:19:54]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:19:54]line СНО: Общий режим [17:19:54]line Чек 291 21.08.2024 17:19 [17:19:54]line Смена: 454 ФФД: 1.0 [17:19:54]line ЗНМ: 0300000067 [17:19:54]line РНМ: 0000000000092569 [17:19:54]line Версия ККМ: 001 [17:19:54]line ФМ: 0000000000871776 [17:19:54]line ФД: 140274 [17:19:54]line ФПД: 206241234950300 [17:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T171953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140274&fm=206241234950300&tin=02508201610067®Number=0000000000092569&sum=50000 [17:19:54]written 0, free lines is 4095 [17:19:54]OFD Sender: Processing packet 140274 [packets to send 137, broken 136] [17:19:54]ProducePacketName [17:19:54]name=ofd_packets/00140274 [17:19:54]OFD Sender: To server: pG, [17:19:54]CommunicateWithHost lk.salyk.kg:30040 [17:19:54]ConnectInit lk.salyk.kg [17:19:55]Connected sock=10 [17:19:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1E D6 07 01 EA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 B9 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F2 23 02 00 35 04 06 00 BB 93 47 8C 18 9C 61 D7 C4 D3 0D C0 61 60 [17:19:55]Write to MH i2c: 01 00 00 90 00 90 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 07 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D8 0C 7B [17:19:55]RasterBufferAndPrint [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]line [17:19:55]written 0, free lines is 3313 [17:19:55]MH_Cut [17:19:55]Write to MH i2c: D1 01 00 97 00 01 69 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 01 00 [17:19:55]MH_I2C_Read... [17:19:55]Read from MH i2c: D1 01 00 97 00 00 68 [17:19:55]Write to MH i2c: 01 00 00 98 00 98 [17:19:55]Write i2c OK [17:19:55]MH_I2C_Read... [17:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 80 39 47 00 C5 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 37 36 10 04 04 00 F2 23 02 00 F4 03 04 00 49 C8 C5 66 B6 04 01 00 00 4A A1 CF 6E E1 D2 AF 9A [17:19:55]CommunicateWithHost err = 0 [17:19:55]CheckOFDResponse [17:19:55]1017 (14) - 77093643461234 [17:19:55]1041 (16) - 0000000000871776 [17:19:55]1040 (4) - 140274 [17:19:55]1012 (4) - 21.08.2024 10:58 [17:19:55]1206 (1) - 0 [17:19:55]OFD Sender: Remove packet 140274 [17:19:55]ProducePacketName [17:19:55]name=ofd_packets/00140274 [17:19:55]NVStorageDeleteData [17:19:55]OFD Sender: No OFD packet to send [17:19:56]*** Cut start [17:19:56]*** Partial cut [17:19:56]*** CUTSNS_PIN = 1 [17:19:56]*** CUTSNS_PIN = 0 [17:19:56]*** Brake cut motor [17:19:56]Read from MH i2c: 01 [17:19:56]MH_I2C_Read... [17:19:56]*** Stop cut motor [17:19:56]*** Cut end [17:19:56]Read from MH i2c: 01 07 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [17:19:56]process_action close_receipt done [17:19:56]requested_data is exist [17:19:56]produce_requested_data [17:19:56]requested_item fm.sn is exist - process it [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 11 00 00 [17:19:56]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 17 00 [17:19:56]MH_I2C_Read... [17:19:56]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 37 36 90 00 6A [17:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:19:56]wFMCommunicate OK [17:19:56]requested_item fd.num is exist - process it [17:19:56]SAM_PROTO_GetFieldsCounters [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 13 00 00 [17:19:56]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 62 00 [17:19:56]MH_I2C_Read... [17:19:56]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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 23 02 00 0E 04 04 00 C6 01 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 8B [17:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F2 23 02 00 0E 04 04 00 C6 01 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 [17:19:56]wFMCommunicate OK [17:19:56]SAM_PROTO_GetFieldsCounters done [17:19:56]requested_item shift.num is exist - process it [17:19:56]requested_item shift.opened is exist - process it [17:19:56]req_shift_opened [17:19:56]FM_GetShiftState [17:19:56]SAM_PROTO_GetShiftState [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 13 01 00 [17:19:56]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 0E 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [17:19:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:19:56]wFMCommunicate OK [17:19:56]SAM_PROTO_GetShiftState done [17:19:56]FM_GetShiftState done [17:19:56]req_shift_opened done [17:19:56]requested_item shift.open_date is exist - process it [17:19:56]req_shift_open_date [17:19:56]req_shift_open_date done [17:19:56]produce_requested_data done [17:19:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140274,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:19:56]process_action_free close_receipt [17:19:56]json_value_free [17:19:56]json_value_free done [17:19:56]process_json_proto returns [17:19:56]Send response to host [17:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140274,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:19:56]free response buf [17:19:56]execute_script done [17:19:56]execute_script returns [17:19:56]free content buf [17:19:56]Sock 6.Close socket [17:19:56]Sock 6.Thread stoped [17:19:58]int [17:19:58]Write to MH i2c: 01 00 00 9C 00 9C [17:19:58]*** FLAG_PRN_KEY set [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 9C 00 00 08 00 00 00 FF 0F B9 [17:19:58]state=0 [17:19:58]Key pressed [17:19:58]Feed [17:19:58]Write to MH i2c: D8 00 00 9D 00 74 [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D8 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D8 01 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: D8 01 00 9D 00 00 75 [17:19:58]int line is 0 - check status [17:19:58]Write to MH i2c: 01 00 00 9E 00 9E [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 9E 00 00 48 00 00 00 3C 00 29 [17:19:58]state=2 [17:19:58]Key pressed [17:19:58]int [17:19:58]Write to MH i2c: 01 00 00 9F 00 9F [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 9F 00 00 48 00 00 00 3C 00 2A [17:19:58]state=2 [17:19:58]Key pressed [17:19:58]int [17:19:58]Write to MH i2c: 01 00 00 A0 00 A0 [17:19:58]*** FLAG_PRN_KEY reset [17:19:58]Write i2c OK [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 [17:19:58]MH_I2C_Read... [17:19:58]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [17:19:58]state=2 [17:19:58]Stop feed [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:31]accept exits with 9 [17:20:31]New connection [17:20:31]New thread 3067612516 created [17:20:31]Thread 3067469156 joined [17:20:31]Waiting for new connection... [17:20:31] Sock 9.Parse request [17:20:31]Sock 9.Check first char [17:20:31]Sock 9.First char is OK [17:20:31]request: POST /json_proto HTTP/1.0 [17:20:31]Method: POST [17:20:31]URL: /json_proto [17:20:31]Method is POST - this is cgi request [17:20:31]url: /json_proto [17:20:31]query_string will be loaded in cgi processing [17:20:31]execute_cgi json_proto POST (null) [17:20:31]execute_cgi path=json_proto method=POST [17:20:31]POST find Content-Length [17:20:31]Host: 172.17.45.67:8080 [17:20:31]Content-Length: 677 [17:20:31]Content-Type: application/json [17:20:31] [17:20:31]POST finish read [17:20:31]Found Content-Length = 677 [17:20:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31]execute_script... [17:20: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)594132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31]POST & json_proto [17:20:31]process_json_proto [17:20:31]json parsed OK: [17:20:31]protocol is kg_v1.0 [17:20:31]action value=close_receipt [17:20:31]process_action close_receipt [17:20:31]cmd_close_receipt [17:20:31]MH_GetDate [17:20:31]Write to MH i2c: F0 00 00 A1 00 90 [17:20:31]Write i2c OK [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: F0 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: F0 09 00 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: F0 09 00 A1 00 00 DF 21 C6 66 5F 7F 2B 66 34 [17:20:31]GetLastDocTimeStamp 1724260793 [17:20:31]current date 1724260831 [17:20:31]FM_GetShiftState [17:20:31]SAM_PROTO_GetShiftState [17:20:31]wFMCommunicate request_size=4 [17:20:31]MH_SAM_APDU [17:20:31]CAPDU: 80 13 01 00 [17:20:31]Write to MH i2c: E2 08 00 A2 00 80 13 01 00 00 00 00 00 1F [17:20:31]Write i2c OK [17:20:31]MH_I2C_Read... [17:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:31]Read from MH i2c: E2 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: E2 0E 00 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: E2 0E 00 A2 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9F [17:20:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:20:31]wFMCommunicate OK [17:20:31]SAM_PROTO_GetShiftState done [17:20:31]FM_GetShiftState done [17:20:31]opened in 1724200467 [17:20:31]opened+sec_in_day 1724286867 [17:20:31]quantity*price = 50036 [17:20:31]sum+1 = 50037 [17:20:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 292 21.08.2024 17:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140275 ФПД: 131635284644523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140275&fm=131635284644523&tin=02508201610067®Number=0000000000092569&sum=50000 [17:20:32]StoreToDocumentArchive [17:20:32]shift 454 fd 140275 [17:20:32]save to /storage/0454/doc_00140275 [17:20:32]save last doc name /storage/0454/doc_00140275 to /storage/kkm_last_doc_name [17:20:32]save OK [17:20:32]Clear old archive folders... [17:20:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:32]tlvbuf is 00C28360 [17:20:32]SAM_PROTO_ClearQueue [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 09 00 00 [17:20:32]Write to MH i2c: E2 08 00 AF 00 80 09 00 00 00 00 00 00 21 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [17:20:32]RAPDU: 90 00 [17:20:32]wFMCommunicate OK [17:20:32]SAM_PROTO_ClearQueue done [17:20:32]KKMCreateOFDPacket [17:20:32]OFDProtocolAddRootSTLVToBuf [17:20:32]FM_MakeSignedData [17:20:32]FM_MakeSignedData [17:20:32]SAM_PROTO_SignData [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 0D 01 02 [17:20:32]Write to MH i2c: E2 08 00 B0 00 80 0D 01 02 00 00 00 00 29 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [17:20:32]RAPDU: 90 00 [17:20:32]wFMCommunicate OK [17:20:32]wFMCommunicate request_size=255 [17:20:32]MH_SAM_APDU [17:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DF 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 23 02 00 35 04 06 00 77 [17:20:32]Write to MH i2c: E2 02 01 B1 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DF 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 23 02 00 35 04 06 00 77 00 00 59 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [17:20:32]RAPDU: 90 00 [17:20:32]wFMCommunicate OK [17:20:32]wFMCommunicate request_size=10 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 0D 02 02 05 B8 BA 61 92 AB [17:20:32]Write to MH i2c: E2 0D 00 B2 00 80 0D 02 02 05 00 B8 BA 61 92 AB 00 00 46 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [17:20:32]RAPDU: 90 00 [17:20:32]wFMCommunicate OK [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 0D 03 02 [17:20:32]Write to MH i2c: E2 08 00 B3 00 80 0D 03 02 00 00 00 00 2E [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 0B 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 0B 00 B3 00 00 E2 3F 19 31 44 4C 31 9F 90 00 FA [17:20:32]RAPDU: E2 3F 19 31 44 4C 31 9F 90 00 [17:20:32]wFMCommunicate OK [17:20:32]SAM_PROTO_SignData done [17:20:32]FM_MakeSignedData done [17:20:32]CreateOFDProtocolMessage [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 11 00 00 [17:20:32]Write to MH i2c: E2 08 00 B4 00 80 11 00 00 00 00 00 00 2E [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 17 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 17 00 B4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [17:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:20:32]wFMCommunicate OK [17:20:32]CreateOFDProtocolMessage done [17:20:32]OFDSenderStorePacket 140275 [17:20:32]StoreOFDPacket docnum=140275 [17:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 87 16 07 01 18 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DF 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 23 02 00 35 04 06 00 77 B8 BA 61 92 AB E2 3F 19 31 44 4C 31 9F [17:20:32]CheckFolder [17:20:32]dirname=/storage/ofd_packets [17:20:32]CheckFolder done [17:20:32]ProducePacketName [17:20:32]name=ofd_packets/00140275 [17:20:32]NVStorageSaveData ofd_packets/00140275 [17:20:32]File name is /storage/ofd_packets/00140275 [17:20:32]Write 301 bytes [17:20:32]NVStorageSaveData done [17:20:32]OFDSenderStorePacket done [17:20:32]KKMCreateOFDPacket done [17:20:32]NVStorageSaveData kkm_last_timestamp [17:20:32]File name is /storage/kkm_last_timestamp [17:20:32]Write 4 bytes [17:20:32]NVStorageSaveData done [17:20:32]ExternCall_PrintAddStr [17:20:32]wPrintStart [17:20:32]Write to MH i2c: 01 00 00 B5 00 B5 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: 01 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: 01 07 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [17:20:32]RasterBufferAndPrint [17:20:32]line Счет N : (1)594132 [17:20:32]line ИНН: 02508201610067 [17:20:32]line Контрольно-Кассовый Чек [17:20:32]line ПРОДАЖА [17:20:32]line ТРК (МРК, ГНК) : 32 [17:20:32]line Товар: 2710124130 [17:20:32]line Аи-92-К-5 [17:20:32]line 7.380 * 67.80 [17:20:32]line = 500.36 [17:20:32]line НДС 12% НСП 1% [17:20:32]line > о реализуемом товаре [17:20:32]line ОКРУГЛЕНИЕ: -0.36 [17:20:32]line ИТОГО: 500.00 [17:20:32]line Внесено: 500.00 [17:20:32]line СДАЧА: 0.00 [17:20:32]line НСП 1% : 4.43 [17:20:32]line НДС 12% : 53.14 [17:20:32]line Наличными: 500.00 [17:20:32]line Безнал.: 0.00 [17:20:32]line Место: АЗС № 136 "Партнер Нефть" [17:20:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:20:32]line СНО: Общий режим [17:20:32]line Чек 292 21.08.2024 17:20 [17:20:32]line Смена: 454 ФФД: 1.0 [17:20:32]line ЗНМ: 0300000067 [17:20:32]line РНМ: 0000000000092569 [17:20:32]line Версия ККМ: 001 [17:20:32]line ФМ: 0000000000871776 [17:20:32]line ФД: 140275 [17:20:32]line ФПД: 131635284644523 [17:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172031&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140275&fm=131635284644523&tin=02508201610067®Number=0000000000092569&sum=50000 [17:20:33]written 0, free lines is 4095 [17:20:33]OFD Sender: Processing packet 140275 [packets to send 137, broken 136] [17:20:33]ProducePacketName [17:20:33]name=ofd_packets/00140275 [17:20:33]OFD Sender: To server: pG, [17:20:33]CommunicateWithHost lk.salyk.kg:30040 [17:20:33]ConnectInit lk.salyk.kg [17:20:33]Connected sock=7 [17:20: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 37 36 0F 01 00 00 87 16 07 01 18 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DF 21 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F3 23 02 00 35 04 06 00 77 B8 BA 61 92 AB E2 3F 19 31 44 4C 31 9F [17:20: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 37 36 4F 00 00 00 C6 98 47 00 A2 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 37 36 10 04 04 00 F3 23 02 00 F4 03 04 00 6F C8 C5 66 B6 04 01 00 00 9F B5 07 08 08 D4 12 2D [17:20:33]CommunicateWithHost err = 0 [17:20:33]CheckOFDResponse [17:20:33]1017 (14) - 77093643461234 [17:20:33]1041 (16) - 0000000000871776 [17:20:33]1040 (4) - 140275 [17:20:33]1012 (4) - 21.08.2024 10:58 [17:20:33]1206 (1) - 0 [17:20:33]OFD Sender: Remove packet 140275 [17:20:33]ProducePacketName [17:20:33]name=ofd_packets/00140275 [17:20:33]NVStorageDeleteData [17:20:33]Write to MH i2c: 01 00 00 E0 00 E0 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 07 00 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 E8 0C DB [17:20:33]RasterBufferAndPrint [17:20:33]line [17:20:33]line [17:20:33]line [17:20:33]line [17:20:33]line [17:20:33]written 0, free lines is 3310 [17:20:33]MH_Cut [17:20:33]Write to MH i2c: D1 01 00 E7 00 01 B9 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: D1 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: D1 01 00 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: D1 01 00 E7 00 00 B8 [17:20:33]Write to MH i2c: 01 00 00 E8 00 E8 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:34]OFD Sender: No OFD packet to send [17:20:34]*** Cut start [17:20:34]*** Partial cut [17:20:34]*** CUTSNS_PIN = 1 [17:20:34]*** CUTSNS_PIN = 0 [17:20:34]*** Brake cut motor [17:20:34]Read from MH i2c: 01 [17:20:34]MH_I2C_Read... [17:20:34]*** Stop cut motor [17:20:35]*** Cut end [17:20:35]Read from MH i2c: 01 07 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: 01 07 00 E8 00 00 00 00 00 00 FF 0F FD [17:20:35]process_action close_receipt done [17:20:35]requested_data is exist [17:20:35]produce_requested_data [17:20:35]requested_item fm.sn is exist - process it [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 11 00 00 [17:20:35]Write to MH i2c: E2 08 00 E9 00 80 11 00 00 00 00 00 00 63 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 17 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 17 00 E9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BA [17:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:20:35]wFMCommunicate OK [17:20:35]requested_item fd.num is exist - process it [17:20:35]SAM_PROTO_GetFieldsCounters [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 13 00 00 [17:20:35]Write to MH i2c: E2 08 00 EA 00 80 13 00 00 00 00 00 00 66 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 62 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 62 00 EA 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 23 02 00 0E 04 04 00 C6 01 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 DF [17:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F3 23 02 00 0E 04 04 00 C6 01 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 [17:20:35]wFMCommunicate OK [17:20:35]SAM_PROTO_GetFieldsCounters done [17:20:35]requested_item shift.num is exist - process it [17:20:35]requested_item shift.opened is exist - process it [17:20:35]req_shift_opened [17:20:35]FM_GetShiftState [17:20:35]SAM_PROTO_GetShiftState [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 13 01 00 [17:20:35]Write to MH i2c: E2 08 00 EB 00 80 13 01 00 00 00 00 00 68 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0E 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0E 00 EB 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E8 [17:20:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:20:35]wFMCommunicate OK [17:20:35]SAM_PROTO_GetShiftState done [17:20:35]FM_GetShiftState done [17:20:35]req_shift_opened done [17:20:35]requested_item shift.open_date is exist - process it [17:20:35]req_shift_open_date [17:20:35]req_shift_open_date done [17:20:35]produce_requested_data done [17:20:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140275,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:20:35]process_action_free close_receipt [17:20:35]json_value_free [17:20:35]json_value_free done [17:20:35]process_json_proto returns [17:20:35]Send response to host [17:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140275,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:20:35]free response buf [17:20:35]execute_script done [17:20:35]execute_script returns [17:20:35]free content buf [17:20:35]Sock 9.Close socket [17:20:35]Sock 9.Thread stoped [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:22]accept exits with 10 [17:22:22]New connection [17:22:22]New thread 3067469156 created [17:22:22]Thread 3067612516 joined [17:22:22]Waiting for new connection... [17:22:22] Sock 10.Parse request [17:22:22]Sock 10.Check first char [17:22:22]Sock 10.First char is OK [17:22:22]request: POST /json_proto HTTP/1.0 [17:22:22]Method: POST [17:22:22]URL: /json_proto [17:22:22]Method is POST - this is cgi request [17:22:22]url: /json_proto [17:22:22]query_string will be loaded in cgi processing [17:22:22]execute_cgi json_proto POST (null) [17:22:22]execute_cgi path=json_proto method=POST [17:22:22]POST find Content-Length [17:22:22]Host: 172.17.45.67:8080 [17:22:22]Content-Length: 677 [17:22:22]Content-Type: application/json [17:22:22] [17:22:22]POST finish read [17:22:22]Found Content-Length = 677 [17:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:22]execute_script... [17:22: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)594133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:22]POST & json_proto [17:22:22]process_json_proto [17:22:22]json parsed OK: [17:22:22]protocol is kg_v1.0 [17:22:22]action value=close_receipt [17:22:22]process_action close_receipt [17:22:22]cmd_close_receipt [17:22:22]MH_GetDate [17:22:22]Write to MH i2c: F0 00 00 EC 00 DB [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 09 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: F0 09 00 EC 00 00 4E 22 C6 66 5F 7F 2B 66 EF [17:22:22]GetLastDocTimeStamp 1724260831 [17:22:22]current date 1724260942 [17:22:22]FM_GetShiftState [17:22:22]SAM_PROTO_GetShiftState [17:22:22]wFMCommunicate request_size=4 [17:22:22]MH_SAM_APDU [17:22:22]CAPDU: 80 13 01 00 [17:22:22]Write to MH i2c: E2 08 00 ED 00 80 13 01 00 00 00 00 00 6A [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:22]Read from MH i2c: E2 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: E2 0E 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: E2 0E 00 ED 00 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EA [17:22:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:22:22]wFMCommunicate OK [17:22:22]SAM_PROTO_GetShiftState done [17:22:22]FM_GetShiftState done [17:22:22]opened in 1724200467 [17:22:22]opened+sec_in_day 1724286867 [17:22:22]quantity*price = 50036 [17:22:22]sum+1 = 50037 [17:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 293 21.08.2024 17:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140276 ФПД: 62912404289179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140276&fm=62912404289179&tin=02508201610067®Number=0000000000092569&sum=50000 [17:22:23]StoreToDocumentArchive [17:22:23]shift 454 fd 140276 [17:22:23]save to /storage/0454/doc_00140276 [17:22:23]save last doc name /storage/0454/doc_00140276 to /storage/kkm_last_doc_name [17:22:23]save OK [17:22:23]Clear old archive folders... [17:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:23]tlvbuf is 00CA7470 [17:22:23]SAM_PROTO_ClearQueue [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 09 00 00 [17:22:23]Write to MH i2c: E2 08 00 FA 00 80 09 00 00 00 00 00 00 6C [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 FA 00 00 90 00 6E [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_ClearQueue done [17:22:23]KKMCreateOFDPacket [17:22:23]OFDProtocolAddRootSTLVToBuf [17:22:23]FM_MakeSignedData [17:22:23]FM_MakeSignedData [17:22:23]SAM_PROTO_SignData [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 01 02 [17:22:23]Write to MH i2c: E2 08 00 FB 00 80 0D 01 02 00 00 00 00 74 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=255 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4E 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 23 02 00 35 04 06 00 39 [17:22:23]Write to MH i2c: E2 02 01 FC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4E 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 23 02 00 35 04 06 00 39 00 00 D8 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=10 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 02 02 05 37 EF 82 76 9B [17:22:23]Write to MH i2c: E2 0D 00 FD 00 80 0D 02 02 05 00 37 EF 82 76 9B 00 00 3A [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [17:22:23]RAPDU: 90 00 [17:22:23]wFMCommunicate OK [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 0D 03 02 [17:22:23]Write to MH i2c: E2 08 00 FE 00 80 0D 03 02 00 00 00 00 79 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0B 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0B 00 FE 00 00 0F EA B3 05 AE 58 B3 44 90 00 28 [17:22:23]RAPDU: 0F EA B3 05 AE 58 B3 44 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_SignData done [17:22:23]FM_MakeSignedData done [17:22:23]CreateOFDProtocolMessage [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 11 00 00 [17:22:23]Write to MH i2c: E2 08 00 FF 00 80 11 00 00 00 00 00 00 79 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:24]Read from MH i2c: E2 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 17 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: E2 17 00 FF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [17:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:22:24]wFMCommunicate OK [17:22:24]CreateOFDProtocolMessage done [17:22:24]OFDSenderStorePacket 140276 [17:22:24]StoreOFDPacket docnum=140276 [17:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 7B 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4E 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 23 02 00 35 04 06 00 39 37 EF 82 76 9B 0F EA B3 05 AE 58 B3 44 [17:22:24]CheckFolder [17:22:24]dirname=/storage/ofd_packets [17:22:24]CheckFolder done [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00140276 [17:22:24]NVStorageSaveData ofd_packets/00140276 [17:22:24]File name is /storage/ofd_packets/00140276 [17:22:24]Write 301 bytes [17:22:24]NVStorageSaveData done [17:22:24]OFDSenderStorePacket done [17:22:24]KKMCreateOFDPacket done [17:22:24]NVStorageSaveData kkm_last_timestamp [17:22:24]File name is /storage/kkm_last_timestamp [17:22:24]Write 4 bytes [17:22:24]NVStorageSaveData done [17:22:24]ExternCall_PrintAddStr [17:22:24]wPrintStart [17:22:24]Write to MH i2c: 01 00 00 00 01 01 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [17:22:24]RasterBufferAndPrint [17:22:24]line Счет N : (1)594133 [17:22:24]line ИНН: 02508201610067 [17:22:24]line Контрольно-Кассовый Чек [17:22:24]line ПРОДАЖА [17:22:24]line ТРК (МРК, ГНК) : 52 [17:22:24]line Товар: 2710124130 [17:22:24]line Аи-92-К-5 [17:22:24]line 7.380 * 67.80 [17:22:24]line = 500.36 [17:22:24]line НДС 12% НСП 1% [17:22:24]line > о реализуемом товаре [17:22:24]line ОКРУГЛЕНИЕ: -0.36 [17:22:24]line ИТОГО: 500.00 [17:22:24]line Внесено: 500.00 [17:22:24]line СДАЧА: 0.00 [17:22:24]line НСП 1% : 4.43 [17:22:24]line НДС 12% : 53.14 [17:22:24]line Наличными: 500.00 [17:22:24]line Безнал.: 0.00 [17:22:24]line Место: АЗС № 136 "Партнер Нефть" [17:22:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:22:24]line СНО: Общий режим [17:22:24]line Чек 293 21.08.2024 17:22 [17:22:24]line Смена: 454 ФФД: 1.0 [17:22:24]line ЗНМ: 0300000067 [17:22:24]line РНМ: 0000000000092569 [17:22:24]line Версия ККМ: 001 [17:22:24]line ФМ: 0000000000871776 [17:22:24]line ФД: 140276 [17:22:24]line ФПД: 62912404289179 [17:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172222&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140276&fm=62912404289179&tin=02508201610067®Number=0000000000092569&sum=50000 [17:22:24]OFD Sender: Processing packet 140276 [packets to send 137, broken 136] [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00140276 [17:22:24]OFD Sender: To server: pG, [17:22:24]CommunicateWithHost lk.salyk.kg:30040 [17:22:24]ConnectInit lk.salyk.kg [17:22:24]written 0, free lines is 4095 [17:22:24]Connected sock=11 [17:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 16 7B 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4E 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F4 23 02 00 35 04 06 00 39 37 EF 82 76 9B 0F EA B3 05 AE 58 B3 44 [17:22:24]Write to MH i2c: 01 00 00 2B 01 2C [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 D5 0C 14 [17:22:24]RasterBufferAndPrint [17:22:24]line [17:22:24]line [17:22:24]line [17:22:24]line [17:22:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8E 75 47 00 3B 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 37 36 10 04 04 00 F4 23 02 00 F4 03 04 00 DE C8 C5 66 B6 04 01 00 00 5E 35 58 AF 1A 16 4A 88 [17:22:24]CommunicateWithHost err = 0 [17:22:24]CheckOFDResponse [17:22:24]1017 (14) - 77093643461234 [17:22:24]1041 (16) - 0000000000871776 [17:22:24]1040 (4) - 140276 [17:22:24]1012 (4) - 21.08.2024 11:00 [17:22:24]1206 (1) - 0 [17:22:24]OFD Sender: Remove packet 140276 [17:22:24]ProducePacketName [17:22:24]name=ofd_packets/00140276 [17:22:24]NVStorageDeleteData [17:22:24]line [17:22:24]written 0, free lines is 3297 [17:22:24]MH_Cut [17:22:24]Write to MH i2c: D1 01 00 32 01 01 05 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 01 00 [17:22:24]MH_I2C_Read... [17:22:24]Read from MH i2c: D1 01 00 32 01 00 04 [17:22:24]Write to MH i2c: 01 00 00 33 01 34 [17:22:24]Write i2c OK [17:22:24]MH_I2C_Read... [17:22:25]OFD Sender: No OFD packet to send [17:22:25]*** Cut start [17:22:25]*** Partial cut [17:22:25]*** CUTSNS_PIN = 1 [17:22:25]*** CUTSNS_PIN = 0 [17:22:25]*** Brake cut motor [17:22:25]Read from MH i2c: 01 [17:22:25]MH_I2C_Read... [17:22:25]*** Stop cut motor [17:22:25]*** Cut end [17:22:25]Read from MH i2c: 01 07 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FF 0F 49 [17:22:25]process_action close_receipt done [17:22:25]requested_data is exist [17:22:25]produce_requested_data [17:22:25]requested_item fm.sn is exist - process it [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 11 00 00 [17:22:25]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:25]Read from MH i2c: E2 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 [17:22:25]MH_I2C_Read... [17:22:25]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [17:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:22:25]wFMCommunicate OK [17:22:25]requested_item fd.num is exist - process it [17:22:25]SAM_PROTO_GetFieldsCounters [17:22:25]wFMCommunicate request_size=4 [17:22:25]MH_SAM_APDU [17:22:25]CAPDU: 80 13 00 00 [17:22:25]Write to MH i2c: E2 08 00 35 01 80 13 00 00 00 00 00 00 B2 [17:22:25]Write i2c OK [17:22:25]MH_I2C_Read... [17:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 62 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 62 00 35 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 23 02 00 0E 04 04 00 C6 01 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 2F [17:22:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F4 23 02 00 0E 04 04 00 C6 01 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 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_GetFieldsCounters done [17:22:26]requested_item shift.num is exist - process it [17:22:26]requested_item shift.opened is exist - process it [17:22:26]req_shift_opened [17:22:26]FM_GetShiftState [17:22:26]SAM_PROTO_GetShiftState [17:22:26]wFMCommunicate request_size=4 [17:22:26]MH_SAM_APDU [17:22:26]CAPDU: 80 13 01 00 [17:22:26]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [17:22:26]Write i2c OK [17:22:26]MH_I2C_Read... [17:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:26]Read from MH i2c: E2 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0E 00 [17:22:26]MH_I2C_Read... [17:22:26]Read from MH i2c: E2 0E 00 36 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 34 [17:22:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:22:26]wFMCommunicate OK [17:22:26]SAM_PROTO_GetShiftState done [17:22:26]FM_GetShiftState done [17:22:26]req_shift_opened done [17:22:26]requested_item shift.open_date is exist - process it [17:22:26]req_shift_open_date [17:22:26]req_shift_open_date done [17:22:26]produce_requested_data done [17:22:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140276,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:22:26]process_action_free close_receipt [17:22:26]json_value_free [17:22:26]json_value_free done [17:22:26]process_json_proto returns [17:22:26]Send response to host [17:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140276,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:22:26]free response buf [17:22:26]execute_script done [17:22:26]execute_script returns [17:22:26]free content buf [17:22:26]Sock 10.Close socket [17:22:26]Sock 10.Thread stoped [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:11]accept exits with 7 [17:24:11]New connection [17:24:11]New thread 3067612516 created [17:24:11]Thread 3067469156 joined [17:24:11]Waiting for new connection... [17:24:11] Sock 7.Parse request [17:24:11]Sock 7.Check first char [17:24:11]Sock 7.First char is OK [17:24:11]request: POST /json_proto HTTP/1.0 [17:24:11]Method: POST [17:24:11]URL: /json_proto [17:24:11]Method is POST - this is cgi request [17:24:11]url: /json_proto [17:24:11]query_string will be loaded in cgi processing [17:24:11]execute_cgi json_proto POST (null) [17:24:11]execute_cgi path=json_proto method=POST [17:24:11]POST find Content-Length [17:24:11]Host: 172.17.45.67:8080 [17:24:11]Content-Length: 682 [17:24:11]Content-Type: application/json [17:24:11] [17:24:11]POST finish read [17:24:11]Found Content-Length = 682 [17:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]execute_script... [17:24:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:11]POST & json_proto [17:24:11]process_json_proto [17:24:11]json parsed OK: [17:24:11]protocol is kg_v1.0 [17:24:11]action value=close_receipt [17:24:11]process_action close_receipt [17:24:11]cmd_close_receipt [17:24:11]MH_GetDate [17:24:11]Write to MH i2c: F0 00 00 37 01 27 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: F0 09 00 37 01 00 BB 22 C6 66 5F 7F 2B 66 A8 [17:24:11]GetLastDocTimeStamp 1724260942 [17:24:11]current date 1724261051 [17:24:11]FM_GetShiftState [17:24:11]SAM_PROTO_GetShiftState [17:24:11]wFMCommunicate request_size=4 [17:24:11]MH_SAM_APDU [17:24:11]CAPDU: 80 13 01 00 [17:24:11]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [17:24:11]Write i2c OK [17:24:11]MH_I2C_Read... [17:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:11]Read from MH i2c: E2 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 [17:24:11]MH_I2C_Read... [17:24:11]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 36 [17:24:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:11]wFMCommunicate OK [17:24:11]SAM_PROTO_GetShiftState done [17:24:11]FM_GetShiftState done [17:24:11]opened in 1724200467 [17:24:11]opened+sec_in_day 1724286867 [17:24:11]quantity*price = 100005 [17:24:11]sum+1 = 100006 [17:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 294 21.08.2024 17:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140277 ФПД: 57118543208279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140277&fm=57118543208279&tin=02508201610067®Number=0000000000092569&sum=100000 [17:24:12]StoreToDocumentArchive [17:24:12]shift 454 fd 140277 [17:24:12]save to /storage/0454/doc_00140277 [17:24:12]save last doc name /storage/0454/doc_00140277 to /storage/kkm_last_doc_name [17:24:12]save OK [17:24:12]Clear old archive folders... [17:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:12]tlvbuf is 00CB0100 [17:24:12]SAM_PROTO_ClearQueue [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 09 00 00 [17:24:12]Write to MH i2c: E2 08 00 45 01 80 09 00 00 00 00 00 00 B8 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_ClearQueue done [17:24:12]KKMCreateOFDPacket [17:24:12]OFDProtocolAddRootSTLVToBuf [17:24:12]FM_MakeSignedData [17:24:12]FM_MakeSignedData [17:24:12]SAM_PROTO_SignData [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 01 02 [17:24:12]Write to MH i2c: E2 08 00 46 01 80 0D 01 02 00 00 00 00 C0 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=255 [17:24:12]MH_SAM_APDU [17:24: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BB 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 23 02 00 35 04 06 00 33 [17:24:12]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BB 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 23 02 00 35 04 06 00 33 00 00 1C [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=10 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 02 02 05 F2 F2 7A 5F 57 [17:24:12]Write to MH i2c: E2 0D 00 48 01 80 0D 02 02 05 00 F2 F2 7A 5F 57 00 00 E1 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [17:24:12]RAPDU: 90 00 [17:24:12]wFMCommunicate OK [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 0D 03 02 [17:24:12]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0B 00 49 01 00 C3 68 56 2F 8E 8E 71 E6 90 00 E9 [17:24:12]RAPDU: C3 68 56 2F 8E 8E 71 E6 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_SignData done [17:24:12]FM_MakeSignedData done [17:24:12]CreateOFDProtocolMessage [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 11 00 00 [17:24:12]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [17:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:12]wFMCommunicate OK [17:24:12]CreateOFDProtocolMessage done [17:24:12]OFDSenderStorePacket 140277 [17:24:12]StoreOFDPacket docnum=140277 [17:24:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 6D 07 01 76 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BB 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 23 02 00 35 04 06 00 33 F2 F2 7A 5F 57 C3 68 56 2F 8E 8E 71 E6 [17:24:12]CheckFolder [17:24:12]dirname=/storage/ofd_packets [17:24:12]CheckFolder done [17:24:12]ProducePacketName [17:24:12]name=ofd_packets/00140277 [17:24:12]NVStorageSaveData ofd_packets/00140277 [17:24:12]File name is /storage/ofd_packets/00140277 [17:24:12]Write 301 bytes [17:24:12]NVStorageSaveData done [17:24:12]OFDSenderStorePacket done [17:24:12]KKMCreateOFDPacket done [17:24:12]NVStorageSaveData kkm_last_timestamp [17:24:12]File name is /storage/kkm_last_timestamp [17:24:12]Write 4 bytes [17:24:12]NVStorageSaveData done [17:24:12]ExternCall_PrintAddStr [17:24:12]wPrintStart [17:24:12]Write to MH i2c: 01 00 00 4B 01 4C [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [17:24:12]RasterBufferAndPrint [17:24:12]line Счет N : (1)594135 [17:24:12]line ИНН: 02508201610067 [17:24:12]line Контрольно-Кассовый Чек [17:24:12]line ПРОДАЖА [17:24:12]line ТРК (МРК, ГНК) : 62 [17:24:12]line Товар: 2710124130 [17:24:12]line Аи-92-К-5 [17:24:12]line 14.750 * 67.80 [17:24:12]line = 1000.05 [17:24:12]line НДС 12% НСП 1% [17:24:12]line > о реализуемом товаре [17:24:12]line ОКРУГЛЕНИЕ: -0.05 [17:24:12]line ИТОГО: 1000.00 [17:24:12]line Внесено: 1000.00 [17:24:12]line СДАЧА: 0.00 [17:24:12]line НСП 1% : 8.85 [17:24:12]line НДС 12% : 106.20 [17:24:12]line Наличными: 1000.00 [17:24:12]line Безнал.: 0.00 [17:24:12]line Место: АЗС № 136 "Партнер Нефть" [17:24:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:24:12]line СНО: Общий режим [17:24:12]line Чек 294 21.08.2024 17:24 [17:24:12]line Смена: 454 ФФД: 1.0 [17:24:12]line ЗНМ: 0300000067 [17:24:12]line РНМ: 0000000000092569 [17:24:12]line Версия ККМ: 001 [17:24:12]line ФМ: 0000000000871776 [17:24:12]line ФД: 140277 [17:24:12]line ФПД: 57118543208279 [17:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172411&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140277&fm=57118543208279&tin=02508201610067®Number=0000000000092569&sum=100000 [17:24:13]OFD Sender: Processing packet 140277 [packets to send 137, broken 136] [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00140277 [17:24:13]OFD Sender: To server: pG, [17:24:13]CommunicateWithHost lk.salyk.kg:30040 [17:24:13]ConnectInit lk.salyk.kg [17:24:13]written 0, free lines is 4095 [17:24:13]Connected sock=9 [17:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 72 6D 07 01 76 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 BB 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F5 23 02 00 35 04 06 00 33 F2 F2 7A 5F 57 C3 68 56 2F 8E 8E 71 E6 [17:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8C 77 47 00 1D 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 37 36 10 04 04 00 F5 23 02 00 F4 03 04 00 4B C9 C5 66 B6 04 01 00 00 F4 67 E4 61 9F 34 3B 5D [17:24:13]CommunicateWithHost err = 0 [17:24:13]CheckOFDResponse [17:24:13]1017 (14) - 77093643461234 [17:24:13]1041 (16) - 0000000000871776 [17:24:13]1040 (4) - 140277 [17:24:13]1012 (4) - 21.08.2024 11:02 [17:24:13]1206 (1) - 0 [17:24:13]OFD Sender: Remove packet 140277 [17:24:13]ProducePacketName [17:24:13]name=ofd_packets/00140277 [17:24:13]NVStorageDeleteData [17:24:13]Write to MH i2c: 01 00 00 76 01 77 [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 76 01 00 00 00 00 00 DD 0C 67 [17:24:13]RasterBufferAndPrint [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]line [17:24:13]written 0, free lines is 3299 [17:24:13]MH_Cut [17:24:13]Write to MH i2c: D1 01 00 7D 01 01 50 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: D1 01 00 7D 01 00 4F [17:24:13]Write to MH i2c: 01 00 00 7E 01 7F [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:14]OFD Sender: No OFD packet to send [17:24:14]*** Cut start [17:24:14]*** Partial cut [17:24:14]*** CUTSNS_PIN = 1 [17:24:14]*** CUTSNS_PIN = 0 [17:24:14]*** Brake cut motor [17:24:15]Read from MH i2c: 01 [17:24:15]MH_I2C_Read... [17:24:15]*** Stop cut motor [17:24:15]*** Cut end [17:24:15]Read from MH i2c: 01 07 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [17:24:15]process_action close_receipt done [17:24:15]requested_data is exist [17:24:15]produce_requested_data [17:24:15]requested_item fm.sn is exist - process it [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 11 00 00 [17:24:15]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [17:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:15]wFMCommunicate OK [17:24:15]requested_item fd.num is exist - process it [17:24:15]SAM_PROTO_GetFieldsCounters [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 00 00 [17:24:15]Write to MH i2c: E2 08 00 80 01 80 13 00 00 00 00 00 00 FD [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 62 00 80 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 23 02 00 0E 04 04 00 C6 01 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 7E [17:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F5 23 02 00 0E 04 04 00 C6 01 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 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetFieldsCounters done [17:24:15]requested_item shift.num is exist - process it [17:24:15]requested_item shift.opened is exist - process it [17:24:15]req_shift_opened [17:24:15]FM_GetShiftState [17:24:15]SAM_PROTO_GetShiftState [17:24:15]wFMCommunicate request_size=4 [17:24:15]MH_SAM_APDU [17:24:15]CAPDU: 80 13 01 00 [17:24:15]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [17:24:15]Write i2c OK [17:24:15]MH_I2C_Read... [17:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:15]Read from MH i2c: E2 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 [17:24:15]MH_I2C_Read... [17:24:15]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7F [17:24:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:15]wFMCommunicate OK [17:24:15]SAM_PROTO_GetShiftState done [17:24:15]FM_GetShiftState done [17:24:15]req_shift_opened done [17:24:15]requested_item shift.open_date is exist - process it [17:24:15]req_shift_open_date [17:24:15]req_shift_open_date done [17:24:15]produce_requested_data done [17:24:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140277,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:24:15]process_action_free close_receipt [17:24:15]json_value_free [17:24:15]json_value_free done [17:24:15]process_json_proto returns [17:24:15]Send response to host [17:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140277,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:24:15]free response buf [17:24:15]execute_script done [17:24:15]execute_script returns [17:24:15]free content buf [17:24:15]Sock 7.Close socket [17:24:15]Sock 7.Thread stoped [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:33]accept exits with 10 [17:24:33]New connection [17:24:33]New thread 3067469156 created [17:24:33]Thread 3067612516 joined [17:24:33]Waiting for new connection... [17:24:33] Sock 10.Parse request [17:24:33]Sock 10.Check first char [17:24:33]Sock 10.First char is OK [17:24:33]request: POST /json_proto HTTP/1.0 [17:24:33]Method: POST [17:24:33]URL: /json_proto [17:24:33]Method is POST - this is cgi request [17:24:33]url: /json_proto [17:24:33]query_string will be loaded in cgi processing [17:24:33]execute_cgi json_proto POST (null) [17:24:33]execute_cgi path=json_proto method=POST [17:24:33]POST find Content-Length [17:24:33]Host: 172.17.45.67:8080 [17:24:33]Content-Length: 682 [17:24:33]Content-Type: application/json [17:24:33] [17:24:33]POST finish read [17:24:33]Found Content-Length = 682 [17:24:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:33]execute_script... [17:24:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:33]POST & json_proto [17:24:33]process_json_proto [17:24:33]json parsed OK: [17:24:33]protocol is kg_v1.0 [17:24:33]action value=close_receipt [17:24:33]process_action close_receipt [17:24:33]cmd_close_receipt [17:24:33]MH_GetDate [17:24:33]Write to MH i2c: F0 00 00 82 01 72 [17:24:33]Write i2c OK [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: F0 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: F0 09 00 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: F0 09 00 82 01 00 D2 22 C6 66 5F 7F 2B 66 0A [17:24:33]GetLastDocTimeStamp 1724261051 [17:24:33]current date 1724261074 [17:24:33]FM_GetShiftState [17:24:33]SAM_PROTO_GetShiftState [17:24:33]wFMCommunicate request_size=4 [17:24:33]MH_SAM_APDU [17:24:33]CAPDU: 80 13 01 00 [17:24:33]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [17:24:33]Write i2c OK [17:24:33]MH_I2C_Read... [17:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:33]Read from MH i2c: E2 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: E2 0E 00 [17:24:33]MH_I2C_Read... [17:24:33]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 81 [17:24:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:33]wFMCommunicate OK [17:24:33]SAM_PROTO_GetShiftState done [17:24:33]FM_GetShiftState done [17:24:33]opened in 1724200467 [17:24:33]opened+sec_in_day 1724286867 [17:24:33]quantity*price = 150032 [17:24:33]sum+1 = 150033 [17:24:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 295 21.08.2024 17:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140278 ФПД: 165569662662251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140278&fm=165569662662251&tin=02508201610067®Number=0000000000092569&sum=150000 [17:24:34]StoreToDocumentArchive [17:24:34]shift 454 fd 140278 [17:24:34]save to /storage/0454/doc_00140278 [17:24:34]save last doc name /storage/0454/doc_00140278 to /storage/kkm_last_doc_name [17:24:34]save OK [17:24:34]Clear old archive folders... [17:24:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:34]tlvbuf is 00CB40C0 [17:24:34]SAM_PROTO_ClearQueue [17:24:34]wFMCommunicate request_size=4 [17:24:34]MH_SAM_APDU [17:24:34]CAPDU: 80 09 00 00 [17:24:34]Write to MH i2c: E2 08 00 90 01 80 09 00 00 00 00 00 00 03 [17:24:34]Write i2c OK [17:24:34]MH_I2C_Read... [17:24:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:34]Read from MH i2c: E2 [17:24:34]MH_I2C_Read... [17:24:34]Read from MH i2c: E2 03 00 [17:24:34]MH_I2C_Read... [17:24:34]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [17:24:34]RAPDU: 90 00 [17:24:34]wFMCommunicate OK [17:24:34]SAM_PROTO_ClearQueue done [17:24:34]KKMCreateOFDPacket [17:24:34]OFDProtocolAddRootSTLVToBuf [17:24:34]FM_MakeSignedData [17:24:34]FM_MakeSignedData [17:24:34]SAM_PROTO_SignData [17:24:34]wFMCommunicate request_size=4 [17:24:34]MH_SAM_APDU [17:24:34]CAPDU: 80 0D 01 02 [17:24:34]Write to MH i2c: E2 08 00 91 01 80 0D 01 02 00 00 00 00 0B [17:24:34]Write i2c OK [17:24:34]MH_I2C_Read... [17:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:35]Read from MH i2c: E2 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [17:24:35]RAPDU: 90 00 [17:24:35]wFMCommunicate OK [17:24:35]wFMCommunicate request_size=255 [17:24:35]MH_SAM_APDU [17:24:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D2 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 23 02 00 35 04 06 00 96 [17:24:35]Write to MH i2c: E2 02 01 92 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D2 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 23 02 00 35 04 06 00 96 00 00 C7 [17:24:35]Write i2c OK [17:24:35]MH_I2C_Read... [17:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:35]Read from MH i2c: E2 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [17:24:35]RAPDU: 90 00 [17:24:35]wFMCommunicate OK [17:24:35]wFMCommunicate request_size=10 [17:24:35]MH_SAM_APDU [17:24:35]CAPDU: 80 0D 02 02 05 95 B0 ED B6 6B [17:24:35]Write to MH i2c: E2 0D 00 93 01 80 0D 02 02 05 00 95 B0 ED B6 6B 00 00 6B [17:24:35]Write i2c OK [17:24:35]MH_I2C_Read... [17:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:35]Read from MH i2c: E2 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [17:24:35]RAPDU: 90 00 [17:24:35]wFMCommunicate OK [17:24:35]wFMCommunicate request_size=4 [17:24:35]MH_SAM_APDU [17:24:35]CAPDU: 80 0D 03 02 [17:24:35]Write to MH i2c: E2 08 00 94 01 80 0D 03 02 00 00 00 00 10 [17:24:35]Write i2c OK [17:24:35]MH_I2C_Read... [17:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:35]Read from MH i2c: E2 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 0B 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 0B 00 94 01 00 8C B7 16 64 09 4F 44 87 90 00 F1 [17:24:35]RAPDU: 8C B7 16 64 09 4F 44 87 90 00 [17:24:35]wFMCommunicate OK [17:24:35]SAM_PROTO_SignData done [17:24:35]FM_MakeSignedData done [17:24:35]CreateOFDProtocolMessage [17:24:35]wFMCommunicate request_size=4 [17:24:35]MH_SAM_APDU [17:24:35]CAPDU: 80 11 00 00 [17:24:35]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [17:24:35]Write i2c OK [17:24:35]MH_I2C_Read... [17:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:35]Read from MH i2c: E2 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 17 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [17:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:35]wFMCommunicate OK [17:24:35]CreateOFDProtocolMessage done [17:24:35]OFDSenderStorePacket 140278 [17:24:35]StoreOFDPacket docnum=140278 [17:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 E3 07 01 27 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D2 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 23 02 00 35 04 06 00 96 95 B0 ED B6 6B 8C B7 16 64 09 4F 44 87 [17:24:35]CheckFolder [17:24:35]dirname=/storage/ofd_packets [17:24:35]CheckFolder done [17:24:35]ProducePacketName [17:24:35]name=ofd_packets/00140278 [17:24:35]NVStorageSaveData ofd_packets/00140278 [17:24:35]File name is /storage/ofd_packets/00140278 [17:24:35]Write 301 bytes [17:24:35]NVStorageSaveData done [17:24:35]OFDSenderStorePacket done [17:24:35]KKMCreateOFDPacket done [17:24:35]NVStorageSaveData kkm_last_timestamp [17:24:35]File name is /storage/kkm_last_timestamp [17:24:35]Write 4 bytes [17:24:35]NVStorageSaveData done [17:24:35]ExternCall_PrintAddStr [17:24:35]wPrintStart [17:24:35]Write to MH i2c: 01 00 00 96 01 97 [17:24:35]Write i2c OK [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: 01 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: 01 07 00 [17:24:35]MH_I2C_Read... [17:24:35]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [17:24:35]RasterBufferAndPrint [17:24:35]line Счет N : (1)594134 [17:24:35]line ИНН: 02508201610067 [17:24:35]line Контрольно-Кассовый Чек [17:24:35]line ПРОДАЖА [17:24:35]line ТРК (МРК, ГНК) : 31 [17:24:35]line Товар: 2710124500 [17:24:35]line Аи-95-К-5 [17:24:35]line 20.220 * 74.20 [17:24:35]line = 1500.32 [17:24:35]line НДС 12% НСП 1% [17:24:35]line > о реализуемом товаре [17:24:35]line ОКРУГЛЕНИЕ: -0.32 [17:24:35]line ИТОГО: 1500.00 [17:24:35]line Внесено: 1500.00 [17:24:35]line СДАЧА: 0.00 [17:24:35]line НСП 1% : 13.28 [17:24:35]line НДС 12% : 159.33 [17:24:35]line Наличными: 1500.00 [17:24:35]line Безнал.: 0.00 [17:24:35]line Место: АЗС № 136 "Партнер Нефть" [17:24:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:24:35]line СНО: Общий режим [17:24:35]line Чек 295 21.08.2024 17:24 [17:24:35]line Смена: 454 ФФД: 1.0 [17:24:35]line ЗНМ: 0300000067 [17:24:35]line РНМ: 0000000000092569 [17:24:35]line Версия ККМ: 001 [17:24:35]line ФМ: 0000000000871776 [17:24:35]line ФД: 140278 [17:24:35]line ФПД: 165569662662251 [17:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172434&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140278&fm=165569662662251&tin=02508201610067®Number=0000000000092569&sum=150000 [17:24:35]OFD Sender: Processing packet 140278 [packets to send 137, broken 136] [17:24:35]ProducePacketName [17:24:35]name=ofd_packets/00140278 [17:24:35]OFD Sender: To server: pG, [17:24:35]CommunicateWithHost lk.salyk.kg:30040 [17:24:35]ConnectInit lk.salyk.kg [17:24:35]written 0, free lines is 4095 [17:24:35]Connected sock=9 [17:24:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 E3 07 01 27 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 D2 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F6 23 02 00 35 04 06 00 96 95 B0 ED B6 6B 8C B7 16 64 09 4F 44 87 [17:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 EC 2D 47 00 A1 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 37 36 10 04 04 00 F6 23 02 00 F4 03 04 00 62 C9 C5 66 B6 04 01 00 00 62 13 22 11 13 1D 9D 21 [17:24:36]CommunicateWithHost err = 0 [17:24:36]CheckOFDResponse [17:24:36]1017 (14) - 77093643461234 [17:24:36]1041 (16) - 0000000000871776 [17:24:36]1040 (4) - 140278 [17:24:36]1012 (4) - 21.08.2024 11:02 [17:24:36]1206 (1) - 0 [17:24:36]OFD Sender: Remove packet 140278 [17:24:36]ProducePacketName [17:24:36]name=ofd_packets/00140278 [17:24:36]NVStorageDeleteData [17:24:36]Write to MH i2c: 01 00 00 C1 01 C2 [17:24:36]Write i2c OK [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: 01 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: 01 07 00 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 E4 0C B9 [17:24:36]RasterBufferAndPrint [17:24:36]line [17:24:36]line [17:24:36]line [17:24:36]line [17:24:36]line [17:24:36]written 0, free lines is 3306 [17:24:36]MH_Cut [17:24:36]Write to MH i2c: D1 01 00 C8 01 01 9B [17:24:36]Write i2c OK [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: D1 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: D1 01 00 [17:24:36]MH_I2C_Read... [17:24:36]Read from MH i2c: D1 01 00 C8 01 00 9A [17:24:36]Write to MH i2c: 01 00 00 C9 01 CA [17:24:36]Write i2c OK [17:24:36]MH_I2C_Read... [17:24:36]OFD Sender: No OFD packet to send [17:24:36]*** Cut start [17:24:36]*** Partial cut [17:24:36]*** CUTSNS_PIN = 1 [17:24:37]*** CUTSNS_PIN = 0 [17:24:37]*** Brake cut motor [17:24:37]Read from MH i2c: 01 [17:24:37]MH_I2C_Read... [17:24:37]*** Stop cut motor [17:24:37]*** Cut end [17:24:37]Read from MH i2c: 01 07 00 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 FF 0F DF [17:24:37]process_action close_receipt done [17:24:37]requested_data is exist [17:24:37]produce_requested_data [17:24:37]requested_item fm.sn is exist - process it [17:24:37]wFMCommunicate request_size=4 [17:24:37]MH_SAM_APDU [17:24:37]CAPDU: 80 11 00 00 [17:24:37]Write to MH i2c: E2 08 00 CA 01 80 11 00 00 00 00 00 00 45 [17:24:37]Write i2c OK [17:24:37]MH_I2C_Read... [17:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:37]Read from MH i2c: E2 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 17 00 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 17 00 CA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9C [17:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:37]wFMCommunicate OK [17:24:37]requested_item fd.num is exist - process it [17:24:37]SAM_PROTO_GetFieldsCounters [17:24:37]wFMCommunicate request_size=4 [17:24:37]MH_SAM_APDU [17:24:37]CAPDU: 80 13 00 00 [17:24:37]Write to MH i2c: E2 08 00 CB 01 80 13 00 00 00 00 00 00 48 [17:24:37]Write i2c OK [17:24:37]MH_I2C_Read... [17:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:37]Read from MH i2c: E2 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 62 00 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 62 00 CB 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 23 02 00 0E 04 04 00 C6 01 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 CD [17:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F6 23 02 00 0E 04 04 00 C6 01 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 [17:24:37]wFMCommunicate OK [17:24:37]SAM_PROTO_GetFieldsCounters done [17:24:37]requested_item shift.num is exist - process it [17:24:37]requested_item shift.opened is exist - process it [17:24:37]req_shift_opened [17:24:37]FM_GetShiftState [17:24:37]SAM_PROTO_GetShiftState [17:24:37]wFMCommunicate request_size=4 [17:24:37]MH_SAM_APDU [17:24:37]CAPDU: 80 13 01 00 [17:24:37]Write to MH i2c: E2 08 00 CC 01 80 13 01 00 00 00 00 00 4A [17:24:37]Write i2c OK [17:24:37]MH_I2C_Read... [17:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:37]Read from MH i2c: E2 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 0E 00 [17:24:37]MH_I2C_Read... [17:24:37]Read from MH i2c: E2 0E 00 CC 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CA [17:24:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:37]wFMCommunicate OK [17:24:37]SAM_PROTO_GetShiftState done [17:24:37]FM_GetShiftState done [17:24:37]req_shift_opened done [17:24:37]requested_item shift.open_date is exist - process it [17:24:37]req_shift_open_date [17:24:37]req_shift_open_date done [17:24:37]produce_requested_data done [17:24:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140278,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:24:37]process_action_free close_receipt [17:24:37]json_value_free [17:24:37]json_value_free done [17:24:37]process_json_proto returns [17:24:37]Send response to host [17:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140278,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:24:37]free response buf [17:24:37]execute_script done [17:24:37]execute_script returns [17:24:37]free content buf [17:24:37]Sock 10.Close socket [17:24:37]Sock 10.Thread stoped [17:24:38]accept exits with 7 [17:24:38]New connection [17:24:38]New thread 3067612516 created [17:24:38]Thread 3067469156 joined [17:24:38]Waiting for new connection... [17:24:38] Sock 7.Parse request [17:24:38]Sock 7.Check first char [17:24:38]Sock 7.First char is OK [17:24:38]request: POST /json_proto HTTP/1.0 [17:24:38]Method: POST [17:24:38]URL: /json_proto [17:24:38]Method is POST - this is cgi request [17:24:38]url: /json_proto [17:24:38]query_string will be loaded in cgi processing [17:24:38]execute_cgi json_proto POST (null) [17:24:38]execute_cgi path=json_proto method=POST [17:24:38]POST find Content-Length [17:24:38]Host: 172.17.45.67:8080 [17:24:38]Content-Length: 678 [17:24:38]Content-Type: application/json [17:24:38] [17:24:38]POST finish read [17:24:38]Found Content-Length = 678 [17:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:38]execute_script... [17:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:38]POST & json_proto [17:24:38]process_json_proto [17:24:38]json parsed OK: [17:24:38]protocol is kg_v1.0 [17:24:38]action value=close_receipt [17:24:38]process_action close_receipt [17:24:38]cmd_close_receipt [17:24:38]MH_GetDate [17:24:38]Write to MH i2c: F0 00 00 CD 01 BD [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 09 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: F0 09 00 CD 01 00 D6 22 C6 66 5F 7F 2B 66 59 [17:24:38]GetLastDocTimeStamp 1724261074 [17:24:38]current date 1724261078 [17:24:38]FM_GetShiftState [17:24:38]SAM_PROTO_GetShiftState [17:24:38]wFMCommunicate request_size=4 [17:24:38]MH_SAM_APDU [17:24:38]CAPDU: 80 13 01 00 [17:24:38]Write to MH i2c: E2 08 00 CE 01 80 13 01 00 00 00 00 00 4C [17:24:38]Write i2c OK [17:24:38]MH_I2C_Read... [17:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:38]Read from MH i2c: E2 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 0E 00 [17:24:38]MH_I2C_Read... [17:24:38]Read from MH i2c: E2 0E 00 CE 01 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CC [17:24:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:38]wFMCommunicate OK [17:24:38]SAM_PROTO_GetShiftState done [17:24:38]FM_GetShiftState done [17:24:38]opened in 1724200467 [17:24:38]opened+sec_in_day 1724286867 [17:24:38]quantity*price = 80004 [17:24:38]sum+1 = 80005 [17:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 296 21.08.2024 17:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140279 ФПД: 213226417826440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172438&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140279&fm=213226417826440&tin=02508201610067®Number=0000000000092569&sum=80000 [17:24:39]StoreToDocumentArchive [17:24:39]shift 454 fd 140279 [17:24:39]save to /storage/0454/doc_00140279 [17:24:39]save last doc name /storage/0454/doc_00140279 to /storage/kkm_last_doc_name [17:24:39]save OK [17:24:39]Clear old archive folders... [17:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:39]tlvbuf is 00C8A250 [17:24:39]SAM_PROTO_ClearQueue [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 09 00 00 [17:24:39]Write to MH i2c: E2 08 00 DB 01 80 09 00 00 00 00 00 00 4E [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [17:24:39]RAPDU: 90 00 [17:24:39]wFMCommunicate OK [17:24:39]SAM_PROTO_ClearQueue done [17:24:39]KKMCreateOFDPacket [17:24:39]OFDProtocolAddRootSTLVToBuf [17:24:39]FM_MakeSignedData [17:24:39]FM_MakeSignedData [17:24:39]SAM_PROTO_SignData [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 0D 01 02 [17:24:39]Write to MH i2c: E2 08 00 DC 01 80 0D 01 02 00 00 00 00 56 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [17:24:39]RAPDU: 90 00 [17:24:39]wFMCommunicate OK [17:24:39]wFMCommunicate request_size=255 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D6 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 23 02 00 35 04 06 00 C1 [17:24:39]Write to MH i2c: E2 02 01 DD 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D6 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 23 02 00 35 04 06 00 C1 00 00 7D [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:39]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [17:24:40]RAPDU: 90 00 [17:24:40]wFMCommunicate OK [17:24:40]wFMCommunicate request_size=10 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 0D 02 02 05 ED A4 E4 2A 88 [17:24:40]Write to MH i2c: E2 0D 00 DE 01 80 0D 02 02 05 00 ED A4 E4 2A 88 00 00 8A [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [17:24:40]RAPDU: 90 00 [17:24:40]wFMCommunicate OK [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 0D 03 02 [17:24:40]Write to MH i2c: E2 08 00 DF 01 80 0D 03 02 00 00 00 00 5B [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 0B 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 0B 00 DF 01 00 A9 2E 9F F0 BE 02 26 D2 90 00 7A [17:24:40]RAPDU: A9 2E 9F F0 BE 02 26 D2 90 00 [17:24:40]wFMCommunicate OK [17:24:40]SAM_PROTO_SignData done [17:24:40]FM_MakeSignedData done [17:24:40]CreateOFDProtocolMessage [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 11 00 00 [17:24:40]Write to MH i2c: E2 08 00 E0 01 80 11 00 00 00 00 00 00 5B [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 17 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 17 00 E0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [17:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:40]wFMCommunicate OK [17:24:40]CreateOFDProtocolMessage done [17:24:40]OFDSenderStorePacket 140279 [17:24:40]StoreOFDPacket docnum=140279 [17:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 1C 07 01 7C 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D6 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 23 02 00 35 04 06 00 C1 ED A4 E4 2A 88 A9 2E 9F F0 BE 02 26 D2 [17:24:40]CheckFolder [17:24:40]dirname=/storage/ofd_packets [17:24:40]CheckFolder done [17:24:40]ProducePacketName [17:24:40]name=ofd_packets/00140279 [17:24:40]NVStorageSaveData ofd_packets/00140279 [17:24:40]File name is /storage/ofd_packets/00140279 [17:24:40]Write 301 bytes [17:24:40]NVStorageSaveData done [17:24:40]OFDSenderStorePacket done [17:24:40]KKMCreateOFDPacket done [17:24:40]NVStorageSaveData kkm_last_timestamp [17:24:40]File name is /storage/kkm_last_timestamp [17:24:40]Write 4 bytes [17:24:40]NVStorageSaveData done [17:24:40]ExternCall_PrintAddStr [17:24:40]wPrintStart [17:24:40]Write to MH i2c: 01 00 00 E1 01 E2 [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [17:24:40]RasterBufferAndPrint [17:24:40]line Счет N : (1)594136 [17:24:40]line ИНН: 02508201610067 [17:24:40]line Контрольно-Кассовый Чек [17:24:40]line ПРОДАЖА [17:24:40]line ТРК (МРК, ГНК) : 42 [17:24:40]line Товар: 2710124130 [17:24:40]line Аи-92-К-5 [17:24:40]line 11.800 * 67.80 [17:24:40]line = 800.04 [17:24:40]line НДС 12% НСП 1% [17:24:40]line > о реализуемом товаре [17:24:40]line ОКРУГЛЕНИЕ: -0.04 [17:24:40]line ИТОГО: 800.00 [17:24:40]line Внесено: 800.00 [17:24:40]line СДАЧА: 0.00 [17:24:40]line НСП 1% : 7.08 [17:24:40]line НДС 12% : 84.96 [17:24:40]line Наличными: 800.00 [17:24:40]line Безнал.: 0.00 [17:24:40]line Место: АЗС № 136 "Партнер Нефть" [17:24:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:24:40]line СНО: Общий режим [17:24:40]line Чек 296 21.08.2024 17:24 [17:24:40]line Смена: 454 ФФД: 1.0 [17:24:40]line ЗНМ: 0300000067 [17:24:40]line РНМ: 0000000000092569 [17:24:40]line Версия ККМ: 001 [17:24:40]line ФМ: 0000000000871776 [17:24:40]line ФД: 140279 [17:24:40]line ФПД: 213226417826440 [17:24:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172438&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140279&fm=213226417826440&tin=02508201610067®Number=0000000000092569&sum=80000 [17:24:40]OFD Sender: Processing packet 140279 [packets to send 137, broken 136] [17:24:40]ProducePacketName [17:24:40]name=ofd_packets/00140279 [17:24:40]OFD Sender: To server: pG, [17:24:40]CommunicateWithHost lk.salyk.kg:30040 [17:24:40]ConnectInit lk.salyk.kg [17:24:40]written 0, free lines is 4095 [17:24:40]Connected sock=9 [17:24: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 37 36 0F 01 00 00 93 1C 07 01 7C 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 D6 22 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 23 02 00 35 04 06 00 C1 ED A4 E4 2A 88 A9 2E 9F F0 BE 02 26 D2 [17:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 4D 3D 47 00 45 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F7 23 02 00 F4 03 04 00 67 C9 C5 66 B6 04 01 00 00 F4 55 20 7A D0 BA 4F 95 [17:24:41]CommunicateWithHost err = 0 [17:24:41]CheckOFDResponse [17:24:41]1017 (14) - 77093643461234 [17:24:41]1041 (16) - 0000000000871776 [17:24:41]1040 (4) - 140279 [17:24:41]1012 (4) - 21.08.2024 11:03 [17:24:41]1206 (1) - 0 [17:24:41]OFD Sender: Remove packet 140279 [17:24:41]ProducePacketName [17:24:41]name=ofd_packets/00140279 [17:24:41]NVStorageDeleteData [17:24:41]Write to MH i2c: 01 00 00 0C 02 0E [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 E6 0C 07 [17:24:41]RasterBufferAndPrint [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]written 0, free lines is 3314 [17:24:41]MH_Cut [17:24:41]Write to MH i2c: D1 01 00 13 02 01 E7 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 13 02 00 E6 [17:24:41]Write to MH i2c: 01 00 00 14 02 16 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]OFD Sender: No OFD packet to send [17:24:41]*** Cut start [17:24:41]*** Partial cut [17:24:41]*** CUTSNS_PIN = 1 [17:24:41]*** CUTSNS_PIN = 0 [17:24:41]*** Brake cut motor [17:24:42]Read from MH i2c: 01 *** Stop cut motor [17:24:42] [17:24:42]*** Cut end [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 FF 0F 2B [17:24:42]process_action close_receipt done [17:24:42]requested_data is exist [17:24:42]produce_requested_data [17:24:42]requested_item fm.sn is exist - process it [17:24:42]wFMCommunicate request_size=4 [17:24:42]MH_SAM_APDU [17:24:42]CAPDU: 80 11 00 00 [17:24:42]Write to MH i2c: E2 08 00 15 02 80 11 00 00 00 00 00 00 91 [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:42]Read from MH i2c: E2 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 17 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 17 00 15 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [17:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:24:42]wFMCommunicate OK [17:24:42]requested_item fd.num is exist - process it [17:24:42]SAM_PROTO_GetFieldsCounters [17:24:42]wFMCommunicate request_size=4 [17:24:42]MH_SAM_APDU [17:24:42]CAPDU: 80 13 00 00 [17:24:42]Write to MH i2c: E2 08 00 16 02 80 13 00 00 00 00 00 00 94 [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:42]Read from MH i2c: E2 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 62 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 62 00 16 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 23 02 00 0E 04 04 00 C6 01 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 1D [17:24: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F7 23 02 00 0E 04 04 00 C6 01 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 [17:24:42]wFMCommunicate OK [17:24:42]SAM_PROTO_GetFieldsCounters done [17:24:42]requested_item shift.num is exist - process it [17:24:42]requested_item shift.opened is exist - process it [17:24:42]req_shift_opened [17:24:42]FM_GetShiftState [17:24:42]SAM_PROTO_GetShiftState [17:24:42]wFMCommunicate request_size=4 [17:24:42]MH_SAM_APDU [17:24:42]CAPDU: 80 13 01 00 [17:24:42]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [17:24:42]Write i2c OK [17:24:42]MH_I2C_Read... [17:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:42]Read from MH i2c: E2 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 0E 00 [17:24:42]MH_I2C_Read... [17:24:42]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [17:24:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:24:42]wFMCommunicate OK [17:24:42]SAM_PROTO_GetShiftState done [17:24:42]FM_GetShiftState done [17:24:42]req_shift_opened done [17:24:42]requested_item shift.open_date is exist - process it [17:24:42]req_shift_open_date [17:24:42]req_shift_open_date done [17:24:42]produce_requested_data done [17:24:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140279,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:24:42]process_action_free close_receipt [17:24:42]json_value_free [17:24:42]json_value_free done [17:24:42]process_json_proto returns [17:24:42]Send response to host [17:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140279,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:24:42]free response buf [17:24:42]execute_script done [17:24:42]execute_script returns [17:24:42]free content buf [17:24:42]Sock 7.Close socket [17:24:42]Sock 7.Thread stoped [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:45]accept exits with 10 [17:25:45]New connection [17:25:45]New thread 3067469156 created [17:25:45]Thread 3067612516 joined [17:25:45]Waiting for new connection... [17:25:45] Sock 10.Parse request [17:25:45]Sock 10.Check first char [17:25:45]Sock 10.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.45.67:8080 [17:25:45]Content-Length: 682 [17:25:45]Content-Type: application/json [17:25:45] [17:25:45]POST finish read [17:25:45]Found Content-Length = 682 [17:25:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:45]execute_script... [17:25: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)594137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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=close_receipt [17:25:45]process_action close_receipt [17:25:45]cmd_close_receipt [17:25:45]MH_GetDate [17:25:45]Write to MH i2c: F0 00 00 18 02 09 [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 09 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: F0 09 00 18 02 00 19 23 C6 66 5F 7F 2B 66 E9 [17:25:45]GetLastDocTimeStamp 1724261078 [17:25:45]current date 1724261145 [17:25:45]FM_GetShiftState [17:25:45]SAM_PROTO_GetShiftState [17:25:45]wFMCommunicate request_size=4 [17:25:45]MH_SAM_APDU [17:25:45]CAPDU: 80 13 01 00 [17:25:45]Write to MH i2c: E2 08 00 19 02 80 13 01 00 00 00 00 00 98 [17:25:45]Write i2c OK [17:25:45]MH_I2C_Read... [17:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:45]Read from MH i2c: E2 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 0E 00 [17:25:45]MH_I2C_Read... [17:25:45]Read from MH i2c: E2 0E 00 19 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [17:25:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:25:45]wFMCommunicate OK [17:25:45]SAM_PROTO_GetShiftState done [17:25:45]FM_GetShiftState done [17:25:45]opened in 1724200467 [17:25:45]opened+sec_in_day 1724286867 [17:25:45]quantity*price = 100021 [17:25:45]sum+1 = 100023 [17:25:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 297 21.08.2024 17:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140280 ФПД: 72699082277407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140280&fm=72699082277407&tin=02508201610067®Number=0000000000092569&sum=100000 [17:25:46]StoreToDocumentArchive [17:25:46]shift 454 fd 140280 [17:25:46]save to /storage/0454/doc_00140280 [17:25:46]save last doc name /storage/0454/doc_00140280 to /storage/kkm_last_doc_name [17:25:46]save OK [17:25:46]Clear old archive folders... [17:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:46]tlvbuf is 00C398E0 [17:25:46]SAM_PROTO_ClearQueue [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 09 00 00 [17:25:46]Write to MH i2c: E2 08 00 26 02 80 09 00 00 00 00 00 00 9A [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_ClearQueue done [17:25:46]KKMCreateOFDPacket [17:25:46]OFDProtocolAddRootSTLVToBuf [17:25:46]FM_MakeSignedData [17:25:46]FM_MakeSignedData [17:25:46]SAM_PROTO_SignData [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 0D 01 02 [17:25:46]Write to MH i2c: E2 08 00 27 02 80 0D 01 02 00 00 00 00 A2 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [17:25:46]RAPDU: 90 00 [17:25:46]wFMCommunicate OK [17:25:46]wFMCommunicate request_size=255 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 19 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 23 02 00 35 04 06 00 42 [17:25:46]Write to MH i2c: E2 02 01 28 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 19 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 23 02 00 35 04 06 00 42 00 00 10 [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]wFMCommunicate request_size=10 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 0D 02 02 05 1E 92 F9 82 1F [17:25:47]Write to MH i2c: E2 0D 00 29 02 80 0D 02 02 05 00 1E 92 F9 82 1F 00 00 F9 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 0D 03 02 [17:25:47]Write to MH i2c: E2 08 00 2A 02 80 0D 03 02 00 00 00 00 A7 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0B 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0B 00 2A 02 00 0E 7C 9C 0E AF E6 A5 AB 90 00 C1 [17:25:47]RAPDU: 0E 7C 9C 0E AF E6 A5 AB 90 00 [17:25:47]wFMCommunicate OK [17:25:47]SAM_PROTO_SignData done [17:25:47]FM_MakeSignedData done [17:25:47]CreateOFDProtocolMessage [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 11 00 00 [17:25:47]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 17 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [17:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:25:47]wFMCommunicate OK [17:25:47]CreateOFDProtocolMessage done [17:25:47]OFDSenderStorePacket 140280 [17:25:47]StoreOFDPacket docnum=140280 [17:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F AE 07 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 19 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 23 02 00 35 04 06 00 42 1E 92 F9 82 1F 0E 7C 9C 0E AF E6 A5 AB [17:25:47]CheckFolder [17:25:47]dirname=/storage/ofd_packets [17:25:47]CheckFolder done [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00140280 [17:25:47]NVStorageSaveData ofd_packets/00140280 [17:25:47]File name is /storage/ofd_packets/00140280 [17:25:47]Write 301 bytes [17:25:47]NVStorageSaveData done [17:25:47]OFDSenderStorePacket done [17:25:47]KKMCreateOFDPacket done [17:25:47]NVStorageSaveData kkm_last_timestamp [17:25:47]File name is /storage/kkm_last_timestamp [17:25:47]Write 4 bytes [17:25:47]NVStorageSaveData done [17:25:47]OFD Sender: Processing packet 140280 [packets to send 137, broken 136] [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00140280 [17:25:47]OFD Sender: To server: pG, [17:25:47]CommunicateWithHost lk.salyk.kg:30040 [17:25:47]ConnectInit lk.salyk.kg [17:25:47]ExternCall_PrintAddStr [17:25:47]wPrintStart [17:25:47]Write to MH i2c: 01 00 00 2C 02 2E [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 [17:25:47]MH_I2C_Read... [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 2C 02 00 00 00 00 00 FF 0F 43 [17:25:47]RasterBufferAndPrint [17:25:47]line Счет N : (1)594137 [17:25:47]line ИНН: 02508201610067 [17:25:47]line Контрольно-Кассовый Чек [17:25:47]line ПРОДАЖА [17:25:47]line ТРК (МРК, ГНК) : 61 [17:25:47]line Товар: 2710124500 [17:25:47]line Аи-95-К-5 [17:25:47]line 13.480 * 74.20 [17:25:47]line = 1000.22 [17:25:47]line НДС 12% НСП 1% [17:25:47]line > о реализуемом товаре [17:25:47]line ОКРУГЛЕНИЕ: -0.22 [17:25:47]line ИТОГО: 1000.00 [17:25:47]line Внесено: 1000.00 [17:25:47]line СДАЧА: 0.00 [17:25:47]line НСП 1% : 8.85 [17:25:47]line НДС 12% : 106.22 [17:25:47]line Наличными: 1000.00 [17:25:47]line Безнал.: 0.00 [17:25:47]line Место: АЗС № 136 "Партнер Нефть" [17:25:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:25:47]line СНО: Общий режим [17:25:47]line Чек 297 21.08.2024 17:25 [17:25:47]line Смена: 454 ФФД: 1.0 [17:25:47]line ЗНМ: 0300000067 [17:25:47]line РНМ: 0000000000092569 [17:25:47]line Версия ККМ: 001 [17:25:47]line ФМ: 0000000000871776 [17:25:47]line ФД: 140280 [17:25:47]line ФПД: 72699082277407 [17:25:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172545&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140280&fm=72699082277407&tin=02508201610067®Number=0000000000092569&sum=100000 [17:25:47]Connected sock=11 [17:25: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 37 36 0F 01 00 00 0F AE 07 01 85 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 19 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F8 23 02 00 35 04 06 00 42 1E 92 F9 82 1F 0E 7C 9C 0E AF E6 A5 AB [17:25:47]written 0, free lines is 4095 [17:25: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 37 36 4F 00 00 00 8F 03 47 00 4C 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 37 36 10 04 04 00 F8 23 02 00 F4 03 04 00 AA C9 C5 66 B6 04 01 00 00 C4 20 68 AB C0 02 53 BB [17:25:47]CommunicateWithHost err = 0 [17:25:47]CheckOFDResponse [17:25:47]1017 (14) - 77093643461234 [17:25:47]1041 (16) - 0000000000871776 [17:25:47]1040 (4) - 140280 [17:25:47]1012 (4) - 21.08.2024 11:04 [17:25:47]1206 (1) - 0 [17:25:47]OFD Sender: Remove packet 140280 [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00140280 [17:25:47]NVStorageDeleteData [17:25:48]Write to MH i2c: 01 00 00 57 02 59 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 07 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 E0 0C 4C [17:25:48]RasterBufferAndPrint [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]written 0, free lines is 3302 [17:25:48]MH_Cut [17:25:48]Write to MH i2c: D1 01 00 5E 02 01 32 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 01 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 01 00 5E 02 00 31 [17:25:48]Write to MH i2c: 01 00 00 5F 02 61 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]OFD Sender: No OFD packet to send [17:25:48]*** Cut start [17:25:48]*** Partial cut [17:25:48]*** CUTSNS_PIN = 1 [17:25:48]*** CUTSNS_PIN = 0 [17:25:49]*** Brake cut motor [17:25:49]Read from MH i2c: 01 [17:25:49]MH_I2C_Read... [17:25:49]*** Stop cut motor [17:25:49]*** Cut end [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 5F 02 00 00 00 00 00 FF 0F 76 [17:25:49]process_action close_receipt done [17:25:49]requested_data is exist [17:25:49]produce_requested_data [17:25:49]requested_item fm.sn is exist - process it [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 60 02 80 11 00 00 00 00 00 00 DC [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 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [17:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:25:49]wFMCommunicate OK [17:25:49]requested_item fd.num is exist - process it [17:25:49]SAM_PROTO_GetFieldsCounters [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 13 00 00 [17:25:49]Write to MH i2c: E2 08 00 61 02 80 13 00 00 00 00 00 00 DF [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 62 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 62 00 61 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 23 02 00 0E 04 04 00 C6 01 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 6C [17:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F8 23 02 00 0E 04 04 00 C6 01 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 [17:25:49]wFMCommunicate OK [17:25:49]SAM_PROTO_GetFieldsCounters done [17:25:49]requested_item shift.num is exist - process it [17:25:49]requested_item shift.opened is exist - process it [17:25:49]req_shift_opened [17:25:49]FM_GetShiftState [17:25:49]SAM_PROTO_GetShiftState [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 13 01 00 [17:25:49]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 0E 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [17:25:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:25:49]wFMCommunicate OK [17:25:49]SAM_PROTO_GetShiftState done [17:25:49]FM_GetShiftState done [17:25:49]req_shift_opened done [17:25:49]requested_item shift.open_date is exist - process it [17:25:49]req_shift_open_date [17:25:49]req_shift_open_date done [17:25:49]produce_requested_data done [17:25:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140280,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:25:49]process_action_free close_receipt [17:25:49]json_value_free [17:25:49]json_value_free done [17:25:49]process_json_proto returns [17:25:49]Send response to host [17:25:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140280,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:25:49]free response buf [17:25:49]execute_script done [17:25:49]execute_script returns [17:25:49]free content buf [17:25:49]Sock 10.Close socket [17:25:49]Sock 10.Thread stoped [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:52]accept exits with 7 [17:27:52]New connection [17:27:52]New thread 3067612516 created [17:27:52]Thread 3067469156 joined [17:27:52]Waiting for new connection... [17:27:52] Sock 7.Parse request [17:27:52]Sock 7.Check first char [17:27:52]Sock 7.First char is OK [17:27:52]request: POST /json_proto HTTP/1.0 [17:27:52]Method: POST [17:27:52]URL: /json_proto [17:27:52]Method is POST - this is cgi request [17:27:52]url: /json_proto [17:27:52]query_string will be loaded in cgi processing [17:27:52]execute_cgi json_proto POST (null) [17:27:52]execute_cgi path=json_proto method=POST [17:27:52]POST find Content-Length [17:27:52]Host: 172.17.45.67:8080 [17:27:52]Content-Length: 682 [17:27:52]Content-Type: application/json [17:27:52] [17:27:52]POST finish read [17:27:52]Found Content-Length = 682 [17:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]execute_script... [17:27:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:52]POST & json_proto [17:27:52]process_json_proto [17:27:52]json parsed OK: [17:27:52]protocol is kg_v1.0 [17:27:52]action value=close_receipt [17:27:52]process_action close_receipt [17:27:52]cmd_close_receipt [17:27:52]MH_GetDate [17:27:52]Write to MH i2c: F0 00 00 63 02 54 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: F0 09 00 63 02 00 98 23 C6 66 5F 7F 2B 66 B3 [17:27:52]GetLastDocTimeStamp 1724261145 [17:27:52]current date 1724261272 [17:27:52]FM_GetShiftState [17:27:52]SAM_PROTO_GetShiftState [17:27:52]wFMCommunicate request_size=4 [17:27:52]MH_SAM_APDU [17:27:52]CAPDU: 80 13 01 00 [17:27:52]Write to MH i2c: E2 08 00 64 02 80 13 01 00 00 00 00 00 E3 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:52]Read from MH i2c: E2 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: E2 0E 00 64 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [17:27:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:27:52]wFMCommunicate OK [17:27:52]SAM_PROTO_GetShiftState done [17:27:52]FM_GetShiftState done [17:27:52]opened in 1724200467 [17:27:52]opened+sec_in_day 1724286867 [17:27:52]quantity*price = 100005 [17:27:52]sum+1 = 100006 [17:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 298 21.08.2024 17:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140281 ФПД: 200005706528551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172752&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140281&fm=200005706528551&tin=02508201610067®Number=0000000000092569&sum=100000 [17:27:53]StoreToDocumentArchive [17:27:53]shift 454 fd 140281 [17:27:53]save to /storage/0454/doc_00140281 [17:27:53]save last doc name /storage/0454/doc_00140281 to /storage/kkm_last_doc_name [17:27:53]save OK [17:27:53]Clear old archive folders... [17:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:53]tlvbuf is 00CA7DC0 [17:27:53]SAM_PROTO_ClearQueue [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 09 00 00 [17:27:53]Write to MH i2c: E2 08 00 71 02 80 09 00 00 00 00 00 00 E5 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]SAM_PROTO_ClearQueue done [17:27:53]KKMCreateOFDPacket [17:27:53]OFDProtocolAddRootSTLVToBuf [17:27:53]FM_MakeSignedData [17:27:53]FM_MakeSignedData [17:27:53]SAM_PROTO_SignData [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 0D 01 02 [17:27:53]Write to MH i2c: E2 08 00 72 02 80 0D 01 02 00 00 00 00 ED [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]wFMCommunicate request_size=255 [17:27:53]MH_SAM_APDU [17:27: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 98 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 23 02 00 35 04 06 00 B5 [17:27:53]Write to MH i2c: E2 02 01 73 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 98 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 23 02 00 35 04 06 00 B5 00 00 B1 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]OFD Sender: No OFD packet to send [17:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 73 02 00 90 00 E9 [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]wFMCommunicate request_size=10 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 0D 02 02 05 E7 75 17 37 27 [17:27:53]Write to MH i2c: E2 0D 00 74 02 80 0D 02 02 05 00 E7 75 17 37 27 00 00 CB [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [17:27:53]RAPDU: 90 00 [17:27:53]wFMCommunicate OK [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 0D 03 02 [17:27:53]Write to MH i2c: E2 08 00 75 02 80 0D 03 02 00 00 00 00 F2 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 0B 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 0B 00 75 02 00 42 20 5A 56 F7 D7 22 C2 90 00 B7 [17:27:53]RAPDU: 42 20 5A 56 F7 D7 22 C2 90 00 [17:27:53]wFMCommunicate OK [17:27:53]SAM_PROTO_SignData done [17:27:53]FM_MakeSignedData done [17:27:53]CreateOFDProtocolMessage [17:27:53]wFMCommunicate request_size=4 [17:27:53]MH_SAM_APDU [17:27:53]CAPDU: 80 11 00 00 [17:27:53]Write to MH i2c: E2 08 00 76 02 80 11 00 00 00 00 00 00 F2 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:53]Read from MH i2c: E2 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 17 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: E2 17 00 76 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [17:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:27:53]wFMCommunicate OK [17:27:53]CreateOFDProtocolMessage done [17:27:53]OFDSenderStorePacket 140281 [17:27:53]StoreOFDPacket docnum=140281 [17:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B DF 07 01 DE 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 98 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 23 02 00 35 04 06 00 B5 E7 75 17 37 27 42 20 5A 56 F7 D7 22 C2 [17:27:53]CheckFolder [17:27:53]dirname=/storage/ofd_packets [17:27:53]CheckFolder done [17:27:53]ProducePacketName [17:27:53]name=ofd_packets/00140281 [17:27:53]NVStorageSaveData ofd_packets/00140281 [17:27:53]File name is /storage/ofd_packets/00140281 [17:27:53]Write 301 bytes [17:27:53]NVStorageSaveData done [17:27:53]OFDSenderStorePacket done [17:27:53]KKMCreateOFDPacket done [17:27:53]NVStorageSaveData kkm_last_timestamp [17:27:53]File name is /storage/kkm_last_timestamp [17:27:53]Write 4 bytes [17:27:53]NVStorageSaveData done [17:27:53]ExternCall_PrintAddStr [17:27:53]wPrintStart [17:27:53]Write to MH i2c: 01 00 00 77 02 79 [17:27:53]Write i2c OK [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 [17:27:53]MH_I2C_Read... [17:27:53]Read from MH i2c: 01 07 00 77 02 00 00 00 00 00 FF 0F 8E [17:27:53]RasterBufferAndPrint [17:27:53]line Счет N : (1)594138 [17:27:53]line ИНН: 02508201610067 [17:27:53]line Контрольно-Кассовый Чек [17:27:53]line ПРОДАЖА [17:27:53]line ТРК (МРК, ГНК) : 62 [17:27:53]line Товар: 2710124130 [17:27:53]line Аи-92-К-5 [17:27:53]line 14.750 * 67.80 [17:27:53]line = 1000.05 [17:27:53]line НДС 12% НСП 1% [17:27:53]line > о реализуемом товаре [17:27:53]line ОКРУГЛЕНИЕ: -0.05 [17:27:53]line ИТОГО: 1000.00 [17:27:53]line Внесено: 1000.00 [17:27:53]line СДАЧА: 0.00 [17:27:53]line НСП 1% : 8.85 [17:27:53]line НДС 12% : 106.20 [17:27:53]line Наличными: 1000.00 [17:27:53]line Безнал.: 0.00 [17:27:53]line Место: АЗС № 136 "Партнер Нефть" [17:27:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:27:53]line СНО: Общий режим [17:27:53]line Чек 298 21.08.2024 17:27 [17:27:53]line Смена: 454 ФФД: 1.0 [17:27:53]line ЗНМ: 0300000067 [17:27:53]line РНМ: 0000000000092569 [17:27:53]line Версия ККМ: 001 [17:27:53]line ФМ: 0000000000871776 [17:27:53]line ФД: 140281 [17:27:53]line ФПД: 200005706528551 [17:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172752&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140281&fm=200005706528551&tin=02508201610067®Number=0000000000092569&sum=100000 [17:27:54]OFD Sender: Processing packet 140281 [packets to send 137, broken 136] [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00140281 [17:27:54]OFD Sender: To server: pG, [17:27:54]CommunicateWithHost lk.salyk.kg:30040 [17:27:54]ConnectInit lk.salyk.kg [17:27:54]written 0, free lines is 4095 [17:27:54]Connected sock=10 [17:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B DF 07 01 DE 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 98 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 F9 23 02 00 35 04 06 00 B5 E7 75 17 37 27 42 20 5A 56 F7 D7 22 C2 [17:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F1 CA 47 00 C4 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 37 36 10 04 04 00 F9 23 02 00 F4 03 04 00 28 CA C5 66 B6 04 01 00 00 B3 D1 80 33 0E DB B6 AB [17:27:54]CommunicateWithHost err = 0 [17:27:54]CheckOFDResponse [17:27:54]1017 (14) - 77093643461234 [17:27:54]1041 (16) - 0000000000871776 [17:27:54]1040 (4) - 140281 [17:27:54]1012 (4) - 21.08.2024 11:06 [17:27:54]1206 (1) - 0 [17:27:54]OFD Sender: Remove packet 140281 [17:27:54]ProducePacketName [17:27:54]name=ofd_packets/00140281 [17:27:54]NVStorageDeleteData [17:27:54]Write to MH i2c: 01 00 00 A2 02 A4 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 E6 0C 9D [17:27:54]RasterBufferAndPrint [17:27:54]line [17:27:54]line [17:27:54]line [17:27:54]line [17:27:54]line [17:27:54]written 0, free lines is 3308 [17:27:54]MH_Cut [17:27:54]Write to MH i2c: D1 01 00 A9 02 01 7D [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D1 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D1 01 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: D1 01 00 A9 02 00 7C [17:27:54]Write to MH i2c: 01 00 00 AA 02 AC [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:55]OFD Sender: No OFD packet to send [17:27:55]*** Cut start [17:27:55]*** Partial cut [17:27:55]*** CUTSNS_PIN = 1 [17:27:55]*** CUTSNS_PIN = 0 [17:27:55]*** Brake cut motor [17:27:55]Read from MH i2c: 01 [17:27:55]MH_I2C_Read... [17:27:55]*** Stop cut motor [17:27:55]*** Cut end [17:27:55]Read from MH i2c: 01 07 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 FF 0F C1 [17:27:55]process_action close_receipt done [17:27:55]requested_data is exist [17:27:55]produce_requested_data [17:27:55]requested_item fm.sn is exist - process it [17:27:55]wFMCommunicate request_size=4 [17:27:55]MH_SAM_APDU [17:27:55]CAPDU: 80 11 00 00 [17:27:55]Write to MH i2c: E2 08 00 AB 02 80 11 00 00 00 00 00 00 27 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 AB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [17:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:27:56]wFMCommunicate OK [17:27:56]requested_item fd.num is exist - process it [17:27:56]SAM_PROTO_GetFieldsCounters [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 00 00 [17:27:56]Write to MH i2c: E2 08 00 AC 02 80 13 00 00 00 00 00 00 2A [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 62 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 62 00 AC 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 23 02 00 0E 04 04 00 C6 01 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 BB [17:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 F9 23 02 00 0E 04 04 00 C6 01 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 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_GetFieldsCounters done [17:27:56]requested_item shift.num is exist - process it [17:27:56]requested_item shift.opened is exist - process it [17:27:56]req_shift_opened [17:27:56]FM_GetShiftState [17:27:56]SAM_PROTO_GetShiftState [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 01 00 [17:27:56]Write to MH i2c: E2 08 00 AD 02 80 13 01 00 00 00 00 00 2C [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 AD 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [17:27:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_GetShiftState done [17:27:56]FM_GetShiftState done [17:27:56]req_shift_opened done [17:27:56]requested_item shift.open_date is exist - process it [17:27:56]req_shift_open_date [17:27:56]req_shift_open_date done [17:27:56]produce_requested_data done [17:27:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140281,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:27:56]process_action_free close_receipt [17:27:56]json_value_free [17:27:56]json_value_free done [17:27:56]process_json_proto returns [17:27:56]Send response to host [17:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140281,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:27:56]free response buf [17:27:56]execute_script done [17:27:56]execute_script returns [17:27:56]free content buf [17:27:56]Sock 7.Close socket [17:27:56]Sock 7.Thread stoped [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:18]int [17:29:18]Write to MH i2c: 01 00 00 AE 02 B0 [17:29:18]*** FLAG_PRN_KEY set [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 [17:29:18]MH_I2C_Read... [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 AE 02 00 08 00 00 00 FF 0F CD [17:29:18]state=0 [17:29:18]Key pressed [17:29:18]Feed [17:29:18]Write to MH i2c: D8 00 00 AF 02 88 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: D8 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: D8 01 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: D8 01 00 AF 02 00 89 [17:29:18]int [17:29:18]Write to MH i2c: 01 00 00 B0 02 B2 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 [17:29:18]MH_I2C_Read... [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 B0 02 00 48 00 00 00 3C 00 3D [17:29:18]state=2 [17:29:18]Key pressed [17:29:18]int [17:29:18]Write to MH i2c: 01 00 00 B1 02 B3 [17:29:18]*** FLAG_PRN_KEY reset [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 [17:29:18]MH_I2C_Read... [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 B1 02 00 00 00 00 00 F5 0F BE [17:29:18]state=2 [17:29:18]Stop feed [17:29:20]OFD Sender: No OFD packet to send [17:29:24]accept exits with 9 [17:29:24]New connection [17:29:24]New thread 3067469156 created [17:29:24]Thread 3067612516 joined [17:29:24]Waiting for new connection... [17:29:24] Sock 9.Parse request [17:29:24]Sock 9.Check first char [17:29:24]Sock 9.First char is OK [17:29:24]request: POST /json_proto HTTP/1.0 [17:29:24]Method: POST [17:29:24]URL: /json_proto [17:29:24]Method is POST - this is cgi request [17:29:24]url: /json_proto [17:29:24]query_string will be loaded in cgi processing [17:29:24]execute_cgi json_proto POST (null) [17:29:24]execute_cgi path=json_proto method=POST [17:29:24]POST find Content-Length [17:29:24]Host: 172.17.45.67:8080 [17:29:24]Content-Length: 677 [17:29:24]Content-Type: application/json [17:29:24] [17:29:24]POST finish read [17:29:24]Found Content-Length = 677 [17:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:24]execute_script... [17:29: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)594139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:24]POST & json_proto [17:29:24]process_json_proto [17:29:24]json parsed OK: [17:29:24]protocol is kg_v1.0 [17:29:24]action value=close_receipt [17:29:24]process_action close_receipt [17:29:24]cmd_close_receipt [17:29:24]MH_GetDate [17:29:24]Write to MH i2c: F0 00 00 B2 02 A3 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: F0 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: F0 09 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: F0 09 00 B2 02 00 F4 23 C6 66 5F 7F 2B 66 5E [17:29:24]GetLastDocTimeStamp 1724261272 [17:29:24]current date 1724261364 [17:29:24]FM_GetShiftState [17:29:24]SAM_PROTO_GetShiftState [17:29:24]wFMCommunicate request_size=4 [17:29:24]MH_SAM_APDU [17:29:24]CAPDU: 80 13 01 00 [17:29:24]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [17:29:24]Write i2c OK [17:29:24]MH_I2C_Read... [17:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:24]Read from MH i2c: E2 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 0E 00 [17:29:24]MH_I2C_Read... [17:29:24]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B2 [17:29:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:29:24]wFMCommunicate OK [17:29:24]SAM_PROTO_GetShiftState done [17:29:24]FM_GetShiftState done [17:29:24]opened in 1724200467 [17:29:24]opened+sec_in_day 1724286867 [17:29:24]quantity*price = 40002 [17:29:24]sum+1 = 40003 [17:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 299 21.08.2024 17:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140282 ФПД: 6806825698569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172924&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140282&fm=6806825698569&tin=02508201610067®Number=0000000000092569&sum=40000 [17:29:25]StoreToDocumentArchive [17:29:25]shift 454 fd 140282 [17:29:25]save to /storage/0454/doc_00140282 [17:29:25]save last doc name /storage/0454/doc_00140282 to /storage/kkm_last_doc_name [17:29:25]save OK [17:29:25]Clear old archive folders... [17:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:25]tlvbuf is 00C9E210 [17:29:25]SAM_PROTO_ClearQueue [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 09 00 00 [17:29:25]Write to MH i2c: E2 08 00 C0 02 80 09 00 00 00 00 00 00 34 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [17:29:25]RAPDU: 90 00 [17:29:25]wFMCommunicate OK [17:29:25]SAM_PROTO_ClearQueue done [17:29:25]KKMCreateOFDPacket [17:29:25]OFDProtocolAddRootSTLVToBuf [17:29:25]FM_MakeSignedData [17:29:25]FM_MakeSignedData [17:29:25]SAM_PROTO_SignData [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 0D 01 02 [17:29:25]Write to MH i2c: E2 08 00 C1 02 80 0D 01 02 00 00 00 00 3C [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [17:29:25]RAPDU: 90 00 [17:29:25]wFMCommunicate OK [17:29:25]wFMCommunicate request_size=255 [17:29:25]MH_SAM_APDU [17:29: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F4 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 23 02 00 35 04 06 00 06 [17:29:25]Write to MH i2c: E2 02 01 C2 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F4 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 23 02 00 35 04 06 00 06 00 00 05 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [17:29:25]RAPDU: 90 00 [17:29:25]wFMCommunicate OK [17:29:25]wFMCommunicate request_size=10 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 0D 02 02 05 30 D6 6D 85 09 [17:29:25]Write to MH i2c: E2 0D 00 C3 02 80 0D 02 02 05 00 30 D6 6D 85 09 00 00 4A [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:25]Read from MH i2c: E2 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 [17:29:25]MH_I2C_Read... [17:29:25]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [17:29:25]RAPDU: 90 00 [17:29:25]wFMCommunicate OK [17:29:25]wFMCommunicate request_size=4 [17:29:25]MH_SAM_APDU [17:29:25]CAPDU: 80 0D 03 02 [17:29:25]Write to MH i2c: E2 08 00 C4 02 80 0D 03 02 00 00 00 00 41 [17:29:25]Write i2c OK [17:29:25]MH_I2C_Read... [17:29:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:26]Read from MH i2c: E2 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: E2 0B 00 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: E2 0B 00 C4 02 00 E4 7A 71 61 0F E7 2B 17 90 00 AA [17:29:26]RAPDU: E4 7A 71 61 0F E7 2B 17 90 00 [17:29:26]wFMCommunicate OK [17:29:26]SAM_PROTO_SignData done [17:29:26]FM_MakeSignedData done [17:29:26]CreateOFDProtocolMessage [17:29:26]wFMCommunicate request_size=4 [17:29:26]MH_SAM_APDU [17:29:26]CAPDU: 80 11 00 00 [17:29:26]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [17:29:26]Write i2c OK [17:29:26]MH_I2C_Read... [17:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:26]Read from MH i2c: E2 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: E2 17 00 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [17:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:26]wFMCommunicate OK [17:29:26]CreateOFDProtocolMessage done [17:29:26]OFDSenderStorePacket 140282 [17:29:26]StoreOFDPacket docnum=140282 [17:29:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EE 9E 07 01 6C 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F4 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 23 02 00 35 04 06 00 06 30 D6 6D 85 09 E4 7A 71 61 0F E7 2B 17 [17:29:26]CheckFolder [17:29:26]dirname=/storage/ofd_packets [17:29:26]CheckFolder done [17:29:26]ProducePacketName [17:29:26]name=ofd_packets/00140282 [17:29:26]NVStorageSaveData ofd_packets/00140282 [17:29:26]File name is /storage/ofd_packets/00140282 [17:29:26]Write 301 bytes [17:29:26]NVStorageSaveData done [17:29:26]OFDSenderStorePacket done [17:29:26]KKMCreateOFDPacket done [17:29:26]NVStorageSaveData kkm_last_timestamp [17:29:26]File name is /storage/kkm_last_timestamp [17:29:26]Write 4 bytes [17:29:26]NVStorageSaveData done [17:29:26]ExternCall_PrintAddStr [17:29:26]wPrintStart [17:29:26]Write to MH i2c: 01 00 00 C6 02 C8 [17:29:26]Write i2c OK [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 07 00 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [17:29:26]RasterBufferAndPrint [17:29:26]line Счет N : (1)594139 [17:29:26]line ИНН: 02508201610067 [17:29:26]line Контрольно-Кассовый Чек [17:29:26]line ПРОДАЖА [17:29:26]line ТРК (МРК, ГНК) : 42 [17:29:26]line Товар: 2710124130 [17:29:26]line Аи-92-К-5 [17:29:26]line 5.900 * 67.80 [17:29:26]line = 400.02 [17:29:26]line НДС 12% НСП 1% [17:29:26]line > о реализуемом товаре [17:29:26]line ОКРУГЛЕНИЕ: -0.02 [17:29:26]line ИТОГО: 400.00 [17:29:26]line Внесено: 400.00 [17:29:26]line СДАЧА: 0.00 [17:29:26]line НСП 1% : 3.54 [17:29:26]line НДС 12% : 42.48 [17:29:26]line Наличными: 400.00 [17:29:26]line Безнал.: 0.00 [17:29:26]line Место: АЗС № 136 "Партнер Нефть" [17:29:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:29:26]line СНО: Общий режим [17:29:26]line Чек 299 21.08.2024 17:29 [17:29:26]line Смена: 454 ФФД: 1.0 [17:29:26]line ЗНМ: 0300000067 [17:29:26]line РНМ: 0000000000092569 [17:29:26]line Версия ККМ: 001 [17:29:26]line ФМ: 0000000000871776 [17:29:26]line ФД: 140282 [17:29:26]line ФПД: 6806825698569 [17:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T172924&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140282&fm=6806825698569&tin=02508201610067®Number=0000000000092569&sum=40000 [17:29:26]written 0, free lines is 4095 [17:29:26]OFD Sender: Processing packet 140282 [packets to send 137, broken 136] [17:29:26]ProducePacketName [17:29:26]name=ofd_packets/00140282 [17:29:26]OFD Sender: To server: pG, [17:29:26]CommunicateWithHost lk.salyk.kg:30040 [17:29:26]ConnectInit lk.salyk.kg [17:29:26]Connected sock=10 [17:29: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 37 36 0F 01 00 00 EE 9E 07 01 6C 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F4 23 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 23 02 00 35 04 06 00 06 30 D6 6D 85 09 E4 7A 71 61 0F E7 2B 17 [17:29:26]Write to MH i2c: 01 00 00 F1 02 F3 [17:29:26]Write i2c OK [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 07 00 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 E2 0C E8 [17:29:26]RasterBufferAndPrint [17:29:26]line [17:29:26]line [17:29:26]line [17:29:26]line [17:29:26]line [17:29:26]written 0, free lines is 3304 [17:29:26]MH_Cut [17:29:26]Write to MH i2c: D1 01 00 F8 02 01 CC [17:29:26]Write i2c OK [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: D1 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: D1 01 00 [17:29:26]MH_I2C_Read... [17:29:26]Read from MH i2c: D1 01 00 F8 02 00 CB [17:29:26]Write to MH i2c: 01 00 00 F9 02 FB [17:29:26]Write i2c OK [17:29:26]MH_I2C_Read... [17:29: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 37 36 4F 00 00 00 E6 69 47 00 84 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FA 23 02 00 F4 03 04 00 85 CA C5 66 B6 04 01 00 00 1E BC 6D 5A 1C 3B 43 CD [17:29:26]CommunicateWithHost err = 0 [17:29:26]CheckOFDResponse [17:29:26]1017 (14) - 77093643461234 [17:29:26]1041 (16) - 0000000000871776 [17:29:26]1040 (4) - 140282 [17:29:26]1012 (4) - 21.08.2024 11:07 [17:29:26]1206 (1) - 0 [17:29:26]OFD Sender: Remove packet 140282 [17:29:26]ProducePacketName [17:29:26]name=ofd_packets/00140282 [17:29:26]NVStorageDeleteData [17:29:27]OFD Sender: No OFD packet to send [17:29:27]*** Cut start [17:29:27]*** Partial cut [17:29:27]*** CUTSNS_PIN = 1 [17:29:27]*** CUTSNS_PIN = 0 [17:29:27]*** Brake cut motor [17:29:28]Read from MH i2c: 01 [17:29:28]MH_I2C_Read... [17:29:28]*** Stop cut motor [17:29:28]*** Cut end [17:29:28]Read from MH i2c: 01 07 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [17:29:28]process_action close_receipt done [17:29:28]requested_data is exist [17:29:28]produce_requested_data [17:29:28]requested_item fm.sn is exist - process it [17:29:28]wFMCommunicate request_size=4 [17:29:28]MH_SAM_APDU [17:29:28]CAPDU: 80 11 00 00 [17:29:28]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [17:29:28]Write i2c OK [17:29:28]MH_I2C_Read... [17:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:28]Read from MH i2c: E2 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 17 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CD [17:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:29:28]wFMCommunicate OK [17:29:28]requested_item fd.num is exist - process it [17:29:28]SAM_PROTO_GetFieldsCounters [17:29:28]wFMCommunicate request_size=4 [17:29:28]MH_SAM_APDU [17:29:28]CAPDU: 80 13 00 00 [17:29:28]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [17:29:28]Write i2c OK [17:29:28]MH_I2C_Read... [17:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:28]Read from MH i2c: E2 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 62 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 62 00 FB 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 23 02 00 0E 04 04 00 C6 01 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 0E [17:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FA 23 02 00 0E 04 04 00 C6 01 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 [17:29:28]wFMCommunicate OK [17:29:28]SAM_PROTO_GetFieldsCounters done [17:29:28]requested_item shift.num is exist - process it [17:29:28]requested_item shift.opened is exist - process it [17:29:28]req_shift_opened [17:29:28]FM_GetShiftState [17:29:28]SAM_PROTO_GetShiftState [17:29:28]wFMCommunicate request_size=4 [17:29:28]MH_SAM_APDU [17:29:28]CAPDU: 80 13 01 00 [17:29:28]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [17:29:28]Write i2c OK [17:29:28]MH_I2C_Read... [17:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:28]Read from MH i2c: E2 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 0E 00 [17:29:28]MH_I2C_Read... [17:29:28]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [17:29:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:29:28]wFMCommunicate OK [17:29:28]SAM_PROTO_GetShiftState done [17:29:28]FM_GetShiftState done [17:29:28]req_shift_opened done [17:29:28]requested_item shift.open_date is exist - process it [17:29:28]req_shift_open_date [17:29:28]req_shift_open_date done [17:29:28]produce_requested_data done [17:29:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140282,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:29:28]process_action_free close_receipt [17:29:28]json_value_free [17:29:28]json_value_free done [17:29:28]process_json_proto returns [17:29:28]Send response to host [17:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140282,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:29:28]free response buf [17:29:28]execute_script done [17:29:28]execute_script returns [17:29:28]free content buf [17:29:28]Sock 9.Close socket [17:29:28]Sock 9.Thread stoped [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:44]int [17:29:44]Write to MH i2c: 01 00 00 FD 02 FF [17:29:44]*** FLAG_PRN_KEY set [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 FD 02 00 08 00 00 00 FF 0F 1C [17:29:44]state=0 [17:29:44]Key pressed [17:29:44]Feed [17:29:44]Write to MH i2c: D8 00 00 FE 02 D7 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: D8 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: D8 01 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: D8 01 00 FE 02 00 D8 [17:29:44]int [17:29:44]Write to MH i2c: 01 00 00 FF 02 01 [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 FF 02 00 48 00 00 00 3C 00 8C [17:29:44]state=2 [17:29:44]Key pressed [17:29:44]int [17:29:44]Write to MH i2c: 01 00 00 00 03 03 [17:29:44]*** FLAG_PRN_KEY reset [17:29:44]Write i2c OK [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 [17:29:44]MH_I2C_Read... [17:29:44]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 F9 0F 12 [17:29:44]state=2 [17:29:44]Stop feed [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]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:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:08]accept exits with 7 [17:36:08]New connection [17:36:08]New thread 3067612516 created [17:36:08]Thread 3067469156 joined [17:36:08]Waiting for new connection... [17:36:08] Sock 7.Parse request [17:36:08]Sock 7.Check first char [17:36:08]Sock 7.First char is OK [17:36:08]request: POST /json_proto HTTP/1.0 [17:36:08]Method: POST [17:36:08]URL: /json_proto [17:36:08]Method is POST - this is cgi request [17:36:08]url: /json_proto [17:36:08]query_string will be loaded in cgi processing [17:36:08]execute_cgi json_proto POST (null) [17:36:08]execute_cgi path=json_proto method=POST [17:36:08]POST find Content-Length [17:36:08]Host: 172.17.45.67:8080 [17:36:08]Content-Length: 677 [17:36:08]Content-Type: application/json [17:36:08] [17:36:08]POST finish read [17:36:08]Found Content-Length = 677 [17:36:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:08]execute_script... [17:36: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)594141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:08]POST & json_proto [17:36:08]process_json_proto [17:36:08]json parsed OK: [17:36:08]protocol is kg_v1.0 [17:36:08]action value=close_receipt [17:36:08]process_action close_receipt [17:36:08]cmd_close_receipt [17:36:08]MH_GetDate [17:36:08]Write to MH i2c: F0 00 00 01 03 F3 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: F0 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: F0 09 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: F0 09 00 01 03 00 88 25 C6 66 5F 7F 2B 66 44 [17:36:08]GetLastDocTimeStamp 1724261364 [17:36:08]current date 1724261768 [17:36:08]FM_GetShiftState [17:36:08]SAM_PROTO_GetShiftState [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 13 01 00 [17:36:08]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 0E 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 02 [17:36:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:08]wFMCommunicate OK [17:36:08]SAM_PROTO_GetShiftState done [17:36:08]FM_GetShiftState done [17:36:08]opened in 1724200467 [17:36:08]opened+sec_in_day 1724286867 [17:36:08]quantity*price = 70044 [17:36:08]sum+1 = 70046 [17:36:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 300 21.08.2024 17:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140283 ФПД: 20533671358442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140283&fm=20533671358442&tin=02508201610067®Number=0000000000092569&sum=70000 [17:36:09]StoreToDocumentArchive [17:36:09]shift 454 fd 140283 [17:36:09]save to /storage/0454/doc_00140283 [17:36:09]save last doc name /storage/0454/doc_00140283 to /storage/kkm_last_doc_name [17:36:09]save OK [17:36:09]Clear old archive folders... [17:36:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:09]tlvbuf is 00CAA800 [17:36:09]SAM_PROTO_ClearQueue [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 09 00 00 [17:36:09]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [17:36:09]RAPDU: 90 00 [17:36:09]wFMCommunicate OK [17:36:09]SAM_PROTO_ClearQueue done [17:36:09]KKMCreateOFDPacket [17:36:09]OFDProtocolAddRootSTLVToBuf [17:36:09]FM_MakeSignedData [17:36:09]FM_MakeSignedData [17:36:09]SAM_PROTO_SignData [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 0D 01 02 [17:36:09]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [17:36:09]RAPDU: 90 00 [17:36:09]wFMCommunicate OK [17:36:09]wFMCommunicate request_size=255 [17:36:09]MH_SAM_APDU [17:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 88 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 23 02 00 35 04 06 00 12 [17:36:09]Write to MH i2c: E2 02 01 11 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 88 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 23 02 00 35 04 06 00 12 00 00 0B [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [17:36:09]RAPDU: 90 00 [17:36:09]wFMCommunicate OK [17:36:09]wFMCommunicate request_size=10 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 0D 02 02 05 AC DE 2F EF EA [17:36:09]Write to MH i2c: E2 0D 00 12 03 80 0D 02 02 05 00 AC DE 2F EF EA 00 00 2B [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [17:36:09]RAPDU: 90 00 [17:36:09]wFMCommunicate OK [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 0D 03 02 [17:36:09]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0B 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0B 00 13 03 00 93 9A 2C E0 23 FF 45 49 90 00 7B [17:36:09]RAPDU: 93 9A 2C E0 23 FF 45 49 90 00 [17:36:09]wFMCommunicate OK [17:36:09]SAM_PROTO_SignData done [17:36:09]FM_MakeSignedData done [17:36:09]CreateOFDProtocolMessage [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 11 00 00 [17:36:09]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [17:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:09]wFMCommunicate OK [17:36:09]CreateOFDProtocolMessage done [17:36:09]OFDSenderStorePacket 140283 [17:36:09]StoreOFDPacket docnum=140283 [17:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA 85 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 88 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 23 02 00 35 04 06 00 12 AC DE 2F EF EA 93 9A 2C E0 23 FF 45 49 [17:36:09]CheckFolder [17:36:09]dirname=/storage/ofd_packets [17:36:09]CheckFolder done [17:36:09]ProducePacketName [17:36:09]name=ofd_packets/00140283 [17:36:09]NVStorageSaveData ofd_packets/00140283 [17:36:09]File name is /storage/ofd_packets/00140283 [17:36:09]Write 301 bytes [17:36:09]NVStorageSaveData done [17:36:09]OFDSenderStorePacket done [17:36:09]KKMCreateOFDPacket done [17:36:09]NVStorageSaveData kkm_last_timestamp [17:36:09]File name is /storage/kkm_last_timestamp [17:36:09]Write 4 bytes [17:36:09]NVStorageSaveData done [17:36:09]ExternCall_PrintAddStr [17:36:09]wPrintStart [17:36:09]Write to MH i2c: 01 00 00 15 03 18 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [17:36:09]RasterBufferAndPrint [17:36:09]line Счет N : (1)594141 [17:36:09]line ИНН: 02508201610067 [17:36:09]line Контрольно-Кассовый Чек [17:36:09]line ПРОДАЖА [17:36:09]line ТРК (МРК, ГНК) : 61 [17:36:09]line Товар: 2710124500 [17:36:09]line Аи-95-К-5 [17:36:09]line 9.440 * 74.20 [17:36:09]line = 700.45 [17:36:09]line НДС 12% НСП 1% [17:36:09]line > о реализуемом товаре [17:36:09]line ОКРУГЛЕНИЕ: -0.45 [17:36:09]line ИТОГО: 700.00 [17:36:09]line Внесено: 700.00 [17:36:09]line СДАЧА: 0.00 [17:36:09]line НСП 1% : 6.20 [17:36:09]line НДС 12% : 74.38 [17:36:09]line Наличными: 700.00 [17:36:09]line Безнал.: 0.00 [17:36:09]line Место: АЗС № 136 "Партнер Нефть" [17:36:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:36:09]line СНО: Общий режим [17:36:09]line Чек 300 21.08.2024 17:36 [17:36:09]line Смена: 454 ФФД: 1.0 [17:36:09]line ЗНМ: 0300000067 [17:36:09]line РНМ: 0000000000092569 [17:36:09]line Версия ККМ: 001 [17:36:09]line ФМ: 0000000000871776 [17:36:09]line ФД: 140283 [17:36:09]line ФПД: 20533671358442 [17:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173608&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140283&fm=20533671358442&tin=02508201610067®Number=0000000000092569&sum=70000 [17:36:10]OFD Sender: Processing packet 140283 [packets to send 137, broken 136] [17:36:10]ProducePacketName [17:36:10]name=ofd_packets/00140283 [17:36:10]OFD Sender: To server: pG, [17:36:10]CommunicateWithHost lk.salyk.kg:30040 [17:36:10]ConnectInit lk.salyk.kg [17:36:10]written 0, free lines is 4095 [17:36:10]Connected sock=10 [17:36: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 37 36 0F 01 00 00 CA 85 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 88 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FB 23 02 00 35 04 06 00 12 AC DE 2F EF EA 93 9A 2C E0 23 FF 45 49 [17:36: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 37 36 4F 00 00 00 3E 22 47 00 60 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 37 36 10 04 04 00 FB 23 02 00 F4 03 04 00 18 CC C5 66 B6 04 01 00 00 8E 62 1A 6F 31 2D C8 43 [17:36:10]CommunicateWithHost err = 0 [17:36:10]CheckOFDResponse [17:36:10]1017 (14) - 77093643461234 [17:36:10]1041 (16) - 0000000000871776 [17:36:10]1040 (4) - 140283 [17:36:10]1012 (4) - 21.08.2024 11:14 [17:36:10]1206 (1) - 0 [17:36:10]OFD Sender: Remove packet 140283 [17:36:10]ProducePacketName [17:36:10]name=ofd_packets/00140283 [17:36:10]NVStorageDeleteData [17:36:10]Write to MH i2c: 01 00 00 40 03 43 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 07 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 E6 0C 3C [17:36:10]RasterBufferAndPrint [17:36:10]line [17:36:10]line [17:36:10]line [17:36:10]line [17:36:10]line [17:36:10]written 0, free lines is 3308 [17:36:10]MH_Cut [17:36:10]Write to MH i2c: D1 01 00 47 03 01 1C [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: D1 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: D1 01 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: D1 01 00 47 03 00 1B [17:36:10]Write to MH i2c: 01 00 00 48 03 4B [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:11]OFD Sender: No OFD packet to send [17:36:11]*** Cut start [17:36:11]*** Partial cut [17:36:11]*** CUTSNS_PIN = 1 [17:36:11]*** CUTSNS_PIN = 0 [17:36:11]*** Brake cut motor [17:36:11]Read from MH i2c: 01 [17:36:11]MH_I2C_Read... [17:36:11]*** Stop cut motor [17:36:11]*** Cut end [17:36:11]Read from MH i2c: 01 07 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [17:36:11]process_action close_receipt done [17:36:11]requested_data is exist [17:36:11]produce_requested_data [17:36:11]requested_item fm.sn is exist - process it [17:36:11]wFMCommunicate request_size=4 [17:36:11]MH_SAM_APDU [17:36:11]CAPDU: 80 11 00 00 [17:36:11]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:11]Read from MH i2c: E2 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 17 00 [17:36:11]MH_I2C_Read... [17:36:11]Read from MH i2c: E2 17 00 49 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [17:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:11]wFMCommunicate OK [17:36:11]requested_item fd.num is exist - process it [17:36:11]SAM_PROTO_GetFieldsCounters [17:36:11]wFMCommunicate request_size=4 [17:36:11]MH_SAM_APDU [17:36:11]CAPDU: 80 13 00 00 [17:36:11]Write to MH i2c: E2 08 00 4A 03 80 13 00 00 00 00 00 00 C9 [17:36:11]Write i2c OK [17:36:11]MH_I2C_Read... [17:36:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:12]Read from MH i2c: E2 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 62 00 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 62 00 4A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 23 02 00 0E 04 04 00 C6 01 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 62 [17:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FB 23 02 00 0E 04 04 00 C6 01 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 [17:36:12]wFMCommunicate OK [17:36:12]SAM_PROTO_GetFieldsCounters done [17:36:12]requested_item shift.num is exist - process it [17:36:12]requested_item shift.opened is exist - process it [17:36:12]req_shift_opened [17:36:12]FM_GetShiftState [17:36:12]SAM_PROTO_GetShiftState [17:36:12]wFMCommunicate request_size=4 [17:36:12]MH_SAM_APDU [17:36:12]CAPDU: 80 13 01 00 [17:36:12]Write to MH i2c: E2 08 00 4B 03 80 13 01 00 00 00 00 00 CB [17:36:12]Write i2c OK [17:36:12]MH_I2C_Read... [17:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:12]Read from MH i2c: E2 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 0E 00 [17:36:12]MH_I2C_Read... [17:36:12]Read from MH i2c: E2 0E 00 4B 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4B [17:36:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:12]wFMCommunicate OK [17:36:12]SAM_PROTO_GetShiftState done [17:36:12]FM_GetShiftState done [17:36:12]req_shift_opened done [17:36:12]requested_item shift.open_date is exist - process it [17:36:12]req_shift_open_date [17:36:12]req_shift_open_date done [17:36:12]produce_requested_data done [17:36:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140283,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:36:12]process_action_free close_receipt [17:36:12]json_value_free [17:36:12]json_value_free done [17:36:12]process_json_proto returns [17:36:12]Send response to host [17:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140283,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:36:12]free response buf [17:36:12]execute_script done [17:36:12]execute_script returns [17:36:12]free content buf [17:36:12]Sock 7.Close socket [17:36:12]Sock 7.Thread stoped [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:33]accept exits with 9 [17:36:33]New connection [17:36:33]New thread 3067469156 created [17:36:33]Thread 3067612516 joined [17:36:33]Waiting for new connection... [17:36:33] Sock 9.Parse request [17:36:33]Sock 9.Check first char [17:36:33]Sock 9.First char is OK [17:36:33]request: POST /json_proto HTTP/1.0 [17:36:33]Method: POST [17:36:33]URL: /json_proto [17:36:33]Method is POST - this is cgi request [17:36:33]url: /json_proto [17:36:33]query_string will be loaded in cgi processing [17:36:33]execute_cgi json_proto POST (null) [17:36:33]execute_cgi path=json_proto method=POST [17:36:33]POST find Content-Length [17:36:33]Host: 172.17.45.67:8080 [17:36:33]Content-Length: 795 [17:36:33]Content-Type: application/json [17:36:33] [17:36:33]POST finish read [17:36:33]Found Content-Length = 795 [17:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:33]execute_script... [17:36: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)594140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A30104261", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:33]POST & json_proto [17:36:33]process_json_proto [17:36:33]json parsed OK: [17:36:33]protocol is kg_v1.0 [17:36:33]action value=close_receipt [17:36:33]process_action close_receipt [17:36:33]cmd_close_receipt [17:36:33]MH_GetDate [17:36:33]Write to MH i2c: F0 00 00 4C 03 3E [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: F0 09 00 4C 03 00 A2 25 C6 66 5F 7F 2B 66 A9 [17:36:33]GetLastDocTimeStamp 1724261768 [17:36:33]current date 1724261794 [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4D [17:36:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_GetShiftState done [17:36:34]FM_GetShiftState done [17:36:34]opened in 1724200467 [17:36:34]opened+sec_in_day 1724286867 [17:36:34]quantity*price = 0 [17:36:34]sum+1 = 1 [17:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 301 21.08.2024 17:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 30104261 ФМ: 0000000000871776 ФД: 140284 ФПД: 273803005703094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140284&fm=273803005703094&tin=02508201610067®Number=0000000000092569&sum=0 [17:36:35]StoreToDocumentArchive [17:36:35]shift 454 fd 140284 [17:36:35]save to /storage/0454/doc_00140284 [17:36:35]save last doc name /storage/0454/doc_00140284 to /storage/kkm_last_doc_name [17:36:35]save OK [17:36:35]Clear old archive folders... [17:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:35]tlvbuf is 00C9E220 [17:36:35]SAM_PROTO_ClearQueue [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 09 00 00 [17:36:35]Write to MH i2c: E2 08 00 5A 03 80 09 00 00 00 00 00 00 CF [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_ClearQueue done [17:36:35]KKMCreateOFDPacket [17:36:35]OFDProtocolAddRootSTLVToBuf [17:36:35]FM_MakeSignedData [17:36:35]FM_MakeSignedData [17:36:35]SAM_PROTO_SignData [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 01 02 [17:36:35]Write to MH i2c: E2 08 00 5B 03 80 0D 01 02 00 00 00 00 D7 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=255 [17:36:35]MH_SAM_APDU [17: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 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 2D 01 00 00 F4 03 04 00 A2 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 23 02 00 35 04 06 00 F9 [17:36:35]Write to MH i2c: E2 02 01 5C 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 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 2D 01 00 00 F4 03 04 00 A2 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 23 02 00 35 04 06 00 F9 00 00 5B [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=10 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 05 05 BA E4 B3 B6 [17:36:35]Write to MH i2c: E2 0D 00 5D 03 80 0D 02 02 05 00 05 BA E4 B3 B6 00 00 F0 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 03 02 [17:36:35]Write to MH i2c: E2 08 00 5E 03 80 0D 03 02 00 00 00 00 DC [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 0B 00 5E 03 00 E3 9E 9C 6E 2E A0 6F 2A 90 00 CF [17:36:35]RAPDU: E3 9E 9C 6E 2E A0 6F 2A 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_SignData done [17:36:35]FM_MakeSignedData done [17:36:35]CreateOFDProtocolMessage [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 11 00 00 [17:36:35]Write to MH i2c: E2 08 00 5F 03 80 11 00 00 00 00 00 00 DC [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 17 00 5F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [17:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:35]wFMCommunicate OK [17:36:35]CreateOFDProtocolMessage done [17:36:35]OFDSenderStorePacket 140284 [17:36:35]StoreOFDPacket docnum=140284 [17:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 67 50 07 01 66 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 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 2D 01 00 00 F4 03 04 00 A2 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 23 02 00 35 04 06 00 F9 05 BA E4 B3 B6 E3 9E 9C 6E 2E A0 6F 2A [17:36:35]CheckFolder [17:36:35]dirname=/storage/ofd_packets [17:36:35]CheckFolder done [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00140284 [17:36:35]NVStorageSaveData ofd_packets/00140284 [17:36:35]File name is /storage/ofd_packets/00140284 [17:36:35]Write 301 bytes [17:36:35]NVStorageSaveData done [17:36:35]OFDSenderStorePacket done [17:36:35]KKMCreateOFDPacket done [17:36:35]NVStorageSaveData kkm_last_timestamp [17:36:35]File name is /storage/kkm_last_timestamp [17:36:35]Write 4 bytes [17:36:35]NVStorageSaveData done [17:36:35]ExternCall_PrintAddStr [17:36:35]wPrintStart [17:36:35]Write to MH i2c: 01 00 00 60 03 63 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 60 03 00 00 00 00 00 FF 0F 78 [17:36:35]RasterBufferAndPrint [17:36:35]line Счет N : (1)594140 [17:36:35]line ИНН: 02508201610067 [17:36:35]line Контрольно-Кассовый Чек [17:36:35]line ПРОДАЖА [17:36:35]line ТРК (МРК, ГНК) : 52 [17:36:35]line Товар: 2710124130 [17:36:35]line Аи-92-К-5 [17:36:35]line 20.000 * 0.00 [17:36:35]line = 0.00 [17:36:35]line НДС 12% НСП 1% [17:36:35]line > о реализуемом товаре [17:36:35]line ИТОГО: 0.00 [17:36:35]line НСП 1% : 0.00 [17:36:35]line НДС 12% : 0.00 [17:36:35]line Наличными: 0.00 [17:36:35]line Безнал.: 0.00 [17:36:35]line Место: АЗС № 136 "Партнер Нефть" [17:36:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:36:35]line СНО: Общий режим [17:36:35]line Чек 301 21.08.2024 17:36 [17:36:35]line Смена: 454 ФФД: 1.0 [17:36:35]line ЗНМ: 0300000067 [17:36:35]line РНМ: 0000000000092569 [17:36:35]line Версия ККМ: 001 [17:36:35]line Талоны: Топливная Карта [17:36:35]line 30104261 [17:36:35]line ФМ: 0000000000871776 [17:36:35]line ФД: 140284 [17:36:35]line ФПД: 273803005703094 [17:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140284&fm=273803005703094&tin=02508201610067®Number=0000000000092569&sum=0 [17:36:35]written 0, free lines is 4095 [17:36:35]OFD Sender: Processing packet 140284 [packets to send 137, broken 136] [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00140284 [17:36:35]OFD Sender: To server: pG, [17:36:35]CommunicateWithHost lk.salyk.kg:30040 [17:36:35]ConnectInit lk.salyk.kg [17:36:35]Connected sock=10 [17:36: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 37 36 0F 01 00 00 67 50 07 01 66 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 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 2D 01 00 00 F4 03 04 00 A2 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FC 23 02 00 35 04 06 00 F9 05 BA E4 B3 B6 E3 9E 9C 6E 2E A0 6F 2A [17: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 37 36 4F 00 00 00 16 C5 47 00 F1 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 37 36 10 04 04 00 FC 23 02 00 F4 03 04 00 32 CC C5 66 B6 04 01 00 00 A7 B8 E9 F0 30 CC 3F 44 [17:36:36]CommunicateWithHost err = 0 [17:36:36]CheckOFDResponse [17:36:36]1017 (14) - 77093643461234 [17:36:36]1041 (16) - 0000000000871776 [17:36:36]1040 (4) - 140284 [17:36:36]1012 (4) - 21.08.2024 11:14 [17:36:36]1206 (1) - 0 [17:36:36]OFD Sender: Remove packet 140284 [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00140284 [17:36:36]NVStorageDeleteData [17:36:36]Write to MH i2c: 01 00 00 8A 03 8D [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FB 0C 9B [17:36:36]RasterBufferAndPrint [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]written 0, free lines is 3330 [17:36:36]MH_Cut [17:36:36]Write to MH i2c: D1 01 00 91 03 01 66 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 91 03 00 65 [17:36:36]Write to MH i2c: 01 00 00 92 03 95 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]OFD Sender: No OFD packet to send [17:36:36]*** Cut start [17:36:36]*** Partial cut [17:36:36]*** CUTSNS_PIN = 1 [17:36:36]*** CUTSNS_PIN = 0 [17:36:37]*** Brake cut motor [17:36:37]Read from MH i2c: 01 [17:36:37]MH_I2C_Read... [17:36:37]*** Stop cut motor [17:36:37]*** Cut end [17:36:37]Read from MH i2c: 01 07 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 FF 0F AA [17:36:37]process_action close_receipt done [17:36:37]requested_data is exist [17:36:37]produce_requested_data [17:36:37]requested_item fm.sn is exist - process it [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 11 00 00 [17:36:37]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 67 [17:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:37]wFMCommunicate OK [17:36:37]requested_item fd.num is exist - process it [17:36:37]SAM_PROTO_GetFieldsCounters [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 00 00 [17:36:37]Write to MH i2c: E2 08 00 94 03 80 13 00 00 00 00 00 00 13 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 62 00 94 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 23 02 00 0E 04 04 00 C6 01 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 B0 [17:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FC 23 02 00 0E 04 04 00 C6 01 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 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetFieldsCounters done [17:36:37]requested_item shift.num is exist - process it [17:36:37]requested_item shift.opened is exist - process it [17:36:37]req_shift_opened [17:36:37]FM_GetShiftState [17:36:37]SAM_PROTO_GetShiftState [17:36:37]wFMCommunicate request_size=4 [17:36:37]MH_SAM_APDU [17:36:37]CAPDU: 80 13 01 00 [17:36:37]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [17:36:37]Write i2c OK [17:36:37]MH_I2C_Read... [17:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:37]Read from MH i2c: E2 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 [17:36:37]MH_I2C_Read... [17:36:37]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 95 [17:36:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:37]wFMCommunicate OK [17:36:37]SAM_PROTO_GetShiftState done [17:36:37]FM_GetShiftState done [17:36:37]req_shift_opened done [17:36:37]requested_item shift.open_date is exist - process it [17:36:37]req_shift_open_date [17:36:37]req_shift_open_date done [17:36:37]produce_requested_data done [17:36:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140284,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:36:37]process_action_free close_receipt [17:36:37]json_value_free [17:36:37]json_value_free done [17:36:37]process_json_proto returns [17:36:37]Send response to host [17:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140284,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:36:37]free response buf [17:36:37]execute_script done [17:36:37]execute_script returns [17:36:37]free content buf [17:36:37]Sock 9.Close socket [17:36:37]Sock 9.Thread stoped [17:36:41]OFD Sender: No OFD packet to send [17:36:42]accept exits with 7 [17:36:42]New connection [17:36:42]New thread 3067612516 created [17:36:42]Thread 3067469156 joined [17:36:42]Waiting for new connection... [17:36:42] Sock 7.Parse request [17:36:42]Sock 7.Check first char [17:36:42]Sock 7.First char is OK [17:36:42]request: POST /json_proto HTTP/1.0 [17:36:42]Method: POST [17:36:42]URL: /json_proto [17:36:42]Method is POST - this is cgi request [17:36:42]url: /json_proto [17:36:42]query_string will be loaded in cgi processing [17:36:42]execute_cgi json_proto POST (null) [17:36:42]execute_cgi path=json_proto method=POST [17:36:42]POST find Content-Length [17:36:42]Host: 172.17.45.67:8080 [17:36:42]Content-Length: 754 [17:36:42]Content-Type: application/json [17:36:42] [17:36:42]POST finish read [17:36:42]Found Content-Length = 754 [17:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:42]execute_script... [17: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)594142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:42]POST & json_proto [17:36:42]process_json_proto [17:36:42]json parsed OK: [17:36:42]protocol is kg_v1.0 [17:36:42]action value=close_receipt [17:36:42]process_action close_receipt [17:36:42]cmd_close_receipt [17:36:42]MH_GetDate [17:36:42]Write to MH i2c: F0 00 00 96 03 88 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: F0 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: F0 09 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: F0 09 00 96 03 00 AA 25 C6 66 5F 7F 2B 66 FB [17:36:42]GetLastDocTimeStamp 1724261794 [17:36:42]current date 1724261802 [17:36:42]FM_GetShiftState [17:36:42]SAM_PROTO_GetShiftState [17:36:42]wFMCommunicate request_size=4 [17:36:42]MH_SAM_APDU [17:36:42]CAPDU: 80 13 01 00 [17:36:42]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [17:36:42]Write i2c OK [17:36:42]MH_I2C_Read... [17:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:42]Read from MH i2c: E2 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0E 00 [17:36:42]MH_I2C_Read... [17:36:42]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 97 [17:36:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:42]wFMCommunicate OK [17:36:42]SAM_PROTO_GetShiftState done [17:36:42]FM_GetShiftState done [17:36:42]opened in 1724200467 [17:36:42]opened+sec_in_day 1724286867 [17:36:42]quantity*price = 0 [17:36:42]sum+1 = 1 [17:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 302 21.08.2024 17:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30157244 ФМ: 0000000000871776 ФД: 140285 ФПД: 268812309790962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140285&fm=268812309790962&tin=02508201610067®Number=0000000000092569&sum=0 [17:36:43]StoreToDocumentArchive [17:36:43]shift 454 fd 140285 [17:36:43]save to /storage/0454/doc_00140285 [17:36:43]save last doc name /storage/0454/doc_00140285 to /storage/kkm_last_doc_name [17:36:43]save OK [17:36:43]Clear old archive folders... [17:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:43]tlvbuf is 00C39F90 [17:36:43]SAM_PROTO_ClearQueue [17:36:43]wFMCommunicate request_size=4 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 09 00 00 [17:36:43]Write to MH i2c: E2 08 00 A4 03 80 09 00 00 00 00 00 00 19 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [17:36:43]RAPDU: 90 00 [17:36:43]wFMCommunicate OK [17:36:43]SAM_PROTO_ClearQueue done [17:36:43]KKMCreateOFDPacket [17:36:43]OFDProtocolAddRootSTLVToBuf [17:36:43]FM_MakeSignedData [17:36:43]FM_MakeSignedData [17:36:43]SAM_PROTO_SignData [17:36:43]wFMCommunicate request_size=4 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 0D 01 02 [17:36:43]Write to MH i2c: E2 08 00 A5 03 80 0D 01 02 00 00 00 00 21 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [17:36:43]RAPDU: 90 00 [17:36:43]wFMCommunicate OK [17:36:43]wFMCommunicate request_size=255 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AB 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 23 02 00 35 04 06 00 F4 [17:36:43]Write to MH i2c: E2 02 01 A6 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AB 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 23 02 00 35 04 06 00 F4 00 00 74 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [17:36:43]RAPDU: 90 00 [17:36:43]wFMCommunicate OK [17:36:43]wFMCommunicate request_size=10 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 0D 02 02 05 7B BE 3C 80 F2 [17:36:43]Write to MH i2c: E2 0D 00 A7 03 80 0D 02 02 05 00 7B BE 3C 80 F2 00 00 15 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [17:36:43]RAPDU: 90 00 [17:36:43]wFMCommunicate OK [17:36:43]wFMCommunicate request_size=4 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 0D 03 02 [17:36:43]Write to MH i2c: E2 08 00 A8 03 80 0D 03 02 00 00 00 00 26 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 0B 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 0B 00 A8 03 00 DD B2 E4 7A AA 09 0A 84 90 00 55 [17:36:43]RAPDU: DD B2 E4 7A AA 09 0A 84 90 00 [17:36:43]wFMCommunicate OK [17:36:43]SAM_PROTO_SignData done [17:36:43]FM_MakeSignedData done [17:36:43]CreateOFDProtocolMessage [17:36:43]wFMCommunicate request_size=4 [17:36:43]MH_SAM_APDU [17:36:43]CAPDU: 80 11 00 00 [17:36:43]Write to MH i2c: E2 08 00 A9 03 80 11 00 00 00 00 00 00 26 [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:43]Read from MH i2c: E2 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 17 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: E2 17 00 A9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7D [17:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:43]wFMCommunicate OK [17:36:43]CreateOFDProtocolMessage done [17:36:43]OFDSenderStorePacket 140285 [17:36:43]StoreOFDPacket docnum=140285 [17:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 63 07 01 86 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AB 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 23 02 00 35 04 06 00 F4 7B BE 3C 80 F2 DD B2 E4 7A AA 09 0A 84 [17:36:43]CheckFolder [17:36:43]dirname=/storage/ofd_packets [17:36:43]CheckFolder done [17:36:43]ProducePacketName [17:36:43]name=ofd_packets/00140285 [17:36:43]NVStorageSaveData ofd_packets/00140285 [17:36:43]File name is /storage/ofd_packets/00140285 [17:36:43]Write 301 bytes [17:36:43]NVStorageSaveData done [17:36:43]OFDSenderStorePacket done [17:36:43]KKMCreateOFDPacket done [17:36:43]NVStorageSaveData kkm_last_timestamp [17:36:43]File name is /storage/kkm_last_timestamp [17:36:43]Write 4 bytes [17:36:43]NVStorageSaveData done [17:36:43]ExternCall_PrintAddStr [17:36:43]wPrintStart [17:36:43]Write to MH i2c: 01 00 00 AA 03 AD [17:36:43]Write i2c OK [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 07 00 [17:36:43]MH_I2C_Read... [17:36:43]Read from MH i2c: 01 07 00 AA 03 00 00 00 00 00 FF 0F C2 [17:36:43]RasterBufferAndPrint [17:36:43]line Счет N : (1)594142 [17:36:43]line ИНН: 02508201610067 [17:36:43]line Контрольно-Кассовый Чек [17:36:43]line ПРОДАЖА [17:36:43]line ТРК (МРК, ГНК) : 42 [17:36:43]line Товар: 2710124130 [17:36:43]line Аи-92-К-5 [17:36:43]line 10.000 * 0.00 [17:36:43]line = 0.00 [17:36:43]line НДС 12% НСП 1% [17:36:43]line > о реализуемом товаре [17:36:43]line ИТОГО: 0.00 [17:36:43]line НСП 1% : 0.00 [17:36:43]line НДС 12% : 0.00 [17:36:43]line Наличными: 0.00 [17:36:43]line Безнал.: 0.00 [17:36:43]line Место: АЗС № 136 "Партнер Нефть" [17:36:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:36:43]line СНО: Общий режим [17:36:43]line Чек 302 21.08.2024 17:36 [17:36:43]line Смена: 454 ФФД: 1.0 [17:36:43]line ЗНМ: 0300000067 [17:36:43]line РНМ: 0000000000092569 [17:36:44]line Версия ККМ: 001 [17:36:44]line Талоны: ТК ГПНА Online [17:36:44]line 30157244 [17:36:44]line ФМ: 0000000000871776 [17:36:44]line ФД: 140285 [17:36:44]line ФПД: 268812309790962 [17:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140285&fm=268812309790962&tin=02508201610067®Number=0000000000092569&sum=0 [17:36:44]OFD Sender: Processing packet 140285 [packets to send 137, broken 136] [17:36:44]ProducePacketName [17:36:44]name=ofd_packets/00140285 [17:36:44]OFD Sender: To server: pG, [17:36:44]CommunicateWithHost lk.salyk.kg:30040 [17:36:44]ConnectInit lk.salyk.kg [17:36:44]written 0, free lines is 4095 [17:36:44]Connected sock=10 [17: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 37 36 0F 01 00 00 D0 63 07 01 86 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 AB 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FD 23 02 00 35 04 06 00 F4 7B BE 3C 80 F2 DD B2 E4 7A AA 09 0A 84 [17: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 37 36 4F 00 00 00 0B EB 47 00 46 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 37 36 10 04 04 00 FD 23 02 00 F4 03 04 00 3B CC C5 66 B6 04 01 00 00 CE 56 B1 08 30 DC 13 E0 [17:36:44]CommunicateWithHost err = 0 [17:36:44]CheckOFDResponse [17:36:44]1017 (14) - 77093643461234 [17:36:44]1041 (16) - 0000000000871776 [17:36:44]1040 (4) - 140285 [17:36:44]1012 (4) - 21.08.2024 11:15 [17:36:44]1206 (1) - 0 [17:36:44]OFD Sender: Remove packet 140285 [17:36:44]ProducePacketName [17:36:44]name=ofd_packets/00140285 [17:36:44]NVStorageDeleteData [17:36:44]Write to MH i2c: 01 00 00 D4 03 D7 [17:36:44]Write i2c OK [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: 01 [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: 01 07 00 [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 E7 0C D1 [17:36:44]RasterBufferAndPrint [17:36:44]line [17:36:44]line [17:36:44]line [17:36:44]line [17:36:44]line [17:36:44]written 0, free lines is 3313 [17:36:44]MH_Cut [17:36:44]Write to MH i2c: D1 01 00 DB 03 01 B0 [17:36:44]Write i2c OK [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: D1 [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: D1 01 00 [17:36:44]MH_I2C_Read... [17:36:44]Read from MH i2c: D1 01 00 DB 03 00 AF [17:36:44]Write to MH i2c: 01 00 00 DC 03 DF [17:36:44]Write i2c OK [17:36:44]MH_I2C_Read... [17:36:45]OFD Sender: No OFD packet to send [17:36:45]*** Cut start [17:36:45]*** Partial cut [17:36:45]*** CUTSNS_PIN = 1 [17:36:45]*** CUTSNS_PIN = 0 [17:36:45]*** Brake cut motor [17:36:46]Read from MH i2c: 01 [17:36:46]MH_I2C_Read... [17:36:46]*** Stop cut motor [17:36:46]*** Cut end [17:36:46]Read from MH i2c: 01 07 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [17:36:46]process_action close_receipt done [17:36:46]requested_data is exist [17:36:46]produce_requested_data [17:36:46]requested_item fm.sn is exist - process it [17:36:46]wFMCommunicate request_size=4 [17:36:46]MH_SAM_APDU [17:36:46]CAPDU: 80 11 00 00 [17:36:46]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [17:36:46]Write i2c OK [17:36:46]MH_I2C_Read... [17:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:46]Read from MH i2c: E2 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 17 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B1 [17:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:46]wFMCommunicate OK [17:36:46]requested_item fd.num is exist - process it [17:36:46]SAM_PROTO_GetFieldsCounters [17:36:46]wFMCommunicate request_size=4 [17:36:46]MH_SAM_APDU [17:36:46]CAPDU: 80 13 00 00 [17:36:46]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [17:36:46]Write i2c OK [17:36:46]MH_I2C_Read... [17:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:46]Read from MH i2c: E2 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 62 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 62 00 DE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 23 02 00 0E 04 04 00 C6 01 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 FE [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FD 23 02 00 0E 04 04 00 C6 01 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 [17:36:46]wFMCommunicate OK [17:36:46]SAM_PROTO_GetFieldsCounters done [17:36:46]requested_item shift.num is exist - process it [17:36:46]requested_item shift.opened is exist - process it [17:36:46]req_shift_opened [17:36:46]FM_GetShiftState [17:36:46]SAM_PROTO_GetShiftState [17:36:46]wFMCommunicate request_size=4 [17:36:46]MH_SAM_APDU [17:36:46]CAPDU: 80 13 01 00 [17:36:46]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [17:36:46]Write i2c OK [17:36:46]MH_I2C_Read... [17:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:46]Read from MH i2c: E2 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DF [17:36:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:46]wFMCommunicate OK [17:36:46]SAM_PROTO_GetShiftState done [17:36:46]FM_GetShiftState done [17:36:46]req_shift_opened done [17:36:46]requested_item shift.open_date is exist - process it [17:36:46]req_shift_open_date [17:36:46]req_shift_open_date done [17:36:46]produce_requested_data done [17:36:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140285,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:36:46]process_action_free close_receipt [17:36:46]json_value_free [17:36:46]json_value_free done [17:36:46]process_json_proto returns [17:36:46]Send response to host [17:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140285,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:36:46]free response buf [17:36:46]execute_script done [17:36:46]execute_script returns [17:36:46]free content buf [17:36:46]Sock 7.Close socket [17:36:46]Sock 7.Thread stoped [17:36:46]accept exits with 9 [17:36:46]New connection [17:36:46]New thread 3067469156 created [17:36:46]Thread 3067612516 joined [17:36:46]Waiting for new connection... [17:36:46] Sock 9.Parse request [17:36:46]Sock 9.Check first char [17:36:46]Sock 9.First char is OK [17:36:46]request: POST /json_proto HTTP/1.0 [17:36:46]Method: POST [17:36:46]URL: /json_proto [17:36:46]Method is POST - this is cgi request [17:36:46]url: /json_proto [17:36:46]query_string will be loaded in cgi processing [17:36:46]execute_cgi json_proto POST (null) [17:36:46]execute_cgi path=json_proto method=POST [17:36:46]POST find Content-Length [17:36:46]Host: 172.17.45.67:8080 [17:36:46]Content-Length: 677 [17:36:46]Content-Type: application/json [17:36:46] [17:36:46]POST finish read [17:36:46]Found Content-Length = 677 [17:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:46]execute_script... [17:36: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)594143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:46]POST & json_proto [17:36:46]process_json_proto [17:36:46]json parsed OK: [17:36:46]protocol is kg_v1.0 [17:36:46]action value=close_receipt [17:36:46]process_action close_receipt [17:36:46]cmd_close_receipt [17:36:46]MH_GetDate [17:36:46]Write to MH i2c: F0 00 00 E0 03 D2 [17:36:46]Write i2c OK [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: F0 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: F0 09 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: F0 09 00 E0 03 00 AE 25 C6 66 5F 7F 2B 66 49 [17:36:46]GetLastDocTimeStamp 1724261803 [17:36:46]current date 1724261806 [17:36:46]FM_GetShiftState [17:36:46]SAM_PROTO_GetShiftState [17:36:46]wFMCommunicate request_size=4 [17:36:46]MH_SAM_APDU [17:36:46]CAPDU: 80 13 01 00 [17:36:46]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [17:36:46]Write i2c OK [17:36:46]MH_I2C_Read... [17:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:46]Read from MH i2c: E2 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 [17:36:46]MH_I2C_Read... [17:36:46]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E1 [17:36:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:46]wFMCommunicate OK [17:36:46]SAM_PROTO_GetShiftState done [17:36:46]FM_GetShiftState done [17:36:46]opened in 1724200467 [17:36:46]opened+sec_in_day 1724286867 [17:36:46]quantity*price = 50036 [17:36:46]sum+1 = 50037 [17:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 303 21.08.2024 17:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140286 ФПД: 265514733137928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173647&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140286&fm=265514733137928&tin=02508201610067®Number=0000000000092569&sum=50000 [17:36:47]StoreToDocumentArchive [17:36:47]shift 454 fd 140286 [17:36:47]save to /storage/0454/doc_00140286 [17:36:47]save last doc name /storage/0454/doc_00140286 to /storage/kkm_last_doc_name [17:36:47]save OK [17:36:47]Clear old archive folders... [17:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:47]tlvbuf is 00C836F0 [17:36:47]SAM_PROTO_ClearQueue [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 09 00 00 [17:36:47]Write to MH i2c: E2 08 00 EE 03 80 09 00 00 00 00 00 00 63 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]SAM_PROTO_ClearQueue done [17:36:47]KKMCreateOFDPacket [17:36:47]OFDProtocolAddRootSTLVToBuf [17:36:47]FM_MakeSignedData [17:36:47]FM_MakeSignedData [17:36:47]SAM_PROTO_SignData [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 0D 01 02 [17:36:47]Write to MH i2c: E2 08 00 EF 03 80 0D 01 02 00 00 00 00 6B [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [17:36:47]RAPDU: 90 00 [17:36:47]wFMCommunicate OK [17:36:47]wFMCommunicate request_size=255 [17:36:47]MH_SAM_APDU [17:36: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AF 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 23 02 00 35 04 06 00 F1 [17:36:47]Write to MH i2c: E2 02 01 F0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AF 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 23 02 00 35 04 06 00 F1 00 00 FF [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=10 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 02 02 05 7B F7 59 F0 08 [17:36:48]Write to MH i2c: E2 0D 00 F1 03 80 0D 02 02 05 00 7B F7 59 F0 08 00 00 3B [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 03 02 [17:36:48]Write to MH i2c: E2 08 00 F2 03 80 0D 03 02 00 00 00 00 70 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 F2 03 00 6D 1E D5 43 F3 3D 27 F8 90 00 63 [17:36:48]RAPDU: 6D 1E D5 43 F3 3D 27 F8 90 00 [17:36:48]wFMCommunicate OK [17:36:48]SAM_PROTO_SignData done [17:36:48]FM_MakeSignedData done [17:36:48]CreateOFDProtocolMessage [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 11 00 00 [17:36:48]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C7 [17:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:48]wFMCommunicate OK [17:36:48]CreateOFDProtocolMessage done [17:36:48]OFDSenderStorePacket 140286 [17:36:48]StoreOFDPacket docnum=140286 [17:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 C9 07 01 3B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AF 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 23 02 00 35 04 06 00 F1 7B F7 59 F0 08 6D 1E D5 43 F3 3D 27 F8 [17:36:48]CheckFolder [17:36:48]dirname=/storage/ofd_packets [17:36:48]CheckFolder done [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00140286 [17:36:48]NVStorageSaveData ofd_packets/00140286 [17:36:48]File name is /storage/ofd_packets/00140286 [17:36:48]Write 301 bytes [17:36:48]NVStorageSaveData done [17:36:48]OFDSenderStorePacket done [17:36:48]KKMCreateOFDPacket done [17:36:48]NVStorageSaveData kkm_last_timestamp [17:36:48]File name is /storage/kkm_last_timestamp [17:36:48]Write 4 bytes [17:36:48]NVStorageSaveData done [17:36:48]ExternCall_PrintAddStr [17:36:48]wPrintStart [17:36:48]Write to MH i2c: 01 00 00 F4 03 F7 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 [17:36:48]MH_I2C_Read... [17:36:48]OFD Sender: Processing packet 140286 [packets to send 137, broken 136] [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00140286 [17:36:48]OFD Sender: To server: pG, [17:36:48]CommunicateWithHost lk.salyk.kg:30040 [17:36:48]ConnectInit lk.salyk.kg [17:36:48]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [17:36:48]RasterBufferAndPrint [17:36:48]line Счет N : (1)594143 [17:36:48]line ИНН: 02508201610067 [17:36:48]line Контрольно-Кассовый Чек [17:36:48]line ПРОДАЖА [17:36:48]line ТРК (МРК, ГНК) : 32 [17:36:48]line Товар: 2710124130 [17:36:48]line Аи-92-К-5 [17:36:48]line 7.380 * 67.80 [17:36:48]line = 500.36 [17:36:48]line НДС 12% НСП 1% [17:36:48]line > о реализуемом товаре [17:36:48]line ОКРУГЛЕНИЕ: -0.36 [17:36:48]line ИТОГО: 500.00 [17:36:48]line Внесено: 500.00 [17:36:48]line СДАЧА: 0.00 [17:36:48]line НСП 1% : 4.43 [17:36:48]line НДС 12% : 53.14 [17:36:48]line Наличными: 500.00 [17:36:48]line Безнал.: 0.00 [17:36:48]line Место: АЗС № 136 "Партнер Нефть" [17:36:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:36:48]line СНО: Общий режим [17:36:48]line Чек 303 21.08.2024 17:36 [17:36:48]line Смена: 454 ФФД: 1.0 [17:36:48]line ЗНМ: 0300000067 [17:36:48]line РНМ: 0000000000092569 [17:36:48]line Версия ККМ: 001 [17:36:48]line ФМ: 0000000000871776 [17:36:48]line ФД: 140286 [17:36:48]line ФПД: 265514733137928 [17:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173647&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140286&fm=265514733137928&tin=02508201610067®Number=0000000000092569&sum=50000 [17:36:48]Connected sock=11 [17:36: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 37 36 0F 01 00 00 19 C9 07 01 3B 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 AF 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FE 23 02 00 35 04 06 00 F1 7B F7 59 F0 08 6D 1E D5 43 F3 3D 27 F8 [17:36:49]written 0, free lines is 4095 [17:36: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 37 36 4F 00 00 00 CA B9 47 00 28 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 37 36 10 04 04 00 FE 23 02 00 F4 03 04 00 3F CC C5 66 B6 04 01 00 00 C7 1B E3 95 6E 60 51 4A [17:36:49]CommunicateWithHost err = 0 [17:36:49]CheckOFDResponse [17:36:49]1017 (14) - 77093643461234 [17:36:49]1041 (16) - 0000000000871776 [17:36:49]1040 (4) - 140286 [17:36:49]1012 (4) - 21.08.2024 11:15 [17:36:49]1206 (1) - 0 [17:36:49]OFD Sender: Remove packet 140286 [17:36:49]ProducePacketName [17:36:49]name=ofd_packets/00140286 [17:36:49]NVStorageDeleteData [17:36:49]Write to MH i2c: 01 00 00 1F 04 23 [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 D9 0C 0F [17:36:49]RasterBufferAndPrint [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]written 0, free lines is 3308 [17:36:49]MH_Cut [17:36:49]Write to MH i2c: D1 01 00 26 04 01 FC [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 26 04 00 FB [17:36:49]Write to MH i2c: 01 00 00 27 04 2B [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]OFD Sender: No OFD packet to send [17:36:50]*** Cut start [17:36:50]*** Partial cut [17:36:50]*** CUTSNS_PIN = 1 [17:36:50]*** CUTSNS_PIN = 0 [17:36:50]*** Brake cut motor [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]*** Stop cut motor [17:36:50]*** Cut end [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [17:36:50]process_action close_receipt done [17:36:50]requested_data is exist [17:36:50]produce_requested_data [17:36:50]requested_item fm.sn is exist - process it [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 11 00 00 [17:36:50]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [17:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:36:50]wFMCommunicate OK [17:36:50]requested_item fd.num is exist - process it [17:36:50]SAM_PROTO_GetFieldsCounters [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 00 00 [17:36:50]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 62 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 62 00 29 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 23 02 00 0E 04 04 00 C6 01 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 4E [17:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FE 23 02 00 0E 04 04 00 C6 01 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 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetFieldsCounters done [17:36:51]requested_item shift.num is exist - process it [17:36:51]requested_item shift.opened is exist - process it [17:36:51]req_shift_opened [17:36:51]FM_GetShiftState [17:36:51]SAM_PROTO_GetShiftState [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 13 01 00 [17:36:51]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2B [17:36:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetShiftState done [17:36:51]FM_GetShiftState done [17:36:51]req_shift_opened done [17:36:51]requested_item shift.open_date is exist - process it [17:36:51]req_shift_open_date [17:36:51]req_shift_open_date done [17:36:51]produce_requested_data done [17:36:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140286,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:36:51]process_action_free close_receipt [17:36:51]json_value_free [17:36:51]json_value_free done [17:36:51]process_json_proto returns [17:36:51]Send response to host [17:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140286,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:36:51]free response buf [17:36:51]execute_script done [17:36:51]execute_script returns [17:36:51]free content buf [17:36:51]Sock 9.Close socket [17:36:51]Sock 9.Thread stoped [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]accept exits with 7 [17:37:24]New connection [17:37:24]New thread 3067612516 created [17:37:24]Thread 3067469156 joined [17:37:24]Waiting for new connection... [17:37:24] Sock 7.Parse request [17:37:24]Sock 7.Check first char [17:37:24]Sock 7.First char is OK [17:37:24]request: POST /json_proto HTTP/1.0 [17:37:24]Method: POST [17:37:24]URL: /json_proto [17:37:24]Method is POST - this is cgi request [17:37:24]url: /json_proto [17:37:24]query_string will be loaded in cgi processing [17:37:24]execute_cgi json_proto POST (null) [17:37:24]execute_cgi path=json_proto method=POST [17:37:24]POST find Content-Length [17:37:24]Host: 172.17.45.67:8080 [17:37:24]Content-Length: 677 [17:37:24]Content-Type: application/json [17:37:24] [17:37:24]POST finish read [17:37:24]Found Content-Length = 677 [17:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.800, "sum" : 122.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 122.00, "total" : 122.00, "payments": [ { "type": 0, "sum" : 122.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:24]execute_script... [17:37: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)594144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.800, "sum" : 122.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 122.00, "total" : 122.00, "payments": [ { "type": 0, "sum" : 122.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:24]POST & json_proto [17:37:24]process_json_proto [17:37:24]json parsed OK: [17:37:24]protocol is kg_v1.0 [17:37:24]action value=close_receipt [17:37:24]process_action close_receipt [17:37:24]cmd_close_receipt [17:37:24]MH_GetDate [17:37:24]Write to MH i2c: F0 00 00 2B 04 1E [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 09 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: F0 09 00 2B 04 00 D4 25 C6 66 5F 7F 2B 66 BB [17:37:24]GetLastDocTimeStamp 1724261807 [17:37:24]current date 1724261844 [17:37:24]FM_GetShiftState [17:37:24]SAM_PROTO_GetShiftState [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 13 01 00 [17:37:24]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2D [17:37:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_GetShiftState done [17:37:24]FM_GetShiftState done [17:37:24]opened in 1724200467 [17:37:24]opened+sec_in_day 1724286867 [17:37:24]quantity*price = 12204 [17:37:24]sum+1 = 12205 [17:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 122.00 Внесено: 122.00 СДАЧА: 0.00 НСП 1% : 1.08 НДС 12% : 12.96 Наличными: 122.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 304 21.08.2024 17:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140287 ФПД: 18814196971015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140287&fm=18814196971015&tin=02508201610067®Number=0000000000092569&sum=12200 [17:37:25]StoreToDocumentArchive [17:37:25]shift 454 fd 140287 [17:37:25]save to /storage/0454/doc_00140287 [17:37:25]save last doc name /storage/0454/doc_00140287 to /storage/kkm_last_doc_name [17:37:25]save OK [17:37:25]Clear old archive folders... [17:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:25]tlvbuf is 00CA7970 [17:37:25]SAM_PROTO_ClearQueue [17:37:25]wFMCommunicate request_size=4 [17:37:25]MH_SAM_APDU [17:37:25]CAPDU: 80 09 00 00 [17:37:25]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:25]Read from MH i2c: E2 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 03 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [17:37:25]RAPDU: 90 00 [17:37:25]wFMCommunicate OK [17:37:25]SAM_PROTO_ClearQueue done [17:37:25]KKMCreateOFDPacket [17:37:25]OFDProtocolAddRootSTLVToBuf [17:37:25]FM_MakeSignedData [17:37:25]FM_MakeSignedData [17:37:25]SAM_PROTO_SignData [17:37:25]wFMCommunicate request_size=4 [17:37:25]MH_SAM_APDU [17:37:25]CAPDU: 80 0D 01 02 [17:37:25]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:25]Read from MH i2c: E2 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 03 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [17:37:25]RAPDU: 90 00 [17:37:25]wFMCommunicate OK [17:37:25]wFMCommunicate request_size=255 [17:37:25]MH_SAM_APDU [17:37: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 08 07 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AC 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 05 00 00 00 00 07 04 06 00 A8 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D5 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 23 02 00 35 04 06 00 11 [17:37:25]Write to MH i2c: E2 02 01 3B 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 08 07 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AC 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 05 00 00 00 00 07 04 06 00 A8 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D5 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 23 02 00 35 04 06 00 11 00 00 CD [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=10 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 02 02 05 1C 85 86 F6 07 [17:37:26]Write to MH i2c: E2 0D 00 3C 04 80 0D 02 02 05 00 1C 85 86 F6 07 00 00 E8 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [17:37:26]RAPDU: 90 00 [17:37:26]wFMCommunicate OK [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 0D 03 02 [17:37:26]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0B 00 3D 04 00 D8 E4 EA C2 71 C9 2E 44 90 00 D1 [17:37:26]RAPDU: D8 E4 EA C2 71 C9 2E 44 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_SignData done [17:37:26]FM_MakeSignedData done [17:37:26]CreateOFDProtocolMessage [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 11 00 00 [17:37:26]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 13 [17:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:37:26]wFMCommunicate OK [17:37:26]CreateOFDProtocolMessage done [17:37:26]OFDSenderStorePacket 140287 [17:37:26]StoreOFDPacket docnum=140287 [17:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 27 08 07 01 F7 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 08 07 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AC 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 05 00 00 00 00 07 04 06 00 A8 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D5 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 23 02 00 35 04 06 00 11 1C 85 86 F6 07 D8 E4 EA C2 71 C9 2E 44 [17:37:26]CheckFolder [17:37:26]dirname=/storage/ofd_packets [17:37:26]CheckFolder done [17:37:26]ProducePacketName [17:37:26]name=ofd_packets/00140287 [17:37:26]NVStorageSaveData ofd_packets/00140287 [17:37:26]File name is /storage/ofd_packets/00140287 [17:37:26]Write 301 bytes [17:37:26]NVStorageSaveData done [17:37:26]OFDSenderStorePacket done [17:37:26]KKMCreateOFDPacket done [17:37:26]NVStorageSaveData kkm_last_timestamp [17:37:26]File name is /storage/kkm_last_timestamp [17:37:26]Write 4 bytes [17:37:26]NVStorageSaveData done [17:37:26]ExternCall_PrintAddStr [17:37:26]wPrintStart [17:37:26]Write to MH i2c: 01 00 00 3F 04 43 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [17:37:26]RasterBufferAndPrint [17:37:26]line Счет N : (1)594144 [17:37:26]line ИНН: 02508201610067 [17:37:26]line Контрольно-Кассовый Чек [17:37:26]line ПРОДАЖА [17:37:26]line ТРК (МРК, ГНК) : 42 [17:37:26]line Товар: 2710124130 [17:37:26]line Аи-92-К-5 [17:37:26]line 1.800 * 67.80 [17:37:26]line = 122.04 [17:37:26]line НДС 12% НСП 1% [17:37:26]line > о реализуемом товаре [17:37:26]line ОКРУГЛЕНИЕ: -0.04 [17:37:26]line ИТОГО: 122.00 [17:37:26]line Внесено: 122.00 [17:37:26]line СДАЧА: 0.00 [17:37:26]line НСП 1% : 1.08 [17:37:26]line НДС 12% : 12.96 [17:37:26]line Наличными: 122.00 [17:37:26]line Безнал.: 0.00 [17:37:26]line Место: АЗС № 136 "Партнер Нефть" [17:37:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:37:26]line СНО: Общий режим [17:37:26]line Чек 304 21.08.2024 17:37 [17:37:26]line Смена: 454 ФФД: 1.0 [17:37:26]line ЗНМ: 0300000067 [17:37:26]line РНМ: 0000000000092569 [17:37:26]line Версия ККМ: 001 [17:37:26]line ФМ: 0000000000871776 [17:37:26]line ФД: 140287 [17:37:26]line ФПД: 18814196971015 [17:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173725&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140287&fm=18814196971015&tin=02508201610067®Number=0000000000092569&sum=12200 [17:37:26]OFD Sender: Processing packet 140287 [packets to send 137, broken 136] [17:37:26]ProducePacketName [17:37:26]name=ofd_packets/00140287 [17:37:26]OFD Sender: To server: pG, [17:37:26]CommunicateWithHost lk.salyk.kg:30040 [17:37:26]ConnectInit lk.salyk.kg [17:37:26]written 0, free lines is 4095 [17:37:26]Connected sock=10 [17:37: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 37 36 0F 01 00 00 27 08 07 01 F7 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 08 07 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 AC 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 2F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 05 00 00 00 00 07 04 06 00 A8 2F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D5 25 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 FF 23 02 00 35 04 06 00 11 1C 85 86 F6 07 D8 E4 EA C2 71 C9 2E 44 [17:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 40 B4 47 00 B3 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 37 36 10 04 04 00 FF 23 02 00 F4 03 04 00 65 CC C5 66 B6 04 01 00 00 58 EC FF 0E AD 0D 18 B4 [17:37:27]CommunicateWithHost err = 0 [17:37:27]CheckOFDResponse [17:37:27]1017 (14) - 77093643461234 [17:37:27]1041 (16) - 0000000000871776 [17:37:27]1040 (4) - 140287 [17:37:27]1012 (4) - 21.08.2024 11:15 [17:37:27]1206 (1) - 0 [17:37:27]OFD Sender: Remove packet 140287 [17:37:27]ProducePacketName [17:37:27]name=ofd_packets/00140287 [17:37:27]NVStorageDeleteData [17:37:27]Write to MH i2c: 01 00 00 6A 04 6E [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 E3 0C 64 [17:37:27]RasterBufferAndPrint [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]line [17:37:27]written 0, free lines is 3305 [17:37:27]MH_Cut [17:37:27]Write to MH i2c: D1 01 00 71 04 01 47 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 [17:37:27]MH_I2C_Read... [17:37:27]Read from MH i2c: D1 01 00 71 04 00 46 [17:37:27]Write to MH i2c: 01 00 00 72 04 76 [17:37:27]Write i2c OK [17:37:27]MH_I2C_Read... [17:37:27]OFD Sender: No OFD packet to send [17:37:27]*** Cut start [17:37:27]*** Partial cut [17:37:27]*** CUTSNS_PIN = 1 [17:37:27]*** CUTSNS_PIN = 0 [17:37:28]*** Brake cut motor [17:37:28]Read from MH i2c: 01 [17:37:28]MH_I2C_Read... [17:37:28]*** Stop cut motor [17:37:28]*** Cut end [17:37:28]Read from MH i2c: 01 07 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [17:37:28]process_action close_receipt done [17:37:28]requested_data is exist [17:37:28]produce_requested_data [17:37:28]requested_item fm.sn is exist - process it [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 11 00 00 [17:37:28]Write to MH i2c: E2 08 00 73 04 80 11 00 00 00 00 00 00 F1 [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 17 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 17 00 73 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [17:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:37:28]wFMCommunicate OK [17:37:28]requested_item fd.num is exist - process it [17:37:28]SAM_PROTO_GetFieldsCounters [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 13 00 00 [17:37:28]Write to MH i2c: E2 08 00 74 04 80 13 00 00 00 00 00 00 F4 [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 62 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 62 00 74 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 23 02 00 0E 04 04 00 C6 01 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 9D [17:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 FF 23 02 00 0E 04 04 00 C6 01 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 [17:37:28]wFMCommunicate OK [17:37:28]SAM_PROTO_GetFieldsCounters done [17:37:28]requested_item shift.num is exist - process it [17:37:28]requested_item shift.opened is exist - process it [17:37:28]req_shift_opened [17:37:28]FM_GetShiftState [17:37:28]SAM_PROTO_GetShiftState [17:37:28]wFMCommunicate request_size=4 [17:37:28]MH_SAM_APDU [17:37:28]CAPDU: 80 13 01 00 [17:37:28]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [17:37:28]Write i2c OK [17:37:28]MH_I2C_Read... [17:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:28]Read from MH i2c: E2 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 [17:37:28]MH_I2C_Read... [17:37:28]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 76 [17:37:28]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:37:28]wFMCommunicate OK [17:37:28]SAM_PROTO_GetShiftState done [17:37:28]FM_GetShiftState done [17:37:28]req_shift_opened done [17:37:28]requested_item shift.open_date is exist - process it [17:37:28]req_shift_open_date [17:37:28]req_shift_open_date done [17:37:28]produce_requested_data done [17:37:28]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140287,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:37:28]process_action_free close_receipt [17:37:28]json_value_free [17:37:28]json_value_free done [17:37:28]process_json_proto returns [17:37:28]Send response to host [17:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140287,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:37:28]free response buf [17:37:28]execute_script done [17:37:28]execute_script returns [17:37:28]free content buf [17:37:28]Sock 7.Close socket [17:37:28]Sock 7.Thread stoped [17:37:32]OFD Sender: No OFD packet to send [17:37:32]int [17:37:32]Write to MH i2c: 01 00 00 76 04 7A [17:37:32]*** FLAG_PRN_PAP1 set [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 76 04 00 01 00 00 00 FF 0F 90 [17:37:32]state=0 [17:37:32]No paper [17:37:32]int [17:37:32]Write to MH i2c: 01 00 00 77 04 7B [17:37:32]*** FLAG_PRN_PAP2 set [17:37:32]Write i2c OK [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 [17:37:32]MH_I2C_Read... [17:37:32]Read from MH i2c: 01 07 00 77 04 00 03 00 00 00 FF 0F 93 [17:37:32]state=0 [17:37:32]No paper [17:37:32]Cover opened [17:37:37]OFD Sender: No OFD packet to send [17:37:37]Write to MH i2c: 01 00 00 78 04 7C [17:37:37]Write i2c OK [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 [17:37:37]MH_I2C_Read... [17:37:37]Read from MH i2c: 01 07 00 78 04 00 03 00 00 00 FF 0F 94 [17:37:37]state=3 [17:37:37]No paper [17:37:37]Cover opened [17:37:39]int [17:37:39]Write to MH i2c: 01 00 00 79 04 7D [17:37:39]*** FLAG_PRN_PAP2 reset [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 79 04 00 01 00 00 00 FF 0F 93 [17:37:39]state=3 [17:37:39]No paper [17:37:39]Cover closed [17:37:39]int [17:37:39]Write to MH i2c: 01 00 00 7A 04 7E [17:37:39]*** FLAG_PRN_PAP1 reset [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [17:37:39]state=0 [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]accept exits with 9 [17:38:22]New connection [17:38:22]New thread 3067469156 created [17:38:22]Thread 3067612516 joined [17:38:22]Waiting for new connection... [17:38:22] Sock 9.Parse request [17:38:22]Sock 9.Check first char [17:38:22]Sock 9.First char is OK [17:38:22]request: POST /json_proto HTTP/1.0 [17:38:22]Method: POST [17:38:22]URL: /json_proto [17:38:22]Method is POST - this is cgi request [17:38:22]url: /json_proto [17:38:22]query_string will be loaded in cgi processing [17:38:22]execute_cgi json_proto POST (null) [17:38:22]execute_cgi path=json_proto method=POST [17:38:22]POST find Content-Length [17:38:22]Host: 172.17.45.67:8080 [17:38:22]Content-Length: 687 [17:38:22]Content-Type: application/json [17:38:22] [17:38:22]POST finish read [17:38:22]Found Content-Length = 687 [17:38:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:38:22]execute_script... [17:38:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:38:22]POST & json_proto [17:38:22]process_json_proto [17:38:22]json parsed OK: [17:38:22]protocol is kg_v1.0 [17:38:22]action value=close_receipt [17:38:22]process_action close_receipt [17:38:22]cmd_close_receipt [17:38:22]MH_GetDate [17:38:22]Write to MH i2c: F0 00 00 7B 04 6E [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 09 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 09 00 7B 04 00 0E 26 C6 66 5F 7F 2B 66 46 [17:38:22]GetLastDocTimeStamp 1724261845 [17:38:22]current date 1724261902 [17:38:22]FM_GetShiftState [17:38:22]SAM_PROTO_GetShiftState [17:38:22]wFMCommunicate request_size=4 [17:38:22]MH_SAM_APDU [17:38:22]CAPDU: 80 13 01 00 [17:38:22]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0E 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7D [17:38:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:38:22]wFMCommunicate OK [17:38:22]SAM_PROTO_GetShiftState done [17:38:22]FM_GetShiftState done [17:38:22]opened in 1724200467 [17:38:22]opened+sec_in_day 1724286867 [17:38:22]quantity*price = 150037 [17:38:22]sum+1 = 150039 [17:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 305 21.08.2024 17:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140288 ФПД: 229932568967136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140288&fm=229932568967136&tin=02508201610067®Number=0000000000092569&sum=150000 [17:38:23]StoreToDocumentArchive [17:38:23]shift 454 fd 140288 [17:38:23]save to /storage/0454/doc_00140288 [17:38:23]save last doc name /storage/0454/doc_00140288 to /storage/kkm_last_doc_name [17:38:23]save OK [17:38:23]Clear old archive folders... [17:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:38:23]tlvbuf is 00C39AE0 [17:38:23]SAM_PROTO_ClearQueue [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 09 00 00 [17:38:23]Write to MH i2c: E2 08 00 89 04 80 09 00 00 00 00 00 00 FF [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]SAM_PROTO_ClearQueue done [17:38:23]KKMCreateOFDPacket [17:38:23]OFDProtocolAddRootSTLVToBuf [17:38:23]FM_MakeSignedData [17:38:23]FM_MakeSignedData [17:38:23]SAM_PROTO_SignData [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 01 02 [17:38:23]Write to MH i2c: E2 08 00 8A 04 80 0D 01 02 00 00 00 00 07 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]wFMCommunicate request_size=255 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 31 01 00 00 F4 03 04 00 0E 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 24 02 00 35 04 06 00 [17:38:23]Write to MH i2c: E2 02 01 8B 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 31 01 00 00 F4 03 04 00 0E 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 24 02 00 35 04 06 00 00 00 74 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=11 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 02 02 06 D1 1F 59 18 77 E0 [17:38:24]Write to MH i2c: E2 0E 00 8C 04 80 0D 02 02 06 00 D1 1F 59 18 77 E0 00 00 CE [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [17:38:24]RAPDU: 90 00 [17:38:24]wFMCommunicate OK [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 0D 03 02 [17:38:24]Write to MH i2c: E2 08 00 8D 04 80 0D 03 02 00 00 00 00 0C [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0B 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 0B 00 8D 04 00 D5 48 0F 29 A6 F2 80 B1 90 00 2B [17:38:24]RAPDU: D5 48 0F 29 A6 F2 80 B1 90 00 [17:38:24]wFMCommunicate OK [17:38:24]SAM_PROTO_SignData done [17:38:24]FM_MakeSignedData done [17:38:24]CreateOFDProtocolMessage [17:38:24]wFMCommunicate request_size=4 [17:38:24]MH_SAM_APDU [17:38:24]CAPDU: 80 11 00 00 [17:38:24]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:24]Read from MH i2c: E2 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [17:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:38:24]wFMCommunicate OK [17:38:24]CreateOFDProtocolMessage done [17:38:24]OFDSenderStorePacket 140288 [17:38:24]StoreOFDPacket docnum=140288 [17:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8E 4D 08 01 5E C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 31 01 00 00 F4 03 04 00 0E 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 24 02 00 35 04 06 00 D1 1F 59 18 77 E0 D5 48 0F 29 A6 F2 80 B1 [17:38:24]CheckFolder [17:38:24]dirname=/storage/ofd_packets [17:38:24]CheckFolder done [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00140288 [17:38:24]NVStorageSaveData ofd_packets/00140288 [17:38:24]File name is /storage/ofd_packets/00140288 [17:38:24]Write 302 bytes [17:38:24]NVStorageSaveData done [17:38:24]OFDSenderStorePacket done [17:38:24]KKMCreateOFDPacket done [17:38:24]NVStorageSaveData kkm_last_timestamp [17:38:24]File name is /storage/kkm_last_timestamp [17:38:24]Write 4 bytes [17:38:24]NVStorageSaveData done [17:38:24]ExternCall_PrintAddStr [17:38:24]wPrintStart [17:38:24]Write to MH i2c: 01 00 00 8F 04 93 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [17:38:24]RasterBufferAndPrint [17:38:24]line Счет N : (1)594145 [17:38:24]line ИНН: 02508201610067 [17:38:24]line Контрольно-Кассовый Чек [17:38:24]line ПРОДАЖА [17:38:24]line ТРК (МРК, ГНК) : 21 [17:38:24]line Товар: 2710194210 [17:38:24]line ДТ(л)-К-5 [17:38:24]line 19.690 * 76.20 [17:38:24]line = 1500.38 [17:38:24]line НДС 12% НСП 1% [17:38:24]line > о реализуемом товаре [17:38:24]line ОКРУГЛЕНИЕ: -0.38 [17:38:24]line ИТОГО: 1500.00 [17:38:24]line Внесено: 1500.00 [17:38:24]line СДАЧА: 0.00 [17:38:24]line НСП 1% : 13.28 [17:38:24]line НДС 12% : 159.33 [17:38:24]line Наличными: 1500.00 [17:38:24]line Безнал.: 0.00 [17:38:24]line Место: АЗС № 136 "Партнер Нефть" [17:38:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:38:24]line СНО: Общий режим [17:38:24]line Чек 305 21.08.2024 17:38 [17:38:24]line Смена: 454 ФФД: 1.0 [17:38:24]line ЗНМ: 0300000067 [17:38:24]line РНМ: 0000000000092569 [17:38:24]line Версия ККМ: 001 [17:38:24]line ФМ: 0000000000871776 [17:38:24]line ФД: 140288 [17:38:24]line ФПД: 229932568967136 [17:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140288&fm=229932568967136&tin=02508201610067®Number=0000000000092569&sum=150000 [17:38:24]OFD Sender: Processing packet 140288 [packets to send 137, broken 136] [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00140288 [17:38:24]OFD Sender: To server: pG, [17:38:24]CommunicateWithHost lk.salyk.kg:30040 [17:38:24]ConnectInit lk.salyk.kg [17:38:24]written 0, free lines is 4095 [17:38:24]Connected sock=10 [17:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8E 4D 08 01 5E C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 31 01 00 00 F4 03 04 00 0E 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 00 24 02 00 35 04 06 00 D1 1F 59 18 77 E0 D5 48 0F 29 A6 F2 80 B1 [17:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 98 BB 47 00 88 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 37 36 10 04 04 00 00 24 02 00 F4 03 04 00 9F CC C5 66 B6 04 01 00 00 46 10 FD 05 A3 CD 8A C4 [17:38:24]CommunicateWithHost err = 0 [17:38:24]CheckOFDResponse [17:38:24]1017 (14) - 77093643461234 [17:38:24]1041 (16) - 0000000000871776 [17:38:24]1040 (4) - 140288 [17:38:24]1012 (4) - 21.08.2024 11:16 [17:38:24]1206 (1) - 0 [17:38:24]OFD Sender: Remove packet 140288 [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00140288 [17:38:24]NVStorageDeleteData [17:38:25]Write to MH i2c: 01 00 00 BA 04 BE [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 E0 0C B1 [17:38:25]RasterBufferAndPrint [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]line [17:38:25]written 0, free lines is 3302 [17:38:25]MH_Cut [17:38:25]Write to MH i2c: D1 01 00 C1 04 01 97 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: D1 01 00 C1 04 00 96 [17:38:25]Write to MH i2c: 01 00 00 C2 04 C6 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]OFD Sender: No OFD packet to send [17:38:25]*** Cut start [17:38:25]*** Partial cut [17:38:25]*** CUTSNS_PIN = 1 [17:38:25]*** CUTSNS_PIN = 0 [17:38:25]*** Brake cut motor [17:38:26]Read from MH i2c: 01 [17:38:26]MH_I2C_Read... [17:38:26]*** Stop cut motor [17:38:26]*** Cut end [17:38:26]Read from MH i2c: 01 07 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [17:38:26]process_action close_receipt done [17:38:26]requested_data is exist [17:38:26]produce_requested_data [17:38:26]requested_item fm.sn is exist - process it [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 11 00 00 [17:38:26]Write to MH i2c: E2 08 00 C3 04 80 11 00 00 00 00 00 00 41 [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 17 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 17 00 C3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [17:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:38:26]wFMCommunicate OK [17:38:26]requested_item fd.num is exist - process it [17:38:26]SAM_PROTO_GetFieldsCounters [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 13 00 00 [17:38:26]Write to MH i2c: E2 08 00 C4 04 80 13 00 00 00 00 00 00 44 [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 C4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 24 02 00 0E 04 04 00 C6 01 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 F2 [17:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 00 24 02 00 0E 04 04 00 C6 01 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 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetFieldsCounters done [17:38:26]requested_item shift.num is exist - process it [17:38:26]requested_item shift.opened is exist - process it [17:38:26]req_shift_opened [17:38:26]FM_GetShiftState [17:38:26]SAM_PROTO_GetShiftState [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 13 01 00 [17:38:26]Write to MH i2c: E2 08 00 C5 04 80 13 01 00 00 00 00 00 46 [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 C5 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [17:38:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetShiftState done [17:38:26]FM_GetShiftState done [17:38:26]req_shift_opened done [17:38:26]requested_item shift.open_date is exist - process it [17:38:26]req_shift_open_date [17:38:26]req_shift_open_date done [17:38:26]produce_requested_data done [17:38:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140288,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:38:26]process_action_free close_receipt [17:38:26]json_value_free [17:38:26]json_value_free done [17:38:26]process_json_proto returns [17:38:26]Send response to host [17:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140288,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:38:26]free response buf [17:38:26]execute_script done [17:38:26]execute_script returns [17:38:26]free content buf [17:38:26]Sock 9.Close socket [17:38:26]Sock 9.Thread stoped [17:38:30]OFD Sender: No OFD packet to send [17:38:35]accept exits with 7 [17:38:35]New connection [17:38:35]New thread 3067612516 created [17:38:35]Thread 3067469156 joined [17:38:35]Waiting for new connection... [17:38:35] Sock 7.Parse request [17:38:35]Sock 7.Check first char [17:38:35]Sock 7.First char is OK [17:38:35]request: POST /json_proto HTTP/1.0 [17:38:35]Method: POST [17:38:35]URL: /json_proto [17:38:35]Method is POST - this is cgi request [17:38:35]url: /json_proto [17:38:35]query_string will be loaded in cgi processing [17:38:35]execute_cgi json_proto POST (null) [17:38:35]execute_cgi path=json_proto method=POST [17:38:35]POST find Content-Length [17:38:35]Host: 172.17.45.67:8080 [17:38:35]Content-Length: 677 [17:38:35]Content-Type: application/json [17:38:35] [17:38:35]POST finish read [17:38:35]Found Content-Length = 677 [17:38:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:38:35]execute_script... [17:38: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)594146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:38:35]POST & json_proto [17:38:35]process_json_proto [17:38:35]json parsed OK: [17:38:35]protocol is kg_v1.0 [17:38:35]action value=close_receipt [17:38:35]process_action close_receipt [17:38:35]cmd_close_receipt [17:38:35]MH_GetDate [17:38:35]Write to MH i2c: F0 00 00 C6 04 B9 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: F0 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: F0 09 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: F0 09 00 C6 04 00 1B 26 C6 66 5F 7F 2B 66 9E [17:38:35]GetLastDocTimeStamp 1724261902 [17:38:35]current date 1724261915 [17:38:35]FM_GetShiftState [17:38:35]SAM_PROTO_GetShiftState [17:38:35]wFMCommunicate request_size=4 [17:38:35]MH_SAM_APDU [17:38:35]CAPDU: 80 13 01 00 [17:38:35]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:35]Read from MH i2c: E2 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 0E 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C8 [17:38:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:38:35]wFMCommunicate OK [17:38:35]SAM_PROTO_GetShiftState done [17:38:35]FM_GetShiftState done [17:38:35]opened in 1724200467 [17:38:35]opened+sec_in_day 1724286867 [17:38:35]quantity*price = 20001 [17:38:35]sum+1 = 20002 [17:38:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 306 21.08.2024 17:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140289 ФПД: 256225962287128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140289&fm=256225962287128&tin=02508201610067®Number=0000000000092569&sum=20000 [17:38:36]StoreToDocumentArchive [17:38:36]shift 454 fd 140289 [17:38:36]save to /storage/0454/doc_00140289 [17:38:36]save last doc name /storage/0454/doc_00140289 to /storage/kkm_last_doc_name [17:38:36]save OK [17:38:36]Clear old archive folders... [17:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:36]tlvbuf is B6FF6840 [17:38:36]SAM_PROTO_ClearQueue [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 09 00 00 [17:38:36]Write to MH i2c: E2 08 00 D4 04 80 09 00 00 00 00 00 00 4A [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]SAM_PROTO_ClearQueue done [17:38:36]KKMCreateOFDPacket [17:38:36]OFDProtocolAddRootSTLVToBuf [17:38:36]FM_MakeSignedData [17:38:36]FM_MakeSignedData [17:38:36]SAM_PROTO_SignData [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 01 02 [17:38:36]Write to MH i2c: E2 08 00 D5 04 80 0D 01 02 00 00 00 00 52 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]wFMCommunicate request_size=255 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 01 00 00 F4 03 04 00 1B 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 24 02 00 35 04 06 00 E9 [17:38:36]Write to MH i2c: E2 02 01 D6 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 01 00 00 F4 03 04 00 1B 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 24 02 00 35 04 06 00 E9 00 00 54 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]wFMCommunicate request_size=10 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 02 02 05 09 41 76 E0 18 [17:38:36]Write to MH i2c: E2 0D 00 D7 04 80 0D 02 02 05 00 09 41 76 E0 18 00 00 17 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [17:38:36]RAPDU: 90 00 [17:38:36]wFMCommunicate OK [17:38:36]wFMCommunicate request_size=4 [17:38:36]MH_SAM_APDU [17:38:36]CAPDU: 80 0D 03 02 [17:38:36]Write to MH i2c: E2 08 00 D8 04 80 0D 03 02 00 00 00 00 57 [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:36]Read from MH i2c: E2 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0B 00 [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: E2 0B 00 D8 04 00 71 74 70 40 8D F4 9E 45 90 00 51 [17:38:36]RAPDU: 71 74 70 40 8D F4 9E 45 90 00 [17:38:36]wFMCommunicate OK [17:38:36]SAM_PROTO_SignData done [17:38:36]FM_MakeSignedData done [17:38:36]CreateOFDProtocolMessage [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 D9 04 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 D9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [17:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:38:36]wFMCommunicate OK [17:38:36]CreateOFDProtocolMessage done [17:38:36]OFDSenderStorePacket 140289 [17:38:36]StoreOFDPacket docnum=140289 [17:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F3 45 07 01 99 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 01 00 00 F4 03 04 00 1B 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 24 02 00 35 04 06 00 E9 09 41 76 E0 18 71 74 70 40 8D F4 9E 45 [17:38:36]CheckFolder [17:38:36]dirname=/storage/ofd_packets [17:38:36]CheckFolder done [17:38:36]ProducePacketName [17:38:36]name=ofd_packets/00140289 [17:38:36]NVStorageSaveData ofd_packets/00140289 [17:38:36]File name is /storage/ofd_packets/00140289 [17:38:36]Write 301 bytes [17:38:36]NVStorageSaveData done [17:38:36]OFDSenderStorePacket done [17:38:36]KKMCreateOFDPacket done [17:38:36]NVStorageSaveData kkm_last_timestamp [17:38:36]File name is /storage/kkm_last_timestamp [17:38:36]Write 4 bytes [17:38:36]NVStorageSaveData done [17:38:36]ExternCall_PrintAddStr [17:38:36]wPrintStart [17:38:36]Write to MH i2c: 01 00 00 DA 04 DE [17:38:36]Write i2c OK [17:38:36]MH_I2C_Read... [17:38:36]Read from MH i2c: 01 [17:38:36]MH_I2C_Read... [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 DA 04 00 00 00 00 00 FF 0F F3 [17:38:36]RasterBufferAndPrint [17:38:36]line Счет N : (1)594146 [17:38:36]line ИНН: 02508201610067 [17:38:36]line Контрольно-Кассовый Чек [17:38:36]line ПРОДАЖА [17:38:36]line ТРК (МРК, ГНК) : 62 [17:38:36]line Товар: 2710124130 [17:38:36]line Аи-92-К-5 [17:38:36]line 2.950 * 67.80 [17:38:36]line = 200.01 [17:38:36]line НДС 12% НСП 1% [17:38:36]line > о реализуемом товаре [17:38:36]line ОКРУГЛЕНИЕ: -0.01 [17:38:36]line ИТОГО: 200.00 [17:38:36]line Внесено: 200.00 [17:38:36]line СДАЧА: 0.00 [17:38:36]line НСП 1% : 1.77 [17:38:36]line НДС 12% : 21.24 [17:38:36]line Наличными: 200.00 [17:38:36]line Безнал.: 0.00 [17:38:36]line Место: АЗС № 136 "Партнер Нефть" [17:38:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:38:36]line СНО: Общий режим [17:38:36]line Чек 306 21.08.2024 17:38 [17:38:36]line Смена: 454 ФФД: 1.0 [17:38:36]line ЗНМ: 0300000067 [17:38:36]line РНМ: 0000000000092569 [17:38:36]line Версия ККМ: 001 [17:38:36]line ФМ: 0000000000871776 [17:38:36]line ФД: 140289 [17:38:36]line ФПД: 256225962287128 [17:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T173835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140289&fm=256225962287128&tin=02508201610067®Number=0000000000092569&sum=20000 [17:38:37]written 0, free lines is 4095 [17:38:37]OFD Sender: Processing packet 140289 [packets to send 137, broken 136] [17:38:37]ProducePacketName [17:38:37]name=ofd_packets/00140289 [17:38:37]OFD Sender: To server: pG, [17:38:37]CommunicateWithHost lk.salyk.kg:30040 [17:38:37]ConnectInit lk.salyk.kg [17:38:37]Connected sock=10 [17:38:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F3 45 07 01 99 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 01 00 00 F4 03 04 00 1B 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 01 24 02 00 35 04 06 00 E9 09 41 76 E0 18 71 74 70 40 8D F4 9E 45 [17:38: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 37 36 4F 00 00 00 2B C4 47 00 48 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 37 36 10 04 04 00 01 24 02 00 F4 03 04 00 AB CC C5 66 B6 04 01 00 00 90 33 4E BF E3 7B A1 A4 [17:38:37]CommunicateWithHost err = 0 [17:38:37]CheckOFDResponse [17:38:37]1017 (14) - 77093643461234 [17:38:37]1041 (16) - 0000000000871776 [17:38:37]1040 (4) - 140289 [17:38:37]1012 (4) - 21.08.2024 11:16 [17:38:37]1206 (1) - 0 [17:38:37]OFD Sender: Remove packet 140289 [17:38:37]ProducePacketName [17:38:37]name=ofd_packets/00140289 [17:38:37]NVStorageDeleteData [17:38:37]Write to MH i2c: 01 00 00 05 05 0A [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 07 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 DA 0C F7 [17:38:37]RasterBufferAndPrint [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]line [17:38:37]written 0, free lines is 3298 [17:38:37]MH_Cut [17:38:37]Write to MH i2c: D1 01 00 0C 05 01 E3 [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 01 00 [17:38:37]MH_I2C_Read... [17:38:37]Read from MH i2c: D1 01 00 0C 05 00 E2 [17:38:37]Write to MH i2c: 01 00 00 0D 05 12 [17:38:37]Write i2c OK [17:38:37]MH_I2C_Read... [17:38:38]OFD Sender: No OFD packet to send [17:38:38]*** Cut start [17:38:38]*** Partial cut [17:38:38]*** CUTSNS_PIN = 1 [17:38:38]*** CUTSNS_PIN = 0 [17:38:38]*** Brake cut motor [17:38:38]Read from MH i2c: 01 [17:38:38]MH_I2C_Read... [17:38:38]*** Stop cut motor [17:38:38]*** Cut end [17:38:38]Read from MH i2c: 01 07 00 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 FF 0F 27 [17:38:38]process_action close_receipt done [17:38:38]requested_data is exist [17:38:38]produce_requested_data [17:38:38]requested_item fm.sn is exist - process it [17:38:38]wFMCommunicate request_size=4 [17:38:38]MH_SAM_APDU [17:38:38]CAPDU: 80 11 00 00 [17:38:38]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [17:38:38]Write i2c OK [17:38:38]MH_I2C_Read... [17:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:38]Read from MH i2c: E2 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 17 00 [17:38:38]MH_I2C_Read... [17:38:38]Read from MH i2c: E2 17 00 0E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [17:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:38:38]wFMCommunicate OK [17:38:38]requested_item fd.num is exist - process it [17:38:38]SAM_PROTO_GetFieldsCounters [17:38:38]wFMCommunicate request_size=4 [17:38:38]MH_SAM_APDU [17:38:38]CAPDU: 80 13 00 00 [17:38:38]Write to MH i2c: E2 08 00 0F 05 80 13 00 00 00 00 00 00 90 [17:38:38]Write i2c OK [17:38:38]MH_I2C_Read... [17:38:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:39]Read from MH i2c: E2 [17:38:39]MH_I2C_Read... [17:38:39]Read from MH i2c: E2 62 00 [17:38:39]MH_I2C_Read... [17:38:39]Read from MH i2c: E2 62 00 0F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 24 02 00 0E 04 04 00 C6 01 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 42 [17:38:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 01 24 02 00 0E 04 04 00 C6 01 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 [17:38:39]wFMCommunicate OK [17:38:39]SAM_PROTO_GetFieldsCounters done [17:38:39]requested_item shift.num is exist - process it [17:38:39]requested_item shift.opened is exist - process it [17:38:39]req_shift_opened [17:38:39]FM_GetShiftState [17:38:39]SAM_PROTO_GetShiftState [17:38:39]wFMCommunicate request_size=4 [17:38:39]MH_SAM_APDU [17:38:39]CAPDU: 80 13 01 00 [17:38:39]Write to MH i2c: E2 08 00 10 05 80 13 01 00 00 00 00 00 92 [17:38:39]Write i2c OK [17:38:39]MH_I2C_Read... [17:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:39]Read from MH i2c: E2 [17:38:39]MH_I2C_Read... [17:38:39]Read from MH i2c: E2 0E 00 [17:38:39]MH_I2C_Read... [17:38:39]Read from MH i2c: E2 0E 00 10 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 12 [17:38:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:38:39]wFMCommunicate OK [17:38:39]SAM_PROTO_GetShiftState done [17:38:39]FM_GetShiftState done [17:38:39]req_shift_opened done [17:38:39]requested_item shift.open_date is exist - process it [17:38:39]req_shift_open_date [17:38:39]req_shift_open_date done [17:38:39]produce_requested_data done [17:38:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140289,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:38:39]process_action_free close_receipt [17:38:39]json_value_free [17:38:39]json_value_free done [17:38:39]process_json_proto returns [17:38:39]Send response to host [17:38:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140289,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:38:39]free response buf [17:38:39]execute_script done [17:38:39]execute_script returns [17:38:39]free content buf [17:38:39]Sock 7.Close socket [17:38:39]Sock 7.Thread stoped [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:04]accept exits with 9 [17:41:04]New connection [17:41:04]New thread 3067469156 created [17:41:04]Thread 3067612516 joined [17:41:04]Waiting for new connection... [17:41:04] Sock 9.Parse request [17:41:04]Sock 9.Check first char [17:41:04]Sock 9.First char is OK [17:41:04]request: POST /json_proto HTTP/1.0 [17:41:04]Method: POST [17:41:04]URL: /json_proto [17:41:04]Method is POST - this is cgi request [17:41:04]url: /json_proto [17:41:04]query_string will be loaded in cgi processing [17:41:04]execute_cgi json_proto POST (null) [17:41:04]execute_cgi path=json_proto method=POST [17:41:04]POST find Content-Length [17:41:04]Host: 172.17.45.67:8080 [17:41:04]Content-Length: 658 [17:41:04]Content-Type: application/json [17:41:04] [17:41:04]POST finish read [17:41:04]Found Content-Length = 658 [17:41:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:04]execute_script... [17:41: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)594147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:04]POST & json_proto [17:41:04]process_json_proto [17:41:04]json parsed OK: [17:41:04]protocol is kg_v1.0 [17:41:04]action value=close_receipt [17:41:04]process_action close_receipt [17:41:04]cmd_close_receipt [17:41:04]MH_GetDate [17:41:04]Write to MH i2c: F0 00 00 11 05 05 [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: F0 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: F0 09 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: F0 09 00 11 05 00 B0 26 C6 66 5F 7F 2B 66 7F [17:41:04]GetLastDocTimeStamp 1724261915 [17:41:04]current date 1724262064 [17:41:04]FM_GetShiftState [17:41:04]SAM_PROTO_GetShiftState [17:41:04]wFMCommunicate request_size=4 [17:41:04]MH_SAM_APDU [17:41:04]CAPDU: 80 13 01 00 [17:41:04]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [17:41:04]Write i2c OK [17:41:04]MH_I2C_Read... [17:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:04]Read from MH i2c: E2 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 0E 00 [17:41:04]MH_I2C_Read... [17:41:04]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 14 [17:41:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:04]wFMCommunicate OK [17:41:04]SAM_PROTO_GetShiftState done [17:41:04]FM_GetShiftState done [17:41:04]opened in 1724200467 [17:41:04]opened+sec_in_day 1724286867 [17:41:04]quantity*price = 35019 [17:41:04]sum+1 = 35020 [17:41:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 307 21.08.2024 17:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140290 ФПД: 175862487363614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174104&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140290&fm=175862487363614&tin=02508201610067®Number=0000000000092569&sum=35000 [17:41:05]StoreToDocumentArchive [17:41:05]shift 454 fd 140290 [17:41:05]save to /storage/0454/doc_00140290 [17:41:05]save last doc name /storage/0454/doc_00140290 to /storage/kkm_last_doc_name [17:41:05]save OK [17:41:05]Clear old archive folders... [17:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:41:05]tlvbuf is 00C39660 [17:41:05]SAM_PROTO_ClearQueue [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 09 00 00 [17:41:05]Write to MH i2c: E2 08 00 1F 05 80 09 00 00 00 00 00 00 96 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [17:41:05]RAPDU: 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_ClearQueue done [17:41:05]KKMCreateOFDPacket [17:41:05]OFDProtocolAddRootSTLVToBuf [17:41:05]FM_MakeSignedData [17:41:05]FM_MakeSignedData [17:41:05]SAM_PROTO_SignData [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 0D 01 02 [17:41:05]Write to MH i2c: E2 08 00 20 05 80 0D 01 02 00 00 00 00 9E [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [17:41:05]RAPDU: 90 00 [17:41:05]wFMCommunicate OK [17:41:05]wFMCommunicate request_size=253 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 33 01 00 00 F4 03 04 00 B0 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 24 02 00 35 04 06 00 9F F2 2D 16 B0 1E [17:41:05]Write to MH i2c: E2 00 01 21 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 33 01 00 00 F4 03 04 00 B0 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 24 02 00 35 04 06 00 9F F2 2D 16 B0 1E 00 00 B5 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [17:41:05]RAPDU: 90 00 [17:41:05]wFMCommunicate OK [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 0D 03 02 [17:41:05]Write to MH i2c: E2 08 00 22 05 80 0D 03 02 00 00 00 00 A2 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 0B 00 22 05 00 0F 67 12 52 21 64 B6 FF 90 00 B7 [17:41:06]RAPDU: 0F 67 12 52 21 64 B6 FF 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_SignData done [17:41:06]FM_MakeSignedData done [17:41:06]CreateOFDProtocolMessage [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 11 00 00 [17:41:06]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 17 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [17:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:06]wFMCommunicate OK [17:41:06]CreateOFDProtocolMessage done [17:41:06]OFDSenderStorePacket 140290 [17:41:06]StoreOFDPacket docnum=140290 [17:41:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 49 FD 00 01 E7 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 33 01 00 00 F4 03 04 00 B0 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 24 02 00 35 04 06 00 9F F2 2D 16 B0 1E 0F 67 12 52 21 64 B6 FF [17:41:06]CheckFolder [17:41:06]dirname=/storage/ofd_packets [17:41:06]CheckFolder done [17:41:06]ProducePacketName [17:41:06]name=ofd_packets/00140290 [17:41:06]NVStorageSaveData ofd_packets/00140290 [17:41:06]File name is /storage/ofd_packets/00140290 [17:41:06]Write 294 bytes [17:41:06]NVStorageSaveData done [17:41:06]OFDSenderStorePacket done [17:41:06]KKMCreateOFDPacket done [17:41:06]NVStorageSaveData kkm_last_timestamp [17:41:06]File name is /storage/kkm_last_timestamp [17:41:06]Write 4 bytes [17:41:06]NVStorageSaveData done [17:41:06]ExternCall_PrintAddStr [17:41:06]wPrintStart [17:41:06]Write to MH i2c: 01 00 00 24 05 29 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [17:41:06]RasterBufferAndPrint [17:41:06]line Счет N : (1)594147 [17:41:06]line ИНН: 02508201610067 [17:41:06]line Контрольно-Кассовый Чек [17:41:06]line ПРОДАЖА [17:41:06]line ТРК (МРК, ГНК) : 33 [17:41:06]line Товар: 2710124130 [17:41:06]line SU-92 [17:41:06]line 5.090 * 68.80 [17:41:06]line = 350.19 [17:41:06]line НДС 12% НСП 1% [17:41:06]line > о реализуемом товаре [17:41:06]line ОКРУГЛЕНИЕ: -0.19 [17:41:06]line ИТОГО: 350.00 [17:41:06]line Внесено: 350.00 [17:41:06]line СДАЧА: 0.00 [17:41:06]line НСП 1% : 3.10 [17:41:06]line НДС 12% : 37.19 [17:41:06]line Наличными: 350.00 [17:41:06]line Безнал.: 0.00 [17:41:06]line Место: АЗС № 136 "Партнер Нефть" [17:41:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:41:06]line СНО: Общий режим [17:41:06]line Чек 307 21.08.2024 17:41 [17:41:06]line Смена: 454 ФФД: 1.0 [17:41:06]line ЗНМ: 0300000067 [17:41:06]line РНМ: 0000000000092569 [17:41:06]line Версия ККМ: 001 [17:41:06]line ФМ: 0000000000871776 [17:41:06]line ФД: 140290 [17:41:06]line ФПД: 175862487363614 [17:41:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174104&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140290&fm=175862487363614&tin=02508201610067®Number=0000000000092569&sum=35000 [17:41:06]OFD Sender: Processing packet 140290 [packets to send 137, broken 136] [17:41:06]ProducePacketName [17:41:06]name=ofd_packets/00140290 [17:41:06]OFD Sender: To server: pG, [17:41:06]CommunicateWithHost lk.salyk.kg:30040 [17:41:06]ConnectInit lk.salyk.kg [17:41:06]written 0, free lines is 4095 [17:41:06]Connected sock=11 [17:41: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 37 36 08 01 00 00 49 FD 00 01 E7 9F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 33 01 00 00 F4 03 04 00 B0 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 24 02 00 35 04 06 00 9F F2 2D 16 B0 1E 0F 67 12 52 21 64 B6 FF [17:41:06]Write to MH i2c: 01 00 00 4F 05 54 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 DD 0C 44 [17:41:06]RasterBufferAndPrint [17:41:06]line [17:41:06]line [17:41:06]line [17:41:06]line [17:41:06]line [17:41:06]written 0, free lines is 3300 [17:41:06]MH_Cut [17:41:06]Write to MH i2c: D1 01 00 56 05 01 2D [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: D1 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: D1 01 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: D1 01 00 56 05 00 2C [17:41:06]Write to MH i2c: 01 00 00 57 05 5C [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41: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 37 36 4F 00 00 00 E7 23 47 00 E1 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 02 24 02 00 F4 03 04 00 41 CD C5 66 B6 04 01 00 00 2E 7D 97 8F 07 2C 5C 0D [17:41:06]CommunicateWithHost err = 0 [17:41:06]CheckOFDResponse [17:41:06]1017 (14) - 77093643461234 [17:41:06]1041 (16) - 0000000000871776 [17:41:06]1040 (4) - 140290 [17:41:06]1012 (4) - 21.08.2024 11:19 [17:41:06]1206 (1) - 0 [17:41:06]OFD Sender: Remove packet 140290 [17:41:06]ProducePacketName [17:41:06]name=ofd_packets/00140290 [17:41:06]NVStorageDeleteData [17:41:07]OFD Sender: No OFD packet to send [17:41:07]*** Cut start [17:41:07]*** Partial cut [17:41:07]*** CUTSNS_PIN = 1 [17:41:07]*** CUTSNS_PIN = 0 [17:41:07]*** Brake cut motor [17:41:08]Read from MH i2c: 01 [17:41:08]MH_I2C_Read... [17:41:08]*** Stop cut motor [17:41:08]*** Cut end [17:41:08]Read from MH i2c: 01 07 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: 01 07 00 57 05 00 00 00 00 00 FF 0F 71 [17:41:08]process_action close_receipt done [17:41:08]requested_data is exist [17:41:08]produce_requested_data [17:41:08]requested_item fm.sn is exist - process it [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 11 00 00 [17:41:08]Write to MH i2c: E2 08 00 58 05 80 11 00 00 00 00 00 00 D7 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 17 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 17 00 58 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [17:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:08]wFMCommunicate OK [17:41:08]requested_item fd.num is exist - process it [17:41:08]SAM_PROTO_GetFieldsCounters [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 13 00 00 [17:41:08]Write to MH i2c: E2 08 00 59 05 80 13 00 00 00 00 00 00 DA [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 62 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 62 00 59 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 24 02 00 0E 04 04 00 C6 01 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 90 [17:41:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 02 24 02 00 0E 04 04 00 C6 01 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 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_GetFieldsCounters done [17:41:08]requested_item shift.num is exist - process it [17:41:08]requested_item shift.opened is exist - process it [17:41:08]req_shift_opened [17:41:08]FM_GetShiftState [17:41:08]SAM_PROTO_GetShiftState [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 13 01 00 [17:41:08]Write to MH i2c: E2 08 00 5A 05 80 13 01 00 00 00 00 00 DC [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:08]Read from MH i2c: E2 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: E2 0E 00 5A 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [17:41:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:08]wFMCommunicate OK [17:41:08]SAM_PROTO_GetShiftState done [17:41:08]FM_GetShiftState done [17:41:08]req_shift_opened done [17:41:08]requested_item shift.open_date is exist - process it [17:41:08]req_shift_open_date [17:41:08]req_shift_open_date done [17:41:08]produce_requested_data done [17:41:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140290,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:41:08]process_action_free close_receipt [17:41:08]json_value_free [17:41:08]json_value_free done [17:41:08]process_json_proto returns [17:41:08]Send response to host [17:41:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140290,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:41:08]free response buf [17:41:08]execute_script done [17:41:08]execute_script returns [17:41:08]free content buf [17:41:08]Sock 9.Close socket [17:41:08]Sock 9.Thread stoped [17:41:12]OFD Sender: No OFD packet to send [17:41:13]accept exits with 7 [17:41:13]New connection [17:41:13]New thread 3067612516 created [17:41:13]Thread 3067469156 joined [17:41:13]Waiting for new connection... [17:41:13] Sock 7.Parse request [17:41:13]Sock 7.Check first char [17:41:13]Sock 7.First char is OK [17:41:13]request: POST /json_proto HTTP/1.0 [17:41:13]Method: POST [17:41:13]URL: /json_proto [17:41:13]Method is POST - this is cgi request [17:41:13]url: /json_proto [17:41:13]query_string will be loaded in cgi processing [17:41:13]execute_cgi json_proto POST (null) [17:41:13]execute_cgi path=json_proto method=POST [17:41:13]POST find Content-Length [17:41:13]Host: 172.17.45.67:8080 [17:41:13]Content-Length: 677 [17:41:13]Content-Type: application/json [17:41:13] [17:41:13]POST finish read [17:41:13]Found Content-Length = 677 [17:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:13]execute_script... [17:41: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)594148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:13]POST & json_proto [17:41:13]process_json_proto [17:41:13]json parsed OK: [17:41:13]protocol is kg_v1.0 [17:41:13]action value=close_receipt [17:41:13]process_action close_receipt [17:41:13]cmd_close_receipt [17:41:13]MH_GetDate [17:41:13]Write to MH i2c: F0 00 00 5B 05 4F [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: F0 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: F0 09 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: F0 09 00 5B 05 00 B9 26 C6 66 5F 7F 2B 66 D2 [17:41:13]GetLastDocTimeStamp 1724262064 [17:41:13]current date 1724262073 [17:41:13]FM_GetShiftState [17:41:13]SAM_PROTO_GetShiftState [17:41:13]wFMCommunicate request_size=4 [17:41:13]MH_SAM_APDU [17:41:13]CAPDU: 80 13 01 00 [17:41:13]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [17:41:13]Write i2c OK [17:41:13]MH_I2C_Read... [17:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:13]Read from MH i2c: E2 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 0E 00 [17:41:13]MH_I2C_Read... [17:41:13]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5E [17:41:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:13]wFMCommunicate OK [17:41:13]SAM_PROTO_GetShiftState done [17:41:13]FM_GetShiftState done [17:41:13]opened in 1724200467 [17:41:13]opened+sec_in_day 1724286867 [17:41:13]quantity*price = 50036 [17:41:13]sum+1 = 50037 [17:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 308 21.08.2024 17:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140291 ФПД: 30790447410779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174113&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140291&fm=30790447410779&tin=02508201610067®Number=0000000000092569&sum=50000 [17:41:14]StoreToDocumentArchive [17:41:14]shift 454 fd 140291 [17:41:14]save to /storage/0454/doc_00140291 [17:41:14]save last doc name /storage/0454/doc_00140291 to /storage/kkm_last_doc_name [17:41:14]save OK [17:41:14]Clear old archive folders... [17:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:14]tlvbuf is 00CA09C0 [17:41:14]SAM_PROTO_ClearQueue [17:41:14]wFMCommunicate request_size=4 [17:41:14]MH_SAM_APDU [17:41:14]CAPDU: 80 09 00 00 [17:41:14]Write to MH i2c: E2 08 00 69 05 80 09 00 00 00 00 00 00 E0 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [17:41:14]RAPDU: 90 00 [17:41:14]wFMCommunicate OK [17:41:14]SAM_PROTO_ClearQueue done [17:41:14]KKMCreateOFDPacket [17:41:14]OFDProtocolAddRootSTLVToBuf [17:41:14]FM_MakeSignedData [17:41:14]FM_MakeSignedData [17:41:14]SAM_PROTO_SignData [17:41:14]wFMCommunicate request_size=4 [17:41:14]MH_SAM_APDU [17:41:14]CAPDU: 80 0D 01 02 [17:41:14]Write to MH i2c: E2 08 00 6A 05 80 0D 01 02 00 00 00 00 E8 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [17:41:14]RAPDU: 90 00 [17:41:14]wFMCommunicate OK [17:41:14]wFMCommunicate request_size=255 [17:41:14]MH_SAM_APDU [17:41: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 24 02 00 35 04 06 00 1C [17:41:14]Write to MH i2c: E2 02 01 6B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 24 02 00 35 04 06 00 1C 00 00 BD [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [17:41:14]RAPDU: 90 00 [17:41:14]wFMCommunicate OK [17:41:14]wFMCommunicate request_size=10 [17:41:14]MH_SAM_APDU [17:41:14]CAPDU: 80 0D 02 02 05 00 F5 AE 2E 5B [17:41:14]Write to MH i2c: E2 0D 00 6C 05 80 0D 02 02 05 00 00 F5 AE 2E 5B 00 00 21 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [17:41:14]RAPDU: 90 00 [17:41:14]wFMCommunicate OK [17:41:14]wFMCommunicate request_size=4 [17:41:14]MH_SAM_APDU [17:41:14]CAPDU: 80 0D 03 02 [17:41:14]Write to MH i2c: E2 08 00 6D 05 80 0D 03 02 00 00 00 00 ED [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 0B 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 0B 00 6D 05 00 00 14 62 4B 0D C6 5E 36 90 00 16 [17:41:14]RAPDU: 00 14 62 4B 0D C6 5E 36 90 00 [17:41:14]wFMCommunicate OK [17:41:14]SAM_PROTO_SignData done [17:41:14]FM_MakeSignedData done [17:41:14]CreateOFDProtocolMessage [17:41:14]wFMCommunicate request_size=4 [17:41:14]MH_SAM_APDU [17:41:14]CAPDU: 80 11 00 00 [17:41:14]Write to MH i2c: E2 08 00 6E 05 80 11 00 00 00 00 00 00 ED [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:14]Read from MH i2c: E2 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 17 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: E2 17 00 6E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [17:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:14]wFMCommunicate OK [17:41:14]CreateOFDProtocolMessage done [17:41:14]OFDSenderStorePacket 140291 [17:41:14]StoreOFDPacket docnum=140291 [17:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F2 6A 07 01 C2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 24 02 00 35 04 06 00 1C 00 F5 AE 2E 5B 00 14 62 4B 0D C6 5E 36 [17:41:14]CheckFolder [17:41:14]dirname=/storage/ofd_packets [17:41:14]CheckFolder done [17:41:14]ProducePacketName [17:41:14]name=ofd_packets/00140291 [17:41:14]NVStorageSaveData ofd_packets/00140291 [17:41:14]File name is /storage/ofd_packets/00140291 [17:41:14]Write 301 bytes [17:41:14]NVStorageSaveData done [17:41:14]OFDSenderStorePacket done [17:41:14]KKMCreateOFDPacket done [17:41:14]NVStorageSaveData kkm_last_timestamp [17:41:14]File name is /storage/kkm_last_timestamp [17:41:14]Write 4 bytes [17:41:14]NVStorageSaveData done [17:41:14]ExternCall_PrintAddStr [17:41:14]wPrintStart [17:41:14]Write to MH i2c: 01 00 00 6F 05 74 [17:41:14]Write i2c OK [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 07 00 [17:41:14]MH_I2C_Read... [17:41:14]Read from MH i2c: 01 07 00 6F 05 00 00 00 00 00 FF 0F 89 [17:41:14]RasterBufferAndPrint [17:41:14]line Счет N : (1)594148 [17:41:14]line ИНН: 02508201610067 [17:41:14]line Контрольно-Кассовый Чек [17:41:14]line ПРОДАЖА [17:41:14]line ТРК (МРК, ГНК) : 62 [17:41:14]line Товар: 2710124130 [17:41:14]line Аи-92-К-5 [17:41:14]line 7.380 * 67.80 [17:41:14]line = 500.36 [17:41:14]line НДС 12% НСП 1% [17:41:14]line > о реализуемом товаре [17:41:14]line ОКРУГЛЕНИЕ: -0.36 [17:41:14]line ИТОГО: 500.00 [17:41:14]line Внесено: 500.00 [17:41:14]line СДАЧА: 0.00 [17:41:14]line НСП 1% : 4.43 [17:41:14]line НДС 12% : 53.14 [17:41:14]line Наличными: 500.00 [17:41:14]line Безнал.: 0.00 [17:41:14]line Место: АЗС № 136 "Партнер Нефть" [17:41:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:41:14]line СНО: Общий режим [17:41:14]line Чек 308 21.08.2024 17:41 [17:41:14]line Смена: 454 ФФД: 1.0 [17:41:14]line ЗНМ: 0300000067 [17:41:14]line РНМ: 0000000000092569 [17:41:14]line Версия ККМ: 001 [17:41:14]line ФМ: 0000000000871776 [17:41:14]line ФД: 140291 [17:41:14]line ФПД: 30790447410779 [17:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174113&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140291&fm=30790447410779&tin=02508201610067®Number=0000000000092569&sum=50000 [17:41:14]written 0, free lines is 4095 [17:41:15]OFD Sender: Processing packet 140291 [packets to send 137, broken 136] [17:41:15]ProducePacketName [17:41:15]name=ofd_packets/00140291 [17:41:15]OFD Sender: To server: pG, [17:41:15]CommunicateWithHost lk.salyk.kg:30040 [17:41:15]ConnectInit lk.salyk.kg [17:41:15]Connected sock=10 [17:41: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 37 36 0F 01 00 00 F2 6A 07 01 C2 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B9 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 03 24 02 00 35 04 06 00 1C 00 F5 AE 2E 5B 00 14 62 4B 0D C6 5E 36 [17:41:15]Write to MH i2c: 01 00 00 9A 05 9F [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: 01 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: 01 07 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 E5 0C 97 [17:41:15]RasterBufferAndPrint [17:41:15]line [17:41:15]line [17:41:15]line [17:41:15]line [17:41:15]line [17:41: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 37 36 4F 00 00 00 DD 9B 47 00 1B 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 37 36 10 04 04 00 03 24 02 00 F4 03 04 00 49 CD C5 66 B6 04 01 00 00 43 BE 04 17 4B F6 4D A8 [17:41:15]CommunicateWithHost err = 0 [17:41:15]CheckOFDResponse [17:41:15]1017 (14) - 77093643461234 [17:41:15]1041 (16) - 0000000000871776 [17:41:15]1040 (4) - 140291 [17:41:15]1012 (4) - 21.08.2024 11:19 [17:41:15]1206 (1) - 0 [17:41:15]OFD Sender: Remove packet 140291 [17:41:15]ProducePacketName [17:41:15]name=ofd_packets/00140291 [17:41:15]NVStorageDeleteData [17:41:15]written 0, free lines is 3310 [17:41:15]MH_Cut [17:41:15]Write to MH i2c: D1 01 00 A1 05 01 78 [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: D1 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: D1 01 00 [17:41:15]MH_I2C_Read... [17:41:15]Read from MH i2c: D1 01 00 A1 05 00 77 [17:41:15]Write to MH i2c: 01 00 00 A2 05 A7 [17:41:15]Write i2c OK [17:41:15]MH_I2C_Read... [17:41:15]OFD Sender: No OFD packet to send [17:41:16]*** Cut start [17:41:16]*** Partial cut [17:41:16]*** CUTSNS_PIN = 1 [17:41:16]*** CUTSNS_PIN = 0 [17:41:16]*** Brake cut motor [17:41:16]Read from MH i2c: 01 [17:41:16]MH_I2C_Read... [17:41:16]*** Stop cut motor [17:41:16]*** Cut end [17:41:16]Read from MH i2c: 01 07 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [17:41:16]process_action close_receipt done [17:41:16]requested_data is exist [17:41:16]produce_requested_data [17:41:16]requested_item fm.sn is exist - process it [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 11 00 00 [17:41:16]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 17 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [17:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:16]wFMCommunicate OK [17:41:16]requested_item fd.num is exist - process it [17:41:16]SAM_PROTO_GetFieldsCounters [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 13 00 00 [17:41:16]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 62 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 62 00 A4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 24 02 00 0E 04 04 00 C6 01 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 DF [17:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 03 24 02 00 0E 04 04 00 C6 01 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 [17:41:16]wFMCommunicate OK [17:41:16]SAM_PROTO_GetFieldsCounters done [17:41:16]requested_item shift.num is exist - process it [17:41:16]requested_item shift.opened is exist - process it [17:41:16]req_shift_opened [17:41:16]FM_GetShiftState [17:41:16]SAM_PROTO_GetShiftState [17:41:16]wFMCommunicate request_size=4 [17:41:16]MH_SAM_APDU [17:41:16]CAPDU: 80 13 01 00 [17:41:16]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [17:41:16]Write i2c OK [17:41:16]MH_I2C_Read... [17:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:16]Read from MH i2c: E2 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 0E 00 [17:41:16]MH_I2C_Read... [17:41:16]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [17:41:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:16]wFMCommunicate OK [17:41:16]SAM_PROTO_GetShiftState done [17:41:16]FM_GetShiftState done [17:41:16]req_shift_opened done [17:41:16]requested_item shift.open_date is exist - process it [17:41:16]req_shift_open_date [17:41:16]req_shift_open_date done [17:41:16]produce_requested_data done [17:41:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140291,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:41:16]process_action_free close_receipt [17:41:16]json_value_free [17:41:16]json_value_free done [17:41:16]process_json_proto returns [17:41:16]Send response to host [17:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140291,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:41:16]free response buf [17:41:16]execute_script done [17:41:16]execute_script returns [17:41:16]free content buf [17:41:16]Sock 7.Close socket [17:41:16]Sock 7.Thread stoped [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:34]accept exits with 9 [17:41:34]New connection [17:41:34]New thread 3067469156 created [17:41:34]Thread 3067612516 joined [17:41:34]Waiting for new connection... [17:41:34] Sock 9.Parse request [17:41:34]Sock 9.Check first char [17:41:34]Sock 9.First char is OK [17:41:34]request: POST /json_proto HTTP/1.0 [17:41:34]Method: POST [17:41:34]URL: /json_proto [17:41:34]Method is POST - this is cgi request [17:41:34]url: /json_proto [17:41:34]query_string will be loaded in cgi processing [17:41:34]execute_cgi json_proto POST (null) [17:41:34]execute_cgi path=json_proto method=POST [17:41:34]POST find Content-Length [17:41:34]Host: 172.17.45.67:8080 [17:41:34]Content-Length: 818 [17:41:34]Content-Type: application/json [17:41:34] [17:41:34]POST finish read [17:41:34]Found Content-Length = 818 [17:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:34]execute_script... [17:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 600.00, "payments": [ { "type": 1, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:34]POST & json_proto [17:41:34]process_json_proto [17:41:34]json parsed OK: [17:41:34]protocol is kg_v1.0 [17:41:34]action value=close_receipt [17:41:34]process_action close_receipt [17:41:34]cmd_close_receipt [17:41:34]MH_GetDate [17:41:34]Write to MH i2c: F0 00 00 A6 05 9A [17:41:34]Write i2c OK [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 09 00 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: F0 09 00 A6 05 00 CE 26 C6 66 5F 7F 2B 66 32 [17:41:34]GetLastDocTimeStamp 1724262073 [17:41:34]current date 1724262094 [17:41:34]FM_GetShiftState [17:41:34]SAM_PROTO_GetShiftState [17:41:34]wFMCommunicate request_size=4 [17:41:34]MH_SAM_APDU [17:41:34]CAPDU: 80 13 01 00 [17:41:34]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [17:41:34]Write i2c OK [17:41:34]MH_I2C_Read... [17:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:34]Read from MH i2c: E2 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: E2 0E 00 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A9 [17:41:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:34]wFMCommunicate OK [17:41:34]SAM_PROTO_GetShiftState done [17:41:34]FM_GetShiftState done [17:41:34]opened in 1724200467 [17:41:34]opened+sec_in_day 1724286867 [17:41:34]quantity*price = 60003 [17:41:34]sum+1 = 60004 [17:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 309 21.08.2024 17:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140292 ФПД: 42320035482892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140292&fm=42320035482892&tin=02508201610067®Number=0000000000092569&sum=60000 [17:41:35]StoreToDocumentArchive [17:41:35]shift 454 fd 140292 [17:41:35]save to /storage/0454/doc_00140292 [17:41:35]save last doc name /storage/0454/doc_00140292 to /storage/kkm_last_doc_name [17:41:35]save OK [17:41:35]Clear old archive folders... [17:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:35]tlvbuf is 00C9B780 [17:41:35]SAM_PROTO_ClearQueue [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 09 00 00 [17:41:35]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_ClearQueue done [17:41:35]KKMCreateOFDPacket [17:41:35]OFDProtocolAddRootSTLVToBuf [17:41:35]FM_MakeSignedData [17:41:35]FM_MakeSignedData [17:41:35]SAM_PROTO_SignData [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 01 02 [17:41:35]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=255 [17:41:35]MH_SAM_APDU [17:41: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 CE 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 24 02 00 35 04 06 00 26 [17:41:35]Write to MH i2c: E2 02 01 B6 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 CE 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 24 02 00 35 04 06 00 26 00 00 F0 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=10 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 02 02 05 7D 66 AE 8D 0C [17:41:35]Write to MH i2c: E2 0D 00 B7 05 80 0D 02 02 05 00 7D 66 AE 8D 0C 00 00 6A [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [17:41:35]RAPDU: 90 00 [17:41:35]wFMCommunicate OK [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 0D 03 02 [17:41:35]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0B 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0B 00 B8 05 00 57 34 E3 BF EB BA F0 01 90 00 FC [17:41:35]RAPDU: 57 34 E3 BF EB BA F0 01 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_SignData done [17:41:35]FM_MakeSignedData done [17:41:35]CreateOFDProtocolMessage [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 11 00 00 [17:41:35]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [17:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:35]wFMCommunicate OK [17:41:35]CreateOFDProtocolMessage done [17:41:35]OFDSenderStorePacket 140292 [17:41:35]StoreOFDPacket docnum=140292 [17:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8B 4C 07 01 34 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 CE 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 24 02 00 35 04 06 00 26 7D 66 AE 8D 0C 57 34 E3 BF EB BA F0 01 [17:41:35]CheckFolder [17:41:35]dirname=/storage/ofd_packets [17:41:35]CheckFolder done [17:41:35]ProducePacketName [17:41:35]name=ofd_packets/00140292 [17:41:35]NVStorageSaveData ofd_packets/00140292 [17:41:35]File name is /storage/ofd_packets/00140292 [17:41:35]Write 301 bytes [17:41:35]NVStorageSaveData done [17:41:35]OFDSenderStorePacket done [17:41:35]KKMCreateOFDPacket done [17:41:35]NVStorageSaveData kkm_last_timestamp [17:41:35]File name is /storage/kkm_last_timestamp [17:41:35]Write 4 bytes [17:41:35]NVStorageSaveData done [17:41:35]ExternCall_PrintAddStr [17:41:35]wPrintStart [17:41:35]Write to MH i2c: 01 00 00 BA 05 BF [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 07 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [17:41:35]RasterBufferAndPrint [17:41:35]line Счет N : (1)594149 [17:41:35]line ИНН: 02508201610067 [17:41:35]line Контрольно-Кассовый Чек [17:41:35]line ПРОДАЖА [17:41:35]line ТРК (МРК, ГНК) : 52 [17:41:35]line Товар: 2710124130 [17:41:35]line Аи-92-К-5 [17:41:35]line 8.850 * 67.80 [17:41:35]line = 600.03 [17:41:35]line НДС 12% НСП 1% [17:41:35]line > о реализуемом товаре [17:41:35]line ОКРУГЛЕНИЕ: -0.03 [17:41:35]line ИТОГО: 600.00 [17:41:35]line НСП 1% : 5.31 [17:41:35]line НДС 12% : 63.72 [17:41:35]line Наличными: 0.00 [17:41:35]line Безнал.: 600.00 [17:41:35]line Место: АЗС № 136 "Партнер Нефть" [17:41:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:41:35]line СНО: Общий режим [17:41:35]line Чек 309 21.08.2024 17:41 [17:41:35]line Смена: 454 ФФД: 1.0 [17:41:35]line ЗНМ: 0300000067 [17:41:35]line РНМ: 0000000000092569 [17:41:35]line Версия ККМ: 001 [17:41:35]line Платежная система: O! деньги [17:41:35]line ФМ: 0000000000871776 [17:41:35]line ФД: 140292 [17:41:35]line ФПД: 42320035482892 [17:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174134&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140292&fm=42320035482892&tin=02508201610067®Number=0000000000092569&sum=60000 [17:41:36]written 0, free lines is 4095 [17:41:36]OFD Sender: Processing packet 140292 [packets to send 137, broken 136] [17:41:36]ProducePacketName [17:41:36]name=ofd_packets/00140292 [17:41:36]OFD Sender: To server: pG, [17:41:36]CommunicateWithHost lk.salyk.kg:30040 [17:41:36]ConnectInit lk.salyk.kg [17:41:36]Connected sock=10 [17:41: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 37 36 0F 01 00 00 8B 4C 07 01 34 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 CE 26 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 04 24 02 00 35 04 06 00 26 7D 66 AE 8D 0C 57 34 E3 BF EB BA F0 01 [17: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 37 36 4F 00 00 00 1E DC 47 00 CC 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 37 36 10 04 04 00 04 24 02 00 F4 03 04 00 5F CD C5 66 B6 04 01 00 00 A8 70 B4 3C CE BF 34 18 [17:41:36]CommunicateWithHost err = 0 [17:41:36]CheckOFDResponse [17:41:36]Write to MH i2c: 01 00 00 E5 05 EA [17:41:36]1017 (14) - 77093643461234 [17:41:36]1041 (16) - 0000000000871776 [17:41:36]1040 (4) - 140292 [17:41:36]1012 (4) - 21.08.2024 11:19 [17:41:36]1206 (1) - 0 [17:41:36]OFD Sender: Remove packet 140292 [17:41:36]ProducePacketName [17:41:36]name=ofd_packets/00140292 [17:41:36]NVStorageDeleteData [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 07 00 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 F3 0C F0 [17:41:36]RasterBufferAndPrint [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]line [17:41:36]written 0, free lines is 3337 [17:41:36]MH_Cut [17:41:36]Write to MH i2c: D1 01 00 EC 05 01 C3 [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 01 00 [17:41:36]MH_I2C_Read... [17:41:36]Read from MH i2c: D1 01 00 EC 05 00 C2 [17:41:36]Write to MH i2c: 01 00 00 ED 05 F2 [17:41:36]Write i2c OK [17:41:36]MH_I2C_Read... [17:41:37]OFD Sender: No OFD packet to send [17:41:37]*** Cut start [17:41:37]*** Partial cut [17:41:37]*** CUTSNS_PIN = 1 [17:41:37]*** CUTSNS_PIN = 0 [17:41:37]*** Brake cut motor [17:41:38]Read from MH i2c: 01 [17:41:38]MH_I2C_Read... [17:41:38]*** Stop cut motor [17:41:38]*** Cut end [17:41:38]Read from MH i2c: 01 07 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [17:41:38]process_action close_receipt done [17:41:38]requested_data is exist [17:41:38]produce_requested_data [17:41:38]requested_item fm.sn is exist - process it [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 11 00 00 [17:41:38]Write to MH i2c: E2 08 00 EE 05 80 11 00 00 00 00 00 00 6D [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 17 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 17 00 EE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [17:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:41:38]wFMCommunicate OK [17:41:38]requested_item fd.num is exist - process it [17:41:38]SAM_PROTO_GetFieldsCounters [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 13 00 00 [17:41:38]Write to MH i2c: E2 08 00 EF 05 80 13 00 00 00 00 00 00 70 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 62 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 62 00 EF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 24 02 00 0E 04 04 00 C6 01 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 2E [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 04 24 02 00 0E 04 04 00 C6 01 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 [17:41:38]wFMCommunicate OK [17:41:38]SAM_PROTO_GetFieldsCounters done [17:41:38]requested_item shift.num is exist - process it [17:41:38]requested_item shift.opened is exist - process it [17:41:38]req_shift_opened [17:41:38]FM_GetShiftState [17:41:38]SAM_PROTO_GetShiftState [17:41:38]wFMCommunicate request_size=4 [17:41:38]MH_SAM_APDU [17:41:38]CAPDU: 80 13 01 00 [17:41:38]Write to MH i2c: E2 08 00 F0 05 80 13 01 00 00 00 00 00 72 [17:41:38]Write i2c OK [17:41:38]MH_I2C_Read... [17:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:38]Read from MH i2c: E2 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 0E 00 [17:41:38]MH_I2C_Read... [17:41:38]Read from MH i2c: E2 0E 00 F0 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F2 [17:41:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:41:38]wFMCommunicate OK [17:41:38]SAM_PROTO_GetShiftState done [17:41:38]FM_GetShiftState done [17:41:38]req_shift_opened done [17:41:38]requested_item shift.open_date is exist - process it [17:41:38]req_shift_open_date [17:41:38]req_shift_open_date done [17:41:38]produce_requested_data done [17:41:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140292,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:41:38]process_action_free close_receipt [17:41:38]json_value_free [17:41:38]json_value_free done [17:41:38]process_json_proto returns [17:41:38]Send response to host [17:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140292,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:41:38]free response buf [17:41:38]execute_script done [17:41:38]execute_script returns [17:41:38]free content buf [17:41:38]Sock 9.Close socket [17:41:38]Sock 9.Thread stoped [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:32]accept exits with 7 [17:42:32]New connection [17:42:32]New thread 3067612516 created [17:42:32]Thread 3067469156 joined [17:42:32]Waiting for new connection... [17:42:32] Sock 7.Parse request [17:42:32]Sock 7.Check first char [17:42:32]Sock 7.First char is OK [17:42:32]request: POST /json_proto HTTP/1.0 [17:42:32]Method: POST [17:42:32]URL: /json_proto [17:42:32]Method is POST - this is cgi request [17:42:32]url: /json_proto [17:42:32]query_string will be loaded in cgi processing [17:42:32]execute_cgi json_proto POST (null) [17:42:32]execute_cgi path=json_proto method=POST [17:42:32]POST find Content-Length [17:42:32]Host: 172.17.45.67:8080 [17:42:32]Content-Length: 677 [17:42:32]Content-Type: application/json [17:42:32] [17:42:32]POST finish read [17:42:32]Found Content-Length = 677 [17:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:32]execute_script... [17:42: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)594150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:32]POST & json_proto [17:42:32]process_json_proto [17:42:32]json parsed OK: [17:42:32]protocol is kg_v1.0 [17:42:32]action value=close_receipt [17:42:32]process_action close_receipt [17:42:32]cmd_close_receipt [17:42:32]MH_GetDate [17:42:32]Write to MH i2c: F0 00 00 F1 05 E5 [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: F0 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: F0 09 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: F0 09 00 F1 05 00 09 27 C6 66 5F 7F 2B 66 B9 [17:42:32]GetLastDocTimeStamp 1724262094 [17:42:32]current date 1724262153 [17:42:32]FM_GetShiftState [17:42:32]SAM_PROTO_GetShiftState [17:42:32]wFMCommunicate request_size=4 [17:42:32]MH_SAM_APDU [17:42:32]CAPDU: 80 13 01 00 [17:42:32]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [17:42:32]Write i2c OK [17:42:32]MH_I2C_Read... [17:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:32]Read from MH i2c: E2 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 0E 00 [17:42:32]MH_I2C_Read... [17:42:32]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F4 [17:42:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:42:32]wFMCommunicate OK [17:42:32]SAM_PROTO_GetShiftState done [17:42:32]FM_GetShiftState done [17:42:32]opened in 1724200467 [17:42:32]opened+sec_in_day 1724286867 [17:42:32]quantity*price = 30051 [17:42:32]sum+1 = 30052 [17:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 310 21.08.2024 17:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140293 ФПД: 38309308592680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140293&fm=38309308592680&tin=02508201610067®Number=0000000000092569&sum=30000 [17:42:34]StoreToDocumentArchive [17:42:34]shift 454 fd 140293 [17:42:34]save to /storage/0454/doc_00140293 [17:42:34]save last doc name /storage/0454/doc_00140293 to /storage/kkm_last_doc_name [17:42:34]save OK [17:42:34]Clear old archive folders... [17:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:34]tlvbuf is 00C36A70 [17:42:34]SAM_PROTO_ClearQueue [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 09 00 00 [17:42:34]Write to MH i2c: E2 08 00 FF 05 80 09 00 00 00 00 00 00 76 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]SAM_PROTO_ClearQueue done [17:42:34]KKMCreateOFDPacket [17:42:34]OFDProtocolAddRootSTLVToBuf [17:42:34]FM_MakeSignedData [17:42:34]FM_MakeSignedData [17:42:34]SAM_PROTO_SignData [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 0D 01 02 [17:42:34]Write to MH i2c: E2 08 00 00 06 80 0D 01 02 00 00 00 00 7F [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]wFMCommunicate request_size=255 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 09 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 24 02 00 35 04 06 00 22 [17:42:34]Write to MH i2c: E2 02 01 01 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 09 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 24 02 00 35 04 06 00 22 00 00 E7 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]wFMCommunicate request_size=10 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 0D 02 02 05 D7 94 BA F2 28 [17:42:34]Write to MH i2c: E2 0D 00 02 06 80 0D 02 02 05 00 D7 94 BA F2 28 00 00 CB [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [17:42:34]RAPDU: 90 00 [17:42:34]wFMCommunicate OK [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 0D 03 02 [17:42:34]Write to MH i2c: E2 08 00 03 06 80 0D 03 02 00 00 00 00 84 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 0B 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 0B 00 03 06 00 89 B2 2B 4F D8 55 0F C6 90 00 3C [17:42:34]RAPDU: 89 B2 2B 4F D8 55 0F C6 90 00 [17:42:34]wFMCommunicate OK [17:42:34]SAM_PROTO_SignData done [17:42:34]FM_MakeSignedData done [17:42:34]CreateOFDProtocolMessage [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 11 00 00 [17:42:34]Write to MH i2c: E2 08 00 04 06 80 11 00 00 00 00 00 00 84 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 17 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 17 00 04 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [17:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:42:34]wFMCommunicate OK [17:42:34]CreateOFDProtocolMessage done [17:42:34]OFDSenderStorePacket 140293 [17:42:34]StoreOFDPacket docnum=140293 [17:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F 9E 07 01 4A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 09 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 24 02 00 35 04 06 00 22 D7 94 BA F2 28 89 B2 2B 4F D8 55 0F C6 [17:42:34]CheckFolder [17:42:34]dirname=/storage/ofd_packets [17:42:34]CheckFolder done [17:42:34]ProducePacketName [17:42:34]name=ofd_packets/00140293 [17:42:34]NVStorageSaveData ofd_packets/00140293 [17:42:34]File name is /storage/ofd_packets/00140293 [17:42:34]Write 301 bytes [17:42:34]NVStorageSaveData done [17:42:34]OFDSenderStorePacket done [17:42:34]KKMCreateOFDPacket done [17:42:34]NVStorageSaveData kkm_last_timestamp [17:42:34]File name is /storage/kkm_last_timestamp [17:42:34]Write 4 bytes [17:42:34]NVStorageSaveData done [17:42:34]ExternCall_PrintAddStr [17:42:34]wPrintStart [17:42:34]Write to MH i2c: 01 00 00 05 06 0B [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 07 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: 01 07 00 05 06 00 00 00 00 00 FF 0F 20 [17:42:34]RasterBufferAndPrint [17:42:34]line Счет N : (1)594150 [17:42:34]line ИНН: 02508201610067 [17:42:34]line Контрольно-Кассовый Чек [17:42:34]line ПРОДАЖА [17:42:34]line ТРК (МРК, ГНК) : 41 [17:42:34]line Товар: 2710124500 [17:42:34]line Аи-95-К-5 [17:42:34]line 4.050 * 74.20 [17:42:34]line = 300.51 [17:42:34]line НДС 12% НСП 1% [17:42:34]line > о реализуемом товаре [17:42:34]line ОКРУГЛЕНИЕ: -0.51 [17:42:34]line ИТОГО: 300.00 [17:42:34]line Внесено: 300.00 [17:42:34]line СДАЧА: 0.00 [17:42:34]line НСП 1% : 2.66 [17:42:34]line НДС 12% : 31.91 [17:42:34]line Наличными: 300.00 [17:42:34]line Безнал.: 0.00 [17:42:34]line Место: АЗС № 136 "Партнер Нефть" [17:42:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:42:34]line СНО: Общий режим [17:42:34]line Чек 310 21.08.2024 17:42 [17:42:34]line Смена: 454 ФФД: 1.0 [17:42:34]line ЗНМ: 0300000067 [17:42:34]line РНМ: 0000000000092569 [17:42:34]line Версия ККМ: 001 [17:42:34]line ФМ: 0000000000871776 [17:42:34]line ФД: 140293 [17:42:34]line ФПД: 38309308592680 [17:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140293&fm=38309308592680&tin=02508201610067®Number=0000000000092569&sum=30000 [17:42:34]written 0, free lines is 4095 [17:42:34]OFD Sender: Processing packet 140293 [packets to send 137, broken 136] [17:42:34]ProducePacketName [17:42:34]name=ofd_packets/00140293 [17:42:34]OFD Sender: To server: pG, [17:42:34]CommunicateWithHost lk.salyk.kg:30040 [17:42:34]ConnectInit lk.salyk.kg [17:42:35]Connected sock=9 [17:42: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 37 36 0F 01 00 00 9F 9E 07 01 4A C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 09 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 05 24 02 00 35 04 06 00 22 D7 94 BA F2 28 89 B2 2B 4F D8 55 0F C6 [17:42: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 37 36 4F 00 00 00 CA 68 47 00 A9 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 37 36 10 04 04 00 05 24 02 00 F4 03 04 00 99 CD C5 66 B6 04 01 00 00 3E 75 6C 41 EA F4 6B B2 [17:42:35]CommunicateWithHost err = 0 [17:42:35]CheckOFDResponse [17:42:35]1017 (14) - 77093643461234 [17:42:35]1041 (16) - 0000000000871776 [17:42:35]1040 (4) - 140293 [17:42:35]1012 (4) - 21.08.2024 11:20 [17:42:35]1206 (1) - 0 [17:42:35]OFD Sender: Remove packet 140293 [17:42:35]ProducePacketName [17:42:35]name=ofd_packets/00140293 [17:42:35]NVStorageDeleteData [17:42:35]Write to MH i2c: 01 00 00 30 06 36 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 DD 0C 26 [17:42:35]RasterBufferAndPrint [17:42:35]line [17:42:35]line [17:42:35]line [17:42:35]line [17:42:35]line [17:42:35]written 0, free lines is 3299 [17:42:35]MH_Cut [17:42:35]Write to MH i2c: D1 01 00 37 06 01 0F [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: D1 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: D1 01 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: D1 01 00 37 06 00 0E [17:42:35]Write to MH i2c: 01 00 00 38 06 3E [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]OFD Sender: No OFD packet to send [17:42:36]*** Cut start [17:42:36]*** Partial cut [17:42:36]*** CUTSNS_PIN = 1 [17:42:36]*** CUTSNS_PIN = 0 [17:42:36]*** Brake cut motor [17:42:36]Read from MH i2c: 01 [17:42:36]MH_I2C_Read... [17:42:36]*** Stop cut motor [17:42:36]*** Cut end [17:42:36]Read from MH i2c: 01 07 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [17:42:36]process_action close_receipt done [17:42:36]requested_data is exist [17:42:36]produce_requested_data [17:42:36]requested_item fm.sn is exist - process it [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 11 00 00 [17:42:36]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:36]Read from MH i2c: E2 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 17 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [17:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:42:36]wFMCommunicate OK [17:42:36]requested_item fd.num is exist - process it [17:42:36]SAM_PROTO_GetFieldsCounters [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 13 00 00 [17:42:36]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:36]Read from MH i2c: E2 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 62 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 62 00 3A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 24 02 00 0E 04 04 00 C6 01 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 7E [17:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 05 24 02 00 0E 04 04 00 C6 01 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 [17:42:36]wFMCommunicate OK [17:42:36]SAM_PROTO_GetFieldsCounters done [17:42:36]requested_item shift.num is exist - process it [17:42:36]requested_item shift.opened is exist - process it [17:42:36]req_shift_opened [17:42:36]FM_GetShiftState [17:42:36]SAM_PROTO_GetShiftState [17:42:36]wFMCommunicate request_size=4 [17:42:36]MH_SAM_APDU [17:42:36]CAPDU: 80 13 01 00 [17:42:36]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 [17:42:36]MH_I2C_Read... [17:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:36]Read from MH i2c: E2 0E 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3E [17:42:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:42:36]wFMCommunicate OK [17:42:36]SAM_PROTO_GetShiftState done [17:42:36]FM_GetShiftState done [17:42:36]req_shift_opened done [17:42:36]requested_item shift.open_date is exist - process it [17:42:36]req_shift_open_date [17:42:36]req_shift_open_date done [17:42:36]produce_requested_data done [17:42:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140293,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:42:36]process_action_free close_receipt [17:42:36]json_value_free [17:42:36]json_value_free done [17:42:36]process_json_proto returns [17:42:36]Send response to host [17:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140293,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:42:36]free response buf [17:42:36]execute_script done [17:42:36]execute_script returns [17:42:36]free content buf [17:42:36]Sock 7.Close socket [17:42:36]Sock 7.Thread stoped [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:16]accept exits with 10 [17:43:16]New connection [17:43:16]New thread 3067469156 created [17:43:16]Thread 3067612516 joined [17:43:16]Waiting for new connection... [17:43:16] Sock 10.Parse request [17:43:16]Sock 10.Check first char [17:43:16]Sock 10.First char is OK [17:43:16]request: POST /json_proto HTTP/1.0 [17:43:16]Method: POST [17:43:16]URL: /json_proto [17:43:16]Method is POST - this is cgi request [17:43:16]url: /json_proto [17:43:16]query_string will be loaded in cgi processing [17:43:16]execute_cgi json_proto POST (null) [17:43:16]execute_cgi path=json_proto method=POST [17:43:16]POST find Content-Length [17:43:16]Host: 172.17.45.67:8080 [17:43:16]Content-Length: 677 [17:43:16]Content-Type: application/json [17:43:16] [17:43:16]POST finish read [17:43:16]Found Content-Length = 677 [17:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:16]execute_script... [17:43: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)594151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:16]POST & json_proto [17:43:16]process_json_proto [17:43:16]json parsed OK: [17:43:16]protocol is kg_v1.0 [17:43:16]action value=close_receipt [17:43:16]process_action close_receipt [17:43:16]cmd_close_receipt [17:43:16]MH_GetDate [17:43:16]Write to MH i2c: F0 00 00 3C 06 31 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 09 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 09 00 3C 06 00 34 27 C6 66 5F 7F 2B 66 30 [17:43:16]GetLastDocTimeStamp 1724262153 [17:43:16]current date 1724262196 [17:43:16]FM_GetShiftState [17:43:16]SAM_PROTO_GetShiftState [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 13 01 00 [17:43:16]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:16]Read from MH i2c: E2 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 0E 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 40 [17:43:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:43:16]wFMCommunicate OK [17:43:16]SAM_PROTO_GetShiftState done [17:43:16]FM_GetShiftState done [17:43:16]opened in 1724200467 [17:43:16]opened+sec_in_day 1724286867 [17:43:16]quantity*price = 50036 [17:43:16]sum+1 = 50037 [17:43:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 311 21.08.2024 17:43 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140294 ФПД: 245803416575695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140294&fm=245803416575695&tin=02508201610067®Number=0000000000092569&sum=50000 [17:43:17]StoreToDocumentArchive [17:43:17]shift 454 fd 140294 [17:43:17]save to /storage/0454/doc_00140294 [17:43:17]save last doc name /storage/0454/doc_00140294 to /storage/kkm_last_doc_name [17:43:17]save OK [17:43:17]Clear old archive folders... [17:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:17]tlvbuf is 00C39A10 [17:43:17]SAM_PROTO_ClearQueue [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 09 00 00 [17:43:17]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]SAM_PROTO_ClearQueue done [17:43:17]KKMCreateOFDPacket [17:43:17]OFDProtocolAddRootSTLVToBuf [17:43:17]FM_MakeSignedData [17:43:17]FM_MakeSignedData [17:43:17]SAM_PROTO_SignData [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 01 02 [17:43:17]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=255 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 24 02 00 35 04 06 00 DF [17:43:17]Write to MH i2c: E2 02 01 4C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 24 02 00 35 04 06 00 DF 00 00 E4 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=10 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 02 02 05 8E 91 54 5E CF [17:43:17]Write to MH i2c: E2 0D 00 4D 06 80 0D 02 02 05 00 8E 91 54 5E CF 00 00 77 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 03 02 [17:43:17]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 4E 06 00 F6 9C 95 1B 84 4A 1A E7 90 00 E1 [17:43:17]RAPDU: F6 9C 95 1B 84 4A 1A E7 90 00 [17:43:17]wFMCommunicate OK [17:43:17]SAM_PROTO_SignData done [17:43:17]FM_MakeSignedData done [17:43:17]CreateOFDProtocolMessage [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 11 00 00 [17:43:17]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [17:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:43:17]wFMCommunicate OK [17:43:17]CreateOFDProtocolMessage done [17:43:17]OFDSenderStorePacket 140294 [17:43:17]StoreOFDPacket docnum=140294 [17:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7E E5 07 01 28 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 24 02 00 35 04 06 00 DF 8E 91 54 5E CF F6 9C 95 1B 84 4A 1A E7 [17:43:17]CheckFolder [17:43:17]dirname=/storage/ofd_packets [17:43:17]CheckFolder done [17:43:17]ProducePacketName [17:43:17]name=ofd_packets/00140294 [17:43:17]NVStorageSaveData ofd_packets/00140294 [17:43:17]File name is /storage/ofd_packets/00140294 [17:43:17]Write 301 bytes [17:43:17]NVStorageSaveData done [17:43:17]OFDSenderStorePacket done [17:43:17]KKMCreateOFDPacket done [17:43:17]NVStorageSaveData kkm_last_timestamp [17:43:17]File name is /storage/kkm_last_timestamp [17:43:17]Write 4 bytes [17:43:17]NVStorageSaveData done [17:43:17]ExternCall_PrintAddStr [17:43:17]wPrintStart [17:43:17]Write to MH i2c: 01 00 00 50 06 56 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [17:43:17]RasterBufferAndPrint [17:43:17]line Счет N : (1)594151 [17:43:17]line ИНН: 02508201610067 [17:43:17]line Контрольно-Кассовый Чек [17:43:17]line ПРОДАЖА [17:43:17]line ТРК (МРК, ГНК) : 52 [17:43:17]line Товар: 2710124130 [17:43:17]line Аи-92-К-5 [17:43:17]line 7.380 * 67.80 [17:43:17]line = 500.36 [17:43:17]line НДС 12% НСП 1% [17:43:17]line > о реализуемом товаре [17:43:17]line ОКРУГЛЕНИЕ: -0.36 [17:43:17]line ИТОГО: 500.00 [17:43:17]line Внесено: 500.00 [17:43:17]line СДАЧА: 0.00 [17:43:17]line НСП 1% : 4.43 [17:43:17]line НДС 12% : 53.14 [17:43:17]line Наличными: 500.00 [17:43:17]line Безнал.: 0.00 [17:43:17]line Место: АЗС № 136 "Партнер Нефть" [17:43:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:43:17]line СНО: Общий режим [17:43:17]line Чек 311 21.08.2024 17:43 [17:43:17]line Смена: 454 ФФД: 1.0 [17:43:17]line ЗНМ: 0300000067 [17:43:17]line РНМ: 0000000000092569 [17:43:17]line Версия ККМ: 001 [17:43:17]line ФМ: 0000000000871776 [17:43:17]line ФД: 140294 [17:43:17]line ФПД: 245803416575695 [17:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174316&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140294&fm=245803416575695&tin=02508201610067®Number=0000000000092569&sum=50000 [17:43:18]written 0, free lines is 4095 [17:43:18]OFD Sender: Processing packet 140294 [packets to send 137, broken 136] [17:43:18]ProducePacketName [17:43:18]name=ofd_packets/00140294 [17:43:18]OFD Sender: To server: pG, [17:43:18]CommunicateWithHost lk.salyk.kg:30040 [17:43:18]ConnectInit lk.salyk.kg [17:43:18]Connected sock=9 [17:43: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 37 36 0F 01 00 00 7E E5 07 01 28 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 34 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 06 24 02 00 35 04 06 00 DF 8E 91 54 5E CF F6 9C 95 1B 84 4A 1A E7 [17:43: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 37 36 4F 00 00 00 64 05 47 00 A9 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 37 36 10 04 04 00 06 24 02 00 F4 03 04 00 C4 CD C5 66 B6 04 01 00 00 83 AA 06 58 16 F7 71 C3 [17:43:18]CommunicateWithHost err = 0 [17:43:18]CheckOFDResponse [17:43:18]1017 (14) - 77093643461234 [17:43:18]1041 (16) - 0000000000871776 [17:43:18]1040 (4) - 140294 [17:43:18]1012 (4) - 21.08.2024 11:21 [17:43:18]1206 (1) - 0 [17:43:18]OFD Sender: Remove packet 140294 [17:43:18]ProducePacketName [17:43:18]name=ofd_packets/00140294 [17:43:18]NVStorageDeleteData [17:43:18]Write to MH i2c: 01 00 00 7B 06 81 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 EB 0C 7F [17:43:18]RasterBufferAndPrint [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]written 0, free lines is 3313 [17:43:18]MH_Cut [17:43:18]Write to MH i2c: D1 01 00 82 06 01 5A [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 82 06 00 59 [17:43:18]Write to MH i2c: 01 00 00 83 06 89 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:19]OFD Sender: No OFD packet to send [17:43:19]*** Cut start [17:43:19]*** Partial cut [17:43:19]*** CUTSNS_PIN = 1 [17:43:19]*** CUTSNS_PIN = 0 [17:43:19]*** Brake cut motor [17:43:19]Read from MH i2c: 01 [17:43:19]MH_I2C_Read... [17:43:19]*** Stop cut motor [17:43:19]*** Cut end [17:43:19]Read from MH i2c: 01 07 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [17:43:19]process_action close_receipt done [17:43:19]requested_data is exist [17:43:19]produce_requested_data [17:43:19]requested_item fm.sn is exist - process it [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 11 00 00 [17:43:19]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [17:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:43:19]wFMCommunicate OK [17:43:19]requested_item fd.num is exist - process it [17:43:19]SAM_PROTO_GetFieldsCounters [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 00 00 [17:43:19]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 62 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 62 00 85 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 24 02 00 0E 04 04 00 C6 01 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 CD [17:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 06 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetFieldsCounters done [17:43:20]requested_item shift.num is exist - process it [17:43:20]requested_item shift.opened is exist - process it [17:43:20]req_shift_opened [17:43:20]FM_GetShiftState [17:43:20]SAM_PROTO_GetShiftState [17:43:20]wFMCommunicate request_size=4 [17:43:20]MH_SAM_APDU [17:43:20]CAPDU: 80 13 01 00 [17:43:20]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [17:43:20]Write i2c OK [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:20]Read from MH i2c: E2 0E 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 89 [17:43:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetShiftState done [17:43:20]FM_GetShiftState done [17:43:20]req_shift_opened done [17:43:20]requested_item shift.open_date is exist - process it [17:43:20]req_shift_open_date [17:43:20]req_shift_open_date done [17:43:20]produce_requested_data done [17:43:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140294,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:43:20]process_action_free close_receipt [17:43:20]json_value_free [17:43:20]json_value_free done [17:43:20]process_json_proto returns [17:43:20]Send response to host [17:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140294,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:43:20]free response buf [17:43:20]execute_script done [17:43:20]execute_script returns [17:43:20]free content buf [17:43:20]Sock 10.Close socket [17:43:20]Sock 10.Thread stoped [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:46]int [17:43:46]Write to MH i2c: 01 00 00 87 06 8D [17:43:46]*** FLAG_PRN_KEY set [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 87 06 00 08 00 00 00 FF 0F AA [17:43:46]state=0 [17:43:46]Key pressed [17:43:46]Feed [17:43:46]Write to MH i2c: D8 00 00 88 06 65 [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D8 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D8 01 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: D8 01 00 88 06 00 66 [17:43:46]int [17:43:46]Write to MH i2c: 01 00 00 89 06 8F [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 89 06 00 48 00 00 00 3C 00 1A [17:43:46]state=2 [17:43:46]Key pressed [17:43:46]int [17:43:46]Write to MH i2c: 01 00 00 8A 06 90 [17:43:46]*** FLAG_PRN_KEY reset [17:43:46]Write i2c OK [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 [17:43:46]MH_I2C_Read... [17:43:46]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 F6 0F 9C [17:43:46]state=2 [17:43:46]Stop feed [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:58]accept exits with 7 [17:44:58]New connection [17:44:58]New thread 3067612516 created [17:44:58]Thread 3067469156 joined [17:44:58]Waiting for new connection... [17:44:58] Sock 7.Parse request [17:44:58]Sock 7.Check first char [17:44:58]Sock 7.First char is OK [17:44:58]request: POST /json_proto HTTP/1.0 [17:44:58]Method: POST [17:44:58]URL: /json_proto [17:44:58]Method is POST - this is cgi request [17:44:58]url: /json_proto [17:44:58]query_string will be loaded in cgi processing [17:44:58]execute_cgi json_proto POST (null) [17:44:58]execute_cgi path=json_proto method=POST [17:44:58]POST find Content-Length [17:44:58]Host: 172.17.45.67:8080 [17:44:58]Content-Length: 792 [17:44:58]Content-Type: application/json [17:44:58] [17:44:58]POST finish read [17:44:58]Found Content-Length = 792 [17:44:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68902", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:58]execute_script... [17:44:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68902", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:58]POST & json_proto [17:44:58]process_json_proto [17:44:58]json parsed OK: [17:44:58]protocol is kg_v1.0 [17:44:58]action value=close_receipt [17:44:58]process_action close_receipt [17:44:58]cmd_close_receipt [17:44:58]MH_GetDate [17:44:58]Write to MH i2c: F0 00 00 8B 06 80 [17:44:58]Write i2c OK [17:44:58]MH_I2C_Read... [17:44:58]Read from MH i2c: F0 [17:44:58]MH_I2C_Read... [17:44:58]Read from MH i2c: F0 09 00 [17:44:58]MH_I2C_Read... [17:44:58]Read from MH i2c: F0 09 00 8B 06 00 9B 27 C6 66 5F 7F 2B 66 E6 [17:44:58]GetLastDocTimeStamp 1724262196 [17:44:58]current date 1724262299 [17:44:58]FM_GetShiftState [17:44:58]SAM_PROTO_GetShiftState [17:44:58]wFMCommunicate request_size=4 [17:44:58]MH_SAM_APDU [17:44:58]CAPDU: 80 13 01 00 [17:44:58]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [17:44:58]Write i2c OK [17:44:58]MH_I2C_Read... [17:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:58]Read from MH i2c: E2 [17:44:58]MH_I2C_Read... [17:44:58]Read from MH i2c: E2 0E 00 [17:44:58]MH_I2C_Read... [17:44:58]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8F [17:44:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:44:58]wFMCommunicate OK [17:44:58]SAM_PROTO_GetShiftState done [17:44:58]FM_GetShiftState done [17:44:58]opened in 1724200467 [17:44:58]opened+sec_in_day 1724286867 [17:44:58]quantity*price = 0 [17:44:58]sum+1 = 1 [17:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 312 21.08.2024 17:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 68902 ФМ: 0000000000871776 ФД: 140295 ФПД: 192074210373224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174459&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140295&fm=192074210373224&tin=02508201610067®Number=0000000000092569&sum=0 [17:44:59]StoreToDocumentArchive [17:44:59]shift 454 fd 140295 [17:44:59]save to /storage/0454/doc_00140295 [17:44:59]save last doc name /storage/0454/doc_00140295 to /storage/kkm_last_doc_name [17:44:59]save OK [17:44:59]Clear old archive folders... [17:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:59]tlvbuf is 00C34160 [17:44:59]SAM_PROTO_ClearQueue [17:44:59]wFMCommunicate request_size=4 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 09 00 00 [17:44:59]Write to MH i2c: E2 08 00 99 06 80 09 00 00 00 00 00 00 11 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:59]Read from MH i2c: E2 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 03 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [17:44:59]RAPDU: 90 00 [17:44:59]wFMCommunicate OK [17:44:59]SAM_PROTO_ClearQueue done [17:44:59]KKMCreateOFDPacket [17:44:59]OFDProtocolAddRootSTLVToBuf [17:44:59]FM_MakeSignedData [17:44:59]FM_MakeSignedData [17:44:59]SAM_PROTO_SignData [17:44:59]wFMCommunicate request_size=4 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 0D 01 02 [17:44:59]Write to MH i2c: E2 08 00 9A 06 80 0D 01 02 00 00 00 00 19 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=255 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9B 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 24 02 00 35 04 06 00 AE [17:45:00]Write to MH i2c: E2 02 01 9B 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9B 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 24 02 00 35 04 06 00 AE 00 00 FF [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=10 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 02 02 05 B0 C3 14 6E 68 [17:45:00]Write to MH i2c: E2 0D 00 9C 06 80 0D 02 02 05 00 B0 C3 14 6E 68 00 00 83 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [17:45:00]RAPDU: 90 00 [17:45:00]wFMCommunicate OK [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 0D 03 02 [17:45:00]Write to MH i2c: E2 08 00 9D 06 80 0D 03 02 00 00 00 00 1E [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 0B 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 0B 00 9D 06 00 0C A2 9C B1 73 FF 79 A3 90 00 A8 [17:45:00]RAPDU: 0C A2 9C B1 73 FF 79 A3 90 00 [17:45:00]wFMCommunicate OK [17:45:00]SAM_PROTO_SignData done [17:45:00]FM_MakeSignedData done [17:45:00]CreateOFDProtocolMessage [17:45:00]wFMCommunicate request_size=4 [17:45:00]MH_SAM_APDU [17:45:00]CAPDU: 80 11 00 00 [17:45:00]Write to MH i2c: E2 08 00 9E 06 80 11 00 00 00 00 00 00 1E [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:00]Read from MH i2c: E2 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 17 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: E2 17 00 9E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 75 [17:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:00]wFMCommunicate OK [17:45:00]CreateOFDProtocolMessage done [17:45:00]OFDSenderStorePacket 140295 [17:45:00]StoreOFDPacket docnum=140295 [17:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 88 07 01 94 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9B 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 24 02 00 35 04 06 00 AE B0 C3 14 6E 68 0C A2 9C B1 73 FF 79 A3 [17:45:00]CheckFolder [17:45:00]dirname=/storage/ofd_packets [17:45:00]CheckFolder done [17:45:00]ProducePacketName [17:45:00]name=ofd_packets/00140295 [17:45:00]NVStorageSaveData ofd_packets/00140295 [17:45:00]File name is /storage/ofd_packets/00140295 [17:45:00]Write 301 bytes [17:45:00]NVStorageSaveData done [17:45:00]OFDSenderStorePacket done [17:45:00]KKMCreateOFDPacket done [17:45:00]NVStorageSaveData kkm_last_timestamp [17:45:00]File name is /storage/kkm_last_timestamp [17:45:00]Write 4 bytes [17:45:00]NVStorageSaveData done [17:45:00]ExternCall_PrintAddStr [17:45:00]wPrintStart [17:45:00]Write to MH i2c: 01 00 00 9F 06 A5 [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 07 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [17:45:00]RasterBufferAndPrint [17:45:00]line Счет N : (1)594152 [17:45:00]line ИНН: 02508201610067 [17:45:00]line Контрольно-Кассовый Чек [17:45:00]line ПРОДАЖА [17:45:00]line ТРК (МРК, ГНК) : 32 [17:45:00]line Товар: 2710124130 [17:45:00]line Аи-92-К-5 [17:45:00]line 25.000 * 0.00 [17:45:00]line = 0.00 [17:45:00]line НДС 12% НСП 1% [17:45:00]line > о реализуемом товаре [17:45:00]line ИТОГО: 0.00 [17:45:00]line НСП 1% : 0.00 [17:45:00]line НДС 12% : 0.00 [17:45:00]line Наличными: 0.00 [17:45:00]line Безнал.: 0.00 [17:45:00]line Место: АЗС № 136 "Партнер Нефть" [17:45:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:45:00]line СНО: Общий режим [17:45:00]line Чек 312 21.08.2024 17:44 [17:45:00]line Смена: 454 ФФД: 1.0 [17:45:00]line ЗНМ: 0300000067 [17:45:00]line РНМ: 0000000000092569 [17:45:00]line Версия ККМ: 001 [17:45:00]line Талоны: Топливная Карта [17:45:00]line 68902 [17:45:00]line ФМ: 0000000000871776 [17:45:00]line ФД: 140295 [17:45:00]line ФПД: 192074210373224 [17:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174459&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140295&fm=192074210373224&tin=02508201610067®Number=0000000000092569&sum=0 [17:45:00]OFD Sender: Processing packet 140295 [packets to send 137, broken 136] [17:45:00]ProducePacketName [17:45:00]name=ofd_packets/00140295 [17:45:00]OFD Sender: To server: pG, [17:45:00]CommunicateWithHost lk.salyk.kg:30040 [17:45:00]ConnectInit lk.salyk.kg [17:45:00]written 0, free lines is 4095 [17:45:00]Connected sock=10 [17:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 94 88 07 01 94 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9B 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 07 24 02 00 35 04 06 00 AE B0 C3 14 6E 68 0C A2 9C B1 73 FF 79 A3 [17:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 6B 77 47 00 C7 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 37 36 10 04 04 00 07 24 02 00 F4 03 04 00 2B CE C5 66 B6 04 01 00 00 0A 0E 66 52 42 06 40 9A [17:45:01]CommunicateWithHost err = 0 [17:45:01]CheckOFDResponse [17:45:01]1017 (14) - 77093643461234 [17:45:01]1041 (16) - 0000000000871776 [17:45:01]1040 (4) - 140295 [17:45:01]1012 (4) - 21.08.2024 11:23 [17:45:01]1206 (1) - 0 [17:45:01]OFD Sender: Remove packet 140295 [17:45:01]ProducePacketName [17:45:01]name=ofd_packets/00140295 [17:45:01]NVStorageDeleteData [17:45:01]Write to MH i2c: 01 00 00 C9 06 CF [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 07 00 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 02 0D E5 [17:45:01]RasterBufferAndPrint [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]line [17:45:01]written 0, free lines is 3336 [17:45:01]MH_Cut [17:45:01]Write to MH i2c: D1 01 00 D0 06 01 A8 [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 01 00 [17:45:01]MH_I2C_Read... [17:45:01]Read from MH i2c: D1 01 00 D0 06 00 A7 [17:45:01]Write to MH i2c: 01 00 00 D1 06 D7 [17:45:01]Write i2c OK [17:45:01]MH_I2C_Read... [17:45:01]OFD Sender: No OFD packet to send [17:45:01]*** Cut start [17:45:01]*** Partial cut [17:45:01]*** CUTSNS_PIN = 1 [17:45:01]*** CUTSNS_PIN = 0 [17:45:02]*** Brake cut motor [17:45:02]Read from MH i2c: 01 [17:45:02]MH_I2C_Read... [17:45:02]*** Stop cut motor [17:45:02]*** Cut end [17:45:02]Read from MH i2c: 01 07 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [17:45:02]process_action close_receipt done [17:45:02]requested_data is exist [17:45:02]produce_requested_data [17:45:02]requested_item fm.sn is exist - process it [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 11 00 00 [17:45:02]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 17 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [17:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:02]wFMCommunicate OK [17:45:02]requested_item fd.num is exist - process it [17:45:02]SAM_PROTO_GetFieldsCounters [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 13 00 00 [17:45:02]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 62 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 62 00 D3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 24 02 00 0E 04 04 00 C6 01 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 1F [17:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 07 24 02 00 0E 04 04 00 C6 01 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 [17:45:02]wFMCommunicate OK [17:45:02]SAM_PROTO_GetFieldsCounters done [17:45:02]requested_item shift.num is exist - process it [17:45:02]requested_item shift.opened is exist - process it [17:45:02]req_shift_opened [17:45:02]FM_GetShiftState [17:45:02]SAM_PROTO_GetShiftState [17:45:02]wFMCommunicate request_size=4 [17:45:02]MH_SAM_APDU [17:45:02]CAPDU: 80 13 01 00 [17:45:02]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [17:45:02]Write i2c OK [17:45:02]MH_I2C_Read... [17:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:02]Read from MH i2c: E2 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0E 00 [17:45:02]MH_I2C_Read... [17:45:02]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [17:45:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:45:02]wFMCommunicate OK [17:45:02]SAM_PROTO_GetShiftState done [17:45:02]FM_GetShiftState done [17:45:02]req_shift_opened done [17:45:02]requested_item shift.open_date is exist - process it [17:45:02]req_shift_open_date [17:45:02]req_shift_open_date done [17:45:02]produce_requested_data done [17:45:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140295,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:45:02]process_action_free close_receipt [17:45:02]json_value_free [17:45:02]json_value_free done [17:45:02]process_json_proto returns [17:45:02]Send response to host [17:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140295,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:45:02]free response buf [17:45:02]execute_script done [17:45:02]execute_script returns [17:45:02]free content buf [17:45:02]Sock 7.Close socket [17:45:02]Sock 7.Thread stoped [17:45:03]accept exits with 9 [17:45:03]New connection [17:45:03]New thread 3067469156 created [17:45:03]Thread 3067612516 joined [17:45:03]Waiting for new connection... [17:45:03] Sock 9.Parse request [17:45:03]Sock 9.Check first char [17:45:03]Sock 9.First char is OK [17:45:03]request: POST /json_proto HTTP/1.0 [17:45:03]Method: POST [17:45:03]URL: /json_proto [17:45:03]Method is POST - this is cgi request [17:45:03]url: /json_proto [17:45:03]query_string will be loaded in cgi processing [17:45:03]execute_cgi json_proto POST (null) [17:45:03]execute_cgi path=json_proto method=POST [17:45:03]POST find Content-Length [17:45:03]Host: 172.17.45.67:8080 [17:45:03]Content-Length: 677 [17:45:03]Content-Type: application/json [17:45:03] [17:45:03]POST finish read [17:45:03]Found Content-Length = 677 [17:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:03]execute_script... [17:45: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)594154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:03]POST & json_proto [17:45:03]process_json_proto [17:45:03]json parsed OK: [17:45:03]protocol is kg_v1.0 [17:45:03]action value=close_receipt [17:45:03]process_action close_receipt [17:45:03]cmd_close_receipt [17:45:03]MH_GetDate [17:45:03]Write to MH i2c: F0 00 00 D5 06 CA [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 09 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: F0 09 00 D5 06 00 9F 27 C6 66 5F 7F 2B 66 34 [17:45:03]GetLastDocTimeStamp 1724262299 [17:45:03]current date 1724262303 [17:45:03]FM_GetShiftState [17:45:03]SAM_PROTO_GetShiftState [17:45:03]wFMCommunicate request_size=4 [17:45:03]MH_SAM_APDU [17:45:03]CAPDU: 80 13 01 00 [17:45:03]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [17:45:03]Write i2c OK [17:45:03]MH_I2C_Read... [17:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:03]Read from MH i2c: E2 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 [17:45:03]MH_I2C_Read... [17:45:03]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D9 [17:45:03]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:45:03]wFMCommunicate OK [17:45:03]SAM_PROTO_GetShiftState done [17:45:03]FM_GetShiftState done [17:45:03]opened in 1724200467 [17:45:03]opened+sec_in_day 1724286867 [17:45:03]quantity*price = 40002 [17:45:03]sum+1 = 40003 [17:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 313 21.08.2024 17:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140296 ФПД: 26843099706665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174503&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140296&fm=26843099706665&tin=02508201610067®Number=0000000000092569&sum=40000 [17:45:04]StoreToDocumentArchive [17:45:04]shift 454 fd 140296 [17:45:04]save to /storage/0454/doc_00140296 [17:45:04]save last doc name /storage/0454/doc_00140296 to /storage/kkm_last_doc_name [17:45:04]save OK [17:45:04]Clear old archive folders... [17:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:04]tlvbuf is 00C7F840 [17:45:04]SAM_PROTO_ClearQueue [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 09 00 00 [17:45:04]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]SAM_PROTO_ClearQueue done [17:45:04]KKMCreateOFDPacket [17:45:04]OFDProtocolAddRootSTLVToBuf [17:45:04]FM_MakeSignedData [17:45:04]FM_MakeSignedData [17:45:04]SAM_PROTO_SignData [17:45:04]wFMCommunicate request_size=4 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 0D 01 02 [17:45:04]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:04]Read from MH i2c: E2 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 [17:45:04]MH_I2C_Read... [17:45:04]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [17:45:04]RAPDU: 90 00 [17:45:04]wFMCommunicate OK [17:45:04]wFMCommunicate request_size=255 [17:45:04]MH_SAM_APDU [17:45:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 9F 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 24 02 00 35 04 06 00 18 [17:45:04]Write to MH i2c: E2 02 01 E6 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 9F 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 24 02 00 35 04 06 00 18 00 00 0B [17:45:04]Write i2c OK [17:45:04]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 03 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [17:45:05]RAPDU: 90 00 [17:45:05]wFMCommunicate OK [17:45:05]wFMCommunicate request_size=10 [17:45:05]MH_SAM_APDU [17:45:05]CAPDU: 80 0D 02 02 05 69 E5 6C 35 29 [17:45:05]Write to MH i2c: E2 0D 00 E7 06 80 0D 02 02 05 00 69 E5 6C 35 29 00 00 89 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 03 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [17:45:05]RAPDU: 90 00 [17:45:05]wFMCommunicate OK [17:45:05]wFMCommunicate request_size=4 [17:45:05]MH_SAM_APDU [17:45:05]CAPDU: 80 0D 03 02 [17:45:05]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0B 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 0B 00 E8 06 00 BE 23 BA 0D 4C 16 41 93 90 00 48 [17:45:05]RAPDU: BE 23 BA 0D 4C 16 41 93 90 00 [17:45:05]wFMCommunicate OK [17:45:05]SAM_PROTO_SignData done [17:45:05]FM_MakeSignedData done [17:45:05]CreateOFDProtocolMessage [17:45:05]wFMCommunicate request_size=4 [17:45:05]MH_SAM_APDU [17:45:05]CAPDU: 80 11 00 00 [17:45:05]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:05]Read from MH i2c: E2 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 17 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C0 [17:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:05]wFMCommunicate OK [17:45:05]CreateOFDProtocolMessage done [17:45:05]OFDSenderStorePacket 140296 [17:45:05]StoreOFDPacket docnum=140296 [17:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 81 D5 07 01 4C 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 9F 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 24 02 00 35 04 06 00 18 69 E5 6C 35 29 BE 23 BA 0D 4C 16 41 93 [17:45:05]CheckFolder [17:45:05]dirname=/storage/ofd_packets [17:45:05]CheckFolder done [17:45:05]ProducePacketName [17:45:05]name=ofd_packets/00140296 [17:45:05]NVStorageSaveData ofd_packets/00140296 [17:45:05]File name is /storage/ofd_packets/00140296 [17:45:05]Write 301 bytes [17:45:05]NVStorageSaveData done [17:45:05]OFDSenderStorePacket done [17:45:05]KKMCreateOFDPacket done [17:45:05]NVStorageSaveData kkm_last_timestamp [17:45:05]File name is /storage/kkm_last_timestamp [17:45:05]Write 4 bytes [17:45:05]NVStorageSaveData done [17:45:05]ExternCall_PrintAddStr [17:45:05]wPrintStart [17:45:05]Write to MH i2c: 01 00 00 EA 06 F0 [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [17:45:05]RasterBufferAndPrint [17:45:05]line Счет N : (1)594154 [17:45:05]line ИНН: 02508201610067 [17:45:05]line Контрольно-Кассовый Чек [17:45:05]line ПРОДАЖА [17:45:05]line ТРК (МРК, ГНК) : 52 [17:45:05]line Товар: 2710124130 [17:45:05]line Аи-92-К-5 [17:45:05]line 5.900 * 67.80 [17:45:05]line = 400.02 [17:45:05]line НДС 12% НСП 1% [17:45:05]line > о реализуемом товаре [17:45:05]line ОКРУГЛЕНИЕ: -0.02 [17:45:05]line ИТОГО: 400.00 [17:45:05]line Внесено: 400.00 [17:45:05]line СДАЧА: 0.00 [17:45:05]line НСП 1% : 3.54 [17:45:05]line НДС 12% : 42.48 [17:45:05]line Наличными: 400.00 [17:45:05]line Безнал.: 0.00 [17:45:05]line Место: АЗС № 136 "Партнер Нефть" [17:45:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:45:05]line СНО: Общий режим [17:45:05]line Чек 313 21.08.2024 17:45 [17:45:05]line Смена: 454 ФФД: 1.0 [17:45:05]line ЗНМ: 0300000067 [17:45:05]line РНМ: 0000000000092569 [17:45:05]line Версия ККМ: 001 [17:45:05]line ФМ: 0000000000871776 [17:45:05]line ФД: 140296 [17:45:05]line ФПД: 26843099706665 [17:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174503&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140296&fm=26843099706665&tin=02508201610067®Number=0000000000092569&sum=40000 [17:45:05]OFD Sender: Processing packet 140296 [packets to send 137, broken 136] [17:45:05]ProducePacketName [17:45:05]name=ofd_packets/00140296 [17:45:05]OFD Sender: To server: pG, [17:45:05]CommunicateWithHost lk.salyk.kg:30040 [17:45:05]ConnectInit lk.salyk.kg [17:45:05]written 0, free lines is 4095 [17:45:05]Connected sock=10 [17:45: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 37 36 0F 01 00 00 81 D5 07 01 4C 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 9F 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 08 24 02 00 35 04 06 00 18 69 E5 6C 35 29 BE 23 BA 0D 4C 16 41 93 [17:45: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 37 36 4F 00 00 00 63 FB 47 00 E2 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 37 36 10 04 04 00 08 24 02 00 F4 03 04 00 30 CE C5 66 B6 04 01 00 00 9E 1E 99 B2 23 DF 38 85 [17:45:05]CommunicateWithHost err = 0 [17:45:05]CheckOFDResponse [17:45:05]1017 (14) - 77093643461234 [17:45:05]1041 (16) - 0000000000871776 [17:45:05]1040 (4) - 140296 [17:45:05]1012 (4) - 21.08.2024 11:23 [17:45:05]1206 (1) - 0 [17:45:05]OFD Sender: Remove packet 140296 [17:45:05]ProducePacketName [17:45:05]name=ofd_packets/00140296 [17:45:05]NVStorageDeleteData [17:45:05]Write to MH i2c: 01 00 00 15 07 1C [17:45:05]Write i2c OK [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 [17:45:05]MH_I2C_Read... [17:45:05]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 DD 0C 0C [17:45:05]RasterBufferAndPrint [17:45:06]line [17:45:06]line [17:45:06]line [17:45:06]line [17:45:06]line [17:45:06]written 0, free lines is 3308 [17:45:06]MH_Cut [17:45:06]Write to MH i2c: D1 01 00 1C 07 01 F5 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: D1 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: D1 01 00 [17:45:06]MH_I2C_Read... [17:45:06]Read from MH i2c: D1 01 00 1C 07 00 F4 [17:45:06]Write to MH i2c: 01 00 00 1D 07 24 [17:45:06]Write i2c OK [17:45:06]MH_I2C_Read... [17:45:06]OFD Sender: No OFD packet to send [17:45:06]*** Cut start [17:45:06]*** Partial cut [17:45:06]*** CUTSNS_PIN = 1 [17:45:06]*** CUTSNS_PIN = 0 [17:45:06]*** Brake cut motor [17:45:07]Read from MH i2c: 01 [17:45:07]MH_I2C_Read... [17:45:07]*** Stop cut motor [17:45:07]*** Cut end [17:45:07]Read from MH i2c: 01 07 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 FF 0F 39 [17:45:07]process_action close_receipt done [17:45:07]requested_data is exist [17:45:07]produce_requested_data [17:45:07]requested_item fm.sn is exist - process it [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 11 00 00 [17:45:07]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [17:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:07]wFMCommunicate OK [17:45:07]requested_item fd.num is exist - process it [17:45:07]SAM_PROTO_GetFieldsCounters [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 13 00 00 [17:45:07]Write to MH i2c: E2 08 00 1F 07 80 13 00 00 00 00 00 00 A2 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 62 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 62 00 1F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 24 02 00 0E 04 04 00 C6 01 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 70 [17:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 08 24 02 00 0E 04 04 00 C6 01 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 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_GetFieldsCounters done [17:45:07]requested_item shift.num is exist - process it [17:45:07]requested_item shift.opened is exist - process it [17:45:07]req_shift_opened [17:45:07]FM_GetShiftState [17:45:07]SAM_PROTO_GetShiftState [17:45:07]wFMCommunicate request_size=4 [17:45:07]MH_SAM_APDU [17:45:07]CAPDU: 80 13 01 00 [17:45:07]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [17:45:07]Write i2c OK [17:45:07]MH_I2C_Read... [17:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:07]Read from MH i2c: E2 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0E 00 [17:45:07]MH_I2C_Read... [17:45:07]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 24 [17:45:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:45:07]wFMCommunicate OK [17:45:07]SAM_PROTO_GetShiftState done [17:45:07]FM_GetShiftState done [17:45:07]req_shift_opened done [17:45:07]requested_item shift.open_date is exist - process it [17:45:07]req_shift_open_date [17:45:07]req_shift_open_date done [17:45:07]produce_requested_data done [17:45:07]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140296,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:45:07]process_action_free close_receipt [17:45:07]json_value_free [17:45:07]json_value_free done [17:45:07]process_json_proto returns [17:45:07]Send response to host [17:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140296,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:45:07]free response buf [17:45:07]execute_script done [17:45:07]execute_script returns [17:45:07]free content buf [17:45:07]Sock 9.Close socket [17:45:07]Sock 9.Thread stoped [17:45:10]accept exits with 7 [17:45:10]New connection [17:45:10]New thread 3067612516 created [17:45:10]Thread 3067469156 joined [17:45:10]Waiting for new connection... [17:45:10] Sock 7.Parse request [17:45:10]Sock 7.Check first char [17:45:10]Sock 7.First char is OK [17:45:10]request: POST /json_proto HTTP/1.0 [17:45:10]Method: POST [17:45:10]URL: /json_proto [17:45:10]Method is POST - this is cgi request [17:45:10]url: /json_proto [17:45:10]query_string will be loaded in cgi processing [17:45:10]execute_cgi json_proto POST (null) [17:45:10]execute_cgi path=json_proto method=POST [17:45:10]POST find Content-Length [17:45:10]Host: 172.17.45.67:8080 [17:45:10]Content-Length: 819 [17:45:10]Content-Type: application/json [17:45:10] [17:45:10]POST finish read [17:45:10]Found Content-Length = 819 [17:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:10]execute_script... [17: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)594153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:10]POST & json_proto [17:45:10]process_json_proto [17:45:10]json parsed OK: [17:45:10]protocol is kg_v1.0 [17:45:10]action value=close_receipt [17:45:10]process_action close_receipt [17:45:10]cmd_close_receipt [17:45:10]MH_GetDate [17:45:10]Write to MH i2c: F0 00 00 21 07 17 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 09 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: F0 09 00 21 07 00 A6 27 C6 66 5F 7F 2B 66 88 [17:45:10]GetLastDocTimeStamp 1724262303 [17:45:10]current date 1724262310 [17:45:10]FM_GetShiftState [17:45:10]SAM_PROTO_GetShiftState [17:45:10]wFMCommunicate request_size=4 [17:45:10]MH_SAM_APDU [17:45:10]CAPDU: 80 13 01 00 [17:45:10]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [17:45:10]Write i2c OK [17:45:10]MH_I2C_Read... [17:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:10]Read from MH i2c: E2 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 [17:45:10]MH_I2C_Read... [17:45:10]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 26 [17:45:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:45:10]wFMCommunicate OK [17:45:10]SAM_PROTO_GetShiftState done [17:45:10]FM_GetShiftState done [17:45:10]opened in 1724200467 [17:45:10]opened+sec_in_day 1724286867 [17:45:10]quantity*price = 100035 [17:45:10]sum+1 = 100036 [17:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 314 21.08.2024 17:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140297 ФПД: 173968090208418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140297&fm=173968090208418&tin=02508201610067®Number=0000000000092569&sum=100000 [17:45:11]StoreToDocumentArchive [17:45:11]shift 454 fd 140297 [17:45:11]save to /storage/0454/doc_00140297 [17:45:11]save last doc name /storage/0454/doc_00140297 to /storage/kkm_last_doc_name [17:45:11]save OK [17:45:11]Clear old archive folders... [17:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:45:11]tlvbuf is 00C81450 [17:45:11]SAM_PROTO_ClearQueue [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 09 00 00 [17:45:11]Write to MH i2c: E2 08 00 2F 07 80 09 00 00 00 00 00 00 A8 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [17:45:11]RAPDU: 90 00 [17:45:11]wFMCommunicate OK [17:45:11]SAM_PROTO_ClearQueue done [17:45:11]KKMCreateOFDPacket [17:45:11]OFDProtocolAddRootSTLVToBuf [17:45:11]FM_MakeSignedData [17:45:11]FM_MakeSignedData [17:45:11]SAM_PROTO_SignData [17:45:11]wFMCommunicate request_size=4 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 0D 01 02 [17:45:11]Write to MH i2c: E2 08 00 30 07 80 0D 01 02 00 00 00 00 B0 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:11]Read from MH i2c: E2 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 [17:45:11]MH_I2C_Read... [17:45:11]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [17:45:11]RAPDU: 90 00 [17:45:11]wFMCommunicate OK [17:45:11]wFMCommunicate request_size=253 [17:45:11]MH_SAM_APDU [17:45:11]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A6 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 24 02 00 35 04 06 00 9E 39 1A 38 18 A2 [17:45:11]Write to MH i2c: E2 00 01 31 07 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A6 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 24 02 00 35 04 06 00 9E 39 1A 38 18 A2 00 00 35 [17:45:11]Write i2c OK [17:45:11]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [17:45:12]RAPDU: 90 00 [17:45:12]wFMCommunicate OK [17:45:12]wFMCommunicate request_size=4 [17:45:12]MH_SAM_APDU [17:45:12]CAPDU: 80 0D 03 02 [17:45:12]Write to MH i2c: E2 08 00 32 07 80 0D 03 02 00 00 00 00 B4 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 0B 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 0B 00 32 07 00 F4 D8 45 D9 B9 25 8F 0F 90 00 1B [17:45:12]RAPDU: F4 D8 45 D9 B9 25 8F 0F 90 00 [17:45:12]wFMCommunicate OK [17:45:12]SAM_PROTO_SignData done [17:45:12]FM_MakeSignedData done [17:45:12]CreateOFDProtocolMessage [17:45:12]wFMCommunicate request_size=4 [17:45:12]MH_SAM_APDU [17:45:12]CAPDU: 80 11 00 00 [17:45:12]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:12]Read from MH i2c: E2 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 17 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: E2 17 00 33 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [17:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:12]wFMCommunicate OK [17:45:12]CreateOFDProtocolMessage done [17:45:12]OFDSenderStorePacket 140297 [17:45:12]StoreOFDPacket docnum=140297 [17:45:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 EA 52 00 01 A0 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A6 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 24 02 00 35 04 06 00 9E 39 1A 38 18 A2 F4 D8 45 D9 B9 25 8F 0F [17:45:12]CheckFolder [17:45:12]dirname=/storage/ofd_packets [17:45:12]CheckFolder done [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00140297 [17:45:12]NVStorageSaveData ofd_packets/00140297 [17:45:12]File name is /storage/ofd_packets/00140297 [17:45:12]Write 294 bytes [17:45:12]NVStorageSaveData done [17:45:12]OFDSenderStorePacket done [17:45:12]KKMCreateOFDPacket done [17:45:12]NVStorageSaveData kkm_last_timestamp [17:45:12]File name is /storage/kkm_last_timestamp [17:45:12]Write 4 bytes [17:45:12]NVStorageSaveData done [17:45:12]ExternCall_PrintAddStr [17:45:12]wPrintStart [17:45:12]Write to MH i2c: 01 00 00 34 07 3B [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [17:45:12]RasterBufferAndPrint [17:45:12]line Счет N : (1)594153 [17:45:12]line ИНН: 02508201610067 [17:45:12]line Контрольно-Кассовый Чек [17:45:12]line ПРОДАЖА [17:45:12]line ТРК (МРК, ГНК) : 63 [17:45:12]line Товар: 2710124130 [17:45:12]line SU-92 [17:45:12]line 14.540 * 68.80 [17:45:12]line = 1000.35 [17:45:12]line НДС 12% НСП 1% [17:45:12]line > о реализуемом товаре [17:45:12]line ОКРУГЛЕНИЕ: -0.35 [17:45:12]line ИТОГО: 1000.00 [17:45:12]line НСП 1% : 8.85 [17:45:12]line НДС 12% : 106.23 [17:45:12]line Наличными: 0.00 [17:45:12]line Безнал.: 1000.00 [17:45:12]line Место: АЗС № 136 "Партнер Нефть" [17:45:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:45:12]line СНО: Общий режим [17:45:12]line Чек 314 21.08.2024 17:45 [17:45:12]line Смена: 454 ФФД: 1.0 [17:45:12]line ЗНМ: 0300000067 [17:45:12]line РНМ: 0000000000092569 [17:45:12]line Версия ККМ: 001 [17:45:12]line Платежная система: Бакай Банк [17:45:12]line ФМ: 0000000000871776 [17:45:12]line ФД: 140297 [17:45:12]line ФПД: 173968090208418 [17:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174510&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140297&fm=173968090208418&tin=02508201610067®Number=0000000000092569&sum=100000 [17:45:12]OFD Sender: Processing packet 140297 [packets to send 137, broken 136] [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00140297 [17:45:12]OFD Sender: To server: pG, [17:45:12]CommunicateWithHost lk.salyk.kg:30040 [17:45:12]ConnectInit lk.salyk.kg [17:45:12]written 0, free lines is 4095 [17:45:12]Connected sock=10 [17: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 37 36 08 01 00 00 EA 52 00 01 A0 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 A6 27 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 24 02 00 35 04 06 00 9E 39 1A 38 18 A2 F4 D8 45 D9 B9 25 8F 0F [17: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 37 36 4F 00 00 00 82 A2 47 00 A6 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 09 24 02 00 F4 03 04 00 37 CE C5 66 B6 04 01 00 00 BC 90 A9 C3 C5 7D EA F2 [17:45:12]CommunicateWithHost err = 0 [17:45:12]CheckOFDResponse [17:45:12]1017 (14) - 77093643461234 [17:45:12]1041 (16) - 0000000000871776 [17:45:12]1040 (4) - 140297 [17:45:12]1012 (4) - 21.08.2024 11:23 [17:45:12]1206 (1) - 0 [17:45:12]OFD Sender: Remove packet 140297 [17:45:12]ProducePacketName [17:45:12]name=ofd_packets/00140297 [17:45:12]NVStorageDeleteData [17:45:12]Write to MH i2c: 01 00 00 5F 07 66 [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 0D 0D 87 [17:45:12]RasterBufferAndPrint [17:45:12]line [17:45:12]line [17:45:12]line [17:45:12]line [17:45:12]line [17:45:12]written 0, free lines is 3362 [17:45:12]MH_Cut [17:45:12]Write to MH i2c: D1 01 00 66 07 01 3F [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: D1 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: D1 01 00 [17:45:12]MH_I2C_Read... [17:45:12]Read from MH i2c: D1 01 00 66 07 00 3E [17:45:12]Write to MH i2c: 01 00 00 67 07 6E [17:45:12]Write i2c OK [17:45:12]MH_I2C_Read... [17:45:13]OFD Sender: No OFD packet to send [17:45:13]*** Cut start [17:45:13]*** Partial cut [17:45:13]*** CUTSNS_PIN = 1 [17:45:13]*** CUTSNS_PIN = 0 [17:45:13]*** Brake cut motor [17:45:14]Read from MH i2c: 01 [17:45:14]MH_I2C_Read... [17:45:14]*** Stop cut motor [17:45:14]*** Cut end [17:45:14]Read from MH i2c: 01 07 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [17:45:14]process_action close_receipt done [17:45:14]requested_data is exist [17:45:14]produce_requested_data [17:45:14]requested_item fm.sn is exist - process it [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 11 00 00 [17:45:14]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 40 [17:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:45:14]wFMCommunicate OK [17:45:14]requested_item fd.num is exist - process it [17:45:14]SAM_PROTO_GetFieldsCounters [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 00 00 [17:45:14]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 62 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 62 00 69 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 24 02 00 0E 04 04 00 C6 01 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 BE [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 09 24 02 00 0E 04 04 00 C6 01 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 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetFieldsCounters done [17:45:14]requested_item shift.num is exist - process it [17:45:14]requested_item shift.opened is exist - process it [17:45:14]req_shift_opened [17:45:14]FM_GetShiftState [17:45:14]SAM_PROTO_GetShiftState [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 01 00 [17:45:14]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6E [17:45:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetShiftState done [17:45:14]FM_GetShiftState done [17:45:14]req_shift_opened done [17:45:14]requested_item shift.open_date is exist - process it [17:45:14]req_shift_open_date [17:45:14]req_shift_open_date done [17:45:14]produce_requested_data done [17:45:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140297,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:45:14]process_action_free close_receipt [17:45:14]json_value_free [17:45:14]json_value_free done [17:45:14]process_json_proto returns [17:45:14]Send response to host [17:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140297,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:45:14]free response buf [17:45:14]execute_script done [17:45:14]execute_script returns [17:45:14]free content buf [17:45:14]Sock 7.Close socket [17:45:14]Sock 7.Thread stoped [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:38]accept exits with 9 [17:48:38]New connection [17:48:38]New thread 3067469156 created [17:48:38]Thread 3067612516 joined [17:48:38]Waiting for new connection... [17:48:38] Sock 9.Parse request [17:48:38]Sock 9.Check first char [17:48:38]Sock 9.First char is OK [17:48:38]request: POST /json_proto HTTP/1.0 [17:48:38]Method: POST [17:48:38]URL: /json_proto [17:48:38]Method is POST - this is cgi request [17:48:38]url: /json_proto [17:48:38]query_string will be loaded in cgi processing [17:48:38]execute_cgi json_proto POST (null) [17:48:38]execute_cgi path=json_proto method=POST [17:48:38]POST find Content-Length [17:48:38]Host: 172.17.45.67:8080 [17:48:38]Content-Length: 682 [17:48:38]Content-Type: application/json [17:48:38] [17:48:38]POST finish read [17:48:38]Found Content-Length = 682 [17:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:38]execute_script... [17:48: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)594155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:38]POST & json_proto [17:48:38]process_json_proto [17:48:38]json parsed OK: [17:48:38]protocol is kg_v1.0 [17:48:38]action value=close_receipt [17:48:38]process_action close_receipt [17:48:38]cmd_close_receipt [17:48:38]MH_GetDate [17:48:38]Write to MH i2c: F0 00 00 6B 07 61 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: F0 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: F0 09 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: F0 09 00 6B 07 00 77 28 C6 66 5F 7F 2B 66 A4 [17:48:38]GetLastDocTimeStamp 1724262310 [17:48:38]current date 1724262519 [17:48:38]FM_GetShiftState [17:48:38]SAM_PROTO_GetShiftState [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 13 01 00 [17:48:38]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0E 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [17:48:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_GetShiftState done [17:48:38]FM_GetShiftState done [17:48:38]opened in 1724200467 [17:48:38]opened+sec_in_day 1724286867 [17:48:38]quantity*price = 100005 [17:48:38]sum+1 = 100006 [17:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 315 21.08.2024 17:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140298 ФПД: 71904916225591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140298&fm=71904916225591&tin=02508201610067®Number=0000000000092569&sum=100000 [17:48:39]StoreToDocumentArchive [17:48:39]shift 454 fd 140298 [17:48:39]save to /storage/0454/doc_00140298 [17:48:39]save last doc name /storage/0454/doc_00140298 to /storage/kkm_last_doc_name [17:48:39]save OK [17:48:39]Clear old archive folders... [17:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:39]tlvbuf is 00CA6D70 [17:48:39]SAM_PROTO_ClearQueue [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 09 00 00 [17:48:39]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:39]Read from MH i2c: E2 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 03 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [17:48:39]RAPDU: 90 00 [17:48:39]wFMCommunicate OK [17:48:39]SAM_PROTO_ClearQueue done [17:48:39]KKMCreateOFDPacket [17:48:39]OFDProtocolAddRootSTLVToBuf [17:48:39]FM_MakeSignedData [17:48:39]FM_MakeSignedData [17:48:39]SAM_PROTO_SignData [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 0D 01 02 [17:48:39]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:39]Read from MH i2c: E2 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 03 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [17:48:39]RAPDU: 90 00 [17:48:39]wFMCommunicate OK [17:48:39]wFMCommunicate request_size=255 [17:48:39]MH_SAM_APDU [17:48: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 77 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 24 02 00 35 04 06 00 41 [17:48:39]Write to MH i2c: E2 02 01 7B 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 77 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 24 02 00 35 04 06 00 41 00 00 51 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [17:48:40]RAPDU: 90 00 [17:48:40]wFMCommunicate OK [17:48:40]wFMCommunicate request_size=10 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 0D 02 02 05 65 AA FD 3E 37 [17:48:40]Write to MH i2c: E2 0D 00 7C 07 80 0D 02 02 05 00 65 AA FD 3E 37 00 00 88 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [17:48:40]RAPDU: 90 00 [17:48:40]wFMCommunicate OK [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 0D 03 02 [17:48:40]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0B 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0B 00 7D 07 00 50 66 24 6C 76 CB AC C9 90 00 FC [17:48:40]RAPDU: 50 66 24 6C 76 CB AC C9 90 00 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_SignData done [17:48:40]FM_MakeSignedData done [17:48:40]CreateOFDProtocolMessage [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 11 00 00 [17:48:40]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 17 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [17:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:48:40]wFMCommunicate OK [17:48:40]CreateOFDProtocolMessage done [17:48:40]OFDSenderStorePacket 140298 [17:48:40]StoreOFDPacket docnum=140298 [17:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 84 6E 07 01 83 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 77 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 24 02 00 35 04 06 00 41 65 AA FD 3E 37 50 66 24 6C 76 CB AC C9 [17:48:40]CheckFolder [17:48:40]dirname=/storage/ofd_packets [17:48:40]CheckFolder done [17:48:40]ProducePacketName [17:48:40]name=ofd_packets/00140298 [17:48:40]NVStorageSaveData ofd_packets/00140298 [17:48:40]File name is /storage/ofd_packets/00140298 [17:48:40]Write 301 bytes [17:48:40]NVStorageSaveData done [17:48:40]OFDSenderStorePacket done [17:48:40]KKMCreateOFDPacket done [17:48:40]NVStorageSaveData kkm_last_timestamp [17:48:40]File name is /storage/kkm_last_timestamp [17:48:40]Write 4 bytes [17:48:40]NVStorageSaveData done [17:48:40]ExternCall_PrintAddStr [17:48:40]wPrintStart [17:48:40]Write to MH i2c: 01 00 00 7F 07 86 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: 01 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: 01 07 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [17:48:40]RasterBufferAndPrint [17:48:40]line Счет N : (1)594155 [17:48:40]line ИНН: 02508201610067 [17:48:40]line Контрольно-Кассовый Чек [17:48:40]line ПРОДАЖА [17:48:40]line ТРК (МРК, ГНК) : 62 [17:48:40]line Товар: 2710124130 [17:48:40]line Аи-92-К-5 [17:48:40]line 14.750 * 67.80 [17:48:40]line = 1000.05 [17:48:40]line НДС 12% НСП 1% [17:48:40]line > о реализуемом товаре [17:48:40]line ОКРУГЛЕНИЕ: -0.05 [17:48:40]line ИТОГО: 1000.00 [17:48:40]line Внесено: 1000.00 [17:48:40]line СДАЧА: 0.00 [17:48:40]line НСП 1% : 8.85 [17:48:40]line НДС 12% : 106.20 [17:48:40]line Наличными: 1000.00 [17:48:40]line Безнал.: 0.00 [17:48:40]line Место: АЗС № 136 "Партнер Нефть" [17:48:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:48:40]line СНО: Общий режим [17:48:40]line Чек 315 21.08.2024 17:48 [17:48:40]line Смена: 454 ФФД: 1.0 [17:48:40]line ЗНМ: 0300000067 [17:48:40]line РНМ: 0000000000092569 [17:48:40]line Версия ККМ: 001 [17:48:40]line ФМ: 0000000000871776 [17:48:40]line ФД: 140298 [17:48:40]line ФПД: 71904916225591 [17:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T174839&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140298&fm=71904916225591&tin=02508201610067®Number=0000000000092569&sum=100000 [17:48:40]written 0, free lines is 4095 [17:48:40]OFD Sender: Processing packet 140298 [packets to send 137, broken 136] [17:48:40]ProducePacketName [17:48:40]name=ofd_packets/00140298 [17:48:40]OFD Sender: To server: pG, [17:48:40]CommunicateWithHost lk.salyk.kg:30040 [17:48:40]ConnectInit lk.salyk.kg [17:48:40]Connected sock=10 [17:48: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 37 36 0F 01 00 00 84 6E 07 01 83 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 77 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0A 24 02 00 35 04 06 00 41 65 AA FD 3E 37 50 66 24 6C 76 CB AC C9 [17:48: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 37 36 4F 00 00 00 70 E1 47 00 20 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 37 36 10 04 04 00 0A 24 02 00 F4 03 04 00 07 CF C5 66 B6 04 01 00 00 65 61 DB C0 CF 49 6C A1 [17:48:41]CommunicateWithHost err = 0 [17:48:41]CheckOFDResponse [17:48:41]1017 (14) - 77093643461234 [17:48:41]1041 (16) - 0000000000871776 [17:48:41]1040 (4) - 140298 [17:48:41]1012 (4) - 21.08.2024 11:27 [17:48:41]1206 (1) - 0 [17:48:41]OFD Sender: Remove packet 140298 [17:48:41]ProducePacketName [17:48:41]name=ofd_packets/00140298 [17:48:41]NVStorageDeleteData [17:48:41]Write to MH i2c: 01 00 00 AA 07 B1 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 07 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 D1 0C 95 [17:48:41]RasterBufferAndPrint [17:48:41]line [17:48:41]line [17:48:41]line [17:48:41]line [17:48:41]line [17:48:41]written 0, free lines is 3287 [17:48:41]MH_Cut [17:48:41]Write to MH i2c: D1 01 00 B1 07 01 8A [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: D1 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: D1 01 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: D1 01 00 B1 07 00 89 [17:48:41]Write to MH i2c: 01 00 00 B2 07 B9 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]OFD Sender: No OFD packet to send [17:48:41]*** Cut start [17:48:41]*** Partial cut [17:48:41]*** CUTSNS_PIN = 1 [17:48:41]*** CUTSNS_PIN = 0 [17:48:42]*** Brake cut motor [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]*** Stop cut motor [17:48:42]*** Cut end [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [17:48:42]process_action close_receipt done [17:48:42]requested_data is exist [17:48:42]produce_requested_data [17:48:42]requested_item fm.sn is exist - process it [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8B [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:48:42]wFMCommunicate OK [17:48:42]requested_item fd.num is exist - process it [17:48:42]SAM_PROTO_GetFieldsCounters [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 00 00 [17:48:42]Write to MH i2c: E2 08 00 B4 07 80 13 00 00 00 00 00 00 37 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 62 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 62 00 B4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 24 02 00 0E 04 04 00 C6 01 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 0D [17:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0A 24 02 00 0E 04 04 00 C6 01 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 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetFieldsCounters done [17:48:42]requested_item shift.num is exist - process it [17:48:42]requested_item shift.opened is exist - process it [17:48:42]req_shift_opened [17:48:42]FM_GetShiftState [17:48:42]SAM_PROTO_GetShiftState [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 01 00 [17:48:42]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B9 [17:48:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetShiftState done [17:48:42]FM_GetShiftState done [17:48:42]req_shift_opened done [17:48:42]requested_item shift.open_date is exist - process it [17:48:42]req_shift_open_date [17:48:42]req_shift_open_date done [17:48:42]produce_requested_data done [17:48:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140298,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:48:42]process_action_free close_receipt [17:48:42]json_value_free [17:48:42]json_value_free done [17:48:42]process_json_proto returns [17:48:42]Send response to host [17:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140298,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:48:42]free response buf [17:48:42]execute_script done [17:48:42]execute_script returns [17:48:42]free content buf [17:48:42]Sock 9.Close socket [17:48:42]Sock 9.Thread stoped [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:31]accept exits with 7 [17:50:31]New connection [17:50:31]New thread 3067612516 created [17:50:31]Thread 3067469156 joined [17:50:31]Waiting for new connection... [17:50:31] Sock 7.Parse request [17:50:31]Sock 7.Check first char [17:50:31]Sock 7.First char is OK [17:50:31]request: POST /json_proto HTTP/1.0 [17:50:31]Method: POST [17:50:31]URL: /json_proto [17:50:31]Method is POST - this is cgi request [17:50:31]url: /json_proto [17:50:31]query_string will be loaded in cgi processing [17:50:31]execute_cgi json_proto POST (null) [17:50:31]execute_cgi path=json_proto method=POST [17:50:31]POST find Content-Length [17:50:31]Host: 172.17.45.67:8080 [17:50:31]Content-Length: 682 [17:50:31]Content-Type: application/json [17:50:31] [17:50:31]POST finish read [17:50:31]Found Content-Length = 682 [17:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:31]execute_script... [17:50: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)594156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:31]POST & json_proto [17:50:31]process_json_proto [17:50:31]json parsed OK: [17:50:31]protocol is kg_v1.0 [17:50:31]action value=close_receipt [17:50:31]process_action close_receipt [17:50:31]cmd_close_receipt [17:50:31]MH_GetDate [17:50:31]Write to MH i2c: F0 00 00 B6 07 AC [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: F0 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: F0 09 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: F0 09 00 B6 07 00 E8 28 C6 66 5F 7F 2B 66 60 [17:50:31]GetLastDocTimeStamp 1724262519 [17:50:31]current date 1724262632 [17:50:31]FM_GetShiftState [17:50:31]SAM_PROTO_GetShiftState [17:50:31]wFMCommunicate request_size=4 [17:50:31]MH_SAM_APDU [17:50:31]CAPDU: 80 13 01 00 [17:50:31]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:31]Read from MH i2c: E2 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 0E 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BB [17:50:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:50:31]wFMCommunicate OK [17:50:31]SAM_PROTO_GetShiftState done [17:50:31]FM_GetShiftState done [17:50:31]opened in 1724200467 [17:50:31]opened+sec_in_day 1724286867 [17:50:31]quantity*price = 100005 [17:50:31]sum+1 = 100006 [17:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 316 21.08.2024 17:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140299 ФПД: 17157035692635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175032&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140299&fm=17157035692635&tin=02508201610067®Number=0000000000092569&sum=100000 [17:50:32]StoreToDocumentArchive [17:50:32]shift 454 fd 140299 [17:50:32]save to /storage/0454/doc_00140299 [17:50:32]save last doc name /storage/0454/doc_00140299 to /storage/kkm_last_doc_name [17:50:32]save OK [17:50:32]Clear old archive folders... [17:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:32]tlvbuf is 00CA7DF0 [17:50:32]SAM_PROTO_ClearQueue [17:50:32]wFMCommunicate request_size=4 [17:50:32]MH_SAM_APDU [17:50:32]CAPDU: 80 09 00 00 [17:50:32]Write to MH i2c: E2 08 00 C4 07 80 09 00 00 00 00 00 00 3D [17:50:32]Write i2c OK [17:50:32]MH_I2C_Read... [17:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [17:50:33]RAPDU: 90 00 [17:50:33]wFMCommunicate OK [17:50:33]SAM_PROTO_ClearQueue done [17:50:33]KKMCreateOFDPacket [17:50:33]OFDProtocolAddRootSTLVToBuf [17:50:33]FM_MakeSignedData [17:50:33]FM_MakeSignedData [17:50:33]SAM_PROTO_SignData [17:50:33]wFMCommunicate request_size=4 [17:50:33]MH_SAM_APDU [17:50:33]CAPDU: 80 0D 01 02 [17:50:33]Write to MH i2c: E2 08 00 C5 07 80 0D 01 02 00 00 00 00 45 [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [17:50:33]RAPDU: 90 00 [17:50:33]wFMCommunicate OK [17:50:33]wFMCommunicate request_size=255 [17:50:33]MH_SAM_APDU [17:50: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 E8 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 24 02 00 35 04 06 00 0F [17:50:33]Write to MH i2c: E2 02 01 C6 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 E8 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 24 02 00 35 04 06 00 0F 00 00 DD [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [17:50:33]RAPDU: 90 00 [17:50:33]wFMCommunicate OK [17:50:33]wFMCommunicate request_size=10 [17:50:33]MH_SAM_APDU [17:50:33]CAPDU: 80 0D 02 02 05 9A AF 04 92 5B [17:50:33]Write to MH i2c: E2 0D 00 C7 07 80 0D 02 02 05 00 9A AF 04 92 5B 00 00 8C [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [17:50:33]RAPDU: 90 00 [17:50:33]wFMCommunicate OK [17:50:33]wFMCommunicate request_size=4 [17:50:33]MH_SAM_APDU [17:50:33]CAPDU: 80 0D 03 02 [17:50:33]Write to MH i2c: E2 08 00 C8 07 80 0D 03 02 00 00 00 00 4A [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 0B 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 0B 00 C8 07 00 CA 5F 6F F4 DC BD 34 EF 90 00 93 [17:50:33]RAPDU: CA 5F 6F F4 DC BD 34 EF 90 00 [17:50:33]wFMCommunicate OK [17:50:33]SAM_PROTO_SignData done [17:50:33]FM_MakeSignedData done [17:50:33]CreateOFDProtocolMessage [17:50:33]wFMCommunicate request_size=4 [17:50:33]MH_SAM_APDU [17:50:33]CAPDU: 80 11 00 00 [17:50:33]Write to MH i2c: E2 08 00 C9 07 80 11 00 00 00 00 00 00 4A [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:33]Read from MH i2c: E2 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 17 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: E2 17 00 C9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [17:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:50:33]wFMCommunicate OK [17:50:33]CreateOFDProtocolMessage done [17:50:33]OFDSenderStorePacket 140299 [17:50:33]StoreOFDPacket docnum=140299 [17:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 2E 07 01 C2 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 E8 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 24 02 00 35 04 06 00 0F 9A AF 04 92 5B CA 5F 6F F4 DC BD 34 EF [17:50:33]CheckFolder [17:50:33]dirname=/storage/ofd_packets [17:50:33]CheckFolder done [17:50:33]ProducePacketName [17:50:33]name=ofd_packets/00140299 [17:50:33]NVStorageSaveData ofd_packets/00140299 [17:50:33]File name is /storage/ofd_packets/00140299 [17:50:33]Write 301 bytes [17:50:33]NVStorageSaveData done [17:50:33]OFDSenderStorePacket done [17:50:33]KKMCreateOFDPacket done [17:50:33]NVStorageSaveData kkm_last_timestamp [17:50:33]File name is /storage/kkm_last_timestamp [17:50:33]Write 4 bytes [17:50:33]NVStorageSaveData done [17:50:33]ExternCall_PrintAddStr [17:50:33]wPrintStart [17:50:33]Write to MH i2c: 01 00 00 CA 07 D1 [17:50:33]Write i2c OK [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: 01 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: 01 07 00 [17:50:33]MH_I2C_Read... [17:50:33]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [17:50:33]RasterBufferAndPrint [17:50:33]line Счет N : (1)594156 [17:50:33]line ИНН: 02508201610067 [17:50:33]line Контрольно-Кассовый Чек [17:50:33]line ПРОДАЖА [17:50:33]line ТРК (МРК, ГНК) : 42 [17:50:33]line Товар: 2710124130 [17:50:33]line Аи-92-К-5 [17:50:33]line 14.750 * 67.80 [17:50:33]line = 1000.05 [17:50:33]line НДС 12% НСП 1% [17:50:33]line > о реализуемом товаре [17:50:33]line ОКРУГЛЕНИЕ: -0.05 [17:50:33]line ИТОГО: 1000.00 [17:50:33]line Внесено: 1000.00 [17:50:33]line СДАЧА: 0.00 [17:50:33]line НСП 1% : 8.85 [17:50:33]line НДС 12% : 106.20 [17:50:33]line Наличными: 1000.00 [17:50:33]line Безнал.: 0.00 [17:50:33]line Место: АЗС № 136 "Партнер Нефть" [17:50:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:50:33]line СНО: Общий режим [17:50:33]line Чек 316 21.08.2024 17:50 [17:50:33]line Смена: 454 ФФД: 1.0 [17:50:33]line ЗНМ: 0300000067 [17:50:33]line РНМ: 0000000000092569 [17:50:33]line Версия ККМ: 001 [17:50:33]line ФМ: 0000000000871776 [17:50:33]line ФД: 140299 [17:50:33]line ФПД: 17157035692635 [17:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175032&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140299&fm=17157035692635&tin=02508201610067®Number=0000000000092569&sum=100000 [17:50:33]OFD Sender: Processing packet 140299 [packets to send 137, broken 136] [17:50:33]ProducePacketName [17:50:33]name=ofd_packets/00140299 [17:50:33]OFD Sender: To server: pG, [17:50:33]CommunicateWithHost lk.salyk.kg:30040 [17:50:33]ConnectInit lk.salyk.kg [17:50:33]written 0, free lines is 4095 [17:50:33]Connected sock=10 [17:50: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 37 36 0F 01 00 00 61 2E 07 01 C2 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 E8 28 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0B 24 02 00 35 04 06 00 0F 9A AF 04 92 5B CA 5F 6F F4 DC BD 34 EF [17:50: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 37 36 4F 00 00 00 3F D9 47 00 39 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 37 36 10 04 04 00 0B 24 02 00 F4 03 04 00 78 CF C5 66 B6 04 01 00 00 7E 55 BF A1 E9 3C 1D 7B [17:50:34]CommunicateWithHost err = 0 [17:50:34]CheckOFDResponse [17:50:34]1017 (14) - 77093643461234 [17:50:34]1041 (16) - 0000000000871776 [17:50:34]1040 (4) - 140299 [17:50:34]1012 (4) - 21.08.2024 11:28 [17:50:34]1206 (1) - 0 [17:50:34]OFD Sender: Remove packet 140299 [17:50:34]ProducePacketName [17:50:34]name=ofd_packets/00140299 [17:50:34]NVStorageDeleteData [17:50:34]Write to MH i2c: 01 00 00 F5 07 FC [17:50:34]Write i2c OK [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: 01 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: 01 07 00 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: 01 07 00 F5 07 00 00 00 00 00 D6 0C E5 [17:50:34]RasterBufferAndPrint [17:50:34]line [17:50:34]line [17:50:34]line [17:50:34]line [17:50:34]line [17:50:34]written 0, free lines is 3293 [17:50:34]MH_Cut [17:50:34]Write to MH i2c: D1 01 00 FC 07 01 D5 [17:50:34]Write i2c OK [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: D1 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: D1 01 00 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: D1 01 00 FC 07 00 D4 [17:50:34]Write to MH i2c: 01 00 00 FD 07 04 [17:50:34]Write i2c OK [17:50:34]MH_I2C_Read... [17:50:34]OFD Sender: No OFD packet to send [17:50:34]*** Cut start [17:50:34]*** Partial cut [17:50:34]*** CUTSNS_PIN = 1 [17:50:35]*** CUTSNS_PIN = 0 [17:50:35]*** Brake cut motor [17:50:35]Read from MH i2c: 01 [17:50:35]MH_I2C_Read... [17:50:35]*** Stop cut motor [17:50:35]*** Cut end [17:50:35]Read from MH i2c: 01 07 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 FF 0F 19 [17:50:35]process_action close_receipt done [17:50:35]requested_data is exist [17:50:35]produce_requested_data [17:50:35]requested_item fm.sn is exist - process it [17:50:35]wFMCommunicate request_size=4 [17:50:35]MH_SAM_APDU [17:50:35]CAPDU: 80 11 00 00 [17:50:35]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:35]Read from MH i2c: E2 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 17 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D6 [17:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:50:35]wFMCommunicate OK [17:50:35]requested_item fd.num is exist - process it [17:50:35]SAM_PROTO_GetFieldsCounters [17:50:35]wFMCommunicate request_size=4 [17:50:35]MH_SAM_APDU [17:50:35]CAPDU: 80 13 00 00 [17:50:35]Write to MH i2c: E2 08 00 FF 07 80 13 00 00 00 00 00 00 82 [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:35]Read from MH i2c: E2 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 62 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 62 00 FF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 24 02 00 0E 04 04 00 C6 01 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 5C [17:50: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0B 24 02 00 0E 04 04 00 C6 01 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 [17:50:35]wFMCommunicate OK [17:50:35]SAM_PROTO_GetFieldsCounters done [17:50:35]requested_item shift.num is exist - process it [17:50:35]requested_item shift.opened is exist - process it [17:50:35]req_shift_opened [17:50:35]FM_GetShiftState [17:50:35]SAM_PROTO_GetShiftState [17:50:35]wFMCommunicate request_size=4 [17:50:35]MH_SAM_APDU [17:50:35]CAPDU: 80 13 01 00 [17:50:35]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:35]Read from MH i2c: E2 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 05 [17:50:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:50:35]wFMCommunicate OK [17:50:35]SAM_PROTO_GetShiftState done [17:50:35]FM_GetShiftState done [17:50:35]req_shift_opened done [17:50:35]requested_item shift.open_date is exist - process it [17:50:35]req_shift_open_date [17:50:35]req_shift_open_date done [17:50:35]produce_requested_data done [17:50:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140299,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:50:35]process_action_free close_receipt [17:50:35]json_value_free [17:50:35]json_value_free done [17:50:35]process_json_proto returns [17:50:35]Send response to host [17:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140299,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:50:35]free response buf [17:50:35]execute_script done [17:50:35]execute_script returns [17:50:35]free content buf [17:50:35]Sock 7.Close socket [17:50:35]Sock 7.Thread stoped [17:50:37]int [17:50:37]Write to MH i2c: 01 00 00 01 08 09 [17:50:37]*** FLAG_PRN_KEY set [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 01 08 00 08 00 00 00 FF 0F 26 [17:50:37]state=0 [17:50:37]Key pressed [17:50:37]Feed [17:50:37]Write to MH i2c: D8 00 00 02 08 E1 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D8 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D8 01 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D8 01 00 02 08 00 E2 [17:50:37]int [17:50:37]Write to MH i2c: 01 00 00 03 08 0B [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 03 08 00 48 00 00 00 3C 00 96 [17:50:37]state=2 [17:50:37]Key pressed [17:50:37]int [17:50:37]Write to MH i2c: 01 00 00 04 08 0C [17:50:37]*** FLAG_PRN_KEY reset [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 F7 0F 19 [17:50:37]state=2 [17:50:37]Stop feed [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:38]accept exits with 9 [17:51:38]New connection [17:51:38]New thread 3067469156 created [17:51:38]Thread 3067612516 joined [17:51:38]Waiting for new connection... [17:51:38] Sock 9.Parse request [17:51:38]Sock 9.Check first char [17:51:38]Sock 9.First char is OK [17:51:38]request: POST /json_proto HTTP/1.0 [17:51:38]Method: POST [17:51:38]URL: /json_proto [17:51:38]Method is POST - this is cgi request [17:51:38]url: /json_proto [17:51:38]query_string will be loaded in cgi processing [17:51:38]execute_cgi json_proto POST (null) [17:51:38]execute_cgi path=json_proto method=POST [17:51:38]POST find Content-Length [17:51:38]Host: 172.17.45.67:8080 [17:51:38]Content-Length: 682 [17:51:38]Content-Type: application/json [17:51:38] [17:51:38]POST finish read [17:51:38]Found Content-Length = 682 [17:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:38]execute_script... [17:51: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)594157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:38]POST & json_proto [17:51:38]process_json_proto [17:51:38]json parsed OK: [17:51:38]protocol is kg_v1.0 [17:51:38]action value=close_receipt [17:51:38]process_action close_receipt [17:51:38]cmd_close_receipt [17:51:38]MH_GetDate [17:51:38]Write to MH i2c: F0 00 00 05 08 FC [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: F0 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: F0 09 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: F0 09 00 05 08 00 2A 29 C6 66 5F 7F 2B 66 F3 [17:51:38]GetLastDocTimeStamp 1724262632 [17:51:38]current date 1724262698 [17:51:38]FM_GetShiftState [17:51:38]SAM_PROTO_GetShiftState [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 13 01 00 [17:51:38]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0E 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [17:51:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_GetShiftState done [17:51:38]FM_GetShiftState done [17:51:38]opened in 1724200467 [17:51:38]opened+sec_in_day 1724286867 [17:51:38]quantity*price = 100005 [17:51:38]sum+1 = 100006 [17:51:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 317 21.08.2024 17:51 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140300 ФПД: 241901610758949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140300&fm=241901610758949&tin=02508201610067®Number=0000000000092569&sum=100000 [17:51:39]StoreToDocumentArchive [17:51:39]shift 454 fd 140300 [17:51:39]save to /storage/0454/doc_00140300 [17:51:39]save last doc name /storage/0454/doc_00140300 to /storage/kkm_last_doc_name [17:51:39]save OK [17:51:39]Clear old archive folders... [17:51:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:39]tlvbuf is 00C26980 [17:51:39]SAM_PROTO_ClearQueue [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 09 00 00 [17:51:39]Write to MH i2c: E2 08 00 13 08 80 09 00 00 00 00 00 00 8D [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]SAM_PROTO_ClearQueue done [17:51:39]KKMCreateOFDPacket [17:51:39]OFDProtocolAddRootSTLVToBuf [17:51:39]FM_MakeSignedData [17:51:39]FM_MakeSignedData [17:51:39]SAM_PROTO_SignData [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 0D 01 02 [17:51:39]Write to MH i2c: E2 08 00 14 08 80 0D 01 02 00 00 00 00 95 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]wFMCommunicate request_size=255 [17:51:39]MH_SAM_APDU [17:51: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 2A 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 24 02 00 35 04 06 00 DC [17:51:39]Write to MH i2c: E2 02 01 15 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 2A 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 24 02 00 35 04 06 00 DC 00 00 3F [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]wFMCommunicate request_size=10 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 0D 02 02 05 02 1B 94 73 25 [17:51:39]Write to MH i2c: E2 0D 00 16 08 80 0D 02 02 05 00 02 1B 94 73 25 00 00 EB [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [17:51:39]RAPDU: 90 00 [17:51:39]wFMCommunicate OK [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 0D 03 02 [17:51:39]Write to MH i2c: E2 08 00 17 08 80 0D 03 02 00 00 00 00 9A [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0B 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0B 00 17 08 00 D3 F9 25 05 28 05 92 2A 90 00 7A [17:51:39]RAPDU: D3 F9 25 05 28 05 92 2A 90 00 [17:51:39]wFMCommunicate OK [17:51:39]SAM_PROTO_SignData done [17:51:39]FM_MakeSignedData done [17:51:39]CreateOFDProtocolMessage [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 11 00 00 [17:51:39]Write to MH i2c: E2 08 00 18 08 80 11 00 00 00 00 00 00 9A [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 18 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [17:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:51:39]wFMCommunicate OK [17:51:39]CreateOFDProtocolMessage done [17:51:39]OFDSenderStorePacket 140300 [17:51:39]StoreOFDPacket docnum=140300 [17:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 8F 07 01 65 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 2A 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 24 02 00 35 04 06 00 DC 02 1B 94 73 25 D3 F9 25 05 28 05 92 2A [17:51:39]CheckFolder [17:51:39]dirname=/storage/ofd_packets [17:51:39]CheckFolder done [17:51:39]ProducePacketName [17:51:39]name=ofd_packets/00140300 [17:51:39]NVStorageSaveData ofd_packets/00140300 [17:51:39]File name is /storage/ofd_packets/00140300 [17:51:39]Write 301 bytes [17:51:39]NVStorageSaveData done [17:51:39]OFDSenderStorePacket done [17:51:39]KKMCreateOFDPacket done [17:51:39]NVStorageSaveData kkm_last_timestamp [17:51:39]File name is /storage/kkm_last_timestamp [17:51:39]Write 4 bytes [17:51:39]NVStorageSaveData done [17:51:39]ExternCall_PrintAddStr [17:51:39]wPrintStart [17:51:39]Write to MH i2c: 01 00 00 19 08 21 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 FF 0F 36 [17:51:39]RasterBufferAndPrint [17:51:39]line Счет N : (1)594157 [17:51:39]line ИНН: 02508201610067 [17:51:39]line Контрольно-Кассовый Чек [17:51:39]line ПРОДАЖА [17:51:39]line ТРК (МРК, ГНК) : 52 [17:51:39]line Товар: 2710124130 [17:51:39]line Аи-92-К-5 [17:51:39]line 14.750 * 67.80 [17:51:39]line = 1000.05 [17:51:39]line НДС 12% НСП 1% [17:51:39]line > о реализуемом товаре [17:51:39]line ОКРУГЛЕНИЕ: -0.05 [17:51:39]line ИТОГО: 1000.00 [17:51:39]line Внесено: 1000.00 [17:51:39]line СДАЧА: 0.00 [17:51:39]line НСП 1% : 8.85 [17:51:39]line НДС 12% : 106.20 [17:51:39]line Наличными: 1000.00 [17:51:39]line Безнал.: 0.00 [17:51:39]line Место: АЗС № 136 "Партнер Нефть" [17:51:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:51:39]line СНО: Общий режим [17:51:39]line Чек 317 21.08.2024 17:51 [17:51:39]line Смена: 454 ФФД: 1.0 [17:51:39]line ЗНМ: 0300000067 [17:51:39]line РНМ: 0000000000092569 [17:51:39]line Версия ККМ: 001 [17:51:39]line ФМ: 0000000000871776 [17:51:39]line ФД: 140300 [17:51:39]line ФПД: 241901610758949 [17:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175138&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140300&fm=241901610758949&tin=02508201610067®Number=0000000000092569&sum=100000 [17:51:40]written 0, free lines is 4095 [17:51:40]OFD Sender: Processing packet 140300 [packets to send 137, broken 136] [17:51:40]ProducePacketName [17:51:40]name=ofd_packets/00140300 [17:51:40]OFD Sender: To server: pG, [17:51:40]CommunicateWithHost lk.salyk.kg:30040 [17:51:40]ConnectInit lk.salyk.kg [17:51:40]Connected sock=10 [17:51: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 37 36 0F 01 00 00 82 8F 07 01 65 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 2A 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 24 02 00 35 04 06 00 DC 02 1B 94 73 25 D3 F9 25 05 28 05 92 2A [17:51: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 37 36 4F 00 00 00 F2 AA 47 00 9B 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0C 24 02 00 F4 03 04 00 BA CF C5 66 B6 04 01 00 00 42 E3 C7 CB 34 84 B4 11 [17:51:40]CommunicateWithHost err = 0 [17:51:40]CheckOFDResponse [17:51:40]1017 (14) - 77093643461234 [17:51:40]1041 (16) - 0000000000871776 [17:51:40]1040 (4) - 140300 [17:51:40]1012 (4) - 21.08.2024 11:30 [17:51:40]1206 (1) - 0 [17:51:40]OFD Sender: Remove packet 140300 [17:51:40]ProducePacketName [17:51:40]name=ofd_packets/00140300 [17:51:40]NVStorageDeleteData [17:51:40]Write to MH i2c: 01 00 00 44 08 4C [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: 01 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: 01 07 00 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: 01 07 00 44 08 00 00 00 00 00 DD 0C 3C [17:51:40]RasterBufferAndPrint [17:51:40]line [17:51:40]line [17:51:40]line [17:51:40]line [17:51:40]line [17:51:40]written 0, free lines is 3299 [17:51:40]MH_Cut [17:51:40]Write to MH i2c: D1 01 00 4B 08 01 25 [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: D1 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: D1 01 00 [17:51:40]MH_I2C_Read... [17:51:40]Read from MH i2c: D1 01 00 4B 08 00 24 [17:51:40]Write to MH i2c: 01 00 00 4C 08 54 [17:51:40]Write i2c OK [17:51:40]MH_I2C_Read... [17:51:41]OFD Sender: No OFD packet to send [17:51:41]*** Cut start [17:51:41]*** Partial cut [17:51:41]*** CUTSNS_PIN = 1 [17:51:41]*** CUTSNS_PIN = 0 [17:51:41]*** Brake cut motor [17:51:41]Read from MH i2c: 01 [17:51:41]MH_I2C_Read... [17:51:41]*** Stop cut motor [17:51:41]*** Cut end [17:51:41]Read from MH i2c: 01 07 00 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [17:51:41]process_action close_receipt done [17:51:41]requested_data is exist [17:51:41]produce_requested_data [17:51:41]requested_item fm.sn is exist - process it [17:51:41]wFMCommunicate request_size=4 [17:51:41]MH_SAM_APDU [17:51:41]CAPDU: 80 11 00 00 [17:51:41]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [17:51:41]Write i2c OK [17:51:41]MH_I2C_Read... [17:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:41]Read from MH i2c: E2 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 17 00 [17:51:41]MH_I2C_Read... [17:51:41]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [17:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:51:41]wFMCommunicate OK [17:51:41]requested_item fd.num is exist - process it [17:51:41]SAM_PROTO_GetFieldsCounters [17:51:41]wFMCommunicate request_size=4 [17:51:41]MH_SAM_APDU [17:51:41]CAPDU: 80 13 00 00 [17:51:41]Write to MH i2c: E2 08 00 4E 08 80 13 00 00 00 00 00 00 D2 [17:51:41]Write i2c OK [17:51:41]MH_I2C_Read... [17:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:42]Read from MH i2c: E2 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 62 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 62 00 4E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 24 02 00 0E 04 04 00 C6 01 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 B0 [17:51: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0C 24 02 00 0E 04 04 00 C6 01 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 [17:51:42]wFMCommunicate OK [17:51:42]SAM_PROTO_GetFieldsCounters done [17:51:42]requested_item shift.num is exist - process it [17:51:42]requested_item shift.opened is exist - process it [17:51:42]req_shift_opened [17:51:42]FM_GetShiftState [17:51:42]SAM_PROTO_GetShiftState [17:51:42]wFMCommunicate request_size=4 [17:51:42]MH_SAM_APDU [17:51:42]CAPDU: 80 13 01 00 [17:51:42]Write to MH i2c: E2 08 00 4F 08 80 13 01 00 00 00 00 00 D4 [17:51:42]Write i2c OK [17:51:42]MH_I2C_Read... [17:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:42]Read from MH i2c: E2 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 [17:51:42]MH_I2C_Read... [17:51:42]Read from MH i2c: E2 0E 00 4F 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 54 [17:51:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:51:42]wFMCommunicate OK [17:51:42]SAM_PROTO_GetShiftState done [17:51:42]FM_GetShiftState done [17:51:42]req_shift_opened done [17:51:42]requested_item shift.open_date is exist - process it [17:51:42]req_shift_open_date [17:51:42]req_shift_open_date done [17:51:42]produce_requested_data done [17:51:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140300,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:51:42]process_action_free close_receipt [17:51:42]json_value_free [17:51:42]json_value_free done [17:51:42]process_json_proto returns [17:51:42]Send response to host [17:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140300,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:51:42]free response buf [17:51:42]execute_script done [17:51:42]execute_script returns [17:51:42]free content buf [17:51:42]Sock 9.Close socket [17:51:42]Sock 9.Thread stoped [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:32]accept exits with 7 [17:52:32]New connection [17:52:32]New thread 3067612516 created [17:52:32]Thread 3067469156 joined [17:52:32]Waiting for new connection... [17:52:32] Sock 7.Parse request [17:52:32]Sock 7.Check first char [17:52:32]Sock 7.First char is OK [17:52:32]request: POST /json_proto HTTP/1.0 [17:52:32]Method: POST [17:52:32]URL: /json_proto [17:52:32]Method is POST - this is cgi request [17:52:32]url: /json_proto [17:52:32]query_string will be loaded in cgi processing [17:52:32]execute_cgi json_proto POST (null) [17:52:32]execute_cgi path=json_proto method=POST [17:52:32]POST find Content-Length [17:52:32]Host: 172.17.45.67:8080 [17:52:32]Content-Length: 658 [17:52:32]Content-Type: application/json [17:52:32] [17:52:32]POST finish read [17:52:32]Found Content-Length = 658 [17:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:32]execute_script... [17:52: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)594159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:52:32]POST & json_proto [17:52:32]process_json_proto [17:52:32]json parsed OK: [17:52:32]protocol is kg_v1.0 [17:52:32]action value=close_receipt [17:52:32]process_action close_receipt [17:52:32]cmd_close_receipt [17:52:32]MH_GetDate [17:52:32]Write to MH i2c: F0 00 00 50 08 47 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: F0 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: F0 09 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: F0 09 00 50 08 00 61 29 C6 66 5F 7F 2B 66 75 [17:52:32]GetLastDocTimeStamp 1724262698 [17:52:32]current date 1724262753 [17:52:32]FM_GetShiftState [17:52:32]SAM_PROTO_GetShiftState [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 01 00 [17:52:32]Write to MH i2c: E2 08 00 51 08 80 13 01 00 00 00 00 00 D6 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 51 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 56 [17:52:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetShiftState done [17:52:32]FM_GetShiftState done [17:52:32]opened in 1724200467 [17:52:32]opened+sec_in_day 1724286867 [17:52:32]quantity*price = 40041 [17:52:32]sum+1 = 40043 [17:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 318 21.08.2024 17:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140301 ФПД: 43202525827790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140301&fm=43202525827790&tin=02508201610067®Number=0000000000092569&sum=40000 [17:52:33]StoreToDocumentArchive [17:52:33]shift 454 fd 140301 [17:52:33]save to /storage/0454/doc_00140301 [17:52:33]save last doc name /storage/0454/doc_00140301 to /storage/kkm_last_doc_name [17:52:33]save OK [17:52:33]Clear old archive folders... [17:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:52:33]tlvbuf is 00C9B5C0 [17:52:33]SAM_PROTO_ClearQueue [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 09 00 00 [17:52:33]Write to MH i2c: E2 08 00 5E 08 80 09 00 00 00 00 00 00 D8 [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 03 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [17:52:33]RAPDU: 90 00 [17:52:33]wFMCommunicate OK [17:52:33]SAM_PROTO_ClearQueue done [17:52:33]KKMCreateOFDPacket [17:52:33]OFDProtocolAddRootSTLVToBuf [17:52:33]FM_MakeSignedData [17:52:33]FM_MakeSignedData [17:52:33]SAM_PROTO_SignData [17:52:33]wFMCommunicate request_size=4 [17:52:33]MH_SAM_APDU [17:52:33]CAPDU: 80 0D 01 02 [17:52:33]Write to MH i2c: E2 08 00 5F 08 80 0D 01 02 00 00 00 00 E0 [17:52:33]Write i2c OK [17:52:33]MH_I2C_Read... [17:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:33]Read from MH i2c: E2 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 03 00 [17:52:33]MH_I2C_Read... [17:52:33]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [17:52:33]RAPDU: 90 00 [17:52:34]wFMCommunicate OK [17:52:34]wFMCommunicate request_size=253 [17:52:34]MH_SAM_APDU [17:52:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 61 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 24 02 00 35 04 06 00 27 4A DF 34 92 CE [17:52:34]Write to MH i2c: E2 00 01 60 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 61 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 24 02 00 35 04 06 00 27 4A DF 34 92 CE 00 00 0E [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:34]Read from MH i2c: E2 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 03 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [17:52:34]RAPDU: 90 00 [17:52:34]wFMCommunicate OK [17:52:34]wFMCommunicate request_size=4 [17:52:34]MH_SAM_APDU [17:52:34]CAPDU: 80 0D 03 02 [17:52:34]Write to MH i2c: E2 08 00 61 08 80 0D 03 02 00 00 00 00 E4 [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:34]Read from MH i2c: E2 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 0B 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 0B 00 61 08 00 E0 08 76 66 50 E0 BE DA 90 00 71 [17:52:34]RAPDU: E0 08 76 66 50 E0 BE DA 90 00 [17:52:34]wFMCommunicate OK [17:52:34]SAM_PROTO_SignData done [17:52:34]FM_MakeSignedData done [17:52:34]CreateOFDProtocolMessage [17:52:34]wFMCommunicate request_size=4 [17:52:34]MH_SAM_APDU [17:52:34]CAPDU: 80 11 00 00 [17:52:34]Write to MH i2c: E2 08 00 62 08 80 11 00 00 00 00 00 00 E4 [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:34]Read from MH i2c: E2 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 17 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: E2 17 00 62 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [17:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:52:34]wFMCommunicate OK [17:52:34]CreateOFDProtocolMessage done [17:52:34]OFDSenderStorePacket 140301 [17:52:34]StoreOFDPacket docnum=140301 [17:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E6 A4 00 01 D5 B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 61 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 24 02 00 35 04 06 00 27 4A DF 34 92 CE E0 08 76 66 50 E0 BE DA [17:52:34]CheckFolder [17:52:34]dirname=/storage/ofd_packets [17:52:34]CheckFolder done [17:52:34]ProducePacketName [17:52:34]name=ofd_packets/00140301 [17:52:34]NVStorageSaveData ofd_packets/00140301 [17:52:34]File name is /storage/ofd_packets/00140301 [17:52:34]Write 294 bytes [17:52:34]NVStorageSaveData done [17:52:34]OFDSenderStorePacket done [17:52:34]KKMCreateOFDPacket done [17:52:34]NVStorageSaveData kkm_last_timestamp [17:52:34]File name is /storage/kkm_last_timestamp [17:52:34]Write 4 bytes [17:52:34]NVStorageSaveData done [17:52:34]ExternCall_PrintAddStr [17:52:34]wPrintStart [17:52:34]Write to MH i2c: 01 00 00 63 08 6B [17:52:34]Write i2c OK [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: 01 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: 01 07 00 [17:52:34]MH_I2C_Read... [17:52:34]Read from MH i2c: 01 07 00 63 08 00 00 00 00 00 FF 0F 80 [17:52:34]RasterBufferAndPrint [17:52:34]line Счет N : (1)594159 [17:52:34]line ИНН: 02508201610067 [17:52:34]line Контрольно-Кассовый Чек [17:52:34]line ПРОДАЖА [17:52:34]line ТРК (МРК, ГНК) : 43 [17:52:34]line Товар: 2710124130 [17:52:34]line SU-92 [17:52:34]line 5.820 * 68.80 [17:52:34]line = 400.42 [17:52:34]line НДС 12% НСП 1% [17:52:34]line > о реализуемом товаре [17:52:34]line ОКРУГЛЕНИЕ: -0.42 [17:52:34]line ИТОГО: 400.00 [17:52:34]line Внесено: 400.00 [17:52:34]line СДАЧА: 0.00 [17:52:34]line НСП 1% : 3.54 [17:52:34]line НДС 12% : 42.52 [17:52:34]line Наличными: 400.00 [17:52:34]line Безнал.: 0.00 [17:52:34]line Место: АЗС № 136 "Партнер Нефть" [17:52:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:52:34]line СНО: Общий режим [17:52:34]line Чек 318 21.08.2024 17:52 [17:52:34]line Смена: 454 ФФД: 1.0 [17:52:34]line ЗНМ: 0300000067 [17:52:34]line РНМ: 0000000000092569 [17:52:34]line Версия ККМ: 001 [17:52:34]line ФМ: 0000000000871776 [17:52:34]line ФД: 140301 [17:52:34]line ФПД: 43202525827790 [17:52:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175233&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140301&fm=43202525827790&tin=02508201610067®Number=0000000000092569&sum=40000 [17:52:34]OFD Sender: Processing packet 140301 [packets to send 137, broken 136] [17:52:34]ProducePacketName [17:52:34]name=ofd_packets/00140301 [17:52:34]OFD Sender: To server: pG, [17:52:34]CommunicateWithHost lk.salyk.kg:30040 [17:52:34]ConnectInit lk.salyk.kg [17:52:34]written 0, free lines is 4095 [17:52:34]Connected sock=11 [17:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 E6 A4 00 01 D5 B2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 61 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0D 24 02 00 35 04 06 00 27 4A DF 34 92 CE E0 08 76 66 50 E0 BE DA [17:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 20 9A 47 00 FA 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 37 36 10 04 04 00 0D 24 02 00 F4 03 04 00 F1 CF C5 66 B6 04 01 00 00 EF 7B 67 B9 23 45 BB 6D [17:52:35]CommunicateWithHost err = 0 [17:52:35]CheckOFDResponse [17:52:35]1017 (14) - 77093643461234 [17:52:35]1041 (16) - 0000000000871776 [17:52:35]1040 (4) - 140301 [17:52:35]1012 (4) - 21.08.2024 11:30 [17:52:35]1206 (1) - 0 [17:52:35]OFD Sender: Remove packet 140301 [17:52:35]ProducePacketName [17:52:35]name=ofd_packets/00140301 [17:52:35]NVStorageDeleteData [17:52:35]Write to MH i2c: 01 00 00 8E 08 96 [17:52:35]Write i2c OK [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: 01 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: 01 07 00 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 D4 0C 7D [17:52:35]RasterBufferAndPrint [17:52:35]line [17:52:35]line [17:52:35]line [17:52:35]line [17:52:35]line [17:52:35]written 0, free lines is 3288 [17:52:35]MH_Cut [17:52:35]Write to MH i2c: D1 01 00 95 08 01 6F [17:52:35]Write i2c OK [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: D1 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: D1 01 00 [17:52:35]MH_I2C_Read... [17:52:35]Read from MH i2c: D1 01 00 95 08 00 6E [17:52:35]Write to MH i2c: 01 00 00 96 08 9E [17:52:35]Write i2c OK [17:52:35]MH_I2C_Read... [17:52:35]OFD Sender: No OFD packet to send [17:52:35]*** Cut start [17:52:35]*** Partial cut [17:52:35]*** CUTSNS_PIN = 1 [17:52:35]*** CUTSNS_PIN = 0 [17:52:36]*** Brake cut motor [17:52:36]Read from MH i2c: 01 [17:52:36]MH_I2C_Read... [17:52:36]*** Stop cut motor [17:52:36]*** Cut end [17:52:36]Read from MH i2c: 01 07 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [17:52:36]process_action close_receipt done [17:52:36]requested_data is exist [17:52:36]produce_requested_data [17:52:36]requested_item fm.sn is exist - process it [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 11 00 00 [17:52:36]Write to MH i2c: E2 08 00 97 08 80 11 00 00 00 00 00 00 19 [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 17 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 17 00 97 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [17:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:52:36]wFMCommunicate OK [17:52:36]requested_item fd.num is exist - process it [17:52:36]SAM_PROTO_GetFieldsCounters [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 13 00 00 [17:52:36]Write to MH i2c: E2 08 00 98 08 80 13 00 00 00 00 00 00 1C [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 62 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 62 00 98 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 24 02 00 0E 04 04 00 C6 01 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 FE [17:52:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0D 24 02 00 0E 04 04 00 C6 01 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 [17:52:36]wFMCommunicate OK [17:52:36]SAM_PROTO_GetFieldsCounters done [17:52:36]requested_item shift.num is exist - process it [17:52:36]requested_item shift.opened is exist - process it [17:52:36]req_shift_opened [17:52:36]FM_GetShiftState [17:52:36]SAM_PROTO_GetShiftState [17:52:36]wFMCommunicate request_size=4 [17:52:36]MH_SAM_APDU [17:52:36]CAPDU: 80 13 01 00 [17:52:36]Write to MH i2c: E2 08 00 99 08 80 13 01 00 00 00 00 00 1E [17:52:36]Write i2c OK [17:52:36]MH_I2C_Read... [17:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:36]Read from MH i2c: E2 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 0E 00 [17:52:36]MH_I2C_Read... [17:52:36]Read from MH i2c: E2 0E 00 99 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [17:52:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:52:36]wFMCommunicate OK [17:52:36]SAM_PROTO_GetShiftState done [17:52:36]FM_GetShiftState done [17:52:36]req_shift_opened done [17:52:36]requested_item shift.open_date is exist - process it [17:52:36]req_shift_open_date [17:52:36]req_shift_open_date done [17:52:36]produce_requested_data done [17:52:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140301,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:52:36]process_action_free close_receipt [17:52:36]json_value_free [17:52:36]json_value_free done [17:52:36]process_json_proto returns [17:52:36]Send response to host [17:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140301,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:52:36]free response buf [17:52:36]execute_script done [17:52:36]execute_script returns [17:52:36]free content buf [17:52:36]Sock 7.Close socket [17:52:36]Sock 7.Thread stoped [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]accept exits with 9 [17:53:35]New connection [17:53:35]New thread 3067469156 created [17:53:35]Thread 3067612516 joined [17:53:35]Waiting for new connection... [17:53:35] Sock 9.Parse request [17:53:35]Sock 9.Check first char [17:53:35]Sock 9.First char is OK [17:53:35]request: POST /json_proto HTTP/1.0 [17:53:35]Method: POST [17:53:35]URL: /json_proto [17:53:35]Method is POST - this is cgi request [17:53:35]url: /json_proto [17:53:35]query_string will be loaded in cgi processing [17:53:35]execute_cgi json_proto POST (null) [17:53:35]execute_cgi path=json_proto method=POST [17:53:35]POST find Content-Length [17:53:35]Host: 172.17.45.67:8080 [17:53:35]Content-Length: 663 [17:53:35]Content-Type: application/json [17:53:35] [17:53:35]POST finish read [17:53:35]Found Content-Length = 663 [17:53:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:35]execute_script... [17: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)594158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:35]POST & json_proto [17:53:35]process_json_proto [17:53:35]json parsed OK: [17:53:35]protocol is kg_v1.0 [17:53:35]action value=close_receipt [17:53:35]process_action close_receipt [17:53:35]cmd_close_receipt [17:53:35]MH_GetDate [17:53:35]Write to MH i2c: F0 00 00 9A 08 91 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: F0 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: F0 09 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: F0 09 00 9A 08 00 9F 29 C6 66 5F 7F 2B 66 FD [17:53:35]GetLastDocTimeStamp 1724262753 [17:53:35]current date 1724262815 [17:53:35]FM_GetShiftState [17:53:35]SAM_PROTO_GetShiftState [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 13 01 00 [17:53:35]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0E 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [17:53:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_GetShiftState done [17:53:35]FM_GetShiftState done [17:53:35]opened in 1724200467 [17:53:35]opened+sec_in_day 1724286867 [17:53:35]quantity*price = 100035 [17:53:35]sum+1 = 100036 [17:53:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 319 21.08.2024 17:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140302 ФПД: 110412806766820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140302&fm=110412806766820&tin=02508201610067®Number=0000000000092569&sum=100000 [17:53:36]StoreToDocumentArchive [17:53:36]shift 454 fd 140302 [17:53:36]save to /storage/0454/doc_00140302 [17:53:36]save last doc name /storage/0454/doc_00140302 to /storage/kkm_last_doc_name [17:53:36]save OK [17:53:36]Clear old archive folders... [17:53:36]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:53:36]tlvbuf is 00C0D270 [17:53:36]SAM_PROTO_ClearQueue [17:53:36]wFMCommunicate request_size=4 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 09 00 00 [17:53:36]Write to MH i2c: E2 08 00 A8 08 80 09 00 00 00 00 00 00 22 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [17:53:36]RAPDU: 90 00 [17:53:36]wFMCommunicate OK [17:53:36]SAM_PROTO_ClearQueue done [17:53:36]KKMCreateOFDPacket [17:53:36]OFDProtocolAddRootSTLVToBuf [17:53:36]FM_MakeSignedData [17:53:36]FM_MakeSignedData [17:53:36]SAM_PROTO_SignData [17:53:36]wFMCommunicate request_size=4 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 0D 01 02 [17:53:36]Write to MH i2c: E2 08 00 A9 08 80 0D 01 02 00 00 00 00 2A [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [17:53:36]RAPDU: 90 00 [17:53:36]wFMCommunicate OK [17:53:36]wFMCommunicate request_size=253 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 9F 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 24 02 00 35 04 06 00 64 6B 7C 20 40 E4 [17:53:36]Write to MH i2c: E2 00 01 AA 08 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 9F 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 24 02 00 35 04 06 00 64 6B 7C 20 40 E4 00 00 60 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [17:53:36]RAPDU: 90 00 [17:53:36]wFMCommunicate OK [17:53:36]wFMCommunicate request_size=4 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 0D 03 02 [17:53:36]Write to MH i2c: E2 08 00 AB 08 80 0D 03 02 00 00 00 00 2E [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 0B 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 0B 00 AB 08 00 FD 2C 9D 40 82 2E DE E3 90 00 A6 [17:53:36]RAPDU: FD 2C 9D 40 82 2E DE E3 90 00 [17:53:36]wFMCommunicate OK [17:53:36]SAM_PROTO_SignData done [17:53:36]FM_MakeSignedData done [17:53:36]CreateOFDProtocolMessage [17:53:36]wFMCommunicate request_size=4 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 11 00 00 [17:53:36]Write to MH i2c: E2 08 00 AC 08 80 11 00 00 00 00 00 00 2E [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 17 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 17 00 AC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [17:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:53:36]wFMCommunicate OK [17:53:36]CreateOFDProtocolMessage done [17:53:36]OFDSenderStorePacket 140302 [17:53:36]StoreOFDPacket docnum=140302 [17:53:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 CB 5D 00 01 EC B0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 9F 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 24 02 00 35 04 06 00 64 6B 7C 20 40 E4 FD 2C 9D 40 82 2E DE E3 [17:53:36]CheckFolder [17:53:36]dirname=/storage/ofd_packets [17:53:36]CheckFolder done [17:53:36]ProducePacketName [17:53:36]name=ofd_packets/00140302 [17:53:36]NVStorageSaveData ofd_packets/00140302 [17:53:36]File name is /storage/ofd_packets/00140302 [17:53:36]Write 294 bytes [17:53:36]NVStorageSaveData done [17:53:36]OFDSenderStorePacket done [17:53:36]KKMCreateOFDPacket done [17:53:36]NVStorageSaveData kkm_last_timestamp [17:53:36]File name is /storage/kkm_last_timestamp [17:53:36]Write 4 bytes [17:53:36]NVStorageSaveData done [17:53:36]ExternCall_PrintAddStr [17:53:36]wPrintStart [17:53:36]Write to MH i2c: 01 00 00 AD 08 B5 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 AD 08 00 00 00 00 00 FF 0F CA [17:53:36]RasterBufferAndPrint [17:53:36]line Счет N : (1)594158 [17:53:36]line ИНН: 02508201610067 [17:53:36]line Контрольно-Кассовый Чек [17:53:36]line ПРОДАЖА [17:53:36]line ТРК (МРК, ГНК) : 63 [17:53:36]line Товар: 2710124130 [17:53:36]line SU-92 [17:53:36]line 14.540 * 68.80 [17:53:36]line = 1000.35 [17:53:36]line НДС 12% НСП 1% [17:53:36]line > о реализуемом товаре [17:53:36]line ОКРУГЛЕНИЕ: -0.35 [17:53:36]line ИТОГО: 1000.00 [17:53:36]line Внесено: 1000.00 [17:53:36]line СДАЧА: 0.00 [17:53:36]line НСП 1% : 8.85 [17:53:36]line НДС 12% : 106.23 [17:53:36]line Наличными: 1000.00 [17:53:36]line Безнал.: 0.00 [17:53:36]line Место: АЗС № 136 "Партнер Нефть" [17:53:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:53:36]line СНО: Общий режим [17:53:36]line Чек 319 21.08.2024 17:53 [17:53:36]line Смена: 454 ФФД: 1.0 [17:53:36]line ЗНМ: 0300000067 [17:53:36]line РНМ: 0000000000092569 [17:53:36]line Версия ККМ: 001 [17:53:36]line ФМ: 0000000000871776 [17:53:36]line ФД: 140302 [17:53:36]line ФПД: 110412806766820 [17:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140302&fm=110412806766820&tin=02508201610067®Number=0000000000092569&sum=100000 [17:53:37]OFD Sender: Processing packet 140302 [packets to send 137, broken 136] [17:53:37]ProducePacketName [17:53:37]name=ofd_packets/00140302 [17:53:37]OFD Sender: To server: pG, [17:53:37]CommunicateWithHost lk.salyk.kg:30040 [17:53:37]ConnectInit lk.salyk.kg [17:53:37]written 0, free lines is 4095 [17:53:37]Connected sock=10 [17: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 37 36 08 01 00 00 CB 5D 00 01 EC B0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 9F 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0E 24 02 00 35 04 06 00 64 6B 7C 20 40 E4 FD 2C 9D 40 82 2E DE E3 [17: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 37 36 4F 00 00 00 8B 8A 47 00 E4 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 37 36 10 04 04 00 0E 24 02 00 F4 03 04 00 2F D0 C5 66 B6 04 01 00 00 21 F3 C7 C0 CD D2 E9 C6 [17:53:37]CommunicateWithHost err = 0 [17:53:37]CheckOFDResponse [17:53:37]1017 (14) - 77093643461234 [17:53:37]1041 (16) - 0000000000871776 [17:53:37]1040 (4) - 140302 [17:53:37]1012 (4) - 21.08.2024 11:31 [17:53:37]1206 (1) - 0 [17:53:37]OFD Sender: Remove packet 140302 [17:53:37]ProducePacketName [17:53:37]name=ofd_packets/00140302 [17:53:37]NVStorageDeleteData [17:53:37]Write to MH i2c: 01 00 00 D8 08 E0 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: 01 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: 01 07 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 E6 0C D9 [17:53:37]RasterBufferAndPrint [17:53:37]line [17:53:37]line [17:53:37]line [17:53:37]line [17:53:37]line [17:53:37]written 0, free lines is 3308 [17:53:37]MH_Cut [17:53:37]Write to MH i2c: D1 01 00 DF 08 01 B9 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: D1 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: D1 01 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: D1 01 00 DF 08 00 B8 [17:53:37]Write to MH i2c: 01 00 00 E0 08 E8 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:38]OFD Sender: No OFD packet to send [17:53:38]*** Cut start [17:53:38]*** Partial cut [17:53:38]*** CUTSNS_PIN = 1 [17:53:38]*** CUTSNS_PIN = 0 [17:53:38]*** Brake cut motor [17:53:39]Read from MH i2c: 01 [17:53:39]MH_I2C_Read... [17:53:39]*** Stop cut motor [17:53:39]*** Cut end [17:53:39]Read from MH i2c: 01 07 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [17:53:39]process_action close_receipt done [17:53:39]requested_data is exist [17:53:39]produce_requested_data [17:53:39]requested_item fm.sn is exist - process it [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 11 00 00 [17:53:39]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BA [17:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:53:39]wFMCommunicate OK [17:53:39]requested_item fd.num is exist - process it [17:53:39]SAM_PROTO_GetFieldsCounters [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 13 00 00 [17:53:39]Write to MH i2c: E2 08 00 E2 08 80 13 00 00 00 00 00 00 66 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 62 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 62 00 E2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 24 02 00 0E 04 04 00 C6 01 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 4C [17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0E 24 02 00 0E 04 04 00 C6 01 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 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_GetFieldsCounters done [17:53:39]requested_item shift.num is exist - process it [17:53:39]requested_item shift.opened is exist - process it [17:53:39]req_shift_opened [17:53:39]FM_GetShiftState [17:53:39]SAM_PROTO_GetShiftState [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 13 01 00 [17:53:39]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:39]Read from MH i2c: E2 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0E 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E8 [17:53:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:53:39]wFMCommunicate OK [17:53:39]SAM_PROTO_GetShiftState done [17:53:39]FM_GetShiftState done [17:53:39]req_shift_opened done [17:53:39]requested_item shift.open_date is exist - process it [17:53:39]req_shift_open_date [17:53:39]req_shift_open_date done [17:53:39]produce_requested_data done [17:53:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140302,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:53:39]process_action_free close_receipt [17:53:39]json_value_free [17:53:39]json_value_free done [17:53:39]process_json_proto returns [17:53:39]Send response to host [17:53:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140302,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:53:39]free response buf [17:53:39]execute_script done [17:53:39]execute_script returns [17:53:39]free content buf [17:53:39]Sock 9.Close socket [17:53:39]Sock 9.Thread stoped [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:14]accept exits with 7 [17:54:14]New connection [17:54:14]New thread 3067612516 created [17:54:14]Thread 3067469156 joined [17:54:14]Waiting for new connection... [17:54:14] Sock 7.Parse request [17:54:14]Sock 7.Check first char [17:54:14]Sock 7.First char is OK [17:54:14]request: POST /json_proto HTTP/1.0 [17:54:14]Method: POST [17:54:14]URL: /json_proto [17:54:14]Method is POST - this is cgi request [17:54:14]url: /json_proto [17:54:14]query_string will be loaded in cgi processing [17:54:14]execute_cgi json_proto POST (null) [17:54:14]execute_cgi path=json_proto method=POST [17:54:14]POST find Content-Length [17:54:14]Host: 172.17.45.67:8080 [17:54:14]Content-Length: 677 [17:54:14]Content-Type: application/json [17:54:14] [17:54:14]POST finish read [17:54:14]Found Content-Length = 677 [17:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:14]execute_script... [17:54: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)594160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:14]POST & json_proto [17:54:14]process_json_proto [17:54:14]json parsed OK: [17:54:14]protocol is kg_v1.0 [17:54:14]action value=close_receipt [17:54:14]process_action close_receipt [17:54:14]cmd_close_receipt [17:54:14]MH_GetDate [17:54:14]Write to MH i2c: F0 00 00 E4 08 DB [17:54:14]Write i2c OK [17:54:14]MH_I2C_Read... [17:54:14]Read from MH i2c: F0 [17:54:14]MH_I2C_Read... [17:54:14]Read from MH i2c: F0 09 00 [17:54:14]MH_I2C_Read... [17:54:14]Read from MH i2c: F0 09 00 E4 08 00 C6 29 C6 66 5F 7F 2B 66 6E [17:54:14]GetLastDocTimeStamp 1724262815 [17:54:14]current date 1724262854 [17:54:14]FM_GetShiftState [17:54:14]SAM_PROTO_GetShiftState [17:54:14]wFMCommunicate request_size=4 [17:54:14]MH_SAM_APDU [17:54:14]CAPDU: 80 13 01 00 [17:54:14]Write to MH i2c: E2 08 00 E5 08 80 13 01 00 00 00 00 00 6A [17:54:14]Write i2c OK [17:54:14]MH_I2C_Read... [17:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:14]Read from MH i2c: E2 [17:54:14]MH_I2C_Read... [17:54:14]Read from MH i2c: E2 0E 00 [17:54:14]MH_I2C_Read... [17:54:14]Read from MH i2c: E2 0E 00 E5 08 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EA [17:54:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:54:14]wFMCommunicate OK [17:54:14]SAM_PROTO_GetShiftState done [17:54:14]FM_GetShiftState done [17:54:14]opened in 1724200467 [17:54:14]opened+sec_in_day 1724286867 [17:54:14]quantity*price = 40002 [17:54:14]sum+1 = 40003 [17:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 320 21.08.2024 17:54 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140303 ФПД: 255193588170580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140303&fm=255193588170580&tin=02508201610067®Number=0000000000092569&sum=40000 [17:54:15]StoreToDocumentArchive [17:54:15]shift 454 fd 140303 [17:54:15]save to /storage/0454/doc_00140303 [17:54:15]save last doc name /storage/0454/doc_00140303 to /storage/kkm_last_doc_name [17:54:15]save OK [17:54:15]Clear old archive folders... [17:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:15]tlvbuf is 00C9B620 [17:54:15]SAM_PROTO_ClearQueue [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 09 00 00 [17:54:15]Write to MH i2c: E2 08 00 F2 08 80 09 00 00 00 00 00 00 6C [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]SAM_PROTO_ClearQueue done [17:54:15]KKMCreateOFDPacket [17:54:15]OFDProtocolAddRootSTLVToBuf [17:54:15]FM_MakeSignedData [17:54:15]FM_MakeSignedData [17:54:15]SAM_PROTO_SignData [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 01 02 [17:54:15]Write to MH i2c: E2 08 00 F3 08 80 0D 01 02 00 00 00 00 74 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=255 [17:54:15]MH_SAM_APDU [17:54: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C6 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 24 02 00 35 04 06 00 E8 [17:54:15]Write to MH i2c: E2 02 01 F4 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C6 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 24 02 00 35 04 06 00 E8 00 00 22 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=10 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 02 02 05 18 E3 2B FF 54 [17:54:15]Write to MH i2c: E2 0D 00 F5 08 80 0D 02 02 05 00 18 E3 2B FF 54 00 00 FA [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [17:54:15]RAPDU: 90 00 [17:54:15]wFMCommunicate OK [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 0D 03 02 [17:54:15]Write to MH i2c: E2 08 00 F6 08 80 0D 03 02 00 00 00 00 79 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 0B 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 0B 00 F6 08 00 AB 8C 3A C8 72 D8 F6 33 90 00 26 [17:54:15]RAPDU: AB 8C 3A C8 72 D8 F6 33 90 00 [17:54:15]wFMCommunicate OK [17:54:15]SAM_PROTO_SignData done [17:54:15]FM_MakeSignedData done [17:54:15]CreateOFDProtocolMessage [17:54:15]wFMCommunicate request_size=4 [17:54:15]MH_SAM_APDU [17:54:15]CAPDU: 80 11 00 00 [17:54:15]Write to MH i2c: E2 08 00 F7 08 80 11 00 00 00 00 00 00 79 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:15]Read from MH i2c: E2 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 17 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: E2 17 00 F7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [17:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:54:15]wFMCommunicate OK [17:54:15]CreateOFDProtocolMessage done [17:54:15]OFDSenderStorePacket 140303 [17:54:15]StoreOFDPacket docnum=140303 [17:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D4 51 07 01 D3 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C6 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 24 02 00 35 04 06 00 E8 18 E3 2B FF 54 AB 8C 3A C8 72 D8 F6 33 [17:54:15]CheckFolder [17:54:15]dirname=/storage/ofd_packets [17:54:15]CheckFolder done [17:54:15]ProducePacketName [17:54:15]name=ofd_packets/00140303 [17:54:15]NVStorageSaveData ofd_packets/00140303 [17:54:15]File name is /storage/ofd_packets/00140303 [17:54:15]Write 301 bytes [17:54:15]NVStorageSaveData done [17:54:15]OFDSenderStorePacket done [17:54:15]KKMCreateOFDPacket done [17:54:15]NVStorageSaveData kkm_last_timestamp [17:54:15]File name is /storage/kkm_last_timestamp [17:54:15]Write 4 bytes [17:54:15]NVStorageSaveData done [17:54:15]ExternCall_PrintAddStr [17:54:15]wPrintStart [17:54:15]Write to MH i2c: 01 00 00 F8 08 00 [17:54:15]Write i2c OK [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 07 00 [17:54:15]MH_I2C_Read... [17:54:15]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 FF 0F 15 [17:54:15]RasterBufferAndPrint [17:54:15]line Счет N : (1)594160 [17:54:15]line ИНН: 02508201610067 [17:54:15]line Контрольно-Кассовый Чек [17:54:15]line ПРОДАЖА [17:54:15]line ТРК (МРК, ГНК) : 52 [17:54:15]line Товар: 2710124130 [17:54:15]line Аи-92-К-5 [17:54:15]line 5.900 * 67.80 [17:54:15]line = 400.02 [17:54:15]line НДС 12% НСП 1% [17:54:15]line > о реализуемом товаре [17:54:15]line ОКРУГЛЕНИЕ: -0.02 [17:54:15]line ИТОГО: 400.00 [17:54:15]line Внесено: 400.00 [17:54:15]line СДАЧА: 0.00 [17:54:15]line НСП 1% : 3.54 [17:54:15]line НДС 12% : 42.48 [17:54:15]line Наличными: 400.00 [17:54:15]line Безнал.: 0.00 [17:54:15]line Место: АЗС № 136 "Партнер Нефть" [17:54:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:54:15]line СНО: Общий режим [17:54:15]line Чек 320 21.08.2024 17:54 [17:54:15]line Смена: 454 ФФД: 1.0 [17:54:15]line ЗНМ: 0300000067 [17:54:15]line РНМ: 0000000000092569 [17:54:15]line Версия ККМ: 001 [17:54:15]line ФМ: 0000000000871776 [17:54:15]line ФД: 140303 [17:54:15]line ФПД: 255193588170580 [17:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175414&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140303&fm=255193588170580&tin=02508201610067®Number=0000000000092569&sum=40000 [17:54:16]written 0, free lines is 4095 [17:54:16]OFD Sender: Processing packet 140303 [packets to send 137, broken 136] [17:54:16]ProducePacketName [17:54:16]name=ofd_packets/00140303 [17:54:16]OFD Sender: To server: pG, [17:54:16]CommunicateWithHost lk.salyk.kg:30040 [17:54:16]ConnectInit lk.salyk.kg [17:54:16]Connected sock=10 [17:54: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 37 36 0F 01 00 00 D4 51 07 01 D3 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C6 29 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 0F 24 02 00 35 04 06 00 E8 18 E3 2B FF 54 AB 8C 3A C8 72 D8 F6 33 [17:54: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 37 36 4F 00 00 00 F3 E0 47 00 9B 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 37 36 10 04 04 00 0F 24 02 00 F4 03 04 00 56 D0 C5 66 B6 04 01 00 00 B4 FF C8 76 55 CF FD 9C [17:54:16]CommunicateWithHost err = 0 [17:54:16]CheckOFDResponse [17:54:16]1017 (14) - 77093643461234 [17:54:16]1041 (16) - 0000000000871776 [17:54:16]1040 (4) - 140303 [17:54:16]1012 (4) - 21.08.2024 11:32 [17:54:16]1206 (1) - 0 [17:54:16]OFD Sender: Remove packet 140303 [17:54:16]ProducePacketName [17:54:16]name=ofd_packets/00140303 [17:54:16]NVStorageDeleteData [17:54:16]Write to MH i2c: 01 00 00 23 09 2C [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 D5 0C 14 [17:54:16]RasterBufferAndPrint [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]line [17:54:16]written 0, free lines is 3289 [17:54:16]MH_Cut [17:54:16]Write to MH i2c: D1 01 00 2A 09 01 05 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 01 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: D1 01 00 2A 09 00 04 [17:54:16]Write to MH i2c: 01 00 00 2B 09 34 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:17]OFD Sender: No OFD packet to send [17:54:17]*** Cut start [17:54:17]*** Partial cut [17:54:17]*** CUTSNS_PIN = 1 [17:54:17]*** CUTSNS_PIN = 0 [17:54:17]*** Brake cut motor [17:54:17]Read from MH i2c: 01 [17:54:17]MH_I2C_Read... [17:54:17]*** Stop cut motor [17:54:17]*** Cut end [17:54:17]Read from MH i2c: 01 07 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 FF 0F 49 [17:54:17]process_action close_receipt done [17:54:17]requested_data is exist [17:54:17]produce_requested_data [17:54:17]requested_item fm.sn is exist - process it [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 11 00 00 [17:54:17]Write to MH i2c: E2 08 00 2C 09 80 11 00 00 00 00 00 00 AF [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 17 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 17 00 2C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [17:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:54:18]wFMCommunicate OK [17:54:18]requested_item fd.num is exist - process it [17:54:18]SAM_PROTO_GetFieldsCounters [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 13 00 00 [17:54:18]Write to MH i2c: E2 08 00 2D 09 80 13 00 00 00 00 00 00 B2 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 62 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 62 00 2D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 24 02 00 0E 04 04 00 C6 01 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 9C [17:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 0F 24 02 00 0E 04 04 00 C6 01 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 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_GetFieldsCounters done [17:54:18]requested_item shift.num is exist - process it [17:54:18]requested_item shift.opened is exist - process it [17:54:18]req_shift_opened [17:54:18]FM_GetShiftState [17:54:18]SAM_PROTO_GetShiftState [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 13 01 00 [17:54:18]Write to MH i2c: E2 08 00 2E 09 80 13 01 00 00 00 00 00 B4 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 2E 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 34 [17:54:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_GetShiftState done [17:54:18]FM_GetShiftState done [17:54:18]req_shift_opened done [17:54:18]requested_item shift.open_date is exist - process it [17:54:18]req_shift_open_date [17:54:18]req_shift_open_date done [17:54:18]produce_requested_data done [17:54:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140303,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:54:18]process_action_free close_receipt [17:54:18]json_value_free [17:54:18]json_value_free done [17:54:18]process_json_proto returns [17:54:18]Send response to host [17:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140303,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:54:18]free response buf [17:54:18]execute_script done [17:54:18]execute_script returns [17:54:18]free content buf [17:54:18]Sock 7.Close socket [17:54:18]Sock 7.Thread stoped [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:55:58]accept exits with 9 [17:55:58]New connection [17:55:58]New thread 3067469156 created [17:55:58]Thread 3067612516 joined [17:55:58]Waiting for new connection... [17:55:58] Sock 9.Parse request [17:55:58]Sock 9.Check first char [17:55:58]Sock 9.First char is OK [17:55:58]request: POST /json_proto HTTP/1.0 [17:55:58]Method: POST [17:55:58]URL: /json_proto [17:55:58]Method is POST - this is cgi request [17:55:58]url: /json_proto [17:55:58]query_string will be loaded in cgi processing [17:55:58]execute_cgi json_proto POST (null) [17:55:58]execute_cgi path=json_proto method=POST [17:55:58]POST find Content-Length [17:55:58]Host: 172.17.45.67:8080 [17:55:58]Content-Length: 754 [17:55:58]Content-Type: application/json [17:55:58] [17:55:58]POST finish read [17:55:58]Found Content-Length = 754 [17:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:58]execute_script... [17:55:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:58]POST & json_proto [17:55:58]process_json_proto [17:55:58]json parsed OK: [17:55:58]protocol is kg_v1.0 [17:55:58]action value=close_receipt [17:55:58]process_action close_receipt [17:55:58]cmd_close_receipt [17:55:58]MH_GetDate [17:55:58]Write to MH i2c: F0 00 00 2F 09 27 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 09 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: F0 09 00 2F 09 00 2E 2A C6 66 5F 7F 2B 66 23 [17:55:58]GetLastDocTimeStamp 1724262854 [17:55:58]current date 1724262958 [17:55:58]FM_GetShiftState [17:55:58]SAM_PROTO_GetShiftState [17:55:58]wFMCommunicate request_size=4 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 13 01 00 [17:55:58]Write to MH i2c: E2 08 00 30 09 80 13 01 00 00 00 00 00 B6 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0E 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0E 00 30 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 36 [17:55:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:55:58]wFMCommunicate OK [17:55:58]SAM_PROTO_GetShiftState done [17:55:58]FM_GetShiftState done [17:55:58]opened in 1724200467 [17:55:58]opened+sec_in_day 1724286867 [17:55:58]quantity*price = 0 [17:55:58]sum+1 = 1 [17:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 321 21.08.2024 17:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30157244 ФМ: 0000000000871776 ФД: 140304 ФПД: 96659838595604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175558&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140304&fm=96659838595604&tin=02508201610067®Number=0000000000092569&sum=0 [17:55:59]StoreToDocumentArchive [17:55:59]shift 454 fd 140304 [17:55:59]save to /storage/0454/doc_00140304 [17:55:59]save last doc name /storage/0454/doc_00140304 to /storage/kkm_last_doc_name [17:55:59]save OK [17:55:59]Clear old archive folders... [17:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:59]tlvbuf is 00C9BA10 [17:55:59]SAM_PROTO_ClearQueue [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 09 00 00 [17:55:59]Write to MH i2c: E2 08 00 3D 09 80 09 00 00 00 00 00 00 B8 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_ClearQueue done [17:55:59]KKMCreateOFDPacket [17:55:59]OFDProtocolAddRootSTLVToBuf [17:55:59]FM_MakeSignedData [17:55:59]FM_MakeSignedData [17:55:59]SAM_PROTO_SignData [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 01 02 [17:55:59]Write to MH i2c: E2 08 00 3E 09 80 0D 01 02 00 00 00 00 C0 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=255 [17:55:59]MH_SAM_APDU [17:55: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 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 41 01 00 00 F4 03 04 00 2E 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 24 02 00 35 04 06 00 57 [17:55:59]Write to MH i2c: E2 02 01 3F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 2E 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 24 02 00 35 04 06 00 57 00 00 5C [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=10 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 02 02 05 E9 5F 57 F2 14 [17:55:59]Write to MH i2c: E2 0D 00 40 09 80 0D 02 02 05 00 E9 5F 57 F2 14 00 00 72 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [17:55:59]RAPDU: 90 00 [17:55:59]wFMCommunicate OK [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 0D 03 02 [17:55:59]Write to MH i2c: E2 08 00 41 09 80 0D 03 02 00 00 00 00 C5 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0B 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0B 00 41 09 00 F2 07 1D 46 09 A4 97 A8 90 00 0E [17:55:59]RAPDU: F2 07 1D 46 09 A4 97 A8 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_SignData done [17:55:59]FM_MakeSignedData done [17:55:59]CreateOFDProtocolMessage [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 11 00 00 [17:55:59]Write to MH i2c: E2 08 00 42 09 80 11 00 00 00 00 00 00 C5 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 42 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [17:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:55:59]wFMCommunicate OK [17:55:59]CreateOFDProtocolMessage done [17:55:59]OFDSenderStorePacket 140304 [17:55:59]StoreOFDPacket docnum=140304 [17:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 69 07 01 9A 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 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 41 01 00 00 F4 03 04 00 2E 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 24 02 00 35 04 06 00 57 E9 5F 57 F2 14 F2 07 1D 46 09 A4 97 A8 [17:55:59]CheckFolder [17:55:59]dirname=/storage/ofd_packets [17:55:59]CheckFolder done [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00140304 [17:55:59]NVStorageSaveData ofd_packets/00140304 [17:55:59]File name is /storage/ofd_packets/00140304 [17:55:59]Write 301 bytes [17:55:59]NVStorageSaveData done [17:55:59]OFDSenderStorePacket done [17:55:59]KKMCreateOFDPacket done [17:55:59]NVStorageSaveData kkm_last_timestamp [17:55:59]File name is /storage/kkm_last_timestamp [17:55:59]Write 4 bytes [17:55:59]NVStorageSaveData done [17:55:59]ExternCall_PrintAddStr [17:55:59]wPrintStart [17:55:59]Write to MH i2c: 01 00 00 43 09 4C [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 43 09 00 00 00 00 00 FF 0F 61 [17:55:59]RasterBufferAndPrint [17:55:59]line Счет N : (1)594161 [17:55:59]line ИНН: 02508201610067 [17:55:59]line Контрольно-Кассовый Чек [17:55:59]line ПРОДАЖА [17:55:59]line ТРК (МРК, ГНК) : 42 [17:55:59]line Товар: 2710124130 [17:55:59]line Аи-92-К-5 [17:55:59]line 20.000 * 0.00 [17:55:59]line = 0.00 [17:55:59]line НДС 12% НСП 1% [17:55:59]line > о реализуемом товаре [17:55:59]line ИТОГО: 0.00 [17:55:59]line НСП 1% : 0.00 [17:55:59]line НДС 12% : 0.00 [17:55:59]line Наличными: 0.00 [17:55:59]line Безнал.: 0.00 [17:55:59]line Место: АЗС № 136 "Партнер Нефть" [17:55:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:55:59]line СНО: Общий режим [17:55:59]line Чек 321 21.08.2024 17:55 [17:55:59]line Смена: 454 ФФД: 1.0 [17:55:59]line ЗНМ: 0300000067 [17:55:59]line РНМ: 0000000000092569 [17:55:59]line Версия ККМ: 001 [17:55:59]line Талоны: ТК ГПНА Online [17:55:59]line 30157244 [17:55:59]line ФМ: 0000000000871776 [17:55:59]line ФД: 140304 [17:55:59]line ФПД: 96659838595604 [17:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175558&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140304&fm=96659838595604&tin=02508201610067®Number=0000000000092569&sum=0 [17:56:00]OFD Sender: Processing packet 140304 [packets to send 137, broken 136] [17:56:00]ProducePacketName [17:56:00]name=ofd_packets/00140304 [17:56:00]OFD Sender: To server: pG, [17:56:00]CommunicateWithHost lk.salyk.kg:30040 [17:56:00]ConnectInit lk.salyk.kg [17:56:00]written 0, free lines is 4095 [17:56:00]Connected sock=10 [17:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 61 69 07 01 9A 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 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 41 01 00 00 F4 03 04 00 2E 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 10 24 02 00 35 04 06 00 57 E9 5F 57 F2 14 F2 07 1D 46 09 A4 97 A8 [17:56:00]Write to MH i2c: 01 00 00 6D 09 76 [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 07 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 DD 0C 66 [17:56:00]RasterBufferAndPrint [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]line [17:56:00]written 0, free lines is 3300 [17:56: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 37 36 4F 00 00 00 9A C1 47 00 06 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 37 36 10 04 04 00 10 24 02 00 F4 03 04 00 BE D0 C5 66 B6 04 01 00 00 BB 25 B2 0C F4 79 C5 4C [17:56:00]CommunicateWithHost err = 0 [17:56:00]CheckOFDResponse [17:56:00]1017 (14) - 77093643461234 [17:56:00]1041 (16) - 0000000000871776 [17:56:00]1040 (4) - 140304 [17:56:00]1012 (4) - 21.08.2024 11:34 [17:56:00]1206 (1) - 0 [17:56:00]OFD Sender: Remove packet 140304 [17:56:00]ProducePacketName [17:56:00]name=ofd_packets/00140304 [17:56:00]NVStorageDeleteData [17:56:00]MH_Cut [17:56:00]Write to MH i2c: D1 01 00 74 09 01 4F [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 01 00 [17:56:00]MH_I2C_Read... [17:56:00]Read from MH i2c: D1 01 00 74 09 00 4E [17:56:00]Write to MH i2c: 01 00 00 75 09 7E [17:56:00]Write i2c OK [17:56:00]MH_I2C_Read... [17:56:01]OFD Sender: No OFD packet to send [17:56:01]*** Cut start [17:56:01]*** Partial cut [17:56:01]*** CUTSNS_PIN = 1 [17:56:01]*** CUTSNS_PIN = 0 [17:56:01]*** Brake cut motor [17:56:01]Read from MH i2c: 01 [17:56:01]MH_I2C_Read... [17:56:01]*** Stop cut motor [17:56:01]*** Cut end [17:56:01]Read from MH i2c: 01 07 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 FF 0F 93 [17:56:01]process_action close_receipt done [17:56:01]requested_data is exist [17:56:01]produce_requested_data [17:56:01]requested_item fm.sn is exist - process it [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 11 00 00 [17:56:01]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 [17:56:01]MH_I2C_Read... [17:56:01]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 37 36 90 00 50 [17:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:56:01]wFMCommunicate OK [17:56:01]requested_item fd.num is exist - process it [17:56:01]SAM_PROTO_GetFieldsCounters [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 13 00 00 [17:56:01]Write to MH i2c: E2 08 00 77 09 80 13 00 00 00 00 00 00 FC [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:02]Read from MH i2c: E2 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 62 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 62 00 77 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 24 02 00 0E 04 04 00 C6 01 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 EA [17:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 10 24 02 00 0E 04 04 00 C6 01 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 [17:56:02]wFMCommunicate OK [17:56:02]SAM_PROTO_GetFieldsCounters done [17:56:02]requested_item shift.num is exist - process it [17:56:02]requested_item shift.opened is exist - process it [17:56:02]req_shift_opened [17:56:02]FM_GetShiftState [17:56:02]SAM_PROTO_GetShiftState [17:56:02]wFMCommunicate request_size=4 [17:56:02]MH_SAM_APDU [17:56:02]CAPDU: 80 13 01 00 [17:56:02]Write to MH i2c: E2 08 00 78 09 80 13 01 00 00 00 00 00 FE [17:56:02]Write i2c OK [17:56:02]MH_I2C_Read... [17:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:02]Read from MH i2c: E2 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 0E 00 [17:56:02]MH_I2C_Read... [17:56:02]Read from MH i2c: E2 0E 00 78 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7E [17:56:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:56:02]wFMCommunicate OK [17:56:02]SAM_PROTO_GetShiftState done [17:56:02]FM_GetShiftState done [17:56:02]req_shift_opened done [17:56:02]requested_item shift.open_date is exist - process it [17:56:02]req_shift_open_date [17:56:02]req_shift_open_date done [17:56:02]produce_requested_data done [17:56:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140304,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:56:02]process_action_free close_receipt [17:56:02]json_value_free [17:56:02]json_value_free done [17:56:02]process_json_proto returns [17:56:02]Send response to host [17:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140304,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:56:02]free response buf [17:56:02]execute_script done [17:56:02]execute_script returns [17:56:02]free content buf [17:56:02]Sock 9.Close socket [17:56:02]Sock 9.Thread stoped [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:17]accept exits with 7 [17:56:17]New connection [17:56:17]New thread 3067612516 created [17:56:17]Thread 3067469156 joined [17:56:17]Waiting for new connection... [17:56:17] Sock 7.Parse request [17:56:17]Sock 7.Check first char [17:56:17]Sock 7.First char is OK [17:56:17]request: POST /json_proto HTTP/1.0 [17:56:17]Method: POST [17:56:17]URL: /json_proto [17:56:17]Method is POST - this is cgi request [17:56:17]url: /json_proto [17:56:17]query_string will be loaded in cgi processing [17:56:17]execute_cgi json_proto POST (null) [17:56:17]execute_cgi path=json_proto method=POST [17:56:17]POST find Content-Length [17:56:17]Host: 172.17.45.67:8080 [17:56:17]Content-Length: 677 [17:56:17]Content-Type: application/json [17:56:17] [17:56:17]POST finish read [17:56:17]Found Content-Length = 677 [17:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:17]execute_script... [17:56:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:17]POST & json_proto [17:56:17]process_json_proto [17:56:17]json parsed OK: [17:56:17]protocol is kg_v1.0 [17:56:17]action value=close_receipt [17:56:17]process_action close_receipt [17:56:17]cmd_close_receipt [17:56:17]MH_GetDate [17:56:17]Write to MH i2c: F0 00 00 79 09 71 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 09 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 09 00 79 09 00 41 2A C6 66 5F 7F 2B 66 80 [17:56:17]GetLastDocTimeStamp 1724262958 [17:56:17]current date 1724262977 [17:56:17]FM_GetShiftState [17:56:17]SAM_PROTO_GetShiftState [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 13 01 00 [17:56:17]Write to MH i2c: E2 08 00 7A 09 80 13 01 00 00 00 00 00 00 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0E 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0E 00 7A 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 80 [17:56:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_GetShiftState done [17:56:17]FM_GetShiftState done [17:56:17]opened in 1724200467 [17:56:17]opened+sec_in_day 1724286867 [17:56:17]quantity*price = 30035 [17:56:17]sum+1 = 30036 [17:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 322 21.08.2024 17:56 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140305 ФПД: 44638532911586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175617&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140305&fm=44638532911586&tin=02508201610067®Number=0000000000092569&sum=30000 [17:56:18]StoreToDocumentArchive [17:56:18]shift 454 fd 140305 [17:56:18]save to /storage/0454/doc_00140305 [17:56:18]save last doc name /storage/0454/doc_00140305 to /storage/kkm_last_doc_name [17:56:18]save OK [17:56:18]Clear old archive folders... [17:56:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:18]tlvbuf is 00C9B650 [17:56:18]SAM_PROTO_ClearQueue [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 09 00 00 [17:56:18]Write to MH i2c: E2 08 00 87 09 80 09 00 00 00 00 00 00 02 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [17:56:18]RAPDU: 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_ClearQueue done [17:56:18]KKMCreateOFDPacket [17:56:18]OFDProtocolAddRootSTLVToBuf [17:56:18]FM_MakeSignedData [17:56:18]FM_MakeSignedData [17:56:18]SAM_PROTO_SignData [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 0D 01 02 [17:56:18]Write to MH i2c: E2 08 00 88 09 80 0D 01 02 00 00 00 00 0A [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 88 09 00 90 00 05 [17:56:18]RAPDU: 90 00 [17:56:18]wFMCommunicate OK [17:56:18]wFMCommunicate request_size=255 [17:56:18]MH_SAM_APDU [17:56: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 41 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 24 02 00 35 04 06 00 28 [17:56:18]Write to MH i2c: E2 02 01 89 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 41 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 24 02 00 35 04 06 00 28 00 00 B2 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 03 00 89 09 00 90 00 06 [17:56:18]RAPDU: 90 00 [17:56:18]wFMCommunicate OK [17:56:18]wFMCommunicate request_size=10 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 0D 02 02 05 99 37 E5 C1 E2 [17:56:18]Write to MH i2c: E2 0D 00 8A 09 80 0D 02 02 05 00 99 37 E5 C1 E2 00 00 6F [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 03 02 [17:56:19]Write to MH i2c: E2 08 00 8B 09 80 0D 03 02 00 00 00 00 0F [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 0B 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 0B 00 8B 09 00 BA ED 72 80 AD DC 83 A2 90 00 57 [17:56:19]RAPDU: BA ED 72 80 AD DC 83 A2 90 00 [17:56:19]wFMCommunicate OK [17:56:19]SAM_PROTO_SignData done [17:56:19]FM_MakeSignedData done [17:56:19]CreateOFDProtocolMessage [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 11 00 00 [17:56:19]Write to MH i2c: E2 08 00 8C 09 80 11 00 00 00 00 00 00 0F [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 17 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 17 00 8C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 66 [17:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:56:19]wFMCommunicate OK [17:56:19]CreateOFDProtocolMessage done [17:56:19]OFDSenderStorePacket 140305 [17:56:19]StoreOFDPacket docnum=140305 [17:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7A 96 07 01 19 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 41 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 24 02 00 35 04 06 00 28 99 37 E5 C1 E2 BA ED 72 80 AD DC 83 A2 [17:56:19]CheckFolder [17:56:19]dirname=/storage/ofd_packets [17:56:19]CheckFolder done [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00140305 [17:56:19]NVStorageSaveData ofd_packets/00140305 [17:56:19]File name is /storage/ofd_packets/00140305 [17:56:19]Write 301 bytes [17:56:19]NVStorageSaveData done [17:56:19]OFDSenderStorePacket done [17:56:19]KKMCreateOFDPacket done [17:56:19]NVStorageSaveData kkm_last_timestamp [17:56:19]File name is /storage/kkm_last_timestamp [17:56:19]Write 4 bytes [17:56:19]NVStorageSaveData done [17:56:19]OFD Sender: Processing packet 140305 [packets to send 137, broken 136] [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00140305 [17:56:19]OFD Sender: To server: pG, [17:56:19]CommunicateWithHost lk.salyk.kg:30040 [17:56:19]ConnectInit lk.salyk.kg [17:56:19]ExternCall_PrintAddStr [17:56:19]wPrintStart [17:56:19]Write to MH i2c: 01 00 00 8D 09 96 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 8D 09 00 00 00 00 00 FF 0F AB [17:56:19]RasterBufferAndPrint [17:56:19]line Счет N : (1)594162 [17:56:19]line ИНН: 02508201610067 [17:56:19]line Контрольно-Кассовый Чек [17:56:19]line ПРОДАЖА [17:56:19]line ТРК (МРК, ГНК) : 52 [17:56:19]line Товар: 2710124130 [17:56:19]line Аи-92-К-5 [17:56:19]line 4.430 * 67.80 [17:56:19]line = 300.35 [17:56:19]line НДС 12% НСП 1% [17:56:19]line > о реализуемом товаре [17:56:19]line ОКРУГЛЕНИЕ: -0.35 [17:56:19]line ИТОГО: 300.00 [17:56:19]line Внесено: 300.00 [17:56:19]line СДАЧА: 0.00 [17:56:19]line НСП 1% : 2.66 [17:56:19]line НДС 12% : 31.90 [17:56:19]line Наличными: 300.00 [17:56:19]line Безнал.: 0.00 [17:56:19]line Место: АЗС № 136 "Партнер Нефть" [17:56:19]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:56:19]line СНО: Общий режим [17:56:19]line Чек 322 21.08.2024 17:56 [17:56:19]line Смена: 454 ФФД: 1.0 [17:56:19]line ЗНМ: 0300000067 [17:56:19]line РНМ: 0000000000092569 [17:56:19]line Версия ККМ: 001 [17:56:19]line ФМ: 0000000000871776 [17:56:19]line ФД: 140305 [17:56:19]line ФПД: 44638532911586 [17:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175617&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140305&fm=44638532911586&tin=02508201610067®Number=0000000000092569&sum=30000 [17:56:19]Connected sock=11 [17:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7A 96 07 01 19 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 41 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 11 24 02 00 35 04 06 00 28 99 37 E5 C1 E2 BA ED 72 80 AD DC 83 A2 [17:56:19]written 0, free lines is 4095 [17:56: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 37 36 4F 00 00 00 D8 58 47 00 D6 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 37 36 10 04 04 00 11 24 02 00 F4 03 04 00 D2 D0 C5 66 B6 04 01 00 00 4B E6 0E 4A 77 34 CF F6 [17:56:19]CommunicateWithHost err = 0 [17:56:19]CheckOFDResponse [17:56:19]1017 (14) - 77093643461234 [17:56:19]1041 (16) - 0000000000871776 [17:56:19]1040 (4) - 140305 [17:56:19]1012 (4) - 21.08.2024 11:34 [17:56:19]1206 (1) - 0 [17:56:19]OFD Sender: Remove packet 140305 [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00140305 [17:56:19]NVStorageDeleteData [17:56:19]Write to MH i2c: 01 00 00 B8 09 C1 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 D5 0C A9 [17:56:19]RasterBufferAndPrint [17:56:19]line [17:56:19]line [17:56:19]line [17:56:19]line [17:56:19]line [17:56:19]written 0, free lines is 3293 [17:56:19]MH_Cut [17:56:19]Write to MH i2c: D1 01 00 BF 09 01 9A [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: D1 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: D1 01 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: D1 01 00 BF 09 00 99 [17:56:19]Write to MH i2c: 01 00 00 C0 09 C9 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:20]OFD Sender: No OFD packet to send [17:56:20]*** Cut start [17:56:20]*** Partial cut [17:56:20]*** CUTSNS_PIN = 1 [17:56:20]*** CUTSNS_PIN = 0 [17:56:20]*** Brake cut motor [17:56:21]Read from MH i2c: 01 [17:56:21]MH_I2C_Read... [17:56:21]*** Stop cut motor [17:56:21]*** Cut end [17:56:21]Read from MH i2c: 01 07 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [17:56:21]process_action close_receipt done [17:56:21]requested_data is exist [17:56:21]produce_requested_data [17:56:21]requested_item fm.sn is exist - process it [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 11 00 00 [17:56:21]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 17 00 [17:56:21]MH_I2C_Read... [17:56:21]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 37 36 90 00 9B [17:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:56:21]wFMCommunicate OK [17:56:21]requested_item fd.num is exist - process it [17:56:21]SAM_PROTO_GetFieldsCounters [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 13 00 00 [17:56:21]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 62 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 62 00 C2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 24 02 00 0E 04 04 00 C6 01 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 39 [17:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 11 24 02 00 0E 04 04 00 C6 01 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 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_GetFieldsCounters done [17:56:21]requested_item shift.num is exist - process it [17:56:21]requested_item shift.opened is exist - process it [17:56:21]req_shift_opened [17:56:21]FM_GetShiftState [17:56:21]SAM_PROTO_GetShiftState [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 13 01 00 [17:56:21]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0E 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C9 [17:56:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_GetShiftState done [17:56:21]FM_GetShiftState done [17:56:21]req_shift_opened done [17:56:21]requested_item shift.open_date is exist - process it [17:56:21]req_shift_open_date [17:56:21]req_shift_open_date done [17:56:21]produce_requested_data done [17:56:21]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140305,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:56:21]process_action_free close_receipt [17:56:21]json_value_free [17:56:21]json_value_free done [17:56:21]process_json_proto returns [17:56:21]Send response to host [17:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140305,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:56:21]free response buf [17:56:21]execute_script done [17:56:21]execute_script returns [17:56:21]free content buf [17:56:21]Sock 7.Close socket [17:56:21]Sock 7.Thread stoped [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:36]accept exits with 9 [17:58:36]New connection [17:58:36]New thread 3067469156 created [17:58:36]Thread 3067612516 joined [17:58:36]Waiting for new connection... [17:58:36] Sock 9.Parse request [17:58:36]Sock 9.Check first char [17:58:36]Sock 9.First char is OK [17:58:36]request: POST /json_proto HTTP/1.0 [17:58:36]Method: POST [17:58:36]URL: /json_proto [17:58:36]Method is POST - this is cgi request [17:58:36]url: /json_proto [17:58:36]query_string will be loaded in cgi processing [17:58:36]execute_cgi json_proto POST (null) [17:58:36]execute_cgi path=json_proto method=POST [17:58:36]POST find Content-Length [17:58:36]Host: 172.17.45.67:8080 [17:58:36]Content-Length: 677 [17:58:36]Content-Type: application/json [17:58:36] [17:58:36]POST finish read [17:58:36]Found Content-Length = 677 [17:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [17:58:36]execute_script... [17:58: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)594163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [17:58:36]POST & json_proto [17:58:36]process_json_proto [17:58:36]json parsed OK: [17:58:36]protocol is kg_v1.0 [17:58:36]action value=close_receipt [17:58:36]process_action close_receipt [17:58:36]cmd_close_receipt [17:58:36]MH_GetDate [17:58:36]Write to MH i2c: F0 00 00 C4 09 BC [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: F0 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: F0 09 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: F0 09 00 C4 09 00 CD 2A C6 66 5F 7F 2B 66 57 [17:58:36]GetLastDocTimeStamp 1724262977 [17:58:36]current date 1724263117 [17:58:36]FM_GetShiftState [17:58:36]SAM_PROTO_GetShiftState [17:58:36]wFMCommunicate request_size=4 [17:58:36]MH_SAM_APDU [17:58:36]CAPDU: 80 13 01 00 [17:58:36]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [17:58:36]Write i2c OK [17:58:36]MH_I2C_Read... [17:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:36]Read from MH i2c: E2 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0E 00 [17:58:36]MH_I2C_Read... [17:58:36]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CB [17:58:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:58:36]wFMCommunicate OK [17:58:36]SAM_PROTO_GetShiftState done [17:58:36]FM_GetShiftState done [17:58:36]opened in 1724200467 [17:58:36]opened+sec_in_day 1724286867 [17:58:36]quantity*price = 34035 [17:58:36]sum+1 = 34037 [17:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.14 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 323 21.08.2024 17:58 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140306 ФПД: 232614806636098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140306&fm=232614806636098&tin=02508201610067®Number=0000000000092569&sum=34000 [17:58:37]StoreToDocumentArchive [17:58:37]shift 454 fd 140306 [17:58:37]save to /storage/0454/doc_00140306 [17:58:37]save last doc name /storage/0454/doc_00140306 to /storage/kkm_last_doc_name [17:58:37]save OK [17:58:37]Clear old archive folders... [17:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:37]tlvbuf is 00CB8AA0 [17:58:37]SAM_PROTO_ClearQueue [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 09 00 00 [17:58:37]Write to MH i2c: E2 08 00 D2 09 80 09 00 00 00 00 00 00 4D [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]SAM_PROTO_ClearQueue done [17:58:37]KKMCreateOFDPacket [17:58:37]OFDProtocolAddRootSTLVToBuf [17:58:37]FM_MakeSignedData [17:58:37]FM_MakeSignedData [17:58:37]SAM_PROTO_SignData [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 0D 01 02 [17:58:37]Write to MH i2c: E2 08 00 D3 09 80 0D 01 02 00 00 00 00 55 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]wFMCommunicate request_size=255 [17:58:37]MH_SAM_APDU [17:58: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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 43 01 00 00 F4 03 04 00 CD 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 24 02 00 35 04 06 00 D3 [17:58:37]Write to MH i2c: E2 02 01 D4 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 43 01 00 00 F4 03 04 00 CD 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 24 02 00 35 04 06 00 D3 00 00 61 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 03 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [17:58:38]RAPDU: 90 00 [17:58:38]wFMCommunicate OK [17:58:38]wFMCommunicate request_size=10 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 0D 02 02 05 8F DA EB 46 42 [17:58:38]Write to MH i2c: E2 0D 00 D5 09 80 0D 02 02 05 00 8F DA EB 46 42 00 00 3E [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 03 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [17:58:38]RAPDU: 90 00 [17:58:38]wFMCommunicate OK [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 0D 03 02 [17:58:38]Write to MH i2c: E2 08 00 D6 09 80 0D 03 02 00 00 00 00 5A [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 0B 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 0B 00 D6 09 00 FE 30 67 45 86 4E 74 98 90 00 15 [17:58:38]RAPDU: FE 30 67 45 86 4E 74 98 90 00 [17:58:38]wFMCommunicate OK [17:58:38]SAM_PROTO_SignData done [17:58:38]FM_MakeSignedData done [17:58:38]CreateOFDProtocolMessage [17:58:38]wFMCommunicate request_size=4 [17:58:38]MH_SAM_APDU [17:58:38]CAPDU: 80 11 00 00 [17:58:38]Write to MH i2c: E2 08 00 D7 09 80 11 00 00 00 00 00 00 5A [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:38]Read from MH i2c: E2 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 17 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: E2 17 00 D7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B1 [17:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:38]wFMCommunicate OK [17:58:38]CreateOFDProtocolMessage done [17:58:38]OFDSenderStorePacket 140306 [17:58:38]StoreOFDPacket docnum=140306 [17:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 58 07 01 6C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 43 01 00 00 F4 03 04 00 CD 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 24 02 00 35 04 06 00 D3 8F DA EB 46 42 FE 30 67 45 86 4E 74 98 [17:58:38]CheckFolder [17:58:38]dirname=/storage/ofd_packets [17:58:38]CheckFolder done [17:58:38]ProducePacketName [17:58:38]name=ofd_packets/00140306 [17:58:38]NVStorageSaveData ofd_packets/00140306 [17:58:38]File name is /storage/ofd_packets/00140306 [17:58:38]Write 301 bytes [17:58:38]NVStorageSaveData done [17:58:38]OFDSenderStorePacket done [17:58:38]KKMCreateOFDPacket done [17:58:38]NVStorageSaveData kkm_last_timestamp [17:58:38]File name is /storage/kkm_last_timestamp [17:58:38]Write 4 bytes [17:58:38]NVStorageSaveData done [17:58:38]ExternCall_PrintAddStr [17:58:38]wPrintStart [17:58:38]Write to MH i2c: 01 00 00 D8 09 E1 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 07 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [17:58:38]RasterBufferAndPrint [17:58:38]line Счет N : (1)594163 [17:58:38]line ИНН: 02508201610067 [17:58:38]line Контрольно-Кассовый Чек [17:58:38]line ПРОДАЖА [17:58:38]line ТРК (МРК, ГНК) : 32 [17:58:38]line Товар: 2710124130 [17:58:38]line Аи-92-К-5 [17:58:38]line 5.020 * 67.80 [17:58:38]line = 340.36 [17:58:38]line НДС 12% НСП 1% [17:58:38]line > о реализуемом товаре [17:58:38]line ОКРУГЛЕНИЕ: -0.36 [17:58:38]line ИТОГО: 340.00 [17:58:38]line Внесено: 340.00 [17:58:38]line СДАЧА: 0.00 [17:58:38]line НСП 1% : 3.01 [17:58:38]line НДС 12% : 36.14 [17:58:38]line Наличными: 340.00 [17:58:38]line Безнал.: 0.00 [17:58:38]line Место: АЗС № 136 "Партнер Нефть" [17:58:38]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [17:58:38]line СНО: Общий режим [17:58:38]line Чек 323 21.08.2024 17:58 [17:58:38]line Смена: 454 ФФД: 1.0 [17:58:38]line ЗНМ: 0300000067 [17:58:38]line РНМ: 0000000000092569 [17:58:38]line Версия ККМ: 001 [17:58:38]line ФМ: 0000000000871776 [17:58:38]line ФД: 140306 [17:58:38]line ФПД: 232614806636098 [17:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T175837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140306&fm=232614806636098&tin=02508201610067®Number=0000000000092569&sum=34000 [17:58:38]written 0, free lines is 4095 [17:58:38]OFD Sender: Processing packet 140306 [packets to send 137, broken 136] [17:58:38]ProducePacketName [17:58:38]name=ofd_packets/00140306 [17:58:38]OFD Sender: To server: pG, [17:58:38]CommunicateWithHost lk.salyk.kg:30040 [17:58:38]ConnectInit lk.salyk.kg [17:58:38]Connected sock=10 [17:58: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 37 36 0F 01 00 00 F5 58 07 01 6C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 43 01 00 00 F4 03 04 00 CD 2A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 12 24 02 00 35 04 06 00 D3 8F DA EB 46 42 FE 30 67 45 86 4E 74 98 [17:58:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 8E 61 47 00 73 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 37 36 10 04 04 00 12 24 02 00 F4 03 04 00 5D D1 C5 66 B6 04 01 00 00 91 68 32 88 0B 1F EB 59 [17:58:39]CommunicateWithHost err = 0 [17:58:39]CheckOFDResponse [17:58:39]1017 (14) - 77093643461234 [17:58:39]1041 (16) - 0000000000871776 [17:58:39]1040 (4) - 140306 [17:58:39]1012 (4) - 21.08.2024 11:37 [17:58:39]1206 (1) - 0 [17:58:39]OFD Sender: Remove packet 140306 [17:58:39]ProducePacketName [17:58:39]name=ofd_packets/00140306 [17:58:39]NVStorageDeleteData [17:58:39]Write to MH i2c: 01 00 00 03 0A 0D [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: 01 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: 01 07 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 D1 0C F1 [17:58:39]RasterBufferAndPrint [17:58:39]line [17:58:39]line [17:58:39]line [17:58:39]line [17:58:39]line [17:58:39]written 0, free lines is 3287 [17:58:39]MH_Cut [17:58:39]Write to MH i2c: D1 01 00 0A 0A 01 E6 [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: D1 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: D1 01 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: D1 01 00 0A 0A 00 E5 [17:58:39]Write to MH i2c: 01 00 00 0B 0A 15 [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]OFD Sender: No OFD packet to send [17:58:39]*** Cut start [17:58:39]*** Partial cut [17:58:39]*** CUTSNS_PIN = 1 [17:58:39]*** CUTSNS_PIN = 0 [17:58:40]*** Brake cut motor [17:58:40]Read from MH i2c: 01 [17:58:40]MH_I2C_Read... [17:58:40]*** Stop cut motor [17:58:40]*** Cut end [17:58:40]Read from MH i2c: 01 07 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [17:58:40]process_action close_receipt done [17:58:40]requested_data is exist [17:58:40]produce_requested_data [17:58:40]requested_item fm.sn is exist - process it [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 11 00 00 [17:58:40]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 17 00 [17:58:40]MH_I2C_Read... [17:58:40]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 37 36 90 00 E7 [17:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [17:58:40]wFMCommunicate OK [17:58:40]requested_item fd.num is exist - process it [17:58:40]SAM_PROTO_GetFieldsCounters [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 13 00 00 [17:58:40]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 62 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 24 02 00 0E 04 04 00 C6 01 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 89 [17:58: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 12 24 02 00 0E 04 04 00 C6 01 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 [17:58:40]wFMCommunicate OK [17:58:40]SAM_PROTO_GetFieldsCounters done [17:58:40]requested_item shift.num is exist - process it [17:58:40]requested_item shift.opened is exist - process it [17:58:40]req_shift_opened [17:58:40]FM_GetShiftState [17:58:40]SAM_PROTO_GetShiftState [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 13 01 00 [17:58:40]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 0E 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 15 [17:58:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [17:58:40]wFMCommunicate OK [17:58:40]SAM_PROTO_GetShiftState done [17:58:40]FM_GetShiftState done [17:58:40]req_shift_opened done [17:58:40]requested_item shift.open_date is exist - process it [17:58:40]req_shift_open_date [17:58:40]req_shift_open_date done [17:58:40]produce_requested_data done [17:58:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140306,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [17:58:40]process_action_free close_receipt [17:58:40]json_value_free [17:58:40]json_value_free done [17:58:40]process_json_proto returns [17:58:40]Send response to host [17:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140306,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [17:58:40]free response buf [17:58:40]execute_script done [17:58:40]execute_script returns [17:58:40]free content buf [17:58:40]Sock 9.Close socket [17:58:40]Sock 9.Thread stoped [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:16]accept exits with 7 [18:00:16]New connection [18:00:16]New thread 3067612516 created [18:00:16]Thread 3067469156 joined [18:00:16]Waiting for new connection... [18:00:16] Sock 7.Parse request [18:00:16]Sock 7.Check first char [18:00:16]Sock 7.First char is OK [18:00:16]request: POST /json_proto HTTP/1.0 [18:00:16]Method: POST [18:00:16]URL: /json_proto [18:00:16]Method is POST - this is cgi request [18:00:16]url: /json_proto [18:00:16]query_string will be loaded in cgi processing [18:00:16]execute_cgi json_proto POST (null) [18:00:16]execute_cgi path=json_proto method=POST [18:00:16]POST find Content-Length [18:00:16]Host: 172.17.45.67:8080 [18:00:16]Content-Length: 682 [18:00:16]Content-Type: application/json [18:00:16] [18:00:16]POST finish read [18:00:16]Found Content-Length = 682 [18:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:16]execute_script... [18:00: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)594164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:16]POST & json_proto [18:00:16]process_json_proto [18:00:16]json parsed OK: [18:00:16]protocol is kg_v1.0 [18:00:16]action value=close_receipt [18:00:16]process_action close_receipt [18:00:16]cmd_close_receipt [18:00:16]MH_GetDate [18:00:16]Write to MH i2c: F0 00 00 0F 0A 08 [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: F0 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: F0 09 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: F0 09 00 0F 0A 00 30 2B C6 66 5F 7F 2B 66 07 [18:00:16]GetLastDocTimeStamp 1724263117 [18:00:16]current date 1724263216 [18:00:16]FM_GetShiftState [18:00:16]SAM_PROTO_GetShiftState [18:00:16]wFMCommunicate request_size=4 [18:00:16]MH_SAM_APDU [18:00:16]CAPDU: 80 13 01 00 [18:00:16]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [18:00:16]Write i2c OK [18:00:16]MH_I2C_Read... [18:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:16]Read from MH i2c: E2 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 0E 00 [18:00:16]MH_I2C_Read... [18:00:16]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 17 [18:00:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:00:16]wFMCommunicate OK [18:00:16]SAM_PROTO_GetShiftState done [18:00:16]FM_GetShiftState done [18:00:16]opened in 1724200467 [18:00:16]opened+sec_in_day 1724286867 [18:00:16]quantity*price = 200043 [18:00:16]sum+1 = 200044 [18:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 324 21.08.2024 18:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140307 ФПД: 166954303501675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180016&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140307&fm=166954303501675&tin=02508201610067®Number=0000000000092569&sum=200000 [18:00:17]StoreToDocumentArchive [18:00:17]shift 454 fd 140307 [18:00:17]save to /storage/0454/doc_00140307 [18:00:17]save last doc name /storage/0454/doc_00140307 to /storage/kkm_last_doc_name [18:00:17]save OK [18:00:17]Clear old archive folders... [18:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:17]tlvbuf is 00C2A9A0 [18:00:17]SAM_PROTO_ClearQueue [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 09 00 00 [18:00:17]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [18:00:17]RAPDU: 90 00 [18:00:17]wFMCommunicate OK [18:00:17]SAM_PROTO_ClearQueue done [18:00:17]KKMCreateOFDPacket [18:00:17]OFDProtocolAddRootSTLVToBuf [18:00:17]FM_MakeSignedData [18:00:17]FM_MakeSignedData [18:00:17]SAM_PROTO_SignData [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 0D 01 02 [18:00:17]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [18:00:17]RAPDU: 90 00 [18:00:17]wFMCommunicate OK [18:00:17]wFMCommunicate request_size=255 [18:00:17]MH_SAM_APDU [18:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 30 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 24 02 00 35 04 06 00 97 [18:00:17]Write to MH i2c: E2 02 01 1F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 30 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 24 02 00 35 04 06 00 97 00 00 45 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:17]Read from MH i2c: E2 03 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [18:00:17]RAPDU: 90 00 [18:00:17]wFMCommunicate OK [18:00:17]wFMCommunicate request_size=10 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 0D 02 02 05 D8 13 F4 35 6B [18:00:17]Write to MH i2c: E2 0D 00 20 0A 80 0D 02 02 05 00 D8 13 F4 35 6B 00 00 2D [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [18:00:17]RAPDU: 90 00 [18:00:17]wFMCommunicate OK [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 0D 03 02 [18:00:17]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0B 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0B 00 21 0A 00 80 BE 76 2B 0E F8 2C E2 90 00 9A [18:00:17]RAPDU: 80 BE 76 2B 0E F8 2C E2 90 00 [18:00:17]wFMCommunicate OK [18:00:17]SAM_PROTO_SignData done [18:00:17]FM_MakeSignedData done [18:00:17]CreateOFDProtocolMessage [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 11 00 00 [18:00:17]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 17 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FD [18:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:17]wFMCommunicate OK [18:00:17]CreateOFDProtocolMessage done [18:00:17]OFDSenderStorePacket 140307 [18:00:17]StoreOFDPacket docnum=140307 [18:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 60 86 07 01 F4 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 30 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 24 02 00 35 04 06 00 97 D8 13 F4 35 6B 80 BE 76 2B 0E F8 2C E2 [18:00:17]CheckFolder [18:00:17]dirname=/storage/ofd_packets [18:00:17]CheckFolder done [18:00:17]ProducePacketName [18:00:17]name=ofd_packets/00140307 [18:00:17]NVStorageSaveData ofd_packets/00140307 [18:00:17]File name is /storage/ofd_packets/00140307 [18:00:17]Write 301 bytes [18:00:17]NVStorageSaveData done [18:00:17]OFDSenderStorePacket done [18:00:17]KKMCreateOFDPacket done [18:00:17]NVStorageSaveData kkm_last_timestamp [18:00:17]File name is /storage/kkm_last_timestamp [18:00:17]Write 4 bytes [18:00:17]NVStorageSaveData done [18:00:17]ExternCall_PrintAddStr [18:00:17]wPrintStart [18:00:17]Write to MH i2c: 01 00 00 23 0A 2D [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 07 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [18:00:17]RasterBufferAndPrint [18:00:17]line Счет N : (1)594164 [18:00:17]line ИНН: 02508201610067 [18:00:17]line Контрольно-Кассовый Чек [18:00:17]line ПРОДАЖА [18:00:17]line ТРК (МРК, ГНК) : 61 [18:00:17]line Товар: 2710124500 [18:00:17]line Аи-95-К-5 [18:00:17]line 26.960 * 74.20 [18:00:17]line = 2000.43 [18:00:17]line НДС 12% НСП 1% [18:00:17]line > о реализуемом товаре [18:00:17]line ОКРУГЛЕНИЕ: -0.43 [18:00:17]line ИТОГО: 2000.00 [18:00:17]line Внесено: 2000.00 [18:00:17]line СДАЧА: 0.00 [18:00:17]line НСП 1% : 17.70 [18:00:17]line НДС 12% : 212.43 [18:00:17]line Наличными: 2000.00 [18:00:17]line Безнал.: 0.00 [18:00:17]line Место: АЗС № 136 "Партнер Нефть" [18:00:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:00:17]line СНО: Общий режим [18:00:17]line Чек 324 21.08.2024 18:00 [18:00:17]line Смена: 454 ФФД: 1.0 [18:00:17]line ЗНМ: 0300000067 [18:00:17]line РНМ: 0000000000092569 [18:00:17]line Версия ККМ: 001 [18:00:17]line ФМ: 0000000000871776 [18:00:17]line ФД: 140307 [18:00:18]line ФПД: 166954303501675 [18:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180016&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140307&fm=166954303501675&tin=02508201610067®Number=0000000000092569&sum=200000 [18:00:18]OFD Sender: Processing packet 140307 [packets to send 137, broken 136] [18:00:18]ProducePacketName [18:00:18]name=ofd_packets/00140307 [18:00:18]OFD Sender: To server: pG, [18:00:18]CommunicateWithHost lk.salyk.kg:30040 [18:00:18]ConnectInit lk.salyk.kg [18:00:18]written 0, free lines is 4095 [18:00:18]Connected sock=10 [18:00: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 37 36 0F 01 00 00 60 86 07 01 F4 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 30 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 13 24 02 00 35 04 06 00 97 D8 13 F4 35 6B 80 BE 76 2B 0E F8 2C E2 [18:00: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 37 36 4F 00 00 00 E1 FB 47 00 2F 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 37 36 10 04 04 00 13 24 02 00 F4 03 04 00 C0 D1 C5 66 B6 04 01 00 00 FE CD F0 7A B9 FF 3D 18 [18:00:18]CommunicateWithHost err = 0 [18:00:18]CheckOFDResponse [18:00:18]1017 (14) - 77093643461234 [18:00:18]1041 (16) - 0000000000871776 [18:00:18]1040 (4) - 140307 [18:00:18]1012 (4) - 21.08.2024 11:38 [18:00:18]1206 (1) - 0 [18:00:18]OFD Sender: Remove packet 140307 [18:00:18]ProducePacketName [18:00:18]name=ofd_packets/00140307 [18:00:18]NVStorageDeleteData [18:00:18]Write to MH i2c: 01 00 00 4E 0A 58 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 4E 0A 00 00 00 00 00 F2 0C 5D [18:00:18]RasterBufferAndPrint [18:00:18]line [18:00:18]line [18:00:18]line [18:00:18]line [18:00:18]line [18:00:18]written 0, free lines is 3320 [18:00:18]MH_Cut [18:00:18]Write to MH i2c: D1 01 00 55 0A 01 31 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: D1 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: D1 01 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: D1 01 00 55 0A 00 30 [18:00:18]Write to MH i2c: 01 00 00 56 0A 60 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:19]OFD Sender: No OFD packet to send [18:00:19]*** Cut start [18:00:19]*** Partial cut [18:00:19]*** CUTSNS_PIN = 1 [18:00:19]*** CUTSNS_PIN = 0 [18:00:19]*** Brake cut motor [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]*** Stop cut motor [18:00:19]*** Cut end [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 56 0A 00 00 00 00 00 FF 0F 75 [18:00:19]process_action close_receipt done [18:00:19]requested_data is exist [18:00:19]produce_requested_data [18:00:19]requested_item fm.sn is exist - process it [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 11 00 00 [18:00:19]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 17 00 [18:00:19]MH_I2C_Read... [18:00:19]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 37 36 90 00 32 [18:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:19]wFMCommunicate OK [18:00:19]requested_item fd.num is exist - process it [18:00:19]SAM_PROTO_GetFieldsCounters [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 13 00 00 [18:00:19]Write to MH i2c: E2 08 00 58 0A 80 13 00 00 00 00 00 00 DE [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 62 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 62 00 58 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 24 02 00 0E 04 04 00 C6 01 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 D8 [18:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 13 24 02 00 0E 04 04 00 C6 01 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 [18:00:20]wFMCommunicate OK [18:00:20]SAM_PROTO_GetFieldsCounters done [18:00:20]requested_item shift.num is exist - process it [18:00:20]requested_item shift.opened is exist - process it [18:00:20]req_shift_opened [18:00:20]FM_GetShiftState [18:00:20]SAM_PROTO_GetShiftState [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 13 01 00 [18:00:20]Write to MH i2c: E2 08 00 59 0A 80 13 01 00 00 00 00 00 E0 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0E 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0E 00 59 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 60 [18:00:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:00:20]wFMCommunicate OK [18:00:20]SAM_PROTO_GetShiftState done [18:00:20]FM_GetShiftState done [18:00:20]req_shift_opened done [18:00:20]requested_item shift.open_date is exist - process it [18:00:20]req_shift_open_date [18:00:20]req_shift_open_date done [18:00:20]produce_requested_data done [18:00:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140307,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:00:20]process_action_free close_receipt [18:00:20]json_value_free [18:00:20]json_value_free done [18:00:20]process_json_proto returns [18:00:20]Send response to host [18:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140307,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:00:20]free response buf [18:00:20]execute_script done [18:00:20]execute_script returns [18:00:20]free content buf [18:00:20]Sock 7.Close socket [18:00:20]Sock 7.Thread stoped [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:57]accept exits with 9 [18:00:57]New connection [18:00:57]New thread 3067469156 created [18:00:57]Thread 3067612516 joined [18:00:57]Waiting for new connection... [18:00:57] Sock 9.Parse request [18:00:57]Sock 9.Check first char [18:00:57]Sock 9.First char is OK [18:00:57]request: POST /json_proto HTTP/1.0 [18:00:57]Method: POST [18:00:57]URL: /json_proto [18:00:57]Method is POST - this is cgi request [18:00:57]url: /json_proto [18:00:57]query_string will be loaded in cgi processing [18:00:57]execute_cgi json_proto POST (null) [18:00:57]execute_cgi path=json_proto method=POST [18:00:57]POST find Content-Length [18:00:57]Host: 172.17.45.67:8080 [18:00:57]Content-Length: 797 [18:00:57]Content-Type: application/json [18:00:57] [18:00:57]POST finish read [18:00:57]Found Content-Length = 797 [18:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:57]execute_script... [18: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)594165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:57]POST & json_proto [18:00:57]process_json_proto [18:00:57]json parsed OK: [18:00:57]protocol is kg_v1.0 [18:00:57]action value=close_receipt [18:00:57]process_action close_receipt [18:00:57]cmd_close_receipt [18:00:57]MH_GetDate [18:00:57]Write to MH i2c: F0 00 00 5A 0A 53 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: F0 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: F0 09 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: F0 09 00 5A 0A 00 59 2B C6 66 5F 7F 2B 66 7B [18:00:57]GetLastDocTimeStamp 1724263216 [18:00:57]current date 1724263257 [18:00:57]FM_GetShiftState [18:00:57]SAM_PROTO_GetShiftState [18:00:57]wFMCommunicate request_size=4 [18:00:57]MH_SAM_APDU [18:00:57]CAPDU: 80 13 01 00 [18:00:57]Write to MH i2c: E2 08 00 5B 0A 80 13 01 00 00 00 00 00 E2 [18:00:57]Write i2c OK [18:00:57]MH_I2C_Read... [18:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:57]Read from MH i2c: E2 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 0E 00 [18:00:57]MH_I2C_Read... [18:00:57]Read from MH i2c: E2 0E 00 5B 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 62 [18:00:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:00:57]wFMCommunicate OK [18:00:57]SAM_PROTO_GetShiftState done [18:00:57]FM_GetShiftState done [18:00:57]opened in 1724200467 [18:00:57]opened+sec_in_day 1724286867 [18:00:57]quantity*price = 0 [18:00:57]sum+1 = 1 [18:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 325 21.08.2024 18:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140308 ФПД: 244123572062137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180057&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140308&fm=244123572062137&tin=02508201610067®Number=0000000000092569&sum=0 [18:00:58]StoreToDocumentArchive [18:00:58]shift 454 fd 140308 [18:00:58]save to /storage/0454/doc_00140308 [18:00:58]save last doc name /storage/0454/doc_00140308 to /storage/kkm_last_doc_name [18:00:58]save OK [18:00:58]Clear old archive folders... [18:00:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:00:58]tlvbuf is 00C27070 [18:00:58]SAM_PROTO_ClearQueue [18:00:58]wFMCommunicate request_size=4 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 09 00 00 [18:00:58]Write to MH i2c: E2 08 00 68 0A 80 09 00 00 00 00 00 00 E4 [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:58]Read from MH i2c: E2 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [18:00:58]RAPDU: 90 00 [18:00:58]wFMCommunicate OK [18:00:58]SAM_PROTO_ClearQueue done [18:00:58]KKMCreateOFDPacket [18:00:58]OFDProtocolAddRootSTLVToBuf [18:00:58]FM_MakeSignedData [18:00:58]FM_MakeSignedData [18:00:58]SAM_PROTO_SignData [18:00:58]wFMCommunicate request_size=4 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 0D 01 02 [18:00:58]Write to MH i2c: E2 08 00 69 0A 80 0D 01 02 00 00 00 00 EC [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:58]Read from MH i2c: E2 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [18:00:58]RAPDU: 90 00 [18:00:58]wFMCommunicate OK [18:00:58]wFMCommunicate request_size=255 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 45 01 00 00 F4 03 04 00 59 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 24 02 00 35 04 06 00 [18:00:58]Write to MH i2c: E2 02 01 6A 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 45 01 00 00 F4 03 04 00 59 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 24 02 00 35 04 06 00 00 00 FF [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:58]Read from MH i2c: E2 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 6A 0A 00 90 00 E8 [18:00:58]RAPDU: 90 00 [18:00:58]wFMCommunicate OK [18:00:58]wFMCommunicate request_size=11 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 0D 02 02 06 DE 07 72 CB 47 B9 [18:00:58]Write to MH i2c: E2 0E 00 6B 0A 80 0D 02 02 06 00 DE 07 72 CB 47 B9 00 00 1D [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:58]Read from MH i2c: E2 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 03 00 6B 0A 00 90 00 E9 [18:00:58]RAPDU: 90 00 [18:00:58]wFMCommunicate OK [18:00:58]wFMCommunicate request_size=4 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 0D 03 02 [18:00:58]Write to MH i2c: E2 08 00 6C 0A 80 0D 03 02 00 00 00 00 F1 [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0B 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0B 00 6C 0A 00 70 C3 8D D8 46 C9 E3 9F 90 00 1B [18:00:59]RAPDU: 70 C3 8D D8 46 C9 E3 9F 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_SignData done [18:00:59]FM_MakeSignedData done [18:00:59]CreateOFDProtocolMessage [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 11 00 00 [18:00:59]Write to MH i2c: E2 08 00 6D 0A 80 11 00 00 00 00 00 00 F1 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 6D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 48 [18:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:00:59]wFMCommunicate OK [18:00:59]CreateOFDProtocolMessage done [18:00:59]OFDSenderStorePacket 140308 [18:00:59]StoreOFDPacket docnum=140308 [18:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 10 C1 08 01 A7 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 45 01 00 00 F4 03 04 00 59 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 24 02 00 35 04 06 00 DE 07 72 CB 47 B9 70 C3 8D D8 46 C9 E3 9F [18:00:59]CheckFolder [18:00:59]dirname=/storage/ofd_packets [18:00:59]CheckFolder done [18:00:59]ProducePacketName [18:00:59]name=ofd_packets/00140308 [18:00:59]NVStorageSaveData ofd_packets/00140308 [18:00:59]File name is /storage/ofd_packets/00140308 [18:00:59]Write 302 bytes [18:00:59]NVStorageSaveData done [18:00:59]OFDSenderStorePacket done [18:00:59]KKMCreateOFDPacket done [18:00:59]NVStorageSaveData kkm_last_timestamp [18:00:59]File name is /storage/kkm_last_timestamp [18:00:59]Write 4 bytes [18:00:59]NVStorageSaveData done [18:00:59]ExternCall_PrintAddStr [18:00:59]wPrintStart [18:00:59]Write to MH i2c: 01 00 00 6E 0A 78 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 6E 0A 00 00 00 00 00 FF 0F 8D [18:00:59]RasterBufferAndPrint [18:00:59]line Счет N : (1)594165 [18:00:59]line ИНН: 02508201610067 [18:00:59]line Контрольно-Кассовый Чек [18:00:59]line ПРОДАЖА [18:00:59]line ТРК (МРК, ГНК) : 44 [18:00:59]line Товар: 2710194210 [18:00:59]line ДТ(л)-К-5 [18:00:59]line 28.000 * 0.00 [18:00:59]line = 0.00 [18:00:59]line НДС 12% НСП 1% [18:00:59]line > о реализуемом товаре [18:00:59]line ИТОГО: 0.00 [18:00:59]line НСП 1% : 0.00 [18:00:59]line НДС 12% : 0.00 [18:00:59]line Наличными: 0.00 [18:00:59]line Безнал.: 0.00 [18:00:59]line Место: АЗС № 136 "Партнер Нефть" [18:00:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:00:59]line СНО: Общий режим [18:00:59]line Чек 325 21.08.2024 18:00 [18:00:59]line Смена: 454 ФФД: 1.0 [18:00:59]line ЗНМ: 0300000067 [18:00:59]line РНМ: 0000000000092569 [18:00:59]line Версия ККМ: 001 [18:00:59]line Талоны: Топливная Карта [18:00:59]line 99761 [18:00:59]line ФМ: 0000000000871776 [18:00:59]line ФД: 140308 [18:00:59]line ФПД: 244123572062137 [18:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180057&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140308&fm=244123572062137&tin=02508201610067®Number=0000000000092569&sum=0 [18:00:59]written 0, free lines is 4095 [18:00:59]OFD Sender: Processing packet 140308 [packets to send 137, broken 136] [18:00:59]ProducePacketName [18:00:59]name=ofd_packets/00140308 [18:00:59]OFD Sender: To server: pG, [18:00:59]CommunicateWithHost lk.salyk.kg:30040 [18:00:59]ConnectInit lk.salyk.kg [18:00:59]Connected sock=10 [18: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 37 36 10 01 00 00 10 C1 08 01 A7 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 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 45 01 00 00 F4 03 04 00 59 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 24 02 00 35 04 06 00 DE 07 72 CB 47 B9 70 C3 8D D8 46 C9 E3 9F [18:00:59]Write to MH i2c: 01 00 00 98 0A A2 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 98 0A 00 00 00 00 00 EC 0C A1 [18:00:59]RasterBufferAndPrint [18:00:59]line [18:00:59]line [18:00:59]line [18:00:59]line [18:00:59]line [18:00:59]written 0, free lines is 3313 [18:00:59]MH_Cut [18:00:59]Write to MH i2c: D1 01 00 9F 0A 01 7B [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: D1 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: D1 01 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: D1 01 00 9F 0A 00 7A [18:00:59]Write to MH i2c: 01 00 00 A0 0A AA [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18: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 37 36 4F 00 00 00 23 48 47 00 6D 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 14 24 02 00 F4 03 04 00 E9 D1 C5 66 B6 04 01 00 00 CE 79 8F 53 B5 A8 D0 B6 [18:00:59]CommunicateWithHost err = 0 [18:00:59]CheckOFDResponse [18:00:59]1017 (14) - 77093643461234 [18:00:59]1041 (16) - 0000000000871776 [18:00:59]1040 (4) - 140308 [18:00:59]1012 (4) - 21.08.2024 11:39 [18:00:59]1206 (1) - 0 [18:00:59]OFD Sender: Remove packet 140308 [18:00:59]ProducePacketName [18:00:59]name=ofd_packets/00140308 [18:00:59]NVStorageDeleteData [18:01:00]OFD Sender: No OFD packet to send [18:01:00]*** Cut start [18:01:00]*** Partial cut [18:01:00]*** CUTSNS_PIN = 1 [18:01:00]*** CUTSNS_PIN = 0 [18:01:00]*** Brake cut motor [18:01:00]Read from MH i2c: 01 [18:01:00]MH_I2C_Read... [18:01:00]*** Stop cut motor [18:01:00]*** Cut end [18:01:00]Read from MH i2c: 01 07 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 FF 0F BF [18:01:00]process_action close_receipt done [18:01:00]requested_data is exist [18:01:00]produce_requested_data [18:01:00]requested_item fm.sn is exist - process it [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 11 00 00 [18:01:00]Write to MH i2c: E2 08 00 A1 0A 80 11 00 00 00 00 00 00 25 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 17 00 A1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7C [18:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:01:00]wFMCommunicate OK [18:01:00]requested_item fd.num is exist - process it [18:01:00]SAM_PROTO_GetFieldsCounters [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 13 00 00 [18:01:00]Write to MH i2c: E2 08 00 A2 0A 80 13 00 00 00 00 00 00 28 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:01]Read from MH i2c: E2 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 62 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 62 00 A2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 24 02 00 0E 04 04 00 C6 01 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 26 [18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 14 24 02 00 0E 04 04 00 C6 01 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 [18:01:01]wFMCommunicate OK [18:01:01]SAM_PROTO_GetFieldsCounters done [18:01:01]requested_item shift.num is exist - process it [18:01:01]requested_item shift.opened is exist - process it [18:01:01]req_shift_opened [18:01:01]FM_GetShiftState [18:01:01]SAM_PROTO_GetShiftState [18:01:01]wFMCommunicate request_size=4 [18:01:01]MH_SAM_APDU [18:01:01]CAPDU: 80 13 01 00 [18:01:01]Write to MH i2c: E2 08 00 A3 0A 80 13 01 00 00 00 00 00 2A [18:01:01]Write i2c OK [18:01:01]MH_I2C_Read... [18:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:01]Read from MH i2c: E2 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 A3 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AA [18:01:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:01:01]wFMCommunicate OK [18:01:01]SAM_PROTO_GetShiftState done [18:01:01]FM_GetShiftState done [18:01:01]req_shift_opened done [18:01:01]requested_item shift.open_date is exist - process it [18:01:01]req_shift_open_date [18:01:01]req_shift_open_date done [18:01:01]produce_requested_data done [18:01:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140308,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:01:01]process_action_free close_receipt [18:01:01]json_value_free [18:01:01]json_value_free done [18:01:01]process_json_proto returns [18:01:01]Send response to host [18:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140308,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:01:01]free response buf [18:01:01]execute_script done [18:01:01]execute_script returns [18:01:01]free content buf [18:01:01]Sock 9.Close socket [18:01:01]Sock 9.Thread stoped [18:01:05]OFD Sender: No OFD packet to send [18:01:05]accept exits with 7 [18:01:05]New connection [18:01:05]New thread 3067612516 created [18:01:05]Thread 3067469156 joined [18:01:05]Waiting for new connection... [18:01:05] Sock 7.Parse request [18:01:05]Sock 7.Check first char [18:01:05]Sock 7.First char is OK [18:01:05]request: POST /json_proto HTTP/1.0 [18:01:05]Method: POST [18:01:05]URL: /json_proto [18:01:05]Method is POST - this is cgi request [18:01:05]url: /json_proto [18:01:05]query_string will be loaded in cgi processing [18:01:05]execute_cgi json_proto POST (null) [18:01:05]execute_cgi path=json_proto method=POST [18:01:05]POST find Content-Length [18:01:05]Host: 172.17.45.67:8080 [18:01:05]Content-Length: 677 [18:01:05]Content-Type: application/json [18:01:05] [18:01:05]POST finish read [18:01:05]Found Content-Length = 677 [18:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:05]execute_script... [18:01: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)594167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:05]POST & json_proto [18:01:05]process_json_proto [18:01:05]json parsed OK: [18:01:05]protocol is kg_v1.0 [18:01:05]action value=close_receipt [18:01:05]process_action close_receipt [18:01:05]cmd_close_receipt [18:01:05]MH_GetDate [18:01:05]Write to MH i2c: F0 00 00 A4 0A 9D [18:01:05]Write i2c OK [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: F0 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: F0 09 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: F0 09 00 A4 0A 00 62 2B C6 66 5F 7F 2B 66 CE [18:01:05]GetLastDocTimeStamp 1724263257 [18:01:05]current date 1724263266 [18:01:05]FM_GetShiftState [18:01:05]SAM_PROTO_GetShiftState [18:01:05]wFMCommunicate request_size=4 [18:01:05]MH_SAM_APDU [18:01:05]CAPDU: 80 13 01 00 [18:01:05]Write to MH i2c: E2 08 00 A5 0A 80 13 01 00 00 00 00 00 2C [18:01:05]Write i2c OK [18:01:05]MH_I2C_Read... [18:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:05]Read from MH i2c: E2 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 0E 00 [18:01:05]MH_I2C_Read... [18:01:05]Read from MH i2c: E2 0E 00 A5 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [18:01:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:01:05]wFMCommunicate OK [18:01:05]SAM_PROTO_GetShiftState done [18:01:05]FM_GetShiftState done [18:01:05]opened in 1724200467 [18:01:05]opened+sec_in_day 1724286867 [18:01:05]quantity*price = 50036 [18:01:05]sum+1 = 50037 [18:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 326 21.08.2024 18:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140309 ФПД: 146798521455229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140309&fm=146798521455229&tin=02508201610067®Number=0000000000092569&sum=50000 [18:01:06]StoreToDocumentArchive [18:01:06]shift 454 fd 140309 [18:01:06]save to /storage/0454/doc_00140309 [18:01:06]save last doc name /storage/0454/doc_00140309 to /storage/kkm_last_doc_name [18:01:06]save OK [18:01:06]Clear old archive folders... [18:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:06]tlvbuf is 00CA6890 [18:01:06]SAM_PROTO_ClearQueue [18:01:06]wFMCommunicate request_size=4 [18:01:06]MH_SAM_APDU [18:01:06]CAPDU: 80 09 00 00 [18:01:06]Write to MH i2c: E2 08 00 B2 0A 80 09 00 00 00 00 00 00 2E [18:01:06]Write i2c OK [18:01:06]MH_I2C_Read... [18:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:06]Read from MH i2c: E2 [18:01:06]MH_I2C_Read... [18:01:06]Read from MH i2c: E2 03 00 [18:01:06]MH_I2C_Read... [18:01:06]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [18:01:06]RAPDU: 90 00 [18:01:06]wFMCommunicate OK [18:01:06]SAM_PROTO_ClearQueue done [18:01:06]KKMCreateOFDPacket [18:01:06]OFDProtocolAddRootSTLVToBuf [18:01:06]FM_MakeSignedData [18:01:06]FM_MakeSignedData [18:01:06]SAM_PROTO_SignData [18:01:06]wFMCommunicate request_size=4 [18:01:06]MH_SAM_APDU [18:01:06]CAPDU: 80 0D 01 02 [18:01:06]Write to MH i2c: E2 08 00 B3 0A 80 0D 01 02 00 00 00 00 36 [18:01:06]Write i2c OK [18:01:06]MH_I2C_Read... [18:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:06]Read from MH i2c: E2 [18:01:06]MH_I2C_Read... [18:01:06]Read from MH i2c: E2 03 00 [18:01:06]MH_I2C_Read... [18:01:06]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [18:01:06]RAPDU: 90 00 [18:01:06]wFMCommunicate OK [18:01:06]wFMCommunicate request_size=255 [18:01:06]MH_SAM_APDU [18:01: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 62 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 24 02 00 35 04 06 00 85 [18:01:06]Write to MH i2c: E2 02 01 B4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 62 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 24 02 00 35 04 06 00 85 00 00 46 [18:01:06]Write i2c OK [18:01:06]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 03 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [18:01:07]RAPDU: 90 00 [18:01:07]wFMCommunicate OK [18:01:07]wFMCommunicate request_size=10 [18:01:07]MH_SAM_APDU [18:01:07]CAPDU: 80 0D 02 02 05 83 31 B9 92 7D [18:01:07]Write to MH i2c: E2 0D 00 B5 0A 80 0D 02 02 05 00 83 31 B9 92 7D 00 00 BF [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 03 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 03 00 B5 0A 00 90 00 33 [18:01:07]RAPDU: 90 00 [18:01:07]wFMCommunicate OK [18:01:07]wFMCommunicate request_size=4 [18:01:07]MH_SAM_APDU [18:01:07]CAPDU: 80 0D 03 02 [18:01:07]Write to MH i2c: E2 08 00 B6 0A 80 0D 03 02 00 00 00 00 3B [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0B 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 0B 00 B6 0A 00 16 15 D1 79 64 AF A3 19 90 00 80 [18:01:07]RAPDU: 16 15 D1 79 64 AF A3 19 90 00 [18:01:07]wFMCommunicate OK [18:01:07]SAM_PROTO_SignData done [18:01:07]FM_MakeSignedData done [18:01:07]CreateOFDProtocolMessage [18:01:07]wFMCommunicate request_size=4 [18:01:07]MH_SAM_APDU [18:01:07]CAPDU: 80 11 00 00 [18:01:07]Write to MH i2c: E2 08 00 B7 0A 80 11 00 00 00 00 00 00 3B [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:07]Read from MH i2c: E2 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 17 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: E2 17 00 B7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 92 [18:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:01:07]wFMCommunicate OK [18:01:07]CreateOFDProtocolMessage done [18:01:07]OFDSenderStorePacket 140309 [18:01:07]StoreOFDPacket docnum=140309 [18:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C4 A3 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 62 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 24 02 00 35 04 06 00 85 83 31 B9 92 7D 16 15 D1 79 64 AF A3 19 [18:01:07]CheckFolder [18:01:07]dirname=/storage/ofd_packets [18:01:07]CheckFolder done [18:01:07]ProducePacketName [18:01:07]name=ofd_packets/00140309 [18:01:07]NVStorageSaveData ofd_packets/00140309 [18:01:07]File name is /storage/ofd_packets/00140309 [18:01:07]Write 301 bytes [18:01:07]NVStorageSaveData done [18:01:07]OFDSenderStorePacket done [18:01:07]KKMCreateOFDPacket done [18:01:07]NVStorageSaveData kkm_last_timestamp [18:01:07]File name is /storage/kkm_last_timestamp [18:01:07]Write 4 bytes [18:01:07]NVStorageSaveData done [18:01:07]ExternCall_PrintAddStr [18:01:07]wPrintStart [18:01:07]Write to MH i2c: 01 00 00 B8 0A C2 [18:01:07]Write i2c OK [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: 01 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: 01 07 00 [18:01:07]MH_I2C_Read... [18:01:07]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 FF 0F D7 [18:01:07]RasterBufferAndPrint [18:01:07]line Счет N : (1)594167 [18:01:07]line ИНН: 02508201610067 [18:01:07]line Контрольно-Кассовый Чек [18:01:07]line ПРОДАЖА [18:01:07]line ТРК (МРК, ГНК) : 32 [18:01:07]line Товар: 2710124130 [18:01:07]line Аи-92-К-5 [18:01:07]line 7.380 * 67.80 [18:01:07]line = 500.36 [18:01:07]line НДС 12% НСП 1% [18:01:07]line > о реализуемом товаре [18:01:07]line ОКРУГЛЕНИЕ: -0.36 [18:01:07]line ИТОГО: 500.00 [18:01:07]line Внесено: 500.00 [18:01:07]line СДАЧА: 0.00 [18:01:07]line НСП 1% : 4.43 [18:01:07]line НДС 12% : 53.14 [18:01:07]line Наличными: 500.00 [18:01:07]line Безнал.: 0.00 [18:01:07]line Место: АЗС № 136 "Партнер Нефть" [18:01:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:01:07]line СНО: Общий режим [18:01:07]line Чек 326 21.08.2024 18:01 [18:01:07]line Смена: 454 ФФД: 1.0 [18:01:07]line ЗНМ: 0300000067 [18:01:07]line РНМ: 0000000000092569 [18:01:07]line Версия ККМ: 001 [18:01:07]line ФМ: 0000000000871776 [18:01:07]line ФД: 140309 [18:01:07]line ФПД: 146798521455229 [18:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180106&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140309&fm=146798521455229&tin=02508201610067®Number=0000000000092569&sum=50000 [18:01:07]OFD Sender: Processing packet 140309 [packets to send 137, broken 136] [18:01:07]ProducePacketName [18:01:07]name=ofd_packets/00140309 [18:01:07]OFD Sender: To server: pG, [18:01:07]CommunicateWithHost lk.salyk.kg:30040 [18:01:07]ConnectInit lk.salyk.kg [18:01:07]written 0, free lines is 4095 [18:01:07]Connected sock=10 [18:01: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 37 36 0F 01 00 00 C4 A3 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 62 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 24 02 00 35 04 06 00 85 83 31 B9 92 7D 16 15 D1 79 64 AF A3 19 [18:01: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 37 36 4F 00 00 00 CE BE 47 00 1C C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 15 24 02 00 F4 03 04 00 F2 D1 C5 66 B6 04 01 00 00 C2 48 77 6B CB F5 E4 6E [18:01:08]CommunicateWithHost err = 0 [18:01:08]CheckOFDResponse [18:01:08]1017 (14) - 77093643461234 [18:01:08]1041 (16) - 0000000000871776 [18:01:08]1040 (4) - 140309 [18:01:08]1012 (4) - 21.08.2024 11:39 [18:01:08]1206 (1) - 0 [18:01:08]OFD Sender: Remove packet 140309 [18:01:08]ProducePacketName [18:01:08]name=ofd_packets/00140309 [18:01:08]NVStorageDeleteData [18:01:08]Write to MH i2c: 01 00 00 E3 0A ED [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 07 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: 01 07 00 E3 0A 00 00 00 00 00 CD 0C CD [18:01:08]RasterBufferAndPrint [18:01:08]line [18:01:08]line [18:01:08]line [18:01:08]line [18:01:08]line [18:01:08]written 0, free lines is 3286 [18:01:08]MH_Cut [18:01:08]Write to MH i2c: D1 01 00 EA 0A 01 C6 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: D1 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: D1 01 00 [18:01:08]MH_I2C_Read... [18:01:08]Read from MH i2c: D1 01 00 EA 0A 00 C5 [18:01:08]Write to MH i2c: 01 00 00 EB 0A F5 [18:01:08]Write i2c OK [18:01:08]MH_I2C_Read... [18:01:08]OFD Sender: No OFD packet to send [18:01:08]*** Cut start [18:01:08]*** Partial cut [18:01:08]*** CUTSNS_PIN = 1 [18:01:08]*** CUTSNS_PIN = 0 [18:01:09]*** Brake cut motor [18:01:09]Read from MH i2c: 01 [18:01:09]MH_I2C_Read... [18:01:09]*** Stop cut motor [18:01:09]*** Cut end [18:01:09]Read from MH i2c: 01 07 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: 01 07 00 EB 0A 00 00 00 00 00 FF 0F 0A [18:01:09]process_action close_receipt done [18:01:09]requested_data is exist [18:01:09]produce_requested_data [18:01:09]requested_item fm.sn is exist - process it [18:01:09]wFMCommunicate request_size=4 [18:01:09]MH_SAM_APDU [18:01:09]CAPDU: 80 11 00 00 [18:01:09]Write to MH i2c: E2 08 00 EC 0A 80 11 00 00 00 00 00 00 70 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:09]Read from MH i2c: E2 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 17 00 [18:01:09]MH_I2C_Read... [18:01:09]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 37 36 90 00 C7 [18:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:01:09]wFMCommunicate OK [18:01:09]requested_item fd.num is exist - process it [18:01:09]SAM_PROTO_GetFieldsCounters [18:01:09]wFMCommunicate request_size=4 [18:01:09]MH_SAM_APDU [18:01:09]CAPDU: 80 13 00 00 [18:01:09]Write to MH i2c: E2 08 00 ED 0A 80 13 00 00 00 00 00 00 73 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:09]Read from MH i2c: E2 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 62 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 62 00 ED 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 24 02 00 0E 04 04 00 C6 01 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 75 [18:01: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 15 24 02 00 0E 04 04 00 C6 01 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 [18:01:09]wFMCommunicate OK [18:01:09]SAM_PROTO_GetFieldsCounters done [18:01:09]requested_item shift.num is exist - process it [18:01:09]requested_item shift.opened is exist - process it [18:01:09]req_shift_opened [18:01:09]FM_GetShiftState [18:01:09]SAM_PROTO_GetShiftState [18:01:09]wFMCommunicate request_size=4 [18:01:09]MH_SAM_APDU [18:01:09]CAPDU: 80 13 01 00 [18:01:09]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [18:01:09]Write i2c OK [18:01:09]MH_I2C_Read... [18:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:09]Read from MH i2c: E2 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 0E 00 [18:01:09]MH_I2C_Read... [18:01:09]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F5 [18:01:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:01:09]wFMCommunicate OK [18:01:09]SAM_PROTO_GetShiftState done [18:01:09]FM_GetShiftState done [18:01:09]req_shift_opened done [18:01:09]requested_item shift.open_date is exist - process it [18:01:09]req_shift_open_date [18:01:09]req_shift_open_date done [18:01:09]produce_requested_data done [18:01:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140309,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:01:09]process_action_free close_receipt [18:01:09]json_value_free [18:01:09]json_value_free done [18:01:09]process_json_proto returns [18:01:09]Send response to host [18:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140309,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:01:09]free response buf [18:01:09]execute_script done [18:01:09]execute_script returns [18:01:09]free content buf [18:01:09]Sock 7.Close socket [18:01:09]Sock 7.Thread stoped [18:01:11]int [18:01:11]Write to MH i2c: 01 00 00 EF 0A F9 [18:01:11]*** FLAG_PRN_KEY set [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 07 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 07 00 EF 0A 00 08 00 00 00 FF 0F 16 [18:01:11]state=0 [18:01:11]Key pressed [18:01:11]Feed [18:01:11]Write to MH i2c: D8 00 00 F0 0A D1 [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: D8 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: D8 01 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: D8 01 00 F0 0A 00 D2 [18:01:11]int [18:01:11]Write to MH i2c: 01 00 00 F1 0A FB [18:01:11]Write i2c OK [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 07 00 [18:01:11]MH_I2C_Read... [18:01:11]Read from MH i2c: 01 07 00 F1 0A 00 48 00 00 00 3C 00 86 [18:01:11]state=2 [18:01:11]Key pressed [18:01:12]int [18:01:12]Write to MH i2c: 01 00 00 F2 0A FC [18:01:12]*** FLAG_PRN_KEY reset [18:01:12]Write i2c OK [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: 01 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: 01 07 00 [18:01:12]MH_I2C_Read... [18:01:12]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 FB 0F 0D [18:01:12]state=2 [18:01:12]Stop feed [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:02]accept exits with 9 [18:02:02]New connection [18:02:02]New thread 3067469156 created [18:02:02]Thread 3067612516 joined [18:02:02]Waiting for new connection... [18:02:02] Sock 9.Parse request [18:02:02]Sock 9.Check first char [18:02:02]Sock 9.First char is OK [18:02:02]request: POST /json_proto HTTP/1.0 [18:02:02]Method: POST [18:02:02]URL: /json_proto [18:02:02]Method is POST - this is cgi request [18:02:02]url: /json_proto [18:02:02]query_string will be loaded in cgi processing [18:02:02]execute_cgi json_proto POST (null) [18:02:02]execute_cgi path=json_proto method=POST [18:02:02]POST find Content-Length [18:02:02]Host: 172.17.45.67:8080 [18:02:02]Content-Length: 677 [18:02:02]Content-Type: application/json [18:02:02] [18:02:02]POST finish read [18:02:02]Found Content-Length = 677 [18:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:02]execute_script... [18:02: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)594169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:02]POST & json_proto [18:02:02]process_json_proto [18:02:02]json parsed OK: [18:02:02]protocol is kg_v1.0 [18:02:02]action value=close_receipt [18:02:02]process_action close_receipt [18:02:02]cmd_close_receipt [18:02:02]MH_GetDate [18:02:02]Write to MH i2c: F0 00 00 F3 0A EC [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: F0 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: F0 09 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: F0 09 00 F3 0A 00 9B 2B C6 66 5F 7F 2B 66 56 [18:02:02]GetLastDocTimeStamp 1724263266 [18:02:02]current date 1724263323 [18:02:02]FM_GetShiftState [18:02:02]SAM_PROTO_GetShiftState [18:02:02]wFMCommunicate request_size=4 [18:02:02]MH_SAM_APDU [18:02:02]CAPDU: 80 13 01 00 [18:02:02]Write to MH i2c: E2 08 00 F4 0A 80 13 01 00 00 00 00 00 7B [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:02]Read from MH i2c: E2 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: E2 0E 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: E2 0E 00 F4 0A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [18:02:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:02:02]wFMCommunicate OK [18:02:02]SAM_PROTO_GetShiftState done [18:02:02]FM_GetShiftState done [18:02:02]opened in 1724200467 [18:02:02]opened+sec_in_day 1724286867 [18:02:02]quantity*price = 50036 [18:02:02]sum+1 = 50037 [18:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 327 21.08.2024 18:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140310 ФПД: 133522420155428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140310&fm=133522420155428&tin=02508201610067®Number=0000000000092569&sum=50000 [18:02:04]StoreToDocumentArchive [18:02:04]shift 454 fd 140310 [18:02:04]save to /storage/0454/doc_00140310 [18:02:04]save last doc name /storage/0454/doc_00140310 to /storage/kkm_last_doc_name [18:02:04]save OK [18:02:04]Clear old archive folders... [18:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:04]tlvbuf is 00CAFAD0 [18:02:04]SAM_PROTO_ClearQueue [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 09 00 00 [18:02:04]Write to MH i2c: E2 08 00 01 0B 80 09 00 00 00 00 00 00 7E [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [18:02:04]RAPDU: 90 00 [18:02:04]wFMCommunicate OK [18:02:04]SAM_PROTO_ClearQueue done [18:02:04]KKMCreateOFDPacket [18:02:04]OFDProtocolAddRootSTLVToBuf [18:02:04]FM_MakeSignedData [18:02:04]FM_MakeSignedData [18:02:04]SAM_PROTO_SignData [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 0D 01 02 [18:02:04]Write to MH i2c: E2 08 00 02 0B 80 0D 01 02 00 00 00 00 86 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:04]Read from MH i2c: E2 03 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [18:02:04]RAPDU: 90 00 [18:02:04]wFMCommunicate OK [18:02:04]wFMCommunicate request_size=255 [18:02:04]MH_SAM_APDU [18:02: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9B 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 24 02 00 35 04 06 00 79 [18:02:04]Write to MH i2c: E2 02 01 03 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9B 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 24 02 00 35 04 06 00 79 00 00 C5 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [18:02:04]RAPDU: 90 00 [18:02:04]wFMCommunicate OK [18:02:04]wFMCommunicate request_size=10 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 0D 02 02 05 70 1C 6C 44 24 [18:02:04]Write to MH i2c: E2 0D 00 04 0B 80 0D 02 02 05 00 70 1C 6C 44 24 00 00 F3 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [18:02:04]RAPDU: 90 00 [18:02:04]wFMCommunicate OK [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 0D 03 02 [18:02:04]Write to MH i2c: E2 08 00 05 0B 80 0D 03 02 00 00 00 00 8B [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0B 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 0B 00 05 0B 00 0A DD 27 D3 B0 23 43 4C 90 00 CF [18:02:04]RAPDU: 0A DD 27 D3 B0 23 43 4C 90 00 [18:02:04]wFMCommunicate OK [18:02:04]SAM_PROTO_SignData done [18:02:04]FM_MakeSignedData done [18:02:04]CreateOFDProtocolMessage [18:02:04]wFMCommunicate request_size=4 [18:02:04]MH_SAM_APDU [18:02:04]CAPDU: 80 11 00 00 [18:02:04]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:04]Read from MH i2c: E2 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 17 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: E2 17 00 06 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E2 [18:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:04]wFMCommunicate OK [18:02:04]CreateOFDProtocolMessage done [18:02:04]OFDSenderStorePacket 140310 [18:02:04]StoreOFDPacket docnum=140310 [18:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B0 33 07 01 15 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9B 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 24 02 00 35 04 06 00 79 70 1C 6C 44 24 0A DD 27 D3 B0 23 43 4C [18:02:04]CheckFolder [18:02:04]dirname=/storage/ofd_packets [18:02:04]CheckFolder done [18:02:04]ProducePacketName [18:02:04]name=ofd_packets/00140310 [18:02:04]NVStorageSaveData ofd_packets/00140310 [18:02:04]File name is /storage/ofd_packets/00140310 [18:02:04]Write 301 bytes [18:02:04]NVStorageSaveData done [18:02:04]OFDSenderStorePacket done [18:02:04]KKMCreateOFDPacket done [18:02:04]NVStorageSaveData kkm_last_timestamp [18:02:04]File name is /storage/kkm_last_timestamp [18:02:04]Write 4 bytes [18:02:04]NVStorageSaveData done [18:02:04]ExternCall_PrintAddStr [18:02:04]wPrintStart [18:02:04]Write to MH i2c: 01 00 00 07 0B 12 [18:02:04]Write i2c OK [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: 01 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: 01 07 00 [18:02:04]MH_I2C_Read... [18:02:04]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 FF 0F 27 [18:02:04]RasterBufferAndPrint [18:02:04]line Счет N : (1)594169 [18:02:04]line ИНН: 02508201610067 [18:02:04]line Контрольно-Кассовый Чек [18:02:04]line ПРОДАЖА [18:02:04]line ТРК (МРК, ГНК) : 52 [18:02:04]line Товар: 2710124130 [18:02:04]line Аи-92-К-5 [18:02:04]line 7.380 * 67.80 [18:02:04]line = 500.36 [18:02:04]line НДС 12% НСП 1% [18:02:04]line > о реализуемом товаре [18:02:04]line ОКРУГЛЕНИЕ: -0.36 [18:02:04]line ИТОГО: 500.00 [18:02:04]line Внесено: 500.00 [18:02:04]line СДАЧА: 0.00 [18:02:04]line НСП 1% : 4.43 [18:02:04]line НДС 12% : 53.14 [18:02:04]line Наличными: 500.00 [18:02:04]line Безнал.: 0.00 [18:02:04]line Место: АЗС № 136 "Партнер Нефть" [18:02:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:02:04]line СНО: Общий режим [18:02:04]line Чек 327 21.08.2024 18:02 [18:02:04]line Смена: 454 ФФД: 1.0 [18:02:04]line ЗНМ: 0300000067 [18:02:04]line РНМ: 0000000000092569 [18:02:04]line Версия ККМ: 001 [18:02:04]line ФМ: 0000000000871776 [18:02:04]line ФД: 140310 [18:02:04]line ФПД: 133522420155428 [18:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140310&fm=133522420155428&tin=02508201610067®Number=0000000000092569&sum=50000 [18:02:04]OFD Sender: Processing packet 140310 [packets to send 137, broken 136] [18:02:04]ProducePacketName [18:02:04]name=ofd_packets/00140310 [18:02:04]OFD Sender: To server: pG, [18:02:04]CommunicateWithHost lk.salyk.kg:30040 [18:02:04]ConnectInit lk.salyk.kg [18:02:04]written 0, free lines is 4095 [18:02:05]Connected sock=10 [18:02: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 37 36 0F 01 00 00 B0 33 07 01 15 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9B 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 16 24 02 00 35 04 06 00 79 70 1C 6C 44 24 0A DD 27 D3 B0 23 43 4C [18:02: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 37 36 4F 00 00 00 0A 07 47 00 E5 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 37 36 10 04 04 00 16 24 02 00 F4 03 04 00 2B D2 C5 66 B6 04 01 00 00 50 44 1E C0 3D D5 5F ED [18:02:05]CommunicateWithHost err = 0 [18:02:05]CheckOFDResponse [18:02:05]1017 (14) - 77093643461234 [18:02:05]1041 (16) - 0000000000871776 [18:02:05]1040 (4) - 140310 [18:02:05]1012 (4) - 21.08.2024 11:40 [18:02:05]1206 (1) - 0 [18:02:05]OFD Sender: Remove packet 140310 [18:02:05]ProducePacketName [18:02:05]name=ofd_packets/00140310 [18:02:05]NVStorageDeleteData [18:02:05]Write to MH i2c: 01 00 00 32 0B 3D [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: 01 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: 01 07 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 D4 0C 24 [18:02:05]RasterBufferAndPrint [18:02:05]line [18:02:05]line [18:02:05]line [18:02:05]line [18:02:05]line [18:02:05]written 0, free lines is 3292 [18:02:05]MH_Cut [18:02:05]Write to MH i2c: D1 01 00 39 0B 01 16 [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: D1 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: D1 01 00 [18:02:05]MH_I2C_Read... [18:02:05]Read from MH i2c: D1 01 00 39 0B 00 15 [18:02:05]Write to MH i2c: 01 00 00 3A 0B 45 [18:02:05]Write i2c OK [18:02:05]MH_I2C_Read... [18:02:05]OFD Sender: No OFD packet to send [18:02:06]*** Cut start [18:02:06]*** Partial cut [18:02:06]*** CUTSNS_PIN = 1 [18:02:06]*** CUTSNS_PIN = 0 [18:02:06]*** Brake cut motor [18:02:06]Read from MH i2c: 01 [18:02:06]MH_I2C_Read... [18:02:06]*** Stop cut motor [18:02:06]*** Cut end [18:02:06]Read from MH i2c: 01 07 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FF 0F 5A [18:02:06]process_action close_receipt done [18:02:06]requested_data is exist [18:02:06]produce_requested_data [18:02:06]requested_item fm.sn is exist - process it [18:02:06]wFMCommunicate request_size=4 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 11 00 00 [18:02:06]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 17 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [18:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:06]wFMCommunicate OK [18:02:06]requested_item fd.num is exist - process it [18:02:06]SAM_PROTO_GetFieldsCounters [18:02:06]wFMCommunicate request_size=4 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 13 00 00 [18:02:06]Write to MH i2c: E2 08 00 3C 0B 80 13 00 00 00 00 00 00 C3 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 62 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 62 00 3C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 24 02 00 0E 04 04 00 C6 01 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 C9 [18:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 16 24 02 00 0E 04 04 00 C6 01 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 [18:02:06]wFMCommunicate OK [18:02:06]SAM_PROTO_GetFieldsCounters done [18:02:06]requested_item shift.num is exist - process it [18:02:06]requested_item shift.opened is exist - process it [18:02:06]req_shift_opened [18:02:06]FM_GetShiftState [18:02:06]SAM_PROTO_GetShiftState [18:02:06]wFMCommunicate request_size=4 [18:02:06]MH_SAM_APDU [18:02:06]CAPDU: 80 13 01 00 [18:02:06]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [18:02:06]Write i2c OK [18:02:06]MH_I2C_Read... [18:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:06]Read from MH i2c: E2 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 0E 00 [18:02:06]MH_I2C_Read... [18:02:06]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 45 [18:02:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:02:06]wFMCommunicate OK [18:02:06]SAM_PROTO_GetShiftState done [18:02:06]FM_GetShiftState done [18:02:06]req_shift_opened done [18:02:06]requested_item shift.open_date is exist - process it [18:02:06]req_shift_open_date [18:02:06]req_shift_open_date done [18:02:06]produce_requested_data done [18:02:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140310,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:02:06]process_action_free close_receipt [18:02:06]json_value_free [18:02:06]json_value_free done [18:02:06]process_json_proto returns [18:02:06]Send response to host [18:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140310,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:02:06]free response buf [18:02:06]execute_script done [18:02:06]execute_script returns [18:02:06]free content buf [18:02:06]Sock 9.Close socket [18:02:06]Sock 9.Thread stoped [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:23]accept exits with 7 [18:02:23]New connection [18:02:23]New thread 3067612516 created [18:02:23]Thread 3067469156 joined [18:02:23]Waiting for new connection... [18:02:23] Sock 7.Parse request [18:02:23]Sock 7.Check first char [18:02:23]Sock 7.First char is OK [18:02:23]request: POST /json_proto HTTP/1.0 [18:02:23]Method: POST [18:02:23]URL: /json_proto [18:02:23]Method is POST - this is cgi request [18:02:23]url: /json_proto [18:02:23]query_string will be loaded in cgi processing [18:02:23]execute_cgi json_proto POST (null) [18:02:23]execute_cgi path=json_proto method=POST [18:02:23]POST find Content-Length [18:02:23]Host: 172.17.45.67:8080 [18:02:23]Content-Length: 687 [18:02:23]Content-Type: application/json [18:02:23] [18:02:23]POST finish read [18:02:23]Found Content-Length = 687 [18:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 24.510, "sum" : 1867.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1867.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:23]execute_script... [18:02: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)594168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 24.510, "sum" : 1867.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1867.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:23]POST & json_proto [18:02:23]process_json_proto [18:02:23]json parsed OK: [18:02:23]protocol is kg_v1.0 [18:02:23]action value=close_receipt [18:02:23]process_action close_receipt [18:02:23]cmd_close_receipt [18:02:23]MH_GetDate [18:02:23]Write to MH i2c: F0 00 00 3E 0B 38 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: F0 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: F0 09 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: F0 09 00 3E 0B 00 AF 2B C6 66 5F 7F 2B 66 B6 [18:02:23]GetLastDocTimeStamp 1724263323 [18:02:23]current date 1724263343 [18:02:23]FM_GetShiftState [18:02:23]SAM_PROTO_GetShiftState [18:02:23]wFMCommunicate request_size=4 [18:02:23]MH_SAM_APDU [18:02:23]CAPDU: 80 13 01 00 [18:02:23]Write to MH i2c: E2 08 00 3F 0B 80 13 01 00 00 00 00 00 C7 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:23]Read from MH i2c: E2 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: E2 0E 00 3F 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 47 [18:02:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:02:23]wFMCommunicate OK [18:02:23]SAM_PROTO_GetShiftState done [18:02:23]FM_GetShiftState done [18:02:23]opened in 1724200467 [18:02:23]opened+sec_in_day 1724286867 [18:02:23]quantity*price = 186766 [18:02:23]sum+1 = 186767 [18:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1867.00 Внесено: 1867.00 СДАЧА: 0.00 НСП 1% : 16.53 НДС 12% : 198.34 Наличными: 1867.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 328 21.08.2024 18:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140311 ФПД: 218638706628718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140311&fm=218638706628718&tin=02508201610067®Number=0000000000092569&sum=186700 [18:02:24]StoreToDocumentArchive [18:02:24]shift 454 fd 140311 [18:02:24]save to /storage/0454/doc_00140311 [18:02:24]save last doc name /storage/0454/doc_00140311 to /storage/kkm_last_doc_name [18:02:24]save OK [18:02:24]Clear old archive folders... [18:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:24]tlvbuf is 00CAF6A0 [18:02:24]SAM_PROTO_ClearQueue [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 09 00 00 [18:02:24]Write to MH i2c: E2 08 00 4C 0B 80 09 00 00 00 00 00 00 C9 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [18:02:24]RAPDU: 90 00 [18:02:24]wFMCommunicate OK [18:02:24]SAM_PROTO_ClearQueue done [18:02:24]KKMCreateOFDPacket [18:02:24]OFDProtocolAddRootSTLVToBuf [18:02:24]FM_MakeSignedData [18:02:24]FM_MakeSignedData [18:02:24]SAM_PROTO_SignData [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 0D 01 02 [18:02:24]Write to MH i2c: E2 08 00 4D 0B 80 0D 01 02 00 00 00 00 D1 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [18:02:24]RAPDU: 90 00 [18:02:24]wFMCommunicate OK [18:02:24]wFMCommunicate request_size=255 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 4D 00 00 00 00 07 04 06 00 4C D9 02 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 AF 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 24 02 00 35 04 06 00 [18:02:24]Write to MH i2c: E2 02 01 4E 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 4D 00 00 00 00 07 04 06 00 4C D9 02 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 AF 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 24 02 00 35 04 06 00 00 00 6A [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [18:02:24]RAPDU: 90 00 [18:02:24]wFMCommunicate OK [18:02:24]wFMCommunicate request_size=11 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 0D 02 02 06 C6 D9 CA 71 58 6E [18:02:24]Write to MH i2c: E2 0E 00 4F 0B 80 0D 02 02 06 00 C6 D9 CA 71 58 6E 00 00 80 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [18:02:24]RAPDU: 90 00 [18:02:24]wFMCommunicate OK [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 0D 03 02 [18:02:24]Write to MH i2c: E2 08 00 50 0B 80 0D 03 02 00 00 00 00 D6 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0B 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0B 00 50 0B 00 E8 2E 71 91 68 B0 E4 A1 90 00 8C [18:02:24]RAPDU: E8 2E 71 91 68 B0 E4 A1 90 00 [18:02:24]wFMCommunicate OK [18:02:24]SAM_PROTO_SignData done [18:02:24]FM_MakeSignedData done [18:02:24]CreateOFDProtocolMessage [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 11 00 00 [18:02:24]Write to MH i2c: E2 08 00 51 0B 80 11 00 00 00 00 00 00 D6 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 17 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 17 00 51 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2D [18:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:24]wFMCommunicate OK [18:02:24]CreateOFDProtocolMessage done [18:02:24]OFDSenderStorePacket 140311 [18:02:24]StoreOFDPacket docnum=140311 [18:02:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 15 68 08 01 9C 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 4D 00 00 00 00 07 04 06 00 4C D9 02 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 AF 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 24 02 00 35 04 06 00 C6 D9 CA 71 58 6E E8 2E 71 91 68 B0 E4 A1 [18:02:24]CheckFolder [18:02:24]dirname=/storage/ofd_packets [18:02:24]CheckFolder done [18:02:24]ProducePacketName [18:02:24]name=ofd_packets/00140311 [18:02:24]NVStorageSaveData ofd_packets/00140311 [18:02:24]File name is /storage/ofd_packets/00140311 [18:02:24]Write 302 bytes [18:02:24]NVStorageSaveData done [18:02:24]OFDSenderStorePacket done [18:02:24]KKMCreateOFDPacket done [18:02:24]NVStorageSaveData kkm_last_timestamp [18:02:24]File name is /storage/kkm_last_timestamp [18:02:24]Write 4 bytes [18:02:24]NVStorageSaveData done [18:02:24]OFD Sender: Processing packet 140311 [packets to send 137, broken 136] [18:02:24]ProducePacketName [18:02:24]name=ofd_packets/00140311 [18:02:24]OFD Sender: To server: pG, [18:02:24]CommunicateWithHost lk.salyk.kg:30040 [18:02:24]ConnectInit lk.salyk.kg [18:02:24]ExternCall_PrintAddStr [18:02:24]wPrintStart [18:02:24]Write to MH i2c: 01 00 00 52 0B 5D [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: 01 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: 01 07 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 FF 0F 72 [18:02:24]RasterBufferAndPrint [18:02:24]line Счет N : (1)594168 [18:02:24]line ИНН: 02508201610067 [18:02:24]line Контрольно-Кассовый Чек [18:02:24]line ПРОДАЖА [18:02:24]line ТРК (МРК, ГНК) : 44 [18:02:24]line Товар: 2710194210 [18:02:24]line ДТ(л)-К-5 [18:02:24]line 24.510 * 76.20 [18:02:24]line = 1867.66 [18:02:24]line НДС 12% НСП 1% [18:02:24]line > о реализуемом товаре [18:02:24]line ОКРУГЛЕНИЕ: -0.66 [18:02:24]line ИТОГО: 1867.00 [18:02:24]line Внесено: 1867.00 [18:02:24]line СДАЧА: 0.00 [18:02:24]line НСП 1% : 16.53 [18:02:24]line НДС 12% : 198.34 [18:02:24]line Наличными: 1867.00 [18:02:24]line Безнал.: 0.00 [18:02:24]line Место: АЗС № 136 "Партнер Нефть" [18:02:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:02:24]line СНО: Общий режим [18:02:24]line Чек 328 21.08.2024 18:02 [18:02:24]line Смена: 454 ФФД: 1.0 [18:02:24]line ЗНМ: 0300000067 [18:02:24]line РНМ: 0000000000092569 [18:02:24]line Версия ККМ: 001 [18:02:24]line ФМ: 0000000000871776 [18:02:24]line ФД: 140311 [18:02:24]line ФПД: 218638706628718 [18:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180223&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140311&fm=218638706628718&tin=02508201610067®Number=0000000000092569&sum=186700 [18:02:25]Connected sock=11 [18:02: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 37 36 10 01 00 00 15 68 08 01 9C 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 4D 00 00 00 00 07 04 06 00 4C D9 02 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 AF 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 24 02 00 35 04 06 00 C6 D9 CA 71 58 6E E8 2E 71 91 68 B0 E4 A1 [18:02:25]written 0, free lines is 4095 [18: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 37 36 4F 00 00 00 69 62 47 00 5D 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 17 24 02 00 F4 03 04 00 3F D2 C5 66 B6 04 01 00 00 5E 09 AC F5 1A 59 63 8C [18:02:25]CommunicateWithHost err = 0 [18:02:25]CheckOFDResponse [18:02:25]1017 (14) - 77093643461234 [18:02:25]1041 (16) - 0000000000871776 [18:02:25]1040 (4) - 140311 [18:02:25]1012 (4) - 21.08.2024 11:40 [18:02:25]1206 (1) - 0 [18:02:25]OFD Sender: Remove packet 140311 [18:02:25]ProducePacketName [18:02:25]name=ofd_packets/00140311 [18:02:25]NVStorageDeleteData [18:02:25]Write to MH i2c: 01 00 00 7D 0B 88 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: 01 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: 01 07 00 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 DD 0C 78 [18:02:25]RasterBufferAndPrint [18:02:25]line [18:02:25]line [18:02:25]line [18:02:25]line [18:02:25]line [18:02:25]written 0, free lines is 3299 [18:02:25]MH_Cut [18:02:25]Write to MH i2c: D1 01 00 84 0B 01 61 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: D1 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: D1 01 00 [18:02:25]MH_I2C_Read... [18:02:25]Read from MH i2c: D1 01 00 84 0B 00 60 [18:02:25]Write to MH i2c: 01 00 00 85 0B 90 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:26]OFD Sender: No OFD packet to send [18:02:26]*** Cut start [18:02:26]*** Partial cut [18:02:26]*** CUTSNS_PIN = 1 [18:02:26]*** CUTSNS_PIN = 0 [18:02:26]*** Brake cut motor [18:02:27]Read from MH i2c: 01 [18:02:27]MH_I2C_Read... [18:02:27]*** Stop cut motor [18:02:27]*** Cut end [18:02:27]Read from MH i2c: 01 07 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 FF 0F A5 [18:02:27]process_action close_receipt done [18:02:27]requested_data is exist [18:02:27]produce_requested_data [18:02:27]requested_item fm.sn is exist - process it [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 11 00 00 [18:02:27]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 17 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 62 [18:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:02:27]wFMCommunicate OK [18:02:27]requested_item fd.num is exist - process it [18:02:27]SAM_PROTO_GetFieldsCounters [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 13 00 00 [18:02:27]Write to MH i2c: E2 08 00 87 0B 80 13 00 00 00 00 00 00 0E [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 62 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 62 00 87 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 24 02 00 0E 04 04 00 C6 01 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 18 [18:02: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 17 24 02 00 0E 04 04 00 C6 01 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 [18:02:27]wFMCommunicate OK [18:02:27]SAM_PROTO_GetFieldsCounters done [18:02:27]requested_item shift.num is exist - process it [18:02:27]requested_item shift.opened is exist - process it [18:02:27]req_shift_opened [18:02:27]FM_GetShiftState [18:02:27]SAM_PROTO_GetShiftState [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 13 01 00 [18:02:27]Write to MH i2c: E2 08 00 88 0B 80 13 01 00 00 00 00 00 10 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 0E 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 0E 00 88 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 90 [18:02:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:02:27]wFMCommunicate OK [18:02:27]SAM_PROTO_GetShiftState done [18:02:27]FM_GetShiftState done [18:02:27]req_shift_opened done [18:02:27]requested_item shift.open_date is exist - process it [18:02:27]req_shift_open_date [18:02:27]req_shift_open_date done [18:02:27]produce_requested_data done [18:02:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140311,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:02:27]process_action_free close_receipt [18:02:27]json_value_free [18:02:27]json_value_free done [18:02:27]process_json_proto returns [18:02:27]Send response to host [18:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140311,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:02:27]free response buf [18:02:27]execute_script done [18:02:27]execute_script returns [18:02:27]free content buf [18:02:27]Sock 7.Close socket [18:02:27]Sock 7.Thread stoped [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:02]accept exits with 9 [18:03:02]New connection [18:03:02]New thread 3067469156 created [18:03:02]Thread 3067612516 joined [18:03:02]Waiting for new connection... [18:03:02] Sock 9.Parse request [18:03:02]Sock 9.Check first char [18:03:02]Sock 9.First char is OK [18:03:02]request: POST /json_proto HTTP/1.0 [18:03:02]Method: POST [18:03:02]URL: /json_proto [18:03:02]Method is POST - this is cgi request [18:03:02]url: /json_proto [18:03:02]query_string will be loaded in cgi processing [18:03:02]execute_cgi json_proto POST (null) [18:03:02]execute_cgi path=json_proto method=POST [18:03:02]POST find Content-Length [18:03:02]Host: 172.17.45.67:8080 [18:03:02]Content-Length: 677 [18:03:02]Content-Type: application/json [18:03:02] [18:03:02]POST finish read [18:03:02]Found Content-Length = 677 [18:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:02]execute_script... [18:03:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:02]POST & json_proto [18:03:02]process_json_proto [18:03:02]json parsed OK: [18:03:02]protocol is kg_v1.0 [18:03:02]action value=close_receipt [18:03:02]process_action close_receipt [18:03:02]cmd_close_receipt [18:03:02]MH_GetDate [18:03:02]Write to MH i2c: F0 00 00 89 0B 83 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: F0 09 00 89 0B 00 D6 2B C6 66 5F 7F 2B 66 28 [18:03:02]GetLastDocTimeStamp 1724263343 [18:03:02]current date 1724263382 [18:03:02]FM_GetShiftState [18:03:02]SAM_PROTO_GetShiftState [18:03:02]wFMCommunicate request_size=4 [18:03:02]MH_SAM_APDU [18:03:02]CAPDU: 80 13 01 00 [18:03:02]Write to MH i2c: E2 08 00 8A 0B 80 13 01 00 00 00 00 00 12 [18:03:02]Write i2c OK [18:03:02]MH_I2C_Read... [18:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:02]Read from MH i2c: E2 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 [18:03:02]MH_I2C_Read... [18:03:02]Read from MH i2c: E2 0E 00 8A 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 92 [18:03:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:03:02]wFMCommunicate OK [18:03:02]SAM_PROTO_GetShiftState done [18:03:02]FM_GetShiftState done [18:03:02]opened in 1724200467 [18:03:02]opened+sec_in_day 1724286867 [18:03:02]quantity*price = 50036 [18:03:02]sum+1 = 50037 [18:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 329 21.08.2024 18:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140312 ФПД: 9562426367879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140312&fm=9562426367879&tin=02508201610067®Number=0000000000092569&sum=50000 [18:03:03]StoreToDocumentArchive [18:03:03]shift 454 fd 140312 [18:03:03]save to /storage/0454/doc_00140312 [18:03:03]save last doc name /storage/0454/doc_00140312 to /storage/kkm_last_doc_name [18:03:03]save OK [18:03:03]Clear old archive folders... [18:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:03]tlvbuf is 00C0C9A0 [18:03:03]SAM_PROTO_ClearQueue [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 09 00 00 [18:03:03]Write to MH i2c: E2 08 00 97 0B 80 09 00 00 00 00 00 00 14 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 97 0B 00 90 00 16 [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_ClearQueue done [18:03:03]KKMCreateOFDPacket [18:03:03]OFDProtocolAddRootSTLVToBuf [18:03:03]FM_MakeSignedData [18:03:03]FM_MakeSignedData [18:03:03]SAM_PROTO_SignData [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 01 02 [18:03:03]Write to MH i2c: E2 08 00 98 0B 80 0D 01 02 00 00 00 00 1C [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]wFMCommunicate request_size=255 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 24 02 00 35 04 06 00 08 [18:03:03]Write to MH i2c: E2 02 01 99 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 24 02 00 35 04 06 00 08 00 00 29 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]wFMCommunicate request_size=10 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 02 02 05 B2 6D 06 DF 87 [18:03:03]Write to MH i2c: E2 0D 00 9A 0B 80 0D 02 02 05 00 B2 6D 06 DF 87 00 00 B4 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [18:03:03]RAPDU: 90 00 [18:03:03]wFMCommunicate OK [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 0D 03 02 [18:03:03]Write to MH i2c: E2 08 00 9B 0B 80 0D 03 02 00 00 00 00 21 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0B 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0B 00 9B 0B 00 09 11 96 27 C8 04 5D A8 90 00 CA [18:03:03]RAPDU: 09 11 96 27 C8 04 5D A8 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_SignData done [18:03:03]FM_MakeSignedData done [18:03:03]CreateOFDProtocolMessage [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 11 00 00 [18:03:03]Write to MH i2c: E2 08 00 9C 0B 80 11 00 00 00 00 00 00 21 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 17 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 17 00 9C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [18:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:03:03]wFMCommunicate OK [18:03:03]CreateOFDProtocolMessage done [18:03:03]OFDSenderStorePacket 140312 [18:03:03]StoreOFDPacket docnum=140312 [18:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5F 6B 07 01 7D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 24 02 00 35 04 06 00 08 B2 6D 06 DF 87 09 11 96 27 C8 04 5D A8 [18:03:03]CheckFolder [18:03:03]dirname=/storage/ofd_packets [18:03:03]CheckFolder done [18:03:03]ProducePacketName [18:03:03]name=ofd_packets/00140312 [18:03:03]NVStorageSaveData ofd_packets/00140312 [18:03:03]File name is /storage/ofd_packets/00140312 [18:03:03]Write 301 bytes [18:03:03]NVStorageSaveData done [18:03:03]OFDSenderStorePacket done [18:03:03]KKMCreateOFDPacket done [18:03:03]NVStorageSaveData kkm_last_timestamp [18:03:03]File name is /storage/kkm_last_timestamp [18:03:03]Write 4 bytes [18:03:03]NVStorageSaveData done [18:03:03]ExternCall_PrintAddStr [18:03:03]wPrintStart [18:03:03]Write to MH i2c: 01 00 00 9D 0B A8 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 FF 0F BD [18:03:03]RasterBufferAndPrint [18:03:03]line Счет N : (1)594170 [18:03:03]line ИНН: 02508201610067 [18:03:03]line Контрольно-Кассовый Чек [18:03:03]line ПРОДАЖА [18:03:03]line ТРК (МРК, ГНК) : 32 [18:03:03]line Товар: 2710124130 [18:03:03]line Аи-92-К-5 [18:03:03]line 7.380 * 67.80 [18:03:03]line = 500.36 [18:03:03]line НДС 12% НСП 1% [18:03:03]line > о реализуемом товаре [18:03:03]line ОКРУГЛЕНИЕ: -0.36 [18:03:03]line ИТОГО: 500.00 [18:03:03]line Внесено: 500.00 [18:03:03]line СДАЧА: 0.00 [18:03:03]line НСП 1% : 4.43 [18:03:03]line НДС 12% : 53.14 [18:03:03]line Наличными: 500.00 [18:03:03]line Безнал.: 0.00 [18:03:03]line Место: АЗС № 136 "Партнер Нефть" [18:03:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:03:03]line СНО: Общий режим [18:03:03]line Чек 329 21.08.2024 18:03 [18:03:03]line Смена: 454 ФФД: 1.0 [18:03:03]line ЗНМ: 0300000067 [18:03:03]line РНМ: 0000000000092569 [18:03:03]line Версия ККМ: 001 [18:03:03]line ФМ: 0000000000871776 [18:03:03]line ФД: 140312 [18:03:03]line ФПД: 9562426367879 [18:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180302&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140312&fm=9562426367879&tin=02508201610067®Number=0000000000092569&sum=50000 [18:03:04]OFD Sender: Processing packet 140312 [packets to send 137, broken 136] [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00140312 [18:03:04]OFD Sender: To server: pG, [18:03:04]CommunicateWithHost lk.salyk.kg:30040 [18:03:04]ConnectInit lk.salyk.kg [18:03:04]written 0, free lines is 4095 [18:03:04]Connected sock=10 [18:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5F 6B 07 01 7D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 2B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 18 24 02 00 35 04 06 00 08 B2 6D 06 DF 87 09 11 96 27 C8 04 5D A8 [18:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 FE 69 47 00 08 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 37 36 10 04 04 00 18 24 02 00 F4 03 04 00 66 D2 C5 66 B6 04 01 00 00 26 7A 06 1C 24 E3 00 B9 [18:03:04]CommunicateWithHost err = 0 [18:03:04]CheckOFDResponse [18:03:04]1017 (14) - 77093643461234 [18:03:04]1041 (16) - 0000000000871776 [18:03:04]1040 (4) - 140312 [18:03:04]1012 (4) - 21.08.2024 11:41 [18:03:04]1206 (1) - 0 [18:03:04]OFD Sender: Remove packet 140312 [18:03:04]ProducePacketName [18:03:04]name=ofd_packets/00140312 [18:03:04]NVStorageDeleteData [18:03:04]Write to MH i2c: 01 00 00 C8 0B D3 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 E2 0C C8 [18:03:04]RasterBufferAndPrint [18:03:04]line [18:03:04]line [18:03:04]line [18:03:04]line [18:03:04]line [18:03:04]written 0, free lines is 3304 [18:03:04]MH_Cut [18:03:04]Write to MH i2c: D1 01 00 CF 0B 01 AC [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: D1 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: D1 01 00 [18:03:04]MH_I2C_Read... [18:03:04]Read from MH i2c: D1 01 00 CF 0B 00 AB [18:03:04]Write to MH i2c: 01 00 00 D0 0B DB [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]OFD Sender: No OFD packet to send [18:03:05]*** Cut start [18:03:05]*** Partial cut [18:03:05]*** CUTSNS_PIN = 1 [18:03:05]*** CUTSNS_PIN = 0 [18:03:05]*** Brake cut motor [18:03:05]Read from MH i2c: 01 [18:03:05]MH_I2C_Read... [18:03:05]*** Stop cut motor [18:03:05]*** Cut end [18:03:05]Read from MH i2c: 01 07 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [18:03:05]process_action close_receipt done [18:03:05]requested_data is exist [18:03:05]produce_requested_data [18:03:05]requested_item fm.sn is exist - process it [18:03:05]wFMCommunicate request_size=4 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 11 00 00 [18:03:05]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 17 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [18:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:03:05]wFMCommunicate OK [18:03:05]requested_item fd.num is exist - process it [18:03:05]SAM_PROTO_GetFieldsCounters [18:03:05]wFMCommunicate request_size=4 [18:03:05]MH_SAM_APDU [18:03:05]CAPDU: 80 13 00 00 [18:03:05]Write to MH i2c: E2 08 00 D2 0B 80 13 00 00 00 00 00 00 59 [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 62 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 62 00 D2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 24 02 00 0E 04 04 00 C6 01 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 67 [18:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 18 24 02 00 0E 04 04 00 C6 01 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 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_GetFieldsCounters done [18:03:06]requested_item shift.num is exist - process it [18:03:06]requested_item shift.opened is exist - process it [18:03:06]req_shift_opened [18:03:06]FM_GetShiftState [18:03:06]SAM_PROTO_GetShiftState [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 01 00 [18:03:06]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DB [18:03:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_GetShiftState done [18:03:06]FM_GetShiftState done [18:03:06]req_shift_opened done [18:03:06]requested_item shift.open_date is exist - process it [18:03:06]req_shift_open_date [18:03:06]req_shift_open_date done [18:03:06]produce_requested_data done [18:03:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140312,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:03:06]process_action_free close_receipt [18:03:06]json_value_free [18:03:06]json_value_free done [18:03:06]process_json_proto returns [18:03:06]Send response to host [18:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140312,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:03:06]free response buf [18:03:06]execute_script done [18:03:06]execute_script returns [18:03:06]free content buf [18:03:06]Sock 9.Close socket [18:03:06]Sock 9.Thread stoped [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:16]accept exits with 7 [18:05:16]New connection [18:05:16]New thread 3067612516 created [18:05:16]Thread 3067469156 joined [18:05:16]Waiting for new connection... [18:05:16] Sock 7.Parse request [18:05:16]Sock 7.Check first char [18:05:16]Sock 7.First char is OK [18:05:16]request: POST /json_proto HTTP/1.0 [18:05:16]Method: POST [18:05:16]URL: /json_proto [18:05:16]Method is POST - this is cgi request [18:05:16]url: /json_proto [18:05:16]query_string will be loaded in cgi processing [18:05:16]execute_cgi json_proto POST (null) [18:05:16]execute_cgi path=json_proto method=POST [18:05:16]POST find Content-Length [18:05:16]Host: 172.17.45.67:8080 [18:05:16]Content-Length: 682 [18:05:16]Content-Type: application/json [18:05:16] [18:05:16]POST finish read [18:05:16]Found Content-Length = 682 [18:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:16]execute_script... [18:05: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)594172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:16]POST & json_proto [18:05:16]process_json_proto [18:05:16]json parsed OK: [18:05:16]protocol is kg_v1.0 [18:05:16]action value=close_receipt [18:05:16]process_action close_receipt [18:05:16]cmd_close_receipt [18:05:16]MH_GetDate [18:05:16]Write to MH i2c: F0 00 00 D4 0B CE [18:05:16]Write i2c OK [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: F0 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: F0 09 00 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: F0 09 00 D4 0B 00 5C 2C C6 66 5F 7F 2B 66 FA [18:05:16]GetLastDocTimeStamp 1724263382 [18:05:16]current date 1724263516 [18:05:16]FM_GetShiftState [18:05:16]SAM_PROTO_GetShiftState [18:05:16]wFMCommunicate request_size=4 [18:05:16]MH_SAM_APDU [18:05:16]CAPDU: 80 13 01 00 [18:05:16]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [18:05:16]Write i2c OK [18:05:16]MH_I2C_Read... [18:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:16]Read from MH i2c: E2 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: E2 0E 00 [18:05:16]MH_I2C_Read... [18:05:16]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DD [18:05:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:16]wFMCommunicate OK [18:05:16]SAM_PROTO_GetShiftState done [18:05:16]FM_GetShiftState done [18:05:16]opened in 1724200467 [18:05:16]opened+sec_in_day 1724286867 [18:05:16]quantity*price = 100021 [18:05:16]sum+1 = 100023 [18:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 330 21.08.2024 18:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140313 ФПД: 167998121791822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140313&fm=167998121791822&tin=02508201610067®Number=0000000000092569&sum=100000 [18:05:17]StoreToDocumentArchive [18:05:17]shift 454 fd 140313 [18:05:17]save to /storage/0454/doc_00140313 [18:05:17]save last doc name /storage/0454/doc_00140313 to /storage/kkm_last_doc_name [18:05:17]save OK [18:05:17]Clear old archive folders... [18:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:17]tlvbuf is 00CA20F0 [18:05:17]SAM_PROTO_ClearQueue [18:05:17]wFMCommunicate request_size=4 [18:05:17]MH_SAM_APDU [18:05:17]CAPDU: 80 09 00 00 [18:05:17]Write to MH i2c: E2 08 00 E2 0B 80 09 00 00 00 00 00 00 5F [18:05:17]Write i2c OK [18:05:17]MH_I2C_Read... [18:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:17]Read from MH i2c: E2 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 03 00 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [18:05:17]RAPDU: 90 00 [18:05:17]wFMCommunicate OK [18:05:17]SAM_PROTO_ClearQueue done [18:05:17]KKMCreateOFDPacket [18:05:17]OFDProtocolAddRootSTLVToBuf [18:05:17]FM_MakeSignedData [18:05:17]FM_MakeSignedData [18:05:17]SAM_PROTO_SignData [18:05:17]wFMCommunicate request_size=4 [18:05:17]MH_SAM_APDU [18:05:17]CAPDU: 80 0D 01 02 [18:05:17]Write to MH i2c: E2 08 00 E3 0B 80 0D 01 02 00 00 00 00 67 [18:05:17]Write i2c OK [18:05:17]MH_I2C_Read... [18:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:17]Read from MH i2c: E2 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 03 00 [18:05:17]MH_I2C_Read... [18:05:17]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [18:05:17]RAPDU: 90 00 [18:05:17]wFMCommunicate OK [18:05:17]wFMCommunicate request_size=255 [18:05:17]MH_SAM_APDU [18:05: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 5D 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 24 02 00 35 04 06 00 98 [18:05:17]Write to MH i2c: E2 02 01 E4 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 5D 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 24 02 00 35 04 06 00 98 00 00 BB [18:05:17]Write i2c OK [18:05:17]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 03 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [18:05:18]RAPDU: 90 00 [18:05:18]wFMCommunicate OK [18:05:18]wFMCommunicate request_size=10 [18:05:18]MH_SAM_APDU [18:05:18]CAPDU: 80 0D 02 02 05 CB 1C 5F 51 4E [18:05:18]Write to MH i2c: E2 0D 00 E5 0B 80 0D 02 02 05 00 CB 1C 5F 51 4E 00 00 59 [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 03 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [18:05:18]RAPDU: 90 00 [18:05:18]wFMCommunicate OK [18:05:18]wFMCommunicate request_size=4 [18:05:18]MH_SAM_APDU [18:05:18]CAPDU: 80 0D 03 02 [18:05:18]Write to MH i2c: E2 08 00 E6 0B 80 0D 03 02 00 00 00 00 6C [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0B 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 0B 00 E6 0B 00 17 61 D6 8C 75 BD 28 1F 90 00 C0 [18:05:18]RAPDU: 17 61 D6 8C 75 BD 28 1F 90 00 [18:05:18]wFMCommunicate OK [18:05:18]SAM_PROTO_SignData done [18:05:18]FM_MakeSignedData done [18:05:18]CreateOFDProtocolMessage [18:05:18]wFMCommunicate request_size=4 [18:05:18]MH_SAM_APDU [18:05:18]CAPDU: 80 11 00 00 [18:05:18]Write to MH i2c: E2 08 00 E7 0B 80 11 00 00 00 00 00 00 6C [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:18]Read from MH i2c: E2 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 17 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: E2 17 00 E7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [18:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:18]wFMCommunicate OK [18:05:18]CreateOFDProtocolMessage done [18:05:18]OFDSenderStorePacket 140313 [18:05:18]StoreOFDPacket docnum=140313 [18:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E0 1E 07 01 85 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 5D 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 24 02 00 35 04 06 00 98 CB 1C 5F 51 4E 17 61 D6 8C 75 BD 28 1F [18:05:18]CheckFolder [18:05:18]dirname=/storage/ofd_packets [18:05:18]CheckFolder done [18:05:18]ProducePacketName [18:05:18]name=ofd_packets/00140313 [18:05:18]NVStorageSaveData ofd_packets/00140313 [18:05:18]File name is /storage/ofd_packets/00140313 [18:05:18]Write 301 bytes [18:05:18]NVStorageSaveData done [18:05:18]OFDSenderStorePacket done [18:05:18]KKMCreateOFDPacket done [18:05:18]NVStorageSaveData kkm_last_timestamp [18:05:18]File name is /storage/kkm_last_timestamp [18:05:18]Write 4 bytes [18:05:18]NVStorageSaveData done [18:05:18]ExternCall_PrintAddStr [18:05:18]wPrintStart [18:05:18]Write to MH i2c: 01 00 00 E8 0B F3 [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 07 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [18:05:18]RasterBufferAndPrint [18:05:18]line Счет N : (1)594172 [18:05:18]line ИНН: 02508201610067 [18:05:18]line Контрольно-Кассовый Чек [18:05:18]line ПРОДАЖА [18:05:18]line ТРК (МРК, ГНК) : 51 [18:05:18]line Товар: 2710124500 [18:05:18]line Аи-95-К-5 [18:05:18]line 13.480 * 74.20 [18:05:18]line = 1000.22 [18:05:18]line НДС 12% НСП 1% [18:05:18]line > о реализуемом товаре [18:05:18]line ОКРУГЛЕНИЕ: -0.22 [18:05:18]line ИТОГО: 1000.00 [18:05:18]line Внесено: 1000.00 [18:05:18]line СДАЧА: 0.00 [18:05:18]line НСП 1% : 8.85 [18:05:18]line НДС 12% : 106.22 [18:05:18]line Наличными: 1000.00 [18:05:18]line Безнал.: 0.00 [18:05:18]line Место: АЗС № 136 "Партнер Нефть" [18:05:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:05:18]line СНО: Общий режим [18:05:18]line Чек 330 21.08.2024 18:05 [18:05:18]line Смена: 454 ФФД: 1.0 [18:05:18]line ЗНМ: 0300000067 [18:05:18]line РНМ: 0000000000092569 [18:05:18]line Версия ККМ: 001 [18:05:18]line ФМ: 0000000000871776 [18:05:18]line ФД: 140313 [18:05:18]line ФПД: 167998121791822 [18:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140313&fm=167998121791822&tin=02508201610067®Number=0000000000092569&sum=100000 [18:05:18]OFD Sender: Processing packet 140313 [packets to send 137, broken 136] [18:05:18]ProducePacketName [18:05:18]name=ofd_packets/00140313 [18:05:18]OFD Sender: To server: pG, [18:05:18]CommunicateWithHost lk.salyk.kg:30040 [18:05:18]ConnectInit lk.salyk.kg [18:05:18]written 0, free lines is 4095 [18:05:18]Connected sock=10 [18:05: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 37 36 0F 01 00 00 E0 1E 07 01 85 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 5D 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 24 02 00 35 04 06 00 98 CB 1C 5F 51 4E 17 61 D6 8C 75 BD 28 1F [18:05: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 37 36 4F 00 00 00 F3 31 47 00 1A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 19 24 02 00 F4 03 04 00 ED D2 C5 66 B6 04 01 00 00 C9 1B 06 4E C8 42 8D 83 [18:05:18]CommunicateWithHost err = 0 [18:05:18]CheckOFDResponse [18:05:18]1017 (14) - 77093643461234 [18:05:18]1041 (16) - 0000000000871776 [18:05:18]1040 (4) - 140313 [18:05:18]1012 (4) - 21.08.2024 11:43 [18:05:18]1206 (1) - 0 [18:05:18]OFD Sender: Remove packet 140313 [18:05:18]ProducePacketName [18:05:18]name=ofd_packets/00140313 [18:05:18]NVStorageDeleteData [18:05:18]Write to MH i2c: 01 00 00 13 0C 1F [18:05:18]Write i2c OK [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 07 00 [18:05:18]MH_I2C_Read... [18:05:18]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 E3 0C 15 [18:05:18]RasterBufferAndPrint [18:05:18]line [18:05:18]line [18:05:18]line [18:05:18]line [18:05:18]line [18:05:18]written 0, free lines is 3305 [18:05:19]MH_Cut [18:05:19]Write to MH i2c: D1 01 00 1A 0C 01 F8 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: D1 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: D1 01 00 [18:05:19]MH_I2C_Read... [18:05:19]Read from MH i2c: D1 01 00 1A 0C 00 F7 [18:05:19]Write to MH i2c: 01 00 00 1B 0C 27 [18:05:19]Write i2c OK [18:05:19]MH_I2C_Read... [18:05:19]OFD Sender: No OFD packet to send [18:05:19]*** Cut start [18:05:19]*** Partial cut [18:05:19]*** CUTSNS_PIN = 1 [18:05:19]*** CUTSNS_PIN = 0 [18:05:19]*** Brake cut motor [18:05:20]Read from MH i2c: 01 [18:05:20]MH_I2C_Read... [18:05:20]*** Stop cut motor [18:05:20]*** Cut end [18:05:20]Read from MH i2c: 01 07 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: 01 07 00 1B 0C 00 00 00 00 00 FF 0F 3C [18:05:20]process_action close_receipt done [18:05:20]requested_data is exist [18:05:20]produce_requested_data [18:05:20]requested_item fm.sn is exist - process it [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 11 00 00 [18:05:20]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 17 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [18:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:20]wFMCommunicate OK [18:05:20]requested_item fd.num is exist - process it [18:05:20]SAM_PROTO_GetFieldsCounters [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 13 00 00 [18:05:20]Write to MH i2c: E2 08 00 1D 0C 80 13 00 00 00 00 00 00 A5 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 62 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 62 00 1D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 24 02 00 0E 04 04 00 C6 01 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 B7 [18:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 19 24 02 00 0E 04 04 00 C6 01 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 [18:05:20]wFMCommunicate OK [18:05:20]SAM_PROTO_GetFieldsCounters done [18:05:20]requested_item shift.num is exist - process it [18:05:20]requested_item shift.opened is exist - process it [18:05:20]req_shift_opened [18:05:20]FM_GetShiftState [18:05:20]SAM_PROTO_GetShiftState [18:05:20]wFMCommunicate request_size=4 [18:05:20]MH_SAM_APDU [18:05:20]CAPDU: 80 13 01 00 [18:05:20]Write to MH i2c: E2 08 00 1E 0C 80 13 01 00 00 00 00 00 A7 [18:05:20]Write i2c OK [18:05:20]MH_I2C_Read... [18:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:20]Read from MH i2c: E2 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0E 00 [18:05:20]MH_I2C_Read... [18:05:20]Read from MH i2c: E2 0E 00 1E 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [18:05:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:20]wFMCommunicate OK [18:05:20]SAM_PROTO_GetShiftState done [18:05:20]FM_GetShiftState done [18:05:20]req_shift_opened done [18:05:20]requested_item shift.open_date is exist - process it [18:05:20]req_shift_open_date [18:05:20]req_shift_open_date done [18:05:20]produce_requested_data done [18:05:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140313,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:05:20]process_action_free close_receipt [18:05:20]json_value_free [18:05:20]json_value_free done [18:05:20]process_json_proto returns [18:05:20]Send response to host [18:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140313,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:05:20]free response buf [18:05:20]execute_script done [18:05:20]execute_script returns [18:05:20]free content buf [18:05:20]Sock 7.Close socket [18:05:20]Sock 7.Thread stoped [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:47]accept exits with 9 [18:05:47]New connection [18:05:47]New thread 3067469156 created [18:05:47]Thread 3067612516 joined [18:05:47]Waiting for new connection... [18:05:47] Sock 9.Parse request [18:05:47]Sock 9.Check first char [18:05:47]Sock 9.First char is OK [18:05:47]request: POST /json_proto HTTP/1.0 [18:05:47]Method: POST [18:05:47]URL: /json_proto [18:05:47]Method is POST - this is cgi request [18:05:47]url: /json_proto [18:05:47]query_string will be loaded in cgi processing [18:05:47]execute_cgi json_proto POST (null) [18:05:47]execute_cgi path=json_proto method=POST [18:05:47]POST find Content-Length [18:05:47]Host: 172.17.45.67:8080 [18:05:47]Content-Length: 677 [18:05:47]Content-Type: application/json [18:05:47] [18:05:47]POST finish read [18:05:47]Found Content-Length = 677 [18:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:47]execute_script... [18:05: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)594173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:47]POST & json_proto [18:05:47]process_json_proto [18:05:47]json parsed OK: [18:05:47]protocol is kg_v1.0 [18:05:47]action value=close_receipt [18:05:47]process_action close_receipt [18:05:47]cmd_close_receipt [18:05:47]MH_GetDate [18:05:47]Write to MH i2c: F0 00 00 1F 0C 1A [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: F0 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: F0 09 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: F0 09 00 1F 0C 00 7B 2C C6 66 5F 7F 2B 66 65 [18:05:47]GetLastDocTimeStamp 1724263517 [18:05:47]current date 1724263547 [18:05:47]FM_GetShiftState [18:05:47]SAM_PROTO_GetShiftState [18:05:47]wFMCommunicate request_size=4 [18:05:47]MH_SAM_APDU [18:05:47]CAPDU: 80 13 01 00 [18:05:47]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:47]Read from MH i2c: E2 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 0E 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [18:05:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:47]wFMCommunicate OK [18:05:47]SAM_PROTO_GetShiftState done [18:05:47]FM_GetShiftState done [18:05:47]opened in 1724200467 [18:05:47]opened+sec_in_day 1724286867 [18:05:47]quantity*price = 60003 [18:05:47]sum+1 = 60004 [18:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 331 21.08.2024 18:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140314 ФПД: 18384070429059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140314&fm=18384070429059&tin=02508201610067®Number=0000000000092569&sum=60000 [18:05:48]StoreToDocumentArchive [18:05:48]shift 454 fd 140314 [18:05:48]save to /storage/0454/doc_00140314 [18:05:48]save last doc name /storage/0454/doc_00140314 to /storage/kkm_last_doc_name [18:05:48]save OK [18:05:48]Clear old archive folders... [18:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:48]tlvbuf is 00CB3A10 [18:05:48]SAM_PROTO_ClearQueue [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 09 00 00 [18:05:48]Write to MH i2c: E2 08 00 2D 0C 80 09 00 00 00 00 00 00 AB [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_ClearQueue done [18:05:48]KKMCreateOFDPacket [18:05:48]OFDProtocolAddRootSTLVToBuf [18:05:48]FM_MakeSignedData [18:05:48]FM_MakeSignedData [18:05:48]SAM_PROTO_SignData [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 01 02 [18:05:48]Write to MH i2c: E2 08 00 2E 0C 80 0D 01 02 00 00 00 00 B3 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=255 [18:05:48]MH_SAM_APDU [18:05: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4B 01 00 00 F4 03 04 00 7B 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 24 02 00 35 04 06 00 10 [18:05:48]Write to MH i2c: E2 02 01 2F 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4B 01 00 00 F4 03 04 00 7B 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 24 02 00 35 04 06 00 10 00 00 39 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=10 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 02 02 05 B8 5F FC C9 83 [18:05:48]Write to MH i2c: E2 0D 00 30 0C 80 0D 02 02 05 00 B8 5F FC C9 83 00 00 1F [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 03 02 [18:05:48]Write to MH i2c: E2 08 00 31 0C 80 0D 03 02 00 00 00 00 B8 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 31 0C 00 33 8F 6E D4 6A 03 EE D5 90 00 ED [18:05:48]RAPDU: 33 8F 6E D4 6A 03 EE D5 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_SignData done [18:05:48]FM_MakeSignedData done [18:05:48]CreateOFDProtocolMessage [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 11 00 00 [18:05:48]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [18:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:48]wFMCommunicate OK [18:05:48]CreateOFDProtocolMessage done [18:05:48]OFDSenderStorePacket 140314 [18:05:48]StoreOFDPacket docnum=140314 [18:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 5B 07 01 CE 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4B 01 00 00 F4 03 04 00 7B 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 24 02 00 35 04 06 00 10 B8 5F FC C9 83 33 8F 6E D4 6A 03 EE D5 [18:05:48]CheckFolder [18:05:48]dirname=/storage/ofd_packets [18:05:48]CheckFolder done [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00140314 [18:05:48]NVStorageSaveData ofd_packets/00140314 [18:05:48]File name is /storage/ofd_packets/00140314 [18:05:48]Write 301 bytes [18:05:48]NVStorageSaveData done [18:05:48]OFDSenderStorePacket done [18:05:48]KKMCreateOFDPacket done [18:05:48]NVStorageSaveData kkm_last_timestamp [18:05:48]File name is /storage/kkm_last_timestamp [18:05:48]Write 4 bytes [18:05:48]NVStorageSaveData done [18:05:48]ExternCall_PrintAddStr [18:05:48]wPrintStart [18:05:48]Write to MH i2c: 01 00 00 33 0C 3F [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 FF 0F 54 [18:05:48]RasterBufferAndPrint [18:05:48]line Счет N : (1)594173 [18:05:48]line ИНН: 02508201610067 [18:05:48]line Контрольно-Кассовый Чек [18:05:48]line ПРОДАЖА [18:05:48]line ТРК (МРК, ГНК) : 32 [18:05:48]line Товар: 2710124130 [18:05:48]line Аи-92-К-5 [18:05:48]line 8.850 * 67.80 [18:05:48]line = 600.03 [18:05:48]line НДС 12% НСП 1% [18:05:48]line > о реализуемом товаре [18:05:48]line ОКРУГЛЕНИЕ: -0.03 [18:05:48]line ИТОГО: 600.00 [18:05:48]line Внесено: 600.00 [18:05:48]line СДАЧА: 0.00 [18:05:48]line НСП 1% : 5.31 [18:05:48]line НДС 12% : 63.72 [18:05:48]line Наличными: 600.00 [18:05:48]line Безнал.: 0.00 [18:05:48]line Место: АЗС № 136 "Партнер Нефть" [18:05:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:05:48]line СНО: Общий режим [18:05:48]line Чек 331 21.08.2024 18:05 [18:05:48]line Смена: 454 ФФД: 1.0 [18:05:48]line ЗНМ: 0300000067 [18:05:48]line РНМ: 0000000000092569 [18:05:48]line Версия ККМ: 001 [18:05:48]line ФМ: 0000000000871776 [18:05:48]line ФД: 140314 [18:05:48]line ФПД: 18384070429059 [18:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180547&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140314&fm=18384070429059&tin=02508201610067®Number=0000000000092569&sum=60000 [18:05:49]OFD Sender: Processing packet 140314 [packets to send 137, broken 136] [18:05:49]ProducePacketName [18:05:49]name=ofd_packets/00140314 [18:05:49]OFD Sender: To server: pG, [18:05:49]CommunicateWithHost lk.salyk.kg:30040 [18:05:49]ConnectInit lk.salyk.kg [18:05:49]written 0, free lines is 4095 [18:05:49]Connected sock=10 [18:05: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 37 36 0F 01 00 00 CC 5B 07 01 CE 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 4B 01 00 00 F4 03 04 00 7B 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1A 24 02 00 35 04 06 00 10 B8 5F FC C9 83 33 8F 6E D4 6A 03 EE D5 [18:05: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 37 36 4F 00 00 00 8F C9 47 00 49 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 37 36 10 04 04 00 1A 24 02 00 F4 03 04 00 0B D3 C5 66 B6 04 01 00 00 C2 CB 0C 71 4E 38 EE 25 [18:05:49]CommunicateWithHost err = 0 [18:05:49]CheckOFDResponse [18:05:49]1017 (14) - 77093643461234 [18:05:49]1041 (16) - 0000000000871776 [18:05:49]1040 (4) - 140314 [18:05:49]1012 (4) - 21.08.2024 11:44 [18:05:49]1206 (1) - 0 [18:05:49]OFD Sender: Remove packet 140314 [18:05:49]ProducePacketName [18:05:49]name=ofd_packets/00140314 [18:05:49]NVStorageDeleteData [18:05:49]Write to MH i2c: 01 00 00 5E 0C 6A [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 DD 0C 5A [18:05:49]RasterBufferAndPrint [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]written 0, free lines is 3299 [18:05:49]MH_Cut [18:05:49]Write to MH i2c: D1 01 00 65 0C 01 43 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 65 0C 00 42 [18:05:49]Write to MH i2c: 01 00 00 66 0C 72 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:50]OFD Sender: No OFD packet to send [18:05:50]*** Cut start [18:05:50]*** Partial cut [18:05:50]*** CUTSNS_PIN = 1 [18:05:50]*** CUTSNS_PIN = 0 [18:05:50]*** Brake cut motor [18:05:50]Read from MH i2c: 01 [18:05:50]MH_I2C_Read... [18:05:50]*** Stop cut motor [18:05:50]*** Cut end [18:05:50]Read from MH i2c: 01 07 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 07 00 66 0C 00 00 00 00 00 FF 0F 87 [18:05:50]process_action close_receipt done [18:05:50]requested_data is exist [18:05:50]produce_requested_data [18:05:50]requested_item fm.sn is exist - process it [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 11 00 00 [18:05:50]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [18:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:50]wFMCommunicate OK [18:05:50]requested_item fd.num is exist - process it [18:05:50]SAM_PROTO_GetFieldsCounters [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 13 00 00 [18:05:50]Write to MH i2c: E2 08 00 68 0C 80 13 00 00 00 00 00 00 F0 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 62 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 62 00 68 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 24 02 00 0E 04 04 00 C6 01 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 06 [18:05: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1A 24 02 00 0E 04 04 00 C6 01 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 [18:05:51]wFMCommunicate OK [18:05:51]SAM_PROTO_GetFieldsCounters done [18:05:51]requested_item shift.num is exist - process it [18:05:51]requested_item shift.opened is exist - process it [18:05:51]req_shift_opened [18:05:51]FM_GetShiftState [18:05:51]SAM_PROTO_GetShiftState [18:05:51]wFMCommunicate request_size=4 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 13 01 00 [18:05:51]Write to MH i2c: E2 08 00 69 0C 80 13 01 00 00 00 00 00 F2 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0E 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0E 00 69 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [18:05:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:51]wFMCommunicate OK [18:05:51]SAM_PROTO_GetShiftState done [18:05:51]FM_GetShiftState done [18:05:51]req_shift_opened done [18:05:51]requested_item shift.open_date is exist - process it [18:05:51]req_shift_open_date [18:05:51]req_shift_open_date done [18:05:51]produce_requested_data done [18:05:51]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140314,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:05:51]process_action_free close_receipt [18:05:51]json_value_free [18:05:51]json_value_free done [18:05:51]process_json_proto returns [18:05:51]Send response to host [18:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140314,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:05:51]free response buf [18:05:51]execute_script done [18:05:51]execute_script returns [18:05:51]free content buf [18:05:51]Sock 9.Close socket [18:05:51]Sock 9.Thread stoped [18:05:51]accept exits with 7 [18:05:51]New connection [18:05:51]New thread 3067612516 created [18:05:51]Thread 3067469156 joined [18:05:51]Waiting for new connection... [18:05:51] Sock 7.Parse request [18:05:51]Sock 7.Check first char [18:05:51]Sock 7.First char is OK [18:05:51]request: POST /json_proto HTTP/1.0 [18:05:51]Method: POST [18:05:51]URL: /json_proto [18:05:51]Method is POST - this is cgi request [18:05:51]url: /json_proto [18:05:51]query_string will be loaded in cgi processing [18:05:51]execute_cgi json_proto POST (null) [18:05:51]execute_cgi path=json_proto method=POST [18:05:51]POST find Content-Length [18:05:51]Host: 172.17.45.67:8080 [18:05:51]Content-Length: 677 [18:05:51]Content-Type: application/json [18:05:51] [18:05:51]POST finish read [18:05:51]Found Content-Length = 677 [18:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:51]execute_script... [18: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)594174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:51]POST & json_proto [18:05:51]process_json_proto [18:05:51]json parsed OK: [18:05:51]protocol is kg_v1.0 [18:05:51]action value=close_receipt [18:05:51]process_action close_receipt [18:05:51]cmd_close_receipt [18:05:51]MH_GetDate [18:05:51]Write to MH i2c: F0 00 00 6A 0C 65 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: F0 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: F0 09 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: F0 09 00 6A 0C 00 80 2C C6 66 5F 7F 2B 66 B5 [18:05:51]GetLastDocTimeStamp 1724263547 [18:05:51]current date 1724263552 [18:05:51]FM_GetShiftState [18:05:51]SAM_PROTO_GetShiftState [18:05:51]wFMCommunicate request_size=4 [18:05:51]MH_SAM_APDU [18:05:51]CAPDU: 80 13 01 00 [18:05:51]Write to MH i2c: E2 08 00 6B 0C 80 13 01 00 00 00 00 00 F4 [18:05:51]Write i2c OK [18:05:51]MH_I2C_Read... [18:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:51]Read from MH i2c: E2 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0E 00 [18:05:51]MH_I2C_Read... [18:05:51]Read from MH i2c: E2 0E 00 6B 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [18:05:51]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:51]wFMCommunicate OK [18:05:51]SAM_PROTO_GetShiftState done [18:05:51]FM_GetShiftState done [18:05:51]opened in 1724200467 [18:05:51]opened+sec_in_day 1724286867 [18:05:51]quantity*price = 30051 [18:05:51]sum+1 = 30052 [18:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 332 21.08.2024 18:05 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140315 ФПД: 151868850909424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140315&fm=151868850909424&tin=02508201610067®Number=0000000000092569&sum=30000 [18:05:53]StoreToDocumentArchive [18:05:53]shift 454 fd 140315 [18:05:53]save to /storage/0454/doc_00140315 [18:05:53]save last doc name /storage/0454/doc_00140315 to /storage/kkm_last_doc_name [18:05:53]save OK [18:05:53]Clear old archive folders... [18:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:53]tlvbuf is 00CCBCA0 [18:05:53]SAM_PROTO_ClearQueue [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 09 00 00 [18:05:53]Write to MH i2c: E2 08 00 78 0C 80 09 00 00 00 00 00 00 F6 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [18:05:53]RAPDU: 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_ClearQueue done [18:05:53]KKMCreateOFDPacket [18:05:53]OFDProtocolAddRootSTLVToBuf [18:05:53]FM_MakeSignedData [18:05:53]FM_MakeSignedData [18:05:53]SAM_PROTO_SignData [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 0D 01 02 [18:05:53]Write to MH i2c: E2 08 00 79 0C 80 0D 01 02 00 00 00 00 FE [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [18:05:53]RAPDU: 90 00 [18:05:53]wFMCommunicate OK [18:05:53]wFMCommunicate request_size=255 [18:05:53]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 80 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 24 02 00 35 04 06 00 8A [18:05:53]Write to MH i2c: E2 02 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 80 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 24 02 00 35 04 06 00 8A 00 00 76 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [18:05:53]RAPDU: 90 00 [18:05:53]wFMCommunicate OK [18:05:53]wFMCommunicate request_size=10 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 0D 02 02 05 1F B8 E9 30 F0 [18:05:53]Write to MH i2c: E2 0D 00 7B 0C 80 0D 02 02 05 00 1F B8 E9 30 F0 00 00 EB [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [18:05:53]RAPDU: 90 00 [18:05:53]wFMCommunicate OK [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 0D 03 02 [18:05:53]Write to MH i2c: E2 08 00 7C 0C 80 0D 03 02 00 00 00 00 03 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0B 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0B 00 7C 0C 00 EF 18 AF E8 23 51 E9 C8 90 00 C7 [18:05:53]RAPDU: EF 18 AF E8 23 51 E9 C8 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_SignData done [18:05:53]FM_MakeSignedData done [18:05:53]CreateOFDProtocolMessage [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 11 00 00 [18:05:53]Write to MH i2c: E2 08 00 7D 0C 80 11 00 00 00 00 00 00 03 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 7D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [18:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:53]wFMCommunicate OK [18:05:53]CreateOFDProtocolMessage done [18:05:53]OFDSenderStorePacket 140315 [18:05:53]StoreOFDPacket docnum=140315 [18:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 82 40 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 80 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 24 02 00 35 04 06 00 8A 1F B8 E9 30 F0 EF 18 AF E8 23 51 E9 C8 [18:05:53]CheckFolder [18:05:53]dirname=/storage/ofd_packets [18:05:53]CheckFolder done [18:05:53]ProducePacketName [18:05:53]name=ofd_packets/00140315 [18:05:53]NVStorageSaveData ofd_packets/00140315 [18:05:53]File name is /storage/ofd_packets/00140315 [18:05:53]Write 301 bytes [18:05:53]NVStorageSaveData done [18:05:53]OFDSenderStorePacket done [18:05:53]KKMCreateOFDPacket done [18:05:53]NVStorageSaveData kkm_last_timestamp [18:05:53]File name is /storage/kkm_last_timestamp [18:05:53]Write 4 bytes [18:05:53]NVStorageSaveData done [18:05:53]ExternCall_PrintAddStr [18:05:53]wPrintStart [18:05:53]Write to MH i2c: 01 00 00 7E 0C 8A [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: 01 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: 01 07 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [18:05:53]RasterBufferAndPrint [18:05:53]line Счет N : (1)594174 [18:05:53]line ИНН: 02508201610067 [18:05:53]line Контрольно-Кассовый Чек [18:05:53]line ПРОДАЖА [18:05:53]line ТРК (МРК, ГНК) : 41 [18:05:53]line Товар: 2710124500 [18:05:53]line Аи-95-К-5 [18:05:53]line 4.050 * 74.20 [18:05:53]line = 300.51 [18:05:53]line НДС 12% НСП 1% [18:05:53]line > о реализуемом товаре [18:05:53]line ОКРУГЛЕНИЕ: -0.51 [18:05:53]line ИТОГО: 300.00 [18:05:53]line Внесено: 300.00 [18:05:53]OFD Sender: Processing packet 140315 [packets to send 137, broken 136] [18:05:53]ProducePacketName [18:05:53]name=ofd_packets/00140315 [18:05:53]OFD Sender: To server: pG, [18:05:53]CommunicateWithHost lk.salyk.kg:30040 [18:05:53]ConnectInit lk.salyk.kg [18:05:53]line СДАЧА: 0.00 [18:05:53]line НСП 1% : 2.66 [18:05:53]line НДС 12% : 31.91 [18:05:53]line Наличными: 300.00 [18:05:53]line Безнал.: 0.00 [18:05:53]line Место: АЗС № 136 "Партнер Нефть" [18:05:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:05:53]line СНО: Общий режим [18:05:53]line Чек 332 21.08.2024 18:05 [18:05:53]line Смена: 454 ФФД: 1.0 [18:05:53]line ЗНМ: 0300000067 [18:05:53]line РНМ: 0000000000092569 [18:05:53]line Версия ККМ: 001 [18:05:53]line ФМ: 0000000000871776 [18:05:53]line ФД: 140315 [18:05:53]line ФПД: 151868850909424 [18:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180552&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140315&fm=151868850909424&tin=02508201610067®Number=0000000000092569&sum=30000 [18:05:53]written 0, free lines is 4095 [18:05:53]Connected sock=10 [18: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 37 36 0F 01 00 00 82 40 07 01 1A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 80 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 24 02 00 35 04 06 00 8A 1F B8 E9 30 F0 EF 18 AF E8 23 51 E9 C8 [18: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 37 36 4F 00 00 00 C6 A4 47 00 B0 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1B 24 02 00 F4 03 04 00 10 D3 C5 66 B6 04 01 00 00 CD E2 5F F8 EE 52 A6 AE [18:05:54]CommunicateWithHost err = 0 [18:05:54]CheckOFDResponse [18:05:54]1017 (14) - 77093643461234 [18:05:54]1041 (16) - 0000000000871776 [18:05:54]1040 (4) - 140315 [18:05:54]1012 (4) - 21.08.2024 11:44 [18:05:54]1206 (1) - 0 [18:05:54]OFD Sender: Remove packet 140315 [18:05:54]ProducePacketName [18:05:54]name=ofd_packets/00140315 [18:05:54]NVStorageDeleteData [18:05:54]Write to MH i2c: 01 00 00 A9 0C B5 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: 01 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: 01 07 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 E0 0C A8 [18:05:54]RasterBufferAndPrint [18:05:54]line [18:05:54]line [18:05:54]line [18:05:54]line [18:05:54]line [18:05:54]written 0, free lines is 3308 [18:05:54]MH_Cut [18:05:54]Write to MH i2c: D1 01 00 B0 0C 01 8E [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: D1 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: D1 01 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: D1 01 00 B0 0C 00 8D [18:05:54]Write to MH i2c: 01 00 00 B1 0C BD [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]OFD Sender: No OFD packet to send [18:05:54]*** Cut start [18:05:54]*** Partial cut [18:05:54]*** CUTSNS_PIN = 1 [18:05:54]*** CUTSNS_PIN = 0 [18:05:55]*** Brake cut motor [18:05:55]Read from MH i2c: 01 [18:05:55]MH_I2C_Read... [18:05:55]*** Stop cut motor [18:05:55]*** Cut end [18:05:55]Read from MH i2c: 01 07 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [18:05:55]process_action close_receipt done [18:05:55]requested_data is exist [18:05:55]produce_requested_data [18:05:55]requested_item fm.sn is exist - process it [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 11 00 00 [18:05:55]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 17 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [18:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:05:55]wFMCommunicate OK [18:05:55]requested_item fd.num is exist - process it [18:05:55]SAM_PROTO_GetFieldsCounters [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 13 00 00 [18:05:55]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 62 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 62 00 B3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 24 02 00 0E 04 04 00 C6 01 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 55 [18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1B 24 02 00 0E 04 04 00 C6 01 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 [18:05:55]wFMCommunicate OK [18:05:55]SAM_PROTO_GetFieldsCounters done [18:05:55]requested_item shift.num is exist - process it [18:05:55]requested_item shift.opened is exist - process it [18:05:55]req_shift_opened [18:05:55]FM_GetShiftState [18:05:55]SAM_PROTO_GetShiftState [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 13 01 00 [18:05:55]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 0E 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [18:05:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:05:55]wFMCommunicate OK [18:05:55]SAM_PROTO_GetShiftState done [18:05:55]FM_GetShiftState done [18:05:55]req_shift_opened done [18:05:55]requested_item shift.open_date is exist - process it [18:05:55]req_shift_open_date [18:05:55]req_shift_open_date done [18:05:55]produce_requested_data done [18:05:55]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140315,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:05:55]process_action_free close_receipt [18:05:55]json_value_free [18:05:55]json_value_free done [18:05:55]process_json_proto returns [18:05:55]Send response to host [18:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140315,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:05:55]free response buf [18:05:55]execute_script done [18:05:55]execute_script returns [18:05:55]free content buf [18:05:55]Sock 7.Close socket [18:05:55]Sock 7.Thread stoped [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:13]accept exits with 9 [18:06:13]New connection [18:06:13]New thread 3067469156 created [18:06:13]Thread 3067612516 joined [18:06:13]Waiting for new connection... [18:06:13] Sock 9.Parse request [18:06:13]Sock 9.Check first char [18:06:13]Sock 9.First char is OK [18:06:13]request: POST /json_proto HTTP/1.0 [18:06:13]Method: POST [18:06:13]URL: /json_proto [18:06:13]Method is POST - this is cgi request [18:06:13]url: /json_proto [18:06:13]query_string will be loaded in cgi processing [18:06:13]execute_cgi json_proto POST (null) [18:06:13]execute_cgi path=json_proto method=POST [18:06:13]POST find Content-Length [18:06:13]Host: 172.17.45.67:8080 [18:06:13]Content-Length: 754 [18:06:13]Content-Type: application/json [18:06:13] [18:06:13]POST finish read [18:06:13]Found Content-Length = 754 [18:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 39.820, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042586", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:13]execute_script... [18:06: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)594171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 39.820, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30042586", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:13]POST & json_proto [18:06:13]process_json_proto [18:06:13]json parsed OK: [18:06:13]protocol is kg_v1.0 [18:06:13]action value=close_receipt [18:06:13]process_action close_receipt [18:06:13]cmd_close_receipt [18:06:13]MH_GetDate [18:06:13]Write to MH i2c: F0 00 00 B5 0C B0 [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: F0 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: F0 09 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: F0 09 00 B5 0C 00 96 2C C6 66 5F 7F 2B 66 16 [18:06:13]GetLastDocTimeStamp 1724263552 [18:06:13]current date 1724263574 [18:06:13]FM_GetShiftState [18:06:13]SAM_PROTO_GetShiftState [18:06:13]wFMCommunicate request_size=4 [18:06:13]MH_SAM_APDU [18:06:13]CAPDU: 80 13 01 00 [18:06:13]Write to MH i2c: E2 08 00 B6 0C 80 13 01 00 00 00 00 00 3F [18:06:13]Write i2c OK [18:06:13]MH_I2C_Read... [18:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:13]Read from MH i2c: E2 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 0E 00 [18:06:13]MH_I2C_Read... [18:06:13]Read from MH i2c: E2 0E 00 B6 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BF [18:06:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:06:13]wFMCommunicate OK [18:06:13]SAM_PROTO_GetShiftState done [18:06:13]FM_GetShiftState done [18:06:13]opened in 1724200467 [18:06:13]opened+sec_in_day 1724286867 [18:06:13]quantity*price = 0 [18:06:13]sum+1 = 1 [18:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 333 21.08.2024 18:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30042586 ФМ: 0000000000871776 ФД: 140316 ФПД: 100411934222205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180614&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140316&fm=100411934222205&tin=02508201610067®Number=0000000000092569&sum=0 [18:06:14]StoreToDocumentArchive [18:06:14]shift 454 fd 140316 [18:06:14]save to /storage/0454/doc_00140316 [18:06:14]save last doc name /storage/0454/doc_00140316 to /storage/kkm_last_doc_name [18:06:14]save OK [18:06:14]Clear old archive folders... [18:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:14]tlvbuf is 00CB89F0 [18:06:14]SAM_PROTO_ClearQueue [18:06:14]wFMCommunicate request_size=4 [18:06:14]MH_SAM_APDU [18:06:14]CAPDU: 80 09 00 00 [18:06:14]Write to MH i2c: E2 08 00 C3 0C 80 09 00 00 00 00 00 00 41 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:14]Read from MH i2c: E2 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 03 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [18:06:14]RAPDU: 90 00 [18:06:14]wFMCommunicate OK [18:06:14]SAM_PROTO_ClearQueue done [18:06:14]KKMCreateOFDPacket [18:06:14]OFDProtocolAddRootSTLVToBuf [18:06:14]FM_MakeSignedData [18:06:14]FM_MakeSignedData [18:06:14]SAM_PROTO_SignData [18:06:14]wFMCommunicate request_size=4 [18:06:14]MH_SAM_APDU [18:06:14]CAPDU: 80 0D 01 02 [18:06:14]Write to MH i2c: E2 08 00 C4 0C 80 0D 01 02 00 00 00 00 49 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:14]Read from MH i2c: E2 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 03 00 [18:06:14]MH_I2C_Read... [18:06:14]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [18:06:14]RAPDU: 90 00 [18:06:14]wFMCommunicate OK [18:06:14]wFMCommunicate request_size=255 [18:06:14]MH_SAM_APDU [18:06: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 8C 9B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 96 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 24 02 00 35 04 06 00 5B [18:06:14]Write to MH i2c: E2 02 01 C5 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 9B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 96 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 24 02 00 35 04 06 00 5B 00 00 24 [18:06:14]Write i2c OK [18:06:14]MH_I2C_Read... [18:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:15]Read from MH i2c: E2 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 03 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [18:06:15]RAPDU: 90 00 [18:06:15]wFMCommunicate OK [18:06:15]wFMCommunicate request_size=10 [18:06:15]MH_SAM_APDU [18:06:15]CAPDU: 80 0D 02 02 05 52 F9 AB A7 7D [18:06:15]Write to MH i2c: E2 0D 00 C6 0C 80 0D 02 02 05 00 52 F9 AB A7 7D 00 00 70 [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:15]Read from MH i2c: E2 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 03 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [18:06:15]RAPDU: 90 00 [18:06:15]wFMCommunicate OK [18:06:15]wFMCommunicate request_size=4 [18:06:15]MH_SAM_APDU [18:06:15]CAPDU: 80 0D 03 02 [18:06:15]Write to MH i2c: E2 08 00 C7 0C 80 0D 03 02 00 00 00 00 4E [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:15]Read from MH i2c: E2 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 0B 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 0B 00 C7 0C 00 89 70 B2 95 72 3D A9 09 90 00 F0 [18:06:15]RAPDU: 89 70 B2 95 72 3D A9 09 90 00 [18:06:15]wFMCommunicate OK [18:06:15]SAM_PROTO_SignData done [18:06:15]FM_MakeSignedData done [18:06:15]CreateOFDProtocolMessage [18:06:15]wFMCommunicate request_size=4 [18:06:15]MH_SAM_APDU [18:06:15]CAPDU: 80 11 00 00 [18:06:15]Write to MH i2c: E2 08 00 C8 0C 80 11 00 00 00 00 00 00 4E [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:15]Read from MH i2c: E2 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 17 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: E2 17 00 C8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [18:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:06:15]wFMCommunicate OK [18:06:15]CreateOFDProtocolMessage done [18:06:15]OFDSenderStorePacket 140316 [18:06:15]StoreOFDPacket docnum=140316 [18:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 11 07 01 2F 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 8C 9B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 96 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 24 02 00 35 04 06 00 5B 52 F9 AB A7 7D 89 70 B2 95 72 3D A9 09 [18:06:15]CheckFolder [18:06:15]dirname=/storage/ofd_packets [18:06:15]CheckFolder done [18:06:15]ProducePacketName [18:06:15]name=ofd_packets/00140316 [18:06:15]NVStorageSaveData ofd_packets/00140316 [18:06:15]File name is /storage/ofd_packets/00140316 [18:06:15]Write 301 bytes [18:06:15]NVStorageSaveData done [18:06:15]OFDSenderStorePacket done [18:06:15]KKMCreateOFDPacket done [18:06:15]NVStorageSaveData kkm_last_timestamp [18:06:15]File name is /storage/kkm_last_timestamp [18:06:15]Write 4 bytes [18:06:15]NVStorageSaveData done [18:06:15]ExternCall_PrintAddStr [18:06:15]wPrintStart [18:06:15]Write to MH i2c: 01 00 00 C9 0C D5 [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 07 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 FF 0F EA [18:06:15]RasterBufferAndPrint [18:06:15]line Счет N : (1)594171 [18:06:15]line ИНН: 02508201610067 [18:06:15]line Контрольно-Кассовый Чек [18:06:15]line ПРОДАЖА [18:06:15]line ТРК (МРК, ГНК) : 62 [18:06:15]line Товар: 2710124130 [18:06:15]line Аи-92-К-5 [18:06:15]line 39.820 * 0.00 [18:06:15]line = 0.00 [18:06:15]line НДС 12% НСП 1% [18:06:15]line > о реализуемом товаре [18:06:15]line ИТОГО: 0.00 [18:06:15]line НСП 1% : 0.00 [18:06:15]line НДС 12% : 0.00 [18:06:15]line Наличными: 0.00 [18:06:15]line Безнал.: 0.00 [18:06:15]line Место: АЗС № 136 "Партнер Нефть" [18:06:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:06:15]line СНО: Общий режим [18:06:15]line Чек 333 21.08.2024 18:06 [18:06:15]line Смена: 454 ФФД: 1.0 [18:06:15]line ЗНМ: 0300000067 [18:06:15]line РНМ: 0000000000092569 [18:06:15]line Версия ККМ: 001 [18:06:15]line Талоны: ТК ГПНА Online [18:06:15]line 30042586 [18:06:15]line ФМ: 0000000000871776 [18:06:15]line ФД: 140316 [18:06:15]line ФПД: 100411934222205 [18:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180614&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140316&fm=100411934222205&tin=02508201610067®Number=0000000000092569&sum=0 [18:06:15]written 0, free lines is 4095 [18:06:15]OFD Sender: Processing packet 140316 [packets to send 137, broken 136] [18:06:15]ProducePacketName [18:06:15]name=ofd_packets/00140316 [18:06:15]OFD Sender: To server: pG, [18:06:15]CommunicateWithHost lk.salyk.kg:30040 [18:06:15]ConnectInit lk.salyk.kg [18:06:15]Connected sock=10 [18:06: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 37 36 0F 01 00 00 A1 11 07 01 2F 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 8C 9B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 96 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1C 24 02 00 35 04 06 00 5B 52 F9 AB A7 7D 89 70 B2 95 72 3D A9 09 [18:06:15]Write to MH i2c: 01 00 00 F3 0C FF [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 07 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 FB 0C 0D [18:06:15]RasterBufferAndPrint [18:06:15]line [18:06:15]line [18:06:15]line [18:06:15]line [18:06:15]line [18:06:15]written 0, free lines is 3333 [18:06: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 37 36 4F 00 00 00 32 0C 47 00 60 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 37 36 10 04 04 00 1C 24 02 00 F4 03 04 00 26 D3 C5 66 B6 04 01 00 00 3E 80 23 29 A2 19 B3 C3 [18:06:15]CommunicateWithHost err = 0 [18:06:15]CheckOFDResponse [18:06:15]1017 (14) - 77093643461234 [18:06:15]1041 (16) - 0000000000871776 [18:06:15]1040 (4) - 140316 [18:06:15]1012 (4) - 21.08.2024 11:44 [18:06:15]1206 (1) - 0 [18:06:15]OFD Sender: Remove packet 140316 [18:06:15]ProducePacketName [18:06:15]name=ofd_packets/00140316 [18:06:15]NVStorageDeleteData [18:06:15]MH_Cut [18:06:15]Write to MH i2c: D1 01 00 FA 0C 01 D8 [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: D1 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: D1 01 00 [18:06:15]MH_I2C_Read... [18:06:15]Read from MH i2c: D1 01 00 FA 0C 00 D7 [18:06:15]Write to MH i2c: 01 00 00 FB 0C 07 [18:06:15]Write i2c OK [18:06:15]MH_I2C_Read... [18:06:16]OFD Sender: No OFD packet to send [18:06:16]*** Cut start [18:06:16]*** Partial cut [18:06:16]*** CUTSNS_PIN = 1 [18:06:16]*** CUTSNS_PIN = 0 [18:06:16]*** Brake cut motor [18:06:17]Read from MH i2c: 01 [18:06:17]MH_I2C_Read... [18:06:17]*** Stop cut motor [18:06:17]*** Cut end [18:06:17]Read from MH i2c: 01 07 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [18:06:17]process_action close_receipt done [18:06:17]requested_data is exist [18:06:17]produce_requested_data [18:06:17]requested_item fm.sn is exist - process it [18:06:17]wFMCommunicate request_size=4 [18:06:17]MH_SAM_APDU [18:06:17]CAPDU: 80 11 00 00 [18:06:17]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:17]Read from MH i2c: E2 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 17 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D9 [18:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:06:17]wFMCommunicate OK [18:06:17]requested_item fd.num is exist - process it [18:06:17]SAM_PROTO_GetFieldsCounters [18:06:17]wFMCommunicate request_size=4 [18:06:17]MH_SAM_APDU [18:06:17]CAPDU: 80 13 00 00 [18:06:17]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:17]Read from MH i2c: E2 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 62 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 62 00 FD 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 24 02 00 0E 04 04 00 C6 01 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 A3 [18:06: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1C 24 02 00 0E 04 04 00 C6 01 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 [18:06:17]wFMCommunicate OK [18:06:17]SAM_PROTO_GetFieldsCounters done [18:06:17]requested_item shift.num is exist - process it [18:06:17]requested_item shift.opened is exist - process it [18:06:17]req_shift_opened [18:06:17]FM_GetShiftState [18:06:17]SAM_PROTO_GetShiftState [18:06:17]wFMCommunicate request_size=4 [18:06:17]MH_SAM_APDU [18:06:17]CAPDU: 80 13 01 00 [18:06:17]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:17]int [18:06:17]*** FLAG_PRN_KEY set [18:06:17]Read from MH i2c: E2 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 0E 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [18:06:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:06:17]wFMCommunicate OK [18:06:17]SAM_PROTO_GetShiftState done [18:06:17]FM_GetShiftState done [18:06:17]req_shift_opened done [18:06:17]requested_item shift.open_date is exist - process it [18:06:17]req_shift_open_date [18:06:17]req_shift_open_date done [18:06:17]produce_requested_data done [18:06:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140316,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:06:17]process_action_free close_receipt [18:06:17]json_value_free [18:06:17]json_value_free done [18:06:17]process_json_proto returns [18:06:17]Send response to host [18:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140316,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:06:17]free response buf [18:06:17]execute_script done [18:06:17]execute_script returns [18:06:17]free content buf [18:06:17]Sock 9.Close socket [18:06:17]Sock 9.Thread stoped [18:06:17]Write to MH i2c: 01 00 00 FF 0C 0B [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 FF 0C 00 08 00 00 00 FF 0F 28 [18:06:17]state=0 [18:06:17]Key pressed [18:06:17]Feed [18:06:17]Write to MH i2c: D8 00 00 00 0D E4 [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: D8 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: D8 01 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: D8 01 00 00 0D 00 E5 [18:06:17]int [18:06:17]Write to MH i2c: 01 00 00 01 0D 0E [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 01 0D 00 48 00 00 00 3C 00 99 [18:06:17]state=2 [18:06:17]Key pressed [18:06:17]int [18:06:17]Write to MH i2c: 01 00 00 02 0D 0F [18:06:17]*** FLAG_PRN_KEY reset [18:06:17]Write i2c OK [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 [18:06:17]MH_I2C_Read... [18:06:17]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 FD 0F 22 [18:06:17]state=2 [18:06:17]Stop feed [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:48]accept exits with 7 [18:07:48]New connection [18:07:48]New thread 3067612516 created [18:07:48]Thread 3067469156 joined [18:07:48]Waiting for new connection... [18:07:48] Sock 7.Parse request [18:07:48]Sock 7.Check first char [18:07:48]Sock 7.First char is OK [18:07:48]request: POST /json_proto HTTP/1.0 [18:07:48]Method: POST [18:07:48]URL: /json_proto [18:07:48]Method is POST - this is cgi request [18:07:48]url: /json_proto [18:07:48]query_string will be loaded in cgi processing [18:07:48]execute_cgi json_proto POST (null) [18:07:48]execute_cgi path=json_proto method=POST [18:07:48]POST find Content-Length [18:07:48]Host: 172.17.45.67:8080 [18:07:48]Content-Length: 682 [18:07:48]Content-Type: application/json [18:07:48] [18:07:48]POST finish read [18:07:48]Found Content-Length = 682 [18:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:48]execute_script... [18:07: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)594175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:48]POST & json_proto [18:07:48]process_json_proto [18:07:48]json parsed OK: [18:07:48]protocol is kg_v1.0 [18:07:48]action value=close_receipt [18:07:48]process_action close_receipt [18:07:48]cmd_close_receipt [18:07:48]MH_GetDate [18:07:48]Write to MH i2c: F0 00 00 03 0D FF [18:07:48]Write i2c OK [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: F0 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: F0 09 00 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: F0 09 00 03 0D 00 F5 2C C6 66 5F 7F 2B 66 C4 [18:07:48]GetLastDocTimeStamp 1724263574 [18:07:48]current date 1724263669 [18:07:48]FM_GetShiftState [18:07:48]SAM_PROTO_GetShiftState [18:07:48]wFMCommunicate request_size=4 [18:07:48]MH_SAM_APDU [18:07:48]CAPDU: 80 13 01 00 [18:07:48]Write to MH i2c: E2 08 00 04 0D 80 13 01 00 00 00 00 00 8E [18:07:48]Write i2c OK [18:07:48]MH_I2C_Read... [18:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:48]Read from MH i2c: E2 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: E2 0E 00 [18:07:48]MH_I2C_Read... [18:07:48]Read from MH i2c: E2 0E 00 04 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0E [18:07:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:07:48]wFMCommunicate OK [18:07:48]SAM_PROTO_GetShiftState done [18:07:48]FM_GetShiftState done [18:07:48]opened in 1724200467 [18:07:48]opened+sec_in_day 1724286867 [18:07:48]quantity*price = 100005 [18:07:48]sum+1 = 100006 [18:07:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 334 21.08.2024 18:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140317 ФПД: 39155244320396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140317&fm=39155244320396&tin=02508201610067®Number=0000000000092569&sum=100000 [18:07:49]StoreToDocumentArchive [18:07:49]shift 454 fd 140317 [18:07:49]save to /storage/0454/doc_00140317 [18:07:49]save last doc name /storage/0454/doc_00140317 to /storage/kkm_last_doc_name [18:07:49]save OK [18:07:49]Clear old archive folders... [18:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:49]tlvbuf is 00CB82F0 [18:07:49]SAM_PROTO_ClearQueue [18:07:49]wFMCommunicate request_size=4 [18:07:49]MH_SAM_APDU [18:07:49]CAPDU: 80 09 00 00 [18:07:49]Write to MH i2c: E2 08 00 11 0D 80 09 00 00 00 00 00 00 90 [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:49]Read from MH i2c: E2 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 03 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [18:07:49]RAPDU: 90 00 [18:07:49]wFMCommunicate OK [18:07:49]SAM_PROTO_ClearQueue done [18:07:49]KKMCreateOFDPacket [18:07:49]OFDProtocolAddRootSTLVToBuf [18:07:49]FM_MakeSignedData [18:07:49]FM_MakeSignedData [18:07:49]SAM_PROTO_SignData [18:07:49]wFMCommunicate request_size=4 [18:07:49]MH_SAM_APDU [18:07:49]CAPDU: 80 0D 01 02 [18:07:49]Write to MH i2c: E2 08 00 12 0D 80 0D 01 02 00 00 00 00 98 [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:49]Read from MH i2c: E2 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 03 00 [18:07:49]MH_I2C_Read... [18:07:49]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [18:07:49]RAPDU: 90 00 [18:07:49]wFMCommunicate OK [18:07:49]wFMCommunicate request_size=255 [18:07:49]MH_SAM_APDU [18:07: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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F5 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 24 02 00 35 04 06 00 23 [18:07:49]Write to MH i2c: E2 02 01 13 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F5 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 24 02 00 35 04 06 00 23 00 00 79 [18:07:49]Write i2c OK [18:07:49]MH_I2C_Read... [18:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:50]Read from MH i2c: E2 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 03 00 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [18:07:50]RAPDU: 90 00 [18:07:50]wFMCommunicate OK [18:07:50]wFMCommunicate request_size=10 [18:07:50]MH_SAM_APDU [18:07:50]CAPDU: 80 0D 02 02 05 9C 8A 6D C6 8C [18:07:50]Write to MH i2c: E2 0D 00 14 0D 80 0D 02 02 05 00 9C 8A 6D C6 8C 00 00 8A [18:07:50]Write i2c OK [18:07:50]MH_I2C_Read... [18:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:50]Read from MH i2c: E2 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 03 00 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [18:07:50]RAPDU: 90 00 [18:07:50]wFMCommunicate OK [18:07:50]wFMCommunicate request_size=4 [18:07:50]MH_SAM_APDU [18:07:50]CAPDU: 80 0D 03 02 [18:07:50]Write to MH i2c: E2 08 00 15 0D 80 0D 03 02 00 00 00 00 9D [18:07:50]Write i2c OK [18:07:50]MH_I2C_Read... [18:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:50]Read from MH i2c: E2 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 0B 00 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 0B 00 15 0D 00 8B 43 11 C8 CB 05 81 21 90 00 B7 [18:07:50]RAPDU: 8B 43 11 C8 CB 05 81 21 90 00 [18:07:50]wFMCommunicate OK [18:07:50]SAM_PROTO_SignData done [18:07:50]FM_MakeSignedData done [18:07:50]CreateOFDProtocolMessage [18:07:50]wFMCommunicate request_size=4 [18:07:50]MH_SAM_APDU [18:07:50]CAPDU: 80 11 00 00 [18:07:50]Write to MH i2c: E2 08 00 16 0D 80 11 00 00 00 00 00 00 9D [18:07:50]Write i2c OK [18:07:50]MH_I2C_Read... [18:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:50]Read from MH i2c: E2 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 17 00 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: E2 17 00 16 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F4 [18:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:07:50]wFMCommunicate OK [18:07:50]CreateOFDProtocolMessage done [18:07:50]OFDSenderStorePacket 140317 [18:07:50]StoreOFDPacket docnum=140317 [18:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FB E1 07 01 81 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F5 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 24 02 00 35 04 06 00 23 9C 8A 6D C6 8C 8B 43 11 C8 CB 05 81 21 [18:07:50]CheckFolder [18:07:50]dirname=/storage/ofd_packets [18:07:50]CheckFolder done [18:07:50]ProducePacketName [18:07:50]name=ofd_packets/00140317 [18:07:50]NVStorageSaveData ofd_packets/00140317 [18:07:50]File name is /storage/ofd_packets/00140317 [18:07:50]Write 301 bytes [18:07:50]NVStorageSaveData done [18:07:50]OFDSenderStorePacket done [18:07:50]KKMCreateOFDPacket done [18:07:50]NVStorageSaveData kkm_last_timestamp [18:07:50]File name is /storage/kkm_last_timestamp [18:07:50]Write 4 bytes [18:07:50]NVStorageSaveData done [18:07:50]ExternCall_PrintAddStr [18:07:50]wPrintStart [18:07:50]Write to MH i2c: 01 00 00 17 0D 24 [18:07:50]Write i2c OK [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: 01 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: 01 07 00 [18:07:50]MH_I2C_Read... [18:07:50]Read from MH i2c: 01 07 00 17 0D 00 00 00 00 00 FF 0F 39 [18:07:50]RasterBufferAndPrint [18:07:50]line Счет N : (1)594175 [18:07:50]line ИНН: 02508201610067 [18:07:50]line Контрольно-Кассовый Чек [18:07:50]line ПРОДАЖА [18:07:50]line ТРК (МРК, ГНК) : 52 [18:07:50]line Товар: 2710124130 [18:07:50]line Аи-92-К-5 [18:07:50]line 14.750 * 67.80 [18:07:50]line = 1000.05 [18:07:50]line НДС 12% НСП 1% [18:07:50]line > о реализуемом товаре [18:07:50]line ОКРУГЛЕНИЕ: -0.05 [18:07:50]line ИТОГО: 1000.00 [18:07:50]line Внесено: 1000.00 [18:07:50]line СДАЧА: 0.00 [18:07:50]line НСП 1% : 8.85 [18:07:50]line НДС 12% : 106.20 [18:07:50]line Наличными: 1000.00 [18:07:50]line Безнал.: 0.00 [18:07:50]line Место: АЗС № 136 "Партнер Нефть" [18:07:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:07:50]line СНО: Общий режим [18:07:50]line Чек 334 21.08.2024 18:07 [18:07:50]line Смена: 454 ФФД: 1.0 [18:07:50]line ЗНМ: 0300000067 [18:07:50]line РНМ: 0000000000092569 [18:07:50]line Версия ККМ: 001 [18:07:50]line ФМ: 0000000000871776 [18:07:50]line ФД: 140317 [18:07:50]line ФПД: 39155244320396 [18:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180749&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140317&fm=39155244320396&tin=02508201610067®Number=0000000000092569&sum=100000 [18:07:50]written 0, free lines is 4095 [18:07:50]OFD Sender: Processing packet 140317 [packets to send 137, broken 136] [18:07:50]ProducePacketName [18:07:50]name=ofd_packets/00140317 [18:07:50]OFD Sender: To server: pG, [18:07:50]CommunicateWithHost lk.salyk.kg:30040 [18:07:50]ConnectInit lk.salyk.kg [18:07:50]Connected sock=10 [18:07: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 37 36 0F 01 00 00 FB E1 07 01 81 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F5 2C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1D 24 02 00 35 04 06 00 23 9C 8A 6D C6 8C 8B 43 11 C8 CB 05 81 21 [18:07: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 37 36 4F 00 00 00 71 16 47 00 24 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 37 36 10 04 04 00 1D 24 02 00 F4 03 04 00 85 D3 C5 66 B6 04 01 00 00 8B C1 05 97 D7 E1 8E E6 [18:07:50]CommunicateWithHost err = 0 [18:07:50]CheckOFDResponse [18:07:50]1017 (14) - 77093643461234 [18:07:50]1041 (16) - 0000000000871776 [18:07:50]1040 (4) - 140317 [18:07:50]1012 (4) - 21.08.2024 11:46 [18:07:50]1206 (1) - 0 [18:07:50]OFD Sender: Remove packet 140317 [18:07:50]ProducePacketName [18:07:50]name=ofd_packets/00140317 [18:07:50]NVStorageDeleteData [18:07:51]Write to MH i2c: 01 00 00 42 0D 4F [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 07 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 DD 0C 3F [18:07:51]RasterBufferAndPrint [18:07:51]line [18:07:51]line [18:07:51]line [18:07:51]line [18:07:51]line [18:07:51]written 0, free lines is 3299 [18:07:51]MH_Cut [18:07:51]Write to MH i2c: D1 01 00 49 0D 01 28 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: D1 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: D1 01 00 [18:07:51]MH_I2C_Read... [18:07:51]Read from MH i2c: D1 01 00 49 0D 00 27 [18:07:51]Write to MH i2c: 01 00 00 4A 0D 57 [18:07:51]Write i2c OK [18:07:51]MH_I2C_Read... [18:07:51]OFD Sender: No OFD packet to send [18:07:51]*** Cut start [18:07:51]*** Partial cut [18:07:51]*** CUTSNS_PIN = 1 [18:07:51]*** CUTSNS_PIN = 0 [18:07:51]*** Brake cut motor [18:07:52]Read from MH i2c: 01 [18:07:52]MH_I2C_Read... [18:07:52]*** Stop cut motor [18:07:52]*** Cut end [18:07:52]Read from MH i2c: 01 07 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 FF 0F 6C [18:07:52]process_action close_receipt done [18:07:52]requested_data is exist [18:07:52]produce_requested_data [18:07:52]requested_item fm.sn is exist - process it [18:07:52]wFMCommunicate request_size=4 [18:07:52]MH_SAM_APDU [18:07:52]CAPDU: 80 11 00 00 [18:07:52]Write to MH i2c: E2 08 00 4B 0D 80 11 00 00 00 00 00 00 D2 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:52]Read from MH i2c: E2 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 17 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 17 00 4B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 29 [18:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:07:52]wFMCommunicate OK [18:07:52]requested_item fd.num is exist - process it [18:07:52]SAM_PROTO_GetFieldsCounters [18:07:52]wFMCommunicate request_size=4 [18:07:52]MH_SAM_APDU [18:07:52]CAPDU: 80 13 00 00 [18:07:52]Write to MH i2c: E2 08 00 4C 0D 80 13 00 00 00 00 00 00 D5 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:52]Read from MH i2c: E2 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 62 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 62 00 4C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 24 02 00 0E 04 04 00 C6 01 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 F7 [18:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1D 24 02 00 0E 04 04 00 C6 01 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 [18:07:52]wFMCommunicate OK [18:07:52]SAM_PROTO_GetFieldsCounters done [18:07:52]requested_item shift.num is exist - process it [18:07:52]requested_item shift.opened is exist - process it [18:07:52]req_shift_opened [18:07:52]FM_GetShiftState [18:07:52]SAM_PROTO_GetShiftState [18:07:52]wFMCommunicate request_size=4 [18:07:52]MH_SAM_APDU [18:07:52]CAPDU: 80 13 01 00 [18:07:52]Write to MH i2c: E2 08 00 4D 0D 80 13 01 00 00 00 00 00 D7 [18:07:52]Write i2c OK [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 [18:07:52]MH_I2C_Read... [18:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:52]Read from MH i2c: E2 0E 00 [18:07:52]MH_I2C_Read... [18:07:52]Read from MH i2c: E2 0E 00 4D 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 57 [18:07:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:07:52]wFMCommunicate OK [18:07:52]SAM_PROTO_GetShiftState done [18:07:52]FM_GetShiftState done [18:07:52]req_shift_opened done [18:07:52]requested_item shift.open_date is exist - process it [18:07:52]req_shift_open_date [18:07:52]req_shift_open_date done [18:07:52]produce_requested_data done [18:07:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140317,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:07:52]process_action_free close_receipt [18:07:52]json_value_free [18:07:52]json_value_free done [18:07:52]process_json_proto returns [18:07:52]Send response to host [18:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140317,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:07:52]free response buf [18:07:52]execute_script done [18:07:52]execute_script returns [18:07:52]free content buf [18:07:52]Sock 7.Close socket [18:07:52]Sock 7.Thread stoped [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:02]accept exits with 9 [18:08:02]New connection [18:08:02]New thread 3067469156 created [18:08:02]Thread 3067612516 joined [18:08:02]Waiting for new connection... [18:08:02] Sock 9.Parse request [18:08:02]Sock 9.Check first char [18:08:02]Sock 9.First char is OK [18:08:02]request: POST /json_proto HTTP/1.0 [18:08:02]Method: POST [18:08:02]URL: /json_proto [18:08:02]Method is POST - this is cgi request [18:08:02]url: /json_proto [18:08:02]query_string will be loaded in cgi processing [18:08:02]execute_cgi json_proto POST (null) [18:08:02]execute_cgi path=json_proto method=POST [18:08:02]POST find Content-Length [18:08:02]Host: 172.17.45.67:8080 [18:08:02]Content-Length: 682 [18:08:02]Content-Type: application/json [18:08:02] [18:08:02]POST finish read [18:08:02]Found Content-Length = 682 [18:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]execute_script... [18:08: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)594176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:02]POST & json_proto [18:08:02]process_json_proto [18:08:02]json parsed OK: [18:08:02]protocol is kg_v1.0 [18:08:02]action value=close_receipt [18:08:02]process_action close_receipt [18:08:02]cmd_close_receipt [18:08:02]MH_GetDate [18:08:02]Write to MH i2c: F0 00 00 4E 0D 4A [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: F0 09 00 4E 0D 00 03 2D C6 66 5F 7F 2B 66 1E [18:08:02]GetLastDocTimeStamp 1724263669 [18:08:02]current date 1724263683 [18:08:02]FM_GetShiftState [18:08:02]SAM_PROTO_GetShiftState [18:08:02]wFMCommunicate request_size=4 [18:08:02]MH_SAM_APDU [18:08:02]CAPDU: 80 13 01 00 [18:08:02]Write to MH i2c: E2 08 00 4F 0D 80 13 01 00 00 00 00 00 D9 [18:08:02]Write i2c OK [18:08:02]MH_I2C_Read... [18:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:02]Read from MH i2c: E2 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 [18:08:02]MH_I2C_Read... [18:08:02]Read from MH i2c: E2 0E 00 4F 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 59 [18:08:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:08:02]wFMCommunicate OK [18:08:02]SAM_PROTO_GetShiftState done [18:08:02]FM_GetShiftState done [18:08:02]opened in 1724200467 [18:08:02]opened+sec_in_day 1724286867 [18:08:02]quantity*price = 100005 [18:08:02]sum+1 = 100006 [18:08:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 335 21.08.2024 18:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140318 ФПД: 185359599471773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140318&fm=185359599471773&tin=02508201610067®Number=0000000000092569&sum=100000 [18:08:03]StoreToDocumentArchive [18:08:03]shift 454 fd 140318 [18:08:03]save to /storage/0454/doc_00140318 [18:08:03]save last doc name /storage/0454/doc_00140318 to /storage/kkm_last_doc_name [18:08:03]save OK [18:08:03]Clear old archive folders... [18:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:03]tlvbuf is 00C64860 [18:08:03]SAM_PROTO_ClearQueue [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 09 00 00 [18:08:03]Write to MH i2c: E2 08 00 5C 0D 80 09 00 00 00 00 00 00 DB [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]SAM_PROTO_ClearQueue done [18:08:03]KKMCreateOFDPacket [18:08:03]OFDProtocolAddRootSTLVToBuf [18:08:03]FM_MakeSignedData [18:08:03]FM_MakeSignedData [18:08:03]SAM_PROTO_SignData [18:08:03]wFMCommunicate request_size=4 [18:08:03]MH_SAM_APDU [18:08:03]CAPDU: 80 0D 01 02 [18:08:03]Write to MH i2c: E2 08 00 5D 0D 80 0D 01 02 00 00 00 00 E3 [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:03]Read from MH i2c: E2 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 [18:08:03]MH_I2C_Read... [18:08:03]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [18:08:03]RAPDU: 90 00 [18:08:03]wFMCommunicate OK [18:08:03]wFMCommunicate request_size=255 [18:08:03]MH_SAM_APDU [18:08: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 03 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 24 02 00 35 04 06 00 A8 [18:08:03]Write to MH i2c: E2 02 01 5E 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 03 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 24 02 00 35 04 06 00 A8 00 00 5A [18:08:03]Write i2c OK [18:08:03]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 5E 0D 00 90 00 DF [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]wFMCommunicate request_size=10 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 02 02 05 95 65 15 0C 9D [18:08:04]Write to MH i2c: E2 0D 00 5F 0D 80 0D 02 02 05 00 95 65 15 0C 9D 00 00 A8 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [18:08:04]RAPDU: 90 00 [18:08:04]wFMCommunicate OK [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 0D 03 02 [18:08:04]Write to MH i2c: E2 08 00 60 0D 80 0D 03 02 00 00 00 00 E8 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0B 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 0B 00 60 0D 00 95 34 C8 00 48 76 C0 22 90 00 1A [18:08:04]RAPDU: 95 34 C8 00 48 76 C0 22 90 00 [18:08:04]wFMCommunicate OK [18:08:04]SAM_PROTO_SignData done [18:08:04]FM_MakeSignedData done [18:08:04]CreateOFDProtocolMessage [18:08:04]wFMCommunicate request_size=4 [18:08:04]MH_SAM_APDU [18:08:04]CAPDU: 80 11 00 00 [18:08:04]Write to MH i2c: E2 08 00 61 0D 80 11 00 00 00 00 00 00 E8 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:04]Read from MH i2c: E2 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: E2 17 00 61 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3F [18:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:08:04]wFMCommunicate OK [18:08:04]CreateOFDProtocolMessage done [18:08:04]OFDSenderStorePacket 140318 [18:08:04]StoreOFDPacket docnum=140318 [18:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 61 07 01 E2 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 03 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 24 02 00 35 04 06 00 A8 95 65 15 0C 9D 95 34 C8 00 48 76 C0 22 [18:08:04]CheckFolder [18:08:04]dirname=/storage/ofd_packets [18:08:04]CheckFolder done [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00140318 [18:08:04]NVStorageSaveData ofd_packets/00140318 [18:08:04]File name is /storage/ofd_packets/00140318 [18:08:04]Write 301 bytes [18:08:04]NVStorageSaveData done [18:08:04]OFDSenderStorePacket done [18:08:04]KKMCreateOFDPacket done [18:08:04]NVStorageSaveData kkm_last_timestamp [18:08:04]File name is /storage/kkm_last_timestamp [18:08:04]Write 4 bytes [18:08:04]NVStorageSaveData done [18:08:04]ExternCall_PrintAddStr [18:08:04]wPrintStart [18:08:04]Write to MH i2c: 01 00 00 62 0D 6F [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 62 0D 00 00 00 00 00 FF 0F 84 [18:08:04]RasterBufferAndPrint [18:08:04]line Счет N : (1)594176 [18:08:04]line ИНН: 02508201610067 [18:08:04]line Контрольно-Кассовый Чек [18:08:04]line ПРОДАЖА [18:08:04]line ТРК (МРК, ГНК) : 42 [18:08:04]line Товар: 2710124130 [18:08:04]line Аи-92-К-5 [18:08:04]line 14.750 * 67.80 [18:08:04]line = 1000.05 [18:08:04]line НДС 12% НСП 1% [18:08:04]line > о реализуемом товаре [18:08:04]line ОКРУГЛЕНИЕ: -0.05 [18:08:04]line ИТОГО: 1000.00 [18:08:04]line Внесено: 1000.00 [18:08:04]line СДАЧА: 0.00 [18:08:04]line НСП 1% : 8.85 [18:08:04]line НДС 12% : 106.20 [18:08:04]line Наличными: 1000.00 [18:08:04]line Безнал.: 0.00 [18:08:04]line Место: АЗС № 136 "Партнер Нефть" [18:08:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:08:04]line СНО: Общий режим [18:08:04]line Чек 335 21.08.2024 18:08 [18:08:04]line Смена: 454 ФФД: 1.0 [18:08:04]line ЗНМ: 0300000067 [18:08:04]line РНМ: 0000000000092569 [18:08:04]line Версия ККМ: 001 [18:08:04]line ФМ: 0000000000871776 [18:08:04]line ФД: 140318 [18:08:04]line ФПД: 185359599471773 [18:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T180803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140318&fm=185359599471773&tin=02508201610067®Number=0000000000092569&sum=100000 [18:08:04]written 0, free lines is 4095 [18:08:04]OFD Sender: Processing packet 140318 [packets to send 137, broken 136] [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00140318 [18:08:04]OFD Sender: To server: pG, [18:08:04]CommunicateWithHost lk.salyk.kg:30040 [18:08:04]ConnectInit lk.salyk.kg [18:08:04]Connected sock=11 [18:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 48 61 07 01 E2 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 03 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1E 24 02 00 35 04 06 00 A8 95 65 15 0C 9D 95 34 C8 00 48 76 C0 22 [18:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 D2 40 47 00 1A 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 37 36 10 04 04 00 1E 24 02 00 F4 03 04 00 93 D3 C5 66 B6 04 01 00 00 EB AC F6 03 5A 3D A2 1E [18:08:04]CommunicateWithHost err = 0 [18:08:04]CheckOFDResponse [18:08:04]1017 (14) - 77093643461234 [18:08:04]1041 (16) - 0000000000871776 [18:08:04]1040 (4) - 140318 [18:08:04]1012 (4) - 21.08.2024 11:46 [18:08:04]1206 (1) - 0 [18:08:04]OFD Sender: Remove packet 140318 [18:08:04]ProducePacketName [18:08:04]name=ofd_packets/00140318 [18:08:04]NVStorageDeleteData [18:08:04]Write to MH i2c: 01 00 00 8D 0D 9A [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: 01 07 00 8D 0D 00 00 00 00 00 E6 0C 93 [18:08:04]RasterBufferAndPrint [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]line [18:08:04]written 0, free lines is 3308 [18:08:04]MH_Cut [18:08:04]Write to MH i2c: D1 01 00 94 0D 01 73 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 01 00 [18:08:04]MH_I2C_Read... [18:08:04]Read from MH i2c: D1 01 00 94 0D 00 72 [18:08:04]Write to MH i2c: 01 00 00 95 0D A2 [18:08:04]Write i2c OK [18:08:04]MH_I2C_Read... [18:08:05]OFD Sender: No OFD packet to send [18:08:05]*** Cut start [18:08:05]*** Partial cut [18:08:05]*** CUTSNS_PIN = 1 [18:08:05]*** CUTSNS_PIN = 0 [18:08:05]*** Brake cut motor [18:08:06]Read from MH i2c: 01 [18:08:06]MH_I2C_Read... [18:08:06]*** Stop cut motor [18:08:06]*** Cut end [18:08:06]Read from MH i2c: 01 07 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [18:08:06]process_action close_receipt done [18:08:06]requested_data is exist [18:08:06]produce_requested_data [18:08:06]requested_item fm.sn is exist - process it [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 11 00 00 [18:08:06]Write to MH i2c: E2 08 00 96 0D 80 11 00 00 00 00 00 00 1D [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 17 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 17 00 96 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 74 [18:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:08:06]wFMCommunicate OK [18:08:06]requested_item fd.num is exist - process it [18:08:06]SAM_PROTO_GetFieldsCounters [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 00 00 [18:08:06]Write to MH i2c: E2 08 00 97 0D 80 13 00 00 00 00 00 00 20 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 62 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 62 00 97 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 24 02 00 0E 04 04 00 C6 01 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 46 [18:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1E 24 02 00 0E 04 04 00 C6 01 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 [18:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetFieldsCounters done [18:08:06]requested_item shift.num is exist - process it [18:08:06]requested_item shift.opened is exist - process it [18:08:06]req_shift_opened [18:08:06]FM_GetShiftState [18:08:06]SAM_PROTO_GetShiftState [18:08:06]wFMCommunicate request_size=4 [18:08:06]MH_SAM_APDU [18:08:06]CAPDU: 80 13 01 00 [18:08:06]Write to MH i2c: E2 08 00 98 0D 80 13 01 00 00 00 00 00 22 [18:08:06]Write i2c OK [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 [18:08:06]MH_I2C_Read... [18:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:06]Read from MH i2c: E2 0E 00 [18:08:06]MH_I2C_Read... [18:08:06]Read from MH i2c: E2 0E 00 98 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A2 [18:08:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:08:06]wFMCommunicate OK [18:08:06]SAM_PROTO_GetShiftState done [18:08:06]FM_GetShiftState done [18:08:06]req_shift_opened done [18:08:06]requested_item shift.open_date is exist - process it [18:08:06]req_shift_open_date [18:08:06]req_shift_open_date done [18:08:06]produce_requested_data done [18:08:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140318,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:08:06]process_action_free close_receipt [18:08:06]json_value_free [18:08:06]json_value_free done [18:08:06]process_json_proto returns [18:08:06]Send response to host [18:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140318,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:08:06]free response buf [18:08:06]execute_script done [18:08:06]execute_script returns [18:08:06]free content buf [18:08:06]Sock 9.Close socket [18:08:06]Sock 9.Thread stoped [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:09]accept exits with 7 [18:12:09]New connection [18:12:09]New thread 3067612516 created [18:12:09]Thread 3067469156 joined [18:12:09]Waiting for new connection... [18:12:09] Sock 7.Parse request [18:12:09]Sock 7.Check first char [18:12:09]Sock 7.First char is OK [18:12:09]request: POST /json_proto HTTP/1.0 [18:12:09]Method: POST [18:12:09]URL: /json_proto [18:12:09]Method is POST - this is cgi request [18:12:09]url: /json_proto [18:12:09]query_string will be loaded in cgi processing [18:12:09]execute_cgi json_proto POST (null) [18:12:09]execute_cgi path=json_proto method=POST [18:12:09]POST find Content-Length [18:12:09]Host: 172.17.45.67:8080 [18:12:09]Content-Length: 677 [18:12:09]Content-Type: application/json [18:12:09] [18:12:09]POST finish read [18:12:09]Found Content-Length = 677 [18:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:09]execute_script... [18:12:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:09]POST & json_proto [18:12:09]process_json_proto [18:12:09]json parsed OK: [18:12:09]protocol is kg_v1.0 [18:12:09]action value=close_receipt [18:12:09]process_action close_receipt [18:12:09]cmd_close_receipt [18:12:09]MH_GetDate [18:12:09]Write to MH i2c: F0 00 00 99 0D 95 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: F0 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: F0 09 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: F0 09 00 99 0D 00 FA 2D C6 66 5F 7F 2B 66 60 [18:12:09]GetLastDocTimeStamp 1724263683 [18:12:09]current date 1724263930 [18:12:09]FM_GetShiftState [18:12:09]SAM_PROTO_GetShiftState [18:12:09]wFMCommunicate request_size=4 [18:12:09]MH_SAM_APDU [18:12:09]CAPDU: 80 13 01 00 [18:12:09]Write to MH i2c: E2 08 00 9A 0D 80 13 01 00 00 00 00 00 24 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:09]Read from MH i2c: E2 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: E2 0E 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: E2 0E 00 9A 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A4 [18:12:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:12:09]wFMCommunicate OK [18:12:09]SAM_PROTO_GetShiftState done [18:12:09]FM_GetShiftState done [18:12:09]opened in 1724200467 [18:12:09]opened+sec_in_day 1724286867 [18:12:09]quantity*price = 50036 [18:12:09]sum+1 = 50037 [18:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 336 21.08.2024 18:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140319 ФПД: 270999340305600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140319&fm=270999340305600&tin=02508201610067®Number=0000000000092569&sum=50000 [18:12:10]StoreToDocumentArchive [18:12:10]shift 454 fd 140319 [18:12:10]save to /storage/0454/doc_00140319 [18:12:10]save last doc name /storage/0454/doc_00140319 to /storage/kkm_last_doc_name [18:12:10]save OK [18:12:10]Clear old archive folders... [18:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:10]tlvbuf is 00C36870 [18:12:10]SAM_PROTO_ClearQueue [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 09 00 00 [18:12:10]Write to MH i2c: E2 08 00 A7 0D 80 09 00 00 00 00 00 00 26 [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 03 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [18:12:10]RAPDU: 90 00 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_ClearQueue done [18:12:10]KKMCreateOFDPacket [18:12:10]OFDProtocolAddRootSTLVToBuf [18:12:10]FM_MakeSignedData [18:12:10]FM_MakeSignedData [18:12:10]SAM_PROTO_SignData [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 0D 01 02 [18:12:10]Write to MH i2c: E2 08 00 A8 0D 80 0D 01 02 00 00 00 00 2E [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [18:12:11]RAPDU: 90 00 [18:12:11]wFMCommunicate OK [18:12:11]wFMCommunicate request_size=255 [18:12:11]MH_SAM_APDU [18:12: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 FA 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 24 02 00 35 04 06 00 F6 [18:12:11]Write to MH i2c: E2 02 01 A9 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 FA 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 24 02 00 35 04 06 00 F6 00 00 5D [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [18:12:11]RAPDU: 90 00 [18:12:11]wFMCommunicate OK [18:12:11]wFMCommunicate request_size=10 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 0D 02 02 05 78 F3 69 CC C0 [18:12:11]Write to MH i2c: E2 0D 00 AA 0D 80 0D 02 02 05 00 78 F3 69 CC C0 00 00 9B [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 03 00 AA 0D 00 90 00 2B [18:12:11]RAPDU: 90 00 [18:12:11]wFMCommunicate OK [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 0D 03 02 [18:12:11]Write to MH i2c: E2 08 00 AB 0D 80 0D 03 02 00 00 00 00 33 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 0B 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 0B 00 AB 0D 00 E3 E8 18 DA 33 CC E0 8A 90 00 5A [18:12:11]RAPDU: E3 E8 18 DA 33 CC E0 8A 90 00 [18:12:11]wFMCommunicate OK [18:12:11]SAM_PROTO_SignData done [18:12:11]FM_MakeSignedData done [18:12:11]CreateOFDProtocolMessage [18:12:11]wFMCommunicate request_size=4 [18:12:11]MH_SAM_APDU [18:12:11]CAPDU: 80 11 00 00 [18:12:11]Write to MH i2c: E2 08 00 AC 0D 80 11 00 00 00 00 00 00 33 [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:11]Read from MH i2c: E2 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 17 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: E2 17 00 AC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8A [18:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:11]wFMCommunicate OK [18:12:11]CreateOFDProtocolMessage done [18:12:11]OFDSenderStorePacket 140319 [18:12:11]StoreOFDPacket docnum=140319 [18:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 C1 07 01 C4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 FA 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 24 02 00 35 04 06 00 F6 78 F3 69 CC C0 E3 E8 18 DA 33 CC E0 8A [18:12:11]CheckFolder [18:12:11]dirname=/storage/ofd_packets [18:12:11]CheckFolder done [18:12:11]ProducePacketName [18:12:11]name=ofd_packets/00140319 [18:12:11]NVStorageSaveData ofd_packets/00140319 [18:12:11]File name is /storage/ofd_packets/00140319 [18:12:11]Write 301 bytes [18:12:11]NVStorageSaveData done [18:12:11]OFDSenderStorePacket done [18:12:11]KKMCreateOFDPacket done [18:12:11]NVStorageSaveData kkm_last_timestamp [18:12:11]File name is /storage/kkm_last_timestamp [18:12:11]Write 4 bytes [18:12:11]NVStorageSaveData done [18:12:11]ExternCall_PrintAddStr [18:12:11]wPrintStart [18:12:11]Write to MH i2c: 01 00 00 AD 0D BA [18:12:11]Write i2c OK [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: 01 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: 01 07 00 [18:12:11]MH_I2C_Read... [18:12:11]Read from MH i2c: 01 07 00 AD 0D 00 00 00 00 00 FF 0F CF [18:12:11]RasterBufferAndPrint [18:12:11]line Счет N : (1)594177 [18:12:11]line ИНН: 02508201610067 [18:12:11]line Контрольно-Кассовый Чек [18:12:11]line ПРОДАЖА [18:12:11]line ТРК (МРК, ГНК) : 52 [18:12:11]line Товар: 2710124130 [18:12:11]line Аи-92-К-5 [18:12:11]line 7.380 * 67.80 [18:12:11]line = 500.36 [18:12:11]line НДС 12% НСП 1% [18:12:11]line > о реализуемом товаре [18:12:11]line ОКРУГЛЕНИЕ: -0.36 [18:12:11]line ИТОГО: 500.00 [18:12:11]line Внесено: 500.00 [18:12:11]line СДАЧА: 0.00 [18:12:11]line НСП 1% : 4.43 [18:12:11]line НДС 12% : 53.14 [18:12:11]line Наличными: 500.00 [18:12:11]line Безнал.: 0.00 [18:12:11]line Место: АЗС № 136 "Партнер Нефть" [18:12:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:12:11]line СНО: Общий режим [18:12:11]line Чек 336 21.08.2024 18:12 [18:12:11]line Смена: 454 ФФД: 1.0 [18:12:11]line ЗНМ: 0300000067 [18:12:11]line РНМ: 0000000000092569 [18:12:11]line Версия ККМ: 001 [18:12:11]line ФМ: 0000000000871776 [18:12:11]line ФД: 140319 [18:12:11]line ФПД: 270999340305600 [18:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181210&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140319&fm=270999340305600&tin=02508201610067®Number=0000000000092569&sum=50000 [18:12:11]OFD Sender: Processing packet 140319 [packets to send 137, broken 136] [18:12:11]ProducePacketName [18:12:11]name=ofd_packets/00140319 [18:12:11]OFD Sender: To server: pG, [18:12:11]CommunicateWithHost lk.salyk.kg:30040 [18:12:11]ConnectInit lk.salyk.kg [18:12:11]written 0, free lines is 4095 [18:12:11]Connected sock=10 [18:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 C1 07 01 C4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 FA 2D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 24 02 00 35 04 06 00 F6 78 F3 69 CC C0 E3 E8 18 DA 33 CC E0 8A [18:12:12]Write to MH i2c: 01 00 00 D8 0D E5 [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 07 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 E0 0C D8 [18:12:12]RasterBufferAndPrint [18:12:12]line [18:12:12]line [18:12:12]line [18:12:12]line [18:12:12]line [18:12:12]written 0, free lines is 3302 [18:12:12]MH_Cut [18:12:12]Write to MH i2c: D1 01 00 DF 0D 01 BE [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: D1 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: D1 01 00 [18:12:12]MH_I2C_Read... [18:12:12]Read from MH i2c: D1 01 00 DF 0D 00 BD [18:12:12]Write to MH i2c: 01 00 00 E0 0D ED [18:12:12]Write i2c OK [18:12:12]MH_I2C_Read... [18:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 3C 57 47 00 64 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 1F 24 02 00 F4 03 04 00 8A D4 C5 66 B6 04 01 00 00 22 4E 07 CF 34 C5 12 F7 [18:12:12]CommunicateWithHost err = 0 [18:12:12]CheckOFDResponse [18:12:12]1017 (14) - 77093643461234 [18:12:12]1041 (16) - 0000000000871776 [18:12:12]1040 (4) - 140319 [18:12:12]1012 (4) - 21.08.2024 11:50 [18:12:12]1206 (1) - 0 [18:12:12]OFD Sender: Remove packet 140319 [18:12:12]ProducePacketName [18:12:12]name=ofd_packets/00140319 [18:12:12]NVStorageDeleteData [18:12:12]OFD Sender: No OFD packet to send [18:12:12]*** Cut start [18:12:12]*** Partial cut [18:12:12]*** CUTSNS_PIN = 1 [18:12:12]*** CUTSNS_PIN = 0 [18:12:13]*** Brake cut motor [18:12:13]Read from MH i2c: 01 [18:12:13]MH_I2C_Read... [18:12:13]*** Stop cut motor [18:12:13]*** Cut end [18:12:13]Read from MH i2c: 01 07 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [18:12:13]process_action close_receipt done [18:12:13]requested_data is exist [18:12:13]produce_requested_data [18:12:13]requested_item fm.sn is exist - process it [18:12:13]wFMCommunicate request_size=4 [18:12:13]MH_SAM_APDU [18:12:13]CAPDU: 80 11 00 00 [18:12:13]Write to MH i2c: E2 08 00 E1 0D 80 11 00 00 00 00 00 00 68 [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:13]Read from MH i2c: E2 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 17 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 17 00 E1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BF [18:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:12:13]wFMCommunicate OK [18:12:13]requested_item fd.num is exist - process it [18:12:13]SAM_PROTO_GetFieldsCounters [18:12:13]wFMCommunicate request_size=4 [18:12:13]MH_SAM_APDU [18:12:13]CAPDU: 80 13 00 00 [18:12:13]Write to MH i2c: E2 08 00 E2 0D 80 13 00 00 00 00 00 00 6B [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:13]Read from MH i2c: E2 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 62 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 62 00 E2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 24 02 00 0E 04 04 00 C6 01 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 95 [18:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 1F 24 02 00 0E 04 04 00 C6 01 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 [18:12:13]wFMCommunicate OK [18:12:13]SAM_PROTO_GetFieldsCounters done [18:12:13]requested_item shift.num is exist - process it [18:12:13]requested_item shift.opened is exist - process it [18:12:13]req_shift_opened [18:12:13]FM_GetShiftState [18:12:13]SAM_PROTO_GetShiftState [18:12:13]wFMCommunicate request_size=4 [18:12:13]MH_SAM_APDU [18:12:13]CAPDU: 80 13 01 00 [18:12:13]Write to MH i2c: E2 08 00 E3 0D 80 13 01 00 00 00 00 00 6D [18:12:13]Write i2c OK [18:12:13]MH_I2C_Read... [18:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:13]Read from MH i2c: E2 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 0E 00 [18:12:13]MH_I2C_Read... [18:12:13]Read from MH i2c: E2 0E 00 E3 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 ED [18:12:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:12:13]wFMCommunicate OK [18:12:13]SAM_PROTO_GetShiftState done [18:12:13]FM_GetShiftState done [18:12:13]req_shift_opened done [18:12:13]requested_item shift.open_date is exist - process it [18:12:13]req_shift_open_date [18:12:13]req_shift_open_date done [18:12:13]produce_requested_data done [18:12:13]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140319,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:12:13]process_action_free close_receipt [18:12:13]json_value_free [18:12:13]json_value_free done [18:12:13]process_json_proto returns [18:12:13]Send response to host [18:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140319,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:12:13]free response buf [18:12:13]execute_script done [18:12:13]execute_script returns [18:12:13]free content buf [18:12:13]Sock 7.Close socket [18:12:13]Sock 7.Thread stoped [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:13]accept exits with 9 [18:13:13]New connection [18:13:13]New thread 3067469156 created [18:13:13]Thread 3067612516 joined [18:13:13]Waiting for new connection... [18:13:13] Sock 9.Parse request [18:13:13]Sock 9.Check first char [18:13:13]Sock 9.First char is OK [18:13:13]request: POST /json_proto HTTP/1.0 [18:13:13]Method: POST [18:13:13]URL: /json_proto [18:13:13]Method is POST - this is cgi request [18:13:13]url: /json_proto [18:13:13]query_string will be loaded in cgi processing [18:13:13]execute_cgi json_proto POST (null) [18:13:13]execute_cgi path=json_proto method=POST [18:13:13]POST find Content-Length [18:13:13]Host: 172.17.45.67:8080 [18:13:13]Content-Length: 819 [18:13:13]Content-Type: application/json [18:13:13] [18:13:13]POST finish read [18:13:13]Found Content-Length = 819 [18:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]execute_script... [18:13:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 800.00, "payments": [ { "type": 1, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:13]POST & json_proto [18:13:13]process_json_proto [18:13:13]json parsed OK: [18:13:13]protocol is kg_v1.0 [18:13:13]action value=close_receipt [18:13:13]process_action close_receipt [18:13:13]cmd_close_receipt [18:13:13]MH_GetDate [18:13:13]Write to MH i2c: F0 00 00 E4 0D E0 [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: F0 09 00 E4 0D 00 39 2E C6 66 5F 7F 2B 66 EB [18:13:13]GetLastDocTimeStamp 1724263930 [18:13:13]current date 1724263993 [18:13:13]FM_GetShiftState [18:13:13]SAM_PROTO_GetShiftState [18:13:13]wFMCommunicate request_size=4 [18:13:13]MH_SAM_APDU [18:13:13]CAPDU: 80 13 01 00 [18:13:13]Write to MH i2c: E2 08 00 E5 0D 80 13 01 00 00 00 00 00 6F [18:13:13]Write i2c OK [18:13:13]MH_I2C_Read... [18:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:13]Read from MH i2c: E2 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 [18:13:13]MH_I2C_Read... [18:13:13]Read from MH i2c: E2 0E 00 E5 0D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EF [18:13:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:13:13]wFMCommunicate OK [18:13:13]SAM_PROTO_GetShiftState done [18:13:13]FM_GetShiftState done [18:13:13]opened in 1724200467 [18:13:13]opened+sec_in_day 1724286867 [18:13:13]quantity*price = 80004 [18:13:13]sum+1 = 80005 [18:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 337 21.08.2024 18:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140320 ФПД: 245892589947063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140320&fm=245892589947063&tin=02508201610067®Number=0000000000092569&sum=80000 [18:13:14]StoreToDocumentArchive [18:13:14]shift 454 fd 140320 [18:13:14]save to /storage/0454/doc_00140320 [18:13:14]save last doc name /storage/0454/doc_00140320 to /storage/kkm_last_doc_name [18:13:14]save OK [18:13:14]Clear old archive folders... [18:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:14]tlvbuf is 00CB19E0 [18:13:14]SAM_PROTO_ClearQueue [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 09 00 00 [18:13:14]Write to MH i2c: E2 08 00 F2 0D 80 09 00 00 00 00 00 00 71 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_ClearQueue done [18:13:14]KKMCreateOFDPacket [18:13:14]OFDProtocolAddRootSTLVToBuf [18:13:14]FM_MakeSignedData [18:13:14]FM_MakeSignedData [18:13:14]SAM_PROTO_SignData [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 01 02 [18:13:14]Write to MH i2c: E2 08 00 F3 0D 80 0D 01 02 00 00 00 00 79 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=255 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 39 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 24 02 00 35 04 06 00 DF [18:13:14]Write to MH i2c: E2 02 01 F4 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 39 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 24 02 00 35 04 06 00 DF 00 00 80 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=10 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 02 02 05 A3 54 7A 08 B7 [18:13:14]Write to MH i2c: E2 0D 00 F5 0D 80 0D 02 02 05 00 A3 54 7A 08 B7 00 00 B6 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [18:13:14]RAPDU: 90 00 [18:13:14]wFMCommunicate OK [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 0D 03 02 [18:13:14]Write to MH i2c: E2 08 00 F6 0D 80 0D 03 02 00 00 00 00 7E [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 0B 00 F6 0D 00 D0 C0 1C 61 72 54 7A 96 90 00 62 [18:13:14]RAPDU: D0 C0 1C 61 72 54 7A 96 90 00 [18:13:14]wFMCommunicate OK [18:13:14]SAM_PROTO_SignData done [18:13:14]FM_MakeSignedData done [18:13:14]CreateOFDProtocolMessage [18:13:14]wFMCommunicate request_size=4 [18:13:14]MH_SAM_APDU [18:13:14]CAPDU: 80 11 00 00 [18:13:14]Write to MH i2c: E2 08 00 F7 0D 80 11 00 00 00 00 00 00 7E [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:14]Read from MH i2c: E2 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: E2 17 00 F7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D5 [18:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:13:14]wFMCommunicate OK [18:13:14]CreateOFDProtocolMessage done [18:13:14]OFDSenderStorePacket 140320 [18:13:14]StoreOFDPacket docnum=140320 [18:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 65 B6 07 01 85 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 39 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 24 02 00 35 04 06 00 DF A3 54 7A 08 B7 D0 C0 1C 61 72 54 7A 96 [18:13:14]CheckFolder [18:13:14]dirname=/storage/ofd_packets [18:13:14]CheckFolder done [18:13:14]ProducePacketName [18:13:14]name=ofd_packets/00140320 [18:13:14]NVStorageSaveData ofd_packets/00140320 [18:13:14]File name is /storage/ofd_packets/00140320 [18:13:14]Write 301 bytes [18:13:14]NVStorageSaveData done [18:13:14]OFDSenderStorePacket done [18:13:14]KKMCreateOFDPacket done [18:13:14]NVStorageSaveData kkm_last_timestamp [18:13:14]File name is /storage/kkm_last_timestamp [18:13:14]Write 4 bytes [18:13:14]NVStorageSaveData done [18:13:14]ExternCall_PrintAddStr [18:13:14]wPrintStart [18:13:14]Write to MH i2c: 01 00 00 F8 0D 05 [18:13:14]Write i2c OK [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 [18:13:14]MH_I2C_Read... [18:13:14]Read from MH i2c: 01 07 00 F8 0D 00 00 00 00 00 FF 0F 1A [18:13:14]RasterBufferAndPrint [18:13:14]line Счет N : (1)594178 [18:13:14]line ИНН: 02508201610067 [18:13:14]line Контрольно-Кассовый Чек [18:13:14]line ПРОДАЖА [18:13:14]line ТРК (МРК, ГНК) : 32 [18:13:14]line Товар: 2710124130 [18:13:14]line Аи-92-К-5 [18:13:14]line 11.800 * 67.80 [18:13:14]line = 800.04 [18:13:14]line НДС 12% НСП 1% [18:13:14]line > о реализуемом товаре [18:13:14]line ОКРУГЛЕНИЕ: -0.04 [18:13:14]line ИТОГО: 800.00 [18:13:14]line НСП 1% : 7.08 [18:13:14]line НДС 12% : 84.96 [18:13:14]line Наличными: 0.00 [18:13:14]line Безнал.: 800.00 [18:13:14]line Место: АЗС № 136 "Партнер Нефть" [18:13:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:13:14]line СНО: Общий режим [18:13:14]line Чек 337 21.08.2024 18:13 [18:13:14]line Смена: 454 ФФД: 1.0 [18:13:14]line ЗНМ: 0300000067 [18:13:14]line РНМ: 0000000000092569 [18:13:14]line Версия ККМ: 001 [18:13:14]line Платежная система: O! деньги [18:13:14]line ФМ: 0000000000871776 [18:13:14]line ФД: 140320 [18:13:14]line ФПД: 245892589947063 [18:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181313&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140320&fm=245892589947063&tin=02508201610067®Number=0000000000092569&sum=80000 [18:13:15]OFD Sender: Processing packet 140320 [packets to send 137, broken 136] [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00140320 [18:13:15]OFD Sender: To server: pG, [18:13:15]CommunicateWithHost lk.salyk.kg:30040 [18:13:15]ConnectInit lk.salyk.kg [18:13:15]written 0, free lines is 4095 [18:13:15]Connected sock=11 [18:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 65 B6 07 01 85 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 39 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 24 02 00 35 04 06 00 DF A3 54 7A 08 B7 D0 C0 1C 61 72 54 7A 96 [18:13:15]Write to MH i2c: 01 00 00 23 0E 31 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 E5 0C 29 [18:13:15]RasterBufferAndPrint [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]line [18:13:15]written 0, free lines is 3308 [18:13:15]MH_Cut [18:13:15]Write to MH i2c: D1 01 00 2A 0E 01 0A [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 01 00 [18:13:15]MH_I2C_Read... [18:13:15]Read from MH i2c: D1 01 00 2A 0E 00 09 [18:13:15]Write to MH i2c: 01 00 00 2B 0E 39 [18:13:15]Write i2c OK [18:13:15]MH_I2C_Read... [18:13:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 83 AF 47 00 E8 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 20 24 02 00 F4 03 04 00 CA D4 C5 66 B6 04 01 00 00 89 3E F5 7C A7 C9 FF 08 [18:13:15]CommunicateWithHost err = 0 [18:13:15]CheckOFDResponse [18:13:15]1017 (14) - 77093643461234 [18:13:15]1041 (16) - 0000000000871776 [18:13:15]1040 (4) - 140320 [18:13:15]1012 (4) - 21.08.2024 11:51 [18:13:15]1206 (1) - 0 [18:13:15]OFD Sender: Remove packet 140320 [18:13:15]ProducePacketName [18:13:15]name=ofd_packets/00140320 [18:13:15]NVStorageDeleteData [18:13:16]OFD Sender: No OFD packet to send [18:13:16]*** Cut start [18:13:16]*** Partial cut [18:13:16]*** CUTSNS_PIN = 1 [18:13:16]*** CUTSNS_PIN = 0 [18:13:16]*** Brake cut motor [18:13:16]Read from MH i2c: 01 [18:13:16]MH_I2C_Read... [18:13:16]*** Stop cut motor [18:13:16]*** Cut end [18:13:16]Read from MH i2c: 01 07 00 [18:13:16]MH_I2C_Read... [18:13:16]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [18:13:16]process_action close_receipt done [18:13:16]requested_data is exist [18:13:16]produce_requested_data [18:13:16]requested_item fm.sn is exist - process it [18:13:16]wFMCommunicate request_size=4 [18:13:16]MH_SAM_APDU [18:13:16]CAPDU: 80 11 00 00 [18:13:16]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 17 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0B [18:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:13:17]wFMCommunicate OK [18:13:17]requested_item fd.num is exist - process it [18:13:17]SAM_PROTO_GetFieldsCounters [18:13:17]wFMCommunicate request_size=4 [18:13:17]MH_SAM_APDU [18:13:17]CAPDU: 80 13 00 00 [18:13:17]Write to MH i2c: E2 08 00 2D 0E 80 13 00 00 00 00 00 00 B7 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 62 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 62 00 2D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 24 02 00 0E 04 04 00 C6 01 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 E5 [18:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 20 24 02 00 0E 04 04 00 C6 01 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 [18:13:17]wFMCommunicate OK [18:13:17]SAM_PROTO_GetFieldsCounters done [18:13:17]requested_item shift.num is exist - process it [18:13:17]requested_item shift.opened is exist - process it [18:13:17]req_shift_opened [18:13:17]FM_GetShiftState [18:13:17]SAM_PROTO_GetShiftState [18:13:17]wFMCommunicate request_size=4 [18:13:17]MH_SAM_APDU [18:13:17]CAPDU: 80 13 01 00 [18:13:17]Write to MH i2c: E2 08 00 2E 0E 80 13 01 00 00 00 00 00 B9 [18:13:17]Write i2c OK [18:13:17]MH_I2C_Read... [18:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:17]Read from MH i2c: E2 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 0E 00 [18:13:17]MH_I2C_Read... [18:13:17]Read from MH i2c: E2 0E 00 2E 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 39 [18:13:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:13:17]wFMCommunicate OK [18:13:17]SAM_PROTO_GetShiftState done [18:13:17]FM_GetShiftState done [18:13:17]req_shift_opened done [18:13:17]requested_item shift.open_date is exist - process it [18:13:17]req_shift_open_date [18:13:17]req_shift_open_date done [18:13:17]produce_requested_data done [18:13:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140320,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:13:17]process_action_free close_receipt [18:13:17]json_value_free [18:13:17]json_value_free done [18:13:17]process_json_proto returns [18:13:17]Send response to host [18:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140320,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:13:17]free response buf [18:13:17]execute_script done [18:13:17]execute_script returns [18:13:17]free content buf [18:13:17]Sock 9.Close socket [18:13:17]Sock 9.Thread stoped [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:19]accept exits with 7 [18:14:19]New connection [18:14:19]New thread 3067612516 created [18:14:19]Thread 3067469156 joined [18:14:19]Waiting for new connection... [18:14:19] Sock 7.Parse request [18:14:19]Sock 7.Check first char [18:14:19]Sock 7.First char is OK [18:14:19]request: POST /json_proto HTTP/1.0 [18:14:19]Method: POST [18:14:19]URL: /json_proto [18:14:19]Method is POST - this is cgi request [18:14:19]url: /json_proto [18:14:19]query_string will be loaded in cgi processing [18:14:19]execute_cgi json_proto POST (null) [18:14:19]execute_cgi path=json_proto method=POST [18:14:19]POST find Content-Length [18:14:19]Host: 172.17.45.67:8080 [18:14:19]Content-Length: 677 [18:14:19]Content-Type: application/json [18:14:19] [18:14:19]POST finish read [18:14:19]Found Content-Length = 677 [18:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:19]execute_script... [18:14:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:19]POST & json_proto [18:14:19]process_json_proto [18:14:19]json parsed OK: [18:14:19]protocol is kg_v1.0 [18:14:19]action value=close_receipt [18:14:19]process_action close_receipt [18:14:19]cmd_close_receipt [18:14:19]MH_GetDate [18:14:19]Write to MH i2c: F0 00 00 2F 0E 2C [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: F0 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: F0 09 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: F0 09 00 2F 0E 00 7C 2E C6 66 5F 7F 2B 66 7A [18:14:19]GetLastDocTimeStamp 1724263993 [18:14:19]current date 1724264060 [18:14:19]FM_GetShiftState [18:14:19]SAM_PROTO_GetShiftState [18:14:19]wFMCommunicate request_size=4 [18:14:19]MH_SAM_APDU [18:14:19]CAPDU: 80 13 01 00 [18:14:19]Write to MH i2c: E2 08 00 30 0E 80 13 01 00 00 00 00 00 BB [18:14:19]Write i2c OK [18:14:19]MH_I2C_Read... [18:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:19]Read from MH i2c: E2 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 0E 00 [18:14:19]MH_I2C_Read... [18:14:19]Read from MH i2c: E2 0E 00 30 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3B [18:14:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:14:19]wFMCommunicate OK [18:14:19]SAM_PROTO_GetShiftState done [18:14:19]FM_GetShiftState done [18:14:19]opened in 1724200467 [18:14:19]opened+sec_in_day 1724286867 [18:14:19]quantity*price = 60003 [18:14:19]sum+1 = 60004 [18:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 338 21.08.2024 18:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140321 ФПД: 248084311383169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181420&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140321&fm=248084311383169&tin=02508201610067®Number=0000000000092569&sum=60000 [18:14:20]StoreToDocumentArchive [18:14:20]shift 454 fd 140321 [18:14:20]save to /storage/0454/doc_00140321 [18:14:20]save last doc name /storage/0454/doc_00140321 to /storage/kkm_last_doc_name [18:14:20]save OK [18:14:20]Clear old archive folders... [18:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:20]tlvbuf is 00C29F10 [18:14:20]SAM_PROTO_ClearQueue [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 09 00 00 [18:14:20]Write to MH i2c: E2 08 00 3D 0E 80 09 00 00 00 00 00 00 BD [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:20]Read from MH i2c: E2 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 03 00 [18:14:20]MH_I2C_Read... [18:14:20]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [18:14:20]RAPDU: 90 00 [18:14:20]wFMCommunicate OK [18:14:20]SAM_PROTO_ClearQueue done [18:14:20]KKMCreateOFDPacket [18:14:20]OFDProtocolAddRootSTLVToBuf [18:14:20]FM_MakeSignedData [18:14:20]FM_MakeSignedData [18:14:20]SAM_PROTO_SignData [18:14:20]wFMCommunicate request_size=4 [18:14:20]MH_SAM_APDU [18:14:20]CAPDU: 80 0D 01 02 [18:14:20]Write to MH i2c: E2 08 00 3E 0E 80 0D 01 02 00 00 00 00 C5 [18:14:20]Write i2c OK [18:14:20]MH_I2C_Read... [18:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:21]Read from MH i2c: E2 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [18:14:21]RAPDU: 90 00 [18:14:21]wFMCommunicate OK [18:14:21]wFMCommunicate request_size=255 [18:14:21]MH_SAM_APDU [18:14: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 7C 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 24 02 00 35 04 06 00 E1 [18:14:21]Write to MH i2c: E2 02 01 3F 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 7C 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 24 02 00 35 04 06 00 E1 00 00 2D [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:21]Read from MH i2c: E2 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [18:14:21]RAPDU: 90 00 [18:14:21]wFMCommunicate OK [18:14:21]wFMCommunicate request_size=10 [18:14:21]MH_SAM_APDU [18:14:21]CAPDU: 80 0D 02 02 05 A1 A1 41 1C 81 [18:14:21]Write to MH i2c: E2 0D 00 40 0E 80 0D 02 02 05 00 A1 A1 41 1C 81 00 00 F2 [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:21]Read from MH i2c: E2 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [18:14:21]RAPDU: 90 00 [18:14:21]wFMCommunicate OK [18:14:21]wFMCommunicate request_size=4 [18:14:21]MH_SAM_APDU [18:14:21]CAPDU: 80 0D 03 02 [18:14:21]Write to MH i2c: E2 08 00 41 0E 80 0D 03 02 00 00 00 00 CA [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]OFD Sender: No OFD packet to send [18:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:21]Read from MH i2c: E2 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 0B 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 0B 00 41 0E 00 09 70 9E 0A 58 17 B4 C4 90 00 D3 [18:14:21]RAPDU: 09 70 9E 0A 58 17 B4 C4 90 00 [18:14:21]wFMCommunicate OK [18:14:21]SAM_PROTO_SignData done [18:14:21]FM_MakeSignedData done [18:14:21]CreateOFDProtocolMessage [18:14:21]wFMCommunicate request_size=4 [18:14:21]MH_SAM_APDU [18:14:21]CAPDU: 80 11 00 00 [18:14:21]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:21]Read from MH i2c: E2 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 17 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 21 [18:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:14:21]wFMCommunicate OK [18:14:21]CreateOFDProtocolMessage done [18:14:21]OFDSenderStorePacket 140321 [18:14:21]StoreOFDPacket docnum=140321 [18:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 1C 07 01 AD 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 7C 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 24 02 00 35 04 06 00 E1 A1 A1 41 1C 81 09 70 9E 0A 58 17 B4 C4 [18:14:21]CheckFolder [18:14:21]dirname=/storage/ofd_packets [18:14:21]CheckFolder done [18:14:21]ProducePacketName [18:14:21]name=ofd_packets/00140321 [18:14:21]NVStorageSaveData ofd_packets/00140321 [18:14:21]File name is /storage/ofd_packets/00140321 [18:14:21]Write 301 bytes [18:14:21]NVStorageSaveData done [18:14:21]OFDSenderStorePacket done [18:14:21]KKMCreateOFDPacket done [18:14:21]NVStorageSaveData kkm_last_timestamp [18:14:21]File name is /storage/kkm_last_timestamp [18:14:21]Write 4 bytes [18:14:21]NVStorageSaveData done [18:14:21]ExternCall_PrintAddStr [18:14:21]wPrintStart [18:14:21]Write to MH i2c: 01 00 00 43 0E 51 [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 07 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [18:14:21]RasterBufferAndPrint [18:14:21]line Счет N : (1)594179 [18:14:21]line ИНН: 02508201610067 [18:14:21]line Контрольно-Кассовый Чек [18:14:21]line ПРОДАЖА [18:14:21]line ТРК (МРК, ГНК) : 42 [18:14:21]line Товар: 2710124130 [18:14:21]line Аи-92-К-5 [18:14:21]line 8.850 * 67.80 [18:14:21]line = 600.03 [18:14:21]line НДС 12% НСП 1% [18:14:21]line > о реализуемом товаре [18:14:21]line ОКРУГЛЕНИЕ: -0.03 [18:14:21]line ИТОГО: 600.00 [18:14:21]line Внесено: 600.00 [18:14:21]line СДАЧА: 0.00 [18:14:21]line НСП 1% : 5.31 [18:14:21]line НДС 12% : 63.72 [18:14:21]line Наличными: 600.00 [18:14:21]line Безнал.: 0.00 [18:14:21]line Место: АЗС № 136 "Партнер Нефть" [18:14:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:14:21]line СНО: Общий режим [18:14:21]line Чек 338 21.08.2024 18:14 [18:14:21]line Смена: 454 ФФД: 1.0 [18:14:21]line ЗНМ: 0300000067 [18:14:21]line РНМ: 0000000000092569 [18:14:21]line Версия ККМ: 001 [18:14:21]line ФМ: 0000000000871776 [18:14:21]line ФД: 140321 [18:14:21]line ФПД: 248084311383169 [18:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181420&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140321&fm=248084311383169&tin=02508201610067®Number=0000000000092569&sum=60000 [18:14:21]OFD Sender: Processing packet 140321 [packets to send 137, broken 136] [18:14:21]ProducePacketName [18:14:21]name=ofd_packets/00140321 [18:14:21]OFD Sender: To server: pG, [18:14:21]CommunicateWithHost lk.salyk.kg:30040 [18:14:21]ConnectInit lk.salyk.kg [18:14:21]written 0, free lines is 4095 [18:14:21]Connected sock=9 [18:14:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F5 1C 07 01 AD 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 7C 2E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 21 24 02 00 35 04 06 00 E1 A1 A1 41 1C 81 09 70 9E 0A 58 17 B4 C4 [18:14: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 37 36 4F 00 00 00 9B 55 47 00 4B 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 37 36 10 04 04 00 21 24 02 00 F4 03 04 00 0C D5 C5 66 B6 04 01 00 00 F9 FE 54 93 22 50 78 63 [18:14:21]CommunicateWithHost err = 0 [18:14:21]CheckOFDResponse [18:14:21]1017 (14) - 77093643461234 [18:14:21]1041 (16) - 0000000000871776 [18:14:21]1040 (4) - 140321 [18:14:21]1012 (4) - 21.08.2024 11:52 [18:14:21]1206 (1) - 0 [18:14:21]OFD Sender: Remove packet 140321 [18:14:21]ProducePacketName [18:14:21]name=ofd_packets/00140321 [18:14:21]NVStorageDeleteData [18:14:21]Write to MH i2c: 01 00 00 6E 0E 7C [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 07 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 DE 0C 6D [18:14:21]RasterBufferAndPrint [18:14:21]line [18:14:21]line [18:14:21]line [18:14:21]line [18:14:21]line [18:14:21]written 0, free lines is 3301 [18:14:21]MH_Cut [18:14:21]Write to MH i2c: D1 01 00 75 0E 01 55 [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: D1 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: D1 01 00 [18:14:21]MH_I2C_Read... [18:14:21]Read from MH i2c: D1 01 00 75 0E 00 54 [18:14:21]Write to MH i2c: 01 00 00 76 0E 84 [18:14:21]Write i2c OK [18:14:21]MH_I2C_Read... [18:14:22]OFD Sender: No OFD packet to send [18:14:22]*** Cut start [18:14:22]*** Partial cut [18:14:22]*** CUTSNS_PIN = 1 [18:14:22]*** CUTSNS_PIN = 0 [18:14:22]*** Brake cut motor [18:14:23]Read from MH i2c: 01 [18:14:23]MH_I2C_Read... [18:14:23]*** Stop cut motor [18:14:23]*** Cut end [18:14:23]Read from MH i2c: 01 07 00 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [18:14:23]process_action close_receipt done [18:14:23]requested_data is exist [18:14:23]produce_requested_data [18:14:23]requested_item fm.sn is exist - process it [18:14:23]wFMCommunicate request_size=4 [18:14:23]MH_SAM_APDU [18:14:23]CAPDU: 80 11 00 00 [18:14:23]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [18:14:23]Write i2c OK [18:14:23]MH_I2C_Read... [18:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:23]Read from MH i2c: E2 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 17 00 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 56 [18:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:14:23]wFMCommunicate OK [18:14:23]requested_item fd.num is exist - process it [18:14:23]SAM_PROTO_GetFieldsCounters [18:14:23]wFMCommunicate request_size=4 [18:14:23]MH_SAM_APDU [18:14:23]CAPDU: 80 13 00 00 [18:14:23]Write to MH i2c: E2 08 00 78 0E 80 13 00 00 00 00 00 00 02 [18:14:23]Write i2c OK [18:14:23]MH_I2C_Read... [18:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:23]Read from MH i2c: E2 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 62 00 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 62 00 78 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 24 02 00 0E 04 04 00 C6 01 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 34 [18:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 21 24 02 00 0E 04 04 00 C6 01 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 [18:14:23]wFMCommunicate OK [18:14:23]SAM_PROTO_GetFieldsCounters done [18:14:23]requested_item shift.num is exist - process it [18:14:23]requested_item shift.opened is exist - process it [18:14:23]req_shift_opened [18:14:23]FM_GetShiftState [18:14:23]SAM_PROTO_GetShiftState [18:14:23]wFMCommunicate request_size=4 [18:14:23]MH_SAM_APDU [18:14:23]CAPDU: 80 13 01 00 [18:14:23]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [18:14:23]Write i2c OK [18:14:23]MH_I2C_Read... [18:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:23]Read from MH i2c: E2 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 0E 00 [18:14:23]MH_I2C_Read... [18:14:23]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 84 [18:14:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:14:23]wFMCommunicate OK [18:14:23]SAM_PROTO_GetShiftState done [18:14:23]FM_GetShiftState done [18:14:23]req_shift_opened done [18:14:23]requested_item shift.open_date is exist - process it [18:14:23]req_shift_open_date [18:14:23]req_shift_open_date done [18:14:23]produce_requested_data done [18:14:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140321,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:14:23]process_action_free close_receipt [18:14:23]json_value_free [18:14:23]json_value_free done [18:14:23]process_json_proto returns [18:14:23]Send response to host [18:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140321,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:14:23]free response buf [18:14:23]execute_script done [18:14:23]execute_script returns [18:14:23]free content buf [18:14:23]Sock 7.Close socket [18:14:23]Sock 7.Thread stoped [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:33]accept exits with 10 [18:16:33]New connection [18:16:33]New thread 3067469156 created [18:16:33]Thread 3067612516 joined [18:16:33]Waiting for new connection... [18:16:33] Sock 10.Parse request [18:16:33]Sock 10.Check first char [18:16:33]Sock 10.First char is OK [18:16:33]request: POST /json_proto HTTP/1.0 [18:16:33]Method: POST [18:16:33]URL: /json_proto [18:16:33]Method is POST - this is cgi request [18:16:33]url: /json_proto [18:16:33]query_string will be loaded in cgi processing [18:16:33]execute_cgi json_proto POST (null) [18:16:33]execute_cgi path=json_proto method=POST [18:16:33]POST find Content-Length [18:16:33]Host: 172.17.45.67:8080 [18:16:33]Content-Length: 682 [18:16:33]Content-Type: application/json [18:16:33] [18:16:33]POST finish read [18:16:33]Found Content-Length = 682 [18:16:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:33]execute_script... [18:16: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)594181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:33]POST & json_proto [18:16:33]process_json_proto [18:16:33]json parsed OK: [18:16:33]protocol is kg_v1.0 [18:16:33]action value=close_receipt [18:16:33]process_action close_receipt [18:16:33]cmd_close_receipt [18:16:33]MH_GetDate [18:16:33]Write to MH i2c: F0 00 00 7A 0E 77 [18:16:33]Write i2c OK [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: F0 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: F0 09 00 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: F0 09 00 7A 0E 00 02 2F C6 66 5F 7F 2B 66 4C [18:16:33]GetLastDocTimeStamp 1724264060 [18:16:33]current date 1724264194 [18:16:33]FM_GetShiftState [18:16:33]SAM_PROTO_GetShiftState [18:16:33]wFMCommunicate request_size=4 [18:16:33]MH_SAM_APDU [18:16:33]CAPDU: 80 13 01 00 [18:16:33]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [18:16:33]Write i2c OK [18:16:33]MH_I2C_Read... [18:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:33]Read from MH i2c: E2 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: E2 0E 00 [18:16:33]MH_I2C_Read... [18:16:33]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 86 [18:16:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:16:33]wFMCommunicate OK [18:16:33]SAM_PROTO_GetShiftState done [18:16:33]FM_GetShiftState done [18:16:33]opened in 1724200467 [18:16:33]opened+sec_in_day 1724286867 [18:16:33]quantity*price = 150032 [18:16:33]sum+1 = 150033 [18:16:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 339 21.08.2024 18:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140322 ФПД: 211181898925816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140322&fm=211181898925816&tin=02508201610067®Number=0000000000092569&sum=150000 [18:16:35]StoreToDocumentArchive [18:16:35]shift 454 fd 140322 [18:16:35]save to /storage/0454/doc_00140322 [18:16:35]save last doc name /storage/0454/doc_00140322 to /storage/kkm_last_doc_name [18:16:35]save OK [18:16:35]Clear old archive folders... [18:16:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:35]tlvbuf is 00CC0050 [18:16:35]SAM_PROTO_ClearQueue [18:16:35]wFMCommunicate request_size=4 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 09 00 00 [18:16:35]Write to MH i2c: E2 08 00 88 0E 80 09 00 00 00 00 00 00 08 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [18:16:35]RAPDU: 90 00 [18:16:35]wFMCommunicate OK [18:16:35]SAM_PROTO_ClearQueue done [18:16:35]KKMCreateOFDPacket [18:16:35]OFDProtocolAddRootSTLVToBuf [18:16:35]FM_MakeSignedData [18:16:35]FM_MakeSignedData [18:16:35]SAM_PROTO_SignData [18:16:35]wFMCommunicate request_size=4 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 0D 01 02 [18:16:35]Write to MH i2c: E2 08 00 89 0E 80 0D 01 02 00 00 00 00 10 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [18:16:35]RAPDU: 90 00 [18:16:35]wFMCommunicate OK [18:16:35]wFMCommunicate request_size=255 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 02 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 24 02 00 35 04 06 00 C0 [18:16:35]Write to MH i2c: E2 02 01 8A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 02 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 24 02 00 35 04 06 00 C0 00 00 8C [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [18:16:35]RAPDU: 90 00 [18:16:35]wFMCommunicate OK [18:16:35]wFMCommunicate request_size=10 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 0D 02 02 05 11 9E 11 86 F8 [18:16:35]Write to MH i2c: E2 0D 00 8B 0E 80 0D 02 02 05 00 11 9E 11 86 F8 00 00 5B [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [18:16:35]RAPDU: 90 00 [18:16:35]wFMCommunicate OK [18:16:35]wFMCommunicate request_size=4 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 0D 03 02 [18:16:35]Write to MH i2c: E2 08 00 8C 0E 80 0D 03 02 00 00 00 00 15 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 0B 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 0B 00 8C 0E 00 B1 01 03 50 A5 56 20 CC 90 00 02 [18:16:35]RAPDU: B1 01 03 50 A5 56 20 CC 90 00 [18:16:35]wFMCommunicate OK [18:16:35]SAM_PROTO_SignData done [18:16:35]FM_MakeSignedData done [18:16:35]CreateOFDProtocolMessage [18:16:35]wFMCommunicate request_size=4 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 11 00 00 [18:16:35]Write to MH i2c: E2 08 00 8D 0E 80 11 00 00 00 00 00 00 15 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 17 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 17 00 8D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6C [18:16:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:16:35]wFMCommunicate OK [18:16:35]CreateOFDProtocolMessage done [18:16:35]OFDSenderStorePacket 140322 [18:16:35]StoreOFDPacket docnum=140322 [18:16:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 77 D9 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 02 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 24 02 00 35 04 06 00 C0 11 9E 11 86 F8 B1 01 03 50 A5 56 20 CC [18:16:35]CheckFolder [18:16:35]dirname=/storage/ofd_packets [18:16:35]CheckFolder done [18:16:35]ProducePacketName [18:16:35]name=ofd_packets/00140322 [18:16:35]NVStorageSaveData ofd_packets/00140322 [18:16:35]File name is /storage/ofd_packets/00140322 [18:16:35]Write 301 bytes [18:16:35]NVStorageSaveData done [18:16:35]OFDSenderStorePacket done [18:16:35]KKMCreateOFDPacket done [18:16:35]NVStorageSaveData kkm_last_timestamp [18:16:35]File name is /storage/kkm_last_timestamp [18:16:35]Write 4 bytes [18:16:35]NVStorageSaveData done [18:16:35]ExternCall_PrintAddStr [18:16:35]wPrintStart [18:16:35]Write to MH i2c: 01 00 00 8E 0E 9C [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: 01 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: 01 07 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [18:16:35]RasterBufferAndPrint [18:16:35]line Счет N : (1)594181 [18:16:35]line ИНН: 02508201610067 [18:16:35]line Контрольно-Кассовый Чек [18:16:35]line ПРОДАЖА [18:16:35]line ТРК (МРК, ГНК) : 31 [18:16:35]line Товар: 2710124500 [18:16:35]line Аи-95-К-5 [18:16:35]line 20.220 * 74.20 [18:16:35]line = 1500.32 [18:16:35]line НДС 12% НСП 1% [18:16:35]line > о реализуемом товаре [18:16:35]line ОКРУГЛЕНИЕ: -0.32 [18:16:35]line ИТОГО: 1500.00 [18:16:35]line Внесено: 1500.00 [18:16:35]line СДАЧА: 0.00 [18:16:35]line НСП 1% : 13.28 [18:16:35]line НДС 12% : 159.33 [18:16:35]line Наличными: 1500.00 [18:16:35]line Безнал.: 0.00 [18:16:35]line Место: АЗС № 136 "Партнер Нефть" [18:16:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:16:35]line СНО: Общий режим [18:16:35]line Чек 339 21.08.2024 18:16 [18:16:35]line Смена: 454 ФФД: 1.0 [18:16:35]line ЗНМ: 0300000067 [18:16:35]line РНМ: 0000000000092569 [18:16:35]line Версия ККМ: 001 [18:16:35]line ФМ: 0000000000871776 [18:16:35]line ФД: 140322 [18:16:35]line ФПД: 211181898925816 [18:16:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140322&fm=211181898925816&tin=02508201610067®Number=0000000000092569&sum=150000 [18:16:35]OFD Sender: Processing packet 140322 [packets to send 137, broken 136] [18:16:35]ProducePacketName [18:16:35]name=ofd_packets/00140322 [18:16:35]OFD Sender: To server: pG, [18:16:35]CommunicateWithHost lk.salyk.kg:30040 [18:16:35]ConnectInit lk.salyk.kg [18:16:35]written 0, free lines is 4095 [18:16:36]Connected sock=9 [18:16: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 37 36 0F 01 00 00 77 D9 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 02 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 24 02 00 35 04 06 00 C0 11 9E 11 86 F8 B1 01 03 50 A5 56 20 CC [18:16: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 37 36 4F 00 00 00 B9 17 47 00 54 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 22 24 02 00 F4 03 04 00 92 D5 C5 66 B6 04 01 00 00 04 F2 1D 77 84 BF 64 D5 [18:16:36]CommunicateWithHost err = 0 [18:16:36]CheckOFDResponse [18:16:36]1017 (14) - 77093643461234 [18:16:36]1041 (16) - 0000000000871776 [18:16:36]1040 (4) - 140322 [18:16:36]1012 (4) - 21.08.2024 11:54 [18:16:36]1206 (1) - 0 [18:16:36]OFD Sender: Remove packet 140322 [18:16:36]ProducePacketName [18:16:36]name=ofd_packets/00140322 [18:16:36]NVStorageDeleteData [18:16:36]Write to MH i2c: 01 00 00 B9 0E C7 [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: 01 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: 01 07 00 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 DD 0C B7 [18:16:36]RasterBufferAndPrint [18:16:36]line [18:16:36]line [18:16:36]line [18:16:36]line [18:16:36]line [18:16:36]written 0, free lines is 3302 [18:16:36]MH_Cut [18:16:36]Write to MH i2c: D1 01 00 C0 0E 01 A0 [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: D1 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: D1 01 00 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: D1 01 00 C0 0E 00 9F [18:16:36]Write to MH i2c: 01 00 00 C1 0E CF [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]OFD Sender: No OFD packet to send [18:16:37]*** Cut start [18:16:37]*** Partial cut [18:16:37]*** CUTSNS_PIN = 1 [18:16:37]*** CUTSNS_PIN = 0 [18:16:37]*** Brake cut motor [18:16:37]Read from MH i2c: 01 [18:16:37]MH_I2C_Read... [18:16:37]*** Stop cut motor [18:16:37]*** Cut end [18:16:37]Read from MH i2c: 01 07 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [18:16:37]process_action close_receipt done [18:16:37]requested_data is exist [18:16:37]produce_requested_data [18:16:37]requested_item fm.sn is exist - process it [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 11 00 00 [18:16:37]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 17 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A1 [18:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:16:37]wFMCommunicate OK [18:16:37]requested_item fd.num is exist - process it [18:16:37]SAM_PROTO_GetFieldsCounters [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 13 00 00 [18:16:37]Write to MH i2c: E2 08 00 C3 0E 80 13 00 00 00 00 00 00 4D [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 62 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 62 00 C3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 24 02 00 0E 04 04 00 C6 01 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 83 [18:16: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 22 24 02 00 0E 04 04 00 C6 01 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 [18:16:37]wFMCommunicate OK [18:16:37]SAM_PROTO_GetFieldsCounters done [18:16:37]requested_item shift.num is exist - process it [18:16:37]requested_item shift.opened is exist - process it [18:16:37]req_shift_opened [18:16:37]FM_GetShiftState [18:16:37]SAM_PROTO_GetShiftState [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 13 01 00 [18:16:37]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:37]Read from MH i2c: E2 0E 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CF [18:16:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:16:37]wFMCommunicate OK [18:16:37]SAM_PROTO_GetShiftState done [18:16:37]FM_GetShiftState done [18:16:37]req_shift_opened done [18:16:37]requested_item shift.open_date is exist - process it [18:16:37]req_shift_open_date [18:16:37]req_shift_open_date done [18:16:37]produce_requested_data done [18:16:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140322,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:16:37]process_action_free close_receipt [18:16:37]json_value_free [18:16:37]json_value_free done [18:16:37]process_json_proto returns [18:16:37]Send response to host [18:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140322,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:16:37]free response buf [18:16:37]execute_script done [18:16:37]execute_script returns [18:16:37]free content buf [18:16:37]Sock 10.Close socket [18:16:37]Sock 10.Thread stoped [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:16:57]accept exits with 7 [18:16:57]New connection [18:16:57]New thread 3067612516 created [18:16:57]Thread 3067469156 joined [18:16:57]Waiting for new connection... [18:16:57] Sock 7.Parse request [18:16:57]Sock 7.Check first char [18:16:57]Sock 7.First char is OK [18:16:57]request: POST /json_proto HTTP/1.0 [18:16:57]Method: POST [18:16:57]URL: /json_proto [18:16:57]Method is POST - this is cgi request [18:16:57]url: /json_proto [18:16:57]query_string will be loaded in cgi processing [18:16:57]execute_cgi json_proto POST (null) [18:16:57]execute_cgi path=json_proto method=POST [18:16:57]POST find Content-Length [18:16:57]Host: 172.17.45.67:8080 [18:16:57]Content-Length: 682 [18:16:57]Content-Type: application/json [18:16:57] [18:16:57]POST finish read [18:16:57]Found Content-Length = 682 [18:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:57]execute_script... [18:16:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:57]POST & json_proto [18:16:57]process_json_proto [18:16:57]json parsed OK: [18:16:57]protocol is kg_v1.0 [18:16:57]action value=close_receipt [18:16:57]process_action close_receipt [18:16:57]cmd_close_receipt [18:16:57]MH_GetDate [18:16:57]Write to MH i2c: F0 00 00 C5 0E C2 [18:16:57]Write i2c OK [18:16:57]MH_I2C_Read... [18:16:57]Read from MH i2c: F0 [18:16:57]MH_I2C_Read... [18:16:57]Read from MH i2c: F0 09 00 [18:16:57]MH_I2C_Read... [18:16:57]Read from MH i2c: F0 09 00 C5 0E 00 1A 2F C6 66 5F 7F 2B 66 AF [18:16:57]GetLastDocTimeStamp 1724264194 [18:16:57]current date 1724264218 [18:16:57]FM_GetShiftState [18:16:57]SAM_PROTO_GetShiftState [18:16:57]wFMCommunicate request_size=4 [18:16:57]MH_SAM_APDU [18:16:57]CAPDU: 80 13 01 00 [18:16:57]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [18:16:57]Write i2c OK [18:16:57]MH_I2C_Read... [18:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:57]Read from MH i2c: E2 [18:16:57]MH_I2C_Read... [18:16:57]Read from MH i2c: E2 0E 00 [18:16:57]MH_I2C_Read... [18:16:57]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D1 [18:16:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:16:57]wFMCommunicate OK [18:16:57]SAM_PROTO_GetShiftState done [18:16:57]FM_GetShiftState done [18:16:57]opened in 1724200467 [18:16:57]opened+sec_in_day 1724286867 [18:16:57]quantity*price = 200043 [18:16:57]sum+1 = 200044 [18:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 340 21.08.2024 18:16 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140323 ФПД: 46666584270782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181658&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140323&fm=46666584270782&tin=02508201610067®Number=0000000000092569&sum=200000 [18:16:59]StoreToDocumentArchive [18:16:59]shift 454 fd 140323 [18:16:59]save to /storage/0454/doc_00140323 [18:16:59]save last doc name /storage/0454/doc_00140323 to /storage/kkm_last_doc_name [18:16:59]save OK [18:16:59]Clear old archive folders... [18:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:59]tlvbuf is 00C2A2C0 [18:16:59]SAM_PROTO_ClearQueue [18:16:59]wFMCommunicate request_size=4 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 09 00 00 [18:16:59]Write to MH i2c: E2 08 00 D3 0E 80 09 00 00 00 00 00 00 53 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [18:16:59]RAPDU: 90 00 [18:16:59]wFMCommunicate OK [18:16:59]SAM_PROTO_ClearQueue done [18:16:59]KKMCreateOFDPacket [18:16:59]OFDProtocolAddRootSTLVToBuf [18:16:59]FM_MakeSignedData [18:16:59]FM_MakeSignedData [18:16:59]SAM_PROTO_SignData [18:16:59]wFMCommunicate request_size=4 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 0D 01 02 [18:16:59]Write to MH i2c: E2 08 00 D4 0E 80 0D 01 02 00 00 00 00 5B [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 D4 0E 00 90 00 56 [18:16:59]RAPDU: 90 00 [18:16:59]wFMCommunicate OK [18:16:59]wFMCommunicate request_size=255 [18:16:59]MH_SAM_APDU [18:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1A 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 24 02 00 35 04 06 00 2A [18:16:59]Write to MH i2c: E2 02 01 D5 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1A 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 24 02 00 35 04 06 00 2A 00 00 A0 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [18:16:59]RAPDU: 90 00 [18:16:59]wFMCommunicate OK [18:16:59]wFMCommunicate request_size=10 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 0D 02 02 05 71 69 2D A7 BE [18:16:59]Write to MH i2c: E2 0D 00 D6 0E 80 0D 02 02 05 00 71 69 2D A7 BE 00 00 D4 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [18:16:59]RAPDU: 90 00 [18:16:59]wFMCommunicate OK [18:16:59]wFMCommunicate request_size=4 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 0D 03 02 [18:16:59]Write to MH i2c: E2 08 00 D7 0E 80 0D 03 02 00 00 00 00 60 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 0B 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 0B 00 D7 0E 00 D5 09 F2 93 DD E8 C5 F9 90 00 47 [18:16:59]RAPDU: D5 09 F2 93 DD E8 C5 F9 90 00 [18:16:59]wFMCommunicate OK [18:16:59]SAM_PROTO_SignData done [18:16:59]FM_MakeSignedData done [18:16:59]CreateOFDProtocolMessage [18:16:59]wFMCommunicate request_size=4 [18:16:59]MH_SAM_APDU [18:16:59]CAPDU: 80 11 00 00 [18:16:59]Write to MH i2c: E2 08 00 D8 0E 80 11 00 00 00 00 00 00 60 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:59]Read from MH i2c: E2 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 17 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: E2 17 00 D8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B7 [18:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:16:59]wFMCommunicate OK [18:16:59]CreateOFDProtocolMessage done [18:16:59]OFDSenderStorePacket 140323 [18:16:59]StoreOFDPacket docnum=140323 [18:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4E 54 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1A 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 24 02 00 35 04 06 00 2A 71 69 2D A7 BE D5 09 F2 93 DD E8 C5 F9 [18:16:59]CheckFolder [18:16:59]dirname=/storage/ofd_packets [18:16:59]CheckFolder done [18:16:59]ProducePacketName [18:16:59]name=ofd_packets/00140323 [18:16:59]NVStorageSaveData ofd_packets/00140323 [18:16:59]File name is /storage/ofd_packets/00140323 [18:16:59]Write 301 bytes [18:16:59]NVStorageSaveData done [18:16:59]OFDSenderStorePacket done [18:16:59]KKMCreateOFDPacket done [18:16:59]NVStorageSaveData kkm_last_timestamp [18:16:59]File name is /storage/kkm_last_timestamp [18:16:59]Write 4 bytes [18:16:59]NVStorageSaveData done [18:16:59]ExternCall_PrintAddStr [18:16:59]wPrintStart [18:16:59]Write to MH i2c: 01 00 00 D9 0E E7 [18:16:59]Write i2c OK [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: 01 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: 01 07 00 [18:16:59]MH_I2C_Read... [18:16:59]Read from MH i2c: 01 07 00 D9 0E 00 00 00 00 00 FF 0F FC [18:16:59]RasterBufferAndPrint [18:16:59]line Счет N : (1)594180 [18:16:59]line ИНН: 02508201610067 [18:16:59]line Контрольно-Кассовый Чек [18:16:59]line ПРОДАЖА [18:16:59]line ТРК (МРК, ГНК) : 61 [18:16:59]line Товар: 2710124500 [18:16:59]line Аи-95-К-5 [18:16:59]line 26.960 * 74.20 [18:16:59]line = 2000.43 [18:16:59]line НДС 12% НСП 1% [18:16:59]line > о реализуемом товаре [18:16:59]line ОКРУГЛЕНИЕ: -0.43 [18:16:59]line ИТОГО: 2000.00 [18:16:59]line Внесено: 2000.00 [18:16:59]line СДАЧА: 0.00 [18:16:59]line НСП 1% : 17.70 [18:16:59]line НДС 12% : 212.43 [18:16:59]line Наличными: 2000.00 [18:16:59]line Безнал.: 0.00 [18:16:59]line Место: АЗС № 136 "Партнер Нефть" [18:16:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:16:59]line СНО: Общий режим [18:16:59]line Чек 340 21.08.2024 18:16 [18:16:59]line Смена: 454 ФФД: 1.0 [18:16:59]line ЗНМ: 0300000067 [18:16:59]line РНМ: 0000000000092569 [18:16:59]line Версия ККМ: 001 [18:16:59]line ФМ: 0000000000871776 [18:16:59]line ФД: 140323 [18:16:59]line ФПД: 46666584270782 [18:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T181658&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140323&fm=46666584270782&tin=02508201610067®Number=0000000000092569&sum=200000 [18:16:59]written 0, free lines is 4095 [18:16:59]OFD Sender: Processing packet 140323 [packets to send 137, broken 136] [18:16:59]ProducePacketName [18:16:59]name=ofd_packets/00140323 [18:16:59]OFD Sender: To server: pG, [18:16:59]CommunicateWithHost lk.salyk.kg:30040 [18:16:59]ConnectInit lk.salyk.kg [18:16:59]Connected sock=10 [18:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4E 54 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 1A 2F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 23 24 02 00 35 04 06 00 2A 71 69 2D A7 BE D5 09 F2 93 DD E8 C5 F9 [18:17:00]Write to MH i2c: 01 00 00 04 0F 13 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 07 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 DD 0C 03 [18:17:00]RasterBufferAndPrint [18:17:00]line [18:17:00]line [18:17:00]line [18:17:00]line [18:17:00]line [18:17:00]written 0, free lines is 3299 [18:17: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 37 36 4F 00 00 00 1F 96 47 00 CC 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 37 36 10 04 04 00 23 24 02 00 F4 03 04 00 AA D5 C5 66 B6 04 01 00 00 CB 79 6A 4B A9 1C 6D E8 [18:17:00]CommunicateWithHost err = 0 [18:17:00]CheckOFDResponse [18:17:00]1017 (14) - 77093643461234 [18:17:00]1041 (16) - 0000000000871776 [18:17:00]1040 (4) - 140323 [18:17:00]1012 (4) - 21.08.2024 11:55 [18:17:00]1206 (1) - 0 [18:17:00]OFD Sender: Remove packet 140323 [18:17:00]ProducePacketName [18:17:00]name=ofd_packets/00140323 [18:17:00]NVStorageDeleteData [18:17:00]MH_Cut [18:17:00]Write to MH i2c: D1 01 00 0B 0F 01 EC [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: D1 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: D1 01 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: D1 01 00 0B 0F 00 EB [18:17:00]Write to MH i2c: 01 00 00 0C 0F 1B [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]OFD Sender: No OFD packet to send [18:17:00]*** Cut start [18:17:00]*** Partial cut [18:17:00]*** CUTSNS_PIN = 1 [18:17:00]*** CUTSNS_PIN = 0 [18:17:00]*** Brake cut motor [18:17:01]Read from MH i2c: 01 [18:17:01]MH_I2C_Read... [18:17:01]*** Stop cut motor [18:17:01]*** Cut end [18:17:01]Read from MH i2c: 01 07 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [18:17:01]process_action close_receipt done [18:17:01]requested_data is exist [18:17:01]produce_requested_data [18:17:01]requested_item fm.sn is exist - process it [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 11 00 00 [18:17:01]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 17 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [18:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:17:01]wFMCommunicate OK [18:17:01]requested_item fd.num is exist - process it [18:17:01]SAM_PROTO_GetFieldsCounters [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 13 00 00 [18:17:01]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 62 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 62 00 0E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 24 02 00 0E 04 04 00 C6 01 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 D3 [18:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 23 24 02 00 0E 04 04 00 C6 01 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 [18:17:01]wFMCommunicate OK [18:17:01]SAM_PROTO_GetFieldsCounters done [18:17:01]requested_item shift.num is exist - process it [18:17:01]requested_item shift.opened is exist - process it [18:17:01]req_shift_opened [18:17:01]FM_GetShiftState [18:17:01]SAM_PROTO_GetShiftState [18:17:01]wFMCommunicate request_size=4 [18:17:01]MH_SAM_APDU [18:17:01]CAPDU: 80 13 01 00 [18:17:01]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [18:17:01]Write i2c OK [18:17:01]MH_I2C_Read... [18:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:01]Read from MH i2c: E2 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 0E 00 [18:17:01]MH_I2C_Read... [18:17:01]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1B [18:17:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:17:01]wFMCommunicate OK [18:17:01]SAM_PROTO_GetShiftState done [18:17:01]FM_GetShiftState done [18:17:01]req_shift_opened done [18:17:01]requested_item shift.open_date is exist - process it [18:17:01]req_shift_open_date [18:17:01]req_shift_open_date done [18:17:01]produce_requested_data done [18:17:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140323,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:17:01]process_action_free close_receipt [18:17:01]json_value_free [18:17:01]json_value_free done [18:17:01]process_json_proto returns [18:17:01]Send response to host [18:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140323,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:17:01]free response buf [18:17:01]execute_script done [18:17:01]execute_script returns [18:17:01]free content buf [18:17:01]Sock 7.Close socket [18:17:01]Sock 7.Thread stoped [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:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:26]int [18:20:26]Write to MH i2c: 01 00 00 10 0F 1F [18:20:26]*** FLAG_PRN_KEY set [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 10 0F 00 08 00 00 00 FF 0F 3C [18:20:26]state=0 [18:20:26]Key pressed [18:20:26]Feed [18:20:26]Write to MH i2c: D8 00 00 11 0F F7 [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: D8 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: D8 01 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: D8 01 00 11 0F 00 F8 [18:20:26]int [18:20:26]Write to MH i2c: 01 00 00 12 0F 21 [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 12 0F 00 48 00 00 00 3C 00 AC [18:20:26]state=2 [18:20:26]Key pressed [18:20:26]int [18:20:26]Write to MH i2c: 01 00 00 13 0F 22 [18:20:26]*** FLAG_PRN_KEY reset [18:20:26]Write i2c OK [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 F6 0F 2E [18:20:26]state=2 [18:20:26]Stop feed [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:31]accept exits with 9 [18:21:31]New connection [18:21:31]New thread 3067469156 created [18:21:31]Thread 3067612516 joined [18:21:31]Waiting for new connection... [18:21:31] Sock 9.Parse request [18:21:31]Sock 9.Check first char [18:21:31]Sock 9.First char is OK [18:21:31]request: POST /json_proto HTTP/1.0 [18:21:31]Method: POST [18:21:31]URL: /json_proto [18:21:31]Method is POST - this is cgi request [18:21:31]url: /json_proto [18:21:31]query_string will be loaded in cgi processing [18:21:31]execute_cgi json_proto POST (null) [18:21:31]execute_cgi path=json_proto method=POST [18:21:31]POST find Content-Length [18:21:31]Host: 172.17.45.67:8080 [18:21:31]Content-Length: 682 [18:21:31]Content-Type: application/json [18:21:31] [18:21:31]POST finish read [18:21:31]Found Content-Length = 682 [18:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:31]execute_script... [18:21: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)594182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:31]POST & json_proto [18:21:31]process_json_proto [18:21:31]json parsed OK: [18:21:31]protocol is kg_v1.0 [18:21:31]action value=close_receipt [18:21:31]process_action close_receipt [18:21:31]cmd_close_receipt [18:21:31]MH_GetDate [18:21:31]Write to MH i2c: F0 00 00 14 0F 12 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: F0 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: F0 09 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: F0 09 00 14 0F 00 2C 30 C6 66 5F 7F 2B 66 12 [18:21:31]GetLastDocTimeStamp 1724264218 [18:21:31]current date 1724264492 [18:21:31]FM_GetShiftState [18:21:31]SAM_PROTO_GetShiftState [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 13 01 00 [18:21:31]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 21 [18:21:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_GetShiftState done [18:21:31]FM_GetShiftState done [18:21:31]opened in 1724200467 [18:21:31]opened+sec_in_day 1724286867 [18:21:31]quantity*price = 150032 [18:21:31]sum+1 = 150033 [18:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 341 21.08.2024 18:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140324 ФПД: 135667776497727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140324&fm=135667776497727&tin=02508201610067®Number=0000000000092569&sum=150000 [18:21:32]StoreToDocumentArchive [18:21:32]shift 454 fd 140324 [18:21:32]save to /storage/0454/doc_00140324 [18:21:32]save last doc name /storage/0454/doc_00140324 to /storage/kkm_last_doc_name [18:21:32]save OK [18:21:32]Clear old archive folders... [18:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:32]tlvbuf is 00C8FB80 [18:21:32]SAM_PROTO_ClearQueue [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 09 00 00 [18:21:32]Write to MH i2c: E2 08 00 22 0F 80 09 00 00 00 00 00 00 A3 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:32]Read from MH i2c: E2 03 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [18:21:32]RAPDU: 90 00 [18:21:32]wFMCommunicate OK [18:21:32]SAM_PROTO_ClearQueue done [18:21:32]KKMCreateOFDPacket [18:21:32]OFDProtocolAddRootSTLVToBuf [18:21:32]FM_MakeSignedData [18:21:32]FM_MakeSignedData [18:21:32]SAM_PROTO_SignData [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 0D 01 02 [18:21:32]Write to MH i2c: E2 08 00 23 0F 80 0D 01 02 00 00 00 00 AB [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 03 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [18:21:32]RAPDU: 90 00 [18:21:32]wFMCommunicate OK [18:21:32]wFMCommunicate request_size=255 [18:21:32]MH_SAM_APDU [18:21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 2C 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 24 02 00 35 04 06 00 7B [18:21:32]Write to MH i2c: E2 02 01 24 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 2C 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 24 02 00 35 04 06 00 7B 00 00 11 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 03 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [18:21:33]RAPDU: 90 00 [18:21:33]wFMCommunicate OK [18:21:33]wFMCommunicate request_size=10 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 0D 02 02 05 63 9D A0 28 3F [18:21:33]Write to MH i2c: E2 0D 00 25 0F 80 0D 02 02 05 00 63 9D A0 28 3F 00 00 BF [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 03 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [18:21:33]RAPDU: 90 00 [18:21:33]wFMCommunicate OK [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 0D 03 02 [18:21:33]Write to MH i2c: E2 08 00 26 0F 80 0D 03 02 00 00 00 00 B0 [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 0B 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 0B 00 26 0F 00 03 84 4B F3 39 C7 76 2E 90 00 1A [18:21:33]RAPDU: 03 84 4B F3 39 C7 76 2E 90 00 [18:21:33]wFMCommunicate OK [18:21:33]SAM_PROTO_SignData done [18:21:33]FM_MakeSignedData done [18:21:33]CreateOFDProtocolMessage [18:21:33]wFMCommunicate request_size=4 [18:21:33]MH_SAM_APDU [18:21:33]CAPDU: 80 11 00 00 [18:21:33]Write to MH i2c: E2 08 00 27 0F 80 11 00 00 00 00 00 00 B0 [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:33]Read from MH i2c: E2 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 17 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: E2 17 00 27 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 07 [18:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:21:33]wFMCommunicate OK [18:21:33]CreateOFDProtocolMessage done [18:21:33]OFDSenderStorePacket 140324 [18:21:33]StoreOFDPacket docnum=140324 [18:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F7 35 07 01 B6 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 2C 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 24 02 00 35 04 06 00 7B 63 9D A0 28 3F 03 84 4B F3 39 C7 76 2E [18:21:33]CheckFolder [18:21:33]dirname=/storage/ofd_packets [18:21:33]CheckFolder done [18:21:33]ProducePacketName [18:21:33]name=ofd_packets/00140324 [18:21:33]NVStorageSaveData ofd_packets/00140324 [18:21:33]File name is /storage/ofd_packets/00140324 [18:21:33]Write 301 bytes [18:21:33]NVStorageSaveData done [18:21:33]OFDSenderStorePacket done [18:21:33]KKMCreateOFDPacket done [18:21:33]NVStorageSaveData kkm_last_timestamp [18:21:33]File name is /storage/kkm_last_timestamp [18:21:33]Write 4 bytes [18:21:33]NVStorageSaveData done [18:21:33]ExternCall_PrintAddStr [18:21:33]wPrintStart [18:21:33]Write to MH i2c: 01 00 00 28 0F 37 [18:21:33]Write i2c OK [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: 01 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: 01 07 00 [18:21:33]MH_I2C_Read... [18:21:33]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 FF 0F 4C [18:21:33]RasterBufferAndPrint [18:21:33]line Счет N : (1)594182 [18:21:33]line ИНН: 02508201610067 [18:21:33]line Контрольно-Кассовый Чек [18:21:33]line ПРОДАЖА [18:21:33]line ТРК (МРК, ГНК) : 51 [18:21:33]line Товар: 2710124500 [18:21:33]line Аи-95-К-5 [18:21:33]line 20.220 * 74.20 [18:21:33]line = 1500.32 [18:21:33]line НДС 12% НСП 1% [18:21:33]line > о реализуемом товаре [18:21:33]line ОКРУГЛЕНИЕ: -0.32 [18:21:33]line ИТОГО: 1500.00 [18:21:33]line Внесено: 1500.00 [18:21:33]line СДАЧА: 0.00 [18:21:33]line НСП 1% : 13.28 [18:21:33]line НДС 12% : 159.33 [18:21:33]line Наличными: 1500.00 [18:21:33]line Безнал.: 0.00 [18:21:33]line Место: АЗС № 136 "Партнер Нефть" [18:21:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:21:33]line СНО: Общий режим [18:21:33]line Чек 341 21.08.2024 18:21 [18:21:33]line Смена: 454 ФФД: 1.0 [18:21:33]line ЗНМ: 0300000067 [18:21:33]line РНМ: 0000000000092569 [18:21:33]line Версия ККМ: 001 [18:21:33]line ФМ: 0000000000871776 [18:21:33]line ФД: 140324 [18:21:33]line ФПД: 135667776497727 [18:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182132&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140324&fm=135667776497727&tin=02508201610067®Number=0000000000092569&sum=150000 [18:21:33]written 0, free lines is 4095 [18:21:33]OFD Sender: Processing packet 140324 [packets to send 137, broken 136] [18:21:33]ProducePacketName [18:21:33]name=ofd_packets/00140324 [18:21:33]OFD Sender: To server: pG, [18:21:33]CommunicateWithHost lk.salyk.kg:30040 [18:21:33]ConnectInit lk.salyk.kg [18:21:33]Connected sock=10 [18:21: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 37 36 0F 01 00 00 F7 35 07 01 B6 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 2C 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 24 24 02 00 35 04 06 00 7B 63 9D A0 28 3F 03 84 4B F3 39 C7 76 2E [18:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 38 8D 47 00 AF 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 37 36 10 04 04 00 24 24 02 00 F4 03 04 00 BC D6 C5 66 B6 04 01 00 00 39 92 71 D9 68 8C C9 56 [18:21:34]CommunicateWithHost err = 0 [18:21:34]CheckOFDResponse [18:21:34]1017 (14) - 77093643461234 [18:21:34]1041 (16) - 0000000000871776 [18:21:34]1040 (4) - 140324 [18:21:34]1012 (4) - 21.08.2024 11:59 [18:21:34]1206 (1) - 0 [18:21:34]OFD Sender: Remove packet 140324 [18:21:34]ProducePacketName [18:21:34]name=ofd_packets/00140324 [18:21:34]NVStorageDeleteData [18:21:34]Write to MH i2c: 01 00 00 53 0F 62 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 07 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 E0 0C 55 [18:21:34]RasterBufferAndPrint [18:21:34]line [18:21:34]line [18:21:34]line [18:21:34]line [18:21:34]line [18:21:34]written 0, free lines is 3302 [18:21:34]MH_Cut [18:21:34]Write to MH i2c: D1 01 00 5A 0F 01 3B [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: D1 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: D1 01 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: D1 01 00 5A 0F 00 3A [18:21:34]Write to MH i2c: 01 00 00 5B 0F 6A [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]OFD Sender: No OFD packet to send [18:21:34]*** Cut start [18:21:34]*** Partial cut [18:21:34]*** CUTSNS_PIN = 1 [18:21:34]*** CUTSNS_PIN = 0 [18:21:35]*** Brake cut motor [18:21:35]Read from MH i2c: 01 [18:21:35]MH_I2C_Read... [18:21:35]*** Stop cut motor [18:21:35]*** Cut end [18:21:35]Read from MH i2c: 01 07 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [18:21:35]process_action close_receipt done [18:21:35]requested_data is exist [18:21:35]produce_requested_data [18:21:35]requested_item fm.sn is exist - process it [18:21:35]wFMCommunicate request_size=4 [18:21:35]MH_SAM_APDU [18:21:35]CAPDU: 80 11 00 00 [18:21:35]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:35]Read from MH i2c: E2 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 17 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3C [18:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:21:35]wFMCommunicate OK [18:21:35]requested_item fd.num is exist - process it [18:21:35]SAM_PROTO_GetFieldsCounters [18:21:35]wFMCommunicate request_size=4 [18:21:35]MH_SAM_APDU [18:21:35]CAPDU: 80 13 00 00 [18:21:35]Write to MH i2c: E2 08 00 5D 0F 80 13 00 00 00 00 00 00 E8 [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:35]Read from MH i2c: E2 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 62 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 62 00 5D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 24 02 00 0E 04 04 00 C6 01 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 26 [18:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 24 24 02 00 0E 04 04 00 C6 01 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 [18:21:35]wFMCommunicate OK [18:21:35]SAM_PROTO_GetFieldsCounters done [18:21:35]requested_item shift.num is exist - process it [18:21:35]requested_item shift.opened is exist - process it [18:21:35]req_shift_opened [18:21:35]FM_GetShiftState [18:21:35]SAM_PROTO_GetShiftState [18:21:35]wFMCommunicate request_size=4 [18:21:35]MH_SAM_APDU [18:21:35]CAPDU: 80 13 01 00 [18:21:35]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:35]Read from MH i2c: E2 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 0E 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6A [18:21:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:21:35]wFMCommunicate OK [18:21:35]SAM_PROTO_GetShiftState done [18:21:35]FM_GetShiftState done [18:21:35]req_shift_opened done [18:21:35]requested_item shift.open_date is exist - process it [18:21:35]req_shift_open_date [18:21:35]req_shift_open_date done [18:21:35]produce_requested_data done [18:21:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140324,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:21:35]process_action_free close_receipt [18:21:35]json_value_free [18:21:35]json_value_free done [18:21:35]process_json_proto returns [18:21:35]Send response to host [18:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140324,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:21:35]free response buf [18:21:35]execute_script done [18:21:35]execute_script returns [18:21:35]free content buf [18:21:35]Sock 9.Close socket [18:21:35]Sock 9.Thread stoped [18:21:39]OFD Sender: No OFD packet to send [18:21:41]accept exits with 7 [18:21:41]New connection [18:21:41]New thread 3067612516 created [18:21:41]Thread 3067469156 joined [18:21:41]Waiting for new connection... [18:21:41] Sock 7.Parse request [18:21:41]Sock 7.Check first char [18:21:41]Sock 7.First char is OK [18:21:41]request: POST /json_proto HTTP/1.0 [18:21:41]Method: POST [18:21:41]URL: /json_proto [18:21:41]Method is POST - this is cgi request [18:21:41]url: /json_proto [18:21:41]query_string will be loaded in cgi processing [18:21:41]execute_cgi json_proto POST (null) [18:21:41]execute_cgi path=json_proto method=POST [18:21:41]POST find Content-Length [18:21:41]Host: 172.17.45.67:8080 [18:21:41]Content-Length: 792 [18:21:41]Content-Type: application/json [18:21:41] [18:21:41]POST finish read [18:21:41]Found Content-Length = 792 [18:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:41]execute_script... [18:21: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)594183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:41]POST & json_proto [18:21:41]process_json_proto [18:21:41]json parsed OK: [18:21:41]protocol is kg_v1.0 [18:21:41]action value=close_receipt [18:21:41]process_action close_receipt [18:21:41]cmd_close_receipt [18:21:41]MH_GetDate [18:21:41]Write to MH i2c: F0 00 00 5F 0F 5D [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: F0 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: F0 09 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: F0 09 00 5F 0F 00 35 30 C6 66 5F 7F 2B 66 66 [18:21:41]GetLastDocTimeStamp 1724264492 [18:21:41]current date 1724264501 [18:21:41]FM_GetShiftState [18:21:41]SAM_PROTO_GetShiftState [18:21:41]wFMCommunicate request_size=4 [18:21:41]MH_SAM_APDU [18:21:41]CAPDU: 80 13 01 00 [18:21:41]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [18:21:41]Write i2c OK [18:21:41]MH_I2C_Read... [18:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:41]Read from MH i2c: E2 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 0E 00 [18:21:41]MH_I2C_Read... [18:21:41]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6C [18:21:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:21:41]wFMCommunicate OK [18:21:41]SAM_PROTO_GetShiftState done [18:21:41]FM_GetShiftState done [18:21:41]opened in 1724200467 [18:21:41]opened+sec_in_day 1724286867 [18:21:41]quantity*price = 0 [18:21:41]sum+1 = 1 [18:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 342 21.08.2024 18:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140325 ФПД: 26529217846316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182141&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140325&fm=26529217846316&tin=02508201610067®Number=0000000000092569&sum=0 [18:21:42]StoreToDocumentArchive [18:21:42]shift 454 fd 140325 [18:21:42]save to /storage/0454/doc_00140325 [18:21:42]save last doc name /storage/0454/doc_00140325 to /storage/kkm_last_doc_name [18:21:42]save OK [18:21:42]Clear old archive folders... [18:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:42]tlvbuf is 00CB7850 [18:21:42]SAM_PROTO_ClearQueue [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 09 00 00 [18:21:42]Write to MH i2c: E2 08 00 6D 0F 80 09 00 00 00 00 00 00 EE [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [18:21:42]RAPDU: 90 00 [18:21:42]wFMCommunicate OK [18:21:42]SAM_PROTO_ClearQueue done [18:21:42]KKMCreateOFDPacket [18:21:42]OFDProtocolAddRootSTLVToBuf [18:21:42]FM_MakeSignedData [18:21:42]FM_MakeSignedData [18:21:42]SAM_PROTO_SignData [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 0D 01 02 [18:21:42]Write to MH i2c: E2 08 00 6E 0F 80 0D 01 02 00 00 00 00 F6 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 6E 0F 00 90 00 F1 [18:21:42]RAPDU: 90 00 [18:21:42]wFMCommunicate OK [18:21:42]wFMCommunicate request_size=255 [18:21:42]MH_SAM_APDU [18:21: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 B0 36 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 56 01 00 00 F4 03 04 00 35 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 24 02 00 35 04 06 00 18 [18:21:42]Write to MH i2c: E2 02 01 6F 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 B0 36 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 56 01 00 00 F4 03 04 00 35 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 24 02 00 35 04 06 00 18 00 00 02 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 6F 0F 00 90 00 F2 [18:21:42]RAPDU: 90 00 [18:21:42]wFMCommunicate OK [18:21:42]wFMCommunicate request_size=10 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 0D 02 02 05 20 D0 9B 1C 2C [18:21:42]Write to MH i2c: E2 0D 00 70 0F 80 0D 02 02 05 00 20 D0 9B 1C 2C 00 00 D6 [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 03 00 70 0F 00 90 00 F3 [18:21:42]RAPDU: 90 00 [18:21:42]wFMCommunicate OK [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 0D 03 02 [18:21:42]Write to MH i2c: E2 08 00 71 0F 80 0D 03 02 00 00 00 00 FB [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:42]Read from MH i2c: E2 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 0B 00 [18:21:42]MH_I2C_Read... [18:21:42]Read from MH i2c: E2 0B 00 71 0F 00 EB 68 DF 6D 96 84 A7 D9 90 00 35 [18:21:42]RAPDU: EB 68 DF 6D 96 84 A7 D9 90 00 [18:21:42]wFMCommunicate OK [18:21:42]SAM_PROTO_SignData done [18:21:42]FM_MakeSignedData done [18:21:42]CreateOFDProtocolMessage [18:21:42]wFMCommunicate request_size=4 [18:21:42]MH_SAM_APDU [18:21:42]CAPDU: 80 11 00 00 [18:21:42]Write to MH i2c: E2 08 00 72 0F 80 11 00 00 00 00 00 00 FB [18:21:42]Write i2c OK [18:21:42]MH_I2C_Read... [18:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:43]Read from MH i2c: E2 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 17 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: E2 17 00 72 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 52 [18:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:21:43]wFMCommunicate OK [18:21:43]CreateOFDProtocolMessage done [18:21:43]OFDSenderStorePacket 140325 [18:21:43]StoreOFDPacket docnum=140325 [18:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1C 1D 07 01 F1 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 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 56 01 00 00 F4 03 04 00 35 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 24 02 00 35 04 06 00 18 20 D0 9B 1C 2C EB 68 DF 6D 96 84 A7 D9 [18:21:43]CheckFolder [18:21:43]dirname=/storage/ofd_packets [18:21:43]CheckFolder done [18:21:43]ProducePacketName [18:21:43]name=ofd_packets/00140325 [18:21:43]NVStorageSaveData ofd_packets/00140325 [18:21:43]File name is /storage/ofd_packets/00140325 [18:21:43]Write 301 bytes [18:21:43]NVStorageSaveData done [18:21:43]OFDSenderStorePacket done [18:21:43]KKMCreateOFDPacket done [18:21:43]NVStorageSaveData kkm_last_timestamp [18:21:43]File name is /storage/kkm_last_timestamp [18:21:43]Write 4 bytes [18:21:43]NVStorageSaveData done [18:21:43]ExternCall_PrintAddStr [18:21:43]wPrintStart [18:21:43]Write to MH i2c: 01 00 00 73 0F 82 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 07 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 FF 0F 97 [18:21:43]RasterBufferAndPrint [18:21:43]line Счет N : (1)594183 [18:21:43]line ИНН: 02508201610067 [18:21:43]line Контрольно-Кассовый Чек [18:21:43]line ПРОДАЖА [18:21:43]line ТРК (МРК, ГНК) : 32 [18:21:43]line Товар: 2710124130 [18:21:43]line Аи-92-К-5 [18:21:43]line 14.000 * 0.00 [18:21:43]line = 0.00 [18:21:43]line НДС 12% НСП 1% [18:21:43]line > о реализуемом товаре [18:21:43]line ИТОГО: 0.00 [18:21:43]line НСП 1% : 0.00 [18:21:43]line НДС 12% : 0.00 [18:21:43]line Наличными: 0.00 [18:21:43]line Безнал.: 0.00 [18:21:43]line Место: АЗС № 136 "Партнер Нефть" [18:21:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:21:43]line СНО: Общий режим [18:21:43]line Чек 342 21.08.2024 18:21 [18:21:43]line Смена: 454 ФФД: 1.0 [18:21:43]line ЗНМ: 0300000067 [18:21:43]line РНМ: 0000000000092569 [18:21:43]line Версия ККМ: 001 [18:21:43]line Талоны: Топливная Карта [18:21:43]line 99761 [18:21:43]line ФМ: 0000000000871776 [18:21:43]line ФД: 140325 [18:21:43]line ФПД: 26529217846316 [18:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182141&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140325&fm=26529217846316&tin=02508201610067®Number=0000000000092569&sum=0 [18:21:43]written 0, free lines is 4095 [18:21:43]OFD Sender: Processing packet 140325 [packets to send 137, broken 136] [18:21:43]ProducePacketName [18:21:43]name=ofd_packets/00140325 [18:21:43]OFD Sender: To server: pG, [18:21:43]CommunicateWithHost lk.salyk.kg:30040 [18:21:43]ConnectInit lk.salyk.kg [18:21:43]Connected sock=10 [18:21: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 37 36 0F 01 00 00 1C 1D 07 01 F1 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 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 56 01 00 00 F4 03 04 00 35 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 25 24 02 00 35 04 06 00 18 20 D0 9B 1C 2C EB 68 DF 6D 96 84 A7 D9 [18:21:43]Write to MH i2c: 01 00 00 9D 0F AC [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 07 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 F3 0C B2 [18:21:43]RasterBufferAndPrint [18:21:43]line [18:21:43]line [18:21:43]line [18:21:43]line [18:21:43]line [18:21:43]written 0, free lines is 3326 [18:21:43]MH_Cut [18:21:43]Write to MH i2c: D1 01 00 A4 0F 01 85 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: D1 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: D1 01 00 [18:21:43]MH_I2C_Read... [18:21:43]Read from MH i2c: D1 01 00 A4 0F 00 84 [18:21:43]Write to MH i2c: 01 00 00 A5 0F B4 [18:21:43]Write i2c OK [18:21:43]MH_I2C_Read... [18:21: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 37 36 4F 00 00 00 1D 2A 47 00 7F 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 37 36 10 04 04 00 25 24 02 00 F4 03 04 00 C5 D6 C5 66 B6 04 01 00 00 DD 7D 7C 3B 19 E0 38 6D [18:21:43]CommunicateWithHost err = 0 [18:21:43]CheckOFDResponse [18:21:43]1017 (14) - 77093643461234 [18:21:43]1041 (16) - 0000000000871776 [18:21:43]1040 (4) - 140325 [18:21:43]1012 (4) - 21.08.2024 12:00 [18:21:43]1206 (1) - 0 [18:21:43]OFD Sender: Remove packet 140325 [18:21:43]ProducePacketName [18:21:43]name=ofd_packets/00140325 [18:21:43]NVStorageDeleteData [18:21:44]OFD Sender: No OFD packet to send [18:21:44]*** Cut start [18:21:44]*** Partial cut [18:21:44]*** CUTSNS_PIN = 1 [18:21:44]*** CUTSNS_PIN = 0 [18:21:44]*** Brake cut motor [18:21:44]Read from MH i2c: 01 [18:21:44]MH_I2C_Read... [18:21:44]*** Stop cut motor [18:21:44]*** Cut end [18:21:44]Read from MH i2c: 01 07 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: 01 07 00 A5 0F 00 00 00 00 00 FF 0F C9 [18:21:44]process_action close_receipt done [18:21:44]requested_data is exist [18:21:44]produce_requested_data [18:21:44]requested_item fm.sn is exist - process it [18:21:44]wFMCommunicate request_size=4 [18:21:44]MH_SAM_APDU [18:21:44]CAPDU: 80 11 00 00 [18:21:44]Write to MH i2c: E2 08 00 A6 0F 80 11 00 00 00 00 00 00 2F [18:21:44]Write i2c OK [18:21:44]MH_I2C_Read... [18:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:44]Read from MH i2c: E2 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 17 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 17 00 A6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [18:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:21:44]wFMCommunicate OK [18:21:44]requested_item fd.num is exist - process it [18:21:44]SAM_PROTO_GetFieldsCounters [18:21:44]wFMCommunicate request_size=4 [18:21:44]MH_SAM_APDU [18:21:44]CAPDU: 80 13 00 00 [18:21:44]Write to MH i2c: E2 08 00 A7 0F 80 13 00 00 00 00 00 00 32 [18:21:44]Write i2c OK [18:21:44]MH_I2C_Read... [18:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:44]Read from MH i2c: E2 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 62 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 62 00 A7 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 24 02 00 0E 04 04 00 C6 01 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 74 [18:21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 25 24 02 00 0E 04 04 00 C6 01 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 [18:21:45]wFMCommunicate OK [18:21:45]SAM_PROTO_GetFieldsCounters done [18:21:45]requested_item shift.num is exist - process it [18:21:45]requested_item shift.opened is exist - process it [18:21:45]req_shift_opened [18:21:45]FM_GetShiftState [18:21:45]SAM_PROTO_GetShiftState [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 13 01 00 [18:21:45]Write to MH i2c: E2 08 00 A8 0F 80 13 01 00 00 00 00 00 34 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0E 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0E 00 A8 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B4 [18:21:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:21:45]wFMCommunicate OK [18:21:45]SAM_PROTO_GetShiftState done [18:21:45]FM_GetShiftState done [18:21:45]req_shift_opened done [18:21:45]requested_item shift.open_date is exist - process it [18:21:45]req_shift_open_date [18:21:45]req_shift_open_date done [18:21:45]produce_requested_data done [18:21:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140325,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:21:45]process_action_free close_receipt [18:21:45]json_value_free [18:21:45]json_value_free done [18:21:45]process_json_proto returns [18:21:45]Send response to host [18:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140325,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:21:45]free response buf [18:21:45]execute_script done [18:21:45]execute_script returns [18:21:45]free content buf [18:21:45]Sock 7.Close socket [18:21:45]Sock 7.Thread stoped [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]accept exits with 9 [18:23:14]New connection [18:23:14]New thread 3067469156 created [18:23:14]Thread 3067612516 joined [18:23:14]Waiting for new connection... [18:23:14] Sock 9.Parse request [18:23:14]Sock 9.Check first char [18:23:14]Sock 9.First char is OK [18:23:14]request: POST /json_proto HTTP/1.0 [18:23:14]Method: POST [18:23:14]URL: /json_proto [18:23:14]Method is POST - this is cgi request [18:23:14]url: /json_proto [18:23:14]query_string will be loaded in cgi processing [18:23:14]execute_cgi json_proto POST (null) [18:23:14]execute_cgi path=json_proto method=POST [18:23:14]POST find Content-Length [18:23:14]Host: 172.17.45.67:8080 [18:23:14]Content-Length: 677 [18:23:14]Content-Type: application/json [18:23:14] [18:23:14]POST finish read [18:23:14]Found Content-Length = 677 [18:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:14]execute_script... [18:23:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:14]POST & json_proto [18:23:14]process_json_proto [18:23:14]json parsed OK: [18:23:14]protocol is kg_v1.0 [18:23:14]action value=close_receipt [18:23:14]process_action close_receipt [18:23:14]cmd_close_receipt [18:23:14]MH_GetDate [18:23:14]Write to MH i2c: F0 00 00 A9 0F A7 [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: F0 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: F0 09 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: F0 09 00 A9 0F 00 92 30 C6 66 5F 7F 2B 66 0D [18:23:14]GetLastDocTimeStamp 1724264501 [18:23:14]current date 1724264594 [18:23:14]FM_GetShiftState [18:23:14]SAM_PROTO_GetShiftState [18:23:14]wFMCommunicate request_size=4 [18:23:14]MH_SAM_APDU [18:23:14]CAPDU: 80 13 01 00 [18:23:14]Write to MH i2c: E2 08 00 AA 0F 80 13 01 00 00 00 00 00 36 [18:23:14]Write i2c OK [18:23:14]MH_I2C_Read... [18:23:14]OFD Sender: No OFD packet to send [18:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:14]Read from MH i2c: E2 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 [18:23:14]MH_I2C_Read... [18:23:14]Read from MH i2c: E2 0E 00 AA 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B6 [18:23:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:23:14]wFMCommunicate OK [18:23:14]SAM_PROTO_GetShiftState done [18:23:14]FM_GetShiftState done [18:23:14]opened in 1724200467 [18:23:14]opened+sec_in_day 1724286867 [18:23:14]quantity*price = 50010 [18:23:14]sum+1 = 50012 [18:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 343 21.08.2024 18:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140326 ФПД: 178738398515969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182314&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140326&fm=178738398515969&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:15]StoreToDocumentArchive [18:23:15]shift 454 fd 140326 [18:23:15]save to /storage/0454/doc_00140326 [18:23:15]save last doc name /storage/0454/doc_00140326 to /storage/kkm_last_doc_name [18:23:15]save OK [18:23:15]Clear old archive folders... [18:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:15]tlvbuf is 00CBF690 [18:23:15]SAM_PROTO_ClearQueue [18:23:15]wFMCommunicate request_size=4 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 09 00 00 [18:23:15]Write to MH i2c: E2 08 00 B7 0F 80 09 00 00 00 00 00 00 38 [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [18:23:15]RAPDU: 90 00 [18:23:15]wFMCommunicate OK [18:23:15]SAM_PROTO_ClearQueue done [18:23:15]KKMCreateOFDPacket [18:23:15]OFDProtocolAddRootSTLVToBuf [18:23:15]FM_MakeSignedData [18:23:15]FM_MakeSignedData [18:23:15]SAM_PROTO_SignData [18:23:15]wFMCommunicate request_size=4 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 0D 01 02 [18:23:15]Write to MH i2c: E2 08 00 B8 0F 80 0D 01 02 00 00 00 00 40 [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [18:23:15]RAPDU: 90 00 [18:23:15]wFMCommunicate OK [18:23:15]wFMCommunicate request_size=255 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 92 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 24 02 00 35 04 06 00 A2 [18:23:15]Write to MH i2c: E2 02 01 B9 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 92 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 24 02 00 35 04 06 00 A2 00 00 AC [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 B9 0F 00 90 00 3C [18:23:15]RAPDU: 90 00 [18:23:15]wFMCommunicate OK [18:23:15]wFMCommunicate request_size=10 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 0D 02 02 05 8F C6 C0 53 01 [18:23:15]Write to MH i2c: E2 0D 00 BA 0F 80 0D 02 02 05 00 8F C6 C0 53 01 00 00 B6 [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 03 00 BA 0F 00 90 00 3D [18:23:15]RAPDU: 90 00 [18:23:15]wFMCommunicate OK [18:23:15]wFMCommunicate request_size=4 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 0D 03 02 [18:23:15]Write to MH i2c: E2 08 00 BB 0F 80 0D 03 02 00 00 00 00 45 [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 0B 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 0B 00 BB 0F 00 A3 07 00 8B 23 58 AC A4 90 00 46 [18:23:15]RAPDU: A3 07 00 8B 23 58 AC A4 90 00 [18:23:15]wFMCommunicate OK [18:23:15]SAM_PROTO_SignData done [18:23:15]FM_MakeSignedData done [18:23:15]CreateOFDProtocolMessage [18:23:15]wFMCommunicate request_size=4 [18:23:15]MH_SAM_APDU [18:23:15]CAPDU: 80 11 00 00 [18:23:15]Write to MH i2c: E2 08 00 BC 0F 80 11 00 00 00 00 00 00 45 [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:15]Read from MH i2c: E2 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 17 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: E2 17 00 BC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9C [18:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:15]wFMCommunicate OK [18:23:15]CreateOFDProtocolMessage done [18:23:15]OFDSenderStorePacket 140326 [18:23:15]StoreOFDPacket docnum=140326 [18:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D4 2C 07 01 91 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 92 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 24 02 00 35 04 06 00 A2 8F C6 C0 53 01 A3 07 00 8B 23 58 AC A4 [18:23:15]CheckFolder [18:23:15]dirname=/storage/ofd_packets [18:23:15]CheckFolder done [18:23:15]ProducePacketName [18:23:15]name=ofd_packets/00140326 [18:23:15]NVStorageSaveData ofd_packets/00140326 [18:23:15]File name is /storage/ofd_packets/00140326 [18:23:15]Write 301 bytes [18:23:15]NVStorageSaveData done [18:23:15]OFDSenderStorePacket done [18:23:15]KKMCreateOFDPacket done [18:23:15]NVStorageSaveData kkm_last_timestamp [18:23:15]File name is /storage/kkm_last_timestamp [18:23:15]Write 4 bytes [18:23:15]NVStorageSaveData done [18:23:15]ExternCall_PrintAddStr [18:23:15]wPrintStart [18:23:15]Write to MH i2c: 01 00 00 BD 0F CC [18:23:15]Write i2c OK [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: 01 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: 01 07 00 [18:23:15]MH_I2C_Read... [18:23:15]Read from MH i2c: 01 07 00 BD 0F 00 00 00 00 00 FF 0F E1 [18:23:15]RasterBufferAndPrint [18:23:15]line Счет N : (1)594184 [18:23:15]line ИНН: 02508201610067 [18:23:15]line Контрольно-Кассовый Чек [18:23:15]line ПРОДАЖА [18:23:15]line ТРК (МРК, ГНК) : 61 [18:23:15]line Товар: 2710124500 [18:23:15]line Аи-95-К-5 [18:23:15]line 6.740 * 74.20 [18:23:15]line = 500.11 [18:23:15]line НДС 12% НСП 1% [18:23:15]line > о реализуемом товаре [18:23:15]line ОКРУГЛЕНИЕ: -0.11 [18:23:15]line ИТОГО: 500.00 [18:23:15]line Внесено: 500.00 [18:23:15]line СДАЧА: 0.00 [18:23:15]line НСП 1% : 4.43 [18:23:15]line НДС 12% : 53.11 [18:23:15]line Наличными: 500.00 [18:23:15]line Безнал.: 0.00 [18:23:15]line Место: АЗС № 136 "Партнер Нефть" [18:23:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:23:15]line СНО: Общий режим [18:23:15]line Чек 343 21.08.2024 18:23 [18:23:15]line Смена: 454 ФФД: 1.0 [18:23:15]line ЗНМ: 0300000067 [18:23:15]line РНМ: 0000000000092569 [18:23:15]line Версия ККМ: 001 [18:23:15]line ФМ: 0000000000871776 [18:23:15]line ФД: 140326 [18:23:15]line ФПД: 178738398515969 [18:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182314&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140326&fm=178738398515969&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:15]written 0, free lines is 4095 [18:23:15]OFD Sender: Processing packet 140326 [packets to send 137, broken 136] [18:23:15]ProducePacketName [18:23:15]name=ofd_packets/00140326 [18:23:15]OFD Sender: To server: pG, [18:23:15]CommunicateWithHost lk.salyk.kg:30040 [18:23:15]ConnectInit lk.salyk.kg [18:23:16]Connected sock=10 [18:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D4 2C 07 01 91 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 92 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 26 24 02 00 35 04 06 00 A2 8F C6 C0 53 01 A3 07 00 8B 23 58 AC A4 [18:23:16]Write to MH i2c: 01 00 00 E8 0F F7 [18:23:16]Write i2c OK [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: 01 [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: 01 07 00 [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 E4 0C EE [18:23:16]RasterBufferAndPrint [18:23:16]line [18:23:16]line [18:23:16]line [18:23:16]line [18:23:16]line [18:23:16]written 0, free lines is 3306 [18:23:16]MH_Cut [18:23:16]Write to MH i2c: D1 01 00 EF 0F 01 D0 [18:23:16]Write i2c OK [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: D1 [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: D1 01 00 [18:23:16]MH_I2C_Read... [18:23:16]Read from MH i2c: D1 01 00 EF 0F 00 CF [18:23:16]Write to MH i2c: 01 00 00 F0 0F FF [18:23:16]Write i2c OK [18:23:16]MH_I2C_Read... [18:23: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 37 36 4F 00 00 00 B6 21 47 00 80 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 37 36 10 04 04 00 26 24 02 00 F4 03 04 00 22 D7 C5 66 B6 04 01 00 00 89 C0 72 09 B1 8B 0D 1B [18:23:16]CommunicateWithHost err = 0 [18:23:16]CheckOFDResponse [18:23:16]1017 (14) - 77093643461234 [18:23:16]1041 (16) - 0000000000871776 [18:23:16]1040 (4) - 140326 [18:23:16]1012 (4) - 21.08.2024 12:01 [18:23:16]1206 (1) - 0 [18:23:16]OFD Sender: Remove packet 140326 [18:23:16]ProducePacketName [18:23:16]name=ofd_packets/00140326 [18:23:16]NVStorageDeleteData [18:23:16]OFD Sender: No OFD packet to send [18:23:17]*** Cut start [18:23:17]*** Partial cut [18:23:17]*** CUTSNS_PIN = 1 [18:23:17]*** CUTSNS_PIN = 0 [18:23:17]*** Brake cut motor [18:23:17]Read from MH i2c: 01 [18:23:17]MH_I2C_Read... [18:23:17]*** Stop cut motor [18:23:17]*** Cut end [18:23:17]Read from MH i2c: 01 07 00 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: 01 07 00 F0 0F 00 00 00 00 00 FF 0F 14 [18:23:17]process_action close_receipt done [18:23:17]requested_data is exist [18:23:17]produce_requested_data [18:23:17]requested_item fm.sn is exist - process it [18:23:17]wFMCommunicate request_size=4 [18:23:17]MH_SAM_APDU [18:23:17]CAPDU: 80 11 00 00 [18:23:17]Write to MH i2c: E2 08 00 F1 0F 80 11 00 00 00 00 00 00 7A [18:23:17]Write i2c OK [18:23:17]MH_I2C_Read... [18:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:17]Read from MH i2c: E2 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 17 00 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 17 00 F1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [18:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:17]wFMCommunicate OK [18:23:17]requested_item fd.num is exist - process it [18:23:17]SAM_PROTO_GetFieldsCounters [18:23:17]wFMCommunicate request_size=4 [18:23:17]MH_SAM_APDU [18:23:17]CAPDU: 80 13 00 00 [18:23:17]Write to MH i2c: E2 08 00 F2 0F 80 13 00 00 00 00 00 00 7D [18:23:17]Write i2c OK [18:23:17]MH_I2C_Read... [18:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:17]Read from MH i2c: E2 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 62 00 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 62 00 F2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 24 02 00 0E 04 04 00 C6 01 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 C3 [18:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 26 24 02 00 0E 04 04 00 C6 01 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 [18:23:17]wFMCommunicate OK [18:23:17]SAM_PROTO_GetFieldsCounters done [18:23:17]requested_item shift.num is exist - process it [18:23:17]requested_item shift.opened is exist - process it [18:23:17]req_shift_opened [18:23:17]FM_GetShiftState [18:23:17]SAM_PROTO_GetShiftState [18:23:17]wFMCommunicate request_size=4 [18:23:17]MH_SAM_APDU [18:23:17]CAPDU: 80 13 01 00 [18:23:17]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [18:23:17]Write i2c OK [18:23:17]MH_I2C_Read... [18:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:17]Read from MH i2c: E2 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 0E 00 [18:23:17]MH_I2C_Read... [18:23:17]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FF [18:23:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:23:17]wFMCommunicate OK [18:23:17]SAM_PROTO_GetShiftState done [18:23:17]FM_GetShiftState done [18:23:17]req_shift_opened done [18:23:17]requested_item shift.open_date is exist - process it [18:23:17]req_shift_open_date [18:23:17]req_shift_open_date done [18:23:17]produce_requested_data done [18:23:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140326,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:23:17]process_action_free close_receipt [18:23:17]json_value_free [18:23:17]json_value_free done [18:23:17]process_json_proto returns [18:23:17]Send response to host [18:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140326,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:23:17]free response buf [18:23:17]execute_script done [18:23:17]execute_script returns [18:23:17]free content buf [18:23:17]Sock 9.Close socket [18:23:17]Sock 9.Thread stoped [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:35]accept exits with 7 [18:23:35]New connection [18:23:35]New thread 3067612516 created [18:23:35]Thread 3067469156 joined [18:23:35]Waiting for new connection... [18:23:35] Sock 7.Parse request [18:23:35]Sock 7.Check first char [18:23:35]Sock 7.First char is OK [18:23:35]request: POST /json_proto HTTP/1.0 [18:23:35]Method: POST [18:23:35]URL: /json_proto [18:23:35]Method is POST - this is cgi request [18:23:35]url: /json_proto [18:23:35]query_string will be loaded in cgi processing [18:23:35]execute_cgi json_proto POST (null) [18:23:35]execute_cgi path=json_proto method=POST [18:23:35]POST find Content-Length [18:23:35]Host: 172.17.45.67:8080 [18:23:35]Content-Length: 677 [18:23:35]Content-Type: application/json [18:23:35] [18:23:35]POST finish read [18:23:35]Found Content-Length = 677 [18:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:35]execute_script... [18:23: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)594185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:35]POST & json_proto [18:23:35]process_json_proto [18:23:35]json parsed OK: [18:23:35]protocol is kg_v1.0 [18:23:35]action value=close_receipt [18:23:35]process_action close_receipt [18:23:35]cmd_close_receipt [18:23:35]MH_GetDate [18:23:35]Write to MH i2c: F0 00 00 F4 0F F2 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: F0 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: F0 09 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: F0 09 00 F4 0F 00 A7 30 C6 66 5F 7F 2B 66 6D [18:23:35]GetLastDocTimeStamp 1724264594 [18:23:35]current date 1724264615 [18:23:35]FM_GetShiftState [18:23:35]SAM_PROTO_GetShiftState [18:23:35]wFMCommunicate request_size=4 [18:23:35]MH_SAM_APDU [18:23:35]CAPDU: 80 13 01 00 [18:23:35]Write to MH i2c: E2 08 00 F5 0F 80 13 01 00 00 00 00 00 81 [18:23:35]Write i2c OK [18:23:35]MH_I2C_Read... [18:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:35]Read from MH i2c: E2 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 0E 00 [18:23:35]MH_I2C_Read... [18:23:35]Read from MH i2c: E2 0E 00 F5 0F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 01 [18:23:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:23:35]wFMCommunicate OK [18:23:35]SAM_PROTO_GetShiftState done [18:23:35]FM_GetShiftState done [18:23:35]opened in 1724200467 [18:23:35]opened+sec_in_day 1724286867 [18:23:35]quantity*price = 50036 [18:23:35]sum+1 = 50037 [18:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 344 21.08.2024 18:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140327 ФПД: 206507100260027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140327&fm=206507100260027&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:36]StoreToDocumentArchive [18:23:36]shift 454 fd 140327 [18:23:36]save to /storage/0454/doc_00140327 [18:23:36]save last doc name /storage/0454/doc_00140327 to /storage/kkm_last_doc_name [18:23:36]save OK [18:23:36]Clear old archive folders... [18:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:36]tlvbuf is 00C931B0 [18:23:36]SAM_PROTO_ClearQueue [18:23:36]wFMCommunicate request_size=4 [18:23:36]MH_SAM_APDU [18:23:36]CAPDU: 80 09 00 00 [18:23:36]Write to MH i2c: E2 08 00 02 10 80 09 00 00 00 00 00 00 84 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [18:23:36]RAPDU: 90 00 [18:23:36]wFMCommunicate OK [18:23:36]SAM_PROTO_ClearQueue done [18:23:36]KKMCreateOFDPacket [18:23:36]OFDProtocolAddRootSTLVToBuf [18:23:36]FM_MakeSignedData [18:23:36]FM_MakeSignedData [18:23:36]SAM_PROTO_SignData [18:23:36]wFMCommunicate request_size=4 [18:23:36]MH_SAM_APDU [18:23:36]CAPDU: 80 0D 01 02 [18:23:36]Write to MH i2c: E2 08 00 03 10 80 0D 01 02 00 00 00 00 8C [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [18:23:36]RAPDU: 90 00 [18:23:36]wFMCommunicate OK [18:23:36]wFMCommunicate request_size=255 [18:23:36]MH_SAM_APDU [18:23: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A7 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 24 02 00 35 04 06 00 BB [18:23:36]Write to MH i2c: E2 02 01 04 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A7 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 24 02 00 35 04 06 00 BB 00 00 40 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 04 10 00 90 00 88 [18:23:36]RAPDU: 90 00 [18:23:36]wFMCommunicate OK [18:23:36]wFMCommunicate request_size=10 [18:23:36]MH_SAM_APDU [18:23:36]CAPDU: 80 0D 02 02 05 D1 2E 5A C6 BB [18:23:36]Write to MH i2c: E2 0D 00 05 10 80 0D 02 02 05 00 D1 2E 5A C6 BB 00 00 73 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 03 00 05 10 00 90 00 89 [18:23:36]RAPDU: 90 00 [18:23:36]wFMCommunicate OK [18:23:36]wFMCommunicate request_size=4 [18:23:36]MH_SAM_APDU [18:23:36]CAPDU: 80 0D 03 02 [18:23:36]Write to MH i2c: E2 08 00 06 10 80 0D 03 02 00 00 00 00 91 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 0B 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 0B 00 06 10 00 95 8E 29 17 30 39 CE C7 90 00 F3 [18:23:36]RAPDU: 95 8E 29 17 30 39 CE C7 90 00 [18:23:36]wFMCommunicate OK [18:23:36]SAM_PROTO_SignData done [18:23:36]FM_MakeSignedData done [18:23:36]CreateOFDProtocolMessage [18:23:36]wFMCommunicate request_size=4 [18:23:36]MH_SAM_APDU [18:23:36]CAPDU: 80 11 00 00 [18:23:36]Write to MH i2c: E2 08 00 07 10 80 11 00 00 00 00 00 00 91 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:36]Read from MH i2c: E2 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 17 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: E2 17 00 07 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [18:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:36]wFMCommunicate OK [18:23:36]CreateOFDProtocolMessage done [18:23:36]OFDSenderStorePacket 140327 [18:23:36]StoreOFDPacket docnum=140327 [18:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 62 EE 07 01 0C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A7 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 24 02 00 35 04 06 00 BB D1 2E 5A C6 BB 95 8E 29 17 30 39 CE C7 [18:23:36]CheckFolder [18:23:36]dirname=/storage/ofd_packets [18:23:36]CheckFolder done [18:23:36]ProducePacketName [18:23:36]name=ofd_packets/00140327 [18:23:36]NVStorageSaveData ofd_packets/00140327 [18:23:36]File name is /storage/ofd_packets/00140327 [18:23:36]Write 301 bytes [18:23:36]NVStorageSaveData done [18:23:36]OFDSenderStorePacket done [18:23:36]KKMCreateOFDPacket done [18:23:36]NVStorageSaveData kkm_last_timestamp [18:23:36]File name is /storage/kkm_last_timestamp [18:23:36]Write 4 bytes [18:23:36]NVStorageSaveData done [18:23:36]ExternCall_PrintAddStr [18:23:36]wPrintStart [18:23:36]Write to MH i2c: 01 00 00 08 10 18 [18:23:36]Write i2c OK [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 07 00 [18:23:36]MH_I2C_Read... [18:23:36]Read from MH i2c: 01 07 00 08 10 00 00 00 00 00 FF 0F 2D [18:23:36]RasterBufferAndPrint [18:23:36]line Счет N : (1)594185 [18:23:36]line ИНН: 02508201610067 [18:23:36]line Контрольно-Кассовый Чек [18:23:36]line ПРОДАЖА [18:23:36]line ТРК (МРК, ГНК) : 52 [18:23:36]line Товар: 2710124130 [18:23:36]line Аи-92-К-5 [18:23:36]line 7.380 * 67.80 [18:23:36]line = 500.36 [18:23:36]line НДС 12% НСП 1% [18:23:36]line > о реализуемом товаре [18:23:36]line ОКРУГЛЕНИЕ: -0.36 [18:23:36]line ИТОГО: 500.00 [18:23:36]line Внесено: 500.00 [18:23:36]line СДАЧА: 0.00 [18:23:36]line НСП 1% : 4.43 [18:23:36]line НДС 12% : 53.14 [18:23:36]line Наличными: 500.00 [18:23:36]line Безнал.: 0.00 [18:23:36]line Место: АЗС № 136 "Партнер Нефть" [18:23:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:23:36]line СНО: Общий режим [18:23:36]line Чек 344 21.08.2024 18:23 [18:23:36]line Смена: 454 ФФД: 1.0 [18:23:36]line ЗНМ: 0300000067 [18:23:36]line РНМ: 0000000000092569 [18:23:36]line Версия ККМ: 001 [18:23:36]line ФМ: 0000000000871776 [18:23:36]line ФД: 140327 [18:23:36]line ФПД: 206507100260027 [18:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182335&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140327&fm=206507100260027&tin=02508201610067®Number=0000000000092569&sum=50000 [18:23:37]written 0, free lines is 4095 [18:23:37]OFD Sender: Processing packet 140327 [packets to send 137, broken 136] [18:23:37]ProducePacketName [18:23:37]name=ofd_packets/00140327 [18:23:37]OFD Sender: To server: pG, [18:23:37]CommunicateWithHost lk.salyk.kg:30040 [18:23:37]ConnectInit lk.salyk.kg [18:23:37]Connected sock=10 [18:23: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 37 36 0F 01 00 00 62 EE 07 01 0C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A7 30 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 27 24 02 00 35 04 06 00 BB D1 2E 5A C6 BB 95 8E 29 17 30 39 CE C7 [18:23: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 37 36 4F 00 00 00 83 90 47 00 2D 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 37 36 10 04 04 00 27 24 02 00 F4 03 04 00 37 D7 C5 66 B6 04 01 00 00 51 5E 31 3D AD AB 39 E9 [18:23:37]CommunicateWithHost err = 0 [18:23:37]CheckOFDResponse [18:23:37]1017 (14) - 77093643461234 [18:23:37]1041 (16) - 0000000000871776 [18:23:37]1040 (4) - 140327 [18:23:37]1012 (4) - 21.08.2024 12:01 [18:23:37]1206 (1) - 0 [18:23:37]OFD Sender: Remove packet 140327 [18:23:37]ProducePacketName [18:23:37]name=ofd_packets/00140327 [18:23:37]NVStorageDeleteData [18:23:37]Write to MH i2c: 01 00 00 33 10 43 [18:23:37]Write i2c OK [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: 01 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: 01 07 00 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 D6 0C 2C [18:23:37]RasterBufferAndPrint [18:23:37]line [18:23:37]line [18:23:37]line [18:23:37]line [18:23:37]line [18:23:37]written 0, free lines is 3293 [18:23:37]MH_Cut [18:23:37]Write to MH i2c: D1 01 00 3A 10 01 1C [18:23:37]Write i2c OK [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: D1 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: D1 01 00 [18:23:37]MH_I2C_Read... [18:23:37]Read from MH i2c: D1 01 00 3A 10 00 1B [18:23:37]Write to MH i2c: 01 00 00 3B 10 4B [18:23:37]Write i2c OK [18:23:37]MH_I2C_Read... [18:23:38]OFD Sender: No OFD packet to send [18:23:38]*** Cut start [18:23:38]*** Partial cut [18:23:38]*** CUTSNS_PIN = 1 [18:23:38]*** CUTSNS_PIN = 0 [18:23:38]*** Brake cut motor [18:23:38]Read from MH i2c: 01 [18:23:38]MH_I2C_Read... [18:23:38]*** Stop cut motor [18:23:38]*** Cut end [18:23:38]Read from MH i2c: 01 07 00 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: 01 07 00 3B 10 00 00 00 00 00 FF 0F 60 [18:23:38]process_action close_receipt done [18:23:38]requested_data is exist [18:23:38]produce_requested_data [18:23:38]requested_item fm.sn is exist - process it [18:23:38]wFMCommunicate request_size=4 [18:23:38]MH_SAM_APDU [18:23:38]CAPDU: 80 11 00 00 [18:23:38]Write to MH i2c: E2 08 00 3C 10 80 11 00 00 00 00 00 00 C6 [18:23:38]Write i2c OK [18:23:38]MH_I2C_Read... [18:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:38]Read from MH i2c: E2 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 17 00 [18:23:38]MH_I2C_Read... [18:23:38]Read from MH i2c: E2 17 00 3C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [18:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:23:38]wFMCommunicate OK [18:23:38]requested_item fd.num is exist - process it [18:23:38]SAM_PROTO_GetFieldsCounters [18:23:38]wFMCommunicate request_size=4 [18:23:38]MH_SAM_APDU [18:23:38]CAPDU: 80 13 00 00 [18:23:38]Write to MH i2c: E2 08 00 3D 10 80 13 00 00 00 00 00 00 C9 [18:23:39]Write i2c OK [18:23:39]MH_I2C_Read... [18:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:39]Read from MH i2c: E2 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 62 00 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 62 00 3D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 24 02 00 0E 04 04 00 C6 01 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 13 [18:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 27 24 02 00 0E 04 04 00 C6 01 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 [18:23:39]wFMCommunicate OK [18:23:39]SAM_PROTO_GetFieldsCounters done [18:23:39]requested_item shift.num is exist - process it [18:23:39]requested_item shift.opened is exist - process it [18:23:39]req_shift_opened [18:23:39]FM_GetShiftState [18:23:39]SAM_PROTO_GetShiftState [18:23:39]wFMCommunicate request_size=4 [18:23:39]MH_SAM_APDU [18:23:39]CAPDU: 80 13 01 00 [18:23:39]Write to MH i2c: E2 08 00 3E 10 80 13 01 00 00 00 00 00 CB [18:23:39]Write i2c OK [18:23:39]MH_I2C_Read... [18:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:39]Read from MH i2c: E2 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 0E 00 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 0E 00 3E 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4B [18:23:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:23:39]wFMCommunicate OK [18:23:39]SAM_PROTO_GetShiftState done [18:23:39]FM_GetShiftState done [18:23:39]req_shift_opened done [18:23:39]requested_item shift.open_date is exist - process it [18:23:39]req_shift_open_date [18:23:39]req_shift_open_date done [18:23:39]produce_requested_data done [18:23:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140327,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:23:39]process_action_free close_receipt [18:23:39]json_value_free [18:23:39]json_value_free done [18:23:39]process_json_proto returns [18:23:39]Send response to host [18:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140327,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:23:39]free response buf [18:23:39]execute_script done [18:23:39]execute_script returns [18:23:39]free content buf [18:23:39]Sock 7.Close socket [18:23:39]Sock 7.Thread stoped [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:46]accept exits with 9 [18:26:46]New connection [18:26:46]New thread 3067469156 created [18:26:46]Thread 3067612516 joined [18:26:46]Waiting for new connection... [18:26:46] Sock 9.Parse request [18:26:46]Sock 9.Check first char [18:26:46]Sock 9.First char is OK [18:26:46]request: POST /json_proto HTTP/1.0 [18:26:46]Method: POST [18:26:46]URL: /json_proto [18:26:46]Method is POST - this is cgi request [18:26:46]url: /json_proto [18:26:46]query_string will be loaded in cgi processing [18:26:46]execute_cgi json_proto POST (null) [18:26:46]execute_cgi path=json_proto method=POST [18:26:46]POST find Content-Length [18:26:46]Host: 172.17.45.67:8080 [18:26:46]Content-Length: 682 [18:26:46]Content-Type: application/json [18:26:46] [18:26:46]POST finish read [18:26:46]Found Content-Length = 682 [18:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [18:26:46]execute_script... [18:26: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)594186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "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" ] } } [18:26:46]POST & json_proto [18:26:46]process_json_proto [18:26:46]json parsed OK: [18:26:46]protocol is kg_v1.0 [18:26:46]action value=close_receipt [18:26:46]process_action close_receipt [18:26:46]cmd_close_receipt [18:26:46]MH_GetDate [18:26:46]Write to MH i2c: F0 00 00 3F 10 3E [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 09 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: F0 09 00 3F 10 00 66 31 C6 66 5F 7F 2B 66 79 [18:26:46]GetLastDocTimeStamp 1724264615 [18:26:46]current date 1724264806 [18:26:46]FM_GetShiftState [18:26:46]SAM_PROTO_GetShiftState [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 13 01 00 [18:26:46]Write to MH i2c: E2 08 00 40 10 80 13 01 00 00 00 00 00 CD [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 40 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4D [18:26:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:26:46]wFMCommunicate OK [18:26:46]SAM_PROTO_GetShiftState done [18:26:46]FM_GetShiftState done [18:26:46]opened in 1724200467 [18:26:46]opened+sec_in_day 1724286867 [18:26:46]quantity*price = 250054 [18:26:46]sum+1 = 250055 [18:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 345 21.08.2024 18:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140328 ФПД: 166340969547166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140328&fm=166340969547166&tin=02508201610067®Number=0000000000092569&sum=250000 [18:26:47]StoreToDocumentArchive [18:26:47]shift 454 fd 140328 [18:26:47]save to /storage/0454/doc_00140328 [18:26:47]save last doc name /storage/0454/doc_00140328 to /storage/kkm_last_doc_name [18:26:47]save OK [18:26:47]Clear old archive folders... [18:26:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:47]tlvbuf is B6F62200 [18:26:47]SAM_PROTO_ClearQueue [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 09 00 00 [18:26:47]Write to MH i2c: E2 08 00 4D 10 80 09 00 00 00 00 00 00 CF [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]SAM_PROTO_ClearQueue done [18:26:47]KKMCreateOFDPacket [18:26:47]OFDProtocolAddRootSTLVToBuf [18:26:47]FM_MakeSignedData [18:26:47]FM_MakeSignedData [18:26:47]SAM_PROTO_SignData [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 01 02 [18:26:47]Write to MH i2c: E2 08 00 4E 10 80 0D 01 02 00 00 00 00 D7 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]wFMCommunicate request_size=255 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 66 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 24 02 00 35 04 06 00 97 [18:26:47]Write to MH i2c: E2 02 01 4F 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 66 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 24 02 00 35 04 06 00 97 00 00 24 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 4F 10 00 90 00 D3 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]wFMCommunicate request_size=10 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 02 02 05 49 46 66 C5 9E [18:26:47]Write to MH i2c: E2 0D 00 50 10 80 0D 02 02 05 00 49 46 66 C5 9E 00 00 3C [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 03 00 50 10 00 90 00 D4 [18:26:47]RAPDU: 90 00 [18:26:47]wFMCommunicate OK [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 0D 03 02 [18:26:47]Write to MH i2c: E2 08 00 51 10 80 0D 03 02 00 00 00 00 DC [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0B 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0B 00 51 10 00 BA EF F6 91 C2 DF CA 1A 90 00 92 [18:26:47]RAPDU: BA EF F6 91 C2 DF CA 1A 90 00 [18:26:47]wFMCommunicate OK [18:26:47]SAM_PROTO_SignData done [18:26:47]FM_MakeSignedData done [18:26:47]CreateOFDProtocolMessage [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 11 00 00 [18:26:47]Write to MH i2c: E2 08 00 52 10 80 11 00 00 00 00 00 00 DC [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 52 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [18:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:26:47]wFMCommunicate OK [18:26:47]CreateOFDProtocolMessage done [18:26:47]OFDSenderStorePacket 140328 [18:26:47]StoreOFDPacket docnum=140328 [18:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DF FA 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 66 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 24 02 00 35 04 06 00 97 49 46 66 C5 9E BA EF F6 91 C2 DF CA 1A [18:26:47]CheckFolder [18:26:47]dirname=/storage/ofd_packets [18:26:47]CheckFolder done [18:26:47]ProducePacketName [18:26:47]name=ofd_packets/00140328 [18:26:47]NVStorageSaveData ofd_packets/00140328 [18:26:47]File name is /storage/ofd_packets/00140328 [18:26:47]Write 301 bytes [18:26:47]NVStorageSaveData done [18:26:47]OFDSenderStorePacket done [18:26:47]KKMCreateOFDPacket done [18:26:47]NVStorageSaveData kkm_last_timestamp [18:26:47]File name is /storage/kkm_last_timestamp [18:26:47]Write 4 bytes [18:26:47]NVStorageSaveData done [18:26:47]ExternCall_PrintAddStr [18:26:47]wPrintStart [18:26:47]Write to MH i2c: 01 00 00 53 10 63 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 07 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 FF 0F 78 [18:26:47]RasterBufferAndPrint [18:26:47]line Счет N : (1)594186 [18:26:47]line ИНН: 02508201610067 [18:26:47]line Контрольно-Кассовый Чек [18:26:47]line ПРОДАЖА [18:26:47]line ТРК (МРК, ГНК) : 51 [18:26:47]line Товар: 2710124500 [18:26:47]line Аи-95-К-5 [18:26:47]line 33.700 * 74.20 [18:26:47]line = 2500.54 [18:26:47]line НДС 12% НСП 1% [18:26:47]line > о реализуемом товаре [18:26:47]line ОКРУГЛЕНИЕ: -0.54 [18:26:47]line ИТОГО: 2500.00 [18:26:47]line Внесено: 2500.00 [18:26:47]line СДАЧА: 0.00 [18:26:47]line НСП 1% : 22.13 [18:26:47]line НДС 12% : 265.54 [18:26:47]line Наличными: 2500.00 [18:26:47]line Безнал.: 0.00 [18:26:47]line Место: АЗС № 136 "Партнер Нефть" [18:26:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:26:47]line СНО: Общий режим [18:26:47]line Чек 345 21.08.2024 18:26 [18:26:47]line Смена: 454 ФФД: 1.0 [18:26:47]line ЗНМ: 0300000067 [18:26:47]line РНМ: 0000000000092569 [18:26:47]line Версия ККМ: 001 [18:26:47]line ФМ: 0000000000871776 [18:26:47]line ФД: 140328 [18:26:47]line ФПД: 166340969547166 [18:26:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182646&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140328&fm=166340969547166&tin=02508201610067®Number=0000000000092569&sum=250000 [18:26:48]OFD Sender: Processing packet 140328 [packets to send 137, broken 136] [18:26:48]ProducePacketName [18:26:48]name=ofd_packets/00140328 [18:26:48]OFD Sender: To server: pG, [18:26:48]CommunicateWithHost lk.salyk.kg:30040 [18:26:48]ConnectInit lk.salyk.kg [18:26:48]written 0, free lines is 4095 [18:26:48]Connected sock=7 [18:26: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 37 36 0F 01 00 00 DF FA 07 01 7A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 66 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 24 02 00 35 04 06 00 97 49 46 66 C5 9E BA EF F6 91 C2 DF CA 1A [18:26: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 37 36 4F 00 00 00 C2 A3 47 00 C2 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 28 24 02 00 F4 03 04 00 F7 D7 C5 66 B6 04 01 00 00 6D ED DF 75 25 D8 B8 20 [18:26:48]CommunicateWithHost err = 0 [18:26:48]CheckOFDResponse [18:26:48]1017 (14) - 77093643461234 [18:26:48]1041 (16) - 0000000000871776 [18:26:48]1040 (4) - 140328 [18:26:48]1012 (4) - 21.08.2024 12:05 [18:26:48]1206 (1) - 0 [18:26:48]OFD Sender: Remove packet 140328 [18:26:48]ProducePacketName [18:26:48]name=ofd_packets/00140328 [18:26:48]NVStorageDeleteData [18:26:48]Write to MH i2c: 01 00 00 7E 10 8E [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: 01 07 00 7E 10 00 00 00 00 00 E9 0C 8A [18:26:48]RasterBufferAndPrint [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]line [18:26:48]written 0, free lines is 3314 [18:26:48]MH_Cut [18:26:48]Write to MH i2c: D1 01 00 85 10 01 67 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 01 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: D1 01 00 85 10 00 66 [18:26:48]Write to MH i2c: 01 00 00 86 10 96 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:49]OFD Sender: No OFD packet to send [18:26:49]*** Cut start [18:26:49]*** Partial cut [18:26:49]*** CUTSNS_PIN = 1 [18:26:49]*** CUTSNS_PIN = 0 [18:26:49]*** Brake cut motor [18:26:49]Read from MH i2c: 01 [18:26:50]MH_I2C_Read... [18:26:50]*** Stop cut motor [18:26:50]*** Cut end [18:26:50]Read from MH i2c: 01 07 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 86 10 00 00 00 00 00 FF 0F AB [18:26:50]process_action close_receipt done [18:26:50]requested_data is exist [18:26:50]produce_requested_data [18:26:50]requested_item fm.sn is exist - process it [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 11 00 00 [18:26:50]Write to MH i2c: E2 08 00 87 10 80 11 00 00 00 00 00 00 11 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 87 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [18:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:26:50]wFMCommunicate OK [18:26:50]requested_item fd.num is exist - process it [18:26:50]SAM_PROTO_GetFieldsCounters [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 13 00 00 [18:26:50]Write to MH i2c: E2 08 00 88 10 80 13 00 00 00 00 00 00 14 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 62 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 62 00 88 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 24 02 00 0E 04 04 00 C6 01 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 62 [18:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 28 24 02 00 0E 04 04 00 C6 01 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 [18:26:50]wFMCommunicate OK [18:26:50]SAM_PROTO_GetFieldsCounters done [18:26:50]requested_item shift.num is exist - process it [18:26:50]requested_item shift.opened is exist - process it [18:26:50]req_shift_opened [18:26:50]FM_GetShiftState [18:26:50]SAM_PROTO_GetShiftState [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 13 01 00 [18:26:50]Write to MH i2c: E2 08 00 89 10 80 13 01 00 00 00 00 00 16 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0E 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0E 00 89 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 96 [18:26:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:26:50]wFMCommunicate OK [18:26:50]SAM_PROTO_GetShiftState done [18:26:50]FM_GetShiftState done [18:26:50]req_shift_opened done [18:26:50]requested_item shift.open_date is exist - process it [18:26:50]req_shift_open_date [18:26:50]req_shift_open_date done [18:26:50]produce_requested_data done [18:26:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140328,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:26:50]process_action_free close_receipt [18:26:50]json_value_free [18:26:50]json_value_free done [18:26:50]process_json_proto returns [18:26:50]Send response to host [18:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140328,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:26:50]free response buf [18:26:50]execute_script done [18:26:50]execute_script returns [18:26:50]free content buf [18:26:50]Sock 9.Close socket [18:26:50]Sock 9.Thread stoped [18:26:54]OFD Sender: No OFD packet to send [18:26:57]accept exits with 10 [18:26:57]New connection [18:26:57]New thread 3067612516 created [18:26:57]Thread 3067469156 joined [18:26:57]Waiting for new connection... [18:26:57] Sock 10.Parse request [18:26:57]Sock 10.Check first char [18:26:57]Sock 10.First char is OK [18:26:57]request: POST /json_proto HTTP/1.0 [18:26:57]Method: POST [18:26:57]URL: /json_proto [18:26:57]Method is POST - this is cgi request [18:26:57]url: /json_proto [18:26:57]query_string will be loaded in cgi processing [18:26:57]execute_cgi json_proto POST (null) [18:26:57]execute_cgi path=json_proto method=POST [18:26:57]POST find Content-Length [18:26:57]Host: 172.17.45.67:8080 [18:26:57]Content-Length: 797 [18:26:57]Content-Type: application/json [18:26:57] [18:26:57]POST finish read [18:26:57]Found Content-Length = 797 [18:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:57]execute_script... [18: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)594188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:57]POST & json_proto [18:26:57]process_json_proto [18:26:57]json parsed OK: [18:26:57]protocol is kg_v1.0 [18:26:57]action value=close_receipt [18:26:57]process_action close_receipt [18:26:57]cmd_close_receipt [18:26:57]MH_GetDate [18:26:57]Write to MH i2c: F0 00 00 8A 10 89 [18:26:57]Write i2c OK [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: F0 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: F0 09 00 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: F0 09 00 8A 10 00 71 31 C6 66 5F 7F 2B 66 CF [18:26:57]GetLastDocTimeStamp 1724264806 [18:26:57]current date 1724264817 [18:26:57]FM_GetShiftState [18:26:57]SAM_PROTO_GetShiftState [18:26:57]wFMCommunicate request_size=4 [18:26:57]MH_SAM_APDU [18:26:57]CAPDU: 80 13 01 00 [18:26:57]Write to MH i2c: E2 08 00 8B 10 80 13 01 00 00 00 00 00 18 [18:26:57]Write i2c OK [18:26:57]MH_I2C_Read... [18:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:57]Read from MH i2c: E2 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 0E 00 [18:26:57]MH_I2C_Read... [18:26:57]Read from MH i2c: E2 0E 00 8B 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [18:26:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:26:57]wFMCommunicate OK [18:26:57]SAM_PROTO_GetShiftState done [18:26:57]FM_GetShiftState done [18:26:57]opened in 1724200467 [18:26:57]opened+sec_in_day 1724286867 [18:26:57]quantity*price = 0 [18:26:57]sum+1 = 1 [18:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 346 21.08.2024 18:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140329 ФПД: 252056385239311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182657&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140329&fm=252056385239311&tin=02508201610067®Number=0000000000092569&sum=0 [18:26:58]StoreToDocumentArchive [18:26:58]shift 454 fd 140329 [18:26:58]save to /storage/0454/doc_00140329 [18:26:58]save last doc name /storage/0454/doc_00140329 to /storage/kkm_last_doc_name [18:26:58]save OK [18:26:58]Clear old archive folders... [18:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:26:58]tlvbuf is 00C26100 [18:26:58]SAM_PROTO_ClearQueue [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 09 00 00 [18:26:58]Write to MH i2c: E2 08 00 98 10 80 09 00 00 00 00 00 00 1A [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 09 00 00... 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 98 10 00 90 00 1C [18:26:58]RAPDU: 90 00 [18:26:58]wFMCommunicate OK [18:26:58]SAM_PROTO_ClearQueue done [18:26:58]KKMCreateOFDPacket [18:26:58]OFDProtocolAddRootSTLVToBuf [18:26:58]FM_MakeSignedData [18:26:58]FM_MakeSignedData [18:26:58]SAM_PROTO_SignData [18:26:58]wFMCommunicate request_size=4 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 0D 01 02 [18:26:58]Write to MH i2c: E2 08 00 99 10 80 0D 01 02 00 00 00 00 22 [18:26:58]Write i2c OK [18:26:58]MH_I2C_Read... [18:26:58]*** iso7816_exchange 80 0D 01 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 99 10 00 90 00 1D [18:26:58]RAPDU: 90 00 [18:26:58]wFMCommunicate OK [18:26:58]wFMCommunicate request_size=255 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 71 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 24 02 00 35 04 06 00 [18:26:58]Write to MH i2c: E2 02 01 9A 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 71 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 24 02 00 35 04 06 00 00 00 32 [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 9A 10 00 90 00 1E [18:26:58]RAPDU: 90 00 [18:26:58]wFMCommunicate OK [18:26:58]wFMCommunicate request_size=11 [18:26:58]MH_SAM_APDU [18:26:58]CAPDU: 80 0D 02 02 06 E5 3E 73 4E 39 0F [18:26:58]Write to MH i2c: E2 0E 00 9B 10 80 0D 02 02 06 00 E5 3E 73 4E 39 0F 00 00 5D [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 9B 10 00 90 00 1F [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 9C 10 80 0D 03 02 00 00 00 00 27 [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 9C 10 00 33 A9 07 C1 35 73 64 73 90 00 4B [18:26:58]RAPDU: 33 A9 07 C1 35 73 64 73 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 9D 10 80 11 00 00 00 00 00 00 27 [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 9D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [18:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:26:58]wFMCommunicate OK [18:26:58]CreateOFDProtocolMessage done [18:26:58]OFDSenderStorePacket 140329 [18:26:58]StoreOFDPacket docnum=140329 [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 37 36 10 01 00 00 C5 A3 08 01 A5 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 71 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 24 02 00 35 04 06 00 E5 3E 73 4E 39 0F 33 A9 07 C1 35 73 64 73 [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/00140329 [18:26:58]NVStorageSaveData ofd_packets/00140329 [18:26:58]File name is /storage/ofd_packets/00140329 [18:26:58]Write 302 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 9E 10 AE [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 9E 10 00 00 00 00 00 FF 0F C3 [18:26:58]RasterBufferAndPrint [18:26:58]line Счет N : (1)594188 [18:26:58]line ИНН: 02508201610067 [18:26:58]line Контрольно-Кассовый Чек [18:26:58]line ПРОДАЖА [18:26:58]line ТРК (МРК, ГНК) : 34 [18:26:58]line Товар: 2710194210 [18:26:58]line ДТ(л)-К-5 [18:26:58]line 19.000 * 0.00 [18:26:58]line = 0.00 [18:26:58]line НДС 12% НСП 1% [18:26:58]line > о реализуемом товаре [18:26:58]line ИТОГО: 0.00 [18:26:58]line НСП 1% : 0.00 [18:26:58]line НДС 12% : 0.00 [18:26:58]line Наличными: 0.00 [18:26:58]line Безнал.: 0.00 [18:26:58]line Место: АЗС № 136 "Партнер Нефть" [18:26:58]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:26:58]line СНО: Общий режим [18:26:58]line Чек 346 21.08.2024 18:26 [18:26:58]line Смена: 454 ФФД: 1.0 [18:26:58]line ЗНМ: 0300000067 [18:26:58]line РНМ: 0000000000092569 [18:26:58]line Версия ККМ: 001 [18:26:58]line Талоны: Топливная Карта [18:26:58]line 99761 [18:26:58]line ФМ: 0000000000871776 [18:26:58]line ФД: 140329 [18:26:58]line ФПД: 252056385239311 [18:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182657&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140329&fm=252056385239311&tin=02508201610067®Number=0000000000092569&sum=0 [18:26:58]written 0, free lines is 4095 [18:26:58]OFD Sender: Processing packet 140329 [packets to send 137, broken 136] [18:26:58]ProducePacketName [18:26:58]name=ofd_packets/00140329 [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:59]Connected sock=7 [18: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 37 36 10 01 00 00 C5 A3 08 01 A5 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 4A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 71 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 24 02 00 35 04 06 00 E5 3E 73 4E 39 0F 33 A9 07 C1 35 73 64 73 [18:26:59]Write to MH i2c: 01 00 00 C8 10 D8 [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 C8 10 00 00 00 00 00 E6 0C D1 [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 3312 [18: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 37 36 4F 00 00 00 53 CD 47 00 1B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 29 24 02 00 F4 03 04 00 01 D8 C5 66 B6 04 01 00 00 63 50 54 56 E1 2F 45 34 [18:26:59]CommunicateWithHost err = 0 [18:26:59]CheckOFDResponse [18:26:59]1017 (14) - 77093643461234 [18:26:59]1041 (16) - 0000000000871776 [18:26:59]1040 (4) - 140329 [18:26:59]1012 (4) - 21.08.2024 12:05 [18:26:59]1206 (1) - 0 [18:26:59]OFD Sender: Remove packet 140329 [18:26:59]ProducePacketName [18:26:59]name=ofd_packets/00140329 [18:26:59]NVStorageDeleteData [18:26:59]MH_Cut [18:26:59]Write to MH i2c: D1 01 00 CF 10 01 B1 [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 CF 10 00 B0 [18:26:59]Write to MH i2c: 01 00 00 D0 10 E0 [18:26:59]Write i2c OK [18:26:59]MH_I2C_Read... [18:26:59]OFD Sender: No OFD packet to send [18:27:00]*** Cut start [18:27:00]*** Partial cut [18:27:00]*** CUTSNS_PIN = 1 [18:27:00]*** 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 D0 10 00 00 00 00 00 FF 0F F5 [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 D1 10 80 11 00 00 00 00 00 00 5B [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 D1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B2 [18:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 D2 10 80 13 00 00 00 00 00 00 5E [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 D2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 24 02 00 0E 04 04 00 C6 01 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 B0 [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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 29 24 02 00 0E 04 04 00 C6 01 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 [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 D3 10 80 13 01 00 00 00 00 00 60 [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 D3 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E0 [18:27:00]RAPDU: 09 00 01 13 36 C5 66 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":"0000000000871776","fd.num":140329,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [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":"0000000000871776","fd.num":140329,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [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 10.Close socket [18:27:00]Sock 10.Thread stoped [18:27:04]OFD Sender: No OFD packet to send [18:27:07]accept exits with 9 [18:27:07]New connection [18:27:07]New thread 3067469156 created [18:27:07]Thread 3067612516 joined [18:27:07]Waiting for new connection... [18:27:07] Sock 9.Parse request [18:27:07]Sock 9.Check first char [18:27:07]Sock 9.First char is OK [18:27:07]request: POST /json_proto HTTP/1.0 [18:27:07]Method: POST [18:27:07]URL: /json_proto [18:27:07]Method is POST - this is cgi request [18:27:07]url: /json_proto [18:27:07]query_string will be loaded in cgi processing [18:27:07]execute_cgi json_proto POST (null) [18:27:07]execute_cgi path=json_proto method=POST [18:27:07]POST find Content-Length [18:27:07]Host: 172.17.45.67:8080 [18:27:07]Content-Length: 677 [18:27:07]Content-Type: application/json [18:27:07] [18:27:07]POST finish read [18:27:07]Found Content-Length = 677 [18:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:07]execute_script... [18:27: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)594187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:07]POST & json_proto [18:27:07]process_json_proto [18:27:07]json parsed OK: [18:27:07]protocol is kg_v1.0 [18:27:07]action value=close_receipt [18:27:07]process_action close_receipt [18:27:07]cmd_close_receipt [18:27:07]MH_GetDate [18:27:07]Write to MH i2c: F0 00 00 D4 10 D3 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 09 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: F0 09 00 D4 10 00 7C 31 C6 66 5F 7F 2B 66 24 [18:27:07]GetLastDocTimeStamp 1724264817 [18:27:07]current date 1724264828 [18:27:07]FM_GetShiftState [18:27:07]SAM_PROTO_GetShiftState [18:27:07]wFMCommunicate request_size=4 [18:27:07]MH_SAM_APDU [18:27:07]CAPDU: 80 13 01 00 [18:27:07]Write to MH i2c: E2 08 00 D5 10 80 13 01 00 00 00 00 00 62 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:07]Read from MH i2c: E2 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: E2 0E 00 D5 10 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E2 [18:27:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:27:07]wFMCommunicate OK [18:27:07]SAM_PROTO_GetShiftState done [18:27:07]FM_GetShiftState done [18:27:07]opened in 1724200467 [18:27:07]opened+sec_in_day 1724286867 [18:27:07]quantity*price = 50010 [18:27:07]sum+1 = 50012 [18:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 347 21.08.2024 18:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140330 ФПД: 107606793763420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140330&fm=107606793763420&tin=02508201610067®Number=0000000000092569&sum=50000 [18:27:08]StoreToDocumentArchive [18:27:08]shift 454 fd 140330 [18:27:08]save to /storage/0454/doc_00140330 [18:27:08]save last doc name /storage/0454/doc_00140330 to /storage/kkm_last_doc_name [18:27:08]save OK [18:27:08]Clear old archive folders... [18:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:08]tlvbuf is 00CC0280 [18:27:08]SAM_PROTO_ClearQueue [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 09 00 00 [18:27:08]Write to MH i2c: E2 08 00 E2 10 80 09 00 00 00 00 00 00 64 [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 E2 10 00 90 00 66 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_ClearQueue done [18:27:08]KKMCreateOFDPacket [18:27:08]OFDProtocolAddRootSTLVToBuf [18:27:08]FM_MakeSignedData [18:27:08]FM_MakeSignedData [18:27:08]SAM_PROTO_SignData [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 01 02 [18:27:08]Write to MH i2c: E2 08 00 E3 10 80 0D 01 02 00 00 00 00 6C [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 03 00 E3 10 00 90 00 67 [18:27:08]RAPDU: 90 00 [18:27:08]wFMCommunicate OK [18:27:08]wFMCommunicate request_size=255 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 7C 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 24 02 00 35 04 06 00 61 [18:27:08]Write to MH i2c: E2 02 01 E4 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 7C 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 24 02 00 35 04 06 00 61 00 00 8A [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [18:27:09]RAPDU: 90 00 [18:27:09]wFMCommunicate OK [18:27:09]wFMCommunicate request_size=10 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 0D 02 02 05 DE 28 B7 BA 5C [18:27:09]Write to MH i2c: E2 0D 00 E5 10 80 0D 02 02 05 00 DE 28 B7 BA 5C 00 00 4C [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [18:27:09]RAPDU: 90 00 [18:27:09]wFMCommunicate OK [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 0D 03 02 [18:27:09]Write to MH i2c: E2 08 00 E6 10 80 0D 03 02 00 00 00 00 71 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0B 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0B 00 E6 10 00 4B A1 3F 18 07 93 A5 2F 90 00 23 [18:27:09]RAPDU: 4B A1 3F 18 07 93 A5 2F 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_SignData done [18:27:09]FM_MakeSignedData done [18:27:09]CreateOFDProtocolMessage [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 11 00 00 [18:27:09]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C8 [18:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:27:09]wFMCommunicate OK [18:27:09]CreateOFDProtocolMessage done [18:27:09]OFDSenderStorePacket 140330 [18:27:09]StoreOFDPacket docnum=140330 [18:27:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9A 9D 07 01 D0 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 7C 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 24 02 00 35 04 06 00 61 DE 28 B7 BA 5C 4B A1 3F 18 07 93 A5 2F [18:27:09]CheckFolder [18:27:09]dirname=/storage/ofd_packets [18:27:09]CheckFolder done [18:27:09]ProducePacketName [18:27:09]name=ofd_packets/00140330 [18:27:09]NVStorageSaveData ofd_packets/00140330 [18:27:09]File name is /storage/ofd_packets/00140330 [18:27:09]Write 301 bytes [18:27:09]NVStorageSaveData done [18:27:09]OFDSenderStorePacket done [18:27:09]KKMCreateOFDPacket done [18:27:09]NVStorageSaveData kkm_last_timestamp [18:27:09]File name is /storage/kkm_last_timestamp [18:27:09]Write 4 bytes [18:27:09]NVStorageSaveData done [18:27:09]ExternCall_PrintAddStr [18:27:09]wPrintStart [18:27:09]Write to MH i2c: 01 00 00 E8 10 F8 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 E8 10 00 00 00 00 00 FF 0F 0D [18:27:09]RasterBufferAndPrint [18:27:09]line Счет N : (1)594187 [18:27:09]line ИНН: 02508201610067 [18:27:09]line Контрольно-Кассовый Чек [18:27:09]line ПРОДАЖА [18:27:09]line ТРК (МРК, ГНК) : 41 [18:27:09]line Товар: 2710124500 [18:27:09]line Аи-95-К-5 [18:27:09]line 6.740 * 74.20 [18:27:09]line = 500.11 [18:27:09]line НДС 12% НСП 1% [18:27:09]line > о реализуемом товаре [18:27:09]line ОКРУГЛЕНИЕ: -0.11 [18:27:09]line ИТОГО: 500.00 [18:27:09]line Внесено: 500.00 [18:27:09]line СДАЧА: 0.00 [18:27:09]line НСП 1% : 4.43 [18:27:09]line НДС 12% : 53.11 [18:27:09]line Наличными: 500.00 [18:27:09]line Безнал.: 0.00 [18:27:09]line Место: АЗС № 136 "Партнер Нефть" [18:27:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:27:09]line СНО: Общий режим [18:27:09]line Чек 347 21.08.2024 18:27 [18:27:09]line Смена: 454 ФФД: 1.0 [18:27:09]line ЗНМ: 0300000067 [18:27:09]line РНМ: 0000000000092569 [18:27:09]line Версия ККМ: 001 [18:27:09]line ФМ: 0000000000871776 [18:27:09]line ФД: 140330 [18:27:09]line ФПД: 107606793763420 [18:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182708&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140330&fm=107606793763420&tin=02508201610067®Number=0000000000092569&sum=50000 [18:27:09]written 0, free lines is 4095 [18:27:09]OFD Sender: Processing packet 140330 [packets to send 137, broken 136] [18:27:09]ProducePacketName [18:27:09]name=ofd_packets/00140330 [18:27:09]OFD Sender: To server: pG, [18:27:09]CommunicateWithHost lk.salyk.kg:30040 [18:27:09]ConnectInit lk.salyk.kg [18:27:09]Connected sock=10 [18:27: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 37 36 0F 01 00 00 9A 9D 07 01 D0 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 7C 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 24 02 00 35 04 06 00 61 DE 28 B7 BA 5C 4B A1 3F 18 07 93 A5 2F [18:27: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 37 36 4F 00 00 00 C1 8B 47 00 59 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2A 24 02 00 F4 03 04 00 0C D8 C5 66 B6 04 01 00 00 AF 31 C3 C3 10 2F EE 83 [18:27:09]CommunicateWithHost err = 0 [18:27:09]CheckOFDResponse [18:27:09]1017 (14) - 77093643461234 [18:27:09]1041 (16) - 0000000000871776 [18:27:09]1040 (4) - 140330 [18:27:09]1012 (4) - 21.08.2024 12:05 [18:27:09]1206 (1) - 0 [18:27:09]OFD Sender: Remove packet 140330 [18:27:09]ProducePacketName [18:27:09]name=ofd_packets/00140330 [18:27:09]NVStorageDeleteData [18:27:09]Write to MH i2c: 01 00 00 13 11 24 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FB 0C 32 [18:27:09]RasterBufferAndPrint [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]line [18:27:09]written 0, free lines is 3338 [18:27:09]MH_Cut [18:27:09]Write to MH i2c: D1 01 00 1A 11 01 FD [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 01 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: D1 01 00 1A 11 00 FC [18:27:09]Write to MH i2c: 01 00 00 1B 11 2C [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:10]OFD Sender: No OFD packet to send [18:27:10]*** Cut start [18:27:10]*** Partial cut [18:27:10]*** CUTSNS_PIN = 1 [18:27:10]*** CUTSNS_PIN = 0 [18:27:10]*** Brake cut motor [18:27:11]Read from MH i2c: 01 [18:27:11]MH_I2C_Read... [18:27:11]*** Stop cut motor [18:27:11]*** Cut end [18:27:11]Read from MH i2c: 01 07 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 1B 11 00 00 00 00 00 FF 0F 41 [18:27:11]process_action close_receipt done [18:27:11]requested_data is exist [18:27:11]produce_requested_data [18:27:11]requested_item fm.sn is exist - process it [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 11 00 00 [18:27:11]Write to MH i2c: E2 08 00 1C 11 80 11 00 00 00 00 00 00 A7 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 17 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 17 00 1C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FE [18:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:27:11]wFMCommunicate OK [18:27:11]requested_item fd.num is exist - process it [18:27:11]SAM_PROTO_GetFieldsCounters [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 13 00 00 [18:27:11]Write to MH i2c: E2 08 00 1D 11 80 13 00 00 00 00 00 00 AA [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 62 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 62 00 1D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 24 02 00 0E 04 04 00 C6 01 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 00 [18:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2A 24 02 00 0E 04 04 00 C6 01 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 [18:27:11]wFMCommunicate OK [18:27:11]SAM_PROTO_GetFieldsCounters done [18:27:11]requested_item shift.num is exist - process it [18:27:11]requested_item shift.opened is exist - process it [18:27:11]req_shift_opened [18:27:11]FM_GetShiftState [18:27:11]SAM_PROTO_GetShiftState [18:27:11]wFMCommunicate request_size=4 [18:27:11]MH_SAM_APDU [18:27:11]CAPDU: 80 13 01 00 [18:27:11]Write to MH i2c: E2 08 00 1E 11 80 13 01 00 00 00 00 00 AC [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:11]Read from MH i2c: E2 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0E 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: E2 0E 00 1E 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2C [18:27:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:27:11]wFMCommunicate OK [18:27:11]SAM_PROTO_GetShiftState done [18:27:11]FM_GetShiftState done [18:27:11]req_shift_opened done [18:27:11]requested_item shift.open_date is exist - process it [18:27:11]req_shift_open_date [18:27:11]req_shift_open_date done [18:27:11]produce_requested_data done [18:27:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140330,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:27:11]process_action_free close_receipt [18:27:11]json_value_free [18:27:11]json_value_free done [18:27:11]process_json_proto returns [18:27:11]Send response to host [18:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140330,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:27:11]free response buf [18:27:11]execute_script done [18:27:11]execute_script returns [18:27:11]free content buf [18:27:11]Sock 9.Close socket [18:27:11]Sock 9.Thread stoped [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:49]accept exits with 7 [18:28:49]New connection [18:28:49]New thread 3067612516 created [18:28:49]Thread 3067469156 joined [18:28:49]Waiting for new connection... [18:28:49] Sock 7.Parse request [18:28:49]Sock 7.Check first char [18:28:49]Sock 7.First char is OK [18:28:49]request: POST /json_proto HTTP/1.0 [18:28:49]Method: POST [18:28:49]URL: /json_proto [18:28:49]Method is POST - this is cgi request [18:28:49]url: /json_proto [18:28:49]query_string will be loaded in cgi processing [18:28:49]execute_cgi json_proto POST (null) [18:28:49]execute_cgi path=json_proto method=POST [18:28:49]POST find Content-Length [18:28:49]Host: 172.17.45.67:8080 [18:28:49]Content-Length: 677 [18:28:49]Content-Type: application/json [18:28:49] [18:28:49]POST finish read [18:28:49]Found Content-Length = 677 [18:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:49]execute_script... [18:28: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)594189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:49]POST & json_proto [18:28:49]process_json_proto [18:28:49]json parsed OK: [18:28:49]protocol is kg_v1.0 [18:28:49]action value=close_receipt [18:28:49]process_action close_receipt [18:28:49]cmd_close_receipt [18:28:49]MH_GetDate [18:28:49]Write to MH i2c: F0 00 00 1F 11 1F [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: F0 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: F0 09 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: F0 09 00 1F 11 00 E2 31 C6 66 5F 7F 2B 66 D6 [18:28:49]GetLastDocTimeStamp 1724264828 [18:28:49]current date 1724264930 [18:28:49]FM_GetShiftState [18:28:49]SAM_PROTO_GetShiftState [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 13 01 00 [18:28:49]Write to MH i2c: E2 08 00 20 11 80 13 01 00 00 00 00 00 AE [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 20 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [18:28:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_GetShiftState done [18:28:49]FM_GetShiftState done [18:28:49]opened in 1724200467 [18:28:49]opened+sec_in_day 1724286867 [18:28:49]quantity*price = 30035 [18:28:49]sum+1 = 30036 [18:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 348 21.08.2024 18:28 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140331 ФПД: 61321675743427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182850&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140331&fm=61321675743427&tin=02508201610067®Number=0000000000092569&sum=30000 [18:28:50]StoreToDocumentArchive [18:28:50]shift 454 fd 140331 [18:28:50]save to /storage/0454/doc_00140331 [18:28:50]save last doc name /storage/0454/doc_00140331 to /storage/kkm_last_doc_name [18:28:50]save OK [18:28:50]Clear old archive folders... [18:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:50]tlvbuf is B6FF9B20 [18:28:50]SAM_PROTO_ClearQueue [18:28:50]wFMCommunicate request_size=4 [18:28:50]MH_SAM_APDU [18:28:50]CAPDU: 80 09 00 00 [18:28:50]Write to MH i2c: E2 08 00 2D 11 80 09 00 00 00 00 00 00 B0 [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:50]Read from MH i2c: E2 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 03 00 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [18:28:50]RAPDU: 90 00 [18:28:50]wFMCommunicate OK [18:28:50]SAM_PROTO_ClearQueue done [18:28:50]KKMCreateOFDPacket [18:28:50]OFDProtocolAddRootSTLVToBuf [18:28:50]FM_MakeSignedData [18:28:50]FM_MakeSignedData [18:28:50]SAM_PROTO_SignData [18:28:50]wFMCommunicate request_size=4 [18:28:50]MH_SAM_APDU [18:28:50]CAPDU: 80 0D 01 02 [18:28:50]Write to MH i2c: E2 08 00 2E 11 80 0D 01 02 00 00 00 00 B8 [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:50]Read from MH i2c: E2 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 03 00 [18:28:50]MH_I2C_Read... [18:28:50]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [18:28:50]RAPDU: 90 00 [18:28:50]wFMCommunicate OK [18:28:50]wFMCommunicate request_size=255 [18:28:50]MH_SAM_APDU [18:28: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 E2 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 24 02 00 35 04 06 00 37 [18:28:50]Write to MH i2c: E2 02 01 2F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 E2 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 24 02 00 35 04 06 00 37 00 00 4B [18:28:50]Write i2c OK [18:28:50]MH_I2C_Read... [18:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:51]Read from MH i2c: E2 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 03 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [18:28:51]RAPDU: 90 00 [18:28:51]wFMCommunicate OK [18:28:51]wFMCommunicate request_size=10 [18:28:51]MH_SAM_APDU [18:28:51]CAPDU: 80 0D 02 02 05 C5 90 B3 20 C3 [18:28:51]Write to MH i2c: E2 0D 00 30 11 80 0D 02 02 05 00 C5 90 B3 20 C3 00 00 B0 [18:28:51]Write i2c OK [18:28:51]MH_I2C_Read... [18:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:51]Read from MH i2c: E2 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 03 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [18:28:51]RAPDU: 90 00 [18:28:51]wFMCommunicate OK [18:28:51]wFMCommunicate request_size=4 [18:28:51]MH_SAM_APDU [18:28:51]CAPDU: 80 0D 03 02 [18:28:51]Write to MH i2c: E2 08 00 31 11 80 0D 03 02 00 00 00 00 BD [18:28:51]Write i2c OK [18:28:51]MH_I2C_Read... [18:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:51]Read from MH i2c: E2 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 0B 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 0B 00 31 11 00 D8 A3 97 4A DA 96 2E EE 90 00 A6 [18:28:51]RAPDU: D8 A3 97 4A DA 96 2E EE 90 00 [18:28:51]wFMCommunicate OK [18:28:51]SAM_PROTO_SignData done [18:28:51]FM_MakeSignedData done [18:28:51]CreateOFDProtocolMessage [18:28:51]wFMCommunicate request_size=4 [18:28:51]MH_SAM_APDU [18:28:51]CAPDU: 80 11 00 00 [18:28:51]Write to MH i2c: E2 08 00 32 11 80 11 00 00 00 00 00 00 BD [18:28:51]Write i2c OK [18:28:51]MH_I2C_Read... [18:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:51]Read from MH i2c: E2 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 17 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: E2 17 00 32 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 14 [18:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:28:51]wFMCommunicate OK [18:28:51]CreateOFDProtocolMessage done [18:28:51]OFDSenderStorePacket 140331 [18:28:51]StoreOFDPacket docnum=140331 [18:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 46 06 07 01 29 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 E2 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 24 02 00 35 04 06 00 37 C5 90 B3 20 C3 D8 A3 97 4A DA 96 2E EE [18:28:51]CheckFolder [18:28:51]dirname=/storage/ofd_packets [18:28:51]CheckFolder done [18:28:51]ProducePacketName [18:28:51]name=ofd_packets/00140331 [18:28:51]NVStorageSaveData ofd_packets/00140331 [18:28:51]File name is /storage/ofd_packets/00140331 [18:28:51]Write 301 bytes [18:28:51]NVStorageSaveData done [18:28:51]OFDSenderStorePacket done [18:28:51]KKMCreateOFDPacket done [18:28:51]NVStorageSaveData kkm_last_timestamp [18:28:51]File name is /storage/kkm_last_timestamp [18:28:51]Write 4 bytes [18:28:51]NVStorageSaveData done [18:28:51]ExternCall_PrintAddStr [18:28:51]wPrintStart [18:28:51]Write to MH i2c: 01 00 00 33 11 44 [18:28:51]Write i2c OK [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 07 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 07 00 33 11 00 00 00 00 00 FF 0F 59 [18:28:51]RasterBufferAndPrint [18:28:51]line Счет N : (1)594189 [18:28:51]line ИНН: 02508201610067 [18:28:51]line Контрольно-Кассовый Чек [18:28:51]line ПРОДАЖА [18:28:51]line ТРК (МРК, ГНК) : 62 [18:28:51]line Товар: 2710124130 [18:28:51]line Аи-92-К-5 [18:28:51]line 4.430 * 67.80 [18:28:51]line = 300.35 [18:28:51]line НДС 12% НСП 1% [18:28:51]line > о реализуемом товаре [18:28:51]line ОКРУГЛЕНИЕ: -0.35 [18:28:51]line ИТОГО: 300.00 [18:28:51]line Внесено: 300.00 [18:28:51]line СДАЧА: 0.00 [18:28:51]line НСП 1% : 2.66 [18:28:51]line НДС 12% : 31.90 [18:28:51]line Наличными: 300.00 [18:28:51]line Безнал.: 0.00 [18:28:51]line Место: АЗС № 136 "Партнер Нефть" [18:28:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:28:51]line СНО: Общий режим [18:28:51]line Чек 348 21.08.2024 18:28 [18:28:51]line Смена: 454 ФФД: 1.0 [18:28:51]line ЗНМ: 0300000067 [18:28:51]line РНМ: 0000000000092569 [18:28:51]line Версия ККМ: 001 [18:28:51]line ФМ: 0000000000871776 [18:28:51]line ФД: 140331 [18:28:51]line ФПД: 61321675743427 [18:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182850&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140331&fm=61321675743427&tin=02508201610067®Number=0000000000092569&sum=30000 [18:28:51]written 0, free lines is 4095 [18:28:51]OFD Sender: Processing packet 140331 [packets to send 137, broken 136] [18:28:51]ProducePacketName [18:28:51]name=ofd_packets/00140331 [18:28:51]OFD Sender: To server: pG, [18:28:51]CommunicateWithHost lk.salyk.kg:30040 [18:28:51]ConnectInit lk.salyk.kg [18:28:51]Connected sock=10 [18:28: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 37 36 0F 01 00 00 46 06 07 01 29 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 E2 31 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2B 24 02 00 35 04 06 00 37 C5 90 B3 20 C3 D8 A3 97 4A DA 96 2E EE [18:28: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 37 36 4F 00 00 00 5C 52 47 00 E6 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 37 36 10 04 04 00 2B 24 02 00 F4 03 04 00 72 D8 C5 66 B6 04 01 00 00 C3 6B 8A 91 B5 D5 41 0E [18:28:51]CommunicateWithHost err = 0 [18:28:51]CheckOFDResponse [18:28:51]1017 (14) - 77093643461234 [18:28:51]1041 (16) - 0000000000871776 [18:28:51]1040 (4) - 140331 [18:28:51]1012 (4) - 21.08.2024 12:07 [18:28:51]1206 (1) - 0 [18:28:51]OFD Sender: Remove packet 140331 [18:28:51]ProducePacketName [18:28:51]name=ofd_packets/00140331 [18:28:51]NVStorageDeleteData [18:28:51]Write to MH i2c: 01 00 00 5E 11 6F [18:28:51]Write i2c OK [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 07 00 [18:28:51]MH_I2C_Read... [18:28:51]Read from MH i2c: 01 07 00 5E 11 00 00 00 00 00 E5 0C 67 [18:28:51]RasterBufferAndPrint [18:28:51]line [18:28:51]line [18:28:51]line [18:28:51]line [18:28:51]line [18:28:51]written 0, free lines is 3307 [18:28:52]MH_Cut [18:28:52]Write to MH i2c: D1 01 00 65 11 01 48 [18:28:52]Write i2c OK [18:28:52]MH_I2C_Read... [18:28:52]Read from MH i2c: D1 [18:28:52]MH_I2C_Read... [18:28:52]Read from MH i2c: D1 01 00 [18:28:52]MH_I2C_Read... [18:28:52]Read from MH i2c: D1 01 00 65 11 00 47 [18:28:52]Write to MH i2c: 01 00 00 66 11 77 [18:28:52]Write i2c OK [18:28:52]MH_I2C_Read... [18:28:52]OFD Sender: No OFD packet to send [18:28:52]*** Cut start [18:28:52]*** Partial cut [18:28:52]*** CUTSNS_PIN = 1 [18:28:52]*** CUTSNS_PIN = 0 [18:28:52]*** Brake cut motor [18:28:53]Read from MH i2c: 01 [18:28:53]MH_I2C_Read... [18:28:53]*** Stop cut motor [18:28:53]*** Cut end [18:28:53]Read from MH i2c: 01 07 00 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: 01 07 00 66 11 00 00 00 00 00 FF 0F 8C [18:28:53]process_action close_receipt done [18:28:53]requested_data is exist [18:28:53]produce_requested_data [18:28:53]requested_item fm.sn is exist - process it [18:28:53]wFMCommunicate request_size=4 [18:28:53]MH_SAM_APDU [18:28:53]CAPDU: 80 11 00 00 [18:28:53]Write to MH i2c: E2 08 00 67 11 80 11 00 00 00 00 00 00 F2 [18:28:53]Write i2c OK [18:28:53]MH_I2C_Read... [18:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:53]Read from MH i2c: E2 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 17 00 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 17 00 67 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [18:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:28:53]wFMCommunicate OK [18:28:53]requested_item fd.num is exist - process it [18:28:53]SAM_PROTO_GetFieldsCounters [18:28:53]wFMCommunicate request_size=4 [18:28:53]MH_SAM_APDU [18:28:53]CAPDU: 80 13 00 00 [18:28:53]Write to MH i2c: E2 08 00 68 11 80 13 00 00 00 00 00 00 F5 [18:28:53]Write i2c OK [18:28:53]MH_I2C_Read... [18:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:53]Read from MH i2c: E2 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 62 00 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 62 00 68 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 24 02 00 0E 04 04 00 C6 01 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 4F [18:28: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2B 24 02 00 0E 04 04 00 C6 01 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 [18:28:53]wFMCommunicate OK [18:28:53]SAM_PROTO_GetFieldsCounters done [18:28:53]requested_item shift.num is exist - process it [18:28:53]requested_item shift.opened is exist - process it [18:28:53]req_shift_opened [18:28:53]FM_GetShiftState [18:28:53]SAM_PROTO_GetShiftState [18:28:53]wFMCommunicate request_size=4 [18:28:53]MH_SAM_APDU [18:28:53]CAPDU: 80 13 01 00 [18:28:53]Write to MH i2c: E2 08 00 69 11 80 13 01 00 00 00 00 00 F7 [18:28:53]Write i2c OK [18:28:53]MH_I2C_Read... [18:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:53]Read from MH i2c: E2 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 0E 00 [18:28:53]MH_I2C_Read... [18:28:53]Read from MH i2c: E2 0E 00 69 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 77 [18:28:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:28:53]wFMCommunicate OK [18:28:53]SAM_PROTO_GetShiftState done [18:28:53]FM_GetShiftState done [18:28:53]req_shift_opened done [18:28:53]requested_item shift.open_date is exist - process it [18:28:53]req_shift_open_date [18:28:53]req_shift_open_date done [18:28:53]produce_requested_data done [18:28:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140331,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:28:53]process_action_free close_receipt [18:28:53]json_value_free [18:28:53]json_value_free done [18:28:53]process_json_proto returns [18:28:53]Send response to host [18:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140331,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:28:53]free response buf [18:28:53]execute_script done [18:28:53]execute_script returns [18:28:53]free content buf [18:28:53]Sock 7.Close socket [18:28:53]Sock 7.Thread stoped [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:38]accept exits with 9 [18:29:38]New connection [18:29:38]New thread 3067469156 created [18:29:38]Thread 3067612516 joined [18:29:38]Waiting for new connection... [18:29:38] Sock 9.Parse request [18:29:38]Sock 9.Check first char [18:29:38]Sock 9.First char is OK [18:29:38]request: POST /json_proto HTTP/1.0 [18:29:38]Method: POST [18:29:38]URL: /json_proto [18:29:38]Method is POST - this is cgi request [18:29:38]url: /json_proto [18:29:38]query_string will be loaded in cgi processing [18:29:38]execute_cgi json_proto POST (null) [18:29:38]execute_cgi path=json_proto method=POST [18:29:38]POST find Content-Length [18:29:38]Host: 172.17.45.67:8080 [18:29:38]Content-Length: 677 [18:29:38]Content-Type: application/json [18:29:38] [18:29:38]POST finish read [18:29:38]Found Content-Length = 677 [18:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.410, "sum" : 570.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:38]execute_script... [18: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)594190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.410, "sum" : 570.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:38]POST & json_proto [18:29:38]process_json_proto [18:29:38]json parsed OK: [18:29:38]protocol is kg_v1.0 [18:29:38]action value=close_receipt [18:29:38]process_action close_receipt [18:29:38]cmd_close_receipt [18:29:38]MH_GetDate [18:29:38]Write to MH i2c: F0 00 00 6A 11 6A [18:29:38]Write i2c OK [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 09 00 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: F0 09 00 6A 11 00 13 32 C6 66 5F 7F 2B 66 53 [18:29:38]GetLastDocTimeStamp 1724264930 [18:29:38]current date 1724264979 [18:29:38]FM_GetShiftState [18:29:38]SAM_PROTO_GetShiftState [18:29:38]wFMCommunicate request_size=4 [18:29:38]MH_SAM_APDU [18:29:38]CAPDU: 80 13 01 00 [18:29:38]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [18:29:38]Write i2c OK [18:29:38]MH_I2C_Read... [18:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:38]Read from MH i2c: E2 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: E2 0E 00 [18:29:38]MH_I2C_Read... [18:29:38]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [18:29:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:29:38]wFMCommunicate OK [18:29:38]SAM_PROTO_GetShiftState done [18:29:38]FM_GetShiftState done [18:29:38]opened in 1724200467 [18:29:38]opened+sec_in_day 1724286867 [18:29:38]quantity*price = 57019 [18:29:38]sum+1 = 57021 [18:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.55 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 349 21.08.2024 18:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140332 ФПД: 9040428854288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140332&fm=9040428854288&tin=02508201610067®Number=0000000000092569&sum=57000 [18:29:39]StoreToDocumentArchive [18:29:39]shift 454 fd 140332 [18:29:39]save to /storage/0454/doc_00140332 [18:29:39]save last doc name /storage/0454/doc_00140332 to /storage/kkm_last_doc_name [18:29:39]save OK [18:29:39]Clear old archive folders... [18:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:39]tlvbuf is 00CBF690 [18:29:39]SAM_PROTO_ClearQueue [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 09 00 00 [18:29:39]Write to MH i2c: E2 08 00 78 11 80 09 00 00 00 00 00 00 FB [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [18:29:39]RAPDU: 90 00 [18:29:39]wFMCommunicate OK [18:29:39]SAM_PROTO_ClearQueue done [18:29:39]KKMCreateOFDPacket [18:29:39]OFDProtocolAddRootSTLVToBuf [18:29:39]FM_MakeSignedData [18:29:39]FM_MakeSignedData [18:29:39]SAM_PROTO_SignData [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 0D 01 02 [18:29:39]Write to MH i2c: E2 08 00 79 11 80 0D 01 02 00 00 00 00 03 [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [18:29:39]RAPDU: 90 00 [18:29:39]wFMCommunicate OK [18:29:39]wFMCommunicate request_size=255 [18:29:39]MH_SAM_APDU [18: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 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 01 00 00 F4 03 04 00 13 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 24 02 00 35 04 06 00 08 [18:29:39]Write to MH i2c: E2 02 01 7A 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 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 01 00 00 F4 03 04 00 13 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 24 02 00 35 04 06 00 08 00 00 F5 [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=10 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 05 38 E3 8C EC 10 [18:29:40]Write to MH i2c: E2 0D 00 7B 11 80 0D 02 02 05 00 38 E3 8C EC 10 00 00 B3 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 03 02 [18:29:40]Write to MH i2c: E2 08 00 7C 11 80 0D 03 02 00 00 00 00 08 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 7C 11 00 14 22 F5 B6 EA F1 A0 32 90 00 97 [18:29:40]RAPDU: 14 22 F5 B6 EA F1 A0 32 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_SignData done [18:29:40]FM_MakeSignedData done [18:29:40]CreateOFDProtocolMessage [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 11 00 00 [18:29:40]Write to MH i2c: E2 08 00 7D 11 80 11 00 00 00 00 00 00 08 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 7D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5F [18:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:29:40]wFMCommunicate OK [18:29:40]CreateOFDProtocolMessage done [18:29:40]OFDSenderStorePacket 140332 [18:29:40]StoreOFDPacket docnum=140332 [18:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D5 27 07 01 44 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 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 01 00 00 F4 03 04 00 13 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 24 02 00 35 04 06 00 08 38 E3 8C EC 10 14 22 F5 B6 EA F1 A0 32 [18:29:40]CheckFolder [18:29:40]dirname=/storage/ofd_packets [18:29:40]CheckFolder done [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00140332 [18:29:40]NVStorageSaveData ofd_packets/00140332 [18:29:40]File name is /storage/ofd_packets/00140332 [18:29:40]Write 301 bytes [18:29:40]NVStorageSaveData done [18:29:40]OFDSenderStorePacket done [18:29:40]KKMCreateOFDPacket done [18:29:40]NVStorageSaveData kkm_last_timestamp [18:29:40]File name is /storage/kkm_last_timestamp [18:29:40]Write 4 bytes [18:29:40]NVStorageSaveData done [18:29:40]ExternCall_PrintAddStr [18:29:40]wPrintStart [18:29:40]Write to MH i2c: 01 00 00 7E 11 8F [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 FF 0F A4 [18:29:40]RasterBufferAndPrint [18:29:40]line Счет N : (1)594190 [18:29:40]line ИНН: 02508201610067 [18:29:40]line Контрольно-Кассовый Чек [18:29:40]line ПРОДАЖА [18:29:40]line ТРК (МРК, ГНК) : 52 [18:29:40]line Товар: 2710124130 [18:29:40]line Аи-92-К-5 [18:29:40]line 8.410 * 67.80 [18:29:40]line = 570.20 [18:29:40]line НДС 12% НСП 1% [18:29:40]line > о реализуемом товаре [18:29:40]line ОКРУГЛЕНИЕ: -0.20 [18:29:40]line ИТОГО: 570.00 [18:29:40]line Внесено: 570.00 [18:29:40]line СДАЧА: 0.00 [18:29:40]line НСП 1% : 5.05 [18:29:40]line НДС 12% : 60.55 [18:29:40]line Наличными: 570.00 [18:29:40]line Безнал.: 0.00 [18:29:40]line Место: АЗС № 136 "Партнер Нефть" [18:29:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:29:40]line СНО: Общий режим [18:29:40]line Чек 349 21.08.2024 18:29 [18:29:40]line Смена: 454 ФФД: 1.0 [18:29:40]line ЗНМ: 0300000067 [18:29:40]line РНМ: 0000000000092569 [18:29:40]line Версия ККМ: 001 [18:29:40]line ФМ: 0000000000871776 [18:29:40]line ФД: 140332 [18:29:40]line ФПД: 9040428854288 [18:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140332&fm=9040428854288&tin=02508201610067®Number=0000000000092569&sum=57000 [18:29:40]written 0, free lines is 4095 [18:29:40]OFD Sender: Processing packet 140332 [packets to send 137, broken 136] [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00140332 [18:29:40]OFD Sender: To server: pG, [18:29:40]CommunicateWithHost lk.salyk.kg:30040 [18:29:40]ConnectInit lk.salyk.kg [18:29:40]Connected sock=10 [18: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 37 36 0F 01 00 00 D5 27 07 01 44 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 DA 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BC DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 17 00 00 00 00 07 04 06 00 A8 DE 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 01 00 00 F4 03 04 00 13 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2C 24 02 00 35 04 06 00 08 38 E3 8C EC 10 14 22 F5 B6 EA F1 A0 32 [18:29: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 37 36 4F 00 00 00 4B 70 47 00 B0 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 37 36 10 04 04 00 2C 24 02 00 F4 03 04 00 A3 D8 C5 66 B6 04 01 00 00 C5 13 16 AA B5 B6 48 A2 [18:29:41]CommunicateWithHost err = 0 [18:29:41]CheckOFDResponse [18:29:41]1017 (14) - 77093643461234 [18:29:41]1041 (16) - 0000000000871776 [18:29:41]1040 (4) - 140332 [18:29:41]1012 (4) - 21.08.2024 12:08 [18:29:41]1206 (1) - 0 [18:29:41]OFD Sender: Remove packet 140332 [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00140332 [18:29:41]NVStorageDeleteData [18:29:41]Write to MH i2c: 01 00 00 A9 11 BA [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 A9 11 00 00 00 00 00 E4 0C B1 [18:29:41]RasterBufferAndPrint [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]written 0, free lines is 3306 [18:29:41]MH_Cut [18:29:41]Write to MH i2c: D1 01 00 B0 11 01 93 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 B0 11 00 92 [18:29:41]Write to MH i2c: 01 00 00 B1 11 C2 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]OFD Sender: No OFD packet to send [18:29:41]*** Cut start [18:29:41]*** Partial cut [18:29:41]*** CUTSNS_PIN = 1 [18:29:41]*** CUTSNS_PIN = 0 [18:29:42]*** Brake cut motor [18:29:42]Read from MH i2c: 01 [18:29:42]MH_I2C_Read... [18:29:42]*** Stop cut motor [18:29:42]*** Cut end [18:29:42]Read from MH i2c: 01 07 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: 01 07 00 B1 11 00 00 00 00 00 FF 0F D7 [18:29:42]process_action close_receipt done [18:29:42]requested_data is exist [18:29:42]produce_requested_data [18:29:42]requested_item fm.sn is exist - process it [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 11 00 00 [18:29:42]Write to MH i2c: E2 08 00 B2 11 80 11 00 00 00 00 00 00 3D [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 17 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 17 00 B2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [18:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:29:42]wFMCommunicate OK [18:29:42]requested_item fd.num is exist - process it [18:29:42]SAM_PROTO_GetFieldsCounters [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 13 00 00 [18:29:42]Write to MH i2c: E2 08 00 B3 11 80 13 00 00 00 00 00 00 40 [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 62 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 62 00 B3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 24 02 00 0E 04 04 00 C6 01 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 9E [18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2C 24 02 00 0E 04 04 00 C6 01 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 [18:29:42]wFMCommunicate OK [18:29:42]SAM_PROTO_GetFieldsCounters done [18:29:42]requested_item shift.num is exist - process it [18:29:42]requested_item shift.opened is exist - process it [18:29:42]req_shift_opened [18:29:42]FM_GetShiftState [18:29:42]SAM_PROTO_GetShiftState [18:29:42]wFMCommunicate request_size=4 [18:29:42]MH_SAM_APDU [18:29:42]CAPDU: 80 13 01 00 [18:29:42]Write to MH i2c: E2 08 00 B4 11 80 13 01 00 00 00 00 00 42 [18:29:42]Write i2c OK [18:29:42]MH_I2C_Read... [18:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:42]Read from MH i2c: E2 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 0E 00 [18:29:42]MH_I2C_Read... [18:29:42]Read from MH i2c: E2 0E 00 B4 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C2 [18:29:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:29:42]wFMCommunicate OK [18:29:42]SAM_PROTO_GetShiftState done [18:29:42]FM_GetShiftState done [18:29:42]req_shift_opened done [18:29:42]requested_item shift.open_date is exist - process it [18:29:42]req_shift_open_date [18:29:42]req_shift_open_date done [18:29:42]produce_requested_data done [18:29:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140332,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:29:42]process_action_free close_receipt [18:29:42]json_value_free [18:29:42]json_value_free done [18:29:42]process_json_proto returns [18:29:42]Send response to host [18:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140332,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:29:42]free response buf [18:29:42]execute_script done [18:29:42]execute_script returns [18:29:42]free content buf [18:29:42]Sock 9.Close socket [18:29:42]Sock 9.Thread stoped [18:29:46]accept exits with 7 [18:29:46]New connection [18:29:46]New thread 3067612516 created [18:29:46]Thread 3067469156 joined [18:29:46]Waiting for new connection... [18:29:46] Sock 7.Parse request [18:29:46]Sock 7.Check first char [18:29:46]Sock 7.First char is OK [18:29:46]request: POST /json_proto HTTP/1.0 [18:29:46]Method: POST [18:29:46]URL: /json_proto [18:29:46]Method is POST - this is cgi request [18:29:46]url: /json_proto [18:29:46]query_string will be loaded in cgi processing [18:29:46]execute_cgi json_proto POST (null) [18:29:46]execute_cgi path=json_proto method=POST [18:29:46]POST find Content-Length [18:29:46]Host: 172.17.45.67:8080 [18:29:46]Content-Length: 682 [18:29:46]Content-Type: application/json [18:29:46] [18:29:46]POST finish read [18:29:46]Found Content-Length = 682 [18:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:29:46]execute_script... [18:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:29:46]POST & json_proto [18:29:46]process_json_proto [18:29:46]json parsed OK: [18:29:46]protocol is kg_v1.0 [18:29:46]action value=close_receipt [18:29:46]process_action close_receipt [18:29:46]cmd_close_receipt [18:29:46]MH_GetDate [18:29:46]Write to MH i2c: F0 00 00 B5 11 B5 [18:29:46]Write i2c OK [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: F0 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: F0 09 00 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: F0 09 00 B5 11 00 1B 32 C6 66 5F 7F 2B 66 A6 [18:29:46]GetLastDocTimeStamp 1724264979 [18:29:46]current date 1724264987 [18:29:46]FM_GetShiftState [18:29:46]SAM_PROTO_GetShiftState [18:29:46]wFMCommunicate request_size=4 [18:29:46]MH_SAM_APDU [18:29:46]CAPDU: 80 13 01 00 [18:29:46]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [18:29:46]OFD Sender: No OFD packet to send [18:29:46]Write i2c OK [18:29:46]MH_I2C_Read... [18:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:46]Read from MH i2c: E2 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: E2 0E 00 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [18:29:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:29:46]wFMCommunicate OK [18:29:46]SAM_PROTO_GetShiftState done [18:29:46]FM_GetShiftState done [18:29:46]opened in 1724200467 [18:29:46]opened+sec_in_day 1724286867 [18:29:46]quantity*price = 70027 [18:29:46]sum+1 = 70029 [18:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 350 21.08.2024 18:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140333 ФПД: 101621530484415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140333&fm=101621530484415&tin=02508201610067®Number=0000000000092569&sum=70000 [18:29:47]StoreToDocumentArchive [18:29:47]shift 454 fd 140333 [18:29:47]save to /storage/0454/doc_00140333 [18:29:47]save last doc name /storage/0454/doc_00140333 to /storage/kkm_last_doc_name [18:29:47]save OK [18:29:47]Clear old archive folders... [18:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:29:47]tlvbuf is 00C931A0 [18:29:47]SAM_PROTO_ClearQueue [18:29:47]wFMCommunicate request_size=4 [18:29:47]MH_SAM_APDU [18:29:47]CAPDU: 80 09 00 00 [18:29:47]Write to MH i2c: E2 08 00 C3 11 80 09 00 00 00 00 00 00 46 [18:29:47]Write i2c OK [18:29:47]MH_I2C_Read... [18:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:47]Read from MH i2c: E2 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 03 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [18:29:47]RAPDU: 90 00 [18:29:47]wFMCommunicate OK [18:29:47]SAM_PROTO_ClearQueue done [18:29:47]KKMCreateOFDPacket [18:29:47]OFDProtocolAddRootSTLVToBuf [18:29:47]FM_MakeSignedData [18:29:47]FM_MakeSignedData [18:29:47]SAM_PROTO_SignData [18:29:47]wFMCommunicate request_size=4 [18:29:47]MH_SAM_APDU [18:29:47]CAPDU: 80 0D 01 02 [18:29:47]Write to MH i2c: E2 08 00 C4 11 80 0D 01 02 00 00 00 00 4E [18:29:47]Write i2c OK [18:29:47]MH_I2C_Read... [18:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:47]Read from MH i2c: E2 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 03 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 03 00 C4 11 00 90 00 49 [18:29:47]RAPDU: 90 00 [18:29:47]wFMCommunicate OK [18:29:47]wFMCommunicate request_size=255 [18:29:47]MH_SAM_APDU [18:29:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 5E 01 00 00 F4 03 04 00 1B 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 24 02 00 35 04 06 00 [18:29:47]Write to MH i2c: E2 02 01 C5 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 5E 01 00 00 F4 03 04 00 1B 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 24 02 00 35 04 06 00 00 00 B3 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [18:29:48]RAPDU: 90 00 [18:29:48]wFMCommunicate OK [18:29:48]wFMCommunicate request_size=11 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 0D 02 02 06 5C 6C 9B 39 DE BF [18:29:48]Write to MH i2c: E2 0E 00 C6 11 80 0D 02 02 06 00 5C 6C 9B 39 DE BF 00 00 96 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [18:29:48]RAPDU: 90 00 [18:29:48]wFMCommunicate OK [18:29:48]wFMCommunicate request_size=4 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 0D 03 02 [18:29:48]Write to MH i2c: E2 08 00 C7 11 80 0D 03 02 00 00 00 00 53 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 0B 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 0B 00 C7 11 00 42 AA 0F 13 9A 0F 44 7F 90 00 CE [18:29:48]RAPDU: 42 AA 0F 13 9A 0F 44 7F 90 00 [18:29:48]wFMCommunicate OK [18:29:48]SAM_PROTO_SignData done [18:29:48]FM_MakeSignedData done [18:29:48]CreateOFDProtocolMessage [18:29:48]wFMCommunicate request_size=4 [18:29:48]MH_SAM_APDU [18:29:48]CAPDU: 80 11 00 00 [18:29:48]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:48]Read from MH i2c: E2 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 17 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AA [18:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:29:48]wFMCommunicate OK [18:29:48]CreateOFDProtocolMessage done [18:29:48]OFDSenderStorePacket 140333 [18:29:48]StoreOFDPacket docnum=140333 [18:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 B3 1C 08 01 EC 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 5E 01 00 00 F4 03 04 00 1B 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 24 02 00 35 04 06 00 5C 6C 9B 39 DE BF 42 AA 0F 13 9A 0F 44 7F [18:29:48]CheckFolder [18:29:48]dirname=/storage/ofd_packets [18:29:48]CheckFolder done [18:29:48]ProducePacketName [18:29:48]name=ofd_packets/00140333 [18:29:48]NVStorageSaveData ofd_packets/00140333 [18:29:48]File name is /storage/ofd_packets/00140333 [18:29:48]Write 302 bytes [18:29:48]NVStorageSaveData done [18:29:48]OFDSenderStorePacket done [18:29:48]KKMCreateOFDPacket done [18:29:48]NVStorageSaveData kkm_last_timestamp [18:29:48]File name is /storage/kkm_last_timestamp [18:29:48]Write 4 bytes [18:29:48]NVStorageSaveData done [18:29:48]ExternCall_PrintAddStr [18:29:48]wPrintStart [18:29:48]Write to MH i2c: 01 00 00 C9 11 DA [18:29:48]OFD Sender: Processing packet 140333 [packets to send 137, broken 136] [18:29:48]ProducePacketName [18:29:48]name=ofd_packets/00140333 [18:29:48]OFD Sender: To server: pG, [18:29:48]CommunicateWithHost lk.salyk.kg:30040 [18:29:48]ConnectInit lk.salyk.kg [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 07 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 07 00 C9 11 00 00 00 00 00 FF 0F EF [18:29:48]RasterBufferAndPrint [18:29:48]line Счет N : (1)594191 [18:29:48]line ИНН: 02508201610067 [18:29:48]line Контрольно-Кассовый Чек [18:29:48]line ПРОДАЖА [18:29:48]line ТРК (МРК, ГНК) : 44 [18:29:48]line Товар: 2710194210 [18:29:48]line ДТ(л)-К-5 [18:29:48]line 9.190 * 76.20 [18:29:48]line = 700.28 [18:29:48]line НДС 12% НСП 1% [18:29:48]line > о реализуемом товаре [18:29:48]line ОКРУГЛЕНИЕ: -0.28 [18:29:48]line ИТОГО: 700.00 [18:29:48]line Внесено: 700.00 [18:29:48]line СДАЧА: 0.00 [18:29:48]line НСП 1% : 6.20 [18:29:48]line НДС 12% : 74.37 [18:29:48]line Наличными: 700.00 [18:29:48]line Безнал.: 0.00 [18:29:48]line Место: АЗС № 136 "Партнер Нефть" [18:29:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:29:48]line СНО: Общий режим [18:29:48]line Чек 350 21.08.2024 18:29 [18:29:48]line Смена: 454 ФФД: 1.0 [18:29:48]line ЗНМ: 0300000067 [18:29:48]line РНМ: 0000000000092569 [18:29:48]line Версия ККМ: 001 [18:29:48]line ФМ: 0000000000871776 [18:29:48]line ФД: 140333 [18:29:48]line ФПД: 101621530484415 [18:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T182947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140333&fm=101621530484415&tin=02508201610067®Number=0000000000092569&sum=70000 [18:29:48]written 0, free lines is 4095 [18:29:48]Connected sock=10 [18:29: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 37 36 10 01 00 00 B3 1C 08 01 EC 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 5E 01 00 00 F4 03 04 00 1B 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2D 24 02 00 35 04 06 00 5C 6C 9B 39 DE BF 42 AA 0F 13 9A 0F 44 7F [18:29: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 37 36 4F 00 00 00 A1 6C 47 00 C2 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 37 36 10 04 04 00 2D 24 02 00 F4 03 04 00 AB D8 C5 66 B6 04 01 00 00 1C E8 7F 75 75 7D 84 B4 [18:29:48]CommunicateWithHost err = 0 [18:29:48]CheckOFDResponse [18:29:48]1017 (14) - 77093643461234 [18:29:48]1041 (16) - 0000000000871776 [18:29:48]1040 (4) - 140333 [18:29:48]1012 (4) - 21.08.2024 12:08 [18:29:48]1206 (1) - 0 [18:29:48]OFD Sender: Remove packet 140333 [18:29:48]ProducePacketName [18:29:48]name=ofd_packets/00140333 [18:29:48]NVStorageDeleteData [18:29:48]Write to MH i2c: 01 00 00 F4 11 05 [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 07 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 D4 0C EC [18:29:48]RasterBufferAndPrint [18:29:48]line [18:29:48]line [18:29:48]line [18:29:48]line [18:29:48]line [18:29:48]written 0, free lines is 3294 [18:29:48]MH_Cut [18:29:48]Write to MH i2c: D1 01 00 FB 11 01 DE [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: D1 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: D1 01 00 [18:29:48]MH_I2C_Read... [18:29:48]Read from MH i2c: D1 01 00 FB 11 00 DD [18:29:48]Write to MH i2c: 01 00 00 FC 11 0D [18:29:48]Write i2c OK [18:29:48]MH_I2C_Read... [18:29:49]OFD Sender: No OFD packet to send [18:29:49]*** Cut start [18:29:49]*** Partial cut [18:29:49]*** CUTSNS_PIN = 1 [18:29:49]*** CUTSNS_PIN = 0 [18:29:49]*** Brake cut motor [18:29:50]Read from MH i2c: 01 [18:29:50]MH_I2C_Read... [18:29:50]*** Stop cut motor [18:29:50]*** Cut end [18:29:50]Read from MH i2c: 01 07 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 FF 0F 22 [18:29:50]process_action close_receipt done [18:29:50]requested_data is exist [18:29:50]produce_requested_data [18:29:50]requested_item fm.sn is exist - process it [18:29:50]wFMCommunicate request_size=4 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 11 00 00 [18:29:50]Write to MH i2c: E2 08 00 FD 11 80 11 00 00 00 00 00 00 88 [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 17 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 17 00 FD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [18:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:29:50]wFMCommunicate OK [18:29:50]requested_item fd.num is exist - process it [18:29:50]SAM_PROTO_GetFieldsCounters [18:29:50]wFMCommunicate request_size=4 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 13 00 00 [18:29:50]Write to MH i2c: E2 08 00 FE 11 80 13 00 00 00 00 00 00 8B [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 62 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 62 00 FE 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 24 02 00 0E 04 04 00 C6 01 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 ED [18:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2D 24 02 00 0E 04 04 00 C6 01 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 [18:29:50]wFMCommunicate OK [18:29:50]SAM_PROTO_GetFieldsCounters done [18:29:50]requested_item shift.num is exist - process it [18:29:50]requested_item shift.opened is exist - process it [18:29:50]req_shift_opened [18:29:50]FM_GetShiftState [18:29:50]SAM_PROTO_GetShiftState [18:29:50]wFMCommunicate request_size=4 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 13 01 00 [18:29:50]Write to MH i2c: E2 08 00 FF 11 80 13 01 00 00 00 00 00 8D [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 0E 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 0E 00 FF 11 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0D [18:29:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:29:50]wFMCommunicate OK [18:29:50]SAM_PROTO_GetShiftState done [18:29:50]FM_GetShiftState done [18:29:50]req_shift_opened done [18:29:50]requested_item shift.open_date is exist - process it [18:29:50]req_shift_open_date [18:29:50]req_shift_open_date done [18:29:50]produce_requested_data done [18:29:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140333,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:29:50]process_action_free close_receipt [18:29:50]json_value_free [18:29:50]json_value_free done [18:29:50]process_json_proto returns [18:29:50]Send response to host [18:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140333,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:29:50]free response buf [18:29:50]execute_script done [18:29:50]execute_script returns [18:29:50]free content buf [18:29:50]Sock 7.Close socket [18:29:50]Sock 7.Thread stoped [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:48]accept exits with 9 [18:31:48]New connection [18:31:48]New thread 3067469156 created [18:31:48]Thread 3067612516 joined [18:31:48]Waiting for new connection... [18:31:48] Sock 9.Parse request [18:31:48]Sock 9.Check first char [18:31:48]Sock 9.First char is OK [18:31:48]request: POST /json_proto HTTP/1.0 [18:31:48]Method: POST [18:31:48]URL: /json_proto [18:31:48]Method is POST - this is cgi request [18:31:48]url: /json_proto [18:31:48]query_string will be loaded in cgi processing [18:31:48]execute_cgi json_proto POST (null) [18:31:48]execute_cgi path=json_proto method=POST [18:31:48]POST find Content-Length [18:31:48]Host: 172.17.45.67:8080 [18:31:48]Content-Length: 677 [18:31:48]Content-Type: application/json [18:31:48] [18:31:48]POST finish read [18:31:48]Found Content-Length = 677 [18:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:48]execute_script... [18: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)594192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:48]POST & json_proto [18:31:48]process_json_proto [18:31:48]json parsed OK: [18:31:48]protocol is kg_v1.0 [18:31:48]action value=close_receipt [18:31:48]process_action close_receipt [18:31:48]cmd_close_receipt [18:31:48]MH_GetDate [18:31:48]Write to MH i2c: F0 00 00 00 12 01 [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 09 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: F0 09 00 00 12 00 95 32 C6 66 5F 7F 2B 66 6C [18:31:48]GetLastDocTimeStamp 1724264987 [18:31:48]current date 1724265109 [18:31:48]FM_GetShiftState [18:31:48]SAM_PROTO_GetShiftState [18:31:48]wFMCommunicate request_size=4 [18:31:48]MH_SAM_APDU [18:31:48]CAPDU: 80 13 01 00 [18:31:48]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [18:31:48]Write i2c OK [18:31:48]MH_I2C_Read... [18:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:48]Read from MH i2c: E2 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 [18:31:48]MH_I2C_Read... [18:31:48]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [18:31:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:31:48]wFMCommunicate OK [18:31:48]SAM_PROTO_GetShiftState done [18:31:48]FM_GetShiftState done [18:31:48]opened in 1724200467 [18:31:48]opened+sec_in_day 1724286867 [18:31:48]quantity*price = 30035 [18:31:48]sum+1 = 30036 [18:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 351 21.08.2024 18:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140334 ФПД: 257010056254723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183149&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140334&fm=257010056254723&tin=02508201610067®Number=0000000000092569&sum=30000 [18:31:49]StoreToDocumentArchive [18:31:49]shift 454 fd 140334 [18:31:49]save to /storage/0454/doc_00140334 [18:31:49]save last doc name /storage/0454/doc_00140334 to /storage/kkm_last_doc_name [18:31:49]save OK [18:31:49]Clear old archive folders... [18:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:49]tlvbuf is 00CC0150 [18:31:49]SAM_PROTO_ClearQueue [18:31:49]wFMCommunicate request_size=4 [18:31:49]MH_SAM_APDU [18:31:49]CAPDU: 80 09 00 00 [18:31:49]Write to MH i2c: E2 08 00 0E 12 80 09 00 00 00 00 00 00 92 [18:31:49]Write i2c OK [18:31:49]MH_I2C_Read... [18:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:49]Read from MH i2c: E2 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [18:31:49]RAPDU: 90 00 [18:31:49]wFMCommunicate OK [18:31:49]SAM_PROTO_ClearQueue done [18:31:49]KKMCreateOFDPacket [18:31:49]OFDProtocolAddRootSTLVToBuf [18:31:49]FM_MakeSignedData [18:31:49]FM_MakeSignedData [18:31:49]SAM_PROTO_SignData [18:31:49]wFMCommunicate request_size=4 [18:31:49]MH_SAM_APDU [18:31:49]CAPDU: 80 0D 01 02 [18:31:49]Write to MH i2c: E2 08 00 0F 12 80 0D 01 02 00 00 00 00 9A [18:31:49]Write i2c OK [18:31:49]MH_I2C_Read... [18:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:49]Read from MH i2c: E2 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 [18:31:49]MH_I2C_Read... [18:31:49]Read from MH i2c: E2 03 00 0F 12 00 90 00 95 [18:31:49]RAPDU: 90 00 [18:31:49]wFMCommunicate OK [18:31:49]wFMCommunicate request_size=255 [18:31:49]MH_SAM_APDU [18:31: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 95 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 24 02 00 35 04 06 00 E9 [18:31:49]Write to MH i2c: E2 02 01 10 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 95 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 24 02 00 35 04 06 00 E9 00 00 99 [18:31:49]Write i2c OK [18:31:49]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [18:31:50]RAPDU: 90 00 [18:31:50]wFMCommunicate OK [18:31:50]wFMCommunicate request_size=10 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 0D 02 02 05 BF D1 1B 55 03 [18:31:50]Write to MH i2c: E2 0D 00 11 12 80 0D 02 02 05 00 BF D1 1B 55 03 00 00 AA [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [18:31:50]RAPDU: 90 00 [18:31:50]wFMCommunicate OK [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 0D 03 02 [18:31:50]Write to MH i2c: E2 08 00 12 12 80 0D 03 02 00 00 00 00 9F [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0B 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0B 00 12 12 00 E3 8D AC FC A2 EA A8 30 90 00 1C [18:31:50]RAPDU: E3 8D AC FC A2 EA A8 30 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_SignData done [18:31:50]FM_MakeSignedData done [18:31:50]CreateOFDProtocolMessage [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 11 00 00 [18:31:50]Write to MH i2c: E2 08 00 13 12 80 11 00 00 00 00 00 00 9F [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 13 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [18:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:31:50]wFMCommunicate OK [18:31:50]CreateOFDProtocolMessage done [18:31:50]OFDSenderStorePacket 140334 [18:31:50]StoreOFDPacket docnum=140334 [18:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6C 07 07 01 5B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 95 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 24 02 00 35 04 06 00 E9 BF D1 1B 55 03 E3 8D AC FC A2 EA A8 30 [18:31:50]CheckFolder [18:31:50]dirname=/storage/ofd_packets [18:31:50]CheckFolder done [18:31:50]ProducePacketName [18:31:50]name=ofd_packets/00140334 [18:31:50]NVStorageSaveData ofd_packets/00140334 [18:31:50]File name is /storage/ofd_packets/00140334 [18:31:50]Write 301 bytes [18:31:50]NVStorageSaveData done [18:31:50]OFDSenderStorePacket done [18:31:50]KKMCreateOFDPacket done [18:31:50]NVStorageSaveData kkm_last_timestamp [18:31:50]File name is /storage/kkm_last_timestamp [18:31:50]Write 4 bytes [18:31:50]NVStorageSaveData done [18:31:50]ExternCall_PrintAddStr [18:31:50]wPrintStart [18:31:50]Write to MH i2c: 01 00 00 14 12 26 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 FF 0F 3B [18:31:50]RasterBufferAndPrint [18:31:50]line Счет N : (1)594192 [18:31:50]line ИНН: 02508201610067 [18:31:50]line Контрольно-Кассовый Чек [18:31:50]line ПРОДАЖА [18:31:50]line ТРК (МРК, ГНК) : 62 [18:31:50]line Товар: 2710124130 [18:31:50]line Аи-92-К-5 [18:31:50]line 4.430 * 67.80 [18:31:50]line = 300.35 [18:31:50]line НДС 12% НСП 1% [18:31:50]line > о реализуемом товаре [18:31:50]line ОКРУГЛЕНИЕ: -0.35 [18:31:50]line ИТОГО: 300.00 [18:31:50]line Внесено: 300.00 [18:31:50]line СДАЧА: 0.00 [18:31:50]line НСП 1% : 2.66 [18:31:50]line НДС 12% : 31.90 [18:31:50]line Наличными: 300.00 [18:31:50]line Безнал.: 0.00 [18:31:50]line Место: АЗС № 136 "Партнер Нефть" [18:31:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:31:50]line СНО: Общий режим [18:31:50]line Чек 351 21.08.2024 18:31 [18:31:50]line Смена: 454 ФФД: 1.0 [18:31:50]line ЗНМ: 0300000067 [18:31:50]line РНМ: 0000000000092569 [18:31:50]line Версия ККМ: 001 [18:31:50]line ФМ: 0000000000871776 [18:31:50]line ФД: 140334 [18:31:50]line ФПД: 257010056254723 [18:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183149&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140334&fm=257010056254723&tin=02508201610067®Number=0000000000092569&sum=30000 [18:31:50]written 0, free lines is 4095 [18:31:50]OFD Sender: Processing packet 140334 [packets to send 137, broken 136] [18:31:50]ProducePacketName [18:31:50]name=ofd_packets/00140334 [18:31:50]OFD Sender: To server: pG, [18:31:50]CommunicateWithHost lk.salyk.kg:30040 [18:31:50]ConnectInit lk.salyk.kg [18:31:50]Connected sock=10 [18: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 37 36 0F 01 00 00 6C 07 07 01 5B 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 95 32 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2E 24 02 00 35 04 06 00 E9 BF D1 1B 55 03 E3 8D AC FC A2 EA A8 30 [18:31: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 37 36 4F 00 00 00 05 CB 47 00 7B 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 37 36 10 04 04 00 2E 24 02 00 F4 03 04 00 25 D9 C5 66 B6 04 01 00 00 A9 B1 9C 45 DE 07 7E A4 [18:31:51]CommunicateWithHost err = 0 [18:31:51]CheckOFDResponse [18:31:51]1017 (14) - 77093643461234 [18:31:51]1041 (16) - 0000000000871776 [18:31:51]1040 (4) - 140334 [18:31:51]1012 (4) - 21.08.2024 12:10 [18:31:51]1206 (1) - 0 [18:31:51]OFD Sender: Remove packet 140334 [18:31:51]ProducePacketName [18:31:51]name=ofd_packets/00140334 [18:31:51]NVStorageDeleteData [18:31:51]Write to MH i2c: 01 00 00 3F 12 51 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 D6 0C 3A [18:31:51]RasterBufferAndPrint [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]line [18:31:51]written 0, free lines is 3294 [18:31:51]MH_Cut [18:31:51]Write to MH i2c: D1 01 00 46 12 01 2A [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 01 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: D1 01 00 46 12 00 29 [18:31:51]Write to MH i2c: 01 00 00 47 12 59 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]OFD Sender: No OFD packet to send [18:31:51]*** Cut start [18:31:51]*** Partial cut [18:31:51]*** CUTSNS_PIN = 1 [18:31:51]*** CUTSNS_PIN = 0 [18:31:52]*** Brake cut motor [18:31:52]Read from MH i2c: 01 [18:31:52]MH_I2C_Read... [18:31:52]*** Stop cut motor [18:31:52]*** Cut end [18:31:52]Read from MH i2c: 01 07 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [18:31:52]process_action close_receipt done [18:31:52]requested_data is exist [18:31:52]produce_requested_data [18:31:52]requested_item fm.sn is exist - process it [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 11 00 00 [18:31:52]Write to MH i2c: E2 08 00 48 12 80 11 00 00 00 00 00 00 D4 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 17 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 17 00 48 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2B [18:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:31:52]wFMCommunicate OK [18:31:52]requested_item fd.num is exist - process it [18:31:52]SAM_PROTO_GetFieldsCounters [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 13 00 00 [18:31:52]Write to MH i2c: E2 08 00 49 12 80 13 00 00 00 00 00 00 D7 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 62 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 62 00 49 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 24 02 00 0E 04 04 00 C6 01 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 3D [18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2E 24 02 00 0E 04 04 00 C6 01 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 [18:31:52]wFMCommunicate OK [18:31:52]SAM_PROTO_GetFieldsCounters done [18:31:52]requested_item shift.num is exist - process it [18:31:52]requested_item shift.opened is exist - process it [18:31:52]req_shift_opened [18:31:52]FM_GetShiftState [18:31:52]SAM_PROTO_GetShiftState [18:31:52]wFMCommunicate request_size=4 [18:31:52]MH_SAM_APDU [18:31:52]CAPDU: 80 13 01 00 [18:31:52]Write to MH i2c: E2 08 00 4A 12 80 13 01 00 00 00 00 00 D9 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:52]Read from MH i2c: E2 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 0E 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: E2 0E 00 4A 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 59 [18:31:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:31:52]wFMCommunicate OK [18:31:52]SAM_PROTO_GetShiftState done [18:31:52]FM_GetShiftState done [18:31:52]req_shift_opened done [18:31:52]requested_item shift.open_date is exist - process it [18:31:52]req_shift_open_date [18:31:52]req_shift_open_date done [18:31:52]produce_requested_data done [18:31:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140334,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:31:52]process_action_free close_receipt [18:31:52]json_value_free [18:31:52]json_value_free done [18:31:52]process_json_proto returns [18:31:52]Send response to host [18:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140334,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:31:52]free response buf [18:31:52]execute_script done [18:31:52]execute_script returns [18:31:52]free content buf [18:31:52]Sock 9.Close socket [18:31:52]Sock 9.Thread stoped [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [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:10]accept exits with 7 [18:35:10]New connection [18:35:10]New thread 3067612516 created [18:35:10]Thread 3067469156 joined [18:35:10]Waiting for new connection... [18:35:10] Sock 7.Parse request [18:35:10]Sock 7.Check first char [18:35:10]Sock 7.First char is OK [18:35:10]request: POST /json_proto HTTP/1.0 [18:35:10]Method: POST [18:35:10]URL: /json_proto [18:35:10]Method is POST - this is cgi request [18:35:10]url: /json_proto [18:35:10]query_string will be loaded in cgi processing [18:35:10]execute_cgi json_proto POST (null) [18:35:10]execute_cgi path=json_proto method=POST [18:35:10]POST find Content-Length [18:35:10]Host: 172.17.45.67:8080 [18:35:10]Content-Length: 682 [18:35:10]Content-Type: application/json [18:35:10] [18:35:10]POST finish read [18:35:10]Found Content-Length = 682 [18:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:10]execute_script... [18:35: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)594193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:10]POST & json_proto [18:35:10]process_json_proto [18:35:10]json parsed OK: [18:35:10]protocol is kg_v1.0 [18:35:10]action value=close_receipt [18:35:10]process_action close_receipt [18:35:10]cmd_close_receipt [18:35:10]MH_GetDate [18:35:10]Write to MH i2c: F0 00 00 4B 12 4C [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: F0 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: F0 09 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: F0 09 00 4B 12 00 5F 33 C6 66 5F 7F 2B 66 82 [18:35:10]GetLastDocTimeStamp 1724265109 [18:35:10]current date 1724265311 [18:35:10]FM_GetShiftState [18:35:10]SAM_PROTO_GetShiftState [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 13 01 00 [18:35:10]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5B [18:35:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:35:10]wFMCommunicate OK [18:35:10]SAM_PROTO_GetShiftState done [18:35:10]FM_GetShiftState done [18:35:10]opened in 1724200467 [18:35:10]opened+sec_in_day 1724286867 [18:35:10]quantity*price = 100005 [18:35:10]sum+1 = 100006 [18:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 352 21.08.2024 18:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140335 ФПД: 121942334725075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140335&fm=121942334725075&tin=02508201610067®Number=0000000000092569&sum=100000 [18:35:11]StoreToDocumentArchive [18:35:11]shift 454 fd 140335 [18:35:11]save to /storage/0454/doc_00140335 [18:35:11]save last doc name /storage/0454/doc_00140335 to /storage/kkm_last_doc_name [18:35:11]save OK [18:35:11]Clear old archive folders... [18:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:11]tlvbuf is 00CC82E0 [18:35:11]SAM_PROTO_ClearQueue [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 09 00 00 [18:35:11]Write to MH i2c: E2 08 00 59 12 80 09 00 00 00 00 00 00 DD [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 03 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [18:35:11]RAPDU: 90 00 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_ClearQueue done [18:35:11]KKMCreateOFDPacket [18:35:11]OFDProtocolAddRootSTLVToBuf [18:35:11]FM_MakeSignedData [18:35:11]FM_MakeSignedData [18:35:11]SAM_PROTO_SignData [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 0D 01 02 [18:35:11]Write to MH i2c: E2 08 00 5A 12 80 0D 01 02 00 00 00 00 E5 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]OFD Sender: No OFD packet to send [18:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 03 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [18:35:11]RAPDU: 90 00 [18:35:11]wFMCommunicate OK [18:35:11]wFMCommunicate request_size=255 [18:35:11]MH_SAM_APDU [18:35: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 5F 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 24 02 00 35 04 06 00 6E [18:35:11]Write to MH i2c: E2 02 01 5B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 5F 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 24 02 00 35 04 06 00 6E 00 00 A6 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [18:35:12]RAPDU: 90 00 [18:35:12]wFMCommunicate OK [18:35:12]wFMCommunicate request_size=10 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 0D 02 02 05 E7 E9 8B 5B D3 [18:35:12]Write to MH i2c: E2 0D 00 5C 12 80 0D 02 02 05 00 E7 E9 8B 5B D3 00 00 7B [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [18:35:12]RAPDU: 90 00 [18:35:12]wFMCommunicate OK [18:35:12]wFMCommunicate request_size=4 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 0D 03 02 [18:35:12]Write to MH i2c: E2 08 00 5D 12 80 0D 03 02 00 00 00 00 EA [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 0B 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 0B 00 5D 12 00 79 88 FD 81 73 48 01 72 90 00 98 [18:35:12]RAPDU: 79 88 FD 81 73 48 01 72 90 00 [18:35:12]wFMCommunicate OK [18:35:12]SAM_PROTO_SignData done [18:35:12]FM_MakeSignedData done [18:35:12]CreateOFDProtocolMessage [18:35:12]wFMCommunicate request_size=4 [18:35:12]MH_SAM_APDU [18:35:12]CAPDU: 80 11 00 00 [18:35:12]Write to MH i2c: E2 08 00 5E 12 80 11 00 00 00 00 00 00 EA [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:12]Read from MH i2c: E2 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 17 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: E2 17 00 5E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 41 [18:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:35:12]wFMCommunicate OK [18:35:12]CreateOFDProtocolMessage done [18:35:12]OFDSenderStorePacket 140335 [18:35:12]StoreOFDPacket docnum=140335 [18:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B7 A1 07 01 46 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 5F 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 24 02 00 35 04 06 00 6E E7 E9 8B 5B D3 79 88 FD 81 73 48 01 72 [18:35:12]CheckFolder [18:35:12]dirname=/storage/ofd_packets [18:35:12]CheckFolder done [18:35:12]ProducePacketName [18:35:12]name=ofd_packets/00140335 [18:35:12]NVStorageSaveData ofd_packets/00140335 [18:35:12]File name is /storage/ofd_packets/00140335 [18:35:12]Write 301 bytes [18:35:12]NVStorageSaveData done [18:35:12]OFDSenderStorePacket done [18:35:12]KKMCreateOFDPacket done [18:35:12]NVStorageSaveData kkm_last_timestamp [18:35:12]File name is /storage/kkm_last_timestamp [18:35:12]Write 4 bytes [18:35:12]NVStorageSaveData done [18:35:12]ExternCall_PrintAddStr [18:35:12]wPrintStart [18:35:12]Write to MH i2c: 01 00 00 5F 12 71 [18:35:12]Write i2c OK [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: 01 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: 01 07 00 [18:35:12]MH_I2C_Read... [18:35:12]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 FF 0F 86 [18:35:12]RasterBufferAndPrint [18:35:12]line Счет N : (1)594193 [18:35:12]line ИНН: 02508201610067 [18:35:12]line Контрольно-Кассовый Чек [18:35:12]line ПРОДАЖА [18:35:12]line ТРК (МРК, ГНК) : 42 [18:35:12]line Товар: 2710124130 [18:35:12]line Аи-92-К-5 [18:35:12]line 14.750 * 67.80 [18:35:12]line = 1000.05 [18:35:12]line НДС 12% НСП 1% [18:35:12]line > о реализуемом товаре [18:35:12]line ОКРУГЛЕНИЕ: -0.05 [18:35:12]line ИТОГО: 1000.00 [18:35:12]line Внесено: 1000.00 [18:35:12]line СДАЧА: 0.00 [18:35:12]line НСП 1% : 8.85 [18:35:12]line НДС 12% : 106.20 [18:35:12]line Наличными: 1000.00 [18:35:12]line Безнал.: 0.00 [18:35:12]line Место: АЗС № 136 "Партнер Нефть" [18:35:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:35:12]line СНО: Общий режим [18:35:12]line Чек 352 21.08.2024 18:35 [18:35:12]line Смена: 454 ФФД: 1.0 [18:35:12]line ЗНМ: 0300000067 [18:35:12]line РНМ: 0000000000092569 [18:35:12]line Версия ККМ: 001 [18:35:12]line ФМ: 0000000000871776 [18:35:12]line ФД: 140335 [18:35:12]line ФПД: 121942334725075 [18:35:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183511&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140335&fm=121942334725075&tin=02508201610067®Number=0000000000092569&sum=100000 [18:35:12]OFD Sender: Processing packet 140335 [packets to send 137, broken 136] [18:35:12]ProducePacketName [18:35:12]name=ofd_packets/00140335 [18:35:12]OFD Sender: To server: pG, [18:35:12]CommunicateWithHost lk.salyk.kg:30040 [18:35:12]ConnectInit lk.salyk.kg [18:35:12]written 0, free lines is 4095 [18:35:12]Connected sock=10 [18:35: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 37 36 0F 01 00 00 B7 A1 07 01 46 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 5F 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 2F 24 02 00 35 04 06 00 6E E7 E9 8B 5B D3 79 88 FD 81 73 48 01 72 [18:35: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 37 36 4F 00 00 00 FF 1F 47 00 39 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 37 36 10 04 04 00 2F 24 02 00 F4 03 04 00 EF D9 C5 66 B6 04 01 00 00 98 90 B2 7A 4A 90 DF 6A [18:35:13]CommunicateWithHost err = 0 [18:35:13]CheckOFDResponse [18:35:13]1017 (14) - 77093643461234 [18:35:13]1041 (16) - 0000000000871776 [18:35:13]1040 (4) - 140335 [18:35:13]1012 (4) - 21.08.2024 12:13 [18:35:13]1206 (1) - 0 [18:35:13]OFD Sender: Remove packet 140335 [18:35:13]ProducePacketName [18:35:13]name=ofd_packets/00140335 [18:35:13]NVStorageDeleteData [18:35:13]Write to MH i2c: 01 00 00 8A 12 9C [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 DD 0C 8C [18:35:13]RasterBufferAndPrint [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]line [18:35:13]written 0, free lines is 3299 [18:35:13]MH_Cut [18:35:13]Write to MH i2c: D1 01 00 91 12 01 75 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 01 00 [18:35:13]MH_I2C_Read... [18:35:13]Read from MH i2c: D1 01 00 91 12 00 74 [18:35:13]Write to MH i2c: 01 00 00 92 12 A4 [18:35:13]Write i2c OK [18:35:13]MH_I2C_Read... [18:35:13]OFD Sender: No OFD packet to send [18:35:13]*** Cut start [18:35:13]*** Partial cut [18:35:13]*** CUTSNS_PIN = 1 [18:35:13]*** CUTSNS_PIN = 0 [18:35:14]*** Brake cut motor [18:35:14]Read from MH i2c: 01 [18:35:14]MH_I2C_Read... [18:35:14]*** Stop cut motor [18:35:14]*** Cut end [18:35:14]Read from MH i2c: 01 07 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [18:35:14]process_action close_receipt done [18:35:14]requested_data is exist [18:35:14]produce_requested_data [18:35:14]requested_item fm.sn is exist - process it [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 11 00 00 [18:35:14]Write to MH i2c: E2 08 00 93 12 80 11 00 00 00 00 00 00 1F [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 17 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 17 00 93 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 76 [18:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:35:14]wFMCommunicate OK [18:35:14]requested_item fd.num is exist - process it [18:35:14]SAM_PROTO_GetFieldsCounters [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 13 00 00 [18:35:14]Write to MH i2c: E2 08 00 94 12 80 13 00 00 00 00 00 00 22 [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 62 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 62 00 94 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 24 02 00 0E 04 04 00 C6 01 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 8C [18:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 2F 24 02 00 0E 04 04 00 C6 01 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 [18:35:14]wFMCommunicate OK [18:35:14]SAM_PROTO_GetFieldsCounters done [18:35:14]requested_item shift.num is exist - process it [18:35:14]requested_item shift.opened is exist - process it [18:35:14]req_shift_opened [18:35:14]FM_GetShiftState [18:35:14]SAM_PROTO_GetShiftState [18:35:14]wFMCommunicate request_size=4 [18:35:14]MH_SAM_APDU [18:35:14]CAPDU: 80 13 01 00 [18:35:14]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [18:35:14]Write i2c OK [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 [18:35:14]MH_I2C_Read... [18:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:14]Read from MH i2c: E2 0E 00 [18:35:14]MH_I2C_Read... [18:35:14]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A4 [18:35:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:35:14]wFMCommunicate OK [18:35:14]SAM_PROTO_GetShiftState done [18:35:14]FM_GetShiftState done [18:35:14]req_shift_opened done [18:35:14]requested_item shift.open_date is exist - process it [18:35:14]req_shift_open_date [18:35:14]req_shift_open_date done [18:35:14]produce_requested_data done [18:35:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140335,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:35:14]process_action_free close_receipt [18:35:14]json_value_free [18:35:14]json_value_free done [18:35:14]process_json_proto returns [18:35:14]Send response to host [18:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140335,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:35:14]free response buf [18:35:14]execute_script done [18:35:14]execute_script returns [18:35:14]free content buf [18:35:14]Sock 7.Close socket [18:35:14]Sock 7.Thread stoped [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:44]accept exits with 9 [18:36:44]New connection [18:36:44]New thread 3067469156 created [18:36:44]Thread 3067612516 joined [18:36:44]Waiting for new connection... [18:36:44] Sock 9.Parse request [18:36:44]Sock 9.Check first char [18:36:44]Sock 9.First char is OK [18:36:44]request: POST /json_proto HTTP/1.0 [18:36:44]Method: POST [18:36:44]URL: /json_proto [18:36:44]Method is POST - this is cgi request [18:36:44]url: /json_proto [18:36:44]query_string will be loaded in cgi processing [18:36:44]execute_cgi json_proto POST (null) [18:36:44]execute_cgi path=json_proto method=POST [18:36:44]POST find Content-Length [18:36:44]Host: 172.17.45.67:8080 [18:36:44]Content-Length: 818 [18:36:44]Content-Type: application/json [18:36:44] [18:36:44]POST finish read [18:36:44]Found Content-Length = 818 [18:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:44]execute_script... [18:36: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)594194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 400.00, "payments": [ { "type": 1, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:44]POST & json_proto [18:36:44]process_json_proto [18:36:44]json parsed OK: [18:36:44]protocol is kg_v1.0 [18:36:44]action value=close_receipt [18:36:44]process_action close_receipt [18:36:44]cmd_close_receipt [18:36:44]MH_GetDate [18:36:44]Write to MH i2c: F0 00 00 96 12 97 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: F0 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: F0 09 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: F0 09 00 96 12 00 BD 33 C6 66 5F 7F 2B 66 2B [18:36:44]GetLastDocTimeStamp 1724265311 [18:36:44]current date 1724265405 [18:36:44]FM_GetShiftState [18:36:44]SAM_PROTO_GetShiftState [18:36:44]wFMCommunicate request_size=4 [18:36:44]MH_SAM_APDU [18:36:44]CAPDU: 80 13 01 00 [18:36:44]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [18:36:44]Write i2c OK [18:36:44]MH_I2C_Read... [18:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:44]Read from MH i2c: E2 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 0E 00 [18:36:44]MH_I2C_Read... [18:36:44]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A6 [18:36:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:36:44]wFMCommunicate OK [18:36:44]SAM_PROTO_GetShiftState done [18:36:44]FM_GetShiftState done [18:36:44]opened in 1724200467 [18:36:44]opened+sec_in_day 1724286867 [18:36:44]quantity*price = 40002 [18:36:44]sum+1 = 40003 [18:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 353 21.08.2024 18:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140336 ФПД: 44094828152309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183645&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140336&fm=44094828152309&tin=02508201610067®Number=0000000000092569&sum=40000 [18:36:45]StoreToDocumentArchive [18:36:45]shift 454 fd 140336 [18:36:45]save to /storage/0454/doc_00140336 [18:36:45]save last doc name /storage/0454/doc_00140336 to /storage/kkm_last_doc_name [18:36:45]save OK [18:36:45]Clear old archive folders... [18:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:45]tlvbuf is 00CAAB90 [18:36:45]SAM_PROTO_ClearQueue [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 09 00 00 [18:36:45]Write to MH i2c: E2 08 00 A4 12 80 09 00 00 00 00 00 00 28 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 03 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [18:36:45]RAPDU: 90 00 [18:36:45]wFMCommunicate OK [18:36:45]SAM_PROTO_ClearQueue done [18:36:45]KKMCreateOFDPacket [18:36:45]OFDProtocolAddRootSTLVToBuf [18:36:45]FM_MakeSignedData [18:36:45]FM_MakeSignedData [18:36:45]SAM_PROTO_SignData [18:36:45]wFMCommunicate request_size=4 [18:36:45]MH_SAM_APDU [18:36:45]CAPDU: 80 0D 01 02 [18:36:45]Write to MH i2c: E2 08 00 A5 12 80 0D 01 02 00 00 00 00 30 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:45]Read from MH i2c: E2 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 03 00 [18:36:45]MH_I2C_Read... [18:36:45]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [18:36:45]RAPDU: 90 00 [18:36:45]wFMCommunicate OK [18:36:45]wFMCommunicate request_size=255 [18:36:45]MH_SAM_APDU [18:36: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 BD 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 24 02 00 35 04 06 00 28 [18:36:45]Write to MH i2c: E2 02 01 A6 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 BD 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 24 02 00 35 04 06 00 28 00 00 61 [18:36:45]Write i2c OK [18:36:45]MH_I2C_Read... [18:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [18:36:46]RAPDU: 90 00 [18:36:46]wFMCommunicate OK [18:36:46]wFMCommunicate request_size=10 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 0D 02 02 05 1A A0 91 85 F5 [18:36:46]Write to MH i2c: E2 0D 00 A7 12 80 0D 02 02 05 00 1A A0 91 85 F5 00 00 02 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [18:36:46]RAPDU: 90 00 [18:36:46]wFMCommunicate OK [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 0D 03 02 [18:36:46]Write to MH i2c: E2 08 00 A8 12 80 0D 03 02 00 00 00 00 35 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0B 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0B 00 A8 12 00 44 43 D2 DD 82 31 69 60 90 00 E8 [18:36:46]RAPDU: 44 43 D2 DD 82 31 69 60 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_SignData done [18:36:46]FM_MakeSignedData done [18:36:46]CreateOFDProtocolMessage [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 11 00 00 [18:36:46]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 17 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [18:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:36:46]wFMCommunicate OK [18:36:46]CreateOFDProtocolMessage done [18:36:46]OFDSenderStorePacket 140336 [18:36:46]StoreOFDPacket docnum=140336 [18:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 51 1B 07 01 54 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 BD 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 24 02 00 35 04 06 00 28 1A A0 91 85 F5 44 43 D2 DD 82 31 69 60 [18:36:46]CheckFolder [18:36:46]dirname=/storage/ofd_packets [18:36:46]CheckFolder done [18:36:46]ProducePacketName [18:36:46]name=ofd_packets/00140336 [18:36:46]NVStorageSaveData ofd_packets/00140336 [18:36:46]File name is /storage/ofd_packets/00140336 [18:36:46]Write 301 bytes [18:36:46]NVStorageSaveData done [18:36:46]OFDSenderStorePacket done [18:36:46]KKMCreateOFDPacket done [18:36:46]NVStorageSaveData kkm_last_timestamp [18:36:46]File name is /storage/kkm_last_timestamp [18:36:46]Write 4 bytes [18:36:46]NVStorageSaveData done [18:36:46]ExternCall_PrintAddStr [18:36:46]wPrintStart [18:36:46]Write to MH i2c: 01 00 00 AA 12 BC [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [18:36:46]RasterBufferAndPrint [18:36:46]line Счет N : (1)594194 [18:36:46]line ИНН: 02508201610067 [18:36:46]line Контрольно-Кассовый Чек [18:36:46]line ПРОДАЖА [18:36:46]line ТРК (МРК, ГНК) : 62 [18:36:46]line Товар: 2710124130 [18:36:46]line Аи-92-К-5 [18:36:46]line 5.900 * 67.80 [18:36:46]line = 400.02 [18:36:46]line НДС 12% НСП 1% [18:36:46]line > о реализуемом товаре [18:36:46]line ОКРУГЛЕНИЕ: -0.02 [18:36:46]line ИТОГО: 400.00 [18:36:46]line НСП 1% : 3.54 [18:36:46]line НДС 12% : 42.48 [18:36:46]line Наличными: 0.00 [18:36:46]line Безнал.: 400.00 [18:36:46]line Место: АЗС № 136 "Партнер Нефть" [18:36:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:36:46]line СНО: Общий режим [18:36:46]line Чек 353 21.08.2024 18:36 [18:36:46]line Смена: 454 ФФД: 1.0 [18:36:46]line ЗНМ: 0300000067 [18:36:46]line РНМ: 0000000000092569 [18:36:46]line Версия ККМ: 001 [18:36:46]line Платежная система: O! деньги [18:36:46]line ФМ: 0000000000871776 [18:36:46]line ФД: 140336 [18:36:46]line ФПД: 44094828152309 [18:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183645&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140336&fm=44094828152309&tin=02508201610067®Number=0000000000092569&sum=40000 [18:36:46]OFD Sender: Processing packet 140336 [packets to send 137, broken 136] [18:36:46]ProducePacketName [18:36:46]name=ofd_packets/00140336 [18:36:46]OFD Sender: To server: pG, [18:36:46]CommunicateWithHost lk.salyk.kg:30040 [18:36:46]ConnectInit lk.salyk.kg [18:36:46]written 0, free lines is 4095 [18:36:46]Connected sock=10 [18:36: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 37 36 0F 01 00 00 51 1B 07 01 54 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 BD 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 30 24 02 00 35 04 06 00 28 1A A0 91 85 F5 44 43 D2 DD 82 31 69 60 [18:36: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 37 36 4F 00 00 00 85 0F 47 00 C8 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 37 36 10 04 04 00 30 24 02 00 F4 03 04 00 4D DA C5 66 B6 04 01 00 00 59 80 67 1E 72 A8 B7 68 [18:36:46]CommunicateWithHost err = 0 [18:36:46]CheckOFDResponse [18:36:46]1017 (14) - 77093643461234 [18:36:46]1041 (16) - 0000000000871776 [18:36:46]1040 (4) - 140336 [18:36:46]1012 (4) - 21.08.2024 12:15 [18:36:46]1206 (1) - 0 [18:36:46]OFD Sender: Remove packet 140336 [18:36:46]ProducePacketName [18:36:46]name=ofd_packets/00140336 [18:36:46]NVStorageDeleteData [18:36:46]Write to MH i2c: 01 00 00 D5 12 E7 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: 01 07 00 D5 12 00 00 00 00 00 F4 0C EE [18:36:46]RasterBufferAndPrint [18:36:46]line [18:36:46]line [18:36:46]line [18:36:46]line [18:36:46]line [18:36:46]written 0, free lines is 3323 [18:36:46]MH_Cut [18:36:46]Write to MH i2c: D1 01 00 DC 12 01 C0 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: D1 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: D1 01 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: D1 01 00 DC 12 00 BF [18:36:46]Write to MH i2c: 01 00 00 DD 12 EF [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:47]OFD Sender: No OFD packet to send [18:36:47]*** Cut start [18:36:47]*** Partial cut [18:36:47]*** CUTSNS_PIN = 1 [18:36:47]*** CUTSNS_PIN = 0 [18:36:47]*** Brake cut motor [18:36:48]Read from MH i2c: 01 [18:36:48]MH_I2C_Read... [18:36:48]*** Stop cut motor [18:36:48]*** Cut end [18:36:48]Read from MH i2c: 01 07 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 FF 0F 04 [18:36:48]process_action close_receipt done [18:36:48]requested_data is exist [18:36:48]produce_requested_data [18:36:48]requested_item fm.sn is exist - process it [18:36:48]wFMCommunicate request_size=4 [18:36:48]MH_SAM_APDU [18:36:48]CAPDU: 80 11 00 00 [18:36:48]Write to MH i2c: E2 08 00 DE 12 80 11 00 00 00 00 00 00 6A [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:48]Read from MH i2c: E2 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 17 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 17 00 DE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C1 [18:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:36:48]wFMCommunicate OK [18:36:48]requested_item fd.num is exist - process it [18:36:48]SAM_PROTO_GetFieldsCounters [18:36:48]wFMCommunicate request_size=4 [18:36:48]MH_SAM_APDU [18:36:48]CAPDU: 80 13 00 00 [18:36:48]Write to MH i2c: E2 08 00 DF 12 80 13 00 00 00 00 00 00 6D [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:48]Read from MH i2c: E2 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 62 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 62 00 DF 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 24 02 00 0E 04 04 00 C6 01 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 DB [18:36:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 30 24 02 00 0E 04 04 00 C6 01 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 [18:36:48]wFMCommunicate OK [18:36:48]SAM_PROTO_GetFieldsCounters done [18:36:48]requested_item shift.num is exist - process it [18:36:48]requested_item shift.opened is exist - process it [18:36:48]req_shift_opened [18:36:48]FM_GetShiftState [18:36:48]SAM_PROTO_GetShiftState [18:36:48]wFMCommunicate request_size=4 [18:36:48]MH_SAM_APDU [18:36:48]CAPDU: 80 13 01 00 [18:36:48]Write to MH i2c: E2 08 00 E0 12 80 13 01 00 00 00 00 00 6F [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:48]Read from MH i2c: E2 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 0E 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: E2 0E 00 E0 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EF [18:36:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:36:48]wFMCommunicate OK [18:36:48]SAM_PROTO_GetShiftState done [18:36:48]FM_GetShiftState done [18:36:48]req_shift_opened done [18:36:48]requested_item shift.open_date is exist - process it [18:36:48]req_shift_open_date [18:36:48]req_shift_open_date done [18:36:48]produce_requested_data done [18:36:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140336,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:36:48]process_action_free close_receipt [18:36:48]json_value_free [18:36:48]json_value_free done [18:36:48]process_json_proto returns [18:36:48]Send response to host [18:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140336,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:36:48]free response buf [18:36:48]execute_script done [18:36:48]execute_script returns [18:36:48]free content buf [18:36:48]Sock 9.Close socket [18:36:48]Sock 9.Thread stoped [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:26]accept exits with 7 [18:37:26]New connection [18:37:26]New thread 3067612516 created [18:37:26]Thread 3067469156 joined [18:37:26]Waiting for new connection... [18:37:26] Sock 7.Parse request [18:37:26]Sock 7.Check first char [18:37:26]Sock 7.First char is OK [18:37:26]request: POST /json_proto HTTP/1.0 [18:37:26]Method: POST [18:37:26]URL: /json_proto [18:37:26]Method is POST - this is cgi request [18:37:26]url: /json_proto [18:37:26]query_string will be loaded in cgi processing [18:37:26]execute_cgi json_proto POST (null) [18:37:26]execute_cgi path=json_proto method=POST [18:37:26]POST find Content-Length [18:37:26]Host: 172.17.45.67:8080 [18:37:26]Content-Length: 682 [18:37:26]Content-Type: application/json [18:37:26] [18:37:26]POST finish read [18:37:26]Found Content-Length = 682 [18:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:26]execute_script... [18:37: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)594195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:26]POST & json_proto [18:37:26]process_json_proto [18:37:26]json parsed OK: [18:37:26]protocol is kg_v1.0 [18:37:26]action value=close_receipt [18:37:26]process_action close_receipt [18:37:26]cmd_close_receipt [18:37:26]MH_GetDate [18:37:26]Write to MH i2c: F0 00 00 E1 12 E2 [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: F0 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: F0 09 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: F0 09 00 E1 12 00 E6 33 C6 66 5F 7F 2B 66 9F [18:37:26]GetLastDocTimeStamp 1724265405 [18:37:26]current date 1724265446 [18:37:26]FM_GetShiftState [18:37:26]SAM_PROTO_GetShiftState [18:37:26]wFMCommunicate request_size=4 [18:37:26]MH_SAM_APDU [18:37:26]CAPDU: 80 13 01 00 [18:37:26]Write to MH i2c: E2 08 00 E2 12 80 13 01 00 00 00 00 00 71 [18:37:26]Write i2c OK [18:37:26]MH_I2C_Read... [18:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:26]Read from MH i2c: E2 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 0E 00 [18:37:26]MH_I2C_Read... [18:37:26]Read from MH i2c: E2 0E 00 E2 12 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F1 [18:37:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:37:26]wFMCommunicate OK [18:37:26]SAM_PROTO_GetShiftState done [18:37:26]FM_GetShiftState done [18:37:26]opened in 1724200467 [18:37:26]opened+sec_in_day 1724286867 [18:37:26]quantity*price = 100005 [18:37:26]sum+1 = 100006 [18:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 354 21.08.2024 18:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140337 ФПД: 172035447437676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183726&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140337&fm=172035447437676&tin=02508201610067®Number=0000000000092569&sum=100000 [18:37:27]StoreToDocumentArchive [18:37:27]shift 454 fd 140337 [18:37:27]save to /storage/0454/doc_00140337 [18:37:27]save last doc name /storage/0454/doc_00140337 to /storage/kkm_last_doc_name [18:37:27]save OK [18:37:27]Clear old archive folders... [18:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:27]tlvbuf is B6F624F0 [18:37:27]SAM_PROTO_ClearQueue [18:37:27]wFMCommunicate request_size=4 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 09 00 00 [18:37:27]Write to MH i2c: E2 08 00 EF 12 80 09 00 00 00 00 00 00 73 [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [18:37:27]RAPDU: 90 00 [18:37:27]wFMCommunicate OK [18:37:27]SAM_PROTO_ClearQueue done [18:37:27]KKMCreateOFDPacket [18:37:27]OFDProtocolAddRootSTLVToBuf [18:37:27]FM_MakeSignedData [18:37:27]FM_MakeSignedData [18:37:27]SAM_PROTO_SignData [18:37:27]wFMCommunicate request_size=4 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 0D 01 02 [18:37:27]Write to MH i2c: E2 08 00 F0 12 80 0D 01 02 00 00 00 00 7B [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]OFD Sender: No OFD packet to send [18:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [18:37:27]RAPDU: 90 00 [18:37:27]wFMCommunicate OK [18:37:27]wFMCommunicate request_size=255 [18:37:27]MH_SAM_APDU [18:37: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 24 02 00 35 04 06 00 9C [18:37:27]Write to MH i2c: E2 02 01 F1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 24 02 00 35 04 06 00 9C 00 00 F5 [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [18:37:27]RAPDU: 90 00 [18:37:27]wFMCommunicate OK [18:37:27]wFMCommunicate request_size=10 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 0D 02 02 05 77 1F BB B9 6C [18:37:27]Write to MH i2c: E2 0D 00 F2 12 80 0D 02 02 05 00 77 1F BB B9 6C 00 00 FE [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [18:37:27]RAPDU: 90 00 [18:37:27]wFMCommunicate OK [18:37:27]wFMCommunicate request_size=4 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 0D 03 02 [18:37:27]Write to MH i2c: E2 08 00 F3 12 80 0D 03 02 00 00 00 00 80 [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 0B 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 0B 00 F3 12 00 AE 2C AF 28 41 35 45 83 90 00 70 [18:37:27]RAPDU: AE 2C AF 28 41 35 45 83 90 00 [18:37:27]wFMCommunicate OK [18:37:27]SAM_PROTO_SignData done [18:37:27]FM_MakeSignedData done [18:37:27]CreateOFDProtocolMessage [18:37:27]wFMCommunicate request_size=4 [18:37:27]MH_SAM_APDU [18:37:27]CAPDU: 80 11 00 00 [18:37:27]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:27]Read from MH i2c: E2 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 17 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D7 [18:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:37:27]wFMCommunicate OK [18:37:27]CreateOFDProtocolMessage done [18:37:27]OFDSenderStorePacket 140337 [18:37:27]StoreOFDPacket docnum=140337 [18:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E5 90 07 01 1A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 24 02 00 35 04 06 00 9C 77 1F BB B9 6C AE 2C AF 28 41 35 45 83 [18:37:27]CheckFolder [18:37:27]dirname=/storage/ofd_packets [18:37:27]CheckFolder done [18:37:27]ProducePacketName [18:37:27]name=ofd_packets/00140337 [18:37:27]NVStorageSaveData ofd_packets/00140337 [18:37:27]File name is /storage/ofd_packets/00140337 [18:37:27]Write 301 bytes [18:37:27]NVStorageSaveData done [18:37:27]OFDSenderStorePacket done [18:37:27]KKMCreateOFDPacket done [18:37:27]NVStorageSaveData kkm_last_timestamp [18:37:27]File name is /storage/kkm_last_timestamp [18:37:27]Write 4 bytes [18:37:27]NVStorageSaveData done [18:37:27]ExternCall_PrintAddStr [18:37:27]wPrintStart [18:37:27]Write to MH i2c: 01 00 00 F5 12 07 [18:37:27]Write i2c OK [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: 01 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: 01 07 00 [18:37:27]MH_I2C_Read... [18:37:27]Read from MH i2c: 01 07 00 F5 12 00 00 00 00 00 FF 0F 1C [18:37:27]RasterBufferAndPrint [18:37:27]line Счет N : (1)594195 [18:37:27]line ИНН: 02508201610067 [18:37:27]line Контрольно-Кассовый Чек [18:37:27]line ПРОДАЖА [18:37:27]line ТРК (МРК, ГНК) : 42 [18:37:27]line Товар: 2710124130 [18:37:27]line Аи-92-К-5 [18:37:27]line 14.750 * 67.80 [18:37:27]line = 1000.05 [18:37:27]line НДС 12% НСП 1% [18:37:27]line > о реализуемом товаре [18:37:27]line ОКРУГЛЕНИЕ: -0.05 [18:37:27]line ИТОГО: 1000.00 [18:37:27]line Внесено: 1000.00 [18:37:27]line СДАЧА: 0.00 [18:37:27]line НСП 1% : 8.85 [18:37:27]line НДС 12% : 106.20 [18:37:27]line Наличными: 1000.00 [18:37:27]line Безнал.: 0.00 [18:37:27]line Место: АЗС № 136 "Партнер Нефть" [18:37:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:37:27]line СНО: Общий режим [18:37:27]line Чек 354 21.08.2024 18:37 [18:37:27]line Смена: 454 ФФД: 1.0 [18:37:27]line ЗНМ: 0300000067 [18:37:27]line РНМ: 0000000000092569 [18:37:27]line Версия ККМ: 001 [18:37:27]line ФМ: 0000000000871776 [18:37:27]line ФД: 140337 [18:37:27]line ФПД: 172035447437676 [18:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183726&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140337&fm=172035447437676&tin=02508201610067®Number=0000000000092569&sum=100000 [18:37:28]OFD Sender: Processing packet 140337 [packets to send 137, broken 136] [18:37:28]ProducePacketName [18:37:28]name=ofd_packets/00140337 [18:37:28]OFD Sender: To server: pG, [18:37:28]CommunicateWithHost lk.salyk.kg:30040 [18:37:28]ConnectInit lk.salyk.kg [18:37:28]written 0, free lines is 4095 [18:37:28]Connected sock=10 [18:37: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 37 36 0F 01 00 00 E5 90 07 01 1A 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 E6 33 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 31 24 02 00 35 04 06 00 9C 77 1F BB B9 6C AE 2C AF 28 41 35 45 83 [18:37: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 37 36 4F 00 00 00 51 E8 47 00 CE 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 37 36 10 04 04 00 31 24 02 00 F4 03 04 00 77 DA C5 66 B6 04 01 00 00 90 CD DB 3A 72 7E 11 EA [18:37:28]CommunicateWithHost err = 0 [18:37:28]CheckOFDResponse [18:37:28]1017 (14) - 77093643461234 [18:37:28]1041 (16) - 0000000000871776 [18:37:28]1040 (4) - 140337 [18:37:28]1012 (4) - 21.08.2024 12:15 [18:37:28]1206 (1) - 0 [18:37:28]OFD Sender: Remove packet 140337 [18:37:28]ProducePacketName [18:37:28]name=ofd_packets/00140337 [18:37:28]NVStorageDeleteData [18:37:28]Write to MH i2c: 01 00 00 20 13 33 [18:37:28]Write i2c OK [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: 01 [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: 01 07 00 [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 D9 0C 1F [18:37:28]RasterBufferAndPrint [18:37:28]line [18:37:28]line [18:37:28]line [18:37:28]line [18:37:28]line [18:37:28]written 0, free lines is 3296 [18:37:28]MH_Cut [18:37:28]Write to MH i2c: D1 01 00 27 13 01 0C [18:37:28]Write i2c OK [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: D1 [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: D1 01 00 [18:37:28]MH_I2C_Read... [18:37:28]Read from MH i2c: D1 01 00 27 13 00 0B [18:37:28]Write to MH i2c: 01 00 00 28 13 3B [18:37:28]Write i2c OK [18:37:28]MH_I2C_Read... [18:37:29]OFD Sender: No OFD packet to send [18:37:29]*** Cut start [18:37:29]*** Partial cut [18:37:29]*** CUTSNS_PIN = 1 [18:37:29]*** CUTSNS_PIN = 0 [18:37:29]*** Brake cut motor [18:37:29]Read from MH i2c: 01 [18:37:29]MH_I2C_Read... [18:37:29]*** Stop cut motor [18:37:30]*** Cut end [18:37:30]Read from MH i2c: 01 07 00 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 FF 0F 50 [18:37:30]process_action close_receipt done [18:37:30]requested_data is exist [18:37:30]produce_requested_data [18:37:30]requested_item fm.sn is exist - process it [18:37:30]wFMCommunicate request_size=4 [18:37:30]MH_SAM_APDU [18:37:30]CAPDU: 80 11 00 00 [18:37:30]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [18:37:30]Write i2c OK [18:37:30]MH_I2C_Read... [18:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:30]Read from MH i2c: E2 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 17 00 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 17 00 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [18:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:37:30]wFMCommunicate OK [18:37:30]requested_item fd.num is exist - process it [18:37:30]SAM_PROTO_GetFieldsCounters [18:37:30]wFMCommunicate request_size=4 [18:37:30]MH_SAM_APDU [18:37:30]CAPDU: 80 13 00 00 [18:37:30]Write to MH i2c: E2 08 00 2A 13 80 13 00 00 00 00 00 00 B9 [18:37:30]Write i2c OK [18:37:30]MH_I2C_Read... [18:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:30]Read from MH i2c: E2 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 62 00 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 62 00 2A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 24 02 00 0E 04 04 00 C6 01 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 2B [18:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 31 24 02 00 0E 04 04 00 C6 01 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 [18:37:30]wFMCommunicate OK [18:37:30]SAM_PROTO_GetFieldsCounters done [18:37:30]requested_item shift.num is exist - process it [18:37:30]requested_item shift.opened is exist - process it [18:37:30]req_shift_opened [18:37:30]FM_GetShiftState [18:37:30]SAM_PROTO_GetShiftState [18:37:30]wFMCommunicate request_size=4 [18:37:30]MH_SAM_APDU [18:37:30]CAPDU: 80 13 01 00 [18:37:30]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [18:37:30]Write i2c OK [18:37:30]MH_I2C_Read... [18:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:30]Read from MH i2c: E2 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 0E 00 [18:37:30]MH_I2C_Read... [18:37:30]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3B [18:37:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:37:30]wFMCommunicate OK [18:37:30]SAM_PROTO_GetShiftState done [18:37:30]FM_GetShiftState done [18:37:30]req_shift_opened done [18:37:30]requested_item shift.open_date is exist - process it [18:37:30]req_shift_open_date [18:37:30]req_shift_open_date done [18:37:30]produce_requested_data done [18:37:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140337,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:37:30]process_action_free close_receipt [18:37:30]json_value_free [18:37:30]json_value_free done [18:37:30]process_json_proto returns [18:37:30]Send response to host [18:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140337,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:37:30]free response buf [18:37:30]execute_script done [18:37:30]execute_script returns [18:37:30]free content buf [18:37:30]Sock 7.Close socket [18:37:30]Sock 7.Thread stoped [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:05]accept exits with 9 [18:38:05]New connection [18:38:05]New thread 3067469156 created [18:38:05]Thread 3067612516 joined [18:38:05]Waiting for new connection... [18:38:05] Sock 9.Parse request [18:38:05]Sock 9.Check first char [18:38:05]Sock 9.First char is OK [18:38:05]request: POST /json_proto HTTP/1.0 [18:38:05]Method: POST [18:38:05]URL: /json_proto [18:38:05]Method is POST - this is cgi request [18:38:05]url: /json_proto [18:38:05]query_string will be loaded in cgi processing [18:38:05]execute_cgi json_proto POST (null) [18:38:05]execute_cgi path=json_proto method=POST [18:38:05]POST find Content-Length [18:38:05]Host: 172.17.45.67:8080 [18:38:05]Content-Length: 677 [18:38:05]Content-Type: application/json [18:38:05] [18:38:05]POST finish read [18:38:05]Found Content-Length = 677 [18:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]execute_script... [18:38: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)594196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:05]POST & json_proto [18:38:05]process_json_proto [18:38:05]json parsed OK: [18:38:05]protocol is kg_v1.0 [18:38:05]action value=close_receipt [18:38:05]process_action close_receipt [18:38:05]cmd_close_receipt [18:38:05]MH_GetDate [18:38:05]Write to MH i2c: F0 00 00 2C 13 2E [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: F0 09 00 2C 13 00 0E 34 C6 66 5F 7F 2B 66 14 [18:38:05]GetLastDocTimeStamp 1724265446 [18:38:05]current date 1724265486 [18:38:05]FM_GetShiftState [18:38:05]SAM_PROTO_GetShiftState [18:38:05]wFMCommunicate request_size=4 [18:38:05]MH_SAM_APDU [18:38:05]CAPDU: 80 13 01 00 [18:38:05]Write to MH i2c: E2 08 00 2D 13 80 13 01 00 00 00 00 00 BD [18:38:05]Write i2c OK [18:38:05]MH_I2C_Read... [18:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:05]Read from MH i2c: E2 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 [18:38:05]MH_I2C_Read... [18:38:05]Read from MH i2c: E2 0E 00 2D 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3D [18:38:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:38:05]wFMCommunicate OK [18:38:05]SAM_PROTO_GetShiftState done [18:38:05]FM_GetShiftState done [18:38:05]opened in 1724200467 [18:38:05]opened+sec_in_day 1724286867 [18:38:05]quantity*price = 35052 [18:38:05]sum+1 = 35054 [18:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 355 21.08.2024 18:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140338 ФПД: 231560889097750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140338&fm=231560889097750&tin=02508201610067®Number=0000000000092569&sum=35000 [18:38:07]StoreToDocumentArchive [18:38:07]shift 454 fd 140338 [18:38:07]save to /storage/0454/doc_00140338 [18:38:07]save last doc name /storage/0454/doc_00140338 to /storage/kkm_last_doc_name [18:38:07]save OK [18:38:07]Clear old archive folders... [18:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:07]tlvbuf is 00CAA590 [18:38:07]SAM_PROTO_ClearQueue [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 09 00 00 [18:38:07]Write to MH i2c: E2 08 00 3A 13 80 09 00 00 00 00 00 00 BF [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]SAM_PROTO_ClearQueue done [18:38:07]KKMCreateOFDPacket [18:38:07]OFDProtocolAddRootSTLVToBuf [18:38:07]FM_MakeSignedData [18:38:07]FM_MakeSignedData [18:38:07]SAM_PROTO_SignData [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 01 02 [18:38:07]Write to MH i2c: E2 08 00 3B 13 80 0D 01 02 00 00 00 00 C7 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=255 [18:38:07]MH_SAM_APDU [18:38: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 63 01 00 00 F4 03 04 00 0E 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 24 02 00 35 04 06 00 D2 [18:38:07]Write to MH i2c: E2 02 01 3C 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 63 01 00 00 F4 03 04 00 0E 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 24 02 00 35 04 06 00 D2 00 00 3E [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=10 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 02 02 05 9A 78 89 DE 16 [18:38:07]Write to MH i2c: E2 0D 00 3D 13 80 0D 02 02 05 00 9A 78 89 DE 16 00 00 63 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [18:38:07]RAPDU: 90 00 [18:38:07]wFMCommunicate OK [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 0D 03 02 [18:38:07]Write to MH i2c: E2 08 00 3E 13 80 0D 03 02 00 00 00 00 CC [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 0B 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 0B 00 3E 13 00 69 D2 ED C7 AC D4 0D 94 90 00 DD [18:38:07]RAPDU: 69 D2 ED C7 AC D4 0D 94 90 00 [18:38:07]wFMCommunicate OK [18:38:07]SAM_PROTO_SignData done [18:38:07]FM_MakeSignedData done [18:38:07]CreateOFDProtocolMessage [18:38:07]wFMCommunicate request_size=4 [18:38:07]MH_SAM_APDU [18:38:07]CAPDU: 80 11 00 00 [18:38:07]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:07]Read from MH i2c: E2 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 17 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [18:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:38:07]wFMCommunicate OK [18:38:07]CreateOFDProtocolMessage done [18:38:07]OFDSenderStorePacket 140338 [18:38:07]StoreOFDPacket docnum=140338 [18:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 32 DD 07 01 08 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 63 01 00 00 F4 03 04 00 0E 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 24 02 00 35 04 06 00 D2 9A 78 89 DE 16 69 D2 ED C7 AC D4 0D 94 [18:38:07]CheckFolder [18:38:07]dirname=/storage/ofd_packets [18:38:07]CheckFolder done [18:38:07]ProducePacketName [18:38:07]name=ofd_packets/00140338 [18:38:07]NVStorageSaveData ofd_packets/00140338 [18:38:07]File name is /storage/ofd_packets/00140338 [18:38:07]Write 301 bytes [18:38:07]NVStorageSaveData done [18:38:07]OFDSenderStorePacket done [18:38:07]KKMCreateOFDPacket done [18:38:07]NVStorageSaveData kkm_last_timestamp [18:38:07]File name is /storage/kkm_last_timestamp [18:38:07]Write 4 bytes [18:38:07]NVStorageSaveData done [18:38:07]ExternCall_PrintAddStr [18:38:07]wPrintStart [18:38:07]Write to MH i2c: 01 00 00 40 13 53 [18:38:07]Write i2c OK [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 07 00 [18:38:07]MH_I2C_Read... [18:38:07]Read from MH i2c: 01 07 00 40 13 00 00 00 00 00 FF 0F 68 [18:38:07]RasterBufferAndPrint [18:38:07]line Счет N : (1)594196 [18:38:07]line ИНН: 02508201610067 [18:38:07]line Контрольно-Кассовый Чек [18:38:07]line ПРОДАЖА [18:38:07]line ТРК (МРК, ГНК) : 52 [18:38:07]line Товар: 2710124130 [18:38:07]line Аи-92-К-5 [18:38:07]line 5.170 * 67.80 [18:38:07]line = 350.53 [18:38:07]line НДС 12% НСП 1% [18:38:07]line > о реализуемом товаре [18:38:07]line ОКРУГЛЕНИЕ: -0.53 [18:38:07]line ИТОГО: 350.00 [18:38:07]line Внесено: 350.00 [18:38:07]line СДАЧА: 0.00 [18:38:07]line НСП 1% : 3.10 [18:38:07]line НДС 12% : 37.22 [18:38:07]line Наличными: 350.00 [18:38:07]line Безнал.: 0.00 [18:38:07]line Место: АЗС № 136 "Партнер Нефть" [18:38:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:38:07]line СНО: Общий режим [18:38:07]line Чек 355 21.08.2024 18:38 [18:38:07]line Смена: 454 ФФД: 1.0 [18:38:07]line ЗНМ: 0300000067 [18:38:07]line РНМ: 0000000000092569 [18:38:07]line Версия ККМ: 001 [18:38:07]line ФМ: 0000000000871776 [18:38:07]line ФД: 140338 [18:38:07]line ФПД: 231560889097750 [18:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183806&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140338&fm=231560889097750&tin=02508201610067®Number=0000000000092569&sum=35000 [18:38:07]written 0, free lines is 4095 [18:38:07]OFD Sender: Processing packet 140338 [packets to send 137, broken 136] [18:38:07]ProducePacketName [18:38:07]name=ofd_packets/00140338 [18:38:07]OFD Sender: To server: pG, [18:38:07]CommunicateWithHost lk.salyk.kg:30040 [18:38:07]ConnectInit lk.salyk.kg [18:38:08]Write to MH i2c: 01 00 00 6B 13 7E [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 07 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 D9 0C 6A [18:38:08]RasterBufferAndPrint [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]line [18:38:08]written 0, free lines is 3294 [18:38:08]MH_Cut [18:38:08]Write to MH i2c: D1 01 00 72 13 01 57 [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 01 00 [18:38:08]MH_I2C_Read... [18:38:08]Read from MH i2c: D1 01 00 72 13 00 56 [18:38:08]Write to MH i2c: 01 00 00 73 13 86 [18:38:08]Write i2c OK [18:38:08]MH_I2C_Read... [18:38:09]*** Cut start [18:38:09]*** Partial cut [18:38:09]*** CUTSNS_PIN = 1 [18:38:09]*** CUTSNS_PIN = 0 [18:38:09]*** Brake cut motor [18:38:09]Read from MH i2c: 01 [18:38:09]MH_I2C_Read... [18:38:09]*** Stop cut motor [18:38:09]*** Cut end [18:38:09]Read from MH i2c: 01 07 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [18:38:09]process_action close_receipt done [18:38:09]requested_data is exist [18:38:09]produce_requested_data [18:38:09]requested_item fm.sn is exist - process it [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 11 00 00 [18:38:09]Write to MH i2c: E2 08 00 74 13 80 11 00 00 00 00 00 00 01 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 17 00 74 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [18:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:38:09]wFMCommunicate OK [18:38:09]requested_item fd.num is exist - process it [18:38:09]SAM_PROTO_GetFieldsCounters [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 13 00 00 [18:38:09]Write to MH i2c: E2 08 00 75 13 80 13 00 00 00 00 00 00 04 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 62 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 62 00 75 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 24 02 00 0E 04 04 00 C6 01 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 7A [18:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 32 24 02 00 0E 04 04 00 C6 01 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 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_GetFieldsCounters done [18:38:09]requested_item shift.num is exist - process it [18:38:09]requested_item shift.opened is exist - process it [18:38:09]req_shift_opened [18:38:09]FM_GetShiftState [18:38:09]SAM_PROTO_GetShiftState [18:38:09]wFMCommunicate request_size=4 [18:38:09]MH_SAM_APDU [18:38:09]CAPDU: 80 13 01 00 [18:38:09]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [18:38:09]Write i2c OK [18:38:09]MH_I2C_Read... [18:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:09]Read from MH i2c: E2 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0E 00 [18:38:09]MH_I2C_Read... [18:38:09]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 86 [18:38:09]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:38:09]wFMCommunicate OK [18:38:09]SAM_PROTO_GetShiftState done [18:38:09]FM_GetShiftState done [18:38:09]req_shift_opened done [18:38:09]requested_item shift.open_date is exist - process it [18:38:09]req_shift_open_date [18:38:09]req_shift_open_date done [18:38:09]produce_requested_data done [18:38:09]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140338,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:38:09]process_action_free close_receipt [18:38:09]json_value_free [18:38:09]json_value_free done [18:38:09]process_json_proto returns [18:38:09]Send response to host [18:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140338,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:38:09]free response buf [18:38:09]execute_script done [18:38:09]execute_script returns [18:38:09]free content buf [18:38:09]Sock 9.Close socket [18:38:09]Sock 9.Thread stoped [18:39:55]accept exits with 7 [18:39:55]New connection [18:39:55]New thread 3067612516 created [18:39:55]Thread 3067469156 joined [18:39:55]Waiting for new connection... [18:39:55] Sock 7.Parse request [18:39:55]Sock 7.Check first char [18:39:55]Sock 7.First char is OK [18:39:55]request: POST /json_proto HTTP/1.0 [18:39:55]Method: POST [18:39:55]URL: /json_proto [18:39:55]Method is POST - this is cgi request [18:39:55]url: /json_proto [18:39:55]query_string will be loaded in cgi processing [18:39:55]execute_cgi json_proto POST (null) [18:39:55]execute_cgi path=json_proto method=POST [18:39:55]POST find Content-Length [18:39:55]Host: 172.17.45.67:8080 [18:39:55]Content-Length: 677 [18:39:55]Content-Type: application/json [18:39:55] [18:39:55]POST finish read [18:39:55]Found Content-Length = 677 [18:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:55]execute_script... [18:39: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)594197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:55]POST & json_proto [18:39:55]process_json_proto [18:39:55]json parsed OK: [18:39:55]protocol is kg_v1.0 [18:39:55]action value=close_receipt [18:39:55]process_action close_receipt [18:39:55]cmd_close_receipt [18:39:55]MH_GetDate [18:39:55]Write to MH i2c: F0 00 00 77 13 79 [18:39:55]Write i2c OK [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: F0 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: F0 09 00 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: F0 09 00 77 13 00 7B 34 C6 66 5F 7F 2B 66 CC [18:39:55]GetLastDocTimeStamp 1724265486 [18:39:55]current date 1724265595 [18:39:55]FM_GetShiftState [18:39:55]SAM_PROTO_GetShiftState [18:39:55]wFMCommunicate request_size=4 [18:39:55]MH_SAM_APDU [18:39:55]CAPDU: 80 13 01 00 [18:39:55]Write to MH i2c: E2 08 00 78 13 80 13 01 00 00 00 00 00 08 [18:39:55]Write i2c OK [18:39:55]MH_I2C_Read... [18:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:55]Read from MH i2c: E2 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: E2 0E 00 [18:39:55]MH_I2C_Read... [18:39:55]Read from MH i2c: E2 0E 00 78 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 88 [18:39:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:39:55]wFMCommunicate OK [18:39:55]SAM_PROTO_GetShiftState done [18:39:55]FM_GetShiftState done [18:39:55]opened in 1724200467 [18:39:55]opened+sec_in_day 1724286867 [18:39:55]quantity*price = 30035 [18:39:55]sum+1 = 30036 [18:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 356 21.08.2024 18:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140339 ФПД: 68071353240470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140339&fm=68071353240470&tin=02508201610067®Number=0000000000092569&sum=30000 [18:39:56]StoreToDocumentArchive [18:39:56]shift 454 fd 140339 [18:39:56]save to /storage/0454/doc_00140339 [18:39:56]save last doc name /storage/0454/doc_00140339 to /storage/kkm_last_doc_name [18:39:56]save OK [18:39:56]Clear old archive folders... [18:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:56]tlvbuf is 00CA7DA0 [18:39:56]SAM_PROTO_ClearQueue [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 09 00 00 [18:39:56]Write to MH i2c: E2 08 00 85 13 80 09 00 00 00 00 00 00 0A [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [18:39:56]RAPDU: 90 00 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_ClearQueue done [18:39:56]KKMCreateOFDPacket [18:39:56]OFDProtocolAddRootSTLVToBuf [18:39:56]FM_MakeSignedData [18:39:56]FM_MakeSignedData [18:39:56]SAM_PROTO_SignData [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 0D 01 02 [18:39:56]Write to MH i2c: E2 08 00 86 13 80 0D 01 02 00 00 00 00 12 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [18:39:56]RAPDU: 90 00 [18:39:56]wFMCommunicate OK [18:39:56]wFMCommunicate request_size=255 [18:39:56]MH_SAM_APDU [18:39: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 7B 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 24 02 00 35 04 06 00 3D [18:39:56]Write to MH i2c: E2 02 01 87 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 7B 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 24 02 00 35 04 06 00 3D 00 00 57 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [18:39:56]RAPDU: 90 00 [18:39:56]wFMCommunicate OK [18:39:56]wFMCommunicate request_size=10 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 0D 02 02 05 E9 18 D4 4B 96 [18:39:56]Write to MH i2c: E2 0D 00 88 13 80 0D 02 02 05 00 E9 18 D4 4B 96 00 00 D5 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [18:39:56]RAPDU: 90 00 [18:39:56]wFMCommunicate OK [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 0D 03 02 [18:39:56]Write to MH i2c: E2 08 00 89 13 80 0D 03 02 00 00 00 00 17 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:56]Read from MH i2c: E2 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0B 00 [18:39:56]MH_I2C_Read... [18:39:56]Read from MH i2c: E2 0B 00 89 13 00 59 D9 4B 99 1F BC 47 D7 90 00 27 [18:39:56]RAPDU: 59 D9 4B 99 1F BC 47 D7 90 00 [18:39:56]wFMCommunicate OK [18:39:56]SAM_PROTO_SignData done [18:39:56]FM_MakeSignedData done [18:39:56]CreateOFDProtocolMessage [18:39:56]wFMCommunicate request_size=4 [18:39:56]MH_SAM_APDU [18:39:56]CAPDU: 80 11 00 00 [18:39:56]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [18:39:56]Write i2c OK [18:39:56]MH_I2C_Read... [18:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:57]Read from MH i2c: E2 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: E2 17 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [18:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:39:57]wFMCommunicate OK [18:39:57]CreateOFDProtocolMessage done [18:39:57]OFDSenderStorePacket 140339 [18:39:57]StoreOFDPacket docnum=140339 [18:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F8 A3 07 01 87 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 7B 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 24 02 00 35 04 06 00 3D E9 18 D4 4B 96 59 D9 4B 99 1F BC 47 D7 [18:39:57]CheckFolder [18:39:57]dirname=/storage/ofd_packets [18:39:57]CheckFolder done [18:39:57]ProducePacketName [18:39:57]name=ofd_packets/00140339 [18:39:57]NVStorageSaveData ofd_packets/00140339 [18:39:57]File name is /storage/ofd_packets/00140339 [18:39:57]Write 301 bytes [18:39:57]NVStorageSaveData done [18:39:57]OFDSenderStorePacket done [18:39:57]KKMCreateOFDPacket done [18:39:57]NVStorageSaveData kkm_last_timestamp [18:39:57]File name is /storage/kkm_last_timestamp [18:39:57]Write 4 bytes [18:39:57]NVStorageSaveData done [18:39:57]ExternCall_PrintAddStr [18:39:57]wPrintStart [18:39:57]Write to MH i2c: 01 00 00 8B 13 9E [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 07 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 07 00 8B 13 00 00 00 00 00 FF 0F B3 [18:39:57]RasterBufferAndPrint [18:39:57]line Счет N : (1)594197 [18:39:57]line ИНН: 02508201610067 [18:39:57]line Контрольно-Кассовый Чек [18:39:57]line ПРОДАЖА [18:39:57]line ТРК (МРК, ГНК) : 32 [18:39:57]line Товар: 2710124130 [18:39:57]line Аи-92-К-5 [18:39:57]line 4.430 * 67.80 [18:39:57]line = 300.35 [18:39:57]line НДС 12% НСП 1% [18:39:57]line > о реализуемом товаре [18:39:57]line ОКРУГЛЕНИЕ: -0.35 [18:39:57]line ИТОГО: 300.00 [18:39:57]line Внесено: 300.00 [18:39:57]line СДАЧА: 0.00 [18:39:57]line НСП 1% : 2.66 [18:39:57]line НДС 12% : 31.90 [18:39:57]line Наличными: 300.00 [18:39:57]line Безнал.: 0.00 [18:39:57]line Место: АЗС № 136 "Партнер Нефть" [18:39:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:39:57]line СНО: Общий режим [18:39:57]line Чек 356 21.08.2024 18:39 [18:39:57]line Смена: 454 ФФД: 1.0 [18:39:57]line ЗНМ: 0300000067 [18:39:57]line РНМ: 0000000000092569 [18:39:57]line Версия ККМ: 001 [18:39:57]line ФМ: 0000000000871776 [18:39:57]line ФД: 140339 [18:39:57]line ФПД: 68071353240470 [18:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T183955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140339&fm=68071353240470&tin=02508201610067®Number=0000000000092569&sum=30000 [18:39:57]written 0, free lines is 4095 [18:39:57]Write to MH i2c: 01 00 00 B6 13 C9 [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 07 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 D4 0C B0 [18:39:57]RasterBufferAndPrint [18:39:57]line [18:39:57]line [18:39:57]line [18:39:57]line [18:39:57]line [18:39:57]written 0, free lines is 3292 [18:39:57]MH_Cut [18:39:57]Write to MH i2c: D1 01 00 BD 13 01 A2 [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: D1 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: D1 01 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: D1 01 00 BD 13 00 A1 [18:39:57]Write to MH i2c: 01 00 00 BE 13 D1 [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:58]*** Cut start [18:39:58]*** Partial cut [18:39:58]*** CUTSNS_PIN = 1 [18:39:58]*** CUTSNS_PIN = 0 [18:39:58]*** Brake cut motor [18:39:59]Read from MH i2c: 01 [18:39:59]MH_I2C_Read... [18:39:59]*** Stop cut motor [18:39:59]*** Cut end [18:39:59]Read from MH i2c: 01 07 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 FF 0F E6 [18:39:59]process_action close_receipt done [18:39:59]requested_data is exist [18:39:59]produce_requested_data [18:39:59]requested_item fm.sn is exist - process it [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 11 00 00 [18:39:59]Write to MH i2c: E2 08 00 BF 13 80 11 00 00 00 00 00 00 4C [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 BF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:39:59]wFMCommunicate OK [18:39:59]requested_item fd.num is exist - process it [18:39:59]SAM_PROTO_GetFieldsCounters [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 13 00 00 [18:39:59]Write to MH i2c: E2 08 00 C0 13 80 13 00 00 00 00 00 00 4F [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 62 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 62 00 C0 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 24 02 00 0E 04 04 00 C6 01 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 C9 [18:39: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 33 24 02 00 0E 04 04 00 C6 01 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 [18:39:59]wFMCommunicate OK [18:39:59]SAM_PROTO_GetFieldsCounters done [18:39:59]requested_item shift.num is exist - process it [18:39:59]requested_item shift.opened is exist - process it [18:39:59]req_shift_opened [18:39:59]FM_GetShiftState [18:39:59]SAM_PROTO_GetShiftState [18:39:59]wFMCommunicate request_size=4 [18:39:59]MH_SAM_APDU [18:39:59]CAPDU: 80 13 01 00 [18:39:59]Write to MH i2c: E2 08 00 C1 13 80 13 01 00 00 00 00 00 51 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 0E 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 0E 00 C1 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D1 [18:39:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:39:59]wFMCommunicate OK [18:39:59]SAM_PROTO_GetShiftState done [18:39:59]FM_GetShiftState done [18:39:59]req_shift_opened done [18:39:59]requested_item shift.open_date is exist - process it [18:39:59]req_shift_open_date [18:39:59]req_shift_open_date done [18:39:59]produce_requested_data done [18:39:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140339,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:39:59]process_action_free close_receipt [18:39:59]json_value_free [18:39:59]json_value_free done [18:39:59]process_json_proto returns [18:39:59]Send response to host [18:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140339,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:39:59]free response buf [18:39:59]execute_script done [18:39:59]execute_script returns [18:39:59]free content buf [18:39:59]Sock 7.Close socket [18:39:59]Sock 7.Thread stoped [18:40:21]ConnectInit Can't connect to host [18:40:21]CommunicateWithHost connect error [18:40:21]CommunicateWithHost err = -1 [18:40:21]OFD Sender: Server communicate error [18:40:21]OFD Sender: Processing packet 140338 [packets to send 138, broken 136] [18:40:21]ProducePacketName [18:40:21]name=ofd_packets/00140338 [18:40:21]OFD Sender: To server: pG, [18:40:21]CommunicateWithHost lk.salyk.kg:30040 [18:40:21]ConnectInit lk.salyk.kg [18:40:22]Connected sock=7 [18:40: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 37 36 0F 01 00 00 32 DD 07 01 08 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 63 01 00 00 F4 03 04 00 0E 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 32 24 02 00 35 04 06 00 D2 9A 78 89 DE 16 69 D2 ED C7 AC D4 0D 94 [18:40: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 37 36 4F 00 00 00 1A FF 47 00 FF 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 37 36 10 04 04 00 32 24 02 00 F4 03 04 00 24 DB C5 66 B6 04 01 00 00 32 87 9E 4B DB A7 18 18 [18:40:22]CommunicateWithHost err = 0 [18:40:22]CheckOFDResponse [18:40:22]1017 (14) - 77093643461234 [18:40:22]1041 (16) - 0000000000871776 [18:40:22]1040 (4) - 140338 [18:40:22]1012 (4) - 21.08.2024 12:18 [18:40:22]1206 (1) - 0 [18:40:22]OFD Sender: Remove packet 140338 [18:40:22]ProducePacketName [18:40:22]name=ofd_packets/00140338 [18:40:22]NVStorageDeleteData [18:40:22]OFD Sender: Processing packet 140339 [packets to send 137, broken 136] [18:40:22]ProducePacketName [18:40:22]name=ofd_packets/00140339 [18:40:22]OFD Sender: To server: pG, [18:40:22]CommunicateWithHost lk.salyk.kg:30040 [18:40:22]ConnectInit lk.salyk.kg [18:40:23]Connected sock=7 [18:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F8 A3 07 01 87 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 7B 34 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 33 24 02 00 35 04 06 00 3D E9 18 D4 4B 96 59 D9 4B 99 1F BC 47 D7 [18:40: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 37 36 4F 00 00 00 53 FD 47 00 31 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 37 36 10 04 04 00 33 24 02 00 F4 03 04 00 25 DB C5 66 B6 04 01 00 00 32 47 2D 70 B4 37 65 C5 [18:40:23]CommunicateWithHost err = 0 [18:40:23]CheckOFDResponse [18:40:23]1017 (14) - 77093643461234 [18:40:23]1041 (16) - 0000000000871776 [18:40:23]1040 (4) - 140339 [18:40:23]1012 (4) - 21.08.2024 12:18 [18:40:23]1206 (1) - 0 [18:40:23]OFD Sender: Remove packet 140339 [18:40:23]ProducePacketName [18:40:23]name=ofd_packets/00140339 [18:40:23]NVStorageDeleteData [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]int [18:41:43]Write to MH i2c: 01 00 00 C2 13 D5 [18:41:43]*** FLAG_PRN_KEY set [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: 01 07 00 C2 13 00 08 00 00 00 FF 0F F2 [18:41:43]state=0 [18:41:43]Key pressed [18:41:43]Feed [18:41:43]Write to MH i2c: D8 00 00 C3 13 AD [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D8 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D8 01 00 [18:41:43]MH_I2C_Read... [18:41:43]Read from MH i2c: D8 01 00 C3 13 00 AE [18:41:43]int [18:41:43]Write to MH i2c: 01 00 00 C4 13 D7 [18:41:43]Write i2c OK [18:41:43]MH_I2C_Read... [18:41:43]OFD Sender: No OFD packet to send [18:41:44]Read from MH i2c: 01 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 C4 13 00 48 00 00 00 3C 00 62 [18:41:44]state=2 [18:41:44]Key pressed [18:41:44]int [18:41:44]Write to MH i2c: 01 00 00 C5 13 D8 [18:41:44]*** FLAG_PRN_KEY reset [18:41:44]Write i2c OK [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 [18:41:44]MH_I2C_Read... [18:41:44]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 F9 0F E7 [18:41:44]state=2 [18:41:44]Stop feed [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]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:39]accept exits with 9 [18:42:39]New connection [18:42:39]New thread 3067469156 created [18:42:39]Thread 3067612516 joined [18:42:39]Waiting for new connection... [18:42:39] Sock 9.Parse request [18:42:39]Sock 9.Check first char [18:42:39]Sock 9.First char is OK [18:42:39]request: POST /json_proto HTTP/1.0 [18:42:39]Method: POST [18:42:39]URL: /json_proto [18:42:39]Method is POST - this is cgi request [18:42:39]url: /json_proto [18:42:39]query_string will be loaded in cgi processing [18:42:39]execute_cgi json_proto POST (null) [18:42:39]execute_cgi path=json_proto method=POST [18:42:39]POST find Content-Length [18:42:39]Host: 172.17.45.67:8080 [18:42:39]Content-Length: 682 [18:42:39]Content-Type: application/json [18:42:39] [18:42:39]POST finish read [18:42:39]Found Content-Length = 682 [18:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [18:42:39]execute_script... [18:42: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)594198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "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" ] } } [18:42:39]POST & json_proto [18:42:39]process_json_proto [18:42:39]json parsed OK: [18:42:39]protocol is kg_v1.0 [18:42:39]action value=close_receipt [18:42:39]process_action close_receipt [18:42:39]cmd_close_receipt [18:42:39]MH_GetDate [18:42:39]Write to MH i2c: F0 00 00 C6 13 C8 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: F0 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: F0 09 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: F0 09 00 C6 13 00 20 35 C6 66 5F 7F 2B 66 C1 [18:42:39]GetLastDocTimeStamp 1724265595 [18:42:39]current date 1724265760 [18:42:39]FM_GetShiftState [18:42:39]SAM_PROTO_GetShiftState [18:42:39]wFMCommunicate request_size=4 [18:42:39]MH_SAM_APDU [18:42:39]CAPDU: 80 13 01 00 [18:42:39]Write to MH i2c: E2 08 00 C7 13 80 13 01 00 00 00 00 00 57 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:39]Read from MH i2c: E2 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 0E 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 0E 00 C7 13 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D7 [18:42:39]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:42:39]wFMCommunicate OK [18:42:39]SAM_PROTO_GetShiftState done [18:42:39]FM_GetShiftState done [18:42:39]opened in 1724200467 [18:42:39]opened+sec_in_day 1724286867 [18:42:39]quantity*price = 75057 [18:42:39]sum+1 = 75058 [18:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 357 21.08.2024 18:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140340 ФПД: 218414326821152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140340&fm=218414326821152&tin=02508201610067®Number=0000000000092569&sum=75000 [18:42:40]StoreToDocumentArchive [18:42:40]shift 454 fd 140340 [18:42:40]save to /storage/0454/doc_00140340 [18:42:40]save last doc name /storage/0454/doc_00140340 to /storage/kkm_last_doc_name [18:42:40]save OK [18:42:40]Clear old archive folders... [18:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:42:40]tlvbuf is B6F62490 [18:42:40]SAM_PROTO_ClearQueue [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 09 00 00 [18:42:40]Write to MH i2c: E2 08 00 D4 13 80 09 00 00 00 00 00 00 59 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]SAM_PROTO_ClearQueue done [18:42:40]KKMCreateOFDPacket [18:42:40]OFDProtocolAddRootSTLVToBuf [18:42:40]FM_MakeSignedData [18:42:40]FM_MakeSignedData [18:42:40]SAM_PROTO_SignData [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 0D 01 02 [18:42:40]Write to MH i2c: E2 08 00 D5 13 80 0D 01 02 00 00 00 00 61 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [18:42:40]RAPDU: 90 00 [18:42:40]wFMCommunicate OK [18:42:40]wFMCommunicate request_size=255 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 65 01 00 00 F4 03 04 00 20 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 24 02 00 35 04 06 00 [18:42:40]Write to MH i2c: E2 02 01 D6 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 65 01 00 00 F4 03 04 00 20 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 24 02 00 35 04 06 00 00 00 A6 [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 03 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 03 00 D6 13 00 90 00 5D [18:42:41]RAPDU: 90 00 [18:42:41]wFMCommunicate OK [18:42:41]wFMCommunicate request_size=11 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 0D 02 02 06 C6 A5 8C 5D 31 20 [18:42:41]Write to MH i2c: E2 0E 00 D7 13 80 0D 02 02 06 00 C6 A5 8C 5D 31 20 00 00 15 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 03 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 03 00 D7 13 00 90 00 5E [18:42:41]RAPDU: 90 00 [18:42:41]wFMCommunicate OK [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 0D 03 02 [18:42:41]Write to MH i2c: E2 08 00 D8 13 80 0D 03 02 00 00 00 00 66 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0B 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0B 00 D8 13 00 18 B8 94 7D B2 F3 4B AB 90 00 E3 [18:42:41]RAPDU: 18 B8 94 7D B2 F3 4B AB 90 00 [18:42:41]wFMCommunicate OK [18:42:41]SAM_PROTO_SignData done [18:42:41]FM_MakeSignedData done [18:42:41]CreateOFDProtocolMessage [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 11 00 00 [18:42:41]Write to MH i2c: E2 08 00 D9 13 80 11 00 00 00 00 00 00 66 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 17 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 17 00 D9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [18:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:42:41]wFMCommunicate OK [18:42:41]CreateOFDProtocolMessage done [18:42:41]OFDSenderStorePacket 140340 [18:42:41]StoreOFDPacket docnum=140340 [18:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 99 E2 08 01 F4 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 65 01 00 00 F4 03 04 00 20 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 24 02 00 35 04 06 00 C6 A5 8C 5D 31 20 18 B8 94 7D B2 F3 4B AB [18:42:41]CheckFolder [18:42:41]dirname=/storage/ofd_packets [18:42:41]CheckFolder done [18:42:41]ProducePacketName [18:42:41]name=ofd_packets/00140340 [18:42:41]NVStorageSaveData ofd_packets/00140340 [18:42:41]File name is /storage/ofd_packets/00140340 [18:42:41]Write 302 bytes [18:42:41]NVStorageSaveData done [18:42:41]OFDSenderStorePacket done [18:42:41]KKMCreateOFDPacket done [18:42:41]NVStorageSaveData kkm_last_timestamp [18:42:41]File name is /storage/kkm_last_timestamp [18:42:41]Write 4 bytes [18:42:41]NVStorageSaveData done [18:42:41]ExternCall_PrintAddStr [18:42:41]wPrintStart [18:42:41]Write to MH i2c: 01 00 00 DA 13 ED [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 07 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 07 00 DA 13 00 00 00 00 00 FF 0F 02 [18:42:41]RasterBufferAndPrint [18:42:41]line Счет N : (1)594198 [18:42:41]line ИНН: 02508201610067 [18:42:41]line Контрольно-Кассовый Чек [18:42:41]line ПРОДАЖА [18:42:41]line ТРК (МРК, ГНК) : 34 [18:42:41]line Товар: 2710194210 [18:42:41]line ДТ(л)-К-5 [18:42:41]line 9.850 * 76.20 [18:42:41]line = 750.57 [18:42:41]line НДС 12% НСП 1% [18:42:41]line > о реализуемом товаре [18:42:41]line ОКРУГЛЕНИЕ: -0.57 [18:42:41]line ИТОГО: 750.00 [18:42:41]line Внесено: 750.00 [18:42:41]line СДАЧА: 0.00 [18:42:41]line НСП 1% : 6.64 [18:42:41]line НДС 12% : 79.71 [18:42:41]line Наличными: 750.00 [18:42:41]line Безнал.: 0.00 [18:42:41]line Место: АЗС № 136 "Партнер Нефть" [18:42:41]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:42:41]line СНО: Общий режим [18:42:41]line Чек 357 21.08.2024 18:42 [18:42:41]line Смена: 454 ФФД: 1.0 [18:42:41]line ЗНМ: 0300000067 [18:42:41]line РНМ: 0000000000092569 [18:42:41]line Версия ККМ: 001 [18:42:41]line ФМ: 0000000000871776 [18:42:41]line ФД: 140340 [18:42:41]line ФПД: 218414326821152 [18:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184240&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140340&fm=218414326821152&tin=02508201610067®Number=0000000000092569&sum=75000 [18:42:41]OFD Sender: Processing packet 140340 [packets to send 137, broken 136] [18:42:41]ProducePacketName [18:42:41]name=ofd_packets/00140340 [18:42:41]OFD Sender: To server: pG, [18:42:41]CommunicateWithHost lk.salyk.kg:30040 [18:42:41]ConnectInit lk.salyk.kg [18:42:41]written 0, free lines is 4095 [18:42:41]Connected sock=7 [18:42: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 37 36 10 01 00 00 99 E2 08 01 F4 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 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 65 01 00 00 F4 03 04 00 20 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 34 24 02 00 35 04 06 00 C6 A5 8C 5D 31 20 18 B8 94 7D B2 F3 4B AB [18:42:42]Write to MH i2c: 01 00 00 05 14 19 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: 01 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: 01 07 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: 01 07 00 05 14 00 00 00 00 00 D6 0C 02 [18:42:42]RasterBufferAndPrint [18:42:42]line [18:42:42]line [18:42:42]line [18:42:42]line [18:42:42]line [18:42:42]written 0, free lines is 3294 [18:42:42]MH_Cut [18:42:42]Write to MH i2c: D1 01 00 0C 14 01 F2 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: D1 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: D1 01 00 [18:42:42]MH_I2C_Read... [18:42:42]Read from MH i2c: D1 01 00 0C 14 00 F1 [18:42:42]Write to MH i2c: 01 00 00 0D 14 21 [18:42:42]Write i2c OK [18:42:42]MH_I2C_Read... [18:42: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 37 36 4F 00 00 00 8F 48 47 00 19 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 37 36 10 04 04 00 34 24 02 00 F4 03 04 00 B0 DB C5 66 B6 04 01 00 00 2D 18 14 E4 39 B9 C4 2D [18:42:42]CommunicateWithHost err = 0 [18:42:42]CheckOFDResponse [18:42:42]1017 (14) - 77093643461234 [18:42:42]1041 (16) - 0000000000871776 [18:42:42]1040 (4) - 140340 [18:42:42]1012 (4) - 21.08.2024 12:21 [18:42:42]1206 (1) - 0 [18:42:42]OFD Sender: Remove packet 140340 [18:42:42]ProducePacketName [18:42:42]name=ofd_packets/00140340 [18:42:42]NVStorageDeleteData [18:42:42]OFD Sender: No OFD packet to send [18:42:42]*** Cut start [18:42:42]*** Partial cut [18:42:42]*** CUTSNS_PIN = 1 [18:42:42]*** CUTSNS_PIN = 0 [18:42:42]*** Brake cut motor [18:42:43]Read from MH i2c: 01 [18:42:43]MH_I2C_Read... [18:42:43]*** Stop cut motor [18:42:43]*** Cut end [18:42:43]Read from MH i2c: 01 07 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 0D 14 00 00 00 00 00 FF 0F 36 [18:42:43]process_action close_receipt done [18:42:43]requested_data is exist [18:42:43]produce_requested_data [18:42:43]requested_item fm.sn is exist - process it [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 11 00 00 [18:42:43]Write to MH i2c: E2 08 00 0E 14 80 11 00 00 00 00 00 00 9C [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 17 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 17 00 0E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F3 [18:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:42:43]wFMCommunicate OK [18:42:43]requested_item fd.num is exist - process it [18:42:43]SAM_PROTO_GetFieldsCounters [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 13 00 00 [18:42:43]Write to MH i2c: E2 08 00 0F 14 80 13 00 00 00 00 00 00 9F [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 62 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 62 00 0F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 24 02 00 0E 04 04 00 C6 01 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 1D [18:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 34 24 02 00 0E 04 04 00 C6 01 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 [18:42:43]wFMCommunicate OK [18:42:43]SAM_PROTO_GetFieldsCounters done [18:42:43]requested_item shift.num is exist - process it [18:42:43]requested_item shift.opened is exist - process it [18:42:43]req_shift_opened [18:42:43]FM_GetShiftState [18:42:43]SAM_PROTO_GetShiftState [18:42:43]wFMCommunicate request_size=4 [18:42:43]MH_SAM_APDU [18:42:43]CAPDU: 80 13 01 00 [18:42:43]Write to MH i2c: E2 08 00 10 14 80 13 01 00 00 00 00 00 A1 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:43]int [18:42:43]*** FLAG_PRN_KEY set [18:42:43]Read from MH i2c: E2 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 0E 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: E2 0E 00 10 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 21 [18:42:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:42:43]wFMCommunicate OK [18:42:43]SAM_PROTO_GetShiftState done [18:42:43]FM_GetShiftState done [18:42:43]req_shift_opened done [18:42:43]requested_item shift.open_date is exist - process it [18:42:43]req_shift_open_date [18:42:43]req_shift_open_date done [18:42:43]produce_requested_data done [18:42:43]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140340,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:42:43]process_action_free close_receipt [18:42:43]json_value_free [18:42:43]json_value_free done [18:42:43]process_json_proto returns [18:42:43]Send response to host [18:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140340,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:42:43]free response buf [18:42:43]execute_script done [18:42:43]execute_script returns [18:42:43]free content buf [18:42:43]Sock 9.Close socket [18:42:43]Sock 9.Thread stoped [18:42:43]Write to MH i2c: 01 00 00 11 14 25 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 11 14 00 08 00 00 00 FF 0F 42 [18:42:43]state=0 [18:42:43]Key pressed [18:42:43]Feed [18:42:43]Write to MH i2c: D8 00 00 12 14 FD [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: D8 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: D8 01 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: D8 01 00 12 14 00 FE [18:42:43]int [18:42:43]Write to MH i2c: 01 00 00 13 14 27 [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 13 14 00 48 00 00 00 3C 00 B2 [18:42:43]state=2 [18:42:43]Key pressed [18:42:43]int [18:42:43]Write to MH i2c: 01 00 00 14 14 28 [18:42:43]*** FLAG_PRN_KEY reset [18:42:43]Write i2c OK [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 [18:42:43]MH_I2C_Read... [18:42:43]Read from MH i2c: 01 07 00 14 14 00 00 00 00 00 FC 0F 3A [18:42:43]state=2 [18:42:43]Stop feed [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:25]accept exits with 10 [18:43:25]New connection [18:43:25]New thread 3067612516 created [18:43:25]Thread 3067469156 joined [18:43:25]Waiting for new connection... [18:43:25] Sock 10.Parse request [18:43:25]Sock 10.Check first char [18:43:25]Sock 10.First char is OK [18:43:25]request: POST /json_proto HTTP/1.0 [18:43:25]Method: POST [18:43:25]URL: /json_proto [18:43:25]Method is POST - this is cgi request [18:43:25]url: /json_proto [18:43:25]query_string will be loaded in cgi processing [18:43:25]execute_cgi json_proto POST (null) [18:43:25]execute_cgi path=json_proto method=POST [18:43:25]POST find Content-Length [18:43:25]Host: 172.17.45.67:8080 [18:43:25]Content-Length: 677 [18:43:25]Content-Type: application/json [18:43:25] [18:43:25]POST finish read [18:43:25]Found Content-Length = 677 [18:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:25]execute_script... [18:43:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:25]POST & json_proto [18:43:25]process_json_proto [18:43:25]json parsed OK: [18:43:25]protocol is kg_v1.0 [18:43:25]action value=close_receipt [18:43:25]process_action close_receipt [18:43:25]cmd_close_receipt [18:43:25]MH_GetDate [18:43:25]Write to MH i2c: F0 00 00 15 14 18 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: F0 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: F0 09 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: F0 09 00 15 14 00 4E 35 C6 66 5F 7F 2B 66 3F [18:43:25]GetLastDocTimeStamp 1724265760 [18:43:25]current date 1724265806 [18:43:25]FM_GetShiftState [18:43:25]SAM_PROTO_GetShiftState [18:43:25]wFMCommunicate request_size=4 [18:43:25]MH_SAM_APDU [18:43:25]CAPDU: 80 13 01 00 [18:43:25]Write to MH i2c: E2 08 00 16 14 80 13 01 00 00 00 00 00 A7 [18:43:25]Write i2c OK [18:43:25]MH_I2C_Read... [18:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:25]Read from MH i2c: E2 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0E 00 [18:43:25]MH_I2C_Read... [18:43:25]Read from MH i2c: E2 0E 00 16 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [18:43:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:43:25]wFMCommunicate OK [18:43:25]SAM_PROTO_GetShiftState done [18:43:25]FM_GetShiftState done [18:43:25]opened in 1724200467 [18:43:25]opened+sec_in_day 1724286867 [18:43:25]quantity*price = 30035 [18:43:25]sum+1 = 30036 [18:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 358 21.08.2024 18:43 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140341 ФПД: 258357503491409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184326&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140341&fm=258357503491409&tin=02508201610067®Number=0000000000092569&sum=30000 [18:43:26]StoreToDocumentArchive [18:43:26]shift 454 fd 140341 [18:43:26]save to /storage/0454/doc_00140341 [18:43:26]save last doc name /storage/0454/doc_00140341 to /storage/kkm_last_doc_name [18:43:26]save OK [18:43:26]Clear old archive folders... [18:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:26]tlvbuf is B6F7B390 [18:43:26]SAM_PROTO_ClearQueue [18:43:26]wFMCommunicate request_size=4 [18:43:26]MH_SAM_APDU [18:43:26]CAPDU: 80 09 00 00 [18:43:26]Write to MH i2c: E2 08 00 23 14 80 09 00 00 00 00 00 00 A9 [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:26]Read from MH i2c: E2 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: E2 03 00 [18:43:26]MH_I2C_Read... [18:43:26]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [18:43:26]RAPDU: 90 00 [18:43:26]wFMCommunicate OK [18:43:26]SAM_PROTO_ClearQueue done [18:43:26]KKMCreateOFDPacket [18:43:26]OFDProtocolAddRootSTLVToBuf [18:43:26]FM_MakeSignedData [18:43:26]FM_MakeSignedData [18:43:26]SAM_PROTO_SignData [18:43:26]wFMCommunicate request_size=4 [18:43:26]MH_SAM_APDU [18:43:26]CAPDU: 80 0D 01 02 [18:43:26]Write to MH i2c: E2 08 00 24 14 80 0D 01 02 00 00 00 00 B1 [18:43:26]Write i2c OK [18:43:26]MH_I2C_Read... [18:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [18:43:27]RAPDU: 90 00 [18:43:27]wFMCommunicate OK [18:43:27]wFMCommunicate request_size=255 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 4E 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 24 02 00 35 04 06 00 EA [18:43:27]Write to MH i2c: E2 02 01 25 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 4E 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 24 02 00 35 04 06 00 EA 00 00 7B [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [18:43:27]RAPDU: 90 00 [18:43:27]wFMCommunicate OK [18:43:27]wFMCommunicate request_size=10 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 0D 02 02 05 F9 8B 38 7D 51 [18:43:27]Write to MH i2c: E2 0D 00 26 14 80 0D 02 02 05 00 F9 8B 38 7D 51 00 00 48 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [18:43:27]RAPDU: 90 00 [18:43:27]wFMCommunicate OK [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 0D 03 02 [18:43:27]Write to MH i2c: E2 08 00 27 14 80 0D 03 02 00 00 00 00 B6 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0B 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 0B 00 27 14 00 9B 3B D4 B8 32 49 91 4B 90 00 70 [18:43:27]RAPDU: 9B 3B D4 B8 32 49 91 4B 90 00 [18:43:27]wFMCommunicate OK [18:43:27]SAM_PROTO_SignData done [18:43:27]FM_MakeSignedData done [18:43:27]CreateOFDProtocolMessage [18:43:27]wFMCommunicate request_size=4 [18:43:27]MH_SAM_APDU [18:43:27]CAPDU: 80 11 00 00 [18:43:27]Write to MH i2c: E2 08 00 28 14 80 11 00 00 00 00 00 00 B6 [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:27]Read from MH i2c: E2 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 17 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: E2 17 00 28 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [18:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:43:27]wFMCommunicate OK [18:43:27]CreateOFDProtocolMessage done [18:43:27]OFDSenderStorePacket 140341 [18:43:27]StoreOFDPacket docnum=140341 [18:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F F2 07 01 D6 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 4E 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 24 02 00 35 04 06 00 EA F9 8B 38 7D 51 9B 3B D4 B8 32 49 91 4B [18:43:27]CheckFolder [18:43:27]dirname=/storage/ofd_packets [18:43:27]CheckFolder done [18:43:27]ProducePacketName [18:43:27]name=ofd_packets/00140341 [18:43:27]NVStorageSaveData ofd_packets/00140341 [18:43:27]File name is /storage/ofd_packets/00140341 [18:43:27]Write 301 bytes [18:43:27]NVStorageSaveData done [18:43:27]OFDSenderStorePacket done [18:43:27]KKMCreateOFDPacket done [18:43:27]NVStorageSaveData kkm_last_timestamp [18:43:27]File name is /storage/kkm_last_timestamp [18:43:27]Write 4 bytes [18:43:27]NVStorageSaveData done [18:43:27]ExternCall_PrintAddStr [18:43:27]wPrintStart [18:43:27]Write to MH i2c: 01 00 00 29 14 3D [18:43:27]Write i2c OK [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: 01 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: 01 07 00 [18:43:27]MH_I2C_Read... [18:43:27]Read from MH i2c: 01 07 00 29 14 00 00 00 00 00 FF 0F 52 [18:43:27]RasterBufferAndPrint [18:43:27]line Счет N : (1)594199 [18:43:27]line ИНН: 02508201610067 [18:43:27]line Контрольно-Кассовый Чек [18:43:27]line ПРОДАЖА [18:43:27]line ТРК (МРК, ГНК) : 62 [18:43:27]line Товар: 2710124130 [18:43:27]line Аи-92-К-5 [18:43:27]line 4.430 * 67.80 [18:43:27]line = 300.35 [18:43:27]line НДС 12% НСП 1% [18:43:27]line > о реализуемом товаре [18:43:27]line ОКРУГЛЕНИЕ: -0.35 [18:43:27]line ИТОГО: 300.00 [18:43:27]line Внесено: 300.00 [18:43:27]line СДАЧА: 0.00 [18:43:27]line НСП 1% : 2.66 [18:43:27]line НДС 12% : 31.90 [18:43:27]line Наличными: 300.00 [18:43:27]line Безнал.: 0.00 [18:43:27]line Место: АЗС № 136 "Партнер Нефть" [18:43:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:43:27]line СНО: Общий режим [18:43:27]line Чек 358 21.08.2024 18:43 [18:43:27]line Смена: 454 ФФД: 1.0 [18:43:27]line ЗНМ: 0300000067 [18:43:27]line РНМ: 0000000000092569 [18:43:27]line Версия ККМ: 001 [18:43:27]line ФМ: 0000000000871776 [18:43:27]line ФД: 140341 [18:43:27]line ФПД: 258357503491409 [18:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184326&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140341&fm=258357503491409&tin=02508201610067®Number=0000000000092569&sum=30000 [18:43:27]written 0, free lines is 4095 [18:43:27]OFD Sender: Processing packet 140341 [packets to send 137, broken 136] [18:43:27]ProducePacketName [18:43:27]name=ofd_packets/00140341 [18:43:27]OFD Sender: To server: pG, [18:43:27]CommunicateWithHost lk.salyk.kg:30040 [18:43:27]ConnectInit lk.salyk.kg [18:43:28]Connected sock=11 [18:43:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9F F2 07 01 D6 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 4E 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 35 24 02 00 35 04 06 00 EA F9 8B 38 7D 51 9B 3B D4 B8 32 49 91 4B [18:43:28]Write to MH i2c: 01 00 00 54 14 68 [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: 01 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: 01 07 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 E8 0C 63 [18:43:28]RasterBufferAndPrint [18:43:28]line [18:43:28]line [18:43:28]line [18:43:28]line [18:43:28]line [18:43:28]written 0, free lines is 3310 [18:43:28]MH_Cut [18:43:28]Write to MH i2c: D1 01 00 5B 14 01 41 [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: D1 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: D1 01 00 [18:43:28]MH_I2C_Read... [18:43:28]Read from MH i2c: D1 01 00 5B 14 00 40 [18:43:28]Write to MH i2c: 01 00 00 5C 14 70 [18:43:28]Write i2c OK [18:43:28]MH_I2C_Read... [18:43:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 78 D0 47 00 22 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 37 36 10 04 04 00 35 24 02 00 F4 03 04 00 DE DB C5 66 B6 04 01 00 00 87 72 C0 B1 BD A5 10 ED [18:43:28]CommunicateWithHost err = 0 [18:43:28]CheckOFDResponse [18:43:28]1017 (14) - 77093643461234 [18:43:28]1041 (16) - 0000000000871776 [18:43:28]1040 (4) - 140341 [18:43:28]1012 (4) - 21.08.2024 12:21 [18:43:28]1206 (1) - 0 [18:43:28]OFD Sender: Remove packet 140341 [18:43:28]ProducePacketName [18:43:28]name=ofd_packets/00140341 [18:43:28]NVStorageDeleteData [18:43:28]OFD Sender: No OFD packet to send [18:43:28]*** Cut start [18:43:28]*** Partial cut [18:43:28]*** CUTSNS_PIN = 1 [18:43:28]*** CUTSNS_PIN = 0 [18:43:29]*** Brake cut motor [18:43:29]Read from MH i2c: 01 [18:43:29]MH_I2C_Read... [18:43:29]*** Stop cut motor [18:43:29]*** Cut end [18:43:29]Read from MH i2c: 01 07 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [18:43:29]process_action close_receipt done [18:43:29]requested_data is exist [18:43:29]produce_requested_data [18:43:29]requested_item fm.sn is exist - process it [18:43:29]wFMCommunicate request_size=4 [18:43:29]MH_SAM_APDU [18:43:29]CAPDU: 80 11 00 00 [18:43:29]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [18:43:29]Write i2c OK [18:43:29]MH_I2C_Read... [18:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:29]Read from MH i2c: E2 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 17 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [18:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:43:29]wFMCommunicate OK [18:43:29]requested_item fd.num is exist - process it [18:43:29]SAM_PROTO_GetFieldsCounters [18:43:29]wFMCommunicate request_size=4 [18:43:29]MH_SAM_APDU [18:43:29]CAPDU: 80 13 00 00 [18:43:29]Write to MH i2c: E2 08 00 5E 14 80 13 00 00 00 00 00 00 EE [18:43:29]Write i2c OK [18:43:29]MH_I2C_Read... [18:43:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:29]Read from MH i2c: E2 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 62 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 62 00 5E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 24 02 00 0E 04 04 00 C6 01 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 70 [18:43: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 35 24 02 00 0E 04 04 00 C6 01 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 [18:43:29]wFMCommunicate OK [18:43:29]SAM_PROTO_GetFieldsCounters done [18:43:29]requested_item shift.num is exist - process it [18:43:29]requested_item shift.opened is exist - process it [18:43:29]req_shift_opened [18:43:29]FM_GetShiftState [18:43:29]SAM_PROTO_GetShiftState [18:43:29]wFMCommunicate request_size=4 [18:43:29]MH_SAM_APDU [18:43:29]CAPDU: 80 13 01 00 [18:43:29]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [18:43:29]Write i2c OK [18:43:29]MH_I2C_Read... [18:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:29]Read from MH i2c: E2 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 0E 00 [18:43:29]MH_I2C_Read... [18:43:29]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [18:43:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:43:29]wFMCommunicate OK [18:43:29]SAM_PROTO_GetShiftState done [18:43:29]FM_GetShiftState done [18:43:29]req_shift_opened done [18:43:29]requested_item shift.open_date is exist - process it [18:43:29]req_shift_open_date [18:43:29]req_shift_open_date done [18:43:29]produce_requested_data done [18:43:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140341,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:43:29]process_action_free close_receipt [18:43:29]json_value_free [18:43:29]json_value_free done [18:43:29]process_json_proto returns [18:43:29]Send response to host [18:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140341,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:43:29]free response buf [18:43:29]execute_script done [18:43:29]execute_script returns [18:43:29]free content buf [18:43:29]Sock 10.Close socket [18:43:29]Sock 10.Thread stoped [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:14]accept exits with 7 [18:44:14]New connection [18:44:14]New thread 3067469156 created [18:44:14]Thread 3067612516 joined [18:44:14]Waiting for new connection... [18:44:14] Sock 7.Parse request [18:44:14]Sock 7.Check first char [18:44:14]Sock 7.First char is OK [18:44:14]request: POST /json_proto HTTP/1.0 [18:44:14]Method: POST [18:44:14]URL: /json_proto [18:44:14]Method is POST - this is cgi request [18:44:14]url: /json_proto [18:44:14]query_string will be loaded in cgi processing [18:44:14]execute_cgi json_proto POST (null) [18:44:14]execute_cgi path=json_proto method=POST [18:44:14]POST find Content-Length [18:44:14]Host: 172.17.45.67:8080 [18:44:14]Content-Length: 677 [18:44:14]Content-Type: application/json [18:44:14] [18:44:14]POST finish read [18:44:14]Found Content-Length = 677 [18:44:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:14]execute_script... [18:44: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)594200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:14]POST & json_proto [18:44:14]process_json_proto [18:44:14]json parsed OK: [18:44:14]protocol is kg_v1.0 [18:44:14]action value=close_receipt [18:44:14]process_action close_receipt [18:44:14]cmd_close_receipt [18:44:14]MH_GetDate [18:44:14]Write to MH i2c: F0 00 00 60 14 63 [18:44:14]Write i2c OK [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: F0 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: F0 09 00 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: F0 09 00 60 14 00 7F 35 C6 66 5F 7F 2B 66 BB [18:44:14]GetLastDocTimeStamp 1724265806 [18:44:14]current date 1724265855 [18:44:14]FM_GetShiftState [18:44:14]SAM_PROTO_GetShiftState [18:44:14]wFMCommunicate request_size=4 [18:44:14]MH_SAM_APDU [18:44:14]CAPDU: 80 13 01 00 [18:44:14]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [18:44:14]Write i2c OK [18:44:14]MH_I2C_Read... [18:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:14]Read from MH i2c: E2 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 0E 00 [18:44:14]MH_I2C_Read... [18:44:14]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [18:44:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:44:14]wFMCommunicate OK [18:44:14]SAM_PROTO_GetShiftState done [18:44:14]FM_GetShiftState done [18:44:14]opened in 1724200467 [18:44:14]opened+sec_in_day 1724286867 [18:44:14]quantity*price = 50010 [18:44:14]sum+1 = 50012 [18:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 359 21.08.2024 18:44 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140342 ФПД: 24768765767788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184415&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140342&fm=24768765767788&tin=02508201610067®Number=0000000000092569&sum=50000 [18:44:15]StoreToDocumentArchive [18:44:15]shift 454 fd 140342 [18:44:15]save to /storage/0454/doc_00140342 [18:44:15]save last doc name /storage/0454/doc_00140342 to /storage/kkm_last_doc_name [18:44:15]save OK [18:44:15]Clear old archive folders... [18:44:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:15]tlvbuf is B6FF6280 [18:44:15]SAM_PROTO_ClearQueue [18:44:15]wFMCommunicate request_size=4 [18:44:15]MH_SAM_APDU [18:44:15]CAPDU: 80 09 00 00 [18:44:15]Write to MH i2c: E2 08 00 6E 14 80 09 00 00 00 00 00 00 F4 [18:44:15]Write i2c OK [18:44:15]MH_I2C_Read... [18:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:15]Read from MH i2c: E2 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 03 00 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [18:44:15]RAPDU: 90 00 [18:44:15]wFMCommunicate OK [18:44:15]SAM_PROTO_ClearQueue done [18:44:15]KKMCreateOFDPacket [18:44:15]OFDProtocolAddRootSTLVToBuf [18:44:15]FM_MakeSignedData [18:44:15]FM_MakeSignedData [18:44:15]SAM_PROTO_SignData [18:44:15]wFMCommunicate request_size=4 [18:44:15]MH_SAM_APDU [18:44:15]CAPDU: 80 0D 01 02 [18:44:15]Write to MH i2c: E2 08 00 6F 14 80 0D 01 02 00 00 00 00 FC [18:44:15]Write i2c OK [18:44:15]MH_I2C_Read... [18:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:15]Read from MH i2c: E2 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 03 00 [18:44:15]MH_I2C_Read... [18:44:15]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [18:44:15]RAPDU: 90 00 [18:44:15]wFMCommunicate OK [18:44:15]wFMCommunicate request_size=255 [18:44:15]MH_SAM_APDU [18:44:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7F 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 24 02 00 35 04 06 00 16 [18:44:15]Write to MH i2c: E2 02 01 70 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7F 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 24 02 00 35 04 06 00 16 00 00 EE [18:44:15]Write i2c OK [18:44:15]MH_I2C_Read... [18:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:16]Read from MH i2c: E2 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 03 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [18:44:16]RAPDU: 90 00 [18:44:16]wFMCommunicate OK [18:44:16]wFMCommunicate request_size=10 [18:44:16]MH_SAM_APDU [18:44:16]CAPDU: 80 0D 02 02 05 86 ED 7C 30 6C [18:44:16]Write to MH i2c: E2 0D 00 71 14 80 0D 02 02 05 00 86 ED 7C 30 6C 00 00 94 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:16]Read from MH i2c: E2 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 03 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [18:44:16]RAPDU: 90 00 [18:44:16]wFMCommunicate OK [18:44:16]wFMCommunicate request_size=4 [18:44:16]MH_SAM_APDU [18:44:16]CAPDU: 80 0D 03 02 [18:44:16]Write to MH i2c: E2 08 00 72 14 80 0D 03 02 00 00 00 00 01 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:16]Read from MH i2c: E2 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 0B 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 0B 00 72 14 00 C5 8F F2 28 D9 9C E1 50 90 00 16 [18:44:16]RAPDU: C5 8F F2 28 D9 9C E1 50 90 00 [18:44:16]wFMCommunicate OK [18:44:16]SAM_PROTO_SignData done [18:44:16]FM_MakeSignedData done [18:44:16]CreateOFDProtocolMessage [18:44:16]wFMCommunicate request_size=4 [18:44:16]MH_SAM_APDU [18:44:16]CAPDU: 80 11 00 00 [18:44:16]Write to MH i2c: E2 08 00 73 14 80 11 00 00 00 00 00 00 01 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:16]Read from MH i2c: E2 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 17 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 17 00 73 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [18:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:16]wFMCommunicate OK [18:44:16]CreateOFDProtocolMessage done [18:44:16]OFDSenderStorePacket 140342 [18:44:16]StoreOFDPacket docnum=140342 [18:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C7 EB 07 01 D1 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7F 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 24 02 00 35 04 06 00 16 86 ED 7C 30 6C C5 8F F2 28 D9 9C E1 50 [18:44:16]CheckFolder [18:44:16]dirname=/storage/ofd_packets [18:44:16]CheckFolder done [18:44:16]ProducePacketName [18:44:16]name=ofd_packets/00140342 [18:44:16]NVStorageSaveData ofd_packets/00140342 [18:44:16]File name is /storage/ofd_packets/00140342 [18:44:16]Write 301 bytes [18:44:16]NVStorageSaveData done [18:44:16]OFDSenderStorePacket done [18:44:16]KKMCreateOFDPacket done [18:44:16]NVStorageSaveData kkm_last_timestamp [18:44:16]File name is /storage/kkm_last_timestamp [18:44:16]Write 4 bytes [18:44:16]NVStorageSaveData done [18:44:16]ExternCall_PrintAddStr [18:44:16]wPrintStart [18:44:16]Write to MH i2c: 01 00 00 74 14 88 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 07 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 07 00 74 14 00 00 00 00 00 FF 0F 9D [18:44:16]RasterBufferAndPrint [18:44:16]line Счет N : (1)594200 [18:44:16]line ИНН: 02508201610067 [18:44:16]line Контрольно-Кассовый Чек [18:44:16]line ПРОДАЖА [18:44:16]line ТРК (МРК, ГНК) : 51 [18:44:16]line Товар: 2710124500 [18:44:16]line Аи-95-К-5 [18:44:16]line 6.740 * 74.20 [18:44:16]line = 500.11 [18:44:16]line НДС 12% НСП 1% [18:44:16]line > о реализуемом товаре [18:44:16]line ОКРУГЛЕНИЕ: -0.11 [18:44:16]line ИТОГО: 500.00 [18:44:16]line Внесено: 500.00 [18:44:16]line СДАЧА: 0.00 [18:44:16]line НСП 1% : 4.43 [18:44:16]line НДС 12% : 53.11 [18:44:16]line Наличными: 500.00 [18:44:16]line Безнал.: 0.00 [18:44:16]line Место: АЗС № 136 "Партнер Нефть" [18:44:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:44:16]line СНО: Общий режим [18:44:16]line Чек 359 21.08.2024 18:44 [18:44:16]line Смена: 454 ФФД: 1.0 [18:44:16]line ЗНМ: 0300000067 [18:44:16]line РНМ: 0000000000092569 [18:44:16]line Версия ККМ: 001 [18:44:16]line ФМ: 0000000000871776 [18:44:16]line ФД: 140342 [18:44:16]line ФПД: 24768765767788 [18:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184415&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140342&fm=24768765767788&tin=02508201610067®Number=0000000000092569&sum=50000 [18:44:16]written 0, free lines is 4095 [18:44:16]OFD Sender: Processing packet 140342 [packets to send 137, broken 136] [18:44:16]ProducePacketName [18:44:16]name=ofd_packets/00140342 [18:44:16]OFD Sender: To server: pG, [18:44:16]CommunicateWithHost lk.salyk.kg:30040 [18:44:16]ConnectInit lk.salyk.kg [18:44:16]Connected sock=11 [18:44: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 37 36 0F 01 00 00 C7 EB 07 01 D1 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7F 35 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 24 02 00 35 04 06 00 16 86 ED 7C 30 6C C5 8F F2 28 D9 9C E1 50 [18:44: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 37 36 4F 00 00 00 D6 C6 47 00 1B 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 36 24 02 00 F4 03 04 00 0F DC C5 66 B6 04 01 00 00 AD 7A 0E BA F7 69 79 DD [18:44:16]CommunicateWithHost err = 0 [18:44:16]CheckOFDResponse [18:44:16]1017 (14) - 77093643461234 [18:44:16]1041 (16) - 0000000000871776 [18:44:16]1040 (4) - 140342 [18:44:16]1012 (4) - 21.08.2024 12:22 [18:44:16]1206 (1) - 0 [18:44:16]OFD Sender: Remove packet 140342 [18:44:16]ProducePacketName [18:44:16]name=ofd_packets/00140342 [18:44:16]NVStorageDeleteData [18:44:16]Write to MH i2c: 01 00 00 9F 14 B3 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 07 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 DC 0C A2 [18:44:16]RasterBufferAndPrint [18:44:16]line [18:44:16]line [18:44:16]line [18:44:16]line [18:44:16]line [18:44:16]written 0, free lines is 3298 [18:44:16]MH_Cut [18:44:16]Write to MH i2c: D1 01 00 A6 14 01 8C [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: D1 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: D1 01 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: D1 01 00 A6 14 00 8B [18:44:16]Write to MH i2c: 01 00 00 A7 14 BB [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:17]OFD Sender: No OFD packet to send [18:44:17]*** Cut start [18:44:17]*** Partial cut [18:44:17]*** CUTSNS_PIN = 1 [18:44:17]*** CUTSNS_PIN = 0 [18:44:17]*** Brake cut motor [18:44:18]Read from MH i2c: 01 [18:44:18]MH_I2C_Read... [18:44:18]*** Stop cut motor [18:44:18]*** Cut end [18:44:18]Read from MH i2c: 01 07 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: 01 07 00 A7 14 00 00 00 00 00 FF 0F D0 [18:44:18]process_action close_receipt done [18:44:18]requested_data is exist [18:44:18]produce_requested_data [18:44:18]requested_item fm.sn is exist - process it [18:44:18]wFMCommunicate request_size=4 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 11 00 00 [18:44:18]Write to MH i2c: E2 08 00 A8 14 80 11 00 00 00 00 00 00 36 [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 17 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 17 00 A8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8D [18:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:44:18]wFMCommunicate OK [18:44:18]requested_item fd.num is exist - process it [18:44:18]SAM_PROTO_GetFieldsCounters [18:44:18]wFMCommunicate request_size=4 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 13 00 00 [18:44:18]Write to MH i2c: E2 08 00 A9 14 80 13 00 00 00 00 00 00 39 [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 62 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 62 00 A9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 24 02 00 0E 04 04 00 C6 01 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 BF [18:44: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 36 24 02 00 0E 04 04 00 C6 01 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 [18:44:18]wFMCommunicate OK [18:44:18]SAM_PROTO_GetFieldsCounters done [18:44:18]requested_item shift.num is exist - process it [18:44:18]requested_item shift.opened is exist - process it [18:44:18]req_shift_opened [18:44:18]FM_GetShiftState [18:44:18]SAM_PROTO_GetShiftState [18:44:18]wFMCommunicate request_size=4 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 13 01 00 [18:44:18]Write to MH i2c: E2 08 00 AA 14 80 13 01 00 00 00 00 00 3B [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 0E 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 0E 00 AA 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BB [18:44:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:44:18]wFMCommunicate OK [18:44:18]SAM_PROTO_GetShiftState done [18:44:18]FM_GetShiftState done [18:44:18]req_shift_opened done [18:44:18]requested_item shift.open_date is exist - process it [18:44:18]req_shift_open_date [18:44:18]req_shift_open_date done [18:44:18]produce_requested_data done [18:44:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140342,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:44:18]process_action_free close_receipt [18:44:18]json_value_free [18:44:18]json_value_free done [18:44:18]process_json_proto returns [18:44:18]Send response to host [18:44:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140342,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:44:18]free response buf [18:44:18]execute_script done [18:44:18]execute_script returns [18:44:18]free content buf [18:44:18]Sock 7.Close socket [18:44:18]Sock 7.Thread stoped [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:41]accept exits with 9 [18:46:41]New connection [18:46:41]New thread 3067612516 created [18:46:41]Thread 3067469156 joined [18:46:41]Waiting for new connection... [18:46:41] Sock 9.Parse request [18:46:41]Sock 9.Check first char [18:46:41]Sock 9.First char is OK [18:46:41]request: POST /json_proto HTTP/1.0 [18:46:41]Method: POST [18:46:41]URL: /json_proto [18:46:41]Method is POST - this is cgi request [18:46:41]url: /json_proto [18:46:41]query_string will be loaded in cgi processing [18:46:41]execute_cgi json_proto POST (null) [18:46:41]execute_cgi path=json_proto method=POST [18:46:41]POST find Content-Length [18:46:41]Host: 172.17.45.67:8080 [18:46:41]Content-Length: 677 [18:46:41]Content-Type: application/json [18:46:41] [18:46:41]POST finish read [18:46:41]Found Content-Length = 677 [18:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:41]execute_script... [18:46:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:41]POST & json_proto [18:46:41]process_json_proto [18:46:41]json parsed OK: [18:46:41]protocol is kg_v1.0 [18:46:41]action value=close_receipt [18:46:41]process_action close_receipt [18:46:41]cmd_close_receipt [18:46:41]MH_GetDate [18:46:41]Write to MH i2c: F0 00 00 AB 14 AE [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: F0 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: F0 09 00 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: F0 09 00 AB 14 00 12 36 C6 66 5F 7F 2B 66 9A [18:46:41]GetLastDocTimeStamp 1724265855 [18:46:41]current date 1724266002 [18:46:41]FM_GetShiftState [18:46:41]SAM_PROTO_GetShiftState [18:46:41]wFMCommunicate request_size=4 [18:46:41]MH_SAM_APDU [18:46:41]CAPDU: 80 13 01 00 [18:46:41]Write to MH i2c: E2 08 00 AC 14 80 13 01 00 00 00 00 00 3D [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:41]Read from MH i2c: E2 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: E2 0E 00 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: E2 0E 00 AC 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [18:46:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:46:41]wFMCommunicate OK [18:46:41]SAM_PROTO_GetShiftState done [18:46:41]FM_GetShiftState done [18:46:41]opened in 1724200467 [18:46:41]opened+sec_in_day 1724286867 [18:46:41]quantity*price = 60003 [18:46:41]sum+1 = 60004 [18:46:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 360 21.08.2024 18:46 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140343 ФПД: 231449417303314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184642&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140343&fm=231449417303314&tin=02508201610067®Number=0000000000092569&sum=60000 [18:46:43]StoreToDocumentArchive [18:46:43]shift 454 fd 140343 [18:46:43]save to /storage/0454/doc_00140343 [18:46:43]save last doc name /storage/0454/doc_00140343 to /storage/kkm_last_doc_name [18:46:43]save OK [18:46:43]Clear old archive folders... [18:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:43]tlvbuf is 00CBFCD0 [18:46:43]SAM_PROTO_ClearQueue [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 09 00 00 [18:46:43]Write to MH i2c: E2 08 00 B9 14 80 09 00 00 00 00 00 00 3F [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [18:46:43]RAPDU: 90 00 [18:46:43]wFMCommunicate OK [18:46:43]SAM_PROTO_ClearQueue done [18:46:43]KKMCreateOFDPacket [18:46:43]OFDProtocolAddRootSTLVToBuf [18:46:43]FM_MakeSignedData [18:46:43]FM_MakeSignedData [18:46:43]SAM_PROTO_SignData [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 0D 01 02 [18:46:43]Write to MH i2c: E2 08 00 BA 14 80 0D 01 02 00 00 00 00 47 [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [18:46:43]RAPDU: 90 00 [18:46:43]wFMCommunicate OK [18:46:43]wFMCommunicate request_size=255 [18:46:43]MH_SAM_APDU [18:46: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 68 01 00 00 F4 03 04 00 12 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 24 02 00 35 04 06 00 D2 [18:46:43]Write to MH i2c: E2 02 01 BB 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 68 01 00 00 F4 03 04 00 12 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 24 02 00 35 04 06 00 D2 00 00 6A [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [18:46:43]RAPDU: 90 00 [18:46:43]wFMCommunicate OK [18:46:43]wFMCommunicate request_size=10 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 0D 02 02 05 80 84 4D 45 12 [18:46:43]Write to MH i2c: E2 0D 00 BC 14 80 0D 02 02 05 00 80 84 4D 45 12 00 00 FC [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 03 00 BC 14 00 90 00 44 [18:46:43]RAPDU: 90 00 [18:46:43]wFMCommunicate OK [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 0D 03 02 [18:46:43]Write to MH i2c: E2 08 00 BD 14 80 0D 03 02 00 00 00 00 4C [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0B 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0B 00 BD 14 00 D4 AA C4 D9 C1 1C 70 7D 90 00 32 [18:46:43]RAPDU: D4 AA C4 D9 C1 1C 70 7D 90 00 [18:46:43]wFMCommunicate OK [18:46:43]SAM_PROTO_SignData done [18:46:43]FM_MakeSignedData done [18:46:43]CreateOFDProtocolMessage [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 11 00 00 [18:46:43]Write to MH i2c: E2 08 00 BE 14 80 11 00 00 00 00 00 00 4C [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 17 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 17 00 BE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [18:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:46:43]wFMCommunicate OK [18:46:43]CreateOFDProtocolMessage done [18:46:43]OFDSenderStorePacket 140343 [18:46:43]StoreOFDPacket docnum=140343 [18:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 9D 78 07 01 2E 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 68 01 00 00 F4 03 04 00 12 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 24 02 00 35 04 06 00 D2 80 84 4D 45 12 D4 AA C4 D9 C1 1C 70 7D [18:46:43]CheckFolder [18:46:43]dirname=/storage/ofd_packets [18:46:43]CheckFolder done [18:46:43]ProducePacketName [18:46:43]name=ofd_packets/00140343 [18:46:43]NVStorageSaveData ofd_packets/00140343 [18:46:43]File name is /storage/ofd_packets/00140343 [18:46:43]Write 301 bytes [18:46:43]NVStorageSaveData done [18:46:43]OFDSenderStorePacket done [18:46:43]KKMCreateOFDPacket done [18:46:43]NVStorageSaveData kkm_last_timestamp [18:46:43]File name is /storage/kkm_last_timestamp [18:46:43]Write 4 bytes [18:46:43]NVStorageSaveData done [18:46:43]ExternCall_PrintAddStr [18:46:43]wPrintStart [18:46:43]Write to MH i2c: 01 00 00 BF 14 D3 [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: 01 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: 01 07 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: 01 07 00 BF 14 00 00 00 00 00 FF 0F E8 [18:46:43]RasterBufferAndPrint [18:46:43]line Счет N : (1)594201 [18:46:43]line ИНН: 02508201610067 [18:46:43]line Контрольно-Кассовый Чек [18:46:43]line ПРОДАЖА [18:46:43]line ТРК (МРК, ГНК) : 62 [18:46:43]line Товар: 2710124130 [18:46:43]line Аи-92-К-5 [18:46:43]line 8.850 * 67.80 [18:46:43]line = 600.03 [18:46:43]line НДС 12% НСП 1% [18:46:43]line > о реализуемом товаре [18:46:43]line ОКРУГЛЕНИЕ: -0.03 [18:46:43]line ИТОГО: 600.00 [18:46:43]line Внесено: 600.00 [18:46:43]line СДАЧА: 0.00 [18:46:43]line НСП 1% : 5.31 [18:46:43]line НДС 12% : 63.72 [18:46:43]line Наличными: 600.00 [18:46:43]line Безнал.: 0.00 [18:46:43]line Место: АЗС № 136 "Партнер Нефть" [18:46:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:46:43]line СНО: Общий режим [18:46:43]line Чек 360 21.08.2024 18:46 [18:46:43]line Смена: 454 ФФД: 1.0 [18:46:43]line ЗНМ: 0300000067 [18:46:43]line РНМ: 0000000000092569 [18:46:43]line Версия ККМ: 001 [18:46:43]line ФМ: 0000000000871776 [18:46:43]line ФД: 140343 [18:46:43]line ФПД: 231449417303314 [18:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184642&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140343&fm=231449417303314&tin=02508201610067®Number=0000000000092569&sum=60000 [18:46:43]OFD Sender: Processing packet 140343 [packets to send 137, broken 136] [18:46:43]ProducePacketName [18:46:43]name=ofd_packets/00140343 [18:46:43]OFD Sender: To server: pG, [18:46:43]CommunicateWithHost lk.salyk.kg:30040 [18:46:43]ConnectInit lk.salyk.kg [18:46:43]written 0, free lines is 4095 [18:46:44]Connected sock=10 [18: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 37 36 0F 01 00 00 9D 78 07 01 2E 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 68 01 00 00 F4 03 04 00 12 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 37 24 02 00 35 04 06 00 D2 80 84 4D 45 12 D4 AA C4 D9 C1 1C 70 7D [18: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 37 36 4F 00 00 00 D5 5F 47 00 BC 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 37 36 10 04 04 00 37 24 02 00 F4 03 04 00 A2 DC C5 66 B6 04 01 00 00 1A B2 D9 8C DA 49 85 31 [18:46:44]CommunicateWithHost err = 0 [18:46:44]CheckOFDResponse [18:46:44]1017 (14) - 77093643461234 [18:46:44]1041 (16) - 0000000000871776 [18:46:44]1040 (4) - 140343 [18:46:44]1012 (4) - 21.08.2024 12:25 [18:46:44]1206 (1) - 0 [18:46:44]OFD Sender: Remove packet 140343 [18:46:44]ProducePacketName [18:46:44]name=ofd_packets/00140343 [18:46:44]NVStorageDeleteData [18:46:44]Write to MH i2c: 01 00 00 EA 14 FE [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 07 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 D6 0C E7 [18:46:44]RasterBufferAndPrint [18:46:44]line [18:46:44]line [18:46:44]line [18:46:44]line [18:46:44]line [18:46:44]written 0, free lines is 3294 [18:46:44]MH_Cut [18:46:44]Write to MH i2c: D1 01 00 F1 14 01 D7 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: D1 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: D1 01 00 [18:46:44]MH_I2C_Read... [18:46:44]Read from MH i2c: D1 01 00 F1 14 00 D6 [18:46:44]Write to MH i2c: 01 00 00 F2 14 06 [18:46:44]Write i2c OK [18:46:44]MH_I2C_Read... [18:46:44]OFD Sender: No OFD packet to send [18:46:45]*** Cut start [18:46:45]*** Partial cut [18:46:45]*** CUTSNS_PIN = 1 [18:46:45]*** CUTSNS_PIN = 0 [18:46:45]*** Brake cut motor [18:46:45]Read from MH i2c: 01 [18:46:45]MH_I2C_Read... [18:46:45]*** Stop cut motor [18:46:45]*** Cut end [18:46:45]Read from MH i2c: 01 07 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 FF 0F 1B [18:46:45]process_action close_receipt done [18:46:45]requested_data is exist [18:46:45]produce_requested_data [18:46:45]requested_item fm.sn is exist - process it [18:46:45]wFMCommunicate request_size=4 [18:46:45]MH_SAM_APDU [18:46:45]CAPDU: 80 11 00 00 [18:46:45]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:45]Read from MH i2c: E2 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 17 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D8 [18:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:46:45]wFMCommunicate OK [18:46:45]requested_item fd.num is exist - process it [18:46:45]SAM_PROTO_GetFieldsCounters [18:46:45]wFMCommunicate request_size=4 [18:46:45]MH_SAM_APDU [18:46:45]CAPDU: 80 13 00 00 [18:46:45]Write to MH i2c: E2 08 00 F4 14 80 13 00 00 00 00 00 00 84 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:45]Read from MH i2c: E2 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 62 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 62 00 F4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 24 02 00 0E 04 04 00 C6 01 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 0E [18:46: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 37 24 02 00 0E 04 04 00 C6 01 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 [18:46:45]wFMCommunicate OK [18:46:45]SAM_PROTO_GetFieldsCounters done [18:46:45]requested_item shift.num is exist - process it [18:46:45]requested_item shift.opened is exist - process it [18:46:45]req_shift_opened [18:46:45]FM_GetShiftState [18:46:45]SAM_PROTO_GetShiftState [18:46:45]wFMCommunicate request_size=4 [18:46:45]MH_SAM_APDU [18:46:45]CAPDU: 80 13 01 00 [18:46:45]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [18:46:45]Write i2c OK [18:46:45]MH_I2C_Read... [18:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:45]Read from MH i2c: E2 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 0E 00 [18:46:45]MH_I2C_Read... [18:46:45]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 06 [18:46:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:46:45]wFMCommunicate OK [18:46:45]SAM_PROTO_GetShiftState done [18:46:45]FM_GetShiftState done [18:46:45]req_shift_opened done [18:46:45]requested_item shift.open_date is exist - process it [18:46:45]req_shift_open_date [18:46:45]req_shift_open_date done [18:46:45]produce_requested_data done [18:46:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140343,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:46:45]process_action_free close_receipt [18:46:45]json_value_free [18:46:45]json_value_free done [18:46:45]process_json_proto returns [18:46:45]Send response to host [18:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140343,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:46:45]free response buf [18:46:45]execute_script done [18:46:45]execute_script returns [18:46:45]free content buf [18:46:45]Sock 9.Close socket [18:46:45]Sock 9.Thread stoped [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:02]accept exits with 7 [18:48:02]New connection [18:48:02]New thread 3067469156 created [18:48:02]Thread 3067612516 joined [18:48:02]Waiting for new connection... [18:48:02] Sock 7.Parse request [18:48:02]Sock 7.Check first char [18:48:02]Sock 7.First char is OK [18:48:02]request: POST /json_proto HTTP/1.0 [18:48:02]Method: POST [18:48:02]URL: /json_proto [18:48:02]Method is POST - this is cgi request [18:48:02]url: /json_proto [18:48:02]query_string will be loaded in cgi processing [18:48:02]execute_cgi json_proto POST (null) [18:48:02]execute_cgi path=json_proto method=POST [18:48:02]POST find Content-Length [18:48:02]Host: 172.17.45.67:8080 [18:48:02]Content-Length: 819 [18:48:02]Content-Type: application/json [18:48:02] [18:48:02]POST finish read [18:48:02]Found Content-Length = 819 [18:48:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.020, "sum" : 950.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 950.00, "payments": [ { "type": 1, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:02]execute_script... [18: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)594202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.020, "sum" : 950.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 950.00, "payments": [ { "type": 1, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:02]POST & json_proto [18:48:02]process_json_proto [18:48:02]json parsed OK: [18:48:02]protocol is kg_v1.0 [18:48:02]action value=close_receipt [18:48:02]process_action close_receipt [18:48:02]cmd_close_receipt [18:48:02]MH_GetDate [18:48:02]Write to MH i2c: F0 00 00 F6 14 F9 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 09 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: F0 09 00 F6 14 00 63 36 C6 66 5F 7F 2B 66 36 [18:48:02]GetLastDocTimeStamp 1724266002 [18:48:02]current date 1724266083 [18:48:02]FM_GetShiftState [18:48:02]SAM_PROTO_GetShiftState [18:48:02]wFMCommunicate request_size=4 [18:48:02]MH_SAM_APDU [18:48:02]CAPDU: 80 13 01 00 [18:48:02]Write to MH i2c: E2 08 00 F7 14 80 13 01 00 00 00 00 00 88 [18:48:02]Write i2c OK [18:48:02]MH_I2C_Read... [18:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:02]Read from MH i2c: E2 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 0E 00 [18:48:02]MH_I2C_Read... [18:48:02]Read from MH i2c: E2 0E 00 F7 14 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 08 [18:48:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:48:02]wFMCommunicate OK [18:48:02]SAM_PROTO_GetShiftState done [18:48:02]FM_GetShiftState done [18:48:02]opened in 1724200467 [18:48:02]opened+sec_in_day 1724286867 [18:48:02]quantity*price = 95055 [18:48:02]sum+1 = 95057 [18:48:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 950.00 НСП 1% : 8.41 НДС 12% : 100.94 Наличными: 0.00 Безнал.: 950.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 361 21.08.2024 18:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140344 ФПД: 112047265011587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140344&fm=112047265011587&tin=02508201610067®Number=0000000000092569&sum=95000 [18:48:03]StoreToDocumentArchive [18:48:03]shift 454 fd 140344 [18:48:03]save to /storage/0454/doc_00140344 [18:48:03]save last doc name /storage/0454/doc_00140344 to /storage/kkm_last_doc_name [18:48:03]save OK [18:48:03]Clear old archive folders... [18:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:03]tlvbuf is 00C9FE60 [18:48:03]SAM_PROTO_ClearQueue [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 09 00 00 [18:48:03]Write to MH i2c: E2 08 00 04 15 80 09 00 00 00 00 00 00 8B [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_ClearQueue done [18:48:03]KKMCreateOFDPacket [18:48:03]OFDProtocolAddRootSTLVToBuf [18:48:03]FM_MakeSignedData [18:48:03]FM_MakeSignedData [18:48:03]SAM_PROTO_SignData [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 0D 01 02 [18:48:03]Write to MH i2c: E2 08 00 05 15 80 0D 01 02 00 00 00 00 93 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [18:48:03]RAPDU: 90 00 [18:48:03]wFMCommunicate OK [18:48:03]wFMCommunicate request_size=255 [18:48:03]MH_SAM_APDU [18:48: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 C4 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 63 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 24 02 00 35 04 06 00 65 [18:48:03]Write to MH i2c: E2 02 01 06 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 C4 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 63 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 24 02 00 35 04 06 00 65 00 00 AD [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 06 15 00 90 00 8F [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=10 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 02 02 05 E8 09 6D D7 83 [18:48:04]Write to MH i2c: E2 0D 00 07 15 80 0D 02 02 05 00 E8 09 6D D7 83 00 00 58 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 03 00 07 15 00 90 00 90 [18:48:04]RAPDU: 90 00 [18:48:04]wFMCommunicate OK [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 0D 03 02 [18:48:04]Write to MH i2c: E2 08 00 08 15 80 0D 03 02 00 00 00 00 98 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0B 00 08 15 00 77 A1 96 37 22 89 8F 3F 90 00 F7 [18:48:04]RAPDU: 77 A1 96 37 22 89 8F 3F 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_SignData done [18:48:04]FM_MakeSignedData done [18:48:04]CreateOFDProtocolMessage [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 11 00 00 [18:48:04]Write to MH i2c: E2 08 00 09 15 80 11 00 00 00 00 00 00 98 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 09 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EF [18:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:04]wFMCommunicate OK [18:48:04]CreateOFDProtocolMessage done [18:48:04]OFDSenderStorePacket 140344 [18:48:04]StoreOFDPacket docnum=140344 [18:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7B 1A 07 01 26 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 C4 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 63 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 24 02 00 35 04 06 00 65 E8 09 6D D7 83 77 A1 96 37 22 89 8F 3F [18:48:04]CheckFolder [18:48:04]dirname=/storage/ofd_packets [18:48:04]CheckFolder done [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00140344 [18:48:04]NVStorageSaveData ofd_packets/00140344 [18:48:04]File name is /storage/ofd_packets/00140344 [18:48:04]Write 301 bytes [18:48:04]NVStorageSaveData done [18:48:04]OFDSenderStorePacket done [18:48:04]KKMCreateOFDPacket done [18:48:04]NVStorageSaveData kkm_last_timestamp [18:48:04]File name is /storage/kkm_last_timestamp [18:48:04]Write 4 bytes [18:48:04]NVStorageSaveData done [18:48:04]ExternCall_PrintAddStr [18:48:04]wPrintStart [18:48:04]Write to MH i2c: 01 00 00 0A 15 1F [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [18:48:04]RasterBufferAndPrint [18:48:04]line Счет N : (1)594202 [18:48:04]line ИНН: 02508201610067 [18:48:04]line Контрольно-Кассовый Чек [18:48:04]line ПРОДАЖА [18:48:04]line ТРК (МРК, ГНК) : 52 [18:48:04]line Товар: 2710124130 [18:48:04]line Аи-92-К-5 [18:48:04]line 14.020 * 67.80 [18:48:04]line = 950.56 [18:48:04]line НДС 12% НСП 1% [18:48:04]line > о реализуемом товаре [18:48:04]line ОКРУГЛЕНИЕ: -0.56 [18:48:04]line ИТОГО: 950.00 [18:48:04]line НСП 1% : 8.41 [18:48:04]line НДС 12% : 100.94 [18:48:04]line Наличными: 0.00 [18:48:04]line Безнал.: 950.00 [18:48:04]line Место: АЗС № 136 "Партнер Нефть" [18:48:04]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:48:04]line СНО: Общий режим [18:48:04]line Чек 361 21.08.2024 18:48 [18:48:04]line Смена: 454 ФФД: 1.0 [18:48:04]line ЗНМ: 0300000067 [18:48:04]line РНМ: 0000000000092569 [18:48:04]line Версия ККМ: 001 [18:48:04]line Платежная система: O! деньги [18:48:04]line ФМ: 0000000000871776 [18:48:04]line ФД: 140344 [18:48:04]line ФПД: 112047265011587 [18:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184803&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140344&fm=112047265011587&tin=02508201610067®Number=0000000000092569&sum=95000 [18:48:04]written 0, free lines is 4095 [18:48:04]OFD Sender: Processing packet 140344 [packets to send 137, broken 136] [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00140344 [18:48:04]OFD Sender: To server: pG, [18:48:04]CommunicateWithHost lk.salyk.kg:30040 [18:48:04]ConnectInit lk.salyk.kg [18:48:04]Connected sock=10 [18: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 37 36 0F 01 00 00 7B 1A 07 01 26 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 C4 36 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 63 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 38 24 02 00 35 04 06 00 65 E8 09 6D D7 83 77 A1 96 37 22 89 8F 3F [18:48: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 37 36 4F 00 00 00 D7 E3 47 00 6A 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 37 36 10 04 04 00 38 24 02 00 F4 03 04 00 F3 DC C5 66 B6 04 01 00 00 79 A3 F5 09 69 92 43 0D [18:48:04]CommunicateWithHost err = 0 [18:48:04]CheckOFDResponse [18:48:04]1017 (14) - 77093643461234 [18:48:04]1041 (16) - 0000000000871776 [18:48:04]1040 (4) - 140344 [18:48:04]1012 (4) - 21.08.2024 12:26 [18:48:04]1206 (1) - 0 [18:48:04]OFD Sender: Remove packet 140344 [18:48:04]ProducePacketName [18:48:04]name=ofd_packets/00140344 [18:48:04]NVStorageDeleteData [18:48:05]Write to MH i2c: 01 00 00 35 15 4A [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 EC 0C 49 [18:48:05]RasterBufferAndPrint [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]line [18:48:05]written 0, free lines is 3314 [18:48:05]MH_Cut [18:48:05]Write to MH i2c: D1 01 00 3C 15 01 23 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 [18:48:05]MH_I2C_Read... [18:48:05]Read from MH i2c: D1 01 00 3C 15 00 22 [18:48:05]Write to MH i2c: 01 00 00 3D 15 52 [18:48:05]Write i2c OK [18:48:05]MH_I2C_Read... [18:48:05]OFD Sender: No OFD packet to send [18:48:05]*** Cut start [18:48:05]*** Partial cut [18:48:05]*** CUTSNS_PIN = 1 [18:48:05]*** CUTSNS_PIN = 0 [18:48:05]*** Brake cut motor [18:48:06]Read from MH i2c: 01 [18:48:06]MH_I2C_Read... [18:48:06]*** Stop cut motor [18:48:06]*** Cut end [18:48:06]Read from MH i2c: 01 07 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [18:48:06]process_action close_receipt done [18:48:06]requested_data is exist [18:48:06]produce_requested_data [18:48:06]requested_item fm.sn is exist - process it [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 11 00 00 [18:48:06]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [18:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:06]wFMCommunicate OK [18:48:06]requested_item fd.num is exist - process it [18:48:06]SAM_PROTO_GetFieldsCounters [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 00 00 [18:48:06]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 62 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 62 00 3F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 24 02 00 0E 04 04 00 C6 01 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 5E [18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 38 24 02 00 0E 04 04 00 C6 01 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 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetFieldsCounters done [18:48:06]requested_item shift.num is exist - process it [18:48:06]requested_item shift.opened is exist - process it [18:48:06]req_shift_opened [18:48:06]FM_GetShiftState [18:48:06]SAM_PROTO_GetShiftState [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 01 00 [18:48:06]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 52 [18:48:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetShiftState done [18:48:06]FM_GetShiftState done [18:48:06]req_shift_opened done [18:48:06]requested_item shift.open_date is exist - process it [18:48:06]req_shift_open_date [18:48:06]req_shift_open_date done [18:48:06]produce_requested_data done [18:48:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140344,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:48:06]process_action_free close_receipt [18:48:06]json_value_free [18:48:06]json_value_free done [18:48:06]process_json_proto returns [18:48:06]Send response to host [18:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140344,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:48:06]free response buf [18:48:06]execute_script done [18:48:06]execute_script returns [18:48:06]free content buf [18:48:06]Sock 7.Close socket [18:48:06]Sock 7.Thread stoped [18:48:06]accept exits with 9 [18:48:06]New connection [18:48:06]New thread 3067612516 created [18:48:06]Thread 3067469156 joined [18:48:06]Waiting for new connection... [18:48:06] Sock 9.Parse request [18:48:06]Sock 9.Check first char [18:48:06]Sock 9.First char is OK [18:48:06]request: POST /json_proto HTTP/1.0 [18:48:06]Method: POST [18:48:06]URL: /json_proto [18:48:06]Method is POST - this is cgi request [18:48:06]url: /json_proto [18:48:06]query_string will be loaded in cgi processing [18:48:06]execute_cgi json_proto POST (null) [18:48:06]execute_cgi path=json_proto method=POST [18:48:06]POST find Content-Length [18:48:06]Host: 172.17.45.67:8080 [18:48:06]Content-Length: 677 [18:48:06]Content-Type: application/json [18:48:06] [18:48:06]POST finish read [18:48:06]Found Content-Length = 677 [18:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:06]execute_script... [18:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:06]POST & json_proto [18:48:06]process_json_proto [18:48:06]json parsed OK: [18:48:06]protocol is kg_v1.0 [18:48:06]action value=close_receipt [18:48:06]process_action close_receipt [18:48:06]cmd_close_receipt [18:48:06]MH_GetDate [18:48:06]Write to MH i2c: F0 00 00 41 15 45 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 09 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: F0 09 00 41 15 00 67 36 C6 66 5F 7F 2B 66 86 [18:48:06]GetLastDocTimeStamp 1724266083 [18:48:06]current date 1724266087 [18:48:06]FM_GetShiftState [18:48:06]SAM_PROTO_GetShiftState [18:48:06]wFMCommunicate request_size=4 [18:48:06]MH_SAM_APDU [18:48:06]CAPDU: 80 13 01 00 [18:48:06]Write to MH i2c: E2 08 00 42 15 80 13 01 00 00 00 00 00 D4 [18:48:06]Write i2c OK [18:48:06]MH_I2C_Read... [18:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:06]Read from MH i2c: E2 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 [18:48:06]MH_I2C_Read... [18:48:06]Read from MH i2c: E2 0E 00 42 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 54 [18:48:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:48:06]wFMCommunicate OK [18:48:06]SAM_PROTO_GetShiftState done [18:48:06]FM_GetShiftState done [18:48:06]opened in 1724200467 [18:48:06]opened+sec_in_day 1724286867 [18:48:06]quantity*price = 20001 [18:48:06]sum+1 = 20002 [18:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 362 21.08.2024 18:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140345 ФПД: 120528446402848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184807&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140345&fm=120528446402848&tin=02508201610067®Number=0000000000092569&sum=20000 [18:48:08]StoreToDocumentArchive [18:48:08]shift 454 fd 140345 [18:48:08]save to /storage/0454/doc_00140345 [18:48:08]save last doc name /storage/0454/doc_00140345 to /storage/kkm_last_doc_name [18:48:08]save OK [18:48:08]Clear old archive folders... [18:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:08]tlvbuf is 00CD9D50 [18:48:08]SAM_PROTO_ClearQueue [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 09 00 00 [18:48:08]Write to MH i2c: E2 08 00 4F 15 80 09 00 00 00 00 00 00 D6 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_ClearQueue done [18:48:08]KKMCreateOFDPacket [18:48:08]OFDProtocolAddRootSTLVToBuf [18:48:08]FM_MakeSignedData [18:48:08]FM_MakeSignedData [18:48:08]SAM_PROTO_SignData [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 01 02 [18:48:08]Write to MH i2c: E2 08 00 50 15 80 0D 01 02 00 00 00 00 DE [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=255 [18:48:08]MH_SAM_APDU [18:48: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A 01 00 00 F4 03 04 00 67 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 24 02 00 35 04 06 00 6D [18:48:08]Write to MH i2c: E2 02 01 51 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A 01 00 00 F4 03 04 00 67 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 24 02 00 35 04 06 00 6D 00 00 30 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 51 15 00 90 00 DA [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=10 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 02 02 05 9E B7 3B B1 20 [18:48:08]Write to MH i2c: E2 0D 00 52 15 80 0D 02 02 05 00 9E B7 3B B1 20 00 00 4C [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 03 00 52 15 00 90 00 DB [18:48:08]RAPDU: 90 00 [18:48:08]wFMCommunicate OK [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 0D 03 02 [18:48:08]Write to MH i2c: E2 08 00 53 15 80 0D 03 02 00 00 00 00 E3 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0B 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 0B 00 53 15 00 59 06 AF D9 AE C0 95 A5 90 00 73 [18:48:08]RAPDU: 59 06 AF D9 AE C0 95 A5 90 00 [18:48:08]wFMCommunicate OK [18:48:08]SAM_PROTO_SignData done [18:48:08]FM_MakeSignedData done [18:48:08]CreateOFDProtocolMessage [18:48:08]wFMCommunicate request_size=4 [18:48:08]MH_SAM_APDU [18:48:08]CAPDU: 80 11 00 00 [18:48:08]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:08]Read from MH i2c: E2 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3A [18:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:08]wFMCommunicate OK [18:48:08]CreateOFDProtocolMessage done [18:48:08]OFDSenderStorePacket 140345 [18:48:08]StoreOFDPacket docnum=140345 [18:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E9 72 07 01 E4 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A 01 00 00 F4 03 04 00 67 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 24 02 00 35 04 06 00 6D 9E B7 3B B1 20 59 06 AF D9 AE C0 95 A5 [18:48:08]CheckFolder [18:48:08]dirname=/storage/ofd_packets [18:48:08]CheckFolder done [18:48:08]ProducePacketName [18:48:08]name=ofd_packets/00140345 [18:48:08]NVStorageSaveData ofd_packets/00140345 [18:48:08]File name is /storage/ofd_packets/00140345 [18:48:08]Write 301 bytes [18:48:08]NVStorageSaveData done [18:48:08]OFDSenderStorePacket done [18:48:08]KKMCreateOFDPacket done [18:48:08]NVStorageSaveData kkm_last_timestamp [18:48:08]File name is /storage/kkm_last_timestamp [18:48:08]Write 4 bytes [18:48:08]NVStorageSaveData done [18:48:08]ExternCall_PrintAddStr [18:48:08]wPrintStart [18:48:08]Write to MH i2c: 01 00 00 55 15 6A [18:48:08]Write i2c OK [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 [18:48:08]MH_I2C_Read... [18:48:08]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [18:48:08]RasterBufferAndPrint [18:48:08]line Счет N : (1)594203 [18:48:08]line ИНН: 02508201610067 [18:48:08]line Контрольно-Кассовый Чек [18:48:08]line ПРОДАЖА [18:48:08]line ТРК (МРК, ГНК) : 32 [18:48:08]line Товар: 2710124130 [18:48:08]line Аи-92-К-5 [18:48:08]line 2.950 * 67.80 [18:48:08]line = 200.01 [18:48:08]line НДС 12% НСП 1% [18:48:08]line > о реализуемом товаре [18:48:08]line ОКРУГЛЕНИЕ: -0.01 [18:48:08]line ИТОГО: 200.00 [18:48:08]line Внесено: 200.00 [18:48:08]line СДАЧА: 0.00 [18:48:08]line НСП 1% : 1.77 [18:48:08]line НДС 12% : 21.24 [18:48:08]line Наличными: 200.00 [18:48:08]line Безнал.: 0.00 [18:48:09]line Место: АЗС № 136 "Партнер Нефть" [18:48:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:48:09]line СНО: Общий режим [18:48:09]line Чек 362 21.08.2024 18:48 [18:48:09]line Смена: 454 ФФД: 1.0 [18:48:09]line ЗНМ: 0300000067 [18:48:09]line РНМ: 0000000000092569 [18:48:09]line Версия ККМ: 001 [18:48:09]line ФМ: 0000000000871776 [18:48:09]line ФД: 140345 [18:48:09]line ФПД: 120528446402848 [18:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T184807&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140345&fm=120528446402848&tin=02508201610067®Number=0000000000092569&sum=20000 [18:48:09]OFD Sender: Processing packet 140345 [packets to send 137, broken 136] [18:48:09]ProducePacketName [18:48:09]name=ofd_packets/00140345 [18:48:09]OFD Sender: To server: pG, [18:48:09]CommunicateWithHost lk.salyk.kg:30040 [18:48:09]ConnectInit lk.salyk.kg [18:48:09]written 0, free lines is 4095 [18:48:09]Connected sock=10 [18:48: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 37 36 0F 01 00 00 E9 72 07 01 E4 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6A 01 00 00 F4 03 04 00 67 36 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 39 24 02 00 35 04 06 00 6D 9E B7 3B B1 20 59 06 AF D9 AE C0 95 A5 [18:48:09]Write to MH i2c: 01 00 00 80 15 95 [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 07 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: 01 07 00 80 15 00 00 00 00 00 E0 0C 88 [18:48:09]RasterBufferAndPrint [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]line [18:48:09]written 0, free lines is 3308 [18:48:09]MH_Cut [18:48:09]Write to MH i2c: D1 01 00 87 15 01 6E [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 01 00 [18:48:09]MH_I2C_Read... [18:48:09]Read from MH i2c: D1 01 00 87 15 00 6D [18:48:09]Write to MH i2c: 01 00 00 88 15 9D [18:48:09]Write i2c OK [18:48:09]MH_I2C_Read... [18:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F0 A7 47 00 71 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 37 36 10 04 04 00 39 24 02 00 F4 03 04 00 F8 DC C5 66 B6 04 01 00 00 42 5D 03 3E 65 C9 84 3D [18:48:09]CommunicateWithHost err = 0 [18:48:09]CheckOFDResponse [18:48:09]1017 (14) - 77093643461234 [18:48:09]1041 (16) - 0000000000871776 [18:48:09]1040 (4) - 140345 [18:48:09]1012 (4) - 21.08.2024 12:26 [18:48:09]1206 (1) - 0 [18:48:09]OFD Sender: Remove packet 140345 [18:48:09]ProducePacketName [18:48:09]name=ofd_packets/00140345 [18:48:09]NVStorageDeleteData [18:48:10]OFD Sender: No OFD packet to send [18:48:10]*** Cut start [18:48:10]*** Partial cut [18:48:10]*** CUTSNS_PIN = 1 [18:48:10]*** CUTSNS_PIN = 0 [18:48:10]*** Brake cut motor [18:48:10]Read from MH i2c: 01 [18:48:11]MH_I2C_Read... [18:48:11]*** Stop cut motor [18:48:11]*** Cut end [18:48:11]Read from MH i2c: 01 07 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 FF 0F B2 [18:48:11]process_action close_receipt done [18:48:11]requested_data is exist [18:48:11]produce_requested_data [18:48:11]requested_item fm.sn is exist - process it [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 11 00 00 [18:48:11]Write to MH i2c: E2 08 00 89 15 80 11 00 00 00 00 00 00 18 [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 17 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 17 00 89 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6F [18:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:48:11]wFMCommunicate OK [18:48:11]requested_item fd.num is exist - process it [18:48:11]SAM_PROTO_GetFieldsCounters [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 13 00 00 [18:48:11]Write to MH i2c: E2 08 00 8A 15 80 13 00 00 00 00 00 00 1B [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 62 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 62 00 8A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 24 02 00 0E 04 04 00 C6 01 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 AD [18:48: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 39 24 02 00 0E 04 04 00 C6 01 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 [18:48:11]wFMCommunicate OK [18:48:11]SAM_PROTO_GetFieldsCounters done [18:48:11]requested_item shift.num is exist - process it [18:48:11]requested_item shift.opened is exist - process it [18:48:11]req_shift_opened [18:48:11]FM_GetShiftState [18:48:11]SAM_PROTO_GetShiftState [18:48:11]wFMCommunicate request_size=4 [18:48:11]MH_SAM_APDU [18:48:11]CAPDU: 80 13 01 00 [18:48:11]Write to MH i2c: E2 08 00 8B 15 80 13 01 00 00 00 00 00 1D [18:48:11]Write i2c OK [18:48:11]MH_I2C_Read... [18:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:11]Read from MH i2c: E2 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 0E 00 [18:48:11]MH_I2C_Read... [18:48:11]Read from MH i2c: E2 0E 00 8B 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9D [18:48:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:48:11]wFMCommunicate OK [18:48:11]SAM_PROTO_GetShiftState done [18:48:11]FM_GetShiftState done [18:48:11]req_shift_opened done [18:48:11]requested_item shift.open_date is exist - process it [18:48:11]req_shift_open_date [18:48:11]req_shift_open_date done [18:48:11]produce_requested_data done [18:48:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140345,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:48:11]process_action_free close_receipt [18:48:11]json_value_free [18:48:11]json_value_free done [18:48:11]process_json_proto returns [18:48:11]Send response to host [18:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140345,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:48:11]free response buf [18:48:11]execute_script done [18:48:11]execute_script returns [18:48:11]free content buf [18:48:11]Sock 9.Close socket [18:48:11]Sock 9.Thread stoped [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:19]accept exits with 7 [18:57:19]New connection [18:57:19]New thread 3067469156 created [18:57:19]Thread 3067612516 joined [18:57:19]Waiting for new connection... [18:57:19] Sock 7.Parse request [18:57:19]Sock 7.Check first char [18:57:19]Sock 7.First char is OK [18:57:19]request: POST /json_proto HTTP/1.0 [18:57:19]Method: POST [18:57:19]URL: /json_proto [18:57:19]Method is POST - this is cgi request [18:57:19]url: /json_proto [18:57:19]query_string will be loaded in cgi processing [18:57:19]execute_cgi json_proto POST (null) [18:57:19]execute_cgi path=json_proto method=POST [18:57:19]POST find Content-Length [18:57:19]Host: 172.17.45.67:8080 [18:57:19]Content-Length: 754 [18:57:19]Content-Type: application/json [18:57:19] [18:57:19]POST finish read [18:57:19]Found Content-Length = 754 [18:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:19]execute_script... [18:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30157244", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:19]POST & json_proto [18:57:19]process_json_proto [18:57:19]json parsed OK: [18:57:19]protocol is kg_v1.0 [18:57:19]action value=close_receipt [18:57:19]process_action close_receipt [18:57:19]cmd_close_receipt [18:57:19]MH_GetDate [18:57:19]Write to MH i2c: F0 00 00 8C 15 90 [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 09 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: F0 09 00 8C 15 00 90 38 C6 66 5F 7F 2B 66 FC [18:57:19]GetLastDocTimeStamp 1724266087 [18:57:19]current date 1724266640 [18:57:19]FM_GetShiftState [18:57:19]SAM_PROTO_GetShiftState [18:57:19]wFMCommunicate request_size=4 [18:57:19]MH_SAM_APDU [18:57:19]CAPDU: 80 13 01 00 [18:57:19]Write to MH i2c: E2 08 00 8D 15 80 13 01 00 00 00 00 00 1F [18:57:19]Write i2c OK [18:57:19]MH_I2C_Read... [18:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:19]Read from MH i2c: E2 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 [18:57:19]MH_I2C_Read... [18:57:19]Read from MH i2c: E2 0E 00 8D 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9F [18:57:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:57:19]wFMCommunicate OK [18:57:19]SAM_PROTO_GetShiftState done [18:57:19]FM_GetShiftState done [18:57:19]opened in 1724200467 [18:57:19]opened+sec_in_day 1724286867 [18:57:19]quantity*price = 0 [18:57:19]sum+1 = 1 [18:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 363 21.08.2024 18:57 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30157244 ФМ: 0000000000871776 ФД: 140346 ФПД: 227058641807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T185720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140346&fm=227058641807&tin=02508201610067®Number=0000000000092569&sum=0 [18:57:20]StoreToDocumentArchive [18:57:20]shift 454 fd 140346 [18:57:20]save to /storage/0454/doc_00140346 [18:57:20]save last doc name /storage/0454/doc_00140346 to /storage/kkm_last_doc_name [18:57:20]save OK [18:57:20]Clear old archive folders... [18:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:20]tlvbuf is 00C82E60 [18:57:20]SAM_PROTO_ClearQueue [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 09 00 00 [18:57:20]Write to MH i2c: E2 08 00 9A 15 80 09 00 00 00 00 00 00 21 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 03 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [18:57:20]RAPDU: 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_ClearQueue done [18:57:20]KKMCreateOFDPacket [18:57:20]OFDProtocolAddRootSTLVToBuf [18:57:20]FM_MakeSignedData [18:57:20]FM_MakeSignedData [18:57:20]SAM_PROTO_SignData [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 0D 01 02 [18:57:20]Write to MH i2c: E2 08 00 9B 15 80 0D 01 02 00 00 00 00 29 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 03 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 03 00 9B 15 00 90 00 24 [18:57:20]RAPDU: 90 00 [18:57:20]wFMCommunicate OK [18:57:20]wFMCommunicate request_size=255 [18:57:20]MH_SAM_APDU [18:57: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 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 6B 01 00 00 F4 03 04 00 90 38 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 24 02 00 35 04 06 00 00 [18:57:20]Write to MH i2c: E2 02 01 9C 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 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 6B 01 00 00 F4 03 04 00 90 38 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 24 02 00 35 04 06 00 00 00 00 32 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:21]OFD Sender: No OFD packet to send [18:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 9C 15 00 90 00 25 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=10 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 02 02 05 34 DD BF EB 8F [18:57:21]Write to MH i2c: E2 0D 00 9D 15 80 0D 02 02 05 00 34 DD BF EB 8F 00 00 80 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 03 00 9D 15 00 90 00 26 [18:57:21]RAPDU: 90 00 [18:57:21]wFMCommunicate OK [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 0D 03 02 [18:57:21]Write to MH i2c: E2 08 00 9E 15 80 0D 03 02 00 00 00 00 2E [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0B 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 0B 00 9E 15 00 4A B4 04 B6 E6 45 5B AE 90 00 1B [18:57:21]RAPDU: 4A B4 04 B6 E6 45 5B AE 90 00 [18:57:21]wFMCommunicate OK [18:57:21]SAM_PROTO_SignData done [18:57:21]FM_MakeSignedData done [18:57:21]CreateOFDProtocolMessage [18:57:21]wFMCommunicate request_size=4 [18:57:21]MH_SAM_APDU [18:57:21]CAPDU: 80 11 00 00 [18:57:21]Write to MH i2c: E2 08 00 9F 15 80 11 00 00 00 00 00 00 2E [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:21]Read from MH i2c: E2 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: E2 17 00 9F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [18:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:21]wFMCommunicate OK [18:57:21]CreateOFDProtocolMessage done [18:57:21]OFDSenderStorePacket 140346 [18:57:21]StoreOFDPacket docnum=140346 [18:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 88 3E 07 01 40 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 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 6B 01 00 00 F4 03 04 00 90 38 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 24 02 00 35 04 06 00 00 34 DD BF EB 8F 4A B4 04 B6 E6 45 5B AE [18:57:21]CheckFolder [18:57:21]dirname=/storage/ofd_packets [18:57:21]CheckFolder done [18:57:21]ProducePacketName [18:57:21]name=ofd_packets/00140346 [18:57:21]NVStorageSaveData ofd_packets/00140346 [18:57:21]File name is /storage/ofd_packets/00140346 [18:57:21]Write 301 bytes [18:57:21]NVStorageSaveData done [18:57:21]OFDSenderStorePacket done [18:57:21]KKMCreateOFDPacket done [18:57:21]NVStorageSaveData kkm_last_timestamp [18:57:21]File name is /storage/kkm_last_timestamp [18:57:21]Write 4 bytes [18:57:21]NVStorageSaveData done [18:57:21]ExternCall_PrintAddStr [18:57:21]wPrintStart [18:57:21]Write to MH i2c: 01 00 00 A0 15 B5 [18:57:21]Write i2c OK [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 07 00 [18:57:21]MH_I2C_Read... [18:57:21]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 FF 0F CA [18:57:21]RasterBufferAndPrint [18:57:21]line Счет N : (1)594204 [18:57:21]line ИНН: 02508201610067 [18:57:21]line Контрольно-Кассовый Чек [18:57:21]line ПРОДАЖА [18:57:21]line ТРК (МРК, ГНК) : 62 [18:57:21]line Товар: 2710124130 [18:57:21]line Аи-92-К-5 [18:57:21]line 20.000 * 0.00 [18:57:21]line = 0.00 [18:57:21]line НДС 12% НСП 1% [18:57:21]line > о реализуемом товаре [18:57:21]line ИТОГО: 0.00 [18:57:21]line НСП 1% : 0.00 [18:57:21]line НДС 12% : 0.00 [18:57:21]line Наличными: 0.00 [18:57:21]line Безнал.: 0.00 [18:57:21]line Место: АЗС № 136 "Партнер Нефть" [18:57:21]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [18:57:21]line СНО: Общий режим [18:57:21]line Чек 363 21.08.2024 18:57 [18:57:21]line Смена: 454 ФФД: 1.0 [18:57:21]line ЗНМ: 0300000067 [18:57:21]line РНМ: 0000000000092569 [18:57:21]line Версия ККМ: 001 [18:57:21]line Талоны: ТК ГПНА Online [18:57:21]line 30157244 [18:57:21]line ФМ: 0000000000871776 [18:57:21]line ФД: 140346 [18:57:21]line ФПД: 227058641807 [18:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T185720&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140346&fm=227058641807&tin=02508201610067®Number=0000000000092569&sum=0 [18:57:21]written 0, free lines is 4095 [18:57:21]OFD Sender: Processing packet 140346 [packets to send 137, broken 136] [18:57:21]ProducePacketName [18:57:21]name=ofd_packets/00140346 [18:57:21]OFD Sender: To server: pG, [18:57:21]CommunicateWithHost lk.salyk.kg:30040 [18:57:21]ConnectInit lk.salyk.kg [18:57:21]Connected sock=10 [18:57: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 37 36 0F 01 00 00 88 3E 07 01 40 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 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 6B 01 00 00 F4 03 04 00 90 38 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3A 24 02 00 35 04 06 00 00 34 DD BF EB 8F 4A B4 04 B6 E6 45 5B AE [18:57: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 37 36 4F 00 00 00 B9 F5 47 00 28 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 37 36 10 04 04 00 3A 24 02 00 F4 03 04 00 20 DF C5 66 B6 04 01 00 00 9E F1 D4 7E 5B 78 21 9E [18:57:22]CommunicateWithHost err = 0 [18:57:22]CheckOFDResponse [18:57:22]1017 (14) - 77093643461234 [18:57:22]1041 (16) - 0000000000871776 [18:57:22]1040 (4) - 140346 [18:57:22]1012 (4) - 21.08.2024 12:35 [18:57:22]1206 (1) - 0 [18:57:22]OFD Sender: Remove packet 140346 [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00140346 [18:57:22]NVStorageDeleteData [18:57:22]Write to MH i2c: 01 00 00 CA 15 DF [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: 01 07 00 CA 15 00 00 00 00 00 F2 0C E4 [18:57:22]RasterBufferAndPrint [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]line [18:57:22]written 0, free lines is 3320 [18:57:22]MH_Cut [18:57:22]Write to MH i2c: D1 01 00 D1 15 01 B8 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: D1 01 00 D1 15 00 B7 [18:57:22]Write to MH i2c: 01 00 00 D2 15 E7 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]OFD Sender: No OFD packet to send [18:57:22]*** Cut start [18:57:22]*** Partial cut [18:57:22]*** CUTSNS_PIN = 1 [18:57:22]*** CUTSNS_PIN = 0 [18:57:22]*** Brake cut motor [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [18:57:23]*** Stop cut motor [18:57:23]*** Cut end [18:57:23]Read from MH i2c: 01 07 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 07 00 D2 15 00 00 00 00 00 FF 0F FC [18:57:23]process_action close_receipt done [18:57:23]requested_data is exist [18:57:23]produce_requested_data [18:57:23]requested_item fm.sn is exist - process it [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 11 00 00 [18:57:23]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 17 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [18:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [18:57:23]wFMCommunicate OK [18:57:23]requested_item fd.num is exist - process it [18:57:23]SAM_PROTO_GetFieldsCounters [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 13 00 00 [18:57:23]Write to MH i2c: E2 08 00 D4 15 80 13 00 00 00 00 00 00 65 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 62 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 62 00 D4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 24 02 00 0E 04 04 00 C6 01 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 FB [18:57: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3A 24 02 00 0E 04 04 00 C6 01 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 [18:57:23]wFMCommunicate OK [18:57:23]SAM_PROTO_GetFieldsCounters done [18:57:23]requested_item shift.num is exist - process it [18:57:23]requested_item shift.opened is exist - process it [18:57:23]req_shift_opened [18:57:23]FM_GetShiftState [18:57:23]SAM_PROTO_GetShiftState [18:57:23]wFMCommunicate request_size=4 [18:57:23]MH_SAM_APDU [18:57:23]CAPDU: 80 13 01 00 [18:57:23]Write to MH i2c: E2 08 00 D5 15 80 13 01 00 00 00 00 00 67 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:23]Read from MH i2c: E2 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 0E 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: E2 0E 00 D5 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E7 [18:57:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [18:57:23]wFMCommunicate OK [18:57:23]SAM_PROTO_GetShiftState done [18:57:23]FM_GetShiftState done [18:57:23]req_shift_opened done [18:57:23]requested_item shift.open_date is exist - process it [18:57:23]req_shift_open_date [18:57:23]req_shift_open_date done [18:57:23]produce_requested_data done [18:57:23]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140346,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [18:57:23]process_action_free close_receipt [18:57:23]json_value_free [18:57:23]json_value_free done [18:57:23]process_json_proto returns [18:57:23]Send response to host [18:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140346,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [18:57:23]free response buf [18:57:23]execute_script done [18:57:23]execute_script returns [18:57:23]free content buf [18:57:23]Sock 7.Close socket [18:57:23]Sock 7.Thread stoped [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:10]int [19:00:10]Write to MH i2c: 01 00 00 D6 15 EB [19:00:10]*** FLAG_PRN_KEY set [19:00:10]Write i2c OK [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 D6 15 00 08 00 00 00 FF 0F 08 [19:00:10]state=0 [19:00:10]Key pressed [19:00:10]Feed [19:00:10]Write to MH i2c: D8 00 00 D7 15 C3 [19:00:10]Write i2c OK [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: D8 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: D8 01 00 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: D8 01 00 D7 15 00 C4 [19:00:10]int [19:00:10]Write to MH i2c: 01 00 00 D8 15 ED [19:00:10]Write i2c OK [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 D8 15 00 48 00 00 00 3C 00 78 [19:00:10]state=2 [19:00:10]Key pressed [19:00:10]int [19:00:10]Write to MH i2c: 01 00 00 D9 15 EE [19:00:10]*** FLAG_PRN_KEY reset [19:00:10]Write i2c OK [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 [19:00:10]MH_I2C_Read... [19:00:10]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 F5 0F F9 [19:00:10]state=2 [19:00:10]Stop feed [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:26]accept exits with 9 [19:01:26]New connection [19:01:26]New thread 3067612516 created [19:01:26]Thread 3067469156 joined [19:01:26]Waiting for new connection... [19:01:26] Sock 9.Parse request [19:01:26]Sock 9.Check first char [19:01:26]Sock 9.First char is OK [19:01:26]request: POST /json_proto HTTP/1.0 [19:01:26]Method: POST [19:01:26]URL: /json_proto [19:01:26]Method is POST - this is cgi request [19:01:26]url: /json_proto [19:01:26]query_string will be loaded in cgi processing [19:01:26]execute_cgi json_proto POST (null) [19:01:26]execute_cgi path=json_proto method=POST [19:01:26]POST find Content-Length [19:01:26]Host: 172.17.45.67:8080 [19:01:26]Content-Length: 682 [19:01:26]Content-Type: application/json [19:01:26] [19:01:26]POST finish read [19:01:26]Found Content-Length = 682 [19:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:26]execute_script... [19:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:26]POST & json_proto [19:01:26]process_json_proto [19:01:26]json parsed OK: [19:01:26]protocol is kg_v1.0 [19:01:26]action value=close_receipt [19:01:26]process_action close_receipt [19:01:26]cmd_close_receipt [19:01:26]MH_GetDate [19:01:26]Write to MH i2c: F0 00 00 DA 15 DE [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 09 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 09 00 DA 15 00 87 39 C6 66 5F 7F 2B 66 42 [19:01:26]GetLastDocTimeStamp 1724266640 [19:01:26]current date 1724266887 [19:01:26]FM_GetShiftState [19:01:26]SAM_PROTO_GetShiftState [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 13 01 00 [19:01:26]Write to MH i2c: E2 08 00 DB 15 80 13 01 00 00 00 00 00 6D [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 DB 15 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 ED [19:01:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:01:26]wFMCommunicate OK [19:01:26]SAM_PROTO_GetShiftState done [19:01:26]FM_GetShiftState done [19:01:26]opened in 1724200467 [19:01:26]opened+sec_in_day 1724286867 [19:01:26]quantity*price = 100021 [19:01:26]sum+1 = 100023 [19:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 364 21.08.2024 19:01 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140347 ФПД: 145859797184544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140347&fm=145859797184544&tin=02508201610067®Number=0000000000092569&sum=100000 [19:01:27]StoreToDocumentArchive [19:01:27]shift 454 fd 140347 [19:01:27]save to /storage/0454/doc_00140347 [19:01:27]save last doc name /storage/0454/doc_00140347 to /storage/kkm_last_doc_name [19:01:27]save OK [19:01:27]Clear old archive folders... [19:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:27]tlvbuf is 00C82750 [19:01:27]SAM_PROTO_ClearQueue [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 09 00 00 [19:01:27]Write to MH i2c: E2 08 00 E8 15 80 09 00 00 00 00 00 00 6F [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 E8 15 00 90 00 71 [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_ClearQueue done [19:01:27]KKMCreateOFDPacket [19:01:27]OFDProtocolAddRootSTLVToBuf [19:01:27]FM_MakeSignedData [19:01:27]FM_MakeSignedData [19:01:27]SAM_PROTO_SignData [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 01 02 [19:01:27]Write to MH i2c: E2 08 00 E9 15 80 0D 01 02 00 00 00 00 77 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=255 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 87 39 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 24 02 00 35 04 06 00 84 [19:01:27]Write to MH i2c: E2 02 01 EA 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 87 39 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 24 02 00 35 04 06 00 84 00 00 32 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [19:01:28]RAPDU: 90 00 [19:01:28]wFMCommunicate OK [19:01:28]wFMCommunicate request_size=10 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 0D 02 02 05 A8 A1 65 F0 20 [19:01:28]Write to MH i2c: E2 0D 00 EB 15 80 0D 02 02 05 00 A8 A1 65 F0 20 00 00 42 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [19:01:28]RAPDU: 90 00 [19:01:28]wFMCommunicate OK [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 0D 03 02 [19:01:28]Write to MH i2c: E2 08 00 EC 15 80 0D 03 02 00 00 00 00 7C [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0B 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0B 00 EC 15 00 8E 09 C8 D4 88 67 0E 2E 90 00 DB [19:01:28]RAPDU: 8E 09 C8 D4 88 67 0E 2E 90 00 [19:01:28]wFMCommunicate OK [19:01:28]SAM_PROTO_SignData done [19:01:28]FM_MakeSignedData done [19:01:28]CreateOFDProtocolMessage [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 11 00 00 [19:01:28]Write to MH i2c: E2 08 00 ED 15 80 11 00 00 00 00 00 00 7C [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 17 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 17 00 ED 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [19:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:01:28]wFMCommunicate OK [19:01:28]CreateOFDProtocolMessage done [19:01:28]OFDSenderStorePacket 140347 [19:01:28]StoreOFDPacket docnum=140347 [19:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 24 7F 07 01 A1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 87 39 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 24 02 00 35 04 06 00 84 A8 A1 65 F0 20 8E 09 C8 D4 88 67 0E 2E [19:01:28]CheckFolder [19:01:28]dirname=/storage/ofd_packets [19:01:28]CheckFolder done [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00140347 [19:01:28]NVStorageSaveData ofd_packets/00140347 [19:01:28]File name is /storage/ofd_packets/00140347 [19:01:28]Write 301 bytes [19:01:28]NVStorageSaveData done [19:01:28]OFDSenderStorePacket done [19:01:28]KKMCreateOFDPacket done [19:01:28]NVStorageSaveData kkm_last_timestamp [19:01:28]File name is /storage/kkm_last_timestamp [19:01:28]Write 4 bytes [19:01:28]NVStorageSaveData done [19:01:28]ExternCall_PrintAddStr [19:01:28]wPrintStart [19:01:28]Write to MH i2c: 01 00 00 EE 15 03 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 EE 15 00 00 00 00 00 FF 0F 18 [19:01:28]RasterBufferAndPrint [19:01:28]line Счет N : (1)594205 [19:01:28]line ИНН: 02508201610067 [19:01:28]line Контрольно-Кассовый Чек [19:01:28]line ПРОДАЖА [19:01:28]line ТРК (МРК, ГНК) : 41 [19:01:28]line Товар: 2710124500 [19:01:28]line Аи-95-К-5 [19:01:28]line 13.480 * 74.20 [19:01:28]line = 1000.22 [19:01:28]line НДС 12% НСП 1% [19:01:28]line > о реализуемом товаре [19:01:28]line ОКРУГЛЕНИЕ: -0.22 [19:01:28]line ИТОГО: 1000.00 [19:01:28]line Внесено: 1000.00 [19:01:28]line СДАЧА: 0.00 [19:01:28]line НСП 1% : 8.85 [19:01:28]line НДС 12% : 106.22 [19:01:28]line Наличными: 1000.00 [19:01:28]line Безнал.: 0.00 [19:01:28]line Место: АЗС № 136 "Партнер Нефть" [19:01:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:01:28]line СНО: Общий режим [19:01:28]line Чек 364 21.08.2024 19:01 [19:01:28]line Смена: 454 ФФД: 1.0 [19:01:28]line ЗНМ: 0300000067 [19:01:28]line РНМ: 0000000000092569 [19:01:28]line Версия ККМ: 001 [19:01:28]line ФМ: 0000000000871776 [19:01:28]line ФД: 140347 [19:01:28]line ФПД: 145859797184544 [19:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190127&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140347&fm=145859797184544&tin=02508201610067®Number=0000000000092569&sum=100000 [19:01:28]OFD Sender: Processing packet 140347 [packets to send 137, broken 136] [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00140347 [19:01:28]OFD Sender: To server: pG, [19:01:28]CommunicateWithHost lk.salyk.kg:30040 [19:01:28]ConnectInit lk.salyk.kg [19:01:28]written 0, free lines is 4095 [19:01:28]Connected sock=7 [19:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 24 7F 07 01 A1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 87 39 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3B 24 02 00 35 04 06 00 84 A8 A1 65 F0 20 8E 09 C8 D4 88 67 0E 2E [19:01:29]Write to MH i2c: 01 00 00 19 16 2F [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: 01 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: 01 07 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: 01 07 00 19 16 00 00 00 00 00 E3 0C 25 [19:01:29]RasterBufferAndPrint [19:01:29]line [19:01:29]line [19:01:29]line [19:01:29]line [19:01:29]line [19:01:29]written 0, free lines is 3305 [19:01:29]MH_Cut [19:01:29]Write to MH i2c: D1 01 00 20 16 01 08 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: D1 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: D1 01 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: D1 01 00 20 16 00 07 [19:01:29]Write to MH i2c: 01 00 00 21 16 37 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01: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 37 36 4F 00 00 00 18 D9 47 00 DE 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 37 36 10 04 04 00 3B 24 02 00 F4 03 04 00 17 E0 C5 66 B6 04 01 00 00 2A 82 5D EC 10 DB 08 14 [19:01:29]CommunicateWithHost err = 0 [19:01:29]CheckOFDResponse [19:01:29]1017 (14) - 77093643461234 [19:01:29]1041 (16) - 0000000000871776 [19:01:29]1040 (4) - 140347 [19:01:29]1012 (4) - 21.08.2024 12:39 [19:01:29]1206 (1) - 0 [19:01:29]OFD Sender: Remove packet 140347 [19:01:29]ProducePacketName [19:01:29]name=ofd_packets/00140347 [19:01:29]NVStorageDeleteData [19:01:29]OFD Sender: No OFD packet to send [19:01:29]*** Cut start [19:01:29]*** Partial cut [19:01:29]*** CUTSNS_PIN = 1 [19:01:29]*** CUTSNS_PIN = 0 [19:01:30]*** Brake cut motor [19:01:30]Read from MH i2c: 01 [19:01:30]MH_I2C_Read... [19:01:30]*** Stop cut motor [19:01:30]*** Cut end [19:01:30]Read from MH i2c: 01 07 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 21 16 00 00 00 00 00 FF 0F 4C [19:01:30]process_action close_receipt done [19:01:30]requested_data is exist [19:01:30]produce_requested_data [19:01:30]requested_item fm.sn is exist - process it [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 11 00 00 [19:01:30]Write to MH i2c: E2 08 00 22 16 80 11 00 00 00 00 00 00 B2 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 22 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [19:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:01:30]wFMCommunicate OK [19:01:30]requested_item fd.num is exist - process it [19:01:30]SAM_PROTO_GetFieldsCounters [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 13 00 00 [19:01:30]Write to MH i2c: E2 08 00 23 16 80 13 00 00 00 00 00 00 B5 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 62 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 62 00 23 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 24 02 00 0E 04 04 00 C6 01 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 4F [19:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3B 24 02 00 0E 04 04 00 C6 01 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 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_GetFieldsCounters done [19:01:30]requested_item shift.num is exist - process it [19:01:30]requested_item shift.opened is exist - process it [19:01:30]req_shift_opened [19:01:30]FM_GetShiftState [19:01:30]SAM_PROTO_GetShiftState [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 13 01 00 [19:01:30]Write to MH i2c: E2 08 00 24 16 80 13 01 00 00 00 00 00 B7 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0E 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0E 00 24 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 37 [19:01:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_GetShiftState done [19:01:30]FM_GetShiftState done [19:01:30]req_shift_opened done [19:01:30]requested_item shift.open_date is exist - process it [19:01:30]req_shift_open_date [19:01:30]req_shift_open_date done [19:01:30]produce_requested_data done [19:01:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140347,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:01:30]process_action_free close_receipt [19:01:30]json_value_free [19:01:30]json_value_free done [19:01:30]process_json_proto returns [19:01:30]Send response to host [19:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140347,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:01:30]free response buf [19:01:30]execute_script done [19:01:30]execute_script returns [19:01:30]free content buf [19:01:30]Sock 9.Close socket [19:01:30]Sock 9.Thread stoped [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:01]accept exits with 10 [19:07:01]New connection [19:07:01]New thread 3067469156 created [19:07:01]Thread 3067612516 joined [19:07:01]Waiting for new connection... [19:07:01] Sock 10.Parse request [19:07:01]Sock 10.Check first char [19:07:01]Sock 10.First char is OK [19:07:01]request: POST /json_proto HTTP/1.0 [19:07:01]Method: POST [19:07:01]URL: /json_proto [19:07:01]Method is POST - this is cgi request [19:07:01]url: /json_proto [19:07:01]query_string will be loaded in cgi processing [19:07:01]execute_cgi json_proto POST (null) [19:07:01]execute_cgi path=json_proto method=POST [19:07:01]POST find Content-Length [19:07:01]Host: 172.17.45.67:8080 [19:07:01]Content-Length: 682 [19:07:01]Content-Type: application/json [19:07:01] [19:07:01]POST finish read [19:07:01]Found Content-Length = 682 [19:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:01]execute_script... [19:07: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)594206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:01]POST & json_proto [19:07:01]process_json_proto [19:07:01]json parsed OK: [19:07:01]protocol is kg_v1.0 [19:07:01]action value=close_receipt [19:07:01]process_action close_receipt [19:07:01]cmd_close_receipt [19:07:01]MH_GetDate [19:07:01]Write to MH i2c: F0 00 00 25 16 2A [19:07:01]Write i2c OK [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: F0 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: F0 09 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: F0 09 00 25 16 00 D5 3A C6 66 5F 7F 2B 66 DD [19:07:01]GetLastDocTimeStamp 1724266887 [19:07:01]current date 1724267221 [19:07:01]FM_GetShiftState [19:07:01]SAM_PROTO_GetShiftState [19:07:01]wFMCommunicate request_size=4 [19:07:01]MH_SAM_APDU [19:07:01]CAPDU: 80 13 01 00 [19:07:01]Write to MH i2c: E2 08 00 26 16 80 13 01 00 00 00 00 00 B9 [19:07:01]Write i2c OK [19:07:01]MH_I2C_Read... [19:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:01]Read from MH i2c: E2 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 0E 00 [19:07:01]MH_I2C_Read... [19:07:01]Read from MH i2c: E2 0E 00 26 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 39 [19:07:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:07:01]wFMCommunicate OK [19:07:01]SAM_PROTO_GetShiftState done [19:07:01]FM_GetShiftState done [19:07:01]opened in 1724200467 [19:07:01]opened+sec_in_day 1724286867 [19:07:01]quantity*price = 200043 [19:07:01]sum+1 = 200044 [19:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 365 21.08.2024 19:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140348 ФПД: 271891390523275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140348&fm=271891390523275&tin=02508201610067®Number=0000000000092569&sum=200000 [19:07:02]StoreToDocumentArchive [19:07:02]shift 454 fd 140348 [19:07:02]save to /storage/0454/doc_00140348 [19:07:02]save last doc name /storage/0454/doc_00140348 to /storage/kkm_last_doc_name [19:07:02]save OK [19:07:02]Clear old archive folders... [19:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:02]tlvbuf is 00C95690 [19:07:02]SAM_PROTO_ClearQueue [19:07:02]wFMCommunicate request_size=4 [19:07:02]MH_SAM_APDU [19:07:02]CAPDU: 80 09 00 00 [19:07:02]Write to MH i2c: E2 08 00 33 16 80 09 00 00 00 00 00 00 BB [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 33 16 00 90 00 BD [19:07:02]RAPDU: 90 00 [19:07:02]wFMCommunicate OK [19:07:02]SAM_PROTO_ClearQueue done [19:07:02]KKMCreateOFDPacket [19:07:02]OFDProtocolAddRootSTLVToBuf [19:07:02]FM_MakeSignedData [19:07:02]FM_MakeSignedData [19:07:02]SAM_PROTO_SignData [19:07:02]wFMCommunicate request_size=4 [19:07:02]MH_SAM_APDU [19:07:02]CAPDU: 80 0D 01 02 [19:07:02]Write to MH i2c: E2 08 00 34 16 80 0D 01 02 00 00 00 00 C3 [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [19:07:02]RAPDU: 90 00 [19:07:02]wFMCommunicate OK [19:07:02]wFMCommunicate request_size=255 [19:07:02]MH_SAM_APDU [19:07: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 D5 3A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 24 02 00 35 04 06 00 F7 [19:07:02]Write to MH i2c: E2 02 01 35 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 D5 3A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 24 02 00 35 04 06 00 F7 00 00 CD [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [19:07:02]RAPDU: 90 00 [19:07:02]wFMCommunicate OK [19:07:02]wFMCommunicate request_size=10 [19:07:02]MH_SAM_APDU [19:07:02]CAPDU: 80 0D 02 02 05 48 A5 BF E7 8B [19:07:02]Write to MH i2c: E2 0D 00 36 16 80 0D 02 02 05 00 48 A5 BF E7 8B 00 00 EE [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [19:07:02]RAPDU: 90 00 [19:07:02]wFMCommunicate OK [19:07:02]wFMCommunicate request_size=4 [19:07:02]MH_SAM_APDU [19:07:02]CAPDU: 80 0D 03 02 [19:07:02]Write to MH i2c: E2 08 00 37 16 80 0D 03 02 00 00 00 00 C8 [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 0B 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 0B 00 37 16 00 74 F5 F9 09 B1 69 14 30 90 00 92 [19:07:02]RAPDU: 74 F5 F9 09 B1 69 14 30 90 00 [19:07:02]wFMCommunicate OK [19:07:02]SAM_PROTO_SignData done [19:07:02]FM_MakeSignedData done [19:07:02]CreateOFDProtocolMessage [19:07:02]wFMCommunicate request_size=4 [19:07:02]MH_SAM_APDU [19:07:02]CAPDU: 80 11 00 00 [19:07:02]Write to MH i2c: E2 08 00 38 16 80 11 00 00 00 00 00 00 C8 [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:02]Read from MH i2c: E2 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 17 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: E2 17 00 38 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [19:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:07:02]wFMCommunicate OK [19:07:02]CreateOFDProtocolMessage done [19:07:02]OFDSenderStorePacket 140348 [19:07:02]StoreOFDPacket docnum=140348 [19:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AD CC 07 01 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 D5 3A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 24 02 00 35 04 06 00 F7 48 A5 BF E7 8B 74 F5 F9 09 B1 69 14 30 [19:07:02]CheckFolder [19:07:02]dirname=/storage/ofd_packets [19:07:02]CheckFolder done [19:07:02]ProducePacketName [19:07:02]name=ofd_packets/00140348 [19:07:02]NVStorageSaveData ofd_packets/00140348 [19:07:02]File name is /storage/ofd_packets/00140348 [19:07:02]Write 301 bytes [19:07:02]NVStorageSaveData done [19:07:02]OFDSenderStorePacket done [19:07:02]KKMCreateOFDPacket done [19:07:02]NVStorageSaveData kkm_last_timestamp [19:07:02]File name is /storage/kkm_last_timestamp [19:07:02]Write 4 bytes [19:07:02]NVStorageSaveData done [19:07:02]OFD Sender: Processing packet 140348 [packets to send 137, broken 136] [19:07:02]ProducePacketName [19:07:02]name=ofd_packets/00140348 [19:07:02]OFD Sender: To server: pG, [19:07:02]CommunicateWithHost lk.salyk.kg:30040 [19:07:02]ConnectInit lk.salyk.kg [19:07:02]ExternCall_PrintAddStr [19:07:02]wPrintStart [19:07:02]Write to MH i2c: 01 00 00 39 16 4F [19:07:02]Write i2c OK [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: 01 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: 01 07 00 [19:07:02]MH_I2C_Read... [19:07:02]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 FF 0F 64 [19:07:02]RasterBufferAndPrint [19:07:02]line Счет N : (1)594206 [19:07:02]line ИНН: 02508201610067 [19:07:02]line Контрольно-Кассовый Чек [19:07:02]line ПРОДАЖА [19:07:02]line ТРК (МРК, ГНК) : 41 [19:07:02]line Товар: 2710124500 [19:07:02]line Аи-95-К-5 [19:07:02]line 26.960 * 74.20 [19:07:02]line = 2000.43 [19:07:02]line НДС 12% НСП 1% [19:07:02]line > о реализуемом товаре [19:07:02]line ОКРУГЛЕНИЕ: -0.43 [19:07:02]line ИТОГО: 2000.00 [19:07:02]line Внесено: 2000.00 [19:07:02]line СДАЧА: 0.00 [19:07:02]line НСП 1% : 17.70 [19:07:02]line НДС 12% : 212.43 [19:07:02]line Наличными: 2000.00 [19:07:02]line Безнал.: 0.00 [19:07:02]line Место: АЗС № 136 "Партнер Нефть" [19:07:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:07:02]line СНО: Общий режим [19:07:02]line Чек 365 21.08.2024 19:07 [19:07:02]line Смена: 454 ФФД: 1.0 [19:07:02]line ЗНМ: 0300000067 [19:07:02]line РНМ: 0000000000092569 [19:07:02]line Версия ККМ: 001 [19:07:02]line ФМ: 0000000000871776 [19:07:02]line ФД: 140348 [19:07:02]line ФПД: 271891390523275 [19:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190701&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140348&fm=271891390523275&tin=02508201610067®Number=0000000000092569&sum=200000 [19:07:03]Connected sock=11 [19:07: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 37 36 0F 01 00 00 AD CC 07 01 6E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 D5 3A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3C 24 02 00 35 04 06 00 F7 48 A5 BF E7 8B 74 F5 F9 09 B1 69 14 30 [19:07:03]written 0, free lines is 4095 [19:07: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 37 36 4F 00 00 00 D2 20 47 00 C2 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 37 36 10 04 04 00 3C 24 02 00 F4 03 04 00 65 E1 C5 66 B6 04 01 00 00 00 D2 77 53 4E 0D 34 88 [19:07:03]CommunicateWithHost err = 0 [19:07:03]CheckOFDResponse [19:07:03]1017 (14) - 77093643461234 [19:07:03]1041 (16) - 0000000000871776 [19:07:03]1040 (4) - 140348 [19:07:03]1012 (4) - 21.08.2024 12:45 [19:07:03]1206 (1) - 0 [19:07:03]OFD Sender: Remove packet 140348 [19:07:03]ProducePacketName [19:07:03]name=ofd_packets/00140348 [19:07:03]NVStorageDeleteData [19:07:03]Write to MH i2c: 01 00 00 64 16 7A [19:07:03]Write i2c OK [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: 01 [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: 01 07 00 [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: 01 07 00 64 16 00 00 00 00 00 DD 0C 6A [19:07:03]RasterBufferAndPrint [19:07:03]line [19:07:03]line [19:07:03]line [19:07:03]line [19:07:03]line [19:07:03]written 0, free lines is 3299 [19:07:03]MH_Cut [19:07:03]Write to MH i2c: D1 01 00 6B 16 01 53 [19:07:03]Write i2c OK [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: D1 [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: D1 01 00 [19:07:03]MH_I2C_Read... [19:07:03]Read from MH i2c: D1 01 00 6B 16 00 52 [19:07:03]Write to MH i2c: 01 00 00 6C 16 82 [19:07:03]Write i2c OK [19:07:03]MH_I2C_Read... [19:07:03]OFD Sender: No OFD packet to send [19:07:04]*** Cut start [19:07:04]*** Partial cut [19:07:04]*** CUTSNS_PIN = 1 [19:07:04]*** CUTSNS_PIN = 0 [19:07:04]*** Brake cut motor [19:07:04]Read from MH i2c: 01 [19:07:04]MH_I2C_Read... [19:07:04]*** Stop cut motor [19:07:04]*** Cut end [19:07:04]Read from MH i2c: 01 07 00 [19:07:04]MH_I2C_Read... [19:07:04]Read from MH i2c: 01 07 00 6C 16 00 00 00 00 00 FF 0F 97 [19:07:04]process_action close_receipt done [19:07:04]requested_data is exist [19:07:04]produce_requested_data [19:07:04]requested_item fm.sn is exist - process it [19:07:04]wFMCommunicate request_size=4 [19:07:04]MH_SAM_APDU [19:07:04]CAPDU: 80 11 00 00 [19:07:04]Write to MH i2c: E2 08 00 6D 16 80 11 00 00 00 00 00 00 FD [19:07:04]Write i2c OK [19:07:04]MH_I2C_Read... [19:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:04]Read from MH i2c: E2 [19:07:04]MH_I2C_Read... [19:07:04]Read from MH i2c: E2 17 00 [19:07:04]MH_I2C_Read... [19:07:04]Read from MH i2c: E2 17 00 6D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [19:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:07:04]wFMCommunicate OK [19:07:04]requested_item fd.num is exist - process it [19:07:04]SAM_PROTO_GetFieldsCounters [19:07:04]wFMCommunicate request_size=4 [19:07:04]MH_SAM_APDU [19:07:04]CAPDU: 80 13 00 00 [19:07:04]Write to MH i2c: E2 08 00 6E 16 80 13 00 00 00 00 00 00 00 [19:07:04]Write i2c OK [19:07:04]MH_I2C_Read... [19:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:05]Read from MH i2c: E2 [19:07:05]MH_I2C_Read... [19:07:05]Read from MH i2c: E2 62 00 [19:07:05]MH_I2C_Read... [19:07:05]Read from MH i2c: E2 62 00 6E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 24 02 00 0E 04 04 00 C6 01 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 9E [19:07: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3C 24 02 00 0E 04 04 00 C6 01 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 [19:07:05]wFMCommunicate OK [19:07:05]SAM_PROTO_GetFieldsCounters done [19:07:05]requested_item shift.num is exist - process it [19:07:05]requested_item shift.opened is exist - process it [19:07:05]req_shift_opened [19:07:05]FM_GetShiftState [19:07:05]SAM_PROTO_GetShiftState [19:07:05]wFMCommunicate request_size=4 [19:07:05]MH_SAM_APDU [19:07:05]CAPDU: 80 13 01 00 [19:07:05]Write to MH i2c: E2 08 00 6F 16 80 13 01 00 00 00 00 00 02 [19:07:05]Write i2c OK [19:07:05]MH_I2C_Read... [19:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:05]Read from MH i2c: E2 [19:07:05]MH_I2C_Read... [19:07:05]Read from MH i2c: E2 0E 00 [19:07:05]MH_I2C_Read... [19:07:05]Read from MH i2c: E2 0E 00 6F 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 82 [19:07:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:07:05]wFMCommunicate OK [19:07:05]SAM_PROTO_GetShiftState done [19:07:05]FM_GetShiftState done [19:07:05]req_shift_opened done [19:07:05]requested_item shift.open_date is exist - process it [19:07:05]req_shift_open_date [19:07:05]req_shift_open_date done [19:07:05]produce_requested_data done [19:07:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140348,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:07:05]process_action_free close_receipt [19:07:05]json_value_free [19:07:05]json_value_free done [19:07:05]process_json_proto returns [19:07:05]Send response to host [19:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140348,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:07:05]free response buf [19:07:05]execute_script done [19:07:05]execute_script returns [19:07:05]free content buf [19:07:05]Sock 10.Close socket [19:07:05]Sock 10.Thread stoped [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]accept exits with 7 [19:07:58]New connection [19:07:58]New thread 3067612516 created [19:07:58]Thread 3067469156 joined [19:07:58]Waiting for new connection... [19:07:58] Sock 7.Parse request [19:07:58]Sock 7.Check first char [19:07:58]Sock 7.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.45.67:8080 [19:07:58]Content-Length: 677 [19:07:58]Content-Type: application/json [19:07:58] [19:07:58]POST finish read [19:07:58]Found Content-Length = 677 [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)594208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.490, "sum" : 440.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.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)594208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.490, "sum" : 440.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.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 70 16 75 [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 70 16 00 0F 3B C6 66 5F 7F 2B 66 63 [19:07:58]GetLastDocTimeStamp 1724267221 [19:07:58]current date 1724267279 [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 71 16 80 13 01 00 00 00 00 00 04 [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 71 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 84 [19:07:58]RAPDU: 09 00 01 13 36 C5 66 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 1724200467 [19:07:58]opened+sec_in_day 1724286867 [19:07:58]quantity*price = 44002 [19:07:58]sum+1 = 44003 [19:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.89 НДС 12% : 46.73 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 366 21.08.2024 19:07 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140349 ФПД: 84623794241715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190759&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140349&fm=84623794241715&tin=02508201610067®Number=0000000000092569&sum=44000 [19:07:59]StoreToDocumentArchive [19:07:59]shift 454 fd 140349 [19:07:59]save to /storage/0454/doc_00140349 [19:07:59]save last doc name /storage/0454/doc_00140349 to /storage/kkm_last_doc_name [19:07:59]save OK [19:07:59]Clear old archive folders... [19:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:59]tlvbuf is 00C9F900 [19:07:59]SAM_PROTO_ClearQueue [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 09 00 00 [19:07:59]Write to MH i2c: E2 08 00 7E 16 80 09 00 00 00 00 00 00 06 [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]SAM_PROTO_ClearQueue done [19:07:59]KKMCreateOFDPacket [19:07:59]OFDProtocolAddRootSTLVToBuf [19:07:59]FM_MakeSignedData [19:07:59]FM_MakeSignedData [19:07:59]SAM_PROTO_SignData [19:07:59]wFMCommunicate request_size=4 [19:07:59]MH_SAM_APDU [19:07:59]CAPDU: 80 0D 01 02 [19:07:59]Write to MH i2c: E2 08 00 7F 16 80 0D 01 02 00 00 00 00 0E [19:07:59]Write i2c OK [19:07:59]MH_I2C_Read... [19:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:59]Read from MH i2c: E2 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 [19:07:59]MH_I2C_Read... [19:07:59]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [19:07:59]RAPDU: 90 00 [19:07:59]wFMCommunicate OK [19:07:59]wFMCommunicate request_size=255 [19:07:59]MH_SAM_APDU [19:07: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 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 0F 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 24 02 00 35 04 06 00 4C [19:07:59]Write to MH i2c: E2 02 01 80 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 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 0F 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 24 02 00 35 04 06 00 4C 00 00 02 [19:07:59]Write i2c OK [19:07:59]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 80 16 00 90 00 0A [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 F7 03 32 00 B3 [19:08:00]Write to MH i2c: E2 0D 00 81 16 80 0D 02 02 05 00 F7 03 32 00 B3 00 00 FA [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 81 16 00 90 00 0B [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 82 16 80 0D 03 02 00 00 00 00 13 [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 82 16 00 CA 1E A0 9E 29 20 82 5B 90 00 60 [19:08:00]RAPDU: CA 1E A0 9E 29 20 82 5B 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 83 16 80 11 00 00 00 00 00 00 13 [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 83 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [19:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:08:00]wFMCommunicate OK [19:08:00]CreateOFDProtocolMessage done [19:08:00]OFDSenderStorePacket 140349 [19:08:00]StoreOFDPacket docnum=140349 [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 37 36 0F 01 00 00 C1 50 07 01 62 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 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 0F 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 24 02 00 35 04 06 00 4C F7 03 32 00 B3 CA 1E A0 9E 29 20 82 5B [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/00140349 [19:08:00]NVStorageSaveData ofd_packets/00140349 [19:08:00]File name is /storage/ofd_packets/00140349 [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 84 16 9A [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 84 16 00 00 00 00 00 FF 0F AF [19:08:00]RasterBufferAndPrint [19:08:00]line Счет N : (1)594208 [19:08:00]line ИНН: 02508201610067 [19:08:00]line Контрольно-Кассовый Чек [19:08:00]line ПРОДАЖА [19:08:00]line ТРК (МРК, ГНК) : 52 [19:08:00]line Товар: 2710124130 [19:08:00]line Аи-92-К-5 [19:08:00]line 6.490 * 67.80 [19:08:00]line = 440.02 [19:08:00]line НДС 12% НСП 1% [19:08:00]line > о реализуемом товаре [19:08:00]line ОКРУГЛЕНИЕ: -0.02 [19:08:00]line ИТОГО: 440.00 [19:08:00]line Внесено: 440.00 [19:08:00]line СДАЧА: 0.00 [19:08:00]line НСП 1% : 3.89 [19:08:00]line НДС 12% : 46.73 [19:08:00]line Наличными: 440.00 [19:08:00]line Безнал.: 0.00 [19:08:00]line Место: АЗС № 136 "Партнер Нефть" [19:08:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:08:00]line СНО: Общий режим [19:08:00]line Чек 366 21.08.2024 19:07 [19:08:00]line Смена: 454 ФФД: 1.0 [19:08:00]line ЗНМ: 0300000067 [19:08:00]line РНМ: 0000000000092569 [19:08:00]line Версия ККМ: 001 [19:08:00]line ФМ: 0000000000871776 [19:08:00]line ФД: 140349 [19:08:00]line ФПД: 84623794241715 [19:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190759&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140349&fm=84623794241715&tin=02508201610067®Number=0000000000092569&sum=44000 [19:08:00]OFD Sender: Processing packet 140349 [packets to send 137, broken 136] [19:08:00]ProducePacketName [19:08:00]name=ofd_packets/00140349 [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:00]Connected sock=10 [19:08: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 37 36 0F 01 00 00 C1 50 07 01 62 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 5A 19 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E2 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 0F 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3D 24 02 00 35 04 06 00 4C F7 03 32 00 B3 CA 1E A0 9E 29 20 82 5B [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 37 36 4F 00 00 00 C6 8C 47 00 8F 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 37 36 10 04 04 00 3D 24 02 00 F4 03 04 00 9F E1 C5 66 B6 04 01 00 00 37 A8 CB AB C4 78 8D ED [19:08:01]CommunicateWithHost err = 0 [19:08:01]CheckOFDResponse [19:08:01]1017 (14) - 77093643461234 [19:08:01]1041 (16) - 0000000000871776 [19:08:01]1040 (4) - 140349 [19:08:01]1012 (4) - 21.08.2024 12:46 [19:08:01]1206 (1) - 0 [19:08:01]OFD Sender: Remove packet 140349 [19:08:01]ProducePacketName [19:08:01]name=ofd_packets/00140349 [19:08:01]NVStorageDeleteData [19:08:01]Write to MH i2c: 01 00 00 AF 16 C5 [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 AF 16 00 00 00 00 00 D0 0C A8 [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 3287 [19:08:01]MH_Cut [19:08:01]Write to MH i2c: D1 01 00 B6 16 01 9E [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 B6 16 00 9D [19:08:01]Write to MH i2c: 01 00 00 B7 16 CD [19:08:01]Write i2c OK [19:08:01]MH_I2C_Read... [19:08:01]OFD Sender: No OFD packet to send [19:08:01]*** Cut start [19:08:01]*** Partial cut [19:08:01]*** CUTSNS_PIN = 1 [19:08:01]*** CUTSNS_PIN = 0 [19:08:01]*** Brake cut motor [19:08:02]Read from MH i2c: 01 [19:08:02]MH_I2C_Read... [19:08:02]*** Stop cut motor [19:08:02]*** Cut end [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 B7 16 00 00 00 00 00 FF 0F E2 [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 B8 16 80 11 00 00 00 00 00 00 48 [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 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9F [19:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 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 B9 16 80 13 00 00 00 00 00 00 4B [19:08:02]Write i2c OK [19:08:02]MH_I2C_Read... [19:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:02]Read from MH i2c: E2 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 62 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 62 00 B9 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 24 02 00 0E 04 04 00 C6 01 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 ED [19:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3D 24 02 00 0E 04 04 00 C6 01 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 [19:08:02]wFMCommunicate OK [19:08:02]SAM_PROTO_GetFieldsCounters done [19:08:02]requested_item shift.num is exist - process it [19:08:02]requested_item shift.opened is exist - process it [19:08:02]req_shift_opened [19:08:02]FM_GetShiftState [19:08:02]SAM_PROTO_GetShiftState [19:08:02]wFMCommunicate request_size=4 [19:08:02]MH_SAM_APDU [19:08:02]CAPDU: 80 13 01 00 [19:08:02]Write to MH i2c: E2 08 00 BA 16 80 13 01 00 00 00 00 00 4D [19:08:02]Write i2c OK [19:08:02]MH_I2C_Read... [19:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:02]Read from MH i2c: E2 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 0E 00 [19:08:02]MH_I2C_Read... [19:08:02]Read from MH i2c: E2 0E 00 BA 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CD [19:08:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:08:02]wFMCommunicate OK [19:08:02]SAM_PROTO_GetShiftState done [19:08:02]FM_GetShiftState done [19:08:02]req_shift_opened done [19:08:02]requested_item shift.open_date is exist - process it [19:08:02]req_shift_open_date [19:08:02]req_shift_open_date done [19:08:02]produce_requested_data done [19:08:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140349,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:08:02]process_action_free close_receipt [19:08:02]json_value_free [19:08:02]json_value_free done [19:08:02]process_json_proto returns [19:08:02]Send response to host [19:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140349,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:08:02]free response buf [19:08:02]execute_script done [19:08:02]execute_script returns [19:08:02]free content buf [19:08:02]Sock 7.Close socket [19:08:02]Sock 7.Thread stoped [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:21]accept exits with 9 [19:08:21]New connection [19:08:21]New thread 3067469156 created [19:08:21]Thread 3067612516 joined [19:08:21]Waiting for new connection... [19:08:21] Sock 9.Parse request [19:08:21]Sock 9.Check first char [19:08:21]Sock 9.First char is OK [19:08:21]request: POST /json_proto HTTP/1.0 [19:08:21]Method: POST [19:08:21]URL: /json_proto [19:08:21]Method is POST - this is cgi request [19:08:21]url: /json_proto [19:08:21]query_string will be loaded in cgi processing [19:08:21]execute_cgi json_proto POST (null) [19:08:21]execute_cgi path=json_proto method=POST [19:08:21]POST find Content-Length [19:08:21]Host: 172.17.45.67:8080 [19:08:21]Content-Length: 754 [19:08:21]Content-Type: application/json [19:08:21] [19:08:21]POST finish read [19:08:21]Found Content-Length = 754 [19:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025052", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:21]execute_script... [19:08: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)594207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025052", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:21]POST & json_proto [19:08:21]process_json_proto [19:08:21]json parsed OK: [19:08:21]protocol is kg_v1.0 [19:08:21]action value=close_receipt [19:08:21]process_action close_receipt [19:08:21]cmd_close_receipt [19:08:21]MH_GetDate [19:08:21]Write to MH i2c: F0 00 00 BB 16 C0 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: F0 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: F0 09 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: F0 09 00 BB 16 00 26 3B C6 66 5F 7F 2B 66 C5 [19:08:21]GetLastDocTimeStamp 1724267279 [19:08:21]current date 1724267302 [19:08:21]FM_GetShiftState [19:08:21]SAM_PROTO_GetShiftState [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 13 01 00 [19:08:21]Write to MH i2c: E2 08 00 BC 16 80 13 01 00 00 00 00 00 4F [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 0E 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 0E 00 BC 16 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CF [19:08:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:08:21]wFMCommunicate OK [19:08:21]SAM_PROTO_GetShiftState done [19:08:21]FM_GetShiftState done [19:08:21]opened in 1724200467 [19:08:21]opened+sec_in_day 1724286867 [19:08:21]quantity*price = 0 [19:08:21]sum+1 = 1 [19:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 367 21.08.2024 19:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: ТК ГПНА Online 30025052 ФМ: 0000000000871776 ФД: 140350 ФПД: 5393154212590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140350&fm=5393154212590&tin=02508201610067®Number=0000000000092569&sum=0 [19:08:23]StoreToDocumentArchive [19:08:23]shift 454 fd 140350 [19:08:23]save to /storage/0454/doc_00140350 [19:08:23]save last doc name /storage/0454/doc_00140350 to /storage/kkm_last_doc_name [19:08:23]save OK [19:08:23]Clear old archive folders... [19:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:23]tlvbuf is 00C31D90 [19:08:23]SAM_PROTO_ClearQueue [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 09 00 00 [19:08:23]Write to MH i2c: E2 08 00 C9 16 80 09 00 00 00 00 00 00 51 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [19:08:23]RAPDU: 90 00 [19:08:23]wFMCommunicate OK [19:08:23]SAM_PROTO_ClearQueue done [19:08:23]KKMCreateOFDPacket [19:08:23]OFDProtocolAddRootSTLVToBuf [19:08:23]FM_MakeSignedData [19:08:23]FM_MakeSignedData [19:08:23]SAM_PROTO_SignData [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 0D 01 02 [19:08:23]Write to MH i2c: E2 08 00 CA 16 80 0D 01 02 00 00 00 00 59 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [19:08:23]RAPDU: 90 00 [19:08:23]wFMCommunicate OK [19:08:23]wFMCommunicate request_size=255 [19:08:23]MH_SAM_APDU [19:08: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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 26 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 24 02 00 35 04 06 00 04 [19:08:23]Write to MH i2c: E2 02 01 CB 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 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 26 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 24 02 00 35 04 06 00 04 00 00 A2 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [19:08:23]RAPDU: 90 00 [19:08:23]wFMCommunicate OK [19:08:23]wFMCommunicate request_size=10 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 0D 02 02 05 E7 B1 0A 82 EE [19:08:23]Write to MH i2c: E2 0D 00 CC 16 80 0D 02 02 05 00 E7 B1 0A 82 EE 00 00 78 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [19:08:23]RAPDU: 90 00 [19:08:23]wFMCommunicate OK [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 0D 03 02 [19:08:23]Write to MH i2c: E2 08 00 CD 16 80 0D 03 02 00 00 00 00 5E [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0B 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0B 00 CD 16 00 F8 0E 83 6D E5 2F AD 31 90 00 47 [19:08:23]RAPDU: F8 0E 83 6D E5 2F AD 31 90 00 [19:08:23]wFMCommunicate OK [19:08:23]SAM_PROTO_SignData done [19:08:23]FM_MakeSignedData done [19:08:23]CreateOFDProtocolMessage [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 11 00 00 [19:08:23]Write to MH i2c: E2 08 00 CE 16 80 11 00 00 00 00 00 00 5E [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 17 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 17 00 CE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [19:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:08:23]wFMCommunicate OK [19:08:23]CreateOFDProtocolMessage done [19:08:23]OFDSenderStorePacket 140350 [19:08:23]StoreOFDPacket docnum=140350 [19:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6E 3F 07 01 19 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 26 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 24 02 00 35 04 06 00 04 E7 B1 0A 82 EE F8 0E 83 6D E5 2F AD 31 [19:08:23]CheckFolder [19:08:23]dirname=/storage/ofd_packets [19:08:23]CheckFolder done [19:08:23]ProducePacketName [19:08:23]name=ofd_packets/00140350 [19:08:23]NVStorageSaveData ofd_packets/00140350 [19:08:23]File name is /storage/ofd_packets/00140350 [19:08:23]Write 301 bytes [19:08:23]NVStorageSaveData done [19:08:23]OFDSenderStorePacket done [19:08:23]KKMCreateOFDPacket done [19:08:23]NVStorageSaveData kkm_last_timestamp [19:08:23]File name is /storage/kkm_last_timestamp [19:08:23]Write 4 bytes [19:08:23]NVStorageSaveData done [19:08:23]ExternCall_PrintAddStr [19:08:23]wPrintStart [19:08:23]Write to MH i2c: 01 00 00 CF 16 E5 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: 01 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: 01 07 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [19:08:23]RasterBufferAndPrint [19:08:23]line Счет N : (1)594207 [19:08:23]line ИНН: 02508201610067 [19:08:23]line Контрольно-Кассовый Чек [19:08:23]line ПРОДАЖА [19:08:23]line ТРК (МРК, ГНК) : 62 [19:08:23]line Товар: 2710124130 [19:08:23]line Аи-92-К-5 [19:08:23]line 25.000 * 0.00 [19:08:23]line = 0.00 [19:08:23]line НДС 12% НСП 1% [19:08:23]line > о реализуемом товаре [19:08:23]line ИТОГО: 0.00 [19:08:23]line НСП 1% : 0.00 [19:08:23]line НДС 12% : 0.00 [19:08:23]line Наличными: 0.00 [19:08:23]line Безнал.: 0.00 [19:08:23]line Место: АЗС № 136 "Партнер Нефть" [19:08:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:08:23]line СНО: Общий режим [19:08:23]line Чек 367 21.08.2024 19:08 [19:08:23]line Смена: 454 ФФД: 1.0 [19:08:23]line ЗНМ: 0300000067 [19:08:23]line РНМ: 0000000000092569 [19:08:23]line Версия ККМ: 001 [19:08:23]line Талоны: ТК ГПНА Online [19:08:23]line 30025052 [19:08:23]line ФМ: 0000000000871776 [19:08:23]line ФД: 140350 [19:08:23]line ФПД: 5393154212590 [19:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190822&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140350&fm=5393154212590&tin=02508201610067®Number=0000000000092569&sum=0 [19:08:23]written 0, free lines is 4095 [19:08:23]OFD Sender: Processing packet 140350 [packets to send 137, broken 136] [19:08:23]ProducePacketName [19:08:23]name=ofd_packets/00140350 [19:08:23]OFD Sender: To server: pG, [19:08:23]CommunicateWithHost lk.salyk.kg:30040 [19:08:23]ConnectInit lk.salyk.kg [19:08:23]Connected sock=10 [19:08: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 37 36 0F 01 00 00 6E 3F 07 01 19 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 26 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 24 02 00 35 04 06 00 04 E7 B1 0A 82 EE F8 0E 83 6D E5 2F AD 31 [19:08:23]Write to MH i2c: 01 00 00 F9 16 0F [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: 01 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: 01 07 00 [19:08:24]MH_I2C_Read... [19:08: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 37 36 4F 00 00 00 0B 42 47 00 4C 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3E 24 02 00 F4 03 04 00 B6 E1 C5 66 B6 04 01 00 00 4D 0F 0A 25 3B B4 63 DA [19:08:24]CommunicateWithHost err = 0 [19:08:24]CheckOFDResponse [19:08:24]1017 (14) - 77093643461234 [19:08:24]1041 (16) - 0000000000871776 [19:08:24]1040 (4) - 140350 [19:08:24]1012 (4) - 21.08.2024 12:46 [19:08:24]1206 (1) - 0 [19:08:24]OFD Sender: Remove packet 140350 [19:08:24]ProducePacketName [19:08:24]name=ofd_packets/00140350 [19:08:24]NVStorageDeleteData [19:08:24]Read from MH i2c: 01 07 00 F9 16 00 00 00 00 00 D7 0C F9 [19:08:24]RasterBufferAndPrint [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]written 0, free lines is 3326 [19:08:24]MH_Cut [19:08:24]Write to MH i2c: D1 01 00 00 17 01 E9 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 01 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 01 00 00 17 00 E8 [19:08:24]Write to MH i2c: 01 00 00 01 17 18 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]OFD Sender: No OFD packet to send [19:08:24]*** Cut start [19:08:24]*** Partial cut [19:08:24]*** CUTSNS_PIN = 1 [19:08:24]*** CUTSNS_PIN = 0 [19:08:24]*** Brake cut motor [19:08:25]Read from MH i2c: 01 [19:08:25]MH_I2C_Read... [19:08:25]*** Stop cut motor [19:08:25]*** Cut end [19:08:25]Read from MH i2c: 01 07 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 01 17 00 00 00 00 00 FF 0F 2D [19:08:25]process_action close_receipt done [19:08:25]requested_data is exist [19:08:25]produce_requested_data [19:08:25]requested_item fm.sn is exist - process it [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 11 00 00 [19:08:25]Write to MH i2c: E2 08 00 02 17 80 11 00 00 00 00 00 00 93 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 02 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EA [19:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:08:25]wFMCommunicate OK [19:08:25]requested_item fd.num is exist - process it [19:08:25]SAM_PROTO_GetFieldsCounters [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 13 00 00 [19:08:25]Write to MH i2c: E2 08 00 03 17 80 13 00 00 00 00 00 00 96 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 62 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 62 00 03 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 24 02 00 0E 04 04 00 C6 01 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 3C [19:08: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3E 24 02 00 0E 04 04 00 C6 01 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 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_GetFieldsCounters done [19:08:25]requested_item shift.num is exist - process it [19:08:25]requested_item shift.opened is exist - process it [19:08:25]req_shift_opened [19:08:25]FM_GetShiftState [19:08:25]SAM_PROTO_GetShiftState [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 13 01 00 [19:08:25]Write to MH i2c: E2 08 00 04 17 80 13 01 00 00 00 00 00 98 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0E 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0E 00 04 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 18 [19:08:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_GetShiftState done [19:08:25]FM_GetShiftState done [19:08:25]req_shift_opened done [19:08:25]requested_item shift.open_date is exist - process it [19:08:25]req_shift_open_date [19:08:25]req_shift_open_date done [19:08:25]produce_requested_data done [19:08:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140350,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:08:25]process_action_free close_receipt [19:08:25]json_value_free [19:08:25]json_value_free done [19:08:25]process_json_proto returns [19:08:25]Send response to host [19:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140350,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:08:25]free response buf [19:08:25]execute_script done [19:08:25]execute_script returns [19:08:25]free content buf [19:08:25]Sock 9.Close socket [19:08:25]Sock 9.Thread stoped [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:22]accept exits with 7 [19:09:22]New connection [19:09:22]New thread 3067612516 created [19:09:22]Thread 3067469156 joined [19:09:22]Waiting for new connection... [19:09:22] Sock 7.Parse request [19:09:22]Sock 7.Check first char [19:09:22]Sock 7.First char is OK [19:09:22]request: POST /json_proto HTTP/1.0 [19:09:22]Method: POST [19:09:22]URL: /json_proto [19:09:22]Method is POST - this is cgi request [19:09:22]url: /json_proto [19:09:22]query_string will be loaded in cgi processing [19:09:22]execute_cgi json_proto POST (null) [19:09:22]execute_cgi path=json_proto method=POST [19:09:22]POST find Content-Length [19:09:22]Host: 172.17.45.67:8080 [19:09:22]Content-Length: 677 [19:09:22]Content-Type: application/json [19:09:22] [19:09:22]POST finish read [19:09:22]Found Content-Length = 677 [19:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:22]execute_script... [19:09:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:22]POST & json_proto [19:09:22]process_json_proto [19:09:22]json parsed OK: [19:09:22]protocol is kg_v1.0 [19:09:22]action value=close_receipt [19:09:22]process_action close_receipt [19:09:22]cmd_close_receipt [19:09:22]MH_GetDate [19:09:22]Write to MH i2c: F0 00 00 05 17 0B [19:09:22]Write i2c OK [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: F0 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: F0 09 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: F0 09 00 05 17 00 62 3B C6 66 5F 7F 2B 66 4C [19:09:22]GetLastDocTimeStamp 1724267302 [19:09:22]current date 1724267362 [19:09:22]FM_GetShiftState [19:09:22]SAM_PROTO_GetShiftState [19:09:22]wFMCommunicate request_size=4 [19:09:22]MH_SAM_APDU [19:09:22]CAPDU: 80 13 01 00 [19:09:22]Write to MH i2c: E2 08 00 06 17 80 13 01 00 00 00 00 00 9A [19:09:22]Write i2c OK [19:09:22]MH_I2C_Read... [19:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:22]Read from MH i2c: E2 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: E2 0E 00 [19:09:22]MH_I2C_Read... [19:09:22]Read from MH i2c: E2 0E 00 06 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1A [19:09:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:09:22]wFMCommunicate OK [19:09:22]SAM_PROTO_GetShiftState done [19:09:22]FM_GetShiftState done [19:09:22]opened in 1724200467 [19:09:22]opened+sec_in_day 1724286867 [19:09:22]quantity*price = 50036 [19:09:22]sum+1 = 50037 [19:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 368 21.08.2024 19:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140351 ФПД: 219416665206885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140351&fm=219416665206885&tin=02508201610067®Number=0000000000092569&sum=50000 [19:09:23]StoreToDocumentArchive [19:09:23]shift 454 fd 140351 [19:09:23]save to /storage/0454/doc_00140351 [19:09:23]save last doc name /storage/0454/doc_00140351 to /storage/kkm_last_doc_name [19:09:23]save OK [19:09:23]Clear old archive folders... [19:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:23]tlvbuf is B6FF6150 [19:09:23]SAM_PROTO_ClearQueue [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 09 00 00 [19:09:23]Write to MH i2c: E2 08 00 13 17 80 09 00 00 00 00 00 00 9C [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [19:09:23]RAPDU: 90 00 [19:09:23]wFMCommunicate OK [19:09:23]SAM_PROTO_ClearQueue done [19:09:23]KKMCreateOFDPacket [19:09:23]OFDProtocolAddRootSTLVToBuf [19:09:23]FM_MakeSignedData [19:09:23]FM_MakeSignedData [19:09:23]SAM_PROTO_SignData [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 0D 01 02 [19:09:23]Write to MH i2c: E2 08 00 14 17 80 0D 01 02 00 00 00 00 A4 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [19:09:23]RAPDU: 90 00 [19:09:23]wFMCommunicate OK [19:09:23]wFMCommunicate request_size=255 [19:09:23]MH_SAM_APDU [19: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 62 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 24 02 00 35 04 06 00 C7 [19:09:23]Write to MH i2c: E2 02 01 15 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 62 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 24 02 00 35 04 06 00 C7 00 00 5A [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [19:09:23]RAPDU: 90 00 [19:09:23]wFMCommunicate OK [19:09:23]wFMCommunicate request_size=10 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 0D 02 02 05 8E EC 63 30 65 [19:09:23]Write to MH i2c: E2 0D 00 16 17 80 0D 02 02 05 00 8E EC 63 30 65 00 00 23 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [19:09:23]RAPDU: 90 00 [19:09:23]wFMCommunicate OK [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 0D 03 02 [19:09:23]Write to MH i2c: E2 08 00 17 17 80 0D 03 02 00 00 00 00 A9 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 0B 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 0B 00 17 17 00 C2 B3 8B 96 E8 DD 19 2F 90 00 4D [19:09:23]RAPDU: C2 B3 8B 96 E8 DD 19 2F 90 00 [19:09:23]wFMCommunicate OK [19:09:23]SAM_PROTO_SignData done [19:09:23]FM_MakeSignedData done [19:09:23]CreateOFDProtocolMessage [19:09:23]wFMCommunicate request_size=4 [19:09:23]MH_SAM_APDU [19:09:23]CAPDU: 80 11 00 00 [19:09:23]Write to MH i2c: E2 08 00 18 17 80 11 00 00 00 00 00 00 A9 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:23]Read from MH i2c: E2 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 17 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: E2 17 00 18 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [19:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:09:23]wFMCommunicate OK [19:09:23]CreateOFDProtocolMessage done [19:09:23]OFDSenderStorePacket 140351 [19:09:23]StoreOFDPacket docnum=140351 [19:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 37 AF 07 01 03 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 62 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 24 02 00 35 04 06 00 C7 8E EC 63 30 65 C2 B3 8B 96 E8 DD 19 2F [19:09:23]CheckFolder [19:09:23]dirname=/storage/ofd_packets [19:09:23]CheckFolder done [19:09:23]ProducePacketName [19:09:23]name=ofd_packets/00140351 [19:09:23]NVStorageSaveData ofd_packets/00140351 [19:09:23]File name is /storage/ofd_packets/00140351 [19:09:23]Write 301 bytes [19:09:23]NVStorageSaveData done [19:09:23]OFDSenderStorePacket done [19:09:23]KKMCreateOFDPacket done [19:09:23]NVStorageSaveData kkm_last_timestamp [19:09:23]File name is /storage/kkm_last_timestamp [19:09:23]Write 4 bytes [19:09:23]NVStorageSaveData done [19:09:23]ExternCall_PrintAddStr [19:09:23]wPrintStart [19:09:23]Write to MH i2c: 01 00 00 19 17 30 [19:09:23]Write i2c OK [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: 01 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: 01 07 00 [19:09:23]MH_I2C_Read... [19:09:23]Read from MH i2c: 01 07 00 19 17 00 00 00 00 00 FF 0F 45 [19:09:23]RasterBufferAndPrint [19:09:23]line Счет N : (1)594209 [19:09:23]line ИНН: 02508201610067 [19:09:23]line Контрольно-Кассовый Чек [19:09:23]line ПРОДАЖА [19:09:23]line ТРК (МРК, ГНК) : 42 [19:09:23]line Товар: 2710124130 [19:09:23]line Аи-92-К-5 [19:09:23]line 7.380 * 67.80 [19:09:23]line = 500.36 [19:09:23]line НДС 12% НСП 1% [19:09:23]line > о реализуемом товаре [19:09:23]line ОКРУГЛЕНИЕ: -0.36 [19:09:23]line ИТОГО: 500.00 [19:09:23]line Внесено: 500.00 [19:09:23]line СДАЧА: 0.00 [19:09:23]line НСП 1% : 4.43 [19:09:23]line НДС 12% : 53.14 [19:09:23]line Наличными: 500.00 [19:09:23]line Безнал.: 0.00 [19:09:23]line Место: АЗС № 136 "Партнер Нефть" [19:09:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:09:23]line СНО: Общий режим [19:09:23]line Чек 368 21.08.2024 19:09 [19:09:23]line Смена: 454 ФФД: 1.0 [19:09:23]line ЗНМ: 0300000067 [19:09:23]line РНМ: 0000000000092569 [19:09:23]line Версия ККМ: 001 [19:09:23]line ФМ: 0000000000871776 [19:09:23]line ФД: 140351 [19:09:23]line ФПД: 219416665206885 [19:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T190922&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140351&fm=219416665206885&tin=02508201610067®Number=0000000000092569&sum=50000 [19:09:24]OFD Sender: Processing packet 140351 [packets to send 137, broken 136] [19:09:24]ProducePacketName [19:09:24]name=ofd_packets/00140351 [19:09:24]OFD Sender: To server: pG, [19:09:24]CommunicateWithHost lk.salyk.kg:30040 [19:09:24]ConnectInit lk.salyk.kg [19:09:24]written 0, free lines is 4095 [19:09:24]Connected sock=11 [19:09: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 37 36 0F 01 00 00 37 AF 07 01 03 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 62 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 24 02 00 35 04 06 00 C7 8E EC 63 30 65 C2 B3 8B 96 E8 DD 19 2F [19: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 37 36 4F 00 00 00 ED BA 47 00 3B C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 3F 24 02 00 F4 03 04 00 F3 E1 C5 66 B6 04 01 00 00 7A E3 B2 42 4A 73 75 21 [19:09:24]CommunicateWithHost err = 0 [19:09:24]CheckOFDResponse [19:09:24]1017 (14) - 77093643461234 [19:09:24]1041 (16) - 0000000000871776 [19:09:24]1040 (4) - 140351 [19:09:24]1012 (4) - 21.08.2024 12:47 [19:09:24]1206 (1) - 0 [19:09:24]OFD Sender: Remove packet 140351 [19:09:24]ProducePacketName [19:09:24]name=ofd_packets/00140351 [19:09:24]NVStorageDeleteData [19:09:24]Write to MH i2c: 01 00 00 44 17 5B [19:09:24]Write i2c OK [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: 01 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: 01 07 00 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: 01 07 00 44 17 00 00 00 00 00 D9 0C 47 [19:09:24]RasterBufferAndPrint [19:09:24]line [19:09:24]line [19:09:24]line [19:09:24]line [19:09:24]line [19:09:24]written 0, free lines is 3297 [19:09:24]MH_Cut [19:09:24]Write to MH i2c: D1 01 00 4B 17 01 34 [19:09:24]Write i2c OK [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: D1 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: D1 01 00 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: D1 01 00 4B 17 00 33 [19:09:24]Write to MH i2c: 01 00 00 4C 17 63 [19:09:24]Write i2c OK [19:09:24]MH_I2C_Read... [19:09:25]OFD Sender: No OFD packet to send [19:09:25]*** Cut start [19:09:25]*** Partial cut [19:09:25]*** CUTSNS_PIN = 1 [19:09:25]*** CUTSNS_PIN = 0 [19:09:25]*** Brake cut motor [19:09:25]Read from MH i2c: 01 [19:09:25]MH_I2C_Read... [19:09:25]*** Stop cut motor [19:09:25]*** Cut end [19:09:25]Read from MH i2c: 01 07 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 FF 0F 78 [19:09:25]process_action close_receipt done [19:09:25]requested_data is exist [19:09:25]produce_requested_data [19:09:25]requested_item fm.sn is exist - process it [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 11 00 00 [19:09:25]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:25]Read from MH i2c: E2 17 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 35 [19:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:09:25]wFMCommunicate OK [19:09:25]requested_item fd.num is exist - process it [19:09:25]SAM_PROTO_GetFieldsCounters [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 13 00 00 [19:09:25]Write to MH i2c: E2 08 00 4E 17 80 13 00 00 00 00 00 00 E1 [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 62 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 62 00 4E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 24 02 00 0E 04 04 00 C6 01 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 8B [19:09: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 3F 24 02 00 0E 04 04 00 C6 01 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 [19:09:26]wFMCommunicate OK [19:09:26]SAM_PROTO_GetFieldsCounters done [19:09:26]requested_item shift.num is exist - process it [19:09:26]requested_item shift.opened is exist - process it [19:09:26]req_shift_opened [19:09:26]FM_GetShiftState [19:09:26]SAM_PROTO_GetShiftState [19:09:26]wFMCommunicate request_size=4 [19:09:26]MH_SAM_APDU [19:09:26]CAPDU: 80 13 01 00 [19:09:26]Write to MH i2c: E2 08 00 4F 17 80 13 01 00 00 00 00 00 E3 [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0E 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0E 00 4F 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [19:09:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:09:26]wFMCommunicate OK [19:09:26]SAM_PROTO_GetShiftState done [19:09:26]FM_GetShiftState done [19:09:26]req_shift_opened done [19:09:26]requested_item shift.open_date is exist - process it [19:09:26]req_shift_open_date [19:09:26]req_shift_open_date done [19:09:26]produce_requested_data done [19:09:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140351,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:09:26]process_action_free close_receipt [19:09:26]json_value_free [19:09:26]json_value_free done [19:09:26]process_json_proto returns [19:09:26]Send response to host [19:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140351,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:09:26]free response buf [19:09:26]execute_script done [19:09:26]execute_script returns [19:09:26]free content buf [19:09:26]Sock 7.Close socket [19:09:26]Sock 7.Thread stoped [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:16]accept exits with 9 [19:10:16]New connection [19:10:16]New thread 3067469156 created [19:10:16]Thread 3067612516 joined [19:10:16]Waiting for new connection... [19:10:16] Sock 9.Parse request [19:10:16]Sock 9.Check first char [19:10:16]Sock 9.First char is OK [19:10:16]request: POST /json_proto HTTP/1.0 [19:10:16]Method: POST [19:10:16]URL: /json_proto [19:10:16]Method is POST - this is cgi request [19:10:16]url: /json_proto [19:10:16]query_string will be loaded in cgi processing [19:10:16]execute_cgi json_proto POST (null) [19:10:16]execute_cgi path=json_proto method=POST [19:10:16]POST find Content-Length [19:10:16]Host: 172.17.45.67:8080 [19:10:16]Content-Length: 682 [19:10:16]Content-Type: application/json [19:10:16] [19:10:16]POST finish read [19:10:16]Found Content-Length = 682 [19:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:16]execute_script... [19:10:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:16]POST & json_proto [19:10:16]process_json_proto [19:10:16]json parsed OK: [19:10:16]protocol is kg_v1.0 [19:10:16]action value=close_receipt [19:10:16]process_action close_receipt [19:10:16]cmd_close_receipt [19:10:16]MH_GetDate [19:10:16]Write to MH i2c: F0 00 00 50 17 56 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 09 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 09 00 50 17 00 98 3B C6 66 5F 7F 2B 66 CD [19:10:16]GetLastDocTimeStamp 1724267362 [19:10:16]current date 1724267416 [19:10:16]FM_GetShiftState [19:10:16]SAM_PROTO_GetShiftState [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 13 01 00 [19:10:16]Write to MH i2c: E2 08 00 51 17 80 13 01 00 00 00 00 00 E5 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:16]Read from MH i2c: E2 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 51 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 65 [19:10:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:10:16]wFMCommunicate OK [19:10:16]SAM_PROTO_GetShiftState done [19:10:16]FM_GetShiftState done [19:10:16]opened in 1724200467 [19:10:16]opened+sec_in_day 1724286867 [19:10:16]quantity*price = 100021 [19:10:16]sum+1 = 100023 [19:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 369 21.08.2024 19:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140352 ФПД: 40679450089784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191017&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140352&fm=40679450089784&tin=02508201610067®Number=0000000000092569&sum=100000 [19:10:17]StoreToDocumentArchive [19:10:17]shift 454 fd 140352 [19:10:17]save to /storage/0454/doc_00140352 [19:10:17]save last doc name /storage/0454/doc_00140352 to /storage/kkm_last_doc_name [19:10:17]save OK [19:10:17]Clear old archive folders... [19:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:17]tlvbuf is B6E49440 [19:10:17]SAM_PROTO_ClearQueue [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 09 00 00 [19:10:17]Write to MH i2c: E2 08 00 5E 17 80 09 00 00 00 00 00 00 E7 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 5E 17 00 90 00 E9 [19:10:17]RAPDU: 90 00 [19:10:17]wFMCommunicate OK [19:10:17]SAM_PROTO_ClearQueue done [19:10:17]KKMCreateOFDPacket [19:10:17]OFDProtocolAddRootSTLVToBuf [19:10:17]FM_MakeSignedData [19:10:17]FM_MakeSignedData [19:10:17]SAM_PROTO_SignData [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 0D 01 02 [19:10:17]Write to MH i2c: E2 08 00 5F 17 80 0D 01 02 00 00 00 00 EF [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [19:10:17]RAPDU: 90 00 [19:10:17]wFMCommunicate OK [19:10:17]wFMCommunicate request_size=255 [19:10:17]MH_SAM_APDU [19:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 99 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 24 02 00 35 04 06 00 24 [19:10:17]Write to MH i2c: E2 02 01 60 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 99 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 24 02 00 35 04 06 00 24 00 00 68 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [19:10:17]RAPDU: 90 00 [19:10:17]wFMCommunicate OK [19:10:17]wFMCommunicate request_size=10 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 0D 02 02 05 FF 6C 2C 19 38 [19:10:17]Write to MH i2c: E2 0D 00 61 17 80 0D 02 02 05 00 FF 6C 2C 19 38 00 00 E4 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [19:10:17]RAPDU: 90 00 [19:10:17]wFMCommunicate OK [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 0D 03 02 [19:10:17]Write to MH i2c: E2 08 00 62 17 80 0D 03 02 00 00 00 00 F4 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0B 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 0B 00 62 17 00 D8 DA F5 BB B9 89 BA D7 90 00 2A [19:10:17]RAPDU: D8 DA F5 BB B9 89 BA D7 90 00 [19:10:17]wFMCommunicate OK [19:10:17]SAM_PROTO_SignData done [19:10:17]FM_MakeSignedData done [19:10:17]CreateOFDProtocolMessage [19:10:17]wFMCommunicate request_size=4 [19:10:17]MH_SAM_APDU [19:10:17]CAPDU: 80 11 00 00 [19:10:17]Write to MH i2c: E2 08 00 63 17 80 11 00 00 00 00 00 00 F4 [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:17]Read from MH i2c: E2 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 17 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: E2 17 00 63 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [19:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:17]wFMCommunicate OK [19:10:17]CreateOFDProtocolMessage done [19:10:17]OFDSenderStorePacket 140352 [19:10:17]StoreOFDPacket docnum=140352 [19:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F 57 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 99 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 24 02 00 35 04 06 00 24 FF 6C 2C 19 38 D8 DA F5 BB B9 89 BA D7 [19:10:17]CheckFolder [19:10:17]dirname=/storage/ofd_packets [19:10:17]CheckFolder done [19:10:17]ProducePacketName [19:10:17]name=ofd_packets/00140352 [19:10:17]NVStorageSaveData ofd_packets/00140352 [19:10:17]File name is /storage/ofd_packets/00140352 [19:10:17]Write 301 bytes [19:10:17]NVStorageSaveData done [19:10:17]OFDSenderStorePacket done [19:10:17]KKMCreateOFDPacket done [19:10:17]NVStorageSaveData kkm_last_timestamp [19:10:17]File name is /storage/kkm_last_timestamp [19:10:17]Write 4 bytes [19:10:17]NVStorageSaveData done [19:10:17]ExternCall_PrintAddStr [19:10:17]wPrintStart [19:10:17]Write to MH i2c: 01 00 00 64 17 7B [19:10:17]Write i2c OK [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: 01 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: 01 07 00 [19:10:17]MH_I2C_Read... [19:10:17]Read from MH i2c: 01 07 00 64 17 00 00 00 00 00 FF 0F 90 [19:10:17]RasterBufferAndPrint [19:10:17]line Счет N : (1)594210 [19:10:17]line ИНН: 02508201610067 [19:10:17]line Контрольно-Кассовый Чек [19:10:17]line ПРОДАЖА [19:10:17]line ТРК (МРК, ГНК) : 51 [19:10:17]line Товар: 2710124500 [19:10:17]line Аи-95-К-5 [19:10:17]line 13.480 * 74.20 [19:10:17]line = 1000.22 [19:10:17]line НДС 12% НСП 1% [19:10:17]line > о реализуемом товаре [19:10:17]line ОКРУГЛЕНИЕ: -0.22 [19:10:17]line ИТОГО: 1000.00 [19:10:17]line Внесено: 1000.00 [19:10:17]line СДАЧА: 0.00 [19:10:17]line НСП 1% : 8.85 [19:10:17]line НДС 12% : 106.22 [19:10:17]line Наличными: 1000.00 [19:10:17]line Безнал.: 0.00 [19:10:17]line Место: АЗС № 136 "Партнер Нефть" [19:10:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:10:17]line СНО: Общий режим [19:10:17]line Чек 369 21.08.2024 19:10 [19:10:17]line Смена: 454 ФФД: 1.0 [19:10:17]line ЗНМ: 0300000067 [19:10:17]line РНМ: 0000000000092569 [19:10:17]line Версия ККМ: 001 [19:10:17]line ФМ: 0000000000871776 [19:10:17]line ФД: 140352 [19:10:17]line ФПД: 40679450089784 [19:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191017&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140352&fm=40679450089784&tin=02508201610067®Number=0000000000092569&sum=100000 [19:10:18]OFD Sender: Processing packet 140352 [packets to send 137, broken 136] [19:10:18]ProducePacketName [19:10:18]name=ofd_packets/00140352 [19:10:18]OFD Sender: To server: pG, [19:10:18]CommunicateWithHost lk.salyk.kg:30040 [19:10:18]ConnectInit lk.salyk.kg [19:10:18]written 0, free lines is 4095 [19:10:18]Connected sock=10 [19:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F 57 07 01 9D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 99 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 40 24 02 00 35 04 06 00 24 FF 6C 2C 19 38 D8 DA F5 BB B9 89 BA D7 [19:10: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 37 36 4F 00 00 00 BD 34 47 00 02 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 37 36 10 04 04 00 40 24 02 00 F4 03 04 00 29 E2 C5 66 B6 04 01 00 00 AF 9A 5A 10 8C 46 1A B7 [19:10:18]CommunicateWithHost err = 0 [19:10:18]CheckOFDResponse [19:10:18]1017 (14) - 77093643461234 [19:10:18]1041 (16) - 0000000000871776 [19:10:18]1040 (4) - 140352 [19:10:18]1012 (4) - 21.08.2024 12:48 [19:10:18]1206 (1) - 0 [19:10:18]OFD Sender: Remove packet 140352 [19:10:18]ProducePacketName [19:10:18]name=ofd_packets/00140352 [19:10:18]NVStorageDeleteData [19:10:18]Write to MH i2c: 01 00 00 8F 17 A6 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 07 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 07 00 8F 17 00 00 00 00 00 D2 0C 8B [19:10:18]RasterBufferAndPrint [19:10:18]line [19:10:18]line [19:10:18]line [19:10:18]line [19:10:18]line [19:10:18]written 0, free lines is 3287 [19:10:18]MH_Cut [19:10:18]Write to MH i2c: D1 01 00 96 17 01 7F [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: D1 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: D1 01 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: D1 01 00 96 17 00 7E [19:10:18]Write to MH i2c: 01 00 00 97 17 AE [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:19]OFD Sender: No OFD packet to send [19:10:19]*** Cut start [19:10:19]*** Partial cut [19:10:19]*** CUTSNS_PIN = 1 [19:10:19]*** CUTSNS_PIN = 0 [19:10:19]*** Brake cut motor [19:10:20]Read from MH i2c: 01 [19:10:20]MH_I2C_Read... [19:10:20]*** Stop cut motor [19:10:20]Read from MH i2c: 01 07 00 [19:10:20]MH_I2C_Read... [19:10:20]*** Cut end [19:10:20]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 FF 0F C3 [19:10:20]process_action close_receipt done [19:10:20]requested_data is exist [19:10:20]produce_requested_data [19:10:20]requested_item fm.sn is exist - process it [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 11 00 00 [19:10:20]Write to MH i2c: E2 08 00 98 17 80 11 00 00 00 00 00 00 29 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 17 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 17 00 98 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 80 [19:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:20]wFMCommunicate OK [19:10:20]requested_item fd.num is exist - process it [19:10:20]SAM_PROTO_GetFieldsCounters [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 13 00 00 [19:10:20]Write to MH i2c: E2 08 00 99 17 80 13 00 00 00 00 00 00 2C [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 62 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 62 00 99 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 24 02 00 0E 04 04 00 C6 01 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 DA [19:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 40 24 02 00 0E 04 04 00 C6 01 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 [19:10:20]wFMCommunicate OK [19:10:20]SAM_PROTO_GetFieldsCounters done [19:10:20]requested_item shift.num is exist - process it [19:10:20]requested_item shift.opened is exist - process it [19:10:20]req_shift_opened [19:10:20]FM_GetShiftState [19:10:20]SAM_PROTO_GetShiftState [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 13 01 00 [19:10:20]Write to MH i2c: E2 08 00 9A 17 80 13 01 00 00 00 00 00 2E [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 9A 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AE [19:10:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:10:20]wFMCommunicate OK [19:10:20]SAM_PROTO_GetShiftState done [19:10:20]FM_GetShiftState done [19:10:20]req_shift_opened done [19:10:20]requested_item shift.open_date is exist - process it [19:10:20]req_shift_open_date [19:10:20]req_shift_open_date done [19:10:20]produce_requested_data done [19:10:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140352,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:10:20]process_action_free close_receipt [19:10:20]json_value_free [19:10:20]json_value_free done [19:10:20]process_json_proto returns [19:10:20]Send response to host [19:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140352,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:10:20]free response buf [19:10:20]execute_script done [19:10:20]execute_script returns [19:10:20]free content buf [19:10:20]Sock 9.Close socket [19:10:20]Sock 9.Thread stoped [19:10:20]accept exits with 7 [19:10:20]New connection [19:10:20]New thread 3067612516 created [19:10:20]Thread 3067469156 joined [19:10:20]Waiting for new connection... [19:10:20] Sock 7.Parse request [19:10:20]Sock 7.Check first char [19:10:20]Sock 7.First char is OK [19:10:20]request: POST /json_proto HTTP/1.0 [19:10:20]Method: POST [19:10:20]URL: /json_proto [19:10:20]Method is POST - this is cgi request [19:10:20]url: /json_proto [19:10:20]query_string will be loaded in cgi processing [19:10:20]execute_cgi json_proto POST (null) [19:10:20]execute_cgi path=json_proto method=POST [19:10:20]POST find Content-Length [19:10:20]Host: 172.17.45.67:8080 [19:10:20]Content-Length: 687 [19:10:20]Content-Type: application/json [19:10:20] [19:10:20]POST finish read [19:10:20]Found Content-Length = 687 [19:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:10:20]execute_script... [19:10: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)594211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:10:20]POST & json_proto [19:10:20]process_json_proto [19:10:20]json parsed OK: [19:10:20]protocol is kg_v1.0 [19:10:20]action value=close_receipt [19:10:20]process_action close_receipt [19:10:20]cmd_close_receipt [19:10:20]MH_GetDate [19:10:20]Write to MH i2c: F0 00 00 9B 17 A1 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 09 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: F0 09 00 9B 17 00 9D 3B C6 66 5F 7F 2B 66 1D [19:10:20]GetLastDocTimeStamp 1724267417 [19:10:20]current date 1724267421 [19:10:20]FM_GetShiftState [19:10:20]SAM_PROTO_GetShiftState [19:10:20]wFMCommunicate request_size=4 [19:10:20]MH_SAM_APDU [19:10:20]CAPDU: 80 13 01 00 [19:10:20]Write to MH i2c: E2 08 00 9C 17 80 13 01 00 00 00 00 00 30 [19:10:20]Write i2c OK [19:10:20]MH_I2C_Read... [19:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:20]Read from MH i2c: E2 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 [19:10:20]MH_I2C_Read... [19:10:20]Read from MH i2c: E2 0E 00 9C 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B0 [19:10:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:10:20]wFMCommunicate OK [19:10:20]SAM_PROTO_GetShiftState done [19:10:20]FM_GetShiftState done [19:10:20]opened in 1724200467 [19:10:20]opened+sec_in_day 1724286867 [19:10:20]quantity*price = 100050 [19:10:20]sum+1 = 100052 [19:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 370 21.08.2024 19:10 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140353 ФПД: 93828895379531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191021&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140353&fm=93828895379531&tin=02508201610067®Number=0000000000092569&sum=100000 [19:10:22]StoreToDocumentArchive [19:10:22]shift 454 fd 140353 [19:10:22]save to /storage/0454/doc_00140353 [19:10:22]save last doc name /storage/0454/doc_00140353 to /storage/kkm_last_doc_name [19:10:22]save OK [19:10:22]Clear old archive folders... [19:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:10:22]tlvbuf is 00C32000 [19:10:22]SAM_PROTO_ClearQueue [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 09 00 00 [19:10:22]Write to MH i2c: E2 08 00 A9 17 80 09 00 00 00 00 00 00 32 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 A9 17 00 90 00 34 [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_ClearQueue done [19:10:22]KKMCreateOFDPacket [19:10:22]OFDProtocolAddRootSTLVToBuf [19:10:22]FM_MakeSignedData [19:10:22]FM_MakeSignedData [19:10:22]SAM_PROTO_SignData [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 01 02 [19:10:22]Write to MH i2c: E2 08 00 AA 17 80 0D 01 02 00 00 00 00 3A [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]wFMCommunicate request_size=255 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 72 01 00 00 F4 03 04 00 9D 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 24 02 00 35 04 06 00 [19:10:22]Write to MH i2c: E2 02 01 AB 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 72 01 00 00 F4 03 04 00 9D 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 24 02 00 35 04 06 00 00 00 56 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]wFMCommunicate request_size=11 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 02 02 06 55 56 3D FA 90 4B [19:10:22]Write to MH i2c: E2 0E 00 AC 17 80 0D 02 02 06 00 55 56 3D FA 90 4B 00 00 06 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [19:10:22]RAPDU: 90 00 [19:10:22]wFMCommunicate OK [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 0D 03 02 [19:10:22]Write to MH i2c: E2 08 00 AD 17 80 0D 03 02 00 00 00 00 3F [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0B 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0B 00 AD 17 00 4D B7 AD BB 47 64 89 1F 90 00 FF [19:10:22]RAPDU: 4D B7 AD BB 47 64 89 1F 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_SignData done [19:10:22]FM_MakeSignedData done [19:10:22]CreateOFDProtocolMessage [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 11 00 00 [19:10:22]Write to MH i2c: E2 08 00 AE 17 80 11 00 00 00 00 00 00 3F [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 AE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [19:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:22]wFMCommunicate OK [19:10:22]CreateOFDProtocolMessage done [19:10:22]OFDSenderStorePacket 140353 [19:10:22]StoreOFDPacket docnum=140353 [19:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 A8 A1 08 01 D3 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 72 01 00 00 F4 03 04 00 9D 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 24 02 00 35 04 06 00 55 56 3D FA 90 4B 4D B7 AD BB 47 64 89 1F [19:10:22]CheckFolder [19:10:22]dirname=/storage/ofd_packets [19:10:22]CheckFolder done [19:10:22]ProducePacketName [19:10:22]name=ofd_packets/00140353 [19:10:22]NVStorageSaveData ofd_packets/00140353 [19:10:22]File name is /storage/ofd_packets/00140353 [19:10:22]Write 302 bytes [19:10:22]NVStorageSaveData done [19:10:22]OFDSenderStorePacket done [19:10:22]KKMCreateOFDPacket done [19:10:22]NVStorageSaveData kkm_last_timestamp [19:10:22]File name is /storage/kkm_last_timestamp [19:10:22]Write 4 bytes [19:10:22]NVStorageSaveData done [19:10:22]ExternCall_PrintAddStr [19:10:22]wPrintStart [19:10:22]Write to MH i2c: 01 00 00 AF 17 C6 [19:10:22]OFD Sender: Processing packet 140353 [packets to send 137, broken 136] [19:10:22]ProducePacketName [19:10:22]name=ofd_packets/00140353 [19:10:22]OFD Sender: To server: pG, [19:10:22]CommunicateWithHost lk.salyk.kg:30040 [19:10:22]ConnectInit lk.salyk.kg [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 AF 17 00 00 00 00 00 FF 0F DB [19:10:22]RasterBufferAndPrint [19:10:22]line Счет N : (1)594211 [19:10:22]line ИНН: 02508201610067 [19:10:22]line Контрольно-Кассовый Чек [19:10:22]line ПРОДАЖА [19:10:22]line ТРК (МРК, ГНК) : 64 [19:10:22]line Товар: 2710194210 [19:10:22]line ДТ(л)-К-5 [19:10:22]line 13.130 * 76.20 [19:10:22]line = 1000.51 [19:10:22]line НДС 12% НСП 1% [19:10:22]line > о реализуемом товаре [19:10:22]line ОКРУГЛЕНИЕ: -0.51 [19:10:22]line ИТОГО: 1000.00 [19:10:22]line Внесено: 1000.00 [19:10:22]line СДАЧА: 0.00 [19:10:22]line НСП 1% : 8.85 [19:10:22]line НДС 12% : 106.25 [19:10:22]line Наличными: 1000.00 [19:10:22]line Безнал.: 0.00 [19:10:22]line Место: АЗС № 136 "Партнер Нефть" [19:10:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:10:22]line СНО: Общий режим [19:10:22]line Чек 370 21.08.2024 19:10 [19:10:22]line Смена: 454 ФФД: 1.0 [19:10:22]line ЗНМ: 0300000067 [19:10:22]line РНМ: 0000000000092569 [19:10:22]line Версия ККМ: 001 [19:10:22]line ФМ: 0000000000871776 [19:10:22]line ФД: 140353 [19:10:22]line ФПД: 93828895379531 [19:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191021&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140353&fm=93828895379531&tin=02508201610067®Number=0000000000092569&sum=100000 [19:10:22]written 0, free lines is 4095 [19:10:22]Connected sock=10 [19:10: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 37 36 10 01 00 00 A8 A1 08 01 D3 46 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 72 01 00 00 F4 03 04 00 9D 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 41 24 02 00 35 04 06 00 55 56 3D FA 90 4B 4D B7 AD BB 47 64 89 1F [19:10: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 37 36 4F 00 00 00 94 47 47 00 FD 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 37 36 10 04 04 00 41 24 02 00 F4 03 04 00 2D E2 C5 66 B6 04 01 00 00 C4 0E 0D 39 AD 34 C1 3D [19:10:23]CommunicateWithHost err = 0 [19:10:23]CheckOFDResponse [19:10:23]1017 (14) - 77093643461234 [19:10:23]1041 (16) - 0000000000871776 [19:10:23]1040 (4) - 140353 [19:10:23]1012 (4) - 21.08.2024 12:48 [19:10:23]1206 (1) - 0 [19:10:23]OFD Sender: Remove packet 140353 [19:10:23]ProducePacketName [19:10:23]name=ofd_packets/00140353 [19:10:23]NVStorageDeleteData [19:10:23]Write to MH i2c: 01 00 00 DA 17 F1 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 07 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 26 0D 2B [19:10:23]RasterBufferAndPrint [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]line [19:10:23]written 0, free lines is 3374 [19:10:23]MH_Cut [19:10:23]Write to MH i2c: D1 01 00 E1 17 01 CA [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 01 00 [19:10:23]MH_I2C_Read... [19:10:23]Read from MH i2c: D1 01 00 E1 17 00 C9 [19:10:23]Write to MH i2c: 01 00 00 E2 17 F9 [19:10:23]Write i2c OK [19:10:23]MH_I2C_Read... [19:10:23]OFD Sender: No OFD packet to send [19:10:23]*** Cut start [19:10:23]*** Partial cut [19:10:23]*** CUTSNS_PIN = 1 [19:10:24]*** CUTSNS_PIN = 0 [19:10:24]*** Brake cut motor [19:10:24]Read from MH i2c: 01 [19:10:24]MH_I2C_Read... [19:10:24]*** Stop cut motor [19:10:24]*** Cut end [19:10:24]Read from MH i2c: 01 07 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 FF 0F 0E [19:10:24]process_action close_receipt done [19:10:24]requested_data is exist [19:10:24]produce_requested_data [19:10:24]requested_item fm.sn is exist - process it [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 11 00 00 [19:10:24]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CB [19:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:10:24]wFMCommunicate OK [19:10:24]requested_item fd.num is exist - process it [19:10:24]SAM_PROTO_GetFieldsCounters [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 13 00 00 [19:10:24]Write to MH i2c: E2 08 00 E4 17 80 13 00 00 00 00 00 00 77 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 62 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 62 00 E4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 24 02 00 0E 04 04 00 C6 01 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 29 [19:10: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 41 24 02 00 0E 04 04 00 C6 01 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 [19:10:24]wFMCommunicate OK [19:10:24]SAM_PROTO_GetFieldsCounters done [19:10:24]requested_item shift.num is exist - process it [19:10:24]requested_item shift.opened is exist - process it [19:10:24]req_shift_opened [19:10:24]FM_GetShiftState [19:10:24]SAM_PROTO_GetShiftState [19:10:24]wFMCommunicate request_size=4 [19:10:24]MH_SAM_APDU [19:10:24]CAPDU: 80 13 01 00 [19:10:24]Write to MH i2c: E2 08 00 E5 17 80 13 01 00 00 00 00 00 79 [19:10:24]Write i2c OK [19:10:24]MH_I2C_Read... [19:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:24]Read from MH i2c: E2 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 [19:10:24]MH_I2C_Read... [19:10:24]Read from MH i2c: E2 0E 00 E5 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F9 [19:10:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:10:24]wFMCommunicate OK [19:10:24]SAM_PROTO_GetShiftState done [19:10:24]FM_GetShiftState done [19:10:24]req_shift_opened done [19:10:24]requested_item shift.open_date is exist - process it [19:10:24]req_shift_open_date [19:10:24]req_shift_open_date done [19:10:24]produce_requested_data done [19:10:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140353,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:10:24]process_action_free close_receipt [19:10:24]json_value_free [19:10:24]json_value_free done [19:10:24]process_json_proto returns [19:10:24]Send response to host [19:10:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140353,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:10:24]free response buf [19:10:24]execute_script done [19:10:24]execute_script returns [19:10:24]free content buf [19:10:24]Sock 7.Close socket [19:10:24]Sock 7.Thread stoped [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:55]accept exits with 9 [19:11:55]New connection [19:11:55]New thread 3067469156 created [19:11:55]Thread 3067612516 joined [19:11:55]Waiting for new connection... [19:11:55] Sock 9.Parse request [19:11:55]Sock 9.Check first char [19:11:55]Sock 9.First char is OK [19:11:55]request: POST /json_proto HTTP/1.0 [19:11:55]Method: POST [19:11:55]URL: /json_proto [19:11:55]Method is POST - this is cgi request [19:11:55]url: /json_proto [19:11:55]query_string will be loaded in cgi processing [19:11:55]execute_cgi json_proto POST (null) [19:11:55]execute_cgi path=json_proto method=POST [19:11:55]POST find Content-Length [19:11:55]Host: 172.17.45.67:8080 [19:11:55]Content-Length: 677 [19:11:55]Content-Type: application/json [19:11:55] [19:11:55]POST finish read [19:11:55]Found Content-Length = 677 [19:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:55]execute_script... [19:11:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:55]POST & json_proto [19:11:55]process_json_proto [19:11:55]json parsed OK: [19:11:55]protocol is kg_v1.0 [19:11:55]action value=close_receipt [19:11:55]process_action close_receipt [19:11:55]cmd_close_receipt [19:11:55]MH_GetDate [19:11:55]Write to MH i2c: F0 00 00 E6 17 EC [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: F0 09 00 E6 17 00 FC 3B C6 66 5F 7F 2B 66 C7 [19:11:55]GetLastDocTimeStamp 1724267421 [19:11:55]current date 1724267516 [19:11:55]FM_GetShiftState [19:11:55]SAM_PROTO_GetShiftState [19:11:55]wFMCommunicate request_size=4 [19:11:55]MH_SAM_APDU [19:11:55]CAPDU: 80 13 01 00 [19:11:55]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:55]Read from MH i2c: E2 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FB [19:11:55]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:11:55]wFMCommunicate OK [19:11:55]SAM_PROTO_GetShiftState done [19:11:55]FM_GetShiftState done [19:11:55]opened in 1724200467 [19:11:55]opened+sec_in_day 1724286867 [19:11:55]quantity*price = 50036 [19:11:55]sum+1 = 50037 [19:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 371 21.08.2024 19:11 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140354 ФПД: 226187235659772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191156&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140354&fm=226187235659772&tin=02508201610067®Number=0000000000092569&sum=50000 [19:11:56]StoreToDocumentArchive [19:11:56]shift 454 fd 140354 [19:11:56]save to /storage/0454/doc_00140354 [19:11:56]save last doc name /storage/0454/doc_00140354 to /storage/kkm_last_doc_name [19:11:56]save OK [19:11:56]Clear old archive folders... [19:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:56]tlvbuf is B6FF96A0 [19:11:56]SAM_PROTO_ClearQueue [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 09 00 00 [19:11:56]Write to MH i2c: E2 08 00 F4 17 80 09 00 00 00 00 00 00 7D [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 F4 17 00 90 00 7F [19:11:57]RAPDU: 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_ClearQueue done [19:11:57]KKMCreateOFDPacket [19:11:57]OFDProtocolAddRootSTLVToBuf [19:11:57]FM_MakeSignedData [19:11:57]FM_MakeSignedData [19:11:57]SAM_PROTO_SignData [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 0D 01 02 [19:11:57]Write to MH i2c: E2 08 00 F5 17 80 0D 01 02 00 00 00 00 85 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [19:11:57]RAPDU: 90 00 [19:11:57]wFMCommunicate OK [19:11:57]wFMCommunicate request_size=255 [19:11:57]MH_SAM_APDU [19:11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FC 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 24 02 00 35 04 06 00 CD [19:11:57]Write to MH i2c: E2 02 01 F6 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FC 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 24 02 00 35 04 06 00 CD 00 00 E1 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [19:11:57]RAPDU: 90 00 [19:11:57]wFMCommunicate OK [19:11:57]wFMCommunicate request_size=10 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 0D 02 02 05 B7 51 D5 8F FC [19:11:57]Write to MH i2c: E2 0D 00 F7 17 80 0D 02 02 05 00 B7 51 D5 8F FC 00 00 FA [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [19:11:57]RAPDU: 90 00 [19:11:57]wFMCommunicate OK [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 0D 03 02 [19:11:57]Write to MH i2c: E2 08 00 F8 17 80 0D 03 02 00 00 00 00 8A [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0B 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0B 00 F8 17 00 44 EB CA A6 A6 75 40 E4 90 00 69 [19:11:57]RAPDU: 44 EB CA A6 A6 75 40 E4 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_SignData done [19:11:57]FM_MakeSignedData done [19:11:57]CreateOFDProtocolMessage [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 11 00 00 [19:11:57]Write to MH i2c: E2 08 00 F9 17 80 11 00 00 00 00 00 00 8A [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 F9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [19:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:11:57]wFMCommunicate OK [19:11:57]CreateOFDProtocolMessage done [19:11:57]OFDSenderStorePacket 140354 [19:11:57]StoreOFDPacket docnum=140354 [19:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 F5 07 01 BD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FC 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 24 02 00 35 04 06 00 CD B7 51 D5 8F FC 44 EB CA A6 A6 75 40 E4 [19:11:57]CheckFolder [19:11:57]dirname=/storage/ofd_packets [19:11:57]CheckFolder done [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00140354 [19:11:57]NVStorageSaveData ofd_packets/00140354 [19:11:57]File name is /storage/ofd_packets/00140354 [19:11:57]Write 301 bytes [19:11:57]NVStorageSaveData done [19:11:57]OFDSenderStorePacket done [19:11:57]KKMCreateOFDPacket done [19:11:57]NVStorageSaveData kkm_last_timestamp [19:11:57]File name is /storage/kkm_last_timestamp [19:11:57]Write 4 bytes [19:11:57]NVStorageSaveData done [19:11:57]ExternCall_PrintAddStr [19:11:57]wPrintStart [19:11:57]Write to MH i2c: 01 00 00 FA 17 11 [19:11:57]OFD Sender: Processing packet 140354 [packets to send 137, broken 136] [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00140354 [19:11:57]OFD Sender: To server: pG, [19:11:57]CommunicateWithHost lk.salyk.kg:30040 [19:11:57]ConnectInit lk.salyk.kg [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 FF 0F 26 [19:11:57]RasterBufferAndPrint [19:11:57]line Счет N : (1)594212 [19:11:57]line ИНН: 02508201610067 [19:11:57]line Контрольно-Кассовый Чек [19:11:57]line ПРОДАЖА [19:11:57]line ТРК (МРК, ГНК) : 42 [19:11:57]line Товар: 2710124130 [19:11:57]line Аи-92-К-5 [19:11:57]line 7.380 * 67.80 [19:11:57]line = 500.36 [19:11:57]line НДС 12% НСП 1% [19:11:57]line > о реализуемом товаре [19:11:57]line ОКРУГЛЕНИЕ: -0.36 [19:11:57]line ИТОГО: 500.00 [19:11:57]line Внесено: 500.00 [19:11:57]line СДАЧА: 0.00 [19:11:57]line НСП 1% : 4.43 [19:11:57]line НДС 12% : 53.14 [19:11:57]line Наличными: 500.00 [19:11:57]line Безнал.: 0.00 [19:11:57]line Место: АЗС № 136 "Партнер Нефть" [19:11:57]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:11:57]line СНО: Общий режим [19:11:57]line Чек 371 21.08.2024 19:11 [19:11:57]line Смена: 454 ФФД: 1.0 [19:11:57]line ЗНМ: 0300000067 [19:11:57]line РНМ: 0000000000092569 [19:11:57]line Версия ККМ: 001 [19:11:57]line ФМ: 0000000000871776 [19:11:57]line ФД: 140354 [19:11:57]line ФПД: 226187235659772 [19:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191156&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140354&fm=226187235659772&tin=02508201610067®Number=0000000000092569&sum=50000 [19:11:57]written 0, free lines is 4095 [19:11:57]Connected sock=10 [19:11:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C1 F5 07 01 BD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 FC 3B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 42 24 02 00 35 04 06 00 CD B7 51 D5 8F FC 44 EB CA A6 A6 75 40 E4 [19:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 BD B6 47 00 85 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 37 36 10 04 04 00 42 24 02 00 F4 03 04 00 8C E2 C5 66 B6 04 01 00 00 AF 57 89 8F 7B C3 EB 98 [19:11:57]CommunicateWithHost err = 0 [19:11:57]CheckOFDResponse [19:11:57]1017 (14) - 77093643461234 [19:11:57]1041 (16) - 0000000000871776 [19:11:57]1040 (4) - 140354 [19:11:57]1012 (4) - 21.08.2024 12:50 [19:11:57]1206 (1) - 0 [19:11:57]OFD Sender: Remove packet 140354 [19:11:57]ProducePacketName [19:11:57]name=ofd_packets/00140354 [19:11:57]NVStorageDeleteData [19:11:58]Write to MH i2c: 01 00 00 25 18 3D [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: 01 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: 01 07 00 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: 01 07 00 25 18 00 00 00 00 00 F5 0C 45 [19:11:58]RasterBufferAndPrint [19:11:58]line [19:11:58]line [19:11:58]line [19:11:58]line [19:11:58]line [19:11:58]written 0, free lines is 3323 [19:11:58]MH_Cut [19:11:58]Write to MH i2c: D1 01 00 2C 18 01 16 [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: D1 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: D1 01 00 [19:11:58]MH_I2C_Read... [19:11:58]Read from MH i2c: D1 01 00 2C 18 00 15 [19:11:58]Write to MH i2c: 01 00 00 2D 18 45 [19:11:58]Write i2c OK [19:11:58]MH_I2C_Read... [19:11:58]OFD Sender: No OFD packet to send [19:11:58]*** Cut start [19:11:58]*** Partial cut [19:11:58]*** CUTSNS_PIN = 1 [19:11:58]*** CUTSNS_PIN = 0 [19:11:58]*** Brake cut motor [19:11:59]Read from MH i2c: 01 [19:11:59]MH_I2C_Read... [19:11:59]*** Stop cut motor [19:11:59]*** Cut end [19:11:59]Read from MH i2c: 01 07 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 FF 0F 5A [19:11:59]process_action close_receipt done [19:11:59]requested_data is exist [19:11:59]produce_requested_data [19:11:59]requested_item fm.sn is exist - process it [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 11 00 00 [19:11:59]Write to MH i2c: E2 08 00 2E 18 80 11 00 00 00 00 00 00 C0 [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 17 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 17 00 2E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 17 [19:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:11:59]wFMCommunicate OK [19:11:59]requested_item fd.num is exist - process it [19:11:59]SAM_PROTO_GetFieldsCounters [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 13 00 00 [19:11:59]Write to MH i2c: E2 08 00 2F 18 80 13 00 00 00 00 00 00 C3 [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 62 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 62 00 2F 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 24 02 00 0E 04 04 00 C6 01 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 79 [19:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 42 24 02 00 0E 04 04 00 C6 01 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 [19:11:59]wFMCommunicate OK [19:11:59]SAM_PROTO_GetFieldsCounters done [19:11:59]requested_item shift.num is exist - process it [19:11:59]requested_item shift.opened is exist - process it [19:11:59]req_shift_opened [19:11:59]FM_GetShiftState [19:11:59]SAM_PROTO_GetShiftState [19:11:59]wFMCommunicate request_size=4 [19:11:59]MH_SAM_APDU [19:11:59]CAPDU: 80 13 01 00 [19:11:59]Write to MH i2c: E2 08 00 30 18 80 13 01 00 00 00 00 00 C5 [19:11:59]Write i2c OK [19:11:59]MH_I2C_Read... [19:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:59]Read from MH i2c: E2 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 [19:11:59]MH_I2C_Read... [19:11:59]Read from MH i2c: E2 0E 00 30 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 45 [19:11:59]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:11:59]wFMCommunicate OK [19:11:59]SAM_PROTO_GetShiftState done [19:11:59]FM_GetShiftState done [19:11:59]req_shift_opened done [19:11:59]requested_item shift.open_date is exist - process it [19:11:59]req_shift_open_date [19:11:59]req_shift_open_date done [19:11:59]produce_requested_data done [19:11:59]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140354,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:11:59]process_action_free close_receipt [19:11:59]json_value_free [19:11:59]json_value_free done [19:11:59]process_json_proto returns [19:11:59]Send response to host [19:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140354,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:11:59]free response buf [19:11:59]execute_script done [19:11:59]execute_script returns [19:11:59]free content buf [19:11:59]Sock 9.Close socket [19:11:59]Sock 9.Thread stoped [19:12:00]accept exits with 7 [19:12:00]New connection [19:12:00]New thread 3067612516 created [19:12:00]Thread 3067469156 joined [19:12:00]Waiting for new connection... [19:12:00] Sock 7.Parse request [19:12:00]Sock 7.Check first char [19:12:00]Sock 7.First char is OK [19:12:00]request: POST /json_proto HTTP/1.0 [19:12:00]Method: POST [19:12:00]URL: /json_proto [19:12:00]Method is POST - this is cgi request [19:12:00]url: /json_proto [19:12:00]query_string will be loaded in cgi processing [19:12:00]execute_cgi json_proto POST (null) [19:12:00]execute_cgi path=json_proto method=POST [19:12:00]POST find Content-Length [19:12:00]Host: 172.17.45.67:8080 [19:12:00]Content-Length: 658 [19:12:00]Content-Type: application/json [19:12:00] [19:12:00]POST finish read [19:12:00]Found Content-Length = 658 [19:12:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00]execute_script... [19:12: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)594213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00]POST & json_proto [19:12:00]process_json_proto [19:12:00]json parsed OK: [19:12:00]protocol is kg_v1.0 [19:12:00]action value=close_receipt [19:12:00]process_action close_receipt [19:12:00]cmd_close_receipt [19:12:00]MH_GetDate [19:12:00]Write to MH i2c: F0 00 00 31 18 38 [19:12:00]Write i2c OK [19:12:00]MH_I2C_Read... [19:12:00]Read from MH i2c: F0 [19:12:00]MH_I2C_Read... [19:12:00]Read from MH i2c: F0 09 00 [19:12:00]MH_I2C_Read... [19:12:00]Read from MH i2c: F0 09 00 31 18 00 00 3C C6 66 5F 7F 2B 66 18 [19:12:00]GetLastDocTimeStamp 1724267516 [19:12:00]current date 1724267520 [19:12:00]FM_GetShiftState [19:12:00]SAM_PROTO_GetShiftState [19:12:00]wFMCommunicate request_size=4 [19:12:00]MH_SAM_APDU [19:12:00]CAPDU: 80 13 01 00 [19:12:00]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [19:12:00]Write i2c OK [19:12:00]MH_I2C_Read... [19:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:00]Read from MH i2c: E2 [19:12:00]MH_I2C_Read... [19:12:00]Read from MH i2c: E2 0E 00 [19:12:00]MH_I2C_Read... [19:12:00]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 47 [19:12:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:12:00]wFMCommunicate OK [19:12:00]SAM_PROTO_GetShiftState done [19:12:00]FM_GetShiftState done [19:12:00]opened in 1724200467 [19:12:00]opened+sec_in_day 1724286867 [19:12:00]quantity*price = 50017 [19:12:00]sum+1 = 50019 [19:12:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 372 21.08.2024 19:12 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140355 ФПД: 13543554507723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191200&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140355&fm=13543554507723&tin=02508201610067®Number=0000000000092569&sum=50000 [19:12:01]StoreToDocumentArchive [19:12:01]shift 454 fd 140355 [19:12:01]save to /storage/0454/doc_00140355 [19:12:01]save last doc name /storage/0454/doc_00140355 to /storage/kkm_last_doc_name [19:12:01]save OK [19:12:01]Clear old archive folders... [19:12:01]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:12:01]tlvbuf is 00C406F0 [19:12:01]SAM_PROTO_ClearQueue [19:12:01]wFMCommunicate request_size=4 [19:12:01]MH_SAM_APDU [19:12:01]CAPDU: 80 09 00 00 [19:12:01]Write to MH i2c: E2 08 00 3F 18 80 09 00 00 00 00 00 00 C9 [19:12:01]Write i2c OK [19:12:01]MH_I2C_Read... [19:12:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:01]Read from MH i2c: E2 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 03 00 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 03 00 3F 18 00 90 00 CB [19:12:01]RAPDU: 90 00 [19:12:01]wFMCommunicate OK [19:12:01]SAM_PROTO_ClearQueue done [19:12:01]KKMCreateOFDPacket [19:12:01]OFDProtocolAddRootSTLVToBuf [19:12:01]FM_MakeSignedData [19:12:01]FM_MakeSignedData [19:12:01]SAM_PROTO_SignData [19:12:01]wFMCommunicate request_size=4 [19:12:01]MH_SAM_APDU [19:12:01]CAPDU: 80 0D 01 02 [19:12:01]Write to MH i2c: E2 08 00 40 18 80 0D 01 02 00 00 00 00 D1 [19:12:01]Write i2c OK [19:12:01]MH_I2C_Read... [19:12:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:01]Read from MH i2c: E2 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 03 00 [19:12:01]MH_I2C_Read... [19:12:01]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [19:12:01]RAPDU: 90 00 [19:12:01]wFMCommunicate OK [19:12:01]wFMCommunicate request_size=253 [19:12:01]MH_SAM_APDU [19:12:01]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 00 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 24 02 00 35 04 06 00 0C 51 5A C1 63 CB [19:12:01]Write to MH i2c: E2 00 01 41 18 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 00 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 24 02 00 35 04 06 00 0C 51 5A C1 63 CB 00 00 9D [19:12:01]Write i2c OK [19:12:01]MH_I2C_Read... [19:12:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:02]Read from MH i2c: E2 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 03 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [19:12:02]RAPDU: 90 00 [19:12:02]wFMCommunicate OK [19:12:02]wFMCommunicate request_size=4 [19:12:02]MH_SAM_APDU [19:12:02]CAPDU: 80 0D 03 02 [19:12:02]Write to MH i2c: E2 08 00 42 18 80 0D 03 02 00 00 00 00 D5 [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:02]Read from MH i2c: E2 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 0B 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 0B 00 42 18 00 3D 27 95 35 85 18 DC 24 90 00 A1 [19:12:02]RAPDU: 3D 27 95 35 85 18 DC 24 90 00 [19:12:02]wFMCommunicate OK [19:12:02]SAM_PROTO_SignData done [19:12:02]FM_MakeSignedData done [19:12:02]CreateOFDProtocolMessage [19:12:02]wFMCommunicate request_size=4 [19:12:02]MH_SAM_APDU [19:12:02]CAPDU: 80 11 00 00 [19:12:02]Write to MH i2c: E2 08 00 43 18 80 11 00 00 00 00 00 00 D5 [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:02]Read from MH i2c: E2 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 17 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: E2 17 00 43 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [19:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:12:02]wFMCommunicate OK [19:12:02]CreateOFDProtocolMessage done [19:12:02]OFDSenderStorePacket 140355 [19:12:02]StoreOFDPacket docnum=140355 [19:12:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 2F 75 00 01 58 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 00 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 24 02 00 35 04 06 00 0C 51 5A C1 63 CB 3D 27 95 35 85 18 DC 24 [19:12:02]CheckFolder [19:12:02]dirname=/storage/ofd_packets [19:12:02]CheckFolder done [19:12:02]ProducePacketName [19:12:02]name=ofd_packets/00140355 [19:12:02]NVStorageSaveData ofd_packets/00140355 [19:12:02]File name is /storage/ofd_packets/00140355 [19:12:02]Write 294 bytes [19:12:02]NVStorageSaveData done [19:12:02]OFDSenderStorePacket done [19:12:02]KKMCreateOFDPacket done [19:12:02]NVStorageSaveData kkm_last_timestamp [19:12:02]File name is /storage/kkm_last_timestamp [19:12:02]Write 4 bytes [19:12:02]NVStorageSaveData done [19:12:02]ExternCall_PrintAddStr [19:12:02]wPrintStart [19:12:02]Write to MH i2c: 01 00 00 44 18 5C [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 07 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 07 00 44 18 00 00 00 00 00 FF 0F 71 [19:12:02]RasterBufferAndPrint [19:12:02]line Счет N : (1)594213 [19:12:02]line ИНН: 02508201610067 [19:12:02]line Контрольно-Кассовый Чек [19:12:02]line ПРОДАЖА [19:12:02]line ТРК (МРК, ГНК) : 33 [19:12:02]line Товар: 2710124130 [19:12:02]line SU-92 [19:12:02]line 7.270 * 68.80 [19:12:02]line = 500.18 [19:12:02]line НДС 12% НСП 1% [19:12:02]line > о реализуемом товаре [19:12:02]line ОКРУГЛЕНИЕ: -0.18 [19:12:02]line ИТОГО: 500.00 [19:12:02]line Внесено: 500.00 [19:12:02]line СДАЧА: 0.00 [19:12:02]line НСП 1% : 4.43 [19:12:02]line НДС 12% : 53.12 [19:12:02]line Наличными: 500.00 [19:12:02]line Безнал.: 0.00 [19:12:02]line Место: АЗС № 136 "Партнер Нефть" [19:12:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:12:02]line СНО: Общий режим [19:12:02]line Чек 372 21.08.2024 19:12 [19:12:02]line Смена: 454 ФФД: 1.0 [19:12:02]line ЗНМ: 0300000067 [19:12:02]line РНМ: 0000000000092569 [19:12:02]line Версия ККМ: 001 [19:12:02]line ФМ: 0000000000871776 [19:12:02]line ФД: 140355 [19:12:02]line ФПД: 13543554507723 [19:12:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191200&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140355&fm=13543554507723&tin=02508201610067®Number=0000000000092569&sum=50000 [19:12:02]OFD Sender: Processing packet 140355 [packets to send 137, broken 136] [19:12:02]ProducePacketName [19:12:02]name=ofd_packets/00140355 [19:12:02]OFD Sender: To server: pG, [19:12:02]CommunicateWithHost lk.salyk.kg:30040 [19:12:02]ConnectInit lk.salyk.kg [19:12:02]written 0, free lines is 4095 [19:12:02]Connected sock=9 [19:12: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 37 36 08 01 00 00 2F 75 00 01 58 FB 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 00 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 43 24 02 00 35 04 06 00 0C 51 5A C1 63 CB 3D 27 95 35 85 18 DC 24 [19:12: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 37 36 4F 00 00 00 30 B3 47 00 04 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 37 36 10 04 04 00 43 24 02 00 F4 03 04 00 91 E2 C5 66 B6 04 01 00 00 3C 4F 2B 28 20 EC 70 12 [19:12:02]CommunicateWithHost err = 0 [19:12:02]CheckOFDResponse [19:12:02]1017 (14) - 77093643461234 [19:12:02]1041 (16) - 0000000000871776 [19:12:02]1040 (4) - 140355 [19:12:02]1012 (4) - 21.08.2024 12:50 [19:12:02]1206 (1) - 0 [19:12:02]OFD Sender: Remove packet 140355 [19:12:02]ProducePacketName [19:12:02]name=ofd_packets/00140355 [19:12:02]NVStorageDeleteData [19:12:02]Write to MH i2c: 01 00 00 6F 18 87 [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 07 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 D7 0C 71 [19:12:02]RasterBufferAndPrint [19:12:02]line [19:12:02]line [19:12:02]line [19:12:02]line [19:12:02]line [19:12:02]written 0, free lines is 3301 [19:12:02]MH_Cut [19:12:02]Write to MH i2c: D1 01 00 76 18 01 60 [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: D1 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: D1 01 00 [19:12:02]MH_I2C_Read... [19:12:02]Read from MH i2c: D1 01 00 76 18 00 5F [19:12:02]Write to MH i2c: 01 00 00 77 18 8F [19:12:02]Write i2c OK [19:12:02]MH_I2C_Read... [19:12:03]OFD Sender: No OFD packet to send [19:12:03]*** Cut start [19:12:03]*** Partial cut [19:12:03]*** CUTSNS_PIN = 1 [19:12:03]*** CUTSNS_PIN = 0 [19:12:03]*** Brake cut motor [19:12:04]Read from MH i2c: 01 [19:12:04]MH_I2C_Read... [19:12:04]*** Stop cut motor [19:12:04]*** Cut end [19:12:04]Read from MH i2c: 01 07 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: 01 07 00 77 18 00 00 00 00 00 FF 0F A4 [19:12:04]process_action close_receipt done [19:12:04]requested_data is exist [19:12:04]produce_requested_data [19:12:04]requested_item fm.sn is exist - process it [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 11 00 00 [19:12:04]Write to MH i2c: E2 08 00 78 18 80 11 00 00 00 00 00 00 0A [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 17 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 17 00 78 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [19:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:12:04]wFMCommunicate OK [19:12:04]requested_item fd.num is exist - process it [19:12:04]SAM_PROTO_GetFieldsCounters [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 13 00 00 [19:12:04]Write to MH i2c: E2 08 00 79 18 80 13 00 00 00 00 00 00 0D [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 62 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 62 00 79 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 24 02 00 0E 04 04 00 C6 01 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 C7 [19:12: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 43 24 02 00 0E 04 04 00 C6 01 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 [19:12:04]wFMCommunicate OK [19:12:04]SAM_PROTO_GetFieldsCounters done [19:12:04]requested_item shift.num is exist - process it [19:12:04]requested_item shift.opened is exist - process it [19:12:04]req_shift_opened [19:12:04]FM_GetShiftState [19:12:04]SAM_PROTO_GetShiftState [19:12:04]wFMCommunicate request_size=4 [19:12:04]MH_SAM_APDU [19:12:04]CAPDU: 80 13 01 00 [19:12:04]Write to MH i2c: E2 08 00 7A 18 80 13 01 00 00 00 00 00 0F [19:12:04]Write i2c OK [19:12:04]MH_I2C_Read... [19:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:04]Read from MH i2c: E2 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 0E 00 [19:12:04]MH_I2C_Read... [19:12:04]Read from MH i2c: E2 0E 00 7A 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8F [19:12:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:12:04]wFMCommunicate OK [19:12:04]SAM_PROTO_GetShiftState done [19:12:04]FM_GetShiftState done [19:12:04]req_shift_opened done [19:12:04]requested_item shift.open_date is exist - process it [19:12:04]req_shift_open_date [19:12:04]req_shift_open_date done [19:12:04]produce_requested_data done [19:12:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140355,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:12:04]process_action_free close_receipt [19:12:04]json_value_free [19:12:04]json_value_free done [19:12:04]process_json_proto returns [19:12:04]Send response to host [19:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140355,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:12:04]free response buf [19:12:04]execute_script done [19:12:04]execute_script returns [19:12:04]free content buf [19:12:04]Sock 7.Close socket [19:12:04]Sock 7.Thread stoped [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:57]accept exits with 10 [19:13:57]New connection [19:13:57]New thread 3067469156 created [19:13:57]Thread 3067612516 joined [19:13:57]Waiting for new connection... [19:13:57] Sock 10.Parse request [19:13:57]Sock 10.Check first char [19:13:57]Sock 10.First char is OK [19:13:57]request: POST /json_proto HTTP/1.0 [19:13:57]Method: POST [19:13:57]URL: /json_proto [19:13:57]Method is POST - this is cgi request [19:13:57]url: /json_proto [19:13:57]query_string will be loaded in cgi processing [19:13:57]execute_cgi json_proto POST (null) [19:13:57]execute_cgi path=json_proto method=POST [19:13:57]POST find Content-Length [19:13:57]Host: 172.17.45.67:8080 [19:13:57]Content-Length: 838 [19:13:57]Content-Type: application/json [19:13:57] [19:13:57]POST finish read [19:13:57]Found Content-Length = 838 [19:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:57]execute_script... [19:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:57]POST & json_proto [19:13:57]process_json_proto [19:13:57]json parsed OK: [19:13:57]protocol is kg_v1.0 [19:13:57]action value=close_receipt [19:13:57]process_action close_receipt [19:13:57]cmd_close_receipt [19:13:57]MH_GetDate [19:13:57]Write to MH i2c: F0 00 00 7B 18 82 [19:13:57]Write i2c OK [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 09 00 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: F0 09 00 7B 18 00 76 3C C6 66 5F 7F 2B 66 D8 [19:13:57]GetLastDocTimeStamp 1724267520 [19:13:57]current date 1724267638 [19:13:57]FM_GetShiftState [19:13:57]SAM_PROTO_GetShiftState [19:13:57]wFMCommunicate request_size=4 [19:13:57]MH_SAM_APDU [19:13:57]CAPDU: 80 13 01 00 [19:13:57]Write to MH i2c: E2 08 00 7C 18 80 13 01 00 00 00 00 00 11 [19:13:57]Write i2c OK [19:13:57]MH_I2C_Read... [19:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:57]Read from MH i2c: E2 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: E2 0E 00 [19:13:57]MH_I2C_Read... [19:13:57]Read from MH i2c: E2 0E 00 7C 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 91 [19:13:57]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:13:57]wFMCommunicate OK [19:13:57]SAM_PROTO_GetShiftState done [19:13:57]FM_GetShiftState done [19:13:57]opened in 1724200467 [19:13:57]opened+sec_in_day 1724286867 [19:13:57]quantity*price = 100021 [19:13:57]sum+1 = 100023 [19:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 373 21.08.2024 19:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871776 ФД: 140356 ФПД: 113740946422829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140356&fm=113740946422829&tin=02508201610067®Number=0000000000092569&sum=100000 [19:13:58]StoreToDocumentArchive [19:13:58]shift 454 fd 140356 [19:13:58]save to /storage/0454/doc_00140356 [19:13:58]save last doc name /storage/0454/doc_00140356 to /storage/kkm_last_doc_name [19:13:58]save OK [19:13:58]Clear old archive folders... [19:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:58]tlvbuf is 00C8A610 [19:13:58]SAM_PROTO_ClearQueue [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 09 00 00 [19:13:58]Write to MH i2c: E2 08 00 89 18 80 09 00 00 00 00 00 00 13 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 89 18 00 90 00 15 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_ClearQueue done [19:13:58]KKMCreateOFDPacket [19:13:58]OFDProtocolAddRootSTLVToBuf [19:13:58]FM_MakeSignedData [19:13:58]FM_MakeSignedData [19:13:58]SAM_PROTO_SignData [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 01 02 [19:13:58]Write to MH i2c: E2 08 00 8A 18 80 0D 01 02 00 00 00 00 1B [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=255 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 76 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 24 02 00 35 04 06 00 67 [19:13:58]Write to MH i2c: E2 02 01 8B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 76 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 24 02 00 35 04 06 00 67 00 00 BD [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:59]Read from MH i2c: E2 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 03 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [19:13:59]RAPDU: 90 00 [19:13:59]wFMCommunicate OK [19:13:59]wFMCommunicate request_size=10 [19:13:59]MH_SAM_APDU [19:13:59]CAPDU: 80 0D 02 02 05 72 60 B5 3C 2D [19:13:59]Write to MH i2c: E2 0D 00 8C 18 80 0D 02 02 05 00 72 60 B5 3C 2D 00 00 18 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:59]Read from MH i2c: E2 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 03 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [19:13:59]RAPDU: 90 00 [19:13:59]wFMCommunicate OK [19:13:59]wFMCommunicate request_size=4 [19:13:59]MH_SAM_APDU [19:13:59]CAPDU: 80 0D 03 02 [19:13:59]Write to MH i2c: E2 08 00 8D 18 80 0D 03 02 00 00 00 00 20 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:59]Read from MH i2c: E2 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 0B 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 0B 00 8D 18 00 8F 2A BA 83 7D 66 60 ED 90 00 47 [19:13:59]RAPDU: 8F 2A BA 83 7D 66 60 ED 90 00 [19:13:59]wFMCommunicate OK [19:13:59]SAM_PROTO_SignData done [19:13:59]FM_MakeSignedData done [19:13:59]CreateOFDProtocolMessage [19:13:59]wFMCommunicate request_size=4 [19:13:59]MH_SAM_APDU [19:13:59]CAPDU: 80 11 00 00 [19:13:59]Write to MH i2c: E2 08 00 8E 18 80 11 00 00 00 00 00 00 20 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:59]Read from MH i2c: E2 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 17 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: E2 17 00 8E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [19:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:13:59]wFMCommunicate OK [19:13:59]CreateOFDProtocolMessage done [19:13:59]OFDSenderStorePacket 140356 [19:13:59]StoreOFDPacket docnum=140356 [19:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 A0 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 76 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 24 02 00 35 04 06 00 67 72 60 B5 3C 2D 8F 2A BA 83 7D 66 60 ED [19:13:59]CheckFolder [19:13:59]dirname=/storage/ofd_packets [19:13:59]CheckFolder done [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00140356 [19:13:59]NVStorageSaveData ofd_packets/00140356 [19:13:59]File name is /storage/ofd_packets/00140356 [19:13:59]Write 301 bytes [19:13:59]NVStorageSaveData done [19:13:59]OFDSenderStorePacket done [19:13:59]KKMCreateOFDPacket done [19:13:59]NVStorageSaveData kkm_last_timestamp [19:13:59]File name is /storage/kkm_last_timestamp [19:13:59]Write 4 bytes [19:13:59]NVStorageSaveData done [19:13:59]ExternCall_PrintAddStr [19:13:59]wPrintStart [19:13:59]Write to MH i2c: 01 00 00 8F 18 A7 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 8F 18 00 00 00 00 00 FF 0F BC [19:13:59]RasterBufferAndPrint [19:13:59]line Счет N : (1)594214 [19:13:59]line ИНН: 02508201610067 [19:13:59]line Контрольно-Кассовый Чек [19:13:59]line ПРОДАЖА [19:13:59]line ТРК (МРК, ГНК) : 61 [19:13:59]line Товар: 2710124500 [19:13:59]line Аи-95-К-5 [19:13:59]line 13.480 * 74.20 [19:13:59]line = 1000.22 [19:13:59]line НДС 12% НСП 1% [19:13:59]line > о реализуемом товаре [19:13:59]line ОКРУГЛЕНИЕ: -0.22 [19:13:59]line ИТОГО: 1000.00 [19:13:59]line НСП 1% : 8.85 [19:13:59]line НДС 12% : 106.22 [19:13:59]line Наличными: 0.00 [19:13:59]line Безнал.: 1000.00 [19:13:59]line Место: АЗС № 136 "Партнер Нефть" [19:13:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:13:59]line СНО: Общий режим [19:13:59]line Чек 373 21.08.2024 19:13 [19:13:59]line Смена: 454 ФФД: 1.0 [19:13:59]line ЗНМ: 0300000067 [19:13:59]line РНМ: 0000000000092569 [19:13:59]line Версия ККМ: 001 [19:13:59]line Платежная система: Бакай Банк [19:13:59]line ФМ: 0000000000871776 [19:13:59]line ФД: 140356 [19:13:59]line ФПД: 113740946422829 [19:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140356&fm=113740946422829&tin=02508201610067®Number=0000000000092569&sum=100000 [19:13:59]OFD Sender: Processing packet 140356 [packets to send 137, broken 136] [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00140356 [19:13:59]OFD Sender: To server: pG, [19:13:59]CommunicateWithHost lk.salyk.kg:30040 [19:13:59]ConnectInit lk.salyk.kg [19:13:59]written 0, free lines is 4095 [19:13:59]Connected sock=9 [19:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 79 A0 07 01 AC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 76 3C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 44 24 02 00 35 04 06 00 67 72 60 B5 3C 2D 8F 2A BA 83 7D 66 60 ED [19:14: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 37 36 4F 00 00 00 C9 34 47 00 E4 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 37 36 10 04 04 00 44 24 02 00 F4 03 04 00 06 E3 C5 66 B6 04 01 00 00 93 15 32 61 6A 32 63 D2 [19:14:00]CommunicateWithHost err = 0 [19:14:00]CheckOFDResponse [19:14:00]1017 (14) - 77093643461234 [19:14:00]1041 (16) - 0000000000871776 [19:14:00]1040 (4) - 140356 [19:14:00]1012 (4) - 21.08.2024 12:52 [19:14:00]1206 (1) - 0 [19:14:00]OFD Sender: Remove packet 140356 [19:14:00]ProducePacketName [19:14:00]name=ofd_packets/00140356 [19:14:00]NVStorageDeleteData [19:14:00]Write to MH i2c: 01 00 00 BA 18 D2 [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: 01 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: 01 07 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 DB 0C C0 [19:14:00]RasterBufferAndPrint [19:14:00]line [19:14:00]line [19:14:00]line [19:14:00]line [19:14:00]line [19:14:00]written 0, free lines is 3297 [19:14:00]MH_Cut [19:14:00]Write to MH i2c: D1 01 00 C1 18 01 AB [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: D1 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: D1 01 00 [19:14:00]MH_I2C_Read... [19:14:00]Read from MH i2c: D1 01 00 C1 18 00 AA [19:14:00]Write to MH i2c: 01 00 00 C2 18 DA [19:14:00]Write i2c OK [19:14:00]MH_I2C_Read... [19:14:00]OFD Sender: No OFD packet to send [19:14:00]*** Cut start [19:14:00]*** Partial cut [19:14:00]*** CUTSNS_PIN = 1 [19:14:00]*** CUTSNS_PIN = 0 [19:14:01]*** Brake cut motor [19:14:01]Read from MH i2c: 01 [19:14:01]MH_I2C_Read... [19:14:01]*** Stop cut motor [19:14:01]*** Cut end [19:14:01]Read from MH i2c: 01 07 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 FF 0F EF [19:14:01]process_action close_receipt done [19:14:01]requested_data is exist [19:14:01]produce_requested_data [19:14:01]requested_item fm.sn is exist - process it [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 11 00 00 [19:14:01]Write to MH i2c: E2 08 00 C3 18 80 11 00 00 00 00 00 00 55 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 17 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 17 00 C3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [19:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:14:01]wFMCommunicate OK [19:14:01]requested_item fd.num is exist - process it [19:14:01]SAM_PROTO_GetFieldsCounters [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 00 00 [19:14:01]Write to MH i2c: E2 08 00 C4 18 80 13 00 00 00 00 00 00 58 [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 62 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 62 00 C4 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 24 02 00 0E 04 04 00 C6 01 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 16 [19:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 44 24 02 00 0E 04 04 00 C6 01 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 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetFieldsCounters done [19:14:01]requested_item shift.num is exist - process it [19:14:01]requested_item shift.opened is exist - process it [19:14:01]req_shift_opened [19:14:01]FM_GetShiftState [19:14:01]SAM_PROTO_GetShiftState [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 01 00 [19:14:01]Write to MH i2c: E2 08 00 C5 18 80 13 01 00 00 00 00 00 5A [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 C5 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DA [19:14:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetShiftState done [19:14:01]FM_GetShiftState done [19:14:01]req_shift_opened done [19:14:01]requested_item shift.open_date is exist - process it [19:14:01]req_shift_open_date [19:14:01]req_shift_open_date done [19:14:01]produce_requested_data done [19:14:01]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140356,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:14:01]process_action_free close_receipt [19:14:01]json_value_free [19:14:01]json_value_free done [19:14:01]process_json_proto returns [19:14:01]Send response to host [19:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140356,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:14:01]free response buf [19:14:01]execute_script done [19:14:01]execute_script returns [19:14:01]free content buf [19:14:01]Sock 10.Close socket [19:14:01]Sock 10.Thread stoped [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:22]accept exits with 7 [19:17:22]New connection [19:17:22]New thread 3067612516 created [19:17:22]Thread 3067469156 joined [19:17:22]Waiting for new connection... [19:17:22] Sock 7.Parse request [19:17:22]Sock 7.Check first char [19:17:22]Sock 7.First char is OK [19:17:22]request: POST /json_proto HTTP/1.0 [19:17:22]Method: POST [19:17:22]URL: /json_proto [19:17:22]Method is POST - this is cgi request [19:17:22]url: /json_proto [19:17:22]query_string will be loaded in cgi processing [19:17:22]execute_cgi json_proto POST (null) [19:17:22]execute_cgi path=json_proto method=POST [19:17:22]POST find Content-Length [19:17:22]Host: 172.17.45.67:8080 [19:17:22]Content-Length: 806 [19:17:22]Content-Type: application/json [19:17:22] [19:17:22]POST finish read [19:17:22]Found Content-Length = 806 [19:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613312", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:22]execute_script... [19:17:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613312", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:22]POST & json_proto [19:17:22]process_json_proto [19:17:22]json parsed OK: [19:17:22]protocol is kg_v1.0 [19:17:22]action value=close_receipt [19:17:22]process_action close_receipt [19:17:22]cmd_close_receipt [19:17:22]MH_GetDate [19:17:22]Write to MH i2c: F0 00 00 C6 18 CD [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 C6 18 00 43 3D C6 66 5F 7F 2B 66 F1 [19:17:22]GetLastDocTimeStamp 1724267638 [19:17:22]current date 1724267843 [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 C7 18 80 13 01 00 00 00 00 00 5C [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 C7 18 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DC [19:17:22]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetShiftState done [19:17:22]FM_GetShiftState done [19:17:22]opened in 1724200467 [19:17:22]opened+sec_in_day 1724286867 [19:17:22]quantity*price = 0 [19:17:22]sum+1 = 1 [19:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 374 21.08.2024 19:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 3613312 ФМ: 0000000000871776 ФД: 140357 ФПД: 141597541777130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140357&fm=141597541777130&tin=02508201610067®Number=0000000000092569&sum=0 [19:17:23]StoreToDocumentArchive [19:17:23]shift 454 fd 140357 [19:17:23]save to /storage/0454/doc_00140357 [19:17:23]save last doc name /storage/0454/doc_00140357 to /storage/kkm_last_doc_name [19:17:23]save OK [19:17:23]Clear old archive folders... [19:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:17:23]tlvbuf is 00C8A330 [19:17:23]SAM_PROTO_ClearQueue [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 09 00 00 [19:17:23]Write to MH i2c: E2 08 00 D4 18 80 09 00 00 00 00 00 00 5E [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 D4 18 00 90 00 60 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_ClearQueue done [19:17:23]KKMCreateOFDPacket [19:17:23]OFDProtocolAddRootSTLVToBuf [19:17:23]FM_MakeSignedData [19:17:23]FM_MakeSignedData [19:17:23]SAM_PROTO_SignData [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 01 02 [19:17:23]Write to MH i2c: E2 08 00 D5 18 80 0D 01 02 00 00 00 00 66 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [19:17:24]RAPDU: 90 00 [19:17:24]wFMCommunicate OK [19:17:24]wFMCommunicate request_size=255 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 43 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 24 02 00 35 04 06 00 [19:17:24]Write to MH i2c: E2 02 01 D6 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 43 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 24 02 00 35 04 06 00 00 00 31 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [19:17:24]RAPDU: 90 00 [19:17:24]wFMCommunicate OK [19:17:24]wFMCommunicate request_size=11 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 0D 02 02 06 80 C8 3F 2D BE EA [19:17:24]Write to MH i2c: E2 0E 00 D7 18 80 0D 02 02 06 00 80 C8 3F 2D BE EA 00 00 D1 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [19:17:24]RAPDU: 90 00 [19:17:24]wFMCommunicate OK [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 0D 03 02 [19:17:24]Write to MH i2c: E2 08 00 D8 18 80 0D 03 02 00 00 00 00 6B [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0B 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 0B 00 D8 18 00 91 82 B5 DD FC 0F 04 6E 90 00 8E [19:17:24]RAPDU: 91 82 B5 DD FC 0F 04 6E 90 00 [19:17:24]wFMCommunicate OK [19:17:24]SAM_PROTO_SignData done [19:17:24]FM_MakeSignedData done [19:17:24]CreateOFDProtocolMessage [19:17:24]wFMCommunicate request_size=4 [19:17:24]MH_SAM_APDU [19:17:24]CAPDU: 80 11 00 00 [19:17:24]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:24]Read from MH i2c: E2 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 17 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [19:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:24]wFMCommunicate OK [19:17:24]CreateOFDProtocolMessage done [19:17:24]OFDSenderStorePacket 140357 [19:17:24]StoreOFDPacket docnum=140357 [19:17:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 DD 88 08 01 37 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 43 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 24 02 00 35 04 06 00 80 C8 3F 2D BE EA 91 82 B5 DD FC 0F 04 6E [19:17:24]CheckFolder [19:17:24]dirname=/storage/ofd_packets [19:17:24]CheckFolder done [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00140357 [19:17:24]NVStorageSaveData ofd_packets/00140357 [19:17:24]File name is /storage/ofd_packets/00140357 [19:17:24]Write 302 bytes [19:17:24]NVStorageSaveData done [19:17:24]OFDSenderStorePacket done [19:17:24]KKMCreateOFDPacket done [19:17:24]NVStorageSaveData kkm_last_timestamp [19:17:24]File name is /storage/kkm_last_timestamp [19:17:24]Write 4 bytes [19:17:24]NVStorageSaveData done [19:17:24]OFD Sender: Processing packet 140357 [packets to send 137, broken 136] [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00140357 [19:17:24]OFD Sender: To server: pG, [19:17:24]CommunicateWithHost lk.salyk.kg:30040 [19:17:24]ConnectInit lk.salyk.kg [19:17:24]ExternCall_PrintAddStr [19:17:24]wPrintStart [19:17:24]Write to MH i2c: 01 00 00 DA 18 F2 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 FF 0F 07 [19:17:24]RasterBufferAndPrint [19:17:24]line Счет N : (1)594215 [19:17:24]line ИНН: 02508201610067 [19:17:24]line Контрольно-Кассовый Чек [19:17:24]line ПРОДАЖА [19:17:24]line ТРК (МРК, ГНК) : 34 [19:17:24]line Товар: 2710194210 [19:17:24]line ДТ(л)-К-5 [19:17:24]line 100.000 * 0.00 [19:17:24]line = 0.00 [19:17:24]line НДС 12% НСП 1% [19:17:24]line > о реализуемом товаре [19:17:24]line ИТОГО: 0.00 [19:17:24]line НСП 1% : 0.00 [19:17:24]line НДС 12% : 0.00 [19:17:24]line Наличными: 0.00 [19:17:24]line Безнал.: 0.00 [19:17:24]line Место: АЗС № 136 "Партнер Нефть" [19:17:24]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:17:24]line СНО: Общий режим [19:17:24]line Чек 374 21.08.2024 19:17 [19:17:24]line Смена: 454 ФФД: 1.0 [19:17:24]line ЗНМ: 0300000067 [19:17:24]line РНМ: 0000000000092569 [19:17:24]line Версия ККМ: 001 [19:17:24]line Талоны: Топливные Талоны [19:17:24]line 3613312 [19:17:24]line ФМ: 0000000000871776 [19:17:24]line ФД: 140357 [19:17:24]line ФПД: 141597541777130 [19:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191723&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140357&fm=141597541777130&tin=02508201610067®Number=0000000000092569&sum=0 [19:17:24]Connected sock=11 [19:17: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 37 36 10 01 00 00 DD 88 08 01 37 written 0, free lines is 4095 [19:17:24]78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 43 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 45 24 02 00 35 04 06 00 80 C8 3F 2D BE EA 91 82 B5 DD FC 0F 04 6E [19:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 1B 73 47 00 84 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 37 36 10 04 04 00 45 24 02 00 F4 03 04 00 D3 E3 C5 66 B6 04 01 00 00 72 18 17 A9 94 BB 54 E0 [19:17:25]CommunicateWithHost err = 0 [19:17:25]CheckOFDResponse [19:17:25]1017 (14) - 77093643461234 [19:17:25]1041 (16) - 0000000000871776 [19:17:25]1040 (4) - 140357 [19:17:25]1012 (4) - 21.08.2024 12:55 [19:17:25]1206 (1) - 0 [19:17:25]OFD Sender: Remove packet 140357 [19:17:25]ProducePacketName [19:17:25]name=ofd_packets/00140357 [19:17:25]NVStorageDeleteData [19:17:25]Write to MH i2c: 01 00 00 04 19 1D [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: 01 07 00 04 19 00 00 00 00 00 D7 0C 07 [19:17:25]RasterBufferAndPrint [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]line [19:17:25]written 0, free lines is 3293 [19:17:25]MH_Cut [19:17:25]Write to MH i2c: D1 01 00 0B 19 01 F6 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: D1 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: D1 01 00 [19:17:25]MH_I2C_Read... [19:17:25]Read from MH i2c: D1 01 00 0B 19 00 F5 [19:17:25]Write to MH i2c: 01 00 00 0C 19 25 [19:17:25]Write i2c OK [19:17:25]MH_I2C_Read... [19:17:25]OFD Sender: No OFD packet to send [19:17:25]*** Cut start [19:17:25]*** Partial cut [19:17:25]*** CUTSNS_PIN = 1 [19:17:25]*** CUTSNS_PIN = 0 [19:17:26]*** Brake cut motor [19:17:26]Read from MH i2c: 01 [19:17:26]MH_I2C_Read... [19:17:26]*** Stop cut motor [19:17:26]*** Cut end [19:17:26]Read from MH i2c: 01 07 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 FF 0F 3A [19:17:26]process_action close_receipt done [19:17:26]requested_data is exist [19:17:26]produce_requested_data [19:17:26]requested_item fm.sn is exist - process it [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 11 00 00 [19:17:26]Write to MH i2c: E2 08 00 0D 19 80 11 00 00 00 00 00 00 A0 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 0D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [19:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:26]wFMCommunicate OK [19:17:26]requested_item fd.num is exist - process it [19:17:26]SAM_PROTO_GetFieldsCounters [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 00 00 [19:17:26]Write to MH i2c: E2 08 00 0E 19 80 13 00 00 00 00 00 00 A3 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 0E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 24 02 00 0E 04 04 00 C6 01 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 65 [19:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 45 24 02 00 0E 04 04 00 C6 01 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 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetFieldsCounters done [19:17:26]requested_item shift.num is exist - process it [19:17:26]requested_item shift.opened is exist - process it [19:17:26]req_shift_opened [19:17:26]FM_GetShiftState [19:17:26]SAM_PROTO_GetShiftState [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 01 00 [19:17:26]Write to MH i2c: E2 08 00 0F 19 80 13 01 00 00 00 00 00 A5 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 0F 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 25 [19:17:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetShiftState done [19:17:26]FM_GetShiftState done [19:17:26]req_shift_opened done [19:17:26]requested_item shift.open_date is exist - process it [19:17:26]req_shift_open_date [19:17:26]req_shift_open_date done [19:17:26]produce_requested_data done [19:17:26]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140357,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:17:26]process_action_free close_receipt [19:17:26]json_value_free [19:17:26]json_value_free done [19:17:26]process_json_proto returns [19:17:26]Send response to host [19:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140357,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:17:26]free response buf [19:17:26]execute_script done [19:17:26]execute_script returns [19:17:26]free content buf [19:17:26]Sock 7.Close socket [19:17:26]Sock 7.Thread stoped [19:17:30]OFD Sender: No OFD packet to send [19:17:30]accept exits with 9 [19:17:30]New connection [19:17:30]New thread 3067469156 created [19:17:30]Thread 3067612516 joined [19:17:30]Waiting for new connection... [19:17:30] Sock 9.Parse request [19:17:30]Sock 9.Check first char [19:17:30]Sock 9.First char is OK [19:17:30]request: POST /json_proto HTTP/1.0 [19:17:30]Method: POST [19:17:30]URL: /json_proto [19:17:30]Method is POST - this is cgi request [19:17:30]url: /json_proto [19:17:30]query_string will be loaded in cgi processing [19:17:30]execute_cgi json_proto POST (null) [19:17:30]execute_cgi path=json_proto method=POST [19:17:30]POST find Content-Length [19:17:30]Host: 172.17.45.67:8080 [19:17:30]Content-Length: 682 [19:17:30]Content-Type: application/json [19:17:30] [19:17:30]POST finish read [19:17:30]Found Content-Length = 682 [19:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:30]execute_script... [19:17: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)594216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:30]POST & json_proto [19:17:30]process_json_proto [19:17:30]json parsed OK: [19:17:30]protocol is kg_v1.0 [19:17:30]action value=close_receipt [19:17:30]process_action close_receipt [19:17:30]cmd_close_receipt [19:17:30]MH_GetDate [19:17:30]Write to MH i2c: F0 00 00 10 19 18 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: F0 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: F0 09 00 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: F0 09 00 10 19 00 4B 3D C6 66 5F 7F 2B 66 44 [19:17:30]GetLastDocTimeStamp 1724267843 [19:17:30]current date 1724267851 [19:17:30]FM_GetShiftState [19:17:30]SAM_PROTO_GetShiftState [19:17:30]wFMCommunicate request_size=4 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 13 01 00 [19:17:30]Write to MH i2c: E2 08 00 11 19 80 13 01 00 00 00 00 00 A7 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:30]Read from MH i2c: E2 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: E2 0E 00 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: E2 0E 00 11 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [19:17:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:17:30]wFMCommunicate OK [19:17:30]SAM_PROTO_GetShiftState done [19:17:30]FM_GetShiftState done [19:17:30]opened in 1724200467 [19:17:30]opened+sec_in_day 1724286867 [19:17:30]quantity*price = 100021 [19:17:30]sum+1 = 100023 [19:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 375 21.08.2024 19:17 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140358 ФПД: 178263053946925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191731&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140358&fm=178263053946925&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:31]StoreToDocumentArchive [19:17:31]shift 454 fd 140358 [19:17:31]save to /storage/0454/doc_00140358 [19:17:31]save last doc name /storage/0454/doc_00140358 to /storage/kkm_last_doc_name [19:17:31]save OK [19:17:31]Clear old archive folders... [19:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:31]tlvbuf is 00CDEFB0 [19:17:31]SAM_PROTO_ClearQueue [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 09 00 00 [19:17:31]Write to MH i2c: E2 08 00 1E 19 80 09 00 00 00 00 00 00 A9 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 1E 19 00 90 00 AB [19:17:32]RAPDU: 90 00 [19:17:32]wFMCommunicate OK [19:17:32]SAM_PROTO_ClearQueue done [19:17:32]KKMCreateOFDPacket [19:17:32]OFDProtocolAddRootSTLVToBuf [19:17:32]FM_MakeSignedData [19:17:32]FM_MakeSignedData [19:17:32]SAM_PROTO_SignData [19:17:32]wFMCommunicate request_size=4 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 0D 01 02 [19:17:32]Write to MH i2c: E2 08 00 1F 19 80 0D 01 02 00 00 00 00 B1 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 1F 19 00 90 00 AC [19:17:32]RAPDU: 90 00 [19:17:32]wFMCommunicate OK [19:17:32]wFMCommunicate request_size=255 [19:17:32]MH_SAM_APDU [19:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 4B 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 24 02 00 35 04 06 00 A2 [19:17:32]Write to MH i2c: E2 02 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 4B 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 24 02 00 35 04 06 00 A2 00 00 68 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [19:17:32]RAPDU: 90 00 [19:17:32]wFMCommunicate OK [19:17:32]wFMCommunicate request_size=10 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 0D 02 02 05 21 1A 01 D0 2D [19:17:32]Write to MH i2c: E2 0D 00 21 19 80 0D 02 02 05 00 21 1A 01 D0 2D 00 00 F7 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [19:17:32]RAPDU: 90 00 [19:17:32]wFMCommunicate OK [19:17:32]wFMCommunicate request_size=4 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 0D 03 02 [19:17:32]Write to MH i2c: E2 08 00 22 19 80 0D 03 02 00 00 00 00 B6 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 0B 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 0B 00 22 19 00 A8 75 01 2F 00 6C F9 66 90 00 CF [19:17:32]RAPDU: A8 75 01 2F 00 6C F9 66 90 00 [19:17:32]wFMCommunicate OK [19:17:32]SAM_PROTO_SignData done [19:17:32]FM_MakeSignedData done [19:17:32]CreateOFDProtocolMessage [19:17:32]wFMCommunicate request_size=4 [19:17:32]MH_SAM_APDU [19:17:32]CAPDU: 80 11 00 00 [19:17:32]Write to MH i2c: E2 08 00 23 19 80 11 00 00 00 00 00 00 B6 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:32]Read from MH i2c: E2 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 17 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: E2 17 00 23 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0D [19:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:32]wFMCommunicate OK [19:17:32]CreateOFDProtocolMessage done [19:17:32]OFDSenderStorePacket 140358 [19:17:32]StoreOFDPacket docnum=140358 [19:17:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 8C 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 4B 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 24 02 00 35 04 06 00 A2 21 1A 01 D0 2D A8 75 01 2F 00 6C F9 66 [19:17:32]CheckFolder [19:17:32]dirname=/storage/ofd_packets [19:17:32]CheckFolder done [19:17:32]ProducePacketName [19:17:32]name=ofd_packets/00140358 [19:17:32]NVStorageSaveData ofd_packets/00140358 [19:17:32]File name is /storage/ofd_packets/00140358 [19:17:32]Write 301 bytes [19:17:32]NVStorageSaveData done [19:17:32]OFDSenderStorePacket done [19:17:32]KKMCreateOFDPacket done [19:17:32]NVStorageSaveData kkm_last_timestamp [19:17:32]File name is /storage/kkm_last_timestamp [19:17:32]Write 4 bytes [19:17:32]NVStorageSaveData done [19:17:32]ExternCall_PrintAddStr [19:17:32]wPrintStart [19:17:32]Write to MH i2c: 01 00 00 24 19 3D [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 07 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 FF 0F 52 [19:17:32]RasterBufferAndPrint [19:17:32]line Счет N : (1)594216 [19:17:32]line ИНН: 02508201610067 [19:17:32]line Контрольно-Кассовый Чек [19:17:32]line ПРОДАЖА [19:17:32]line ТРК (МРК, ГНК) : 61 [19:17:32]line Товар: 2710124500 [19:17:32]line Аи-95-К-5 [19:17:32]line 13.480 * 74.20 [19:17:32]line = 1000.22 [19:17:32]line НДС 12% НСП 1% [19:17:32]line > о реализуемом товаре [19:17:32]line ОКРУГЛЕНИЕ: -0.22 [19:17:32]line ИТОГО: 1000.00 [19:17:32]line Внесено: 1000.00 [19:17:32]line СДАЧА: 0.00 [19:17:32]line НСП 1% : 8.85 [19:17:32]line НДС 12% : 106.22 [19:17:32]line Наличными: 1000.00 [19:17:32]line Безнал.: 0.00 [19:17:32]line Место: АЗС № 136 "Партнер Нефть" [19:17:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:17:32]line СНО: Общий режим [19:17:32]line Чек 375 21.08.2024 19:17 [19:17:32]line Смена: 454 ФФД: 1.0 [19:17:32]line ЗНМ: 0300000067 [19:17:32]line РНМ: 0000000000092569 [19:17:32]line Версия ККМ: 001 [19:17:32]line ФМ: 0000000000871776 [19:17:32]line ФД: 140358 [19:17:32]line ФПД: 178263053946925 [19:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T191731&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140358&fm=178263053946925&tin=02508201610067®Number=0000000000092569&sum=100000 [19:17:32]written 0, free lines is 4095 [19:17:32]OFD Sender: Processing packet 140358 [packets to send 137, broken 136] [19:17:32]ProducePacketName [19:17:32]name=ofd_packets/00140358 [19:17:32]OFD Sender: To server: pG, [19:17:32]CommunicateWithHost lk.salyk.kg:30040 [19:17:32]ConnectInit lk.salyk.kg [19:17:32]Connected sock=11 [19:17: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 37 36 0F 01 00 00 44 8C 07 01 D1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 4B 3D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 46 24 02 00 35 04 06 00 A2 21 1A 01 D0 2D A8 75 01 2F 00 6C F9 66 [19:17:33]Write to MH i2c: 01 00 00 4F 19 68 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 DE 0C 59 [19:17:33]RasterBufferAndPrint [19:17:33]line [19:17:33]line [19:17:33]line [19:17:33]line [19:17:33]line [19:17:33]written 0, free lines is 3302 [19:17:33]MH_Cut [19:17:33]Write to MH i2c: D1 01 00 56 19 01 41 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: D1 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: D1 01 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: D1 01 00 56 19 00 40 [19:17:33]Write to MH i2c: 01 00 00 57 19 70 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17: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 37 36 4F 00 00 00 27 BA 47 00 BA 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 37 36 10 04 04 00 46 24 02 00 F4 03 04 00 DB E3 C5 66 B6 04 01 00 00 EB 9A E5 85 14 DB 3E 4F [19:17:33]CommunicateWithHost err = 0 [19:17:33]CheckOFDResponse [19:17:33]1017 (14) - 77093643461234 [19:17:33]1041 (16) - 0000000000871776 [19:17:33]1040 (4) - 140358 [19:17:33]1012 (4) - 21.08.2024 12:55 [19:17:33]1206 (1) - 0 [19:17:33]OFD Sender: Remove packet 140358 [19:17:33]ProducePacketName [19:17:33]name=ofd_packets/00140358 [19:17:33]NVStorageDeleteData [19:17:33]OFD Sender: No OFD packet to send [19:17:33]*** Cut start [19:17:33]*** Partial cut [19:17:33]*** CUTSNS_PIN = 1 [19:17:33]*** CUTSNS_PIN = 0 [19:17:33]*** Brake cut motor [19:17:34]Read from MH i2c: 01 [19:17:34]MH_I2C_Read... [19:17:34]*** Stop cut motor [19:17:34]*** Cut end [19:17:34]Read from MH i2c: 01 07 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: 01 07 00 57 19 00 00 00 00 00 FF 0F 85 [19:17:34]process_action close_receipt done [19:17:34]requested_data is exist [19:17:34]produce_requested_data [19:17:34]requested_item fm.sn is exist - process it [19:17:34]wFMCommunicate request_size=4 [19:17:34]MH_SAM_APDU [19:17:34]CAPDU: 80 11 00 00 [19:17:34]Write to MH i2c: E2 08 00 58 19 80 11 00 00 00 00 00 00 EB [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:34]Read from MH i2c: E2 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 17 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 17 00 58 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [19:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:17:34]wFMCommunicate OK [19:17:34]requested_item fd.num is exist - process it [19:17:34]SAM_PROTO_GetFieldsCounters [19:17:34]wFMCommunicate request_size=4 [19:17:34]MH_SAM_APDU [19:17:34]CAPDU: 80 13 00 00 [19:17:34]Write to MH i2c: E2 08 00 59 19 80 13 00 00 00 00 00 00 EE [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:34]Read from MH i2c: E2 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 62 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 62 00 59 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 24 02 00 0E 04 04 00 C6 01 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 B4 [19:17: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 46 24 02 00 0E 04 04 00 C6 01 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 [19:17:34]wFMCommunicate OK [19:17:34]SAM_PROTO_GetFieldsCounters done [19:17:34]requested_item shift.num is exist - process it [19:17:34]requested_item shift.opened is exist - process it [19:17:34]req_shift_opened [19:17:34]FM_GetShiftState [19:17:34]SAM_PROTO_GetShiftState [19:17:34]wFMCommunicate request_size=4 [19:17:34]MH_SAM_APDU [19:17:34]CAPDU: 80 13 01 00 [19:17:34]Write to MH i2c: E2 08 00 5A 19 80 13 01 00 00 00 00 00 F0 [19:17:34]Write i2c OK [19:17:34]MH_I2C_Read... [19:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:34]Read from MH i2c: E2 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 0E 00 [19:17:34]MH_I2C_Read... [19:17:34]Read from MH i2c: E2 0E 00 5A 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 70 [19:17:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:17:34]wFMCommunicate OK [19:17:34]SAM_PROTO_GetShiftState done [19:17:34]FM_GetShiftState done [19:17:34]req_shift_opened done [19:17:34]requested_item shift.open_date is exist - process it [19:17:34]req_shift_open_date [19:17:34]req_shift_open_date done [19:17:34]produce_requested_data done [19:17:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140358,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:17:34]process_action_free close_receipt [19:17:34]json_value_free [19:17:34]json_value_free done [19:17:34]process_json_proto returns [19:17:34]Send response to host [19:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140358,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:17:34]free response buf [19:17:34]execute_script done [19:17:34]execute_script returns [19:17:34]free content buf [19:17:34]Sock 9.Close socket [19:17:34]Sock 9.Thread stoped [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]accept exits with 7 [19:20:38]New connection [19:20:38]New thread 3067612516 created [19:20:38]Thread 3067469156 joined [19:20:38]Waiting for new connection... [19:20:38] Sock 7.Parse request [19:20:38]Sock 7.Check first char [19:20:38]Sock 7.First char is OK [19:20:38]request: POST /json_proto HTTP/1.0 [19:20:38]Method: POST [19:20:38]URL: /json_proto [19:20:38]Method is POST - this is cgi request [19:20:38]url: /json_proto [19:20:38]query_string will be loaded in cgi processing [19:20:38]execute_cgi json_proto POST (null) [19:20:38]execute_cgi path=json_proto method=POST [19:20:38]POST find Content-Length [19:20:38]Host: 172.17.45.67:8080 [19:20:38]Content-Length: 806 [19:20:38]Content-Type: application/json [19:20:38] [19:20:38]POST finish read [19:20:38]Found Content-Length = 806 [19:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613311", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:38]execute_script... [19:20: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)594217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613311", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:38]POST & json_proto [19:20:38]process_json_proto [19:20:38]json parsed OK: [19:20:38]protocol is kg_v1.0 [19:20:38]action value=close_receipt [19:20:38]process_action close_receipt [19:20:38]cmd_close_receipt [19:20:38]MH_GetDate [19:20:38]Write to MH i2c: F0 00 00 5B 19 63 [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 09 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 09 00 5B 19 00 06 3E C6 66 5F 7F 2B 66 4B [19:20:38]GetLastDocTimeStamp 1724267851 [19:20:38]current date 1724268038 [19:20:38]FM_GetShiftState [19:20:38]SAM_PROTO_GetShiftState [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 13 01 00 [19:20:38]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [19:20:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:20:38]wFMCommunicate OK [19:20:38]SAM_PROTO_GetShiftState done [19:20:38]FM_GetShiftState done [19:20:38]opened in 1724200467 [19:20:38]opened+sec_in_day 1724286867 [19:20:38]quantity*price = 0 [19:20:38]sum+1 = 1 [19:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 376 21.08.2024 19:20 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 3613311 ФМ: 0000000000871776 ФД: 140359 ФПД: 254643343182630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192038&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140359&fm=254643343182630&tin=02508201610067®Number=0000000000092569&sum=0 [19:20:39]StoreToDocumentArchive [19:20:39]shift 454 fd 140359 [19:20:39]save to /storage/0454/doc_00140359 [19:20:39]save last doc name /storage/0454/doc_00140359 to /storage/kkm_last_doc_name [19:20:39]save OK [19:20:39]Clear old archive folders... [19:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:20:39]tlvbuf is 00C89FF0 [19:20:39]SAM_PROTO_ClearQueue [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 09 00 00 [19:20:39]Write to MH i2c: E2 08 00 69 19 80 09 00 00 00 00 00 00 F4 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 69 19 00 90 00 F6 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_ClearQueue done [19:20:39]KKMCreateOFDPacket [19:20:39]OFDProtocolAddRootSTLVToBuf [19:20:39]FM_MakeSignedData [19:20:39]FM_MakeSignedData [19:20:39]SAM_PROTO_SignData [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 01 02 [19:20:39]Write to MH i2c: E2 08 00 6A 19 80 0D 01 02 00 00 00 00 FC [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 6A 19 00 90 00 F7 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=255 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 06 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 24 02 00 35 04 06 00 [19:20:39]Write to MH i2c: E2 02 01 6B 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 06 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 24 02 00 35 04 06 00 00 00 8F [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=11 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 02 02 06 E7 98 C6 03 CB 26 [19:20:39]Write to MH i2c: E2 0E 00 6C 19 80 0D 02 02 06 00 E7 98 C6 03 CB 26 00 00 44 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 03 02 [19:20:39]Write to MH i2c: E2 08 00 6D 19 80 0D 03 02 00 00 00 00 01 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0B 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 0B 00 6D 19 00 9A 8C 71 7A 62 24 FF EF 90 00 87 [19:20:39]RAPDU: 9A 8C 71 7A 62 24 FF EF 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_SignData done [19:20:39]FM_MakeSignedData done [19:20:39]CreateOFDProtocolMessage [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 11 00 00 [19:20:39]Write to MH i2c: E2 08 00 6E 19 80 11 00 00 00 00 00 00 01 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 17 00 6E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 58 [19:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:20:39]wFMCommunicate OK [19:20:39]CreateOFDProtocolMessage done [19:20:39]OFDSenderStorePacket 140359 [19:20:39]StoreOFDPacket docnum=140359 [19:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 85 EF 08 01 95 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 06 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 24 02 00 35 04 06 00 E7 98 C6 03 CB 26 9A 8C 71 7A 62 24 FF EF [19:20:39]CheckFolder [19:20:39]dirname=/storage/ofd_packets [19:20:39]CheckFolder done [19:20:39]ProducePacketName [19:20:39]name=ofd_packets/00140359 [19:20:39]NVStorageSaveData ofd_packets/00140359 [19:20:39]File name is /storage/ofd_packets/00140359 [19:20:39]Write 302 bytes [19:20:39]NVStorageSaveData done [19:20:39]OFDSenderStorePacket done [19:20:39]KKMCreateOFDPacket done [19:20:39]NVStorageSaveData kkm_last_timestamp [19:20:39]File name is /storage/kkm_last_timestamp [19:20:39]Write 4 bytes [19:20:39]NVStorageSaveData done [19:20:39]OFD Sender: Processing packet 140359 [packets to send 137, broken 136] [19:20:39]ProducePacketName [19:20:39]name=ofd_packets/00140359 [19:20:39]OFD Sender: To server: pG, [19:20:39]CommunicateWithHost lk.salyk.kg:30040 [19:20:39]ConnectInit lk.salyk.kg [19:20:39]ExternCall_PrintAddStr [19:20:39]wPrintStart [19:20:39]Write to MH i2c: 01 00 00 6F 19 88 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 07 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: 01 07 00 6F 19 00 00 00 00 00 FF 0F 9D [19:20:39]RasterBufferAndPrint [19:20:39]line Счет N : (1)594217 [19:20:39]line ИНН: 02508201610067 [19:20:39]line Контрольно-Кассовый Чек [19:20:39]line ПРОДАЖА [19:20:39]line ТРК (МРК, ГНК) : 34 [19:20:39]line Товар: 2710194210 [19:20:39]line ДТ(л)-К-5 [19:20:39]line 100.000 * 0.00 [19:20:39]line = 0.00 [19:20:39]line НДС 12% НСП 1% [19:20:39]line > о реализуемом товаре [19:20:39]line ИТОГО: 0.00 [19:20:39]line НСП 1% : 0.00 [19:20:39]line НДС 12% : 0.00 [19:20:39]line Наличными: 0.00 [19:20:39]line Безнал.: 0.00 [19:20:39]line Место: АЗС № 136 "Партнер Нефть" [19:20:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:20:39]line СНО: Общий режим [19:20:39]line Чек 376 21.08.2024 19:20 [19:20:39]line Смена: 454 ФФД: 1.0 [19:20:39]line ЗНМ: 0300000067 [19:20:39]line РНМ: 0000000000092569 [19:20:39]line Версия ККМ: 001 [19:20:39]line Талоны: Топливные Талоны [19:20:39]line 3613311 [19:20:39]line ФМ: 0000000000871776 [19:20:39]line ФД: 140359 [19:20:39]line ФПД: 254643343182630 [19:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192038&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140359&fm=254643343182630&tin=02508201610067®Number=0000000000092569&sum=0 [19:20:40]Connected sock=11 [19:20: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 37 36 10 01 00 00 85 EF 08 01 95 written 0, free lines is 4095 [19:20:40]E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 01 00 00 F4 03 04 00 06 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 47 24 02 00 35 04 06 00 E7 98 C6 03 CB 26 9A 8C 71 7A 62 24 FF EF [19:20: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 37 36 4F 00 00 00 4E AB 47 00 4B 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 37 36 10 04 04 00 47 24 02 00 F4 03 04 00 96 E4 C5 66 B6 04 01 00 00 F5 AD 99 03 9C 04 67 BB [19:20:40]CommunicateWithHost err = 0 [19:20:40]CheckOFDResponse [19:20:40]1017 (14) - 77093643461234 [19:20:40]1041 (16) - 0000000000871776 [19:20:40]1040 (4) - 140359 [19:20:40]1012 (4) - 21.08.2024 12:59 [19:20:40]1206 (1) - 0 [19:20:40]OFD Sender: Remove packet 140359 [19:20:40]ProducePacketName [19:20:40]name=ofd_packets/00140359 [19:20:40]NVStorageDeleteData [19:20:40]Write to MH i2c: 01 00 00 99 19 B2 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 99 19 00 00 00 00 00 E2 0C A7 [19:20:40]RasterBufferAndPrint [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]written 0, free lines is 3305 [19:20:40]MH_Cut [19:20:40]Write to MH i2c: D1 01 00 A0 19 01 8B [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 A0 19 00 8A [19:20:40]Write to MH i2c: 01 00 00 A1 19 BA [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]OFD Sender: No OFD packet to send [19:20:41]*** Cut start [19:20:41]*** Partial cut [19:20:41]*** CUTSNS_PIN = 1 [19:20:41]*** CUTSNS_PIN = 0 [19:20:41]*** Brake cut motor [19:20:41]Read from MH i2c: 01 [19:20:41]MH_I2C_Read... [19:20:41]*** Stop cut motor [19:20:41]*** Cut end [19:20:41]Read from MH i2c: 01 07 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: 01 07 00 A1 19 00 00 00 00 00 FF 0F CF [19:20:41]process_action close_receipt done [19:20:41]requested_data is exist [19:20:41]produce_requested_data [19:20:41]requested_item fm.sn is exist - process it [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 11 00 00 [19:20:41]Write to MH i2c: E2 08 00 A2 19 80 11 00 00 00 00 00 00 35 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 A2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8C [19:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:20:41]wFMCommunicate OK [19:20:41]requested_item fd.num is exist - process it [19:20:41]SAM_PROTO_GetFieldsCounters [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 13 00 00 [19:20:41]Write to MH i2c: E2 08 00 A3 19 80 13 00 00 00 00 00 00 38 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:42]Read from MH i2c: E2 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 62 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 62 00 A3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 24 02 00 0E 04 04 00 C6 01 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 02 [19:20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 47 24 02 00 0E 04 04 00 C6 01 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 [19:20:42]wFMCommunicate OK [19:20:42]SAM_PROTO_GetFieldsCounters done [19:20:42]requested_item shift.num is exist - process it [19:20:42]requested_item shift.opened is exist - process it [19:20:42]req_shift_opened [19:20:42]FM_GetShiftState [19:20:42]SAM_PROTO_GetShiftState [19:20:42]wFMCommunicate request_size=4 [19:20:42]MH_SAM_APDU [19:20:42]CAPDU: 80 13 01 00 [19:20:42]Write to MH i2c: E2 08 00 A4 19 80 13 01 00 00 00 00 00 3A [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:42]Read from MH i2c: E2 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 0E 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 0E 00 A4 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BA [19:20:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:20:42]wFMCommunicate OK [19:20:42]SAM_PROTO_GetShiftState done [19:20:42]FM_GetShiftState done [19:20:42]req_shift_opened done [19:20:42]requested_item shift.open_date is exist - process it [19:20:42]req_shift_open_date [19:20:42]req_shift_open_date done [19:20:42]produce_requested_data done [19:20:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140359,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:20:42]process_action_free close_receipt [19:20:42]json_value_free [19:20:42]json_value_free done [19:20:42]process_json_proto returns [19:20:42]Send response to host [19:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140359,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:20:42]free response buf [19:20:42]execute_script done [19:20:42]execute_script returns [19:20:42]free content buf [19:20:42]Sock 7.Close socket [19:20:42]Sock 7.Thread stoped [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:18]int [19:21:18]Write to MH i2c: 01 00 00 A5 19 BE [19:21:18]*** FLAG_PRN_KEY set [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 A5 19 00 08 00 00 00 FF 0F DB [19:21:18]state=0 [19:21:18]Key pressed [19:21:18]Feed [19:21:18]Write to MH i2c: D8 00 00 A6 19 96 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D8 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D8 01 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: D8 01 00 A6 19 00 97 [19:21:18]int [19:21:18]Write to MH i2c: 01 00 00 A7 19 C0 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 A7 19 00 48 00 00 00 3C 00 4B [19:21:18]state=2 [19:21:18]Key pressed [19:21:18]int [19:21:18]Write to MH i2c: 01 00 00 A8 19 C1 [19:21:18]*** FLAG_PRN_KEY reset [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 F6 0F CD [19:21:18]state=2 [19:21:18]Stop feed [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:22:58]accept exits with 9 [19:22:58]New connection [19:22:58]New thread 3067469156 created [19:22:58]Thread 3067612516 joined [19:22:58]Waiting for new connection... [19:22:58] Sock 9.Parse request [19:22:58]Sock 9.Check first char [19:22:58]Sock 9.First char is OK [19:22:58]request: POST /json_proto HTTP/1.0 [19:22:58]Method: POST [19:22:58]URL: /json_proto [19:22:58]Method is POST - this is cgi request [19:22:58]url: /json_proto [19:22:58]query_string will be loaded in cgi processing [19:22:58]execute_cgi json_proto POST (null) [19:22:58]execute_cgi path=json_proto method=POST [19:22:58]POST find Content-Length [19:22:58]Host: 172.17.45.67:8080 [19:22:58]Content-Length: 677 [19:22:58]Content-Type: application/json [19:22:58] [19:22:58]POST finish read [19:22:58]Found Content-Length = 677 [19:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:58]execute_script... [19:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:58]POST & json_proto [19:22:58]process_json_proto [19:22:58]json parsed OK: [19:22:58]protocol is kg_v1.0 [19:22:58]action value=close_receipt [19:22:58]process_action close_receipt [19:22:58]cmd_close_receipt [19:22:58]MH_GetDate [19:22:58]Write to MH i2c: F0 00 00 A9 19 B1 [19:22:58]Write i2c OK [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 09 00 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: F0 09 00 A9 19 00 93 3E C6 66 5F 7F 2B 66 26 [19:22:58]GetLastDocTimeStamp 1724268038 [19:22:58]current date 1724268179 [19:22:58]FM_GetShiftState [19:22:58]SAM_PROTO_GetShiftState [19:22:58]wFMCommunicate request_size=4 [19:22:58]MH_SAM_APDU [19:22:58]CAPDU: 80 13 01 00 [19:22:58]Write to MH i2c: E2 08 00 AA 19 80 13 01 00 00 00 00 00 40 [19:22:58]Write i2c OK [19:22:58]MH_I2C_Read... [19:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:58]Read from MH i2c: E2 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: E2 0E 00 [19:22:58]MH_I2C_Read... [19:22:58]Read from MH i2c: E2 0E 00 AA 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C0 [19:22:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:22:58]wFMCommunicate OK [19:22:58]SAM_PROTO_GetShiftState done [19:22:58]FM_GetShiftState done [19:22:58]opened in 1724200467 [19:22:58]opened+sec_in_day 1724286867 [19:22:58]quantity*price = 50036 [19:22:58]sum+1 = 50037 [19:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 377 21.08.2024 19:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140360 ФПД: 189169230839964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140360&fm=189169230839964&tin=02508201610067®Number=0000000000092569&sum=50000 [19:22:59]StoreToDocumentArchive [19:22:59]shift 454 fd 140360 [19:22:59]save to /storage/0454/doc_00140360 [19:22:59]save last doc name /storage/0454/doc_00140360 to /storage/kkm_last_doc_name [19:22:59]save OK [19:22:59]Clear old archive folders... [19:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:59]tlvbuf is B6F7BB20 [19:22:59]SAM_PROTO_ClearQueue [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 09 00 00 [19:22:59]Write to MH i2c: E2 08 00 B7 19 80 09 00 00 00 00 00 00 42 [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [19:22:59]RAPDU: 90 00 [19:22:59]wFMCommunicate OK [19:22:59]SAM_PROTO_ClearQueue done [19:22:59]KKMCreateOFDPacket [19:22:59]OFDProtocolAddRootSTLVToBuf [19:22:59]FM_MakeSignedData [19:22:59]FM_MakeSignedData [19:22:59]SAM_PROTO_SignData [19:22:59]wFMCommunicate request_size=4 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 0D 01 02 [19:22:59]Write to MH i2c: E2 08 00 B8 19 80 0D 01 02 00 00 00 00 4A [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:59]Read from MH i2c: E2 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 [19:22:59]MH_I2C_Read... [19:22:59]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [19:22:59]RAPDU: 90 00 [19:22:59]wFMCommunicate OK [19:22:59]wFMCommunicate request_size=255 [19:22:59]MH_SAM_APDU [19:22:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 24 02 00 35 04 06 00 AC [19:22:59]Write to MH i2c: E2 02 01 B9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 24 02 00 35 04 06 00 AC 00 00 2B [19:22:59]Write i2c OK [19:22:59]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [19:23:00]RAPDU: 90 00 [19:23:00]wFMCommunicate OK [19:23:00]wFMCommunicate request_size=10 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 0D 02 02 05 0C 64 CE 80 9C [19:23:00]Write to MH i2c: E2 0D 00 BA 19 80 0D 02 02 05 00 0C 64 CE 80 9C 00 00 B1 [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [19:23:00]RAPDU: 90 00 [19:23:00]wFMCommunicate OK [19:23:00]wFMCommunicate request_size=4 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 0D 03 02 [19:23:00]Write to MH i2c: E2 08 00 BB 19 80 0D 03 02 00 00 00 00 4F [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 0B 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 0B 00 BB 19 00 A3 10 15 2B 8B 0C FD 1F 90 00 F6 [19:23:00]RAPDU: A3 10 15 2B 8B 0C FD 1F 90 00 [19:23:00]wFMCommunicate OK [19:23:00]SAM_PROTO_SignData done [19:23:00]FM_MakeSignedData done [19:23:00]CreateOFDProtocolMessage [19:23:00]wFMCommunicate request_size=4 [19:23:00]MH_SAM_APDU [19:23:00]CAPDU: 80 11 00 00 [19:23:00]Write to MH i2c: E2 08 00 BC 19 80 11 00 00 00 00 00 00 4F [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:00]Read from MH i2c: E2 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 17 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: E2 17 00 BC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [19:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:00]wFMCommunicate OK [19:23:00]CreateOFDProtocolMessage done [19:23:00]OFDSenderStorePacket 140360 [19:23:00]StoreOFDPacket docnum=140360 [19:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 17 AE 07 01 F0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 24 02 00 35 04 06 00 AC 0C 64 CE 80 9C A3 10 15 2B 8B 0C FD 1F [19:23:00]CheckFolder [19:23:00]dirname=/storage/ofd_packets [19:23:00]CheckFolder done [19:23:00]ProducePacketName [19:23:00]name=ofd_packets/00140360 [19:23:00]NVStorageSaveData ofd_packets/00140360 [19:23:00]File name is /storage/ofd_packets/00140360 [19:23:00]Write 301 bytes [19:23:00]NVStorageSaveData done [19:23:00]OFDSenderStorePacket done [19:23:00]KKMCreateOFDPacket done [19:23:00]NVStorageSaveData kkm_last_timestamp [19:23:00]File name is /storage/kkm_last_timestamp [19:23:00]Write 4 bytes [19:23:00]NVStorageSaveData done [19:23:00]ExternCall_PrintAddStr [19:23:00]wPrintStart [19:23:00]Write to MH i2c: 01 00 00 BD 19 D6 [19:23:00]Write i2c OK [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 07 00 [19:23:00]MH_I2C_Read... [19:23:00]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 FF 0F EB [19:23:00]RasterBufferAndPrint [19:23:00]line Счет N : (1)594218 [19:23:00]line ИНН: 02508201610067 [19:23:00]line Контрольно-Кассовый Чек [19:23:00]line ПРОДАЖА [19:23:00]line ТРК (МРК, ГНК) : 62 [19:23:00]line Товар: 2710124130 [19:23:00]line Аи-92-К-5 [19:23:00]line 7.380 * 67.80 [19:23:00]line = 500.36 [19:23:00]line НДС 12% НСП 1% [19:23:00]line > о реализуемом товаре [19:23:00]line ОКРУГЛЕНИЕ: -0.36 [19:23:00]line ИТОГО: 500.00 [19:23:00]line Внесено: 500.00 [19:23:00]line СДАЧА: 0.00 [19:23:00]line НСП 1% : 4.43 [19:23:00]line НДС 12% : 53.14 [19:23:00]line Наличными: 500.00 [19:23:00]line Безнал.: 0.00 [19:23:00]line Место: АЗС № 136 "Партнер Нефть" [19:23:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:23:00]line СНО: Общий режим [19:23:00]line Чек 377 21.08.2024 19:22 [19:23:00]line Смена: 454 ФФД: 1.0 [19:23:00]line ЗНМ: 0300000067 [19:23:00]line РНМ: 0000000000092569 [19:23:00]line Версия ККМ: 001 [19:23:00]line ФМ: 0000000000871776 [19:23:00]line ФД: 140360 [19:23:00]line ФПД: 189169230839964 [19:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192259&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140360&fm=189169230839964&tin=02508201610067®Number=0000000000092569&sum=50000 [19:23:00]OFD Sender: Processing packet 140360 [packets to send 137, broken 136] [19:23:00]ProducePacketName [19:23:00]name=ofd_packets/00140360 [19:23:00]OFD Sender: To server: pG, [19:23:00]CommunicateWithHost lk.salyk.kg:30040 [19:23:00]ConnectInit lk.salyk.kg [19:23:00]written 0, free lines is 4095 [19:23:00]Connected sock=10 [19:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 17 AE 07 01 F0 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 93 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 48 24 02 00 35 04 06 00 AC 0C 64 CE 80 9C A3 10 15 2B 8B 0C FD 1F [19:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A3 BC 47 00 F4 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 37 36 10 04 04 00 48 24 02 00 F4 03 04 00 23 E5 C5 66 B6 04 01 00 00 17 BA 6E EA 9D 74 67 9D [19:23:00]CommunicateWithHost err = 0 [19:23:00]CheckOFDResponse [19:23:00]1017 (14) - 77093643461234 [19:23:00]1041 (16) - 0000000000871776 [19:23:00]1040 (4) - 140360 [19:23:00]1012 (4) - 21.08.2024 13:01 [19:23:00]1206 (1) - 0 [19:23:00]OFD Sender: Remove packet 140360 [19:23:00]ProducePacketName [19:23:00]name=ofd_packets/00140360 [19:23:00]NVStorageDeleteData [19:23:01]Write to MH i2c: 01 00 00 E8 19 01 [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 07 00 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: 01 07 00 E8 19 00 00 00 00 00 E1 0C F5 [19:23:01]RasterBufferAndPrint [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]line [19:23:01]written 0, free lines is 3302 [19:23:01]MH_Cut [19:23:01]Write to MH i2c: D1 01 00 EF 19 01 DA [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 01 00 [19:23:01]MH_I2C_Read... [19:23:01]Read from MH i2c: D1 01 00 EF 19 00 D9 [19:23:01]Write to MH i2c: 01 00 00 F0 19 09 [19:23:01]Write i2c OK [19:23:01]MH_I2C_Read... [19:23:01]OFD Sender: No OFD packet to send [19:23:01]*** Cut start [19:23:01]*** Partial cut [19:23:01]*** CUTSNS_PIN = 1 [19:23:01]*** CUTSNS_PIN = 0 [19:23:01]*** Brake cut motor [19:23:02]Read from MH i2c: 01 [19:23:02]MH_I2C_Read... [19:23:02]*** Stop cut motor [19:23:02]*** Cut end [19:23:02]Read from MH i2c: 01 07 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: 01 07 00 F0 19 00 00 00 00 00 FF 0F 1E [19:23:02]process_action close_receipt done [19:23:02]requested_data is exist [19:23:02]produce_requested_data [19:23:02]requested_item fm.sn is exist - process it [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 11 00 00 [19:23:02]Write to MH i2c: E2 08 00 F1 19 80 11 00 00 00 00 00 00 84 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 17 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 17 00 F1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DB [19:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:02]wFMCommunicate OK [19:23:02]requested_item fd.num is exist - process it [19:23:02]SAM_PROTO_GetFieldsCounters [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 00 00 [19:23:02]Write to MH i2c: E2 08 00 F2 19 80 13 00 00 00 00 00 00 87 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 62 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 62 00 F2 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 24 02 00 0E 04 04 00 C6 01 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 55 [19:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 48 24 02 00 0E 04 04 00 C6 01 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 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetFieldsCounters done [19:23:02]requested_item shift.num is exist - process it [19:23:02]requested_item shift.opened is exist - process it [19:23:02]req_shift_opened [19:23:02]FM_GetShiftState [19:23:02]SAM_PROTO_GetShiftState [19:23:02]wFMCommunicate request_size=4 [19:23:02]MH_SAM_APDU [19:23:02]CAPDU: 80 13 01 00 [19:23:02]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [19:23:02]Write i2c OK [19:23:02]MH_I2C_Read... [19:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:02]Read from MH i2c: E2 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 [19:23:02]MH_I2C_Read... [19:23:02]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 09 [19:23:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:23:02]wFMCommunicate OK [19:23:02]SAM_PROTO_GetShiftState done [19:23:02]FM_GetShiftState done [19:23:02]req_shift_opened done [19:23:02]requested_item shift.open_date is exist - process it [19:23:02]req_shift_open_date [19:23:02]req_shift_open_date done [19:23:02]produce_requested_data done [19:23:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140360,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:23:02]process_action_free close_receipt [19:23:02]json_value_free [19:23:02]json_value_free done [19:23:02]process_json_proto returns [19:23:02]Send response to host [19:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140360,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:23:02]free response buf [19:23:02]execute_script done [19:23:02]execute_script returns [19:23:02]free content buf [19:23:02]Sock 9.Close socket [19:23:02]Sock 9.Thread stoped [19:23:06]OFD Sender: No OFD packet to send [19:23:07]accept exits with 7 [19:23:07]New connection [19:23:07]New thread 3067612516 created [19:23:07]Thread 3067469156 joined [19:23:07]Waiting for new connection... [19:23:07] Sock 7.Parse request [19:23:07]Sock 7.Check first char [19:23:07]Sock 7.First char is OK [19:23:07]request: POST /json_proto HTTP/1.0 [19:23:07]Method: POST [19:23:07]URL: /json_proto [19:23:07]Method is POST - this is cgi request [19:23:07]url: /json_proto [19:23:07]query_string will be loaded in cgi processing [19:23:07]execute_cgi json_proto POST (null) [19:23:07]execute_cgi path=json_proto method=POST [19:23:07]POST find Content-Length [19:23:07]Host: 172.17.45.67:8080 [19:23:07]Content-Length: 677 [19:23:07]Content-Type: application/json [19:23:07] [19:23:07]POST finish read [19:23:07]Found Content-Length = 677 [19:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:07]execute_script... [19: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)594219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:07]POST & json_proto [19:23:07]process_json_proto [19:23:07]json parsed OK: [19:23:07]protocol is kg_v1.0 [19:23:07]action value=close_receipt [19:23:07]process_action close_receipt [19:23:07]cmd_close_receipt [19:23:07]MH_GetDate [19:23:07]Write to MH i2c: F0 00 00 F4 19 FC [19:23:07]Write i2c OK [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 09 00 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: F0 09 00 F4 19 00 9B 3E C6 66 5F 7F 2B 66 79 [19:23:07]GetLastDocTimeStamp 1724268179 [19:23:07]current date 1724268187 [19:23:07]FM_GetShiftState [19:23:07]SAM_PROTO_GetShiftState [19:23:07]wFMCommunicate request_size=4 [19:23:07]MH_SAM_APDU [19:23:07]CAPDU: 80 13 01 00 [19:23:07]Write to MH i2c: E2 08 00 F5 19 80 13 01 00 00 00 00 00 8B [19:23:07]Write i2c OK [19:23:07]MH_I2C_Read... [19:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:07]Read from MH i2c: E2 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: E2 0E 00 [19:23:07]MH_I2C_Read... [19:23:07]Read from MH i2c: E2 0E 00 F5 19 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0B [19:23:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:23:07]wFMCommunicate OK [19:23:07]SAM_PROTO_GetShiftState done [19:23:07]FM_GetShiftState done [19:23:07]opened in 1724200467 [19:23:07]opened+sec_in_day 1724286867 [19:23:07]quantity*price = 50036 [19:23:07]sum+1 = 50037 [19:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 378 21.08.2024 19:23 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140361 ФПД: 104404886417437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140361&fm=104404886417437&tin=02508201610067®Number=0000000000092569&sum=50000 [19:23:08]StoreToDocumentArchive [19:23:08]shift 454 fd 140361 [19:23:08]save to /storage/0454/doc_00140361 [19:23:08]save last doc name /storage/0454/doc_00140361 to /storage/kkm_last_doc_name [19:23:08]save OK [19:23:08]Clear old archive folders... [19:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:08]tlvbuf is 00C900E0 [19:23:08]SAM_PROTO_ClearQueue [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 09 00 00 [19:23:08]Write to MH i2c: E2 08 00 02 1A 80 09 00 00 00 00 00 00 8E [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]SAM_PROTO_ClearQueue done [19:23:08]KKMCreateOFDPacket [19:23:08]OFDProtocolAddRootSTLVToBuf [19:23:08]FM_MakeSignedData [19:23:08]FM_MakeSignedData [19:23:08]SAM_PROTO_SignData [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 0D 01 02 [19:23:08]Write to MH i2c: E2 08 00 03 1A 80 0D 01 02 00 00 00 00 96 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]wFMCommunicate request_size=255 [19:23:08]MH_SAM_APDU [19: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9B 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 24 02 00 35 04 06 00 5E [19:23:08]Write to MH i2c: E2 02 01 04 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9B 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 24 02 00 35 04 06 00 5E 00 00 33 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]wFMCommunicate request_size=10 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 0D 02 02 05 F4 A8 2A F0 1D [19:23:08]Write to MH i2c: E2 0D 00 05 1A 80 0D 02 02 05 00 F4 A8 2A F0 1D 00 00 76 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [19:23:08]RAPDU: 90 00 [19:23:08]wFMCommunicate OK [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 0D 03 02 [19:23:08]Write to MH i2c: E2 08 00 06 1A 80 0D 03 02 00 00 00 00 9B [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 0B 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 0B 00 06 1A 00 16 68 DB 05 0D 42 B1 9A 90 00 94 [19:23:08]RAPDU: 16 68 DB 05 0D 42 B1 9A 90 00 [19:23:08]wFMCommunicate OK [19:23:08]SAM_PROTO_SignData done [19:23:08]FM_MakeSignedData done [19:23:08]CreateOFDProtocolMessage [19:23:08]wFMCommunicate request_size=4 [19:23:08]MH_SAM_APDU [19:23:08]CAPDU: 80 11 00 00 [19:23:08]Write to MH i2c: E2 08 00 07 1A 80 11 00 00 00 00 00 00 9B [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:08]Read from MH i2c: E2 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 17 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: E2 17 00 07 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F2 [19:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:08]wFMCommunicate OK [19:23:08]CreateOFDProtocolMessage done [19:23:08]OFDSenderStorePacket 140361 [19:23:08]StoreOFDPacket docnum=140361 [19:23:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CC 80 07 01 CA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9B 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 24 02 00 35 04 06 00 5E F4 A8 2A F0 1D 16 68 DB 05 0D 42 B1 9A [19:23:08]CheckFolder [19:23:08]dirname=/storage/ofd_packets [19:23:08]CheckFolder done [19:23:08]ProducePacketName [19:23:08]name=ofd_packets/00140361 [19:23:08]NVStorageSaveData ofd_packets/00140361 [19:23:08]File name is /storage/ofd_packets/00140361 [19:23:08]Write 301 bytes [19:23:08]NVStorageSaveData done [19:23:08]OFDSenderStorePacket done [19:23:08]KKMCreateOFDPacket done [19:23:08]NVStorageSaveData kkm_last_timestamp [19:23:08]File name is /storage/kkm_last_timestamp [19:23:08]Write 4 bytes [19:23:08]NVStorageSaveData done [19:23:08]ExternCall_PrintAddStr [19:23:08]wPrintStart [19:23:08]Write to MH i2c: 01 00 00 08 1A 22 [19:23:08]Write i2c OK [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: 01 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: 01 07 00 [19:23:08]MH_I2C_Read... [19:23:08]Read from MH i2c: 01 07 00 08 1A 00 00 00 00 00 FF 0F 37 [19:23:08]RasterBufferAndPrint [19:23:08]line Счет N : (1)594219 [19:23:08]line ИНН: 02508201610067 [19:23:08]line Контрольно-Кассовый Чек [19:23:08]line ПРОДАЖА [19:23:08]line ТРК (МРК, ГНК) : 42 [19:23:08]line Товар: 2710124130 [19:23:08]line Аи-92-К-5 [19:23:08]line 7.380 * 67.80 [19:23:08]line = 500.36 [19:23:08]line НДС 12% НСП 1% [19:23:08]line > о реализуемом товаре [19:23:08]line ОКРУГЛЕНИЕ: -0.36 [19:23:08]line ИТОГО: 500.00 [19:23:08]line Внесено: 500.00 [19:23:08]line СДАЧА: 0.00 [19:23:08]line НСП 1% : 4.43 [19:23:08]line НДС 12% : 53.14 [19:23:08]line Наличными: 500.00 [19:23:08]line Безнал.: 0.00 [19:23:08]line Место: АЗС № 136 "Партнер Нефть" [19:23:08]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:23:08]line СНО: Общий режим [19:23:08]line Чек 378 21.08.2024 19:23 [19:23:08]line Смена: 454 ФФД: 1.0 [19:23:08]line ЗНМ: 0300000067 [19:23:08]line РНМ: 0000000000092569 [19:23:08]line Версия ККМ: 001 [19:23:08]line ФМ: 0000000000871776 [19:23:08]line ФД: 140361 [19:23:08]line ФПД: 104404886417437 [19:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192307&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140361&fm=104404886417437&tin=02508201610067®Number=0000000000092569&sum=50000 [19:23:08]written 0, free lines is 4095 [19:23:08]OFD Sender: Processing packet 140361 [packets to send 137, broken 136] [19:23:08]ProducePacketName [19:23:08]name=ofd_packets/00140361 [19:23:08]OFD Sender: To server: pG, [19:23:08]CommunicateWithHost lk.salyk.kg:30040 [19:23:08]ConnectInit lk.salyk.kg [19:23:09]Connected sock=10 [19: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 37 36 0F 01 00 00 CC 80 07 01 CA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 01 00 00 F4 03 04 00 9B 3E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 49 24 02 00 35 04 06 00 5E F4 A8 2A F0 1D 16 68 DB 05 0D 42 B1 9A [19:23:09]Write to MH i2c: 01 00 00 33 1A 4D [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 07 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: 01 07 00 33 1A 00 00 00 00 00 DD 0C 3D [19:23:09]RasterBufferAndPrint [19:23:09]line [19:23:09]line [19:23:09]line [19:23:09]line [19:23:09]line [19: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 37 36 4F 00 00 00 17 98 47 00 6E 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 37 36 10 04 04 00 49 24 02 00 F4 03 04 00 2B E5 C5 66 B6 04 01 00 00 EE 72 F2 2C 93 0F CD 39 [19:23:09]CommunicateWithHost err = 0 [19:23:09]CheckOFDResponse [19:23:09]1017 (14) - 77093643461234 [19:23:09]1041 (16) - 0000000000871776 [19:23:09]1040 (4) - 140361 [19:23:09]1012 (4) - 21.08.2024 13:01 [19:23:09]1206 (1) - 0 [19:23:09]OFD Sender: Remove packet 140361 [19:23:09]ProducePacketName [19:23:09]name=ofd_packets/00140361 [19:23:09]NVStorageDeleteData [19:23:09]written 0, free lines is 3320 [19:23:09]MH_Cut [19:23:09]Write to MH i2c: D1 01 00 3A 1A 01 26 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: D1 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: D1 01 00 [19:23:09]MH_I2C_Read... [19:23:09]Read from MH i2c: D1 01 00 3A 1A 00 25 [19:23:09]Write to MH i2c: 01 00 00 3B 1A 55 [19:23:09]Write i2c OK [19:23:09]MH_I2C_Read... [19:23:09]OFD Sender: No OFD packet to send [19:23:10]*** Cut start [19:23:10]*** Partial cut [19:23:10]*** CUTSNS_PIN = 1 [19:23:10]*** CUTSNS_PIN = 0 [19:23:10]*** Brake cut motor [19:23:10]Read from MH i2c: 01 [19:23:10]MH_I2C_Read... [19:23:10]*** Stop cut motor [19:23:10]*** Cut end [19:23:10]Read from MH i2c: 01 07 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [19:23:10]process_action close_receipt done [19:23:10]requested_data is exist [19:23:10]produce_requested_data [19:23:10]requested_item fm.sn is exist - process it [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 11 00 00 [19:23:10]Write to MH i2c: E2 08 00 3C 1A 80 11 00 00 00 00 00 00 D0 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 17 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 17 00 3C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 27 [19:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:23:10]wFMCommunicate OK [19:23:10]requested_item fd.num is exist - process it [19:23:10]SAM_PROTO_GetFieldsCounters [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 13 00 00 [19:23:10]Write to MH i2c: E2 08 00 3D 1A 80 13 00 00 00 00 00 00 D3 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 62 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 62 00 3D 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 24 02 00 0E 04 04 00 C6 01 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 A5 [19:23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 49 24 02 00 0E 04 04 00 C6 01 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 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_GetFieldsCounters done [19:23:10]requested_item shift.num is exist - process it [19:23:10]requested_item shift.opened is exist - process it [19:23:10]req_shift_opened [19:23:10]FM_GetShiftState [19:23:10]SAM_PROTO_GetShiftState [19:23:10]wFMCommunicate request_size=4 [19:23:10]MH_SAM_APDU [19:23:10]CAPDU: 80 13 01 00 [19:23:10]Write to MH i2c: E2 08 00 3E 1A 80 13 01 00 00 00 00 00 D5 [19:23:10]Write i2c OK [19:23:10]MH_I2C_Read... [19:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:10]Read from MH i2c: E2 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 0E 00 [19:23:10]MH_I2C_Read... [19:23:10]Read from MH i2c: E2 0E 00 3E 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 55 [19:23:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:23:10]wFMCommunicate OK [19:23:10]SAM_PROTO_GetShiftState done [19:23:10]FM_GetShiftState done [19:23:10]req_shift_opened done [19:23:10]requested_item shift.open_date is exist - process it [19:23:10]req_shift_open_date [19:23:10]req_shift_open_date done [19:23:10]produce_requested_data done [19:23:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140361,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:23:10]process_action_free close_receipt [19:23:10]json_value_free [19:23:10]json_value_free done [19:23:10]process_json_proto returns [19:23:10]Send response to host [19:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140361,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:23:10]free response buf [19:23:10]execute_script done [19:23:10]execute_script returns [19:23:10]free content buf [19:23:10]Sock 7.Close socket [19:23:10]Sock 7.Thread stoped [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:57]accept exits with 9 [19:24:57]New connection [19:24:57]New thread 3067469156 created [19:24:57]Thread 3067612516 joined [19:24:57]Waiting for new connection... [19:24:57] Sock 9.Parse request [19:24:57]Sock 9.Check first char [19:24:57]Sock 9.First char is OK [19:24:57]request: POST /json_proto HTTP/1.0 [19:24:57]Method: POST [19:24:57]URL: /json_proto [19:24:57]Method is POST - this is cgi request [19:24:57]url: /json_proto [19:24:57]query_string will be loaded in cgi processing [19:24:57]execute_cgi json_proto POST (null) [19:24:57]execute_cgi path=json_proto method=POST [19:24:57]POST find Content-Length [19:24:57]Host: 172.17.45.67:8080 [19:24:57]Content-Length: 682 [19:24:57]Content-Type: application/json [19:24:57] [19:24:57]POST finish read [19:24:57]Found Content-Length = 682 [19:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:57]execute_script... [19:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:57]POST & json_proto [19:24:57]process_json_proto [19:24:57]json parsed OK: [19:24:57]protocol is kg_v1.0 [19:24:57]action value=close_receipt [19:24:57]process_action close_receipt [19:24:57]cmd_close_receipt [19:24:57]MH_GetDate [19:24:57]Write to MH i2c: F0 00 00 3F 1A 48 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: F0 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: F0 09 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: F0 09 00 3F 1A 00 0A 3F C6 66 5F 7F 2B 66 35 [19:24:57]GetLastDocTimeStamp 1724268187 [19:24:57]current date 1724268298 [19:24:57]FM_GetShiftState [19:24:57]SAM_PROTO_GetShiftState [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 13 01 00 [19:24:57]Write to MH i2c: E2 08 00 40 1A 80 13 01 00 00 00 00 00 D7 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0E 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0E 00 40 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 57 [19:24:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:24:58]wFMCommunicate OK [19:24:58]SAM_PROTO_GetShiftState done [19:24:58]FM_GetShiftState done [19:24:58]opened in 1724200467 [19:24:58]opened+sec_in_day 1724286867 [19:24:58]quantity*price = 200043 [19:24:58]sum+1 = 200044 [19:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 379 21.08.2024 19:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140362 ФПД: 11341703133314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140362&fm=11341703133314&tin=02508201610067®Number=0000000000092569&sum=200000 [19:24:59]StoreToDocumentArchive [19:24:59]shift 454 fd 140362 [19:24:59]save to /storage/0454/doc_00140362 [19:24:59]save last doc name /storage/0454/doc_00140362 to /storage/kkm_last_doc_name [19:24:59]save OK [19:24:59]Clear old archive folders... [19:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:59]tlvbuf is 00C738B0 [19:24:59]SAM_PROTO_ClearQueue [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 09 00 00 [19:24:59]Write to MH i2c: E2 08 00 4D 1A 80 09 00 00 00 00 00 00 D9 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_ClearQueue done [19:24:59]KKMCreateOFDPacket [19:24:59]OFDProtocolAddRootSTLVToBuf [19:24:59]FM_MakeSignedData [19:24:59]FM_MakeSignedData [19:24:59]SAM_PROTO_SignData [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 0D 01 02 [19:24:59]Write to MH i2c: E2 08 00 4E 1A 80 0D 01 02 00 00 00 00 E1 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=255 [19:24:59]MH_SAM_APDU [19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 0A 3F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 24 02 00 35 04 06 00 0A [19:24:59]Write to MH i2c: E2 02 01 4F 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 0A 3F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 24 02 00 35 04 06 00 0A 00 00 54 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=10 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 0D 02 02 05 50 B2 2F B8 82 [19:24:59]Write to MH i2c: E2 0D 00 50 1A 80 0D 02 02 05 00 50 B2 2F B8 82 00 00 59 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [19:24:59]RAPDU: 90 00 [19:24:59]wFMCommunicate OK [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 0D 03 02 [19:24:59]Write to MH i2c: E2 08 00 51 1A 80 0D 03 02 00 00 00 00 E6 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0B 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0B 00 51 1A 00 62 CA 92 D4 9C 35 3E B9 90 00 41 [19:24:59]RAPDU: 62 CA 92 D4 9C 35 3E B9 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_SignData done [19:24:59]FM_MakeSignedData done [19:24:59]CreateOFDProtocolMessage [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 52 1A 80 11 00 00 00 00 00 00 E6 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 52 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:24:59]wFMCommunicate OK [19:24:59]CreateOFDProtocolMessage done [19:24:59]OFDSenderStorePacket 140362 [19:24:59]StoreOFDPacket docnum=140362 [19:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7D D6 07 01 BF D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 0A 3F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 24 02 00 35 04 06 00 0A 50 B2 2F B8 82 62 CA 92 D4 9C 35 3E B9 [19:24:59]CheckFolder [19:24:59]dirname=/storage/ofd_packets [19:24:59]CheckFolder done [19:24:59]ProducePacketName [19:24:59]name=ofd_packets/00140362 [19:24:59]NVStorageSaveData ofd_packets/00140362 [19:24:59]File name is /storage/ofd_packets/00140362 [19:24:59]Write 301 bytes [19:24:59]NVStorageSaveData done [19:24:59]OFDSenderStorePacket done [19:24:59]KKMCreateOFDPacket done [19:24:59]NVStorageSaveData kkm_last_timestamp [19:24:59]File name is /storage/kkm_last_timestamp [19:24:59]Write 4 bytes [19:24:59]NVStorageSaveData done [19:24:59]ExternCall_PrintAddStr [19:24:59]wPrintStart [19:24:59]Write to MH i2c: 01 00 00 53 1A 6D [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FF 0F 82 [19:24:59]RasterBufferAndPrint [19:24:59]line Счет N : (1)594220 [19:24:59]line ИНН: 02508201610067 [19:24:59]line Контрольно-Кассовый Чек [19:24:59]line ПРОДАЖА [19:24:59]line ТРК (МРК, ГНК) : 51 [19:24:59]line Товар: 2710124500 [19:24:59]line Аи-95-К-5 [19:24:59]line 26.960 * 74.20 [19:24:59]line = 2000.43 [19:24:59]line НДС 12% НСП 1% [19:24:59]line > о реализуемом товаре [19:24:59]line ОКРУГЛЕНИЕ: -0.43 [19:24:59]line ИТОГО: 2000.00 [19:24:59]line Внесено: 2000.00 [19:24:59]line СДАЧА: 0.00 [19:24:59]line НСП 1% : 17.70 [19:24:59]line НДС 12% : 212.43 [19:24:59]line Наличными: 2000.00 [19:24:59]line Безнал.: 0.00 [19:24:59]line Место: АЗС № 136 "Партнер Нефть" [19:24:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:24:59]line СНО: Общий режим [19:24:59]line Чек 379 21.08.2024 19:24 [19:24:59]line Смена: 454 ФФД: 1.0 [19:24:59]line ЗНМ: 0300000067 [19:24:59]line РНМ: 0000000000092569 [19:24:59]line Версия ККМ: 001 [19:24:59]line ФМ: 0000000000871776 [19:24:59]line ФД: 140362 [19:24:59]line ФПД: 11341703133314 [19:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T192458&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140362&fm=11341703133314&tin=02508201610067®Number=0000000000092569&sum=200000 [19:25:00]OFD Sender: Processing packet 140362 [packets to send 137, broken 136] [19:25:00]ProducePacketName [19:25:00]name=ofd_packets/00140362 [19:25:00]OFD Sender: To server: pG, [19:25:00]CommunicateWithHost lk.salyk.kg:30040 [19:25:00]ConnectInit lk.salyk.kg [19:25:00]written 0, free lines is 4095 [19:25:00]Connected sock=7 [19: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 37 36 0F 01 00 00 7D D6 07 01 BF D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 0A 3F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4A 24 02 00 35 04 06 00 0A 50 B2 2F B8 82 62 CA 92 D4 9C 35 3E B9 [19: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 37 36 4F 00 00 00 AC 4C 47 00 5B 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 37 36 10 04 04 00 4A 24 02 00 F4 03 04 00 9A E5 C5 66 B6 04 01 00 00 46 23 92 2F 7B A8 73 13 [19:25:00]CommunicateWithHost err = 0 [19:25:00]CheckOFDResponse [19:25:00]1017 (14) - 77093643461234 [19:25:00]1041 (16) - 0000000000871776 [19:25:00]1040 (4) - 140362 [19:25:00]1012 (4) - 21.08.2024 13:03 [19:25:00]1206 (1) - 0 [19:25:00]OFD Sender: Remove packet 140362 [19:25:00]ProducePacketName [19:25:00]name=ofd_packets/00140362 [19:25:00]NVStorageDeleteData [19:25:00]Write to MH i2c: 01 00 00 7E 1A 98 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 7E 1A 00 00 00 00 00 D0 0C 7B [19:25:00]RasterBufferAndPrint [19:25:00]line [19:25:00]line [19:25:00]line [19:25:00]line [19:25:00]line [19:25:00]written 0, free lines is 3286 [19:25:00]MH_Cut [19:25:00]Write to MH i2c: D1 01 00 85 1A 01 71 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: D1 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: D1 01 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: D1 01 00 85 1A 00 70 [19:25:00]Write to MH i2c: 01 00 00 86 1A A0 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]OFD Sender: No OFD packet to send [19:25:01]*** Cut start [19:25:01]*** Partial cut [19:25:01]*** CUTSNS_PIN = 1 [19:25:01]*** CUTSNS_PIN = 0 [19:25:01]*** Brake cut motor [19:25:01]Read from MH i2c: 01 [19:25:01]MH_I2C_Read... [19:25:01]*** Stop cut motor [19:25:01]*** Cut end [19:25:01]Read from MH i2c: 01 07 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 86 1A 00 00 00 00 00 FF 0F B5 [19:25:01]process_action close_receipt done [19:25:01]requested_data is exist [19:25:01]produce_requested_data [19:25:01]requested_item fm.sn is exist - process it [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 11 00 00 [19:25:01]Write to MH i2c: E2 08 00 87 1A 80 11 00 00 00 00 00 00 1B [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 17 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 17 00 87 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 72 [19:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:25:01]wFMCommunicate OK [19:25:01]requested_item fd.num is exist - process it [19:25:01]SAM_PROTO_GetFieldsCounters [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 13 00 00 [19:25:01]Write to MH i2c: E2 08 00 88 1A 80 13 00 00 00 00 00 00 1E [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:01]Read from MH i2c: E2 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 62 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: E2 62 00 88 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 24 02 00 0E 04 04 00 C6 01 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 F4 [19:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4A 24 02 00 0E 04 04 00 C6 01 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 [19:25:01]wFMCommunicate OK [19:25:01]SAM_PROTO_GetFieldsCounters done [19:25:01]requested_item shift.num is exist - process it [19:25:01]requested_item shift.opened is exist - process it [19:25:01]req_shift_opened [19:25:01]FM_GetShiftState [19:25:01]SAM_PROTO_GetShiftState [19:25:01]wFMCommunicate request_size=4 [19:25:01]MH_SAM_APDU [19:25:01]CAPDU: 80 13 01 00 [19:25:01]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 0E 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A0 [19:25:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:25:02]wFMCommunicate OK [19:25:02]SAM_PROTO_GetShiftState done [19:25:02]FM_GetShiftState done [19:25:02]req_shift_opened done [19:25:02]requested_item shift.open_date is exist - process it [19:25:02]req_shift_open_date [19:25:02]req_shift_open_date done [19:25:02]produce_requested_data done [19:25:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140362,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:25:02]process_action_free close_receipt [19:25:02]json_value_free [19:25:02]json_value_free done [19:25:02]process_json_proto returns [19:25:02]Send response to host [19:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140362,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:25:02]free response buf [19:25:02]execute_script done [19:25:02]execute_script returns [19:25:02]free content buf [19:25:02]Sock 9.Close socket [19:25:02]Sock 9.Thread stoped [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [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:04]accept exits with 10 [19:35:04]New connection [19:35:04]New thread 3067612516 created [19:35:04]Thread 3067469156 joined [19:35:04]Waiting for new connection... [19:35:04] Sock 10.Parse request [19:35:04]Sock 10.Check first char [19:35:04]Sock 10.First char is OK [19:35:04]request: POST /json_proto HTTP/1.0 [19:35:04]Method: POST [19:35:04]URL: /json_proto [19:35:04]Method is POST - this is cgi request [19:35:04]url: /json_proto [19:35:04]query_string will be loaded in cgi processing [19:35:04]execute_cgi json_proto POST (null) [19:35:04]execute_cgi path=json_proto method=POST [19:35:04]POST find Content-Length [19:35:04]Host: 172.17.45.67:8080 [19:35:04]Content-Length: 677 [19:35:04]Content-Type: application/json [19:35:04] [19:35:04]POST finish read [19:35:04]Found Content-Length = 677 [19:35:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:04]execute_script... [19:35: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)594221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:04]POST & json_proto [19:35:04]process_json_proto [19:35:04]json parsed OK: [19:35:04]protocol is kg_v1.0 [19:35:04]action value=close_receipt [19:35:04]process_action close_receipt [19:35:04]cmd_close_receipt [19:35:04]MH_GetDate [19:35:04]Write to MH i2c: F0 00 00 8A 1A 93 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: F0 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: F0 09 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: F0 09 00 8A 1A 00 69 41 C6 66 5F 7F 2B 66 E1 [19:35:04]GetLastDocTimeStamp 1724268298 [19:35:04]current date 1724268905 [19:35:04]FM_GetShiftState [19:35:04]SAM_PROTO_GetShiftState [19:35:04]wFMCommunicate request_size=4 [19:35:04]MH_SAM_APDU [19:35:04]CAPDU: 80 13 01 00 [19:35:04]Write to MH i2c: E2 08 00 8B 1A 80 13 01 00 00 00 00 00 22 [19:35:04]Write i2c OK [19:35:04]MH_I2C_Read... [19:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:04]Read from MH i2c: E2 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0E 00 [19:35:04]MH_I2C_Read... [19:35:04]Read from MH i2c: E2 0E 00 8B 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A2 [19:35:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:35:04]wFMCommunicate OK [19:35:04]SAM_PROTO_GetShiftState done [19:35:04]FM_GetShiftState done [19:35:04]opened in 1724200467 [19:35:04]opened+sec_in_day 1724286867 [19:35:04]quantity*price = 40002 [19:35:04]sum+1 = 40003 [19:35:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 380 21.08.2024 19:35 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140363 ФПД: 190015170332785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193505&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140363&fm=190015170332785&tin=02508201610067®Number=0000000000092569&sum=40000 [19:35:05]StoreToDocumentArchive [19:35:05]shift 454 fd 140363 [19:35:05]save to /storage/0454/doc_00140363 [19:35:05]save last doc name /storage/0454/doc_00140363 to /storage/kkm_last_doc_name [19:35:05]save OK [19:35:05]Clear old archive folders... [19:35:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:05]tlvbuf is B6F7B840 [19:35:05]SAM_PROTO_ClearQueue [19:35:05]wFMCommunicate request_size=4 [19:35:05]MH_SAM_APDU [19:35:05]CAPDU: 80 09 00 00 [19:35:05]Write to MH i2c: E2 08 00 98 1A 80 09 00 00 00 00 00 00 24 [19:35:05]Write i2c OK [19:35:05]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [19:35:06]RAPDU: 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_ClearQueue done [19:35:06]KKMCreateOFDPacket [19:35:06]OFDProtocolAddRootSTLVToBuf [19:35:06]FM_MakeSignedData [19:35:06]FM_MakeSignedData [19:35:06]SAM_PROTO_SignData [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 0D 01 02 [19:35:06]Write to MH i2c: E2 08 00 99 1A 80 0D 01 02 00 00 00 00 2C [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [19:35:06]RAPDU: 90 00 [19:35:06]wFMCommunicate OK [19:35:06]wFMCommunicate request_size=255 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 69 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 24 02 00 35 04 06 00 AC [19:35:06]Write to MH i2c: E2 02 01 9A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 69 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 24 02 00 35 04 06 00 AC 00 00 D1 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [19:35:06]RAPDU: 90 00 [19:35:06]wFMCommunicate OK [19:35:06]wFMCommunicate request_size=10 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 0D 02 02 05 D1 5A BA C8 71 [19:35:06]Write to MH i2c: E2 0D 00 9B 1A 80 0D 02 02 05 00 D1 5A BA C8 71 00 00 57 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [19:35:06]RAPDU: 90 00 [19:35:06]wFMCommunicate OK [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 0D 03 02 [19:35:06]Write to MH i2c: E2 08 00 9C 1A 80 0D 03 02 00 00 00 00 31 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 0B 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 0B 00 9C 1A 00 C7 38 2A 65 7C A7 6B 3A 90 00 88 [19:35:06]RAPDU: C7 38 2A 65 7C A7 6B 3A 90 00 [19:35:06]wFMCommunicate OK [19:35:06]SAM_PROTO_SignData done [19:35:06]FM_MakeSignedData done [19:35:06]CreateOFDProtocolMessage [19:35:06]wFMCommunicate request_size=4 [19:35:06]MH_SAM_APDU [19:35:06]CAPDU: 80 11 00 00 [19:35:06]Write to MH i2c: E2 08 00 9D 1A 80 11 00 00 00 00 00 00 31 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:06]Read from MH i2c: E2 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: E2 17 00 9D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [19:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:35:06]wFMCommunicate OK [19:35:06]CreateOFDProtocolMessage done [19:35:06]OFDSenderStorePacket 140363 [19:35:06]StoreOFDPacket docnum=140363 [19:35:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D B1 07 01 B8 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 69 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 24 02 00 35 04 06 00 AC D1 5A BA C8 71 C7 38 2A 65 7C A7 6B 3A [19:35:06]CheckFolder [19:35:06]dirname=/storage/ofd_packets [19:35:06]CheckFolder done [19:35:06]ProducePacketName [19:35:06]name=ofd_packets/00140363 [19:35:06]NVStorageSaveData ofd_packets/00140363 [19:35:06]File name is /storage/ofd_packets/00140363 [19:35:06]Write 301 bytes [19:35:06]NVStorageSaveData done [19:35:06]OFDSenderStorePacket done [19:35:06]KKMCreateOFDPacket done [19:35:06]NVStorageSaveData kkm_last_timestamp [19:35:06]File name is /storage/kkm_last_timestamp [19:35:06]Write 4 bytes [19:35:06]NVStorageSaveData done [19:35:06]ExternCall_PrintAddStr [19:35:06]wPrintStart [19:35:06]Write to MH i2c: 01 00 00 9E 1A B8 [19:35:06]Write i2c OK [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: 01 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: 01 07 00 [19:35:06]MH_I2C_Read... [19:35:06]Read from MH i2c: 01 07 00 9E 1A 00 00 00 00 00 FF 0F CD [19:35:06]RasterBufferAndPrint [19:35:06]line Счет N : (1)594221 [19:35:06]line ИНН: 02508201610067 [19:35:06]line Контрольно-Кассовый Чек [19:35:06]line ПРОДАЖА [19:35:06]line ТРК (МРК, ГНК) : 52 [19:35:06]line Товар: 2710124130 [19:35:06]line Аи-92-К-5 [19:35:06]line 5.900 * 67.80 [19:35:06]line = 400.02 [19:35:06]line НДС 12% НСП 1% [19:35:06]line > о реализуемом товаре [19:35:06]line ОКРУГЛЕНИЕ: -0.02 [19:35:06]line ИТОГО: 400.00 [19:35:06]line Внесено: 400.00 [19:35:06]line СДАЧА: 0.00 [19:35:06]line НСП 1% : 3.54 [19:35:06]line НДС 12% : 42.48 [19:35:06]line Наличными: 400.00 [19:35:06]line Безнал.: 0.00 [19:35:06]line Место: АЗС № 136 "Партнер Нефть" [19:35:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:35:06]line СНО: Общий режим [19:35:06]line Чек 380 21.08.2024 19:35 [19:35:06]line Смена: 454 ФФД: 1.0 [19:35:06]line ЗНМ: 0300000067 [19:35:06]line РНМ: 0000000000092569 [19:35:06]line Версия ККМ: 001 [19:35:06]line ФМ: 0000000000871776 [19:35:06]line ФД: 140363 [19:35:06]line ФПД: 190015170332785 [19:35:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193505&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140363&fm=190015170332785&tin=02508201610067®Number=0000000000092569&sum=40000 [19:35:06]OFD Sender: Processing packet 140363 [packets to send 137, broken 136] [19:35:06]ProducePacketName [19:35:06]name=ofd_packets/00140363 [19:35:06]OFD Sender: To server: pG, [19:35:06]CommunicateWithHost lk.salyk.kg:30040 [19:35:06]ConnectInit lk.salyk.kg [19:35:06]written 0, free lines is 4095 [19:35:07]Connected sock=9 [19:35: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 37 36 0F 01 00 00 5D B1 07 01 B8 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 69 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4B 24 02 00 35 04 06 00 AC D1 5A BA C8 71 C7 38 2A 65 7C A7 6B 3A [19:35:07]Write to MH i2c: 01 00 00 C9 1A E3 [19:35:07]Write i2c OK [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: 01 [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: 01 07 00 [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: 01 07 00 C9 1A 00 00 00 00 00 D1 0C C7 [19:35:07]RasterBufferAndPrint [19:35:07]line [19:35:07]line [19:35:07]line [19:35:07]line [19:35:07]line [19:35:07]written 0, free lines is 3287 [19:35:07]MH_Cut [19:35:07]Write to MH i2c: D1 01 00 D0 1A 01 BC [19:35:07]Write i2c OK [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: D1 [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: D1 01 00 [19:35:07]MH_I2C_Read... [19:35:07]Read from MH i2c: D1 01 00 D0 1A 00 BB [19:35:07]Write to MH i2c: 01 00 00 D1 1A EB [19:35:07]Write i2c OK [19:35:07]MH_I2C_Read... [19:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 CC 52 47 00 38 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 37 36 10 04 04 00 4B 24 02 00 F4 03 04 00 F9 E7 C5 66 B6 04 01 00 00 EA 28 32 DC DC F4 C8 57 [19:35:07]CommunicateWithHost err = 0 [19:35:07]CheckOFDResponse [19:35:07]1017 (14) - 77093643461234 [19:35:07]1041 (16) - 0000000000871776 [19:35:07]1040 (4) - 140363 [19:35:07]1012 (4) - 21.08.2024 13:13 [19:35:07]1206 (1) - 0 [19:35:07]OFD Sender: Remove packet 140363 [19:35:07]ProducePacketName [19:35:07]name=ofd_packets/00140363 [19:35:07]NVStorageDeleteData [19:35:07]OFD Sender: No OFD packet to send [19:35:08]*** Cut start [19:35:08]*** Partial cut [19:35:08]*** CUTSNS_PIN = 1 [19:35:08]*** CUTSNS_PIN = 0 [19:35:08]*** Brake cut motor [19:35:08]Read from MH i2c: 01 [19:35:08]MH_I2C_Read... [19:35:08]*** Stop cut motor [19:35:08]*** Cut end [19:35:08]Read from MH i2c: 01 07 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: 01 07 00 D1 1A 00 00 00 00 00 FF 0F 00 [19:35:08]process_action close_receipt done [19:35:08]requested_data is exist [19:35:08]produce_requested_data [19:35:08]requested_item fm.sn is exist - process it [19:35:08]wFMCommunicate request_size=4 [19:35:08]MH_SAM_APDU [19:35:08]CAPDU: 80 11 00 00 [19:35:08]Write to MH i2c: E2 08 00 D2 1A 80 11 00 00 00 00 00 00 66 [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:08]Read from MH i2c: E2 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 17 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 17 00 D2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BD [19:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:35:08]wFMCommunicate OK [19:35:08]requested_item fd.num is exist - process it [19:35:08]SAM_PROTO_GetFieldsCounters [19:35:08]wFMCommunicate request_size=4 [19:35:08]MH_SAM_APDU [19:35:08]CAPDU: 80 13 00 00 [19:35:08]Write to MH i2c: E2 08 00 D3 1A 80 13 00 00 00 00 00 00 69 [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:08]Read from MH i2c: E2 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 62 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 62 00 D3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 24 02 00 0E 04 04 00 C6 01 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 43 [19:35: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4B 24 02 00 0E 04 04 00 C6 01 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 [19:35:08]wFMCommunicate OK [19:35:08]SAM_PROTO_GetFieldsCounters done [19:35:08]requested_item shift.num is exist - process it [19:35:08]requested_item shift.opened is exist - process it [19:35:08]req_shift_opened [19:35:08]FM_GetShiftState [19:35:08]SAM_PROTO_GetShiftState [19:35:08]wFMCommunicate request_size=4 [19:35:08]MH_SAM_APDU [19:35:08]CAPDU: 80 13 01 00 [19:35:08]Write to MH i2c: E2 08 00 D4 1A 80 13 01 00 00 00 00 00 6B [19:35:08]Write i2c OK [19:35:08]MH_I2C_Read... [19:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:08]Read from MH i2c: E2 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 0E 00 [19:35:08]MH_I2C_Read... [19:35:08]Read from MH i2c: E2 0E 00 D4 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 EB [19:35:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:35:08]wFMCommunicate OK [19:35:08]SAM_PROTO_GetShiftState done [19:35:08]FM_GetShiftState done [19:35:08]req_shift_opened done [19:35:08]requested_item shift.open_date is exist - process it [19:35:08]req_shift_open_date [19:35:08]req_shift_open_date done [19:35:08]produce_requested_data done [19:35:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140363,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:35:08]process_action_free close_receipt [19:35:08]json_value_free [19:35:08]json_value_free done [19:35:08]process_json_proto returns [19:35:08]Send response to host [19:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140363,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:35:08]free response buf [19:35:08]execute_script done [19:35:08]execute_script returns [19:35:08]free content buf [19:35:08]Sock 10.Close socket [19:35:08]Sock 10.Thread stoped [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:44]accept exits with 7 [19:36:44]New connection [19:36:44]New thread 3067469156 created [19:36:44]Thread 3067612516 joined [19:36:44]Waiting for new connection... [19:36:44] Sock 7.Parse request [19:36:44]Sock 7.Check first char [19:36:44]Sock 7.First char is OK [19:36:44]request: POST /json_proto HTTP/1.0 [19:36:44]Method: POST [19:36:44]URL: /json_proto [19:36:44]Method is POST - this is cgi request [19:36:44]url: /json_proto [19:36:44]query_string will be loaded in cgi processing [19:36:44]execute_cgi json_proto POST (null) [19:36:44]execute_cgi path=json_proto method=POST [19:36:44]POST find Content-Length [19:36:44]Host: 172.17.45.67:8080 [19:36:44]Content-Length: 682 [19:36:44]Content-Type: application/json [19:36:44] [19:36:44]POST finish read [19:36:44]Found Content-Length = 682 [19:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:44]execute_script... [19:36: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)594222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:44]POST & json_proto [19:36:44]process_json_proto [19:36:44]json parsed OK: [19:36:44]protocol is kg_v1.0 [19:36:44]action value=close_receipt [19:36:44]process_action close_receipt [19:36:44]cmd_close_receipt [19:36:44]MH_GetDate [19:36:44]Write to MH i2c: F0 00 00 D5 1A DE [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: F0 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: F0 09 00 [19:36:44]MH_I2C_Read... [19:36:44]Read from MH i2c: F0 09 00 D5 1A 00 CD 41 C6 66 5F 7F 2B 66 90 [19:36:44]GetLastDocTimeStamp 1724268905 [19:36:44]current date 1724269005 [19:36:44]FM_GetShiftState [19:36:44]SAM_PROTO_GetShiftState [19:36:44]wFMCommunicate request_size=4 [19:36:44]MH_SAM_APDU [19:36:44]CAPDU: 80 13 01 00 [19:36:44]Write to MH i2c: E2 08 00 D6 1A 80 13 01 00 00 00 00 00 6D [19:36:44]Write i2c OK [19:36:44]MH_I2C_Read... [19:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:45]Read from MH i2c: E2 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: E2 0E 00 [19:36:45]MH_I2C_Read... [19:36:45]Read from MH i2c: E2 0E 00 D6 1A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 ED [19:36:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:36:45]wFMCommunicate OK [19:36:45]SAM_PROTO_GetShiftState done [19:36:45]FM_GetShiftState done [19:36:45]opened in 1724200467 [19:36:45]opened+sec_in_day 1724286867 [19:36:45]quantity*price = 200043 [19:36:45]sum+1 = 200044 [19:36:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 381 21.08.2024 19:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140364 ФПД: 78731741719364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193645&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140364&fm=78731741719364&tin=02508201610067®Number=0000000000092569&sum=200000 [19:36:46]StoreToDocumentArchive [19:36:46]shift 454 fd 140364 [19:36:46]save to /storage/0454/doc_00140364 [19:36:46]save last doc name /storage/0454/doc_00140364 to /storage/kkm_last_doc_name [19:36:46]save OK [19:36:46]Clear old archive folders... [19:36:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:46]tlvbuf is 00C73AF0 [19:36:46]SAM_PROTO_ClearQueue [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 09 00 00 [19:36:46]Write to MH i2c: E2 08 00 E3 1A 80 09 00 00 00 00 00 00 6F [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [19:36:46]RAPDU: 90 00 [19:36:46]wFMCommunicate OK [19:36:46]SAM_PROTO_ClearQueue done [19:36:46]KKMCreateOFDPacket [19:36:46]OFDProtocolAddRootSTLVToBuf [19:36:46]FM_MakeSignedData [19:36:46]FM_MakeSignedData [19:36:46]SAM_PROTO_SignData [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 0D 01 02 [19:36:46]Write to MH i2c: E2 08 00 E4 1A 80 0D 01 02 00 00 00 00 77 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [19:36:46]RAPDU: 90 00 [19:36:46]wFMCommunicate OK [19:36:46]wFMCommunicate request_size=255 [19:36:46]MH_SAM_APDU [19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CD 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 24 02 00 35 04 06 00 47 [19:36:46]Write to MH i2c: E2 02 01 E5 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CD 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 24 02 00 35 04 06 00 47 00 00 F0 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [19:36:46]RAPDU: 90 00 [19:36:46]wFMCommunicate OK [19:36:46]wFMCommunicate request_size=10 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 0D 02 02 05 9B 29 7F 6B 44 [19:36:46]Write to MH i2c: E2 0D 00 E6 1A 80 0D 02 02 05 00 9B 29 7F 6B 44 00 00 76 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [19:36:46]RAPDU: 90 00 [19:36:46]wFMCommunicate OK [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 0D 03 02 [19:36:46]Write to MH i2c: E2 08 00 E7 1A 80 0D 03 02 00 00 00 00 7C [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 0B 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 0B 00 E7 1A 00 60 D8 04 EF 81 F0 F1 2C 90 00 36 [19:36:46]RAPDU: 60 D8 04 EF 81 F0 F1 2C 90 00 [19:36:46]wFMCommunicate OK [19:36:46]SAM_PROTO_SignData done [19:36:46]FM_MakeSignedData done [19:36:46]CreateOFDProtocolMessage [19:36:46]wFMCommunicate request_size=4 [19:36:46]MH_SAM_APDU [19:36:46]CAPDU: 80 11 00 00 [19:36:46]Write to MH i2c: E2 08 00 E8 1A 80 11 00 00 00 00 00 00 7C [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:46]Read from MH i2c: E2 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 17 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: E2 17 00 E8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [19:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:36:46]wFMCommunicate OK [19:36:46]CreateOFDProtocolMessage done [19:36:46]OFDSenderStorePacket 140364 [19:36:46]StoreOFDPacket docnum=140364 [19:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3F F7 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CD 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 24 02 00 35 04 06 00 47 9B 29 7F 6B 44 60 D8 04 EF 81 F0 F1 2C [19:36:46]CheckFolder [19:36:46]dirname=/storage/ofd_packets [19:36:46]CheckFolder done [19:36:46]ProducePacketName [19:36:46]name=ofd_packets/00140364 [19:36:46]NVStorageSaveData ofd_packets/00140364 [19:36:46]File name is /storage/ofd_packets/00140364 [19:36:46]Write 301 bytes [19:36:46]NVStorageSaveData done [19:36:46]OFDSenderStorePacket done [19:36:46]KKMCreateOFDPacket done [19:36:46]NVStorageSaveData kkm_last_timestamp [19:36:46]File name is /storage/kkm_last_timestamp [19:36:46]Write 4 bytes [19:36:46]NVStorageSaveData done [19:36:46]ExternCall_PrintAddStr [19:36:46]wPrintStart [19:36:46]Write to MH i2c: 01 00 00 E9 1A 03 [19:36:46]Write i2c OK [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: 01 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: 01 07 00 [19:36:46]MH_I2C_Read... [19:36:46]Read from MH i2c: 01 07 00 E9 1A 00 00 00 00 00 FF 0F 18 [19:36:46]RasterBufferAndPrint [19:36:46]line Счет N : (1)594222 [19:36:46]line ИНН: 02508201610067 [19:36:46]line Контрольно-Кассовый Чек [19:36:46]line ПРОДАЖА [19:36:46]line ТРК (МРК, ГНК) : 41 [19:36:46]line Товар: 2710124500 [19:36:46]line Аи-95-К-5 [19:36:46]line 26.960 * 74.20 [19:36:46]line = 2000.43 [19:36:46]line НДС 12% НСП 1% [19:36:46]line > о реализуемом товаре [19:36:46]line ОКРУГЛЕНИЕ: -0.43 [19:36:46]line ИТОГО: 2000.00 [19:36:46]line Внесено: 2000.00 [19:36:46]line СДАЧА: 0.00 [19:36:46]line НСП 1% : 17.70 [19:36:46]line НДС 12% : 212.43 [19:36:46]line Наличными: 2000.00 [19:36:46]line Безнал.: 0.00 [19:36:46]line Место: АЗС № 136 "Партнер Нефть" [19:36:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:36:46]line СНО: Общий режим [19:36:46]line Чек 381 21.08.2024 19:36 [19:36:46]line Смена: 454 ФФД: 1.0 [19:36:46]line ЗНМ: 0300000067 [19:36:46]line РНМ: 0000000000092569 [19:36:46]line Версия ККМ: 001 [19:36:46]line ФМ: 0000000000871776 [19:36:46]line ФД: 140364 [19:36:46]line ФПД: 78731741719364 [19:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193645&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140364&fm=78731741719364&tin=02508201610067®Number=0000000000092569&sum=200000 [19:36:47]OFD Sender: Processing packet 140364 [packets to send 137, broken 136] [19:36:47]ProducePacketName [19:36:47]name=ofd_packets/00140364 [19:36:47]OFD Sender: To server: pG, [19:36:47]CommunicateWithHost lk.salyk.kg:30040 [19:36:47]ConnectInit lk.salyk.kg [19:36:47]written 0, free lines is 4095 [19:36:47]Connected sock=10 [19: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 37 36 0F 01 00 00 3F F7 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 CD 41 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4C 24 02 00 35 04 06 00 47 9B 29 7F 6B 44 60 D8 04 EF 81 F0 F1 2C [19:36:47]Write to MH i2c: 01 00 00 14 1B 2F [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: 01 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: 01 07 00 [19:36:47]MH_I2C_Read... [19: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 37 36 4F 00 00 00 18 2F 47 00 8F 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 37 36 10 04 04 00 4C 24 02 00 F4 03 04 00 5D E8 C5 66 B6 04 01 00 00 CA 17 A1 CA AA 19 C9 7D [19:36:47]CommunicateWithHost err = 0 [19:36:47]CheckOFDResponse [19:36:47]1017 (14) - 77093643461234 [19:36:47]1041 (16) - 0000000000871776 [19:36:47]1040 (4) - 140364 [19:36:47]1012 (4) - 21.08.2024 13:15 [19:36:47]1206 (1) - 0 [19:36:47]OFD Sender: Remove packet 140364 [19:36:47]ProducePacketName [19:36:47]name=ofd_packets/00140364 [19:36:47]NVStorageDeleteData [19:36:47]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 D8 0C 1A [19:36:47]RasterBufferAndPrint [19:36:47]line [19:36:47]line [19:36:47]line [19:36:47]line [19:36:47]line [19:36:47]written 0, free lines is 3333 [19:36:47]MH_Cut [19:36:47]Write to MH i2c: D1 01 00 1B 1B 01 08 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: D1 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: D1 01 00 [19:36:47]MH_I2C_Read... [19:36:47]Read from MH i2c: D1 01 00 1B 1B 00 07 [19:36:47]Write to MH i2c: 01 00 00 1C 1B 37 [19:36:47]Write i2c OK [19:36:47]MH_I2C_Read... [19:36:47]OFD Sender: No OFD packet to send [19:36:48]*** Cut start [19:36:48]*** Partial cut [19:36:48]*** CUTSNS_PIN = 1 [19:36:48]*** CUTSNS_PIN = 0 [19:36:48]*** Brake cut motor [19:36:48]Read from MH i2c: 01 [19:36:48]MH_I2C_Read... [19:36:48]*** Stop cut motor [19:36:48]*** Cut end [19:36:48]Read from MH i2c: 01 07 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: 01 07 00 1C 1B 00 00 00 00 00 FF 0F 4C [19:36:48]process_action close_receipt done [19:36:48]requested_data is exist [19:36:48]produce_requested_data [19:36:48]requested_item fm.sn is exist - process it [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 11 00 00 [19:36:48]Write to MH i2c: E2 08 00 1D 1B 80 11 00 00 00 00 00 00 B2 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 17 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 17 00 1D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 09 [19:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:36:48]wFMCommunicate OK [19:36:48]requested_item fd.num is exist - process it [19:36:48]SAM_PROTO_GetFieldsCounters [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 13 00 00 [19:36:48]Write to MH i2c: E2 08 00 1E 1B 80 13 00 00 00 00 00 00 B5 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 62 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 62 00 1E 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 24 02 00 0E 04 04 00 C6 01 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 93 [19:36:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4C 24 02 00 0E 04 04 00 C6 01 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 [19:36:48]wFMCommunicate OK [19:36:48]SAM_PROTO_GetFieldsCounters done [19:36:48]requested_item shift.num is exist - process it [19:36:48]requested_item shift.opened is exist - process it [19:36:48]req_shift_opened [19:36:48]FM_GetShiftState [19:36:48]SAM_PROTO_GetShiftState [19:36:48]wFMCommunicate request_size=4 [19:36:48]MH_SAM_APDU [19:36:48]CAPDU: 80 13 01 00 [19:36:48]Write to MH i2c: E2 08 00 1F 1B 80 13 01 00 00 00 00 00 B7 [19:36:48]Write i2c OK [19:36:48]MH_I2C_Read... [19:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:48]Read from MH i2c: E2 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0E 00 [19:36:48]MH_I2C_Read... [19:36:48]Read from MH i2c: E2 0E 00 1F 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 37 [19:36:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:36:48]wFMCommunicate OK [19:36:48]SAM_PROTO_GetShiftState done [19:36:48]FM_GetShiftState done [19:36:48]req_shift_opened done [19:36:48]requested_item shift.open_date is exist - process it [19:36:48]req_shift_open_date [19:36:48]req_shift_open_date done [19:36:48]produce_requested_data done [19:36:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140364,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:36:48]process_action_free close_receipt [19:36:48]json_value_free [19:36:48]json_value_free done [19:36:48]process_json_proto returns [19:36:48]Send response to host [19:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140364,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:36:48]free response buf [19:36:48]execute_script done [19:36:48]execute_script returns [19:36:48]free content buf [19:36:48]Sock 7.Close socket [19:36:48]Sock 7.Thread stoped [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:34]accept exits with 9 [19:38:34]New connection [19:38:34]New thread 3067612516 created [19:38:34]Thread 3067469156 joined [19:38:34]Waiting for new connection... [19:38:34] Sock 9.Parse request [19:38:34]Sock 9.Check first char [19:38:34]Sock 9.First char is OK [19:38:34]request: POST /json_proto HTTP/1.0 [19:38:34]Method: POST [19:38:34]URL: /json_proto [19:38:34]Method is POST - this is cgi request [19:38:34]url: /json_proto [19:38:34]query_string will be loaded in cgi processing [19:38:34]execute_cgi json_proto POST (null) [19:38:34]execute_cgi path=json_proto method=POST [19:38:34]POST find Content-Length [19:38:34]Host: 172.17.45.67:8080 [19:38:34]Content-Length: 677 [19:38:34]Content-Type: application/json [19:38:34] [19:38:34]POST finish read [19:38:34]Found Content-Length = 677 [19:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.940, "sum" : 470.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:34]execute_script... [19:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 6.940, "sum" : 470.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:34]POST & json_proto [19:38:34]process_json_proto [19:38:34]json parsed OK: [19:38:34]protocol is kg_v1.0 [19:38:34]action value=close_receipt [19:38:34]process_action close_receipt [19:38:34]cmd_close_receipt [19:38:34]MH_GetDate [19:38:34]Write to MH i2c: F0 00 00 20 1B 2A [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 09 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: F0 09 00 20 1B 00 3A 42 C6 66 5F 7F 2B 66 4A [19:38:34]GetLastDocTimeStamp 1724269005 [19:38:34]current date 1724269114 [19:38:34]FM_GetShiftState [19:38:34]SAM_PROTO_GetShiftState [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 01 00 [19:38:34]Write to MH i2c: E2 08 00 21 1B 80 13 01 00 00 00 00 00 B9 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 21 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 39 [19:38:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetShiftState done [19:38:34]FM_GetShiftState done [19:38:34]opened in 1724200467 [19:38:34]opened+sec_in_day 1724286867 [19:38:34]quantity*price = 47053 [19:38:34]sum+1 = 47054 [19:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.97 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 382 21.08.2024 19:38 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140365 ФПД: 56952857404555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140365&fm=56952857404555&tin=02508201610067®Number=0000000000092569&sum=47000 [19:38:35]StoreToDocumentArchive [19:38:35]shift 454 fd 140365 [19:38:35]save to /storage/0454/doc_00140365 [19:38:35]save last doc name /storage/0454/doc_00140365 to /storage/kkm_last_doc_name [19:38:35]save OK [19:38:35]Clear old archive folders... [19:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:35]tlvbuf is 00C8A660 [19:38:35]SAM_PROTO_ClearQueue [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 09 00 00 [19:38:35]Write to MH i2c: E2 08 00 2E 1B 80 09 00 00 00 00 00 00 BB [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_ClearQueue done [19:38:35]KKMCreateOFDPacket [19:38:35]OFDProtocolAddRootSTLVToBuf [19:38:35]FM_MakeSignedData [19:38:35]FM_MakeSignedData [19:38:35]SAM_PROTO_SignData [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 01 02 [19:38:35]Write to MH i2c: E2 08 00 2F 1B 80 0D 01 02 00 00 00 00 C3 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=255 [19:38:35]MH_SAM_APDU [19: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 1C 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 3B 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 24 02 00 35 04 06 00 33 [19:38:35]Write to MH i2c: E2 02 01 30 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 1C 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 3B 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 24 02 00 35 04 06 00 33 00 00 94 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=10 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 02 02 05 CC 5E D5 A4 8B [19:38:35]Write to MH i2c: E2 0D 00 31 1B 80 0D 02 02 05 00 CC 5E D5 A4 8B 00 00 FE [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [19:38:35]RAPDU: 90 00 [19:38:35]wFMCommunicate OK [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 0D 03 02 [19:38:35]Write to MH i2c: E2 08 00 32 1B 80 0D 03 02 00 00 00 00 C8 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0B 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 0B 00 32 1B 00 60 A9 2F 32 A1 59 91 71 90 00 2F [19:38:35]RAPDU: 60 A9 2F 32 A1 59 91 71 90 00 [19:38:35]wFMCommunicate OK [19:38:35]SAM_PROTO_SignData done [19:38:35]FM_MakeSignedData done [19:38:35]CreateOFDProtocolMessage [19:38:35]wFMCommunicate request_size=4 [19:38:35]MH_SAM_APDU [19:38:35]CAPDU: 80 11 00 00 [19:38:35]Write to MH i2c: E2 08 00 33 1B 80 11 00 00 00 00 00 00 C8 [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:35]Read from MH i2c: E2 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: E2 17 00 33 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1F [19:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:38:35]wFMCommunicate OK [19:38:35]CreateOFDProtocolMessage done [19:38:35]OFDSenderStorePacket 140365 [19:38:35]StoreOFDPacket docnum=140365 [19:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A0 20 07 01 67 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 1C 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 3B 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 24 02 00 35 04 06 00 33 CC 5E D5 A4 8B 60 A9 2F 32 A1 59 91 71 [19:38:35]CheckFolder [19:38:35]dirname=/storage/ofd_packets [19:38:35]CheckFolder done [19:38:35]ProducePacketName [19:38:35]name=ofd_packets/00140365 [19:38:35]NVStorageSaveData ofd_packets/00140365 [19:38:35]File name is /storage/ofd_packets/00140365 [19:38:35]Write 301 bytes [19:38:35]NVStorageSaveData done [19:38:35]OFDSenderStorePacket done [19:38:35]KKMCreateOFDPacket done [19:38:35]NVStorageSaveData kkm_last_timestamp [19:38:35]File name is /storage/kkm_last_timestamp [19:38:35]Write 4 bytes [19:38:35]NVStorageSaveData done [19:38:35]ExternCall_PrintAddStr [19:38:35]wPrintStart [19:38:35]Write to MH i2c: 01 00 00 34 1B 4F [19:38:35]Write i2c OK [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 [19:38:35]MH_I2C_Read... [19:38:35]Read from MH i2c: 01 07 00 34 1B 00 00 00 00 00 FF 0F 64 [19:38:35]RasterBufferAndPrint [19:38:35]line Счет N : (1)594223 [19:38:35]line ИНН: 02508201610067 [19:38:35]line Контрольно-Кассовый Чек [19:38:35]line ПРОДАЖА [19:38:35]line ТРК (МРК, ГНК) : 52 [19:38:35]line Товар: 2710124130 [19:38:35]line Аи-92-К-5 [19:38:35]line 6.940 * 67.80 [19:38:35]line = 470.53 [19:38:35]line НДС 12% НСП 1% [19:38:35]line > о реализуемом товаре [19:38:35]line ОКРУГЛЕНИЕ: -0.53 [19:38:35]line ИТОГО: 470.00 [19:38:35]line Внесено: 470.00 [19:38:35]line СДАЧА: 0.00 [19:38:35]line НСП 1% : 4.16 [19:38:35]line НДС 12% : 49.97 [19:38:35]line Наличными: 470.00 [19:38:35]line Безнал.: 0.00 [19:38:35]line Место: АЗС № 136 "Партнер Нефть" [19:38:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:38:35]line СНО: Общий режим [19:38:35]line Чек 382 21.08.2024 19:38 [19:38:35]line Смена: 454 ФФД: 1.0 [19:38:35]line ЗНМ: 0300000067 [19:38:35]line РНМ: 0000000000092569 [19:38:35]line Версия ККМ: 001 [19:38:35]line ФМ: 0000000000871776 [19:38:35]line ФД: 140365 [19:38:35]line ФПД: 56952857404555 [19:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193835&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140365&fm=56952857404555&tin=02508201610067®Number=0000000000092569&sum=47000 [19:38:36]OFD Sender: Processing packet 140365 [packets to send 137, broken 136] [19:38:36]ProducePacketName [19:38:36]name=ofd_packets/00140365 [19:38:36]OFD Sender: To server: pG, [19:38:36]CommunicateWithHost lk.salyk.kg:30040 [19:38:36]ConnectInit lk.salyk.kg [19:38:36]written 0, free lines is 4095 [19:38:36]Connected sock=10 [19:38: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 37 36 0F 01 00 00 A0 20 07 01 67 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 1C 1B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 CD B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 3B 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4D 24 02 00 35 04 06 00 33 CC 5E D5 A4 8B 60 A9 2F 32 A1 59 91 71 [19:38:36]Write to MH i2c: 01 00 00 5F 1B 7A [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 D6 0C 63 [19:38:36]RasterBufferAndPrint [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]line [19:38:36]written 0, free lines is 3293 [19:38:36]MH_Cut [19:38:36]Write to MH i2c: D1 01 00 66 1B 01 53 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 01 00 [19:38:36]MH_I2C_Read... [19:38:36]Read from MH i2c: D1 01 00 66 1B 00 52 [19:38:36]Write to MH i2c: 01 00 00 67 1B 82 [19:38:36]Write i2c OK [19:38:36]MH_I2C_Read... [19: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 37 36 4F 00 00 00 1F F9 47 00 FB 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 37 36 10 04 04 00 4D 24 02 00 F4 03 04 00 CB E8 C5 66 B6 04 01 00 00 01 06 24 D7 24 B6 56 44 [19:38:36]CommunicateWithHost err = 0 [19:38:36]CheckOFDResponse [19:38:36]1017 (14) - 77093643461234 [19:38:36]1041 (16) - 0000000000871776 [19:38:36]1040 (4) - 140365 [19:38:36]1012 (4) - 21.08.2024 13:16 [19:38:36]1206 (1) - 0 [19:38:36]OFD Sender: Remove packet 140365 [19:38:36]ProducePacketName [19:38:36]name=ofd_packets/00140365 [19:38:36]NVStorageDeleteData [19:38:37]OFD Sender: No OFD packet to send [19:38:37]*** Cut start [19:38:37]*** Partial cut [19:38:37]*** CUTSNS_PIN = 1 [19:38:37]*** CUTSNS_PIN = 0 [19:38:37]*** Brake cut motor [19:38:37]Read from MH i2c: 01 [19:38:37]MH_I2C_Read... [19:38:37]*** Stop cut motor [19:38:37]*** Cut end [19:38:37]Read from MH i2c: 01 07 00 [19:38:37]MH_I2C_Read... [19:38:37]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [19:38:37]process_action close_receipt done [19:38:37]requested_data is exist [19:38:37]produce_requested_data [19:38:37]requested_item fm.sn is exist - process it [19:38:37]wFMCommunicate request_size=4 [19:38:37]MH_SAM_APDU [19:38:37]CAPDU: 80 11 00 00 [19:38:37]Write to MH i2c: E2 08 00 68 1B 80 11 00 00 00 00 00 00 FD [19:38:37]Write i2c OK [19:38:37]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 17 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 17 00 68 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 54 [19:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:38:38]wFMCommunicate OK [19:38:38]requested_item fd.num is exist - process it [19:38:38]SAM_PROTO_GetFieldsCounters [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 13 00 00 [19:38:38]Write to MH i2c: E2 08 00 69 1B 80 13 00 00 00 00 00 00 00 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 62 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 62 00 69 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 24 02 00 0E 04 04 00 C6 01 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 E2 [19:38: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4D 24 02 00 0E 04 04 00 C6 01 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 [19:38:38]wFMCommunicate OK [19:38:38]SAM_PROTO_GetFieldsCounters done [19:38:38]requested_item shift.num is exist - process it [19:38:38]requested_item shift.opened is exist - process it [19:38:38]req_shift_opened [19:38:38]FM_GetShiftState [19:38:38]SAM_PROTO_GetShiftState [19:38:38]wFMCommunicate request_size=4 [19:38:38]MH_SAM_APDU [19:38:38]CAPDU: 80 13 01 00 [19:38:38]Write to MH i2c: E2 08 00 6A 1B 80 13 01 00 00 00 00 00 02 [19:38:38]Write i2c OK [19:38:38]MH_I2C_Read... [19:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:38]Read from MH i2c: E2 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 0E 00 [19:38:38]MH_I2C_Read... [19:38:38]Read from MH i2c: E2 0E 00 6A 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 82 [19:38:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:38:38]wFMCommunicate OK [19:38:38]SAM_PROTO_GetShiftState done [19:38:38]FM_GetShiftState done [19:38:38]req_shift_opened done [19:38:38]requested_item shift.open_date is exist - process it [19:38:38]req_shift_open_date [19:38:38]req_shift_open_date done [19:38:38]produce_requested_data done [19:38:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140365,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:38:38]process_action_free close_receipt [19:38:38]json_value_free [19:38:38]json_value_free done [19:38:38]process_json_proto returns [19:38:38]Send response to host [19:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140365,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:38:38]free response buf [19:38:38]execute_script done [19:38:38]execute_script returns [19:38:38]free content buf [19:38:38]Sock 9.Close socket [19:38:38]Sock 9.Thread stoped [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:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]accept exits with 7 [19:39:52]New connection [19:39:52]New thread 3067469156 created [19:39:52]Thread 3067612516 joined [19:39:52]Waiting for new connection... [19:39:52] Sock 7.Parse request [19:39:52]Sock 7.Check first char [19:39:52]Sock 7.First char is OK [19:39:52]request: POST /json_proto HTTP/1.0 [19:39:52]Method: POST [19:39:52]URL: /json_proto [19:39:52]Method is POST - this is cgi request [19:39:52]url: /json_proto [19:39:52]query_string will be loaded in cgi processing [19:39:52]execute_cgi json_proto POST (null) [19:39:52]execute_cgi path=json_proto method=POST [19:39:52]POST find Content-Length [19:39:52]Host: 172.17.45.67:8080 [19:39:52]Content-Length: 663 [19:39:52]Content-Type: application/json [19:39:52] [19:39:52]POST finish read [19:39:52]Found Content-Length = 663 [19:39:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:52]execute_script... [19:39: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)594225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:52]POST & json_proto [19:39:52]process_json_proto [19:39:52]json parsed OK: [19:39:52]protocol is kg_v1.0 [19:39:52]action value=close_receipt [19:39:52]process_action close_receipt [19:39:52]cmd_close_receipt [19:39:52]MH_GetDate [19:39:52]Write to MH i2c: F0 00 00 6B 1B 75 [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: F0 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: F0 09 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: F0 09 00 6B 1B 00 89 42 C6 66 5F 7F 2B 66 E4 [19:39:52]GetLastDocTimeStamp 1724269115 [19:39:52]current date 1724269193 [19:39:52]FM_GetShiftState [19:39:52]SAM_PROTO_GetShiftState [19:39:52]wFMCommunicate request_size=4 [19:39:52]MH_SAM_APDU [19:39:52]CAPDU: 80 13 01 00 [19:39:52]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [19:39:52]OFD Sender: No OFD packet to send [19:39:52]Write i2c OK [19:39:52]MH_I2C_Read... [19:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:52]Read from MH i2c: E2 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 0E 00 [19:39:52]MH_I2C_Read... [19:39:52]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 84 [19:39:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:39:52]wFMCommunicate OK [19:39:52]SAM_PROTO_GetShiftState done [19:39:52]FM_GetShiftState done [19:39:52]opened in 1724200467 [19:39:52]opened+sec_in_day 1724286867 [19:39:52]quantity*price = 100035 [19:39:52]sum+1 = 100036 [19:39:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 383 21.08.2024 19:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140366 ФПД: 240422227689973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140366&fm=240422227689973&tin=02508201610067®Number=0000000000092569&sum=100000 [19:39:53]StoreToDocumentArchive [19:39:53]shift 454 fd 140366 [19:39:53]save to /storage/0454/doc_00140366 [19:39:53]save last doc name /storage/0454/doc_00140366 to /storage/kkm_last_doc_name [19:39:53]save OK [19:39:53]Clear old archive folders... [19:39:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:39:53]tlvbuf is 00C32050 [19:39:53]SAM_PROTO_ClearQueue [19:39:53]wFMCommunicate request_size=4 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 09 00 00 [19:39:53]Write to MH i2c: E2 08 00 79 1B 80 09 00 00 00 00 00 00 06 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [19:39:53]RAPDU: 90 00 [19:39:53]wFMCommunicate OK [19:39:53]SAM_PROTO_ClearQueue done [19:39:53]KKMCreateOFDPacket [19:39:53]OFDProtocolAddRootSTLVToBuf [19:39:53]FM_MakeSignedData [19:39:53]FM_MakeSignedData [19:39:53]SAM_PROTO_SignData [19:39:53]wFMCommunicate request_size=4 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 0D 01 02 [19:39:53]Write to MH i2c: E2 08 00 7A 1B 80 0D 01 02 00 00 00 00 0E [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [19:39:53]RAPDU: 90 00 [19:39:53]wFMCommunicate OK [19:39:53]wFMCommunicate request_size=253 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 24 02 00 35 04 06 00 DA A9 A9 7A 41 F5 [19:39:53]Write to MH i2c: E2 00 01 7B 1B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 24 02 00 35 04 06 00 DA A9 A9 7A 41 F5 00 00 14 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [19:39:53]RAPDU: 90 00 [19:39:53]wFMCommunicate OK [19:39:53]wFMCommunicate request_size=4 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 0D 03 02 [19:39:53]Write to MH i2c: E2 08 00 7C 1B 80 0D 03 02 00 00 00 00 12 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 0B 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 0B 00 7C 1B 00 D5 D0 30 CB 25 12 18 22 90 00 24 [19:39:53]RAPDU: D5 D0 30 CB 25 12 18 22 90 00 [19:39:53]wFMCommunicate OK [19:39:53]SAM_PROTO_SignData done [19:39:53]FM_MakeSignedData done [19:39:53]CreateOFDProtocolMessage [19:39:53]wFMCommunicate request_size=4 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 11 00 00 [19:39:53]Write to MH i2c: E2 08 00 7D 1B 80 11 00 00 00 00 00 00 12 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 17 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 17 00 7D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 69 [19:39:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:39:53]wFMCommunicate OK [19:39:53]CreateOFDProtocolMessage done [19:39:53]OFDSenderStorePacket 140366 [19:39:53]StoreOFDPacket docnum=140366 [19:39:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 75 1A 00 01 43 A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 24 02 00 35 04 06 00 DA A9 A9 7A 41 F5 D5 D0 30 CB 25 12 18 22 [19:39:53]CheckFolder [19:39:53]dirname=/storage/ofd_packets [19:39:53]CheckFolder done [19:39:53]ProducePacketName [19:39:53]name=ofd_packets/00140366 [19:39:53]NVStorageSaveData ofd_packets/00140366 [19:39:53]File name is /storage/ofd_packets/00140366 [19:39:53]Write 294 bytes [19:39:53]NVStorageSaveData done [19:39:53]OFDSenderStorePacket done [19:39:53]KKMCreateOFDPacket done [19:39:53]NVStorageSaveData kkm_last_timestamp [19:39:53]File name is /storage/kkm_last_timestamp [19:39:53]Write 4 bytes [19:39:53]NVStorageSaveData done [19:39:53]ExternCall_PrintAddStr [19:39:53]wPrintStart [19:39:53]Write to MH i2c: 01 00 00 7E 1B 99 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: 01 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: 01 07 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: 01 07 00 7E 1B 00 00 00 00 00 FF 0F AE [19:39:53]RasterBufferAndPrint [19:39:53]line Счет N : (1)594225 [19:39:53]line ИНН: 02508201610067 [19:39:53]line Контрольно-Кассовый Чек [19:39:53]line ПРОДАЖА [19:39:53]line ТРК (МРК, ГНК) : 43 [19:39:53]line Товар: 2710124130 [19:39:53]line SU-92 [19:39:53]line 14.540 * 68.80 [19:39:53]line = 1000.35 [19:39:53]line НДС 12% НСП 1% [19:39:53]line > о реализуемом товаре [19:39:53]line ОКРУГЛЕНИЕ: -0.35 [19:39:53]line ИТОГО: 1000.00 [19:39:53]line Внесено: 1000.00 [19:39:53]line СДАЧА: 0.00 [19:39:53]line НСП 1% : 8.85 [19:39:53]line НДС 12% : 106.23 [19:39:53]line Наличными: 1000.00 [19:39:53]line Безнал.: 0.00 [19:39:53]line Место: АЗС № 136 "Партнер Нефть" [19:39:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:39:53]line СНО: Общий режим [19:39:53]line Чек 383 21.08.2024 19:39 [19:39:53]line Смена: 454 ФФД: 1.0 [19:39:53]line ЗНМ: 0300000067 [19:39:53]line РНМ: 0000000000092569 [19:39:53]line Версия ККМ: 001 [19:39:53]line ФМ: 0000000000871776 [19:39:53]line ФД: 140366 [19:39:53]line ФПД: 240422227689973 [19:39:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T193953&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140366&fm=240422227689973&tin=02508201610067®Number=0000000000092569&sum=100000 [19:39:54]OFD Sender: Processing packet 140366 [packets to send 137, broken 136] [19:39:54]ProducePacketName [19:39:54]name=ofd_packets/00140366 [19:39:54]OFD Sender: To server: pG, [19:39:54]CommunicateWithHost lk.salyk.kg:30040 [19:39:54]ConnectInit lk.salyk.kg [19:39:54]written 0, free lines is 4095 [19:39:54]Connected sock=10 [19:39: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 37 36 08 01 00 00 75 1A 00 01 43 A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 89 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4E 24 02 00 35 04 06 00 DA A9 A9 7A 41 F5 D5 D0 30 CB 25 12 18 22 [19:39:54]Write to MH i2c: 01 00 00 A9 1B C4 [19:39:54]Write i2c OK [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: 01 [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: 01 07 00 [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: 01 07 00 A9 1B 00 00 00 00 00 D1 0C A8 [19:39:54]RasterBufferAndPrint [19:39:54]line [19:39:54]line [19:39:54]line [19:39:54]line [19:39:54]line [19:39:54]written 0, free lines is 3286 [19:39:54]MH_Cut [19:39:54]Write to MH i2c: D1 01 00 B0 1B 01 9D [19:39:54]Write i2c OK [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: D1 [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: D1 01 00 [19:39:54]MH_I2C_Read... [19:39:54]Read from MH i2c: D1 01 00 B0 1B 00 9C [19:39:54]Write to MH i2c: 01 00 00 B1 1B CC [19:39:54]Write i2c OK [19:39:54]MH_I2C_Read... [19:39: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 37 36 4F 00 00 00 02 DB 47 00 74 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 37 36 10 04 04 00 4E 24 02 00 F4 03 04 00 19 E9 C5 66 B6 04 01 00 00 42 CD 56 B5 17 83 C3 1D [19:39:54]CommunicateWithHost err = 0 [19:39:54]CheckOFDResponse [19:39:54]1017 (14) - 77093643461234 [19:39:54]1041 (16) - 0000000000871776 [19:39:54]1040 (4) - 140366 [19:39:54]1012 (4) - 21.08.2024 13:18 [19:39:54]1206 (1) - 0 [19:39:54]OFD Sender: Remove packet 140366 [19:39:54]ProducePacketName [19:39:54]name=ofd_packets/00140366 [19:39:54]NVStorageDeleteData [19:39:55]OFD Sender: No OFD packet to send [19:39:55]*** Cut start [19:39:55]*** Partial cut [19:39:55]*** CUTSNS_PIN = 1 [19:39:55]*** CUTSNS_PIN = 0 [19:39:55]*** Brake cut motor [19:39:56]Read from MH i2c: 01 [19:39:56]MH_I2C_Read... [19:39:56]*** Stop cut motor [19:39:56]*** Cut end [19:39:56]Read from MH i2c: 01 07 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: 01 07 00 B1 1B 00 00 00 00 00 FF 0F E1 [19:39:56]process_action close_receipt done [19:39:56]requested_data is exist [19:39:56]produce_requested_data [19:39:56]requested_item fm.sn is exist - process it [19:39:56]wFMCommunicate request_size=4 [19:39:56]MH_SAM_APDU [19:39:56]CAPDU: 80 11 00 00 [19:39:56]Write to MH i2c: E2 08 00 B2 1B 80 11 00 00 00 00 00 00 47 [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:56]Read from MH i2c: E2 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 17 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 17 00 B2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [19:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:39:56]wFMCommunicate OK [19:39:56]requested_item fd.num is exist - process it [19:39:56]SAM_PROTO_GetFieldsCounters [19:39:56]wFMCommunicate request_size=4 [19:39:56]MH_SAM_APDU [19:39:56]CAPDU: 80 13 00 00 [19:39:56]Write to MH i2c: E2 08 00 B3 1B 80 13 00 00 00 00 00 00 4A [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:56]Read from MH i2c: E2 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 62 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 62 00 B3 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 24 02 00 0E 04 04 00 C6 01 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 30 [19:39:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4E 24 02 00 0E 04 04 00 C6 01 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 [19:39:56]wFMCommunicate OK [19:39:56]SAM_PROTO_GetFieldsCounters done [19:39:56]requested_item shift.num is exist - process it [19:39:56]requested_item shift.opened is exist - process it [19:39:56]req_shift_opened [19:39:56]FM_GetShiftState [19:39:56]SAM_PROTO_GetShiftState [19:39:56]wFMCommunicate request_size=4 [19:39:56]MH_SAM_APDU [19:39:56]CAPDU: 80 13 01 00 [19:39:56]Write to MH i2c: E2 08 00 B4 1B 80 13 01 00 00 00 00 00 4C [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:56]Read from MH i2c: E2 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 0E 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: E2 0E 00 B4 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CC [19:39:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:39:56]wFMCommunicate OK [19:39:56]SAM_PROTO_GetShiftState done [19:39:56]FM_GetShiftState done [19:39:56]req_shift_opened done [19:39:56]requested_item shift.open_date is exist - process it [19:39:56]req_shift_open_date [19:39:56]req_shift_open_date done [19:39:56]produce_requested_data done [19:39:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140366,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:39:56]process_action_free close_receipt [19:39:56]json_value_free [19:39:56]json_value_free done [19:39:56]process_json_proto returns [19:39:56]Send response to host [19:39:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140366,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:39:56]free response buf [19:39:56]execute_script done [19:39:56]execute_script returns [19:39:56]free content buf [19:39:56]Sock 7.Close socket [19:39:56]Sock 7.Thread stoped [19:40:00]OFD Sender: No OFD packet to send [19:40:01]accept exits with 9 [19:40:01]New connection [19:40:01]New thread 3067612516 created [19:40:01]Thread 3067469156 joined [19:40:01]Waiting for new connection... [19:40:01] Sock 9.Parse request [19:40:01]Sock 9.Check first char [19:40:01]Sock 9.First char is OK [19:40:01]request: POST /json_proto HTTP/1.0 [19:40:01]Method: POST [19:40:01]URL: /json_proto [19:40:01]Method is POST - this is cgi request [19:40:01]url: /json_proto [19:40:01]query_string will be loaded in cgi processing [19:40:01]execute_cgi json_proto POST (null) [19:40:01]execute_cgi path=json_proto method=POST [19:40:01]POST find Content-Length [19:40:01]Host: 172.17.45.67:8080 [19:40:01]Content-Length: 792 [19:40:01]Content-Type: application/json [19:40:01] [19:40:01]POST finish read [19:40:01]Found Content-Length = 792 [19:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:01]execute_script... [19:40: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)594224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:01]POST & json_proto [19:40:01]process_json_proto [19:40:01]json parsed OK: [19:40:01]protocol is kg_v1.0 [19:40:01]action value=close_receipt [19:40:01]process_action close_receipt [19:40:01]cmd_close_receipt [19:40:01]MH_GetDate [19:40:01]Write to MH i2c: F0 00 00 B5 1B BF [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 09 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: F0 09 00 B5 1B 00 92 42 C6 66 5F 7F 2B 66 37 [19:40:01]GetLastDocTimeStamp 1724269193 [19:40:01]current date 1724269202 [19:40:01]FM_GetShiftState [19:40:01]SAM_PROTO_GetShiftState [19:40:01]wFMCommunicate request_size=4 [19:40:01]MH_SAM_APDU [19:40:01]CAPDU: 80 13 01 00 [19:40:01]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [19:40:01]Write i2c OK [19:40:01]MH_I2C_Read... [19:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:01]Read from MH i2c: E2 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: E2 0E 00 [19:40:01]MH_I2C_Read... [19:40:01]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CE [19:40:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:40:01]wFMCommunicate OK [19:40:01]SAM_PROTO_GetShiftState done [19:40:01]FM_GetShiftState done [19:40:01]opened in 1724200467 [19:40:01]opened+sec_in_day 1724286867 [19:40:01]quantity*price = 0 [19:40:01]sum+1 = 1 [19:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 384 21.08.2024 19:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140367 ФПД: 109191633770952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140367&fm=109191633770952&tin=02508201610067®Number=0000000000092569&sum=0 [19:40:03]StoreToDocumentArchive [19:40:03]shift 454 fd 140367 [19:40:03]save to /storage/0454/doc_00140367 [19:40:03]save last doc name /storage/0454/doc_00140367 to /storage/kkm_last_doc_name [19:40:03]save OK [19:40:03]Clear old archive folders... [19:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:03]tlvbuf is 00CCCEC0 [19:40:03]SAM_PROTO_ClearQueue [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 09 00 00 [19:40:03]Write to MH i2c: E2 08 00 C3 1B 80 09 00 00 00 00 00 00 50 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]SAM_PROTO_ClearQueue done [19:40:03]KKMCreateOFDPacket [19:40:03]OFDProtocolAddRootSTLVToBuf [19:40:03]FM_MakeSignedData [19:40:03]FM_MakeSignedData [19:40:03]SAM_PROTO_SignData [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 01 02 [19:40:03]Write to MH i2c: E2 08 00 C4 1B 80 0D 01 02 00 00 00 00 58 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=255 [19:40:03]MH_SAM_APDU [19:40: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 60 6D 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 80 01 00 00 F4 03 04 00 92 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 24 02 00 35 04 06 00 63 [19:40:03]Write to MH i2c: E2 02 01 C5 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 60 6D 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 80 01 00 00 F4 03 04 00 92 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 24 02 00 35 04 06 00 63 00 00 59 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=10 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 02 02 05 4F 28 8B 19 C8 [19:40:03]Write to MH i2c: E2 0D 00 C6 1B 80 0D 02 02 05 00 4F 28 8B 19 C8 00 00 48 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [19:40:03]RAPDU: 90 00 [19:40:03]wFMCommunicate OK [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 0D 03 02 [19:40:03]Write to MH i2c: E2 08 00 C7 1B 80 0D 03 02 00 00 00 00 5D [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 0B 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 0B 00 C7 1B 00 15 98 84 B6 88 7C D2 A1 90 00 BC [19:40:03]RAPDU: 15 98 84 B6 88 7C D2 A1 90 00 [19:40:03]wFMCommunicate OK [19:40:03]SAM_PROTO_SignData done [19:40:03]FM_MakeSignedData done [19:40:03]CreateOFDProtocolMessage [19:40:03]wFMCommunicate request_size=4 [19:40:03]MH_SAM_APDU [19:40:03]CAPDU: 80 11 00 00 [19:40:03]Write to MH i2c: E2 08 00 C8 1B 80 11 00 00 00 00 00 00 5D [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:03]Read from MH i2c: E2 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: E2 17 00 C8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [19:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:03]wFMCommunicate OK [19:40:03]CreateOFDProtocolMessage done [19:40:03]OFDSenderStorePacket 140367 [19:40:03]StoreOFDPacket docnum=140367 [19:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8A D4 07 01 F7 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 60 6D 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 80 01 00 00 F4 03 04 00 92 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 24 02 00 35 04 06 00 63 4F 28 8B 19 C8 15 98 84 B6 88 7C D2 A1 [19:40:03]CheckFolder [19:40:03]dirname=/storage/ofd_packets [19:40:03]CheckFolder done [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00140367 [19:40:03]NVStorageSaveData ofd_packets/00140367 [19:40:03]File name is /storage/ofd_packets/00140367 [19:40:03]Write 301 bytes [19:40:03]NVStorageSaveData done [19:40:03]OFDSenderStorePacket done [19:40:03]KKMCreateOFDPacket done [19:40:03]NVStorageSaveData kkm_last_timestamp [19:40:03]File name is /storage/kkm_last_timestamp [19:40:03]Write 4 bytes [19:40:03]NVStorageSaveData done [19:40:03]ExternCall_PrintAddStr [19:40:03]wPrintStart [19:40:03]Write to MH i2c: 01 00 00 C9 1B E4 [19:40:03]Write i2c OK [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 [19:40:03]MH_I2C_Read... [19:40:03]Read from MH i2c: 01 07 00 C9 1B 00 00 00 00 00 FF 0F F9 [19:40:03]RasterBufferAndPrint [19:40:03]line Счет N : (1)594224 [19:40:03]line ИНН: 02508201610067 [19:40:03]line Контрольно-Кассовый Чек [19:40:03]line ПРОДАЖА [19:40:03]line ТРК (МРК, ГНК) : 62 [19:40:03]line Товар: 2710124130 [19:40:03]line Аи-92-К-5 [19:40:03]line 28.000 * 0.00 [19:40:03]line = 0.00 [19:40:03]line НДС 12% НСП 1% [19:40:03]line > о реализуемом товаре [19:40:03]line ИТОГО: 0.00 [19:40:03]line НСП 1% : 0.00 [19:40:03]line НДС 12% : 0.00 [19:40:03]line Наличными: 0.00 [19:40:03]line Безнал.: 0.00 [19:40:03]line Место: АЗС № 136 "Партнер Нефть" [19:40:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:40:03]line СНО: Общий режим [19:40:03]line Чек 384 21.08.2024 19:40 [19:40:03]line Смена: 454 ФФД: 1.0 [19:40:03]line ЗНМ: 0300000067 [19:40:03]line РНМ: 0000000000092569 [19:40:03]line Версия ККМ: 001 [19:40:03]line Талоны: Топливная Карта [19:40:03]line 99761 [19:40:03]line ФМ: 0000000000871776 [19:40:03]line ФД: 140367 [19:40:03]line ФПД: 109191633770952 [19:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194002&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140367&fm=109191633770952&tin=02508201610067®Number=0000000000092569&sum=0 [19:40:03]written 0, free lines is 4095 [19:40:03]OFD Sender: Processing packet 140367 [packets to send 137, broken 136] [19:40:03]ProducePacketName [19:40:03]name=ofd_packets/00140367 [19:40:03]OFD Sender: To server: pG, [19:40:03]CommunicateWithHost lk.salyk.kg:30040 [19:40:03]ConnectInit lk.salyk.kg [19:40:03]Connected sock=10 [19:40: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 37 36 0F 01 00 00 8A D4 07 01 F7 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 60 6D 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 80 01 00 00 F4 03 04 00 92 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 4F 24 02 00 35 04 06 00 63 4F 28 8B 19 C8 15 98 84 B6 88 7C D2 A1 [19:40:04]Write to MH i2c: 01 00 00 F3 1B 0E [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: 01 07 00 F3 1B 00 00 00 00 00 F6 0C 17 [19:40:04]RasterBufferAndPrint [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]line [19:40:04]written 0, free lines is 3328 [19:40: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 37 36 4F 00 00 00 E8 F4 47 00 9E 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 37 36 10 04 04 00 4F 24 02 00 F4 03 04 00 22 E9 C5 66 B6 04 01 00 00 32 76 73 A1 2B 95 2E 65 [19:40:04]CommunicateWithHost err = 0 [19:40:04]CheckOFDResponse [19:40:04]1017 (14) - 77093643461234 [19:40:04]1041 (16) - 0000000000871776 [19:40:04]1040 (4) - 140367 [19:40:04]1012 (4) - 21.08.2024 13:18 [19:40:04]1206 (1) - 0 [19:40:04]OFD Sender: Remove packet 140367 [19:40:04]ProducePacketName [19:40:04]name=ofd_packets/00140367 [19:40:04]NVStorageDeleteData [19:40:04]MH_Cut [19:40:04]Write to MH i2c: D1 01 00 FA 1B 01 E7 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 [19:40:04]MH_I2C_Read... [19:40:04]Read from MH i2c: D1 01 00 FA 1B 00 E6 [19:40:04]Write to MH i2c: 01 00 00 FB 1B 16 [19:40:04]Write i2c OK [19:40:04]MH_I2C_Read... [19:40:04]OFD Sender: No OFD packet to send [19:40:04]*** Cut start [19:40:04]*** Partial cut [19:40:04]*** CUTSNS_PIN = 1 [19:40:04]*** CUTSNS_PIN = 0 [19:40:05]*** Brake cut motor [19:40:05]Read from MH i2c: 01 [19:40:05]MH_I2C_Read... [19:40:05]*** Stop cut motor [19:40:05]*** Cut end [19:40:05]Read from MH i2c: 01 07 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: 01 07 00 FB 1B 00 00 00 00 00 FF 0F 2B [19:40:05]process_action close_receipt done [19:40:05]requested_data is exist [19:40:05]produce_requested_data [19:40:05]requested_item fm.sn is exist - process it [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 11 00 00 [19:40:05]Write to MH i2c: E2 08 00 FC 1B 80 11 00 00 00 00 00 00 91 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 17 00 FC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [19:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:40:05]wFMCommunicate OK [19:40:05]requested_item fd.num is exist - process it [19:40:05]SAM_PROTO_GetFieldsCounters [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 00 00 [19:40:05]Write to MH i2c: E2 08 00 FD 1B 80 13 00 00 00 00 00 00 94 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 62 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 62 00 FD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 24 02 00 0E 04 04 00 C6 01 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 7E [19:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 4F 24 02 00 0E 04 04 00 C6 01 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 [19:40:05]wFMCommunicate OK [19:40:05]SAM_PROTO_GetFieldsCounters done [19:40:05]requested_item shift.num is exist - process it [19:40:05]requested_item shift.opened is exist - process it [19:40:05]req_shift_opened [19:40:05]FM_GetShiftState [19:40:05]SAM_PROTO_GetShiftState [19:40:05]wFMCommunicate request_size=4 [19:40:05]MH_SAM_APDU [19:40:05]CAPDU: 80 13 01 00 [19:40:05]Write to MH i2c: E2 08 00 FE 1B 80 13 01 00 00 00 00 00 96 [19:40:05]Write i2c OK [19:40:05]MH_I2C_Read... [19:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:05]Read from MH i2c: E2 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 0E 00 [19:40:05]MH_I2C_Read... [19:40:05]Read from MH i2c: E2 0E 00 FE 1B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 16 [19:40:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:40:05]wFMCommunicate OK [19:40:05]SAM_PROTO_GetShiftState done [19:40:05]FM_GetShiftState done [19:40:05]req_shift_opened done [19:40:05]requested_item shift.open_date is exist - process it [19:40:05]req_shift_open_date [19:40:05]req_shift_open_date done [19:40:05]produce_requested_data done [19:40:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140367,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:40:05]process_action_free close_receipt [19:40:05]json_value_free [19:40:05]json_value_free done [19:40:05]process_json_proto returns [19:40:05]Send response to host [19:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140367,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:40:05]free response buf [19:40:05]execute_script done [19:40:05]execute_script returns [19:40:05]free content buf [19:40:05]Sock 9.Close socket [19:40:05]Sock 9.Thread stoped [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:07]accept exits with 7 [19:41:07]New connection [19:41:07]New thread 3067469156 created [19:41:07]Thread 3067612516 joined [19:41:07]Waiting for new connection... [19:41:07] Sock 7.Parse request [19:41:07]Sock 7.Check first char [19:41:07]Sock 7.First char is OK [19:41:07]request: POST /json_proto HTTP/1.0 [19:41:07]Method: POST [19:41:07]URL: /json_proto [19:41:07]Method is POST - this is cgi request [19:41:07]url: /json_proto [19:41:07]query_string will be loaded in cgi processing [19:41:07]execute_cgi json_proto POST (null) [19:41:07]execute_cgi path=json_proto method=POST [19:41:07]POST find Content-Length [19:41:07]Host: 172.17.45.67:8080 [19:41:07]Content-Length: 800 [19:41:07]Content-Type: application/json [19:41:07] [19:41:07]POST finish read [19:41:07]Found Content-Length = 800 [19:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4202815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]execute_script... [19:41:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4202815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:07]POST & json_proto [19:41:07]process_json_proto [19:41:07]json parsed OK: [19:41:07]protocol is kg_v1.0 [19:41:07]action value=close_receipt [19:41:07]process_action close_receipt [19:41:07]cmd_close_receipt [19:41:07]MH_GetDate [19:41:07]Write to MH i2c: F0 00 00 FF 1B 09 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: F0 09 00 FF 1B 00 D4 42 C6 66 5F 7F 2B 66 C3 [19:41:07]GetLastDocTimeStamp 1724269202 [19:41:07]current date 1724269268 [19:41:07]FM_GetShiftState [19:41:07]SAM_PROTO_GetShiftState [19:41:07]wFMCommunicate request_size=4 [19:41:07]MH_SAM_APDU [19:41:07]CAPDU: 80 13 01 00 [19:41:07]Write to MH i2c: E2 08 00 00 1C 80 13 01 00 00 00 00 00 99 [19:41:07]Write i2c OK [19:41:07]MH_I2C_Read... [19:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:07]Read from MH i2c: E2 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 [19:41:07]MH_I2C_Read... [19:41:07]Read from MH i2c: E2 0E 00 00 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 19 [19:41:07]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:41:07]wFMCommunicate OK [19:41:07]SAM_PROTO_GetShiftState done [19:41:07]FM_GetShiftState done [19:41:07]opened in 1724200467 [19:41:07]opened+sec_in_day 1724286867 [19:41:07]quantity*price = 0 [19:41:07]sum+1 = 1 [19:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 385 21.08.2024 19:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 4202815 ФМ: 0000000000871776 ФД: 140368 ФПД: 141400275089422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140368&fm=141400275089422&tin=02508201610067®Number=0000000000092569&sum=0 [19:41:08]StoreToDocumentArchive [19:41:08]shift 454 fd 140368 [19:41:08]save to /storage/0454/doc_00140368 [19:41:08]save last doc name /storage/0454/doc_00140368 to /storage/kkm_last_doc_name [19:41:08]save OK [19:41:08]Clear old archive folders... [19:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:08]tlvbuf is 00C27A40 [19:41:08]SAM_PROTO_ClearQueue [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 09 00 00 [19:41:08]Write to MH i2c: E2 08 00 0D 1C 80 09 00 00 00 00 00 00 9B [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_ClearQueue done [19:41:08]KKMCreateOFDPacket [19:41:08]OFDProtocolAddRootSTLVToBuf [19:41:08]FM_MakeSignedData [19:41:08]FM_MakeSignedData [19:41:08]SAM_PROTO_SignData [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 0D 01 02 [19:41:08]Write to MH i2c: E2 08 00 0E 1C 80 0D 01 02 00 00 00 00 A3 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:08]Read from MH i2c: E2 03 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [19:41:08]RAPDU: 90 00 [19:41:08]wFMCommunicate OK [19:41:08]wFMCommunicate request_size=255 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D4 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 24 02 00 35 04 06 00 80 [19:41:08]Write to MH i2c: E2 02 01 0F 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D4 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 24 02 00 35 04 06 00 80 00 00 6F [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=10 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 02 02 05 9A 51 2A F8 0E [19:41:09]Write to MH i2c: E2 0D 00 10 1C 80 0D 02 02 05 00 9A 51 2A F8 0E 00 00 CB [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [19:41:09]RAPDU: 90 00 [19:41:09]wFMCommunicate OK [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 0D 03 02 [19:41:09]Write to MH i2c: E2 08 00 11 1C 80 0D 03 02 00 00 00 00 A8 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 0B 00 11 1C 00 FB 60 57 C0 2E 07 A5 FB 90 00 F0 [19:41:09]RAPDU: FB 60 57 C0 2E 07 A5 FB 90 00 [19:41:09]wFMCommunicate OK [19:41:09]SAM_PROTO_SignData done [19:41:09]FM_MakeSignedData done [19:41:09]CreateOFDProtocolMessage [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 11 00 00 [19:41:09]Write to MH i2c: E2 08 00 12 1C 80 11 00 00 00 00 00 00 A8 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:09]Read from MH i2c: E2 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: E2 17 00 12 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [19:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:41:09]wFMCommunicate OK [19:41:09]CreateOFDProtocolMessage done [19:41:09]OFDSenderStorePacket 140368 [19:41:09]StoreOFDPacket docnum=140368 [19:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 7B 07 01 13 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D4 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 24 02 00 35 04 06 00 80 9A 51 2A F8 0E FB 60 57 C0 2E 07 A5 FB [19:41:09]CheckFolder [19:41:09]dirname=/storage/ofd_packets [19:41:09]CheckFolder done [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00140368 [19:41:09]NVStorageSaveData ofd_packets/00140368 [19:41:09]File name is /storage/ofd_packets/00140368 [19:41:09]Write 301 bytes [19:41:09]NVStorageSaveData done [19:41:09]OFDSenderStorePacket done [19:41:09]KKMCreateOFDPacket done [19:41:09]NVStorageSaveData kkm_last_timestamp [19:41:09]File name is /storage/kkm_last_timestamp [19:41:09]Write 4 bytes [19:41:09]NVStorageSaveData done [19:41:09]ExternCall_PrintAddStr [19:41:09]wPrintStart [19:41:09]Write to MH i2c: 01 00 00 13 1C 2F [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 [19:41:09]MH_I2C_Read... [19:41:09]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FF 0F 44 [19:41:09]RasterBufferAndPrint [19:41:09]line Счет N : (1)594226 [19:41:09]line ИНН: 02508201610067 [19:41:09]line Контрольно-Кассовый Чек [19:41:09]line ПРОДАЖА [19:41:09]line ТРК (МРК, ГНК) : 62 [19:41:09]line Товар: 2710124130 [19:41:09]line Аи-92-К-5 [19:41:09]line 10.000 * 0.00 [19:41:09]line = 0.00 [19:41:09]line НДС 12% НСП 1% [19:41:09]line > о реализуемом товаре [19:41:09]line ИТОГО: 0.00 [19:41:09]line НСП 1% : 0.00 [19:41:09]line НДС 12% : 0.00 [19:41:09]line Наличными: 0.00 [19:41:09]line Безнал.: 0.00 [19:41:09]line Место: АЗС № 136 "Партнер Нефть" [19:41:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:41:09]line СНО: Общий режим [19:41:09]line Чек 385 21.08.2024 19:41 [19:41:09]line Смена: 454 ФФД: 1.0 [19:41:09]line ЗНМ: 0300000067 [19:41:09]line РНМ: 0000000000092569 [19:41:09]line Версия ККМ: 001 [19:41:09]line Талоны: Топливные Талоны [19:41:09]line 4202815 [19:41:09]line ФМ: 0000000000871776 [19:41:09]line ФД: 140368 [19:41:09]line ФПД: 141400275089422 [19:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194108&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140368&fm=141400275089422&tin=02508201610067®Number=0000000000092569&sum=0 [19:41:09]OFD Sender: Processing packet 140368 [packets to send 137, broken 136] [19:41:09]ProducePacketName [19:41:09]name=ofd_packets/00140368 [19:41:09]OFD Sender: To server: pG, [19:41:09]CommunicateWithHost lk.salyk.kg:30040 [19:41:09]ConnectInit lk.salyk.kg [19:41:09]written 0, free lines is 4095 [19:41:09]Connected sock=10 [19:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E3 7B 07 01 13 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 D4 42 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 50 24 02 00 35 04 06 00 80 9A 51 2A F8 0E FB 60 57 C0 2E 07 A5 FB [19:41:10]Write to MH i2c: 01 00 00 3D 1C 59 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 E4 0C 50 [19:41:10]RasterBufferAndPrint [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]line [19:41:10]written 0, free lines is 3306 [19:41:10]MH_Cut [19:41:10]Write to MH i2c: D1 01 00 44 1C 01 32 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 01 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: D1 01 00 44 1C 00 31 [19:41:10]Write to MH i2c: 01 00 00 45 1C 61 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 B9 E2 47 00 D2 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 37 36 10 04 04 00 50 24 02 00 F4 03 04 00 64 E9 C5 66 B6 04 01 00 00 AF 65 EE F1 D8 EF 83 6D [19:41:10]CommunicateWithHost err = 0 [19:41:10]CheckOFDResponse [19:41:10]1017 (14) - 77093643461234 [19:41:10]1041 (16) - 0000000000871776 [19:41:10]1040 (4) - 140368 [19:41:10]1012 (4) - 21.08.2024 13:19 [19:41:10]1206 (1) - 0 [19:41:10]OFD Sender: Remove packet 140368 [19:41:10]ProducePacketName [19:41:10]name=ofd_packets/00140368 [19:41:10]NVStorageDeleteData [19:41:10]OFD Sender: No OFD packet to send [19:41:10]*** Cut start [19:41:10]*** Partial cut [19:41:10]*** CUTSNS_PIN = 1 [19:41:10]*** CUTSNS_PIN = 0 [19:41:11]*** Brake cut motor [19:41:11]Read from MH i2c: 01 [19:41:11]MH_I2C_Read... [19:41:11]*** Stop cut motor [19:41:11]*** Cut end [19:41:11]Read from MH i2c: 01 07 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: 01 07 00 45 1C 00 00 00 00 00 FF 0F 76 [19:41:11]process_action close_receipt done [19:41:11]requested_data is exist [19:41:11]produce_requested_data [19:41:11]requested_item fm.sn is exist - process it [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 11 00 00 [19:41:11]Write to MH i2c: E2 08 00 46 1C 80 11 00 00 00 00 00 00 DC [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 17 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 17 00 46 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [19:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:41:11]wFMCommunicate OK [19:41:11]requested_item fd.num is exist - process it [19:41:11]SAM_PROTO_GetFieldsCounters [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 13 00 00 [19:41:11]Write to MH i2c: E2 08 00 47 1C 80 13 00 00 00 00 00 00 DF [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 62 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 62 00 47 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 24 02 00 0E 04 04 00 C6 01 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 CD [19:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 50 24 02 00 0E 04 04 00 C6 01 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 [19:41:11]wFMCommunicate OK [19:41:11]SAM_PROTO_GetFieldsCounters done [19:41:11]requested_item shift.num is exist - process it [19:41:11]requested_item shift.opened is exist - process it [19:41:11]req_shift_opened [19:41:11]FM_GetShiftState [19:41:11]SAM_PROTO_GetShiftState [19:41:11]wFMCommunicate request_size=4 [19:41:11]MH_SAM_APDU [19:41:11]CAPDU: 80 13 01 00 [19:41:11]Write to MH i2c: E2 08 00 48 1C 80 13 01 00 00 00 00 00 E1 [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:11]Read from MH i2c: E2 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 0E 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: E2 0E 00 48 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [19:41:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:41:11]wFMCommunicate OK [19:41:11]SAM_PROTO_GetShiftState done [19:41:11]FM_GetShiftState done [19:41:11]req_shift_opened done [19:41:11]requested_item shift.open_date is exist - process it [19:41:11]req_shift_open_date [19:41:11]req_shift_open_date done [19:41:11]produce_requested_data done [19:41:11]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140368,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:41:11]process_action_free close_receipt [19:41:11]json_value_free [19:41:11]json_value_free done [19:41:11]process_json_proto returns [19:41:11]Send response to host [19:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140368,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:41:11]free response buf [19:41:11]execute_script done [19:41:11]execute_script returns [19:41:11]free content buf [19:41:11]Sock 7.Close socket [19:41:11]Sock 7.Thread stoped [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:43]accept exits with 9 [19:42:43]New connection [19:42:43]New thread 3067612516 created [19:42:43]Thread 3067469156 joined [19:42:43]Waiting for new connection... [19:42:43] Sock 9.Parse request [19:42:43]Sock 9.Check first char [19:42:43]Sock 9.First char is OK [19:42:43]request: POST /json_proto HTTP/1.0 [19:42:43]Method: POST [19:42:43]URL: /json_proto [19:42:43]Method is POST - this is cgi request [19:42:43]url: /json_proto [19:42:43]query_string will be loaded in cgi processing [19:42:43]execute_cgi json_proto POST (null) [19:42:43]execute_cgi path=json_proto method=POST [19:42:43]POST find Content-Length [19:42:43]Host: 172.17.45.67:8080 [19:42:43]Content-Length: 678 [19:42:43]Content-Type: application/json [19:42:43] [19:42:43]POST finish read [19:42:43]Found Content-Length = 678 [19:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:43]execute_script... [19:42: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)594227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:43]POST & json_proto [19:42:43]process_json_proto [19:42:43]json parsed OK: [19:42:43]protocol is kg_v1.0 [19:42:43]action value=close_receipt [19:42:43]process_action close_receipt [19:42:43]cmd_close_receipt [19:42:43]MH_GetDate [19:42:43]Write to MH i2c: F0 00 00 49 1C 54 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 09 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: F0 09 00 49 1C 00 34 43 C6 66 5F 7F 2B 66 6F [19:42:43]GetLastDocTimeStamp 1724269268 [19:42:43]current date 1724269364 [19:42:43]FM_GetShiftState [19:42:43]SAM_PROTO_GetShiftState [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 13 01 00 [19:42:43]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0E 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 63 [19:42:43]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:42:43]wFMCommunicate OK [19:42:43]SAM_PROTO_GetShiftState done [19:42:43]FM_GetShiftState done [19:42:43]opened in 1724200467 [19:42:43]opened+sec_in_day 1724286867 [19:42:43]quantity*price = 80004 [19:42:43]sum+1 = 80005 [19:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 386 21.08.2024 19:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140369 ФПД: 156846382482372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140369&fm=156846382482372&tin=02508201610067®Number=0000000000092569&sum=80000 [19:42:44]StoreToDocumentArchive [19:42:44]shift 454 fd 140369 [19:42:44]save to /storage/0454/doc_00140369 [19:42:44]save last doc name /storage/0454/doc_00140369 to /storage/kkm_last_doc_name [19:42:44]save OK [19:42:44]Clear old archive folders... [19:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:44]tlvbuf is 00CC8630 [19:42:44]SAM_PROTO_ClearQueue [19:42:44]wFMCommunicate request_size=4 [19:42:44]MH_SAM_APDU [19:42:44]CAPDU: 80 09 00 00 [19:42:44]Write to MH i2c: E2 08 00 57 1C 80 09 00 00 00 00 00 00 E5 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:44]Read from MH i2c: E2 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: E2 03 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [19:42:44]RAPDU: 90 00 [19:42:44]wFMCommunicate OK [19:42:44]SAM_PROTO_ClearQueue done [19:42:44]KKMCreateOFDPacket [19:42:44]OFDProtocolAddRootSTLVToBuf [19:42:44]FM_MakeSignedData [19:42:44]FM_MakeSignedData [19:42:44]SAM_PROTO_SignData [19:42:44]wFMCommunicate request_size=4 [19:42:44]MH_SAM_APDU [19:42:44]CAPDU: 80 0D 01 02 [19:42:44]Write to MH i2c: E2 08 00 58 1C 80 0D 01 02 00 00 00 00 ED [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:44]Read from MH i2c: E2 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: E2 03 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [19:42:44]RAPDU: 90 00 [19:42:44]wFMCommunicate OK [19:42:44]wFMCommunicate request_size=255 [19:42:44]MH_SAM_APDU [19:42: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 34 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 24 02 00 35 04 06 00 8E [19:42:44]Write to MH i2c: E2 02 01 59 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 34 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 24 02 00 35 04 06 00 8E 00 00 15 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]wFMCommunicate request_size=10 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 0D 02 02 05 A6 A4 E9 83 C4 [19:42:45]Write to MH i2c: E2 0D 00 5A 1C 80 0D 02 02 05 00 A6 A4 E9 83 C4 00 00 74 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [19:42:45]RAPDU: 90 00 [19:42:45]wFMCommunicate OK [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 0D 03 02 [19:42:45]Write to MH i2c: E2 08 00 5B 1C 80 0D 03 02 00 00 00 00 F2 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0B 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0B 00 5B 1C 00 96 1B C1 4B 86 45 38 61 90 00 14 [19:42:45]RAPDU: 96 1B C1 4B 86 45 38 61 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_SignData done [19:42:45]FM_MakeSignedData done [19:42:45]CreateOFDProtocolMessage [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 11 00 00 [19:42:45]Write to MH i2c: E2 08 00 5C 1C 80 11 00 00 00 00 00 00 F2 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 5C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [19:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:42:45]wFMCommunicate OK [19:42:45]CreateOFDProtocolMessage done [19:42:45]OFDSenderStorePacket 140369 [19:42:45]StoreOFDPacket docnum=140369 [19:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0F F1 07 01 75 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 34 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 24 02 00 35 04 06 00 8E A6 A4 E9 83 C4 96 1B C1 4B 86 45 38 61 [19:42:45]CheckFolder [19:42:45]dirname=/storage/ofd_packets [19:42:45]CheckFolder done [19:42:45]ProducePacketName [19:42:45]name=ofd_packets/00140369 [19:42:45]NVStorageSaveData ofd_packets/00140369 [19:42:45]File name is /storage/ofd_packets/00140369 [19:42:45]Write 301 bytes [19:42:45]NVStorageSaveData done [19:42:45]OFDSenderStorePacket done [19:42:45]KKMCreateOFDPacket done [19:42:45]NVStorageSaveData kkm_last_timestamp [19:42:45]File name is /storage/kkm_last_timestamp [19:42:45]Write 4 bytes [19:42:45]OFD Sender: Processing packet 140369 [packets to send 137, broken 136] [19:42:45]ProducePacketName [19:42:45]name=ofd_packets/00140369 [19:42:45]OFD Sender: To server: pG, [19:42:45]CommunicateWithHost lk.salyk.kg:30040 [19:42:45]ConnectInit lk.salyk.kg [19:42:45]NVStorageSaveData done [19:42:45]ExternCall_PrintAddStr [19:42:45]wPrintStart [19:42:45]Write to MH i2c: 01 00 00 5D 1C 79 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [19:42:45]RasterBufferAndPrint [19:42:45]line Счет N : (1)594227 [19:42:45]line ИНН: 02508201610067 [19:42:45]line Контрольно-Кассовый Чек [19:42:45]line ПРОДАЖА [19:42:45]line ТРК (МРК, ГНК) : 52 [19:42:45]line Товар: 2710124130 [19:42:45]line Аи-92-К-5 [19:42:45]line 11.800 * 67.80 [19:42:45]line = 800.04 [19:42:45]line НДС 12% НСП 1% [19:42:45]line > о реализуемом товаре [19:42:45]line ОКРУГЛЕНИЕ: -0.04 [19:42:45]line ИТОГО: 800.00 [19:42:45]line Внесено: 800.00 [19:42:45]line СДАЧА: 0.00 [19:42:45]line НСП 1% : 7.08 [19:42:45]line НДС 12% : 84.96 [19:42:45]line Наличными: 800.00 [19:42:45]line Безнал.: 0.00 [19:42:45]line Место: АЗС № 136 "Партнер Нефть" [19:42:45]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:42:45]line СНО: Общий режим [19:42:45]line Чек 386 21.08.2024 19:42 [19:42:45]line Смена: 454 ФФД: 1.0 [19:42:45]line ЗНМ: 0300000067 [19:42:45]line РНМ: 0000000000092569 [19:42:45]line Версия ККМ: 001 [19:42:45]line ФМ: 0000000000871776 [19:42:45]line ФД: 140369 [19:42:45]line ФПД: 156846382482372 [19:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194244&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140369&fm=156846382482372&tin=02508201610067®Number=0000000000092569&sum=80000 [19:42:45]Connected sock=11 [19:42: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 37 36 0F 01 00 00 0F F1 07 01 75 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 34 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 51 24 02 00 35 04 06 00 8E A6 A4 E9 83 C4 96 1B C1 4B 86 45 38 61 [19:42:45]written 0, free lines is 4095 [19:42: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 37 36 4F 00 00 00 61 D2 47 00 49 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 37 36 10 04 04 00 51 24 02 00 F4 03 04 00 C4 E9 C5 66 B6 04 01 00 00 9A D7 52 01 4C 68 4F B4 [19:42:46]CommunicateWithHost err = 0 [19:42:46]CheckOFDResponse [19:42:46]1017 (14) - 77093643461234 [19:42:46]1041 (16) - 0000000000871776 [19:42:46]1040 (4) - 140369 [19:42:46]1012 (4) - 21.08.2024 13:21 [19:42:46]1206 (1) - 0 [19:42:46]OFD Sender: Remove packet 140369 [19:42:46]ProducePacketName [19:42:46]name=ofd_packets/00140369 [19:42:46]NVStorageDeleteData [19:42:46]Write to MH i2c: 01 00 00 88 1C A4 [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 07 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 D5 0C 8C [19:42:46]RasterBufferAndPrint [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]line [19:42:46]written 0, free lines is 3292 [19:42:46]MH_Cut [19:42:46]Write to MH i2c: D1 01 00 8F 1C 01 7D [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 01 00 [19:42:46]MH_I2C_Read... [19:42:46]Read from MH i2c: D1 01 00 8F 1C 00 7C [19:42:46]Write to MH i2c: 01 00 00 90 1C AC [19:42:46]Write i2c OK [19:42:46]MH_I2C_Read... [19:42:46]OFD Sender: No OFD packet to send [19:42:46]*** Cut start [19:42:46]*** Partial cut [19:42:46]*** CUTSNS_PIN = 1 [19:42:46]*** CUTSNS_PIN = 0 [19:42:47]*** Brake cut motor [19:42:47]Read from MH i2c: 01 [19:42:47]MH_I2C_Read... [19:42:47]*** Stop cut motor [19:42:47]*** Cut end [19:42:47]Read from MH i2c: 01 07 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [19:42:47]process_action close_receipt done [19:42:47]requested_data is exist [19:42:47]produce_requested_data [19:42:47]requested_item fm.sn is exist - process it [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 11 00 00 [19:42:47]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [19:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:42:47]wFMCommunicate OK [19:42:47]requested_item fd.num is exist - process it [19:42:47]SAM_PROTO_GetFieldsCounters [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 13 00 00 [19:42:47]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 62 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 62 00 92 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 24 02 00 0E 04 04 00 C6 01 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 1C [19:42: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 51 24 02 00 0E 04 04 00 C6 01 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 [19:42:47]wFMCommunicate OK [19:42:47]SAM_PROTO_GetFieldsCounters done [19:42:47]requested_item shift.num is exist - process it [19:42:47]requested_item shift.opened is exist - process it [19:42:47]req_shift_opened [19:42:47]FM_GetShiftState [19:42:47]SAM_PROTO_GetShiftState [19:42:47]wFMCommunicate request_size=4 [19:42:47]MH_SAM_APDU [19:42:47]CAPDU: 80 13 01 00 [19:42:47]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [19:42:47]Write i2c OK [19:42:47]MH_I2C_Read... [19:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:47]Read from MH i2c: E2 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 0E 00 [19:42:47]MH_I2C_Read... [19:42:47]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AC [19:42:47]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:42:47]wFMCommunicate OK [19:42:47]SAM_PROTO_GetShiftState done [19:42:47]FM_GetShiftState done [19:42:47]req_shift_opened done [19:42:47]requested_item shift.open_date is exist - process it [19:42:47]req_shift_open_date [19:42:47]req_shift_open_date done [19:42:47]produce_requested_data done [19:42:47]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140369,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:42:47]process_action_free close_receipt [19:42:47]json_value_free [19:42:47]json_value_free done [19:42:47]process_json_proto returns [19:42:47]Send response to host [19:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140369,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:42:47]free response buf [19:42:47]execute_script done [19:42:47]execute_script returns [19:42:47]free content buf [19:42:47]Sock 9.Close socket [19:42:47]Sock 9.Thread stoped [19:42:50]accept exits with 7 [19:42:50]New connection [19:42:50]New thread 3067469156 created [19:42:50]Thread 3067612516 joined [19:42:50]Waiting for new connection... [19:42:50] Sock 7.Parse request [19:42:50]Sock 7.Check first char [19:42:50]Sock 7.First char is OK [19:42:50]request: POST /json_proto HTTP/1.0 [19:42:50]Method: POST [19:42:50]URL: /json_proto [19:42:50]Method is POST - this is cgi request [19:42:50]url: /json_proto [19:42:50]query_string will be loaded in cgi processing [19:42:50]execute_cgi json_proto POST (null) [19:42:50]execute_cgi path=json_proto method=POST [19:42:50]POST find Content-Length [19:42:50]Host: 172.17.45.67:8080 [19:42:50]Content-Length: 677 [19:42:50]Content-Type: application/json [19:42:50] [19:42:50]POST finish read [19:42:50]Found Content-Length = 677 [19:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:50]execute_script... [19: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)594228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:50]POST & json_proto [19:42:50]process_json_proto [19:42:50]json parsed OK: [19:42:50]protocol is kg_v1.0 [19:42:50]action value=close_receipt [19:42:50]process_action close_receipt [19:42:50]cmd_close_receipt [19:42:50]MH_GetDate [19:42:50]Write to MH i2c: F0 00 00 94 1C 9F [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: F0 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: F0 09 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: F0 09 00 94 1C 00 3B 43 C6 66 5F 7F 2B 66 C1 [19:42:50]GetLastDocTimeStamp 1724269364 [19:42:50]current date 1724269371 [19:42:50]FM_GetShiftState [19:42:50]SAM_PROTO_GetShiftState [19:42:50]wFMCommunicate request_size=4 [19:42:50]MH_SAM_APDU [19:42:50]CAPDU: 80 13 01 00 [19:42:50]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [19:42:50]Write i2c OK [19:42:50]MH_I2C_Read... [19:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:50]Read from MH i2c: E2 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 0E 00 [19:42:50]MH_I2C_Read... [19:42:50]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AE [19:42:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:42:50]wFMCommunicate OK [19:42:50]SAM_PROTO_GetShiftState done [19:42:50]FM_GetShiftState done [19:42:50]opened in 1724200467 [19:42:50]opened+sec_in_day 1724286867 [19:42:50]quantity*price = 50036 [19:42:50]sum+1 = 50037 [19:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 387 21.08.2024 19:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140370 ФПД: 243654256280202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140370&fm=243654256280202&tin=02508201610067®Number=0000000000092569&sum=50000 [19:42:51]StoreToDocumentArchive [19:42:51]shift 454 fd 140370 [19:42:51]save to /storage/0454/doc_00140370 [19:42:51]save last doc name /storage/0454/doc_00140370 to /storage/kkm_last_doc_name [19:42:51]save OK [19:42:51]Clear old archive folders... [19:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:51]tlvbuf is 00CAA410 [19:42:51]SAM_PROTO_ClearQueue [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 09 00 00 [19:42:51]Write to MH i2c: E2 08 00 A2 1C 80 09 00 00 00 00 00 00 30 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]SAM_PROTO_ClearQueue done [19:42:51]KKMCreateOFDPacket [19:42:51]OFDProtocolAddRootSTLVToBuf [19:42:51]FM_MakeSignedData [19:42:51]FM_MakeSignedData [19:42:51]SAM_PROTO_SignData [19:42:51]wFMCommunicate request_size=4 [19:42:51]MH_SAM_APDU [19:42:51]CAPDU: 80 0D 01 02 [19:42:51]Write to MH i2c: E2 08 00 A3 1C 80 0D 01 02 00 00 00 00 38 [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:51]Read from MH i2c: E2 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 [19:42:51]MH_I2C_Read... [19:42:51]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [19:42:51]RAPDU: 90 00 [19:42:51]wFMCommunicate OK [19:42:51]wFMCommunicate request_size=255 [19:42:51]MH_SAM_APDU [19: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 24 02 00 35 04 06 00 DD [19:42:51]Write to MH i2c: E2 02 01 A4 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 24 02 00 35 04 06 00 DD 00 00 0B [19:42:51]Write i2c OK [19:42:51]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 03 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [19:42:52]RAPDU: 90 00 [19:42:52]wFMCommunicate OK [19:42:52]wFMCommunicate request_size=10 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 0D 02 02 05 9A 2D 64 C2 8A [19:42:52]Write to MH i2c: E2 0D 00 A5 1C 80 0D 02 02 05 00 9A 2D 64 C2 8A 00 00 BC [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 03 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [19:42:52]RAPDU: 90 00 [19:42:52]wFMCommunicate OK [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 0D 03 02 [19:42:52]Write to MH i2c: E2 08 00 A6 1C 80 0D 03 02 00 00 00 00 3D [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0B 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 0B 00 A6 1C 00 4E 9A C6 E3 4F 89 37 74 90 00 52 [19:42:52]RAPDU: 4E 9A C6 E3 4F 89 37 74 90 00 [19:42:52]wFMCommunicate OK [19:42:52]SAM_PROTO_SignData done [19:42:52]FM_MakeSignedData done [19:42:52]CreateOFDProtocolMessage [19:42:52]wFMCommunicate request_size=4 [19:42:52]MH_SAM_APDU [19:42:52]CAPDU: 80 11 00 00 [19:42:52]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:52]Read from MH i2c: E2 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 17 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 94 [19:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:42:52]wFMCommunicate OK [19:42:52]CreateOFDProtocolMessage done [19:42:52]OFDSenderStorePacket 140370 [19:42:52]StoreOFDPacket docnum=140370 [19:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 34 47 07 01 90 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 24 02 00 35 04 06 00 DD 9A 2D 64 C2 8A 4E 9A C6 E3 4F 89 37 74 [19:42:52]CheckFolder [19:42:52]dirname=/storage/ofd_packets [19:42:52]CheckFolder done [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00140370 [19:42:52]NVStorageSaveData ofd_packets/00140370 [19:42:52]File name is /storage/ofd_packets/00140370 [19:42:52]Write 301 bytes [19:42:52]NVStorageSaveData done [19:42:52]OFDSenderStorePacket done [19:42:52]KKMCreateOFDPacket done [19:42:52]NVStorageSaveData kkm_last_timestamp [19:42:52]File name is /storage/kkm_last_timestamp [19:42:52]Write 4 bytes [19:42:52]NVStorageSaveData done [19:42:52]ExternCall_PrintAddStr [19:42:52]wPrintStart [19:42:52]Write to MH i2c: 01 00 00 A8 1C C4 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [19:42:52]RasterBufferAndPrint [19:42:52]line Счет N : (1)594228 [19:42:52]line ИНН: 02508201610067 [19:42:52]line Контрольно-Кассовый Чек [19:42:52]line ПРОДАЖА [19:42:52]line ТРК (МРК, ГНК) : 32 [19:42:52]line Товар: 2710124130 [19:42:52]line Аи-92-К-5 [19:42:52]line 7.380 * 67.80 [19:42:52]line = 500.36 [19:42:52]line НДС 12% НСП 1% [19:42:52]line > о реализуемом товаре [19:42:52]line ОКРУГЛЕНИЕ: -0.36 [19:42:52]line ИТОГО: 500.00 [19:42:52]line Внесено: 500.00 [19:42:52]line СДАЧА: 0.00 [19:42:52]line НСП 1% : 4.43 [19:42:52]line НДС 12% : 53.14 [19:42:52]line Наличными: 500.00 [19:42:52]line Безнал.: 0.00 [19:42:52]line Место: АЗС № 136 "Партнер Нефть" [19:42:52]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:42:52]line СНО: Общий режим [19:42:52]line Чек 387 21.08.2024 19:42 [19:42:52]line Смена: 454 ФФД: 1.0 [19:42:52]line ЗНМ: 0300000067 [19:42:52]line РНМ: 0000000000092569 [19:42:52]line Версия ККМ: 001 [19:42:52]line ФМ: 0000000000871776 [19:42:52]line ФД: 140370 [19:42:52]line ФПД: 243654256280202 [19:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194251&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140370&fm=243654256280202&tin=02508201610067®Number=0000000000092569&sum=50000 [19:42:52]written 0, free lines is 4095 [19:42:52]OFD Sender: Processing packet 140370 [packets to send 137, broken 136] [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00140370 [19:42:52]OFD Sender: To server: pG, [19:42:52]CommunicateWithHost lk.salyk.kg:30040 [19:42:52]ConnectInit lk.salyk.kg [19:42:52]Connected sock=10 [19: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 37 36 0F 01 00 00 34 47 07 01 90 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3B 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 52 24 02 00 35 04 06 00 DD 9A 2D 64 C2 8A 4E 9A C6 E3 4F 89 37 74 [19:42:52]Write to MH i2c: 01 00 00 D3 1C EF [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: 01 07 00 D3 1C 00 00 00 00 00 D4 0C D6 [19:42:52]RasterBufferAndPrint [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]line [19:42:52]written 0, free lines is 3295 [19:42:52]MH_Cut [19:42:52]Write to MH i2c: D1 01 00 DA 1C 01 C8 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 [19:42:52]MH_I2C_Read... [19:42:52]Read from MH i2c: D1 01 00 DA 1C 00 C7 [19:42:52]Write to MH i2c: 01 00 00 DB 1C F7 [19:42:52]Write i2c OK [19:42:52]MH_I2C_Read... [19: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 37 36 4F 00 00 00 E6 88 47 00 4A 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 37 36 10 04 04 00 52 24 02 00 F4 03 04 00 CB E9 C5 66 B6 04 01 00 00 A4 A6 65 8A 8A 79 F3 F0 [19:42:52]CommunicateWithHost err = 0 [19:42:52]CheckOFDResponse [19:42:52]1017 (14) - 77093643461234 [19:42:52]1041 (16) - 0000000000871776 [19:42:52]1040 (4) - 140370 [19:42:52]1012 (4) - 21.08.2024 13:21 [19:42:52]1206 (1) - 0 [19:42:52]OFD Sender: Remove packet 140370 [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00140370 [19:42:52]NVStorageDeleteData [19:42:53]OFD Sender: No OFD packet to send [19:42:53]*** Cut start [19:42:53]*** Partial cut [19:42:53]*** CUTSNS_PIN = 1 [19:42:53]*** CUTSNS_PIN = 0 [19:42:53]*** Brake cut motor [19:42:54]Read from MH i2c: 01 [19:42:54]MH_I2C_Read... [19:42:54]*** Stop cut motor [19:42:54]*** Cut end [19:42:54]Read from MH i2c: 01 07 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: 01 07 00 DB 1C 00 00 00 00 00 FF 0F 0C [19:42:54]process_action close_receipt done [19:42:54]requested_data is exist [19:42:54]produce_requested_data [19:42:54]requested_item fm.sn is exist - process it [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 11 00 00 [19:42:54]Write to MH i2c: E2 08 00 DC 1C 80 11 00 00 00 00 00 00 72 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 17 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 17 00 DC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [19:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:42:54]wFMCommunicate OK [19:42:54]requested_item fd.num is exist - process it [19:42:54]SAM_PROTO_GetFieldsCounters [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 13 00 00 [19:42:54]Write to MH i2c: E2 08 00 DD 1C 80 13 00 00 00 00 00 00 75 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 62 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 62 00 DD 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 24 02 00 0E 04 04 00 C6 01 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 6B [19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 52 24 02 00 0E 04 04 00 C6 01 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 [19:42:54]wFMCommunicate OK [19:42:54]SAM_PROTO_GetFieldsCounters done [19:42:54]requested_item shift.num is exist - process it [19:42:54]requested_item shift.opened is exist - process it [19:42:54]req_shift_opened [19:42:54]FM_GetShiftState [19:42:54]SAM_PROTO_GetShiftState [19:42:54]wFMCommunicate request_size=4 [19:42:54]MH_SAM_APDU [19:42:54]CAPDU: 80 13 01 00 [19:42:54]Write to MH i2c: E2 08 00 DE 1C 80 13 01 00 00 00 00 00 77 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:54]Read from MH i2c: E2 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 0E 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: E2 0E 00 DE 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F7 [19:42:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:42:54]wFMCommunicate OK [19:42:54]SAM_PROTO_GetShiftState done [19:42:54]FM_GetShiftState done [19:42:54]req_shift_opened done [19:42:54]requested_item shift.open_date is exist - process it [19:42:54]req_shift_open_date [19:42:54]req_shift_open_date done [19:42:54]produce_requested_data done [19:42:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140370,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:42:54]process_action_free close_receipt [19:42:54]json_value_free [19:42:54]json_value_free done [19:42:54]process_json_proto returns [19:42:54]Send response to host [19:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140370,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:42:54]free response buf [19:42:54]execute_script done [19:42:54]execute_script returns [19:42:54]free content buf [19:42:54]Sock 7.Close socket [19:42:54]Sock 7.Thread stoped [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:34]accept exits with 9 [19:45:34]New connection [19:45:34]New thread 3067612516 created [19:45:34]Thread 3067469156 joined [19:45:34]Waiting for new connection... [19:45:34] Sock 9.Parse request [19:45:34]Sock 9.Check first char [19:45:34]Sock 9.First char is OK [19:45:34]request: POST /json_proto HTTP/1.0 [19:45:34]Method: POST [19:45:34]URL: /json_proto [19:45:34]Method is POST - this is cgi request [19:45:34]url: /json_proto [19:45:34]query_string will be loaded in cgi processing [19:45:34]execute_cgi json_proto POST (null) [19:45:34]execute_cgi path=json_proto method=POST [19:45:34]POST find Content-Length [19:45:34]Host: 172.17.45.67:8080 [19:45:34]Content-Length: 677 [19:45:34]Content-Type: application/json [19:45:34] [19:45:34]POST finish read [19:45:34]Found Content-Length = 677 [19:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [19:45:34]execute_script... [19:45: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)594229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.170, "sum" : 350.53, "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" ] } } [19:45:34]POST & json_proto [19:45:34]process_json_proto [19:45:34]json parsed OK: [19:45:34]protocol is kg_v1.0 [19:45:34]action value=close_receipt [19:45:34]process_action close_receipt [19:45:34]cmd_close_receipt [19:45:34]MH_GetDate [19:45:34]Write to MH i2c: F0 00 00 DF 1C EA [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 09 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: F0 09 00 DF 1C 00 DF 43 C6 66 5F 7F 2B 66 B0 [19:45:34]GetLastDocTimeStamp 1724269371 [19:45:34]current date 1724269535 [19:45:34]FM_GetShiftState [19:45:34]SAM_PROTO_GetShiftState [19:45:34]wFMCommunicate request_size=4 [19:45:34]MH_SAM_APDU [19:45:34]CAPDU: 80 13 01 00 [19:45:34]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [19:45:34]Write i2c OK [19:45:34]MH_I2C_Read... [19:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:34]Read from MH i2c: E2 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: E2 0E 00 [19:45:34]MH_I2C_Read... [19:45:34]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F9 [19:45:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:45:34]wFMCommunicate OK [19:45:34]SAM_PROTO_GetShiftState done [19:45:34]FM_GetShiftState done [19:45:34]opened in 1724200467 [19:45:34]opened+sec_in_day 1724286867 [19:45:34]quantity*price = 35052 [19:45:34]sum+1 = 35054 [19:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 388 21.08.2024 19:45 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140371 ФПД: 5883943437936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140371&fm=5883943437936&tin=02508201610067®Number=0000000000092569&sum=35000 [19:45:35]StoreToDocumentArchive [19:45:35]shift 454 fd 140371 [19:45:35]save to /storage/0454/doc_00140371 [19:45:35]save last doc name /storage/0454/doc_00140371 to /storage/kkm_last_doc_name [19:45:35]save OK [19:45:35]Clear old archive folders... [19:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:35]tlvbuf is B6FF6010 [19:45:35]SAM_PROTO_ClearQueue [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 09 00 00 [19:45:35]Write to MH i2c: E2 08 00 ED 1C 80 09 00 00 00 00 00 00 7B [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:35]Read from MH i2c: E2 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 [19:45:35]MH_I2C_Read... [19:45:35]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [19:45:35]RAPDU: 90 00 [19:45:35]wFMCommunicate OK [19:45:35]SAM_PROTO_ClearQueue done [19:45:35]KKMCreateOFDPacket [19:45:35]OFDProtocolAddRootSTLVToBuf [19:45:35]FM_MakeSignedData [19:45:35]FM_MakeSignedData [19:45:35]SAM_PROTO_SignData [19:45:35]wFMCommunicate request_size=4 [19:45:35]MH_SAM_APDU [19:45:35]CAPDU: 80 0D 01 02 [19:45:35]Write to MH i2c: E2 08 00 EE 1C 80 0D 01 02 00 00 00 00 83 [19:45:35]Write i2c OK [19:45:35]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [19:45:36]RAPDU: 90 00 [19:45:36]wFMCommunicate OK [19:45:36]wFMCommunicate request_size=255 [19:45:36]MH_SAM_APDU [19:45: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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 84 01 00 00 F4 03 04 00 DF 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 24 02 00 35 04 06 00 05 [19:45:36]Write to MH i2c: E2 02 01 EF 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 84 01 00 00 F4 03 04 00 DF 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 24 02 00 35 04 06 00 05 00 00 4F [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [19:45:36]RAPDU: 90 00 [19:45:36]wFMCommunicate OK [19:45:36]wFMCommunicate request_size=10 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 0D 02 02 05 59 F6 5B C6 70 [19:45:36]Write to MH i2c: E2 0D 00 F0 1C 80 0D 02 02 05 00 59 F6 5B C6 70 00 00 70 [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [19:45:36]RAPDU: 90 00 [19:45:36]wFMCommunicate OK [19:45:36]wFMCommunicate request_size=4 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 0D 03 02 [19:45:36]Write to MH i2c: E2 08 00 F1 1C 80 0D 03 02 00 00 00 00 88 [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 0B 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 0B 00 F1 1C 00 5C DD 5F CE FC 39 DC E5 90 00 E5 [19:45:36]RAPDU: 5C DD 5F CE FC 39 DC E5 90 00 [19:45:36]wFMCommunicate OK [19:45:36]SAM_PROTO_SignData done [19:45:36]FM_MakeSignedData done [19:45:36]CreateOFDProtocolMessage [19:45:36]wFMCommunicate request_size=4 [19:45:36]MH_SAM_APDU [19:45:36]CAPDU: 80 11 00 00 [19:45:36]Write to MH i2c: E2 08 00 F2 1C 80 11 00 00 00 00 00 00 88 [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:36]Read from MH i2c: E2 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 17 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: E2 17 00 F2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DF [19:45:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:45:36]wFMCommunicate OK [19:45:36]CreateOFDProtocolMessage done [19:45:36]OFDSenderStorePacket 140371 [19:45:36]StoreOFDPacket docnum=140371 [19:45:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BF B2 07 01 41 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 84 01 00 00 F4 03 04 00 DF 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 24 02 00 35 04 06 00 05 59 F6 5B C6 70 5C DD 5F CE FC 39 DC E5 [19:45:36]CheckFolder [19:45:36]dirname=/storage/ofd_packets [19:45:36]CheckFolder done [19:45:36]ProducePacketName [19:45:36]name=ofd_packets/00140371 [19:45:36]NVStorageSaveData ofd_packets/00140371 [19:45:36]File name is /storage/ofd_packets/00140371 [19:45:36]Write 301 bytes [19:45:36]NVStorageSaveData done [19:45:36]OFDSenderStorePacket done [19:45:36]KKMCreateOFDPacket done [19:45:36]NVStorageSaveData kkm_last_timestamp [19:45:36]File name is /storage/kkm_last_timestamp [19:45:36]Write 4 bytes [19:45:36]NVStorageSaveData done [19:45:36]ExternCall_PrintAddStr [19:45:36]wPrintStart [19:45:36]Write to MH i2c: 01 00 00 F3 1C 0F [19:45:36]Write i2c OK [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 07 00 [19:45:36]MH_I2C_Read... [19:45:36]Read from MH i2c: 01 07 00 F3 1C 00 00 00 00 00 FF 0F 24 [19:45:36]RasterBufferAndPrint [19:45:36]line Счет N : (1)594229 [19:45:36]line ИНН: 02508201610067 [19:45:36]line Контрольно-Кассовый Чек [19:45:36]line ПРОДАЖА [19:45:36]line ТРК (МРК, ГНК) : 32 [19:45:36]line Товар: 2710124130 [19:45:36]line Аи-92-К-5 [19:45:36]line 5.170 * 67.80 [19:45:36]line = 350.53 [19:45:36]line НДС 12% НСП 1% [19:45:36]line > о реализуемом товаре [19:45:36]line ОКРУГЛЕНИЕ: -0.53 [19:45:36]line ИТОГО: 350.00 [19:45:36]line Внесено: 350.00 [19:45:36]line СДАЧА: 0.00 [19:45:36]line НСП 1% : 3.10 [19:45:36]line НДС 12% : 37.22 [19:45:36]line Наличными: 350.00 [19:45:36]line Безнал.: 0.00 [19:45:36]line Место: АЗС № 136 "Партнер Нефть" [19:45:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:45:36]line СНО: Общий режим [19:45:36]line Чек 388 21.08.2024 19:45 [19:45:36]line Смена: 454 ФФД: 1.0 [19:45:36]line ЗНМ: 0300000067 [19:45:36]line РНМ: 0000000000092569 [19:45:36]line Версия ККМ: 001 [19:45:36]line ФМ: 0000000000871776 [19:45:36]line ФД: 140371 [19:45:36]line ФПД: 5883943437936 [19:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194535&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140371&fm=5883943437936&tin=02508201610067®Number=0000000000092569&sum=35000 [19:45:36]written 0, free lines is 4095 [19:45:36]OFD Sender: Processing packet 140371 [packets to send 137, broken 136] [19:45:36]ProducePacketName [19:45:36]name=ofd_packets/00140371 [19:45:36]OFD Sender: To server: pG, [19:45:36]CommunicateWithHost lk.salyk.kg:30040 [19:45:36]ConnectInit lk.salyk.kg [19:45:36]Connected sock=10 [19:45: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 37 36 0F 01 00 00 BF B2 07 01 41 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 32 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 ED 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 8A 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 84 01 00 00 F4 03 04 00 DF 43 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 53 24 02 00 35 04 06 00 05 59 F6 5B C6 70 5C DD 5F CE FC 39 DC E5 [19:45: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 37 36 4F 00 00 00 DF 77 47 00 79 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 37 36 10 04 04 00 53 24 02 00 F4 03 04 00 6F EA C5 66 B6 04 01 00 00 49 C9 92 91 EE B7 EF 28 [19:45:37]CommunicateWithHost err = 0 [19:45:37]CheckOFDResponse [19:45:37]1017 (14) - 77093643461234 [19:45:37]1041 (16) - 0000000000871776 [19:45:37]1040 (4) - 140371 [19:45:37]1012 (4) - 21.08.2024 13:23 [19:45:37]1206 (1) - 0 [19:45:37]OFD Sender: Remove packet 140371 [19:45:37]ProducePacketName [19:45:37]name=ofd_packets/00140371 [19:45:37]NVStorageDeleteData [19:45:37]Write to MH i2c: 01 00 00 1E 1D 3B [19:45:37]Write i2c OK [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: 01 [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: 01 07 00 [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: 01 07 00 1E 1D 00 00 00 00 00 DA 0C 28 [19:45:37]RasterBufferAndPrint [19:45:37]line [19:45:37]line [19:45:37]line [19:45:37]line [19:45:37]line [19:45:37]written 0, free lines is 3297 [19:45:37]MH_Cut [19:45:37]Write to MH i2c: D1 01 00 25 1D 01 14 [19:45:37]Write i2c OK [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: D1 [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: D1 01 00 [19:45:37]MH_I2C_Read... [19:45:37]Read from MH i2c: D1 01 00 25 1D 00 13 [19:45:37]Write to MH i2c: 01 00 00 26 1D 43 [19:45:37]Write i2c OK [19:45:37]MH_I2C_Read... [19:45:37]OFD Sender: No OFD packet to send [19:45:37]*** Cut start [19:45:37]*** Partial cut [19:45:37]*** CUTSNS_PIN = 1 [19:45:38]*** CUTSNS_PIN = 0 [19:45:38]*** Brake cut motor [19:45:38]Read from MH i2c: 01 [19:45:38]MH_I2C_Read... [19:45:38]*** Stop cut motor [19:45:38]*** Cut end [19:45:38]Read from MH i2c: 01 07 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: 01 07 00 26 1D 00 00 00 00 00 FF 0F 58 [19:45:38]process_action close_receipt done [19:45:38]requested_data is exist [19:45:38]produce_requested_data [19:45:38]requested_item fm.sn is exist - process it [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 11 00 00 [19:45:38]Write to MH i2c: E2 08 00 27 1D 80 11 00 00 00 00 00 00 BE [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 17 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 17 00 27 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [19:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:45:38]wFMCommunicate OK [19:45:38]requested_item fd.num is exist - process it [19:45:38]SAM_PROTO_GetFieldsCounters [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 13 00 00 [19:45:38]Write to MH i2c: E2 08 00 28 1D 80 13 00 00 00 00 00 00 C1 [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 62 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 62 00 28 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 24 02 00 0E 04 04 00 C6 01 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 BB [19:45: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 53 24 02 00 0E 04 04 00 C6 01 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 [19:45:38]wFMCommunicate OK [19:45:38]SAM_PROTO_GetFieldsCounters done [19:45:38]requested_item shift.num is exist - process it [19:45:38]requested_item shift.opened is exist - process it [19:45:38]req_shift_opened [19:45:38]FM_GetShiftState [19:45:38]SAM_PROTO_GetShiftState [19:45:38]wFMCommunicate request_size=4 [19:45:38]MH_SAM_APDU [19:45:38]CAPDU: 80 13 01 00 [19:45:38]Write to MH i2c: E2 08 00 29 1D 80 13 01 00 00 00 00 00 C3 [19:45:38]Write i2c OK [19:45:38]MH_I2C_Read... [19:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:38]Read from MH i2c: E2 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 [19:45:38]MH_I2C_Read... [19:45:38]Read from MH i2c: E2 0E 00 29 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 43 [19:45:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:45:38]wFMCommunicate OK [19:45:38]SAM_PROTO_GetShiftState done [19:45:38]FM_GetShiftState done [19:45:38]req_shift_opened done [19:45:38]requested_item shift.open_date is exist - process it [19:45:38]req_shift_open_date [19:45:38]req_shift_open_date done [19:45:38]produce_requested_data done [19:45:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140371,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:45:38]process_action_free close_receipt [19:45:38]json_value_free [19:45:38]json_value_free done [19:45:38]process_json_proto returns [19:45:38]Send response to host [19:45:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140371,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:45:38]free response buf [19:45:38]execute_script done [19:45:38]execute_script returns [19:45:38]free content buf [19:45:38]Sock 9.Close socket [19:45:38]Sock 9.Thread stoped [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:10]int [19:46:10]Write to MH i2c: 01 00 00 2A 1D 47 [19:46:10]*** FLAG_PRN_KEY set [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 2A 1D 00 08 00 00 00 FF 0F 64 [19:46:10]state=0 [19:46:10]Key pressed [19:46:10]Feed [19:46:10]Write to MH i2c: D8 00 00 2B 1D 1F [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D8 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D8 01 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: D8 01 00 2B 1D 00 20 [19:46:10]int [19:46:10]Write to MH i2c: 01 00 00 2C 1D 49 [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 2C 1D 00 48 00 00 00 3C 00 D4 [19:46:10]state=2 [19:46:10]Key pressed [19:46:10]int [19:46:10]Write to MH i2c: 01 00 00 2D 1D 4A [19:46:10]*** FLAG_PRN_KEY reset [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: 01 07 00 2D 1D 00 00 00 00 00 F6 0F 56 [19:46:10]state=2 [19:46:10]Stop feed [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:25]accept exits with 7 [19:48:25]New connection [19:48:25]New thread 3067469156 created [19:48:25]Thread 3067612516 joined [19:48:25]Waiting for new connection... [19:48:25] Sock 7.Parse request [19:48:25]Sock 7.Check first char [19:48:25]Sock 7.First char is OK [19:48:25]request: POST /json_proto HTTP/1.0 [19:48:25]Method: POST [19:48:25]URL: /json_proto [19:48:25]Method is POST - this is cgi request [19:48:25]url: /json_proto [19:48:25]query_string will be loaded in cgi processing [19:48:25]execute_cgi json_proto POST (null) [19:48:25]execute_cgi path=json_proto method=POST [19:48:25]POST find Content-Length [19:48:25]Host: 172.17.45.67:8080 [19:48:25]Content-Length: 658 [19:48:25]Content-Type: application/json [19:48:25] [19:48:25]POST finish read [19:48:25]Found Content-Length = 658 [19:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:48:25]execute_script... [19:48: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)594230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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:48:25]POST & json_proto [19:48:25]process_json_proto [19:48:25]json parsed OK: [19:48:25]protocol is kg_v1.0 [19:48:25]action value=close_receipt [19:48:25]process_action close_receipt [19:48:25]cmd_close_receipt [19:48:25]MH_GetDate [19:48:25]Write to MH i2c: F0 00 00 2E 1D 3A [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 09 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: F0 09 00 2E 1D 00 8A 44 C6 66 5F 7F 2B 66 AC [19:48:25]GetLastDocTimeStamp 1724269535 [19:48:25]current date 1724269706 [19:48:25]FM_GetShiftState [19:48:25]SAM_PROTO_GetShiftState [19:48:25]wFMCommunicate request_size=4 [19:48:25]MH_SAM_APDU [19:48:25]CAPDU: 80 13 01 00 [19:48:25]Write to MH i2c: E2 08 00 2F 1D 80 13 01 00 00 00 00 00 C9 [19:48:25]Write i2c OK [19:48:25]MH_I2C_Read... [19:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:25]Read from MH i2c: E2 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 0E 00 [19:48:25]MH_I2C_Read... [19:48:25]Read from MH i2c: E2 0E 00 2F 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 49 [19:48:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:48:25]wFMCommunicate OK [19:48:25]SAM_PROTO_GetShiftState done [19:48:25]FM_GetShiftState done [19:48:25]opened in 1724200467 [19:48:25]opened+sec_in_day 1724286867 [19:48:25]quantity*price = 40041 [19:48:25]sum+1 = 40043 [19:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 389 21.08.2024 19:48 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140372 ФПД: 39850946524271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140372&fm=39850946524271&tin=02508201610067®Number=0000000000092569&sum=40000 [19:48:26]StoreToDocumentArchive [19:48:26]shift 454 fd 140372 [19:48:26]save to /storage/0454/doc_00140372 [19:48:26]save last doc name /storage/0454/doc_00140372 to /storage/kkm_last_doc_name [19:48:26]save OK [19:48:26]Clear old archive folders... [19:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:48:26]tlvbuf is B6E49790 [19:48:26]SAM_PROTO_ClearQueue [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 09 00 00 [19:48:26]Write to MH i2c: E2 08 00 3C 1D 80 09 00 00 00 00 00 00 CB [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_ClearQueue done [19:48:26]KKMCreateOFDPacket [19:48:26]OFDProtocolAddRootSTLVToBuf [19:48:26]FM_MakeSignedData [19:48:26]FM_MakeSignedData [19:48:26]SAM_PROTO_SignData [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 01 02 [19:48:26]Write to MH i2c: E2 08 00 3D 1D 80 0D 01 02 00 00 00 00 D3 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]wFMCommunicate request_size=253 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 8A 44 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 24 02 00 35 04 06 00 24 3E 85 82 F4 6F [19:48:26]Write to MH i2c: E2 00 01 3E 1D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 8A 44 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 24 02 00 35 04 06 00 24 3E 85 82 F4 6F 00 00 BB [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [19:48:26]RAPDU: 90 00 [19:48:26]wFMCommunicate OK [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 0D 03 02 [19:48:26]Write to MH i2c: E2 08 00 3F 1D 80 0D 03 02 00 00 00 00 D7 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0B 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 0B 00 3F 1D 00 19 DB 5D 75 64 1E 9A AA 90 00 64 [19:48:26]RAPDU: 19 DB 5D 75 64 1E 9A AA 90 00 [19:48:26]wFMCommunicate OK [19:48:26]SAM_PROTO_SignData done [19:48:26]FM_MakeSignedData done [19:48:26]CreateOFDProtocolMessage [19:48:26]wFMCommunicate request_size=4 [19:48:26]MH_SAM_APDU [19:48:26]CAPDU: 80 11 00 00 [19:48:26]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:26]Read from MH i2c: E2 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2E [19:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:48:26]wFMCommunicate OK [19:48:26]CreateOFDProtocolMessage done [19:48:26]OFDSenderStorePacket 140372 [19:48:26]StoreOFDPacket docnum=140372 [19:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 B7 3C 00 01 ED E3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 8A 44 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 24 02 00 35 04 06 00 24 3E 85 82 F4 6F 19 DB 5D 75 64 1E 9A AA [19:48:26]CheckFolder [19:48:26]dirname=/storage/ofd_packets [19:48:26]CheckFolder done [19:48:26]ProducePacketName [19:48:26]name=ofd_packets/00140372 [19:48:26]NVStorageSaveData ofd_packets/00140372 [19:48:26]File name is /storage/ofd_packets/00140372 [19:48:26]Write 294 bytes [19:48:26]NVStorageSaveData done [19:48:26]OFDSenderStorePacket done [19:48:26]KKMCreateOFDPacket done [19:48:26]NVStorageSaveData kkm_last_timestamp [19:48:26]File name is /storage/kkm_last_timestamp [19:48:26]Write 4 bytes [19:48:26]NVStorageSaveData done [19:48:26]ExternCall_PrintAddStr [19:48:26]wPrintStart [19:48:26]Write to MH i2c: 01 00 00 41 1D 5E [19:48:26]Write i2c OK [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 07 00 [19:48:26]MH_I2C_Read... [19:48:26]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FF 0F 73 [19:48:26]RasterBufferAndPrint [19:48:26]line Счет N : (1)594230 [19:48:26]line ИНН: 02508201610067 [19:48:26]line Контрольно-Кассовый Чек [19:48:26]line ПРОДАЖА [19:48:26]line ТРК (МРК, ГНК) : 63 [19:48:26]line Товар: 2710124130 [19:48:26]line SU-92 [19:48:26]line 5.820 * 68.80 [19:48:26]line = 400.42 [19:48:26]line НДС 12% НСП 1% [19:48:26]line > о реализуемом товаре [19:48:26]line ОКРУГЛЕНИЕ: -0.42 [19:48:26]line ИТОГО: 400.00 [19:48:26]line Внесено: 400.00 [19:48:26]line СДАЧА: 0.00 [19:48:26]line НСП 1% : 3.54 [19:48:26]line НДС 12% : 42.52 [19:48:26]line Наличными: 400.00 [19:48:26]line Безнал.: 0.00 [19:48:26]line Место: АЗС № 136 "Партнер Нефть" [19:48:26]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:48:26]line СНО: Общий режим [19:48:26]line Чек 389 21.08.2024 19:48 [19:48:26]line Смена: 454 ФФД: 1.0 [19:48:26]line ЗНМ: 0300000067 [19:48:26]line РНМ: 0000000000092569 [19:48:26]line Версия ККМ: 001 [19:48:26]line ФМ: 0000000000871776 [19:48:26]line ФД: 140372 [19:48:26]line ФПД: 39850946524271 [19:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T194826&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140372&fm=39850946524271&tin=02508201610067®Number=0000000000092569&sum=40000 [19:48:27]OFD Sender: Processing packet 140372 [packets to send 137, broken 136] [19:48:27]ProducePacketName [19:48:27]name=ofd_packets/00140372 [19:48:27]OFD Sender: To server: pG, [19:48:27]CommunicateWithHost lk.salyk.kg:30040 [19:48:27]ConnectInit lk.salyk.kg [19:48:27]written 0, free lines is 4095 [19:48:27]Connected sock=10 [19:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 B7 3C 00 01 ED E3 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 8A 44 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 54 24 02 00 35 04 06 00 24 3E 85 82 F4 6F 19 DB 5D 75 64 1E 9A AA [19:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 A0 D0 47 00 F6 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 37 36 10 04 04 00 54 24 02 00 F4 03 04 00 1A EB C5 66 B6 04 01 00 00 1C 01 58 9E 3D 16 2A B1 [19:48:27]CommunicateWithHost err = 0 [19:48:27]CheckOFDResponse [19:48:27]1017 (14) - 77093643461234 [19:48:27]1041 (16) - 0000000000871776 [19:48:27]1040 (4) - 140372 [19:48:27]1012 (4) - 21.08.2024 13:26 [19:48:27]1206 (1) - 0 [19:48:27]OFD Sender: Remove packet 140372 [19:48:27]ProducePacketName [19:48:27]name=ofd_packets/00140372 [19:48:27]NVStorageDeleteData [19:48:27]Write to MH i2c: 01 00 00 6C 1D 89 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 07 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 E2 0C 7E [19:48:27]RasterBufferAndPrint [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]line [19:48:27]written 0, free lines is 3304 [19:48:27]MH_Cut [19:48:27]Write to MH i2c: D1 01 00 73 1D 01 62 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 01 00 [19:48:27]MH_I2C_Read... [19:48:27]Read from MH i2c: D1 01 00 73 1D 00 61 [19:48:27]Write to MH i2c: 01 00 00 74 1D 91 [19:48:27]Write i2c OK [19:48:27]MH_I2C_Read... [19:48:28]OFD Sender: No OFD packet to send [19:48:28]*** Cut start [19:48:28]*** Partial cut [19:48:28]*** CUTSNS_PIN = 1 [19:48:28]*** CUTSNS_PIN = 0 [19:48:28]*** Brake cut motor [19:48:28]Read from MH i2c: 01 [19:48:28]MH_I2C_Read... [19:48:28]*** Stop cut motor [19:48:28]*** Cut end [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 74 1D 00 00 00 00 00 FF 0F A6 [19:48:28]process_action close_receipt done [19:48:28]requested_data is exist [19:48:28]produce_requested_data [19:48:28]requested_item fm.sn is exist - process it [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 75 1D 80 11 00 00 00 00 00 00 0C [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 75 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [19:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:48:29]wFMCommunicate OK [19:48:29]requested_item fd.num is exist - process it [19:48:29]SAM_PROTO_GetFieldsCounters [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 13 00 00 [19:48:29]Write to MH i2c: E2 08 00 76 1D 80 13 00 00 00 00 00 00 0F [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 62 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 62 00 76 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 24 02 00 0E 04 04 00 C6 01 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 0D [19:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 54 24 02 00 0E 04 04 00 C6 01 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 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_GetFieldsCounters done [19:48:29]requested_item shift.num is exist - process it [19:48:29]requested_item shift.opened is exist - process it [19:48:29]req_shift_opened [19:48:29]FM_GetShiftState [19:48:29]SAM_PROTO_GetShiftState [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 13 01 00 [19:48:29]Write to MH i2c: E2 08 00 77 1D 80 13 01 00 00 00 00 00 11 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0E 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0E 00 77 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 91 [19:48:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_GetShiftState done [19:48:29]FM_GetShiftState done [19:48:29]req_shift_opened done [19:48:29]requested_item shift.open_date is exist - process it [19:48:29]req_shift_open_date [19:48:29]req_shift_open_date done [19:48:29]produce_requested_data done [19:48:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140372,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:48:29]process_action_free close_receipt [19:48:29]json_value_free [19:48:29]json_value_free done [19:48:29]process_json_proto returns [19:48:29]Send response to host [19:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140372,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:48:29]free response buf [19:48:29]execute_script done [19:48:29]execute_script returns [19:48:29]free content buf [19:48:29]Sock 7.Close socket [19:48:29]Sock 7.Thread stoped [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:38]accept exits with 9 [19:52:38]New connection [19:52:38]New thread 3067612516 created [19:52:38]Thread 3067469156 joined [19:52:38]Waiting for new connection... [19:52:38] Sock 9.Parse request [19:52:38]Sock 9.Check first char [19:52:38]Sock 9.First char is OK [19:52:38]request: POST /json_proto HTTP/1.0 [19:52:38]Method: POST [19:52:38]URL: /json_proto [19:52:38]Method is POST - this is cgi request [19:52:38]url: /json_proto [19:52:38]query_string will be loaded in cgi processing [19:52:38]execute_cgi json_proto POST (null) [19:52:38]execute_cgi path=json_proto method=POST [19:52:38]POST find Content-Length [19:52:38]Host: 172.17.45.67:8080 [19:52:38]Content-Length: 658 [19:52:38]Content-Type: application/json [19:52:38] [19:52:38]POST finish read [19:52:38]Found Content-Length = 658 [19:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "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" ] } } [19:52:38]execute_script... [19:52: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)594231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 5.090, "sum" : 350.19, "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" ] } } [19:52:38]POST & json_proto [19:52:38]process_json_proto [19:52:38]json parsed OK: [19:52:38]protocol is kg_v1.0 [19:52:38]action value=close_receipt [19:52:38]process_action close_receipt [19:52:38]cmd_close_receipt [19:52:38]MH_GetDate [19:52:38]Write to MH i2c: F0 00 00 78 1D 84 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: F0 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: F0 09 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: F0 09 00 78 1D 00 87 45 C6 66 5F 7F 2B 66 F4 [19:52:38]GetLastDocTimeStamp 1724269706 [19:52:38]current date 1724269959 [19:52:38]FM_GetShiftState [19:52:38]SAM_PROTO_GetShiftState [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 13 01 00 [19:52:38]Write to MH i2c: E2 08 00 79 1D 80 13 01 00 00 00 00 00 13 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0E 00 79 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 93 [19:52:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_GetShiftState done [19:52:38]FM_GetShiftState done [19:52:38]opened in 1724200467 [19:52:38]opened+sec_in_day 1724286867 [19:52:38]quantity*price = 35019 [19:52:38]sum+1 = 35020 [19:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 390 21.08.2024 19:52 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140373 ФПД: 154787328449922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195239&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140373&fm=154787328449922&tin=02508201610067®Number=0000000000092569&sum=35000 [19:52:40]StoreToDocumentArchive [19:52:40]shift 454 fd 140373 [19:52:40]save to /storage/0454/doc_00140373 [19:52:40]save last doc name /storage/0454/doc_00140373 to /storage/kkm_last_doc_name [19:52:40]save OK [19:52:40]Clear old archive folders... [19:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:52:40]tlvbuf is 00C34670 [19:52:40]SAM_PROTO_ClearQueue [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 09 00 00 [19:52:40]Write to MH i2c: E2 08 00 86 1D 80 09 00 00 00 00 00 00 15 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [19:52:40]RAPDU: 90 00 [19:52:40]wFMCommunicate OK [19:52:40]SAM_PROTO_ClearQueue done [19:52:40]KKMCreateOFDPacket [19:52:40]OFDProtocolAddRootSTLVToBuf [19:52:40]FM_MakeSignedData [19:52:40]FM_MakeSignedData [19:52:40]SAM_PROTO_SignData [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 0D 01 02 [19:52:40]Write to MH i2c: E2 08 00 87 1D 80 0D 01 02 00 00 00 00 1D [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [19:52:40]RAPDU: 90 00 [19:52:40]wFMCommunicate OK [19:52:40]wFMCommunicate request_size=253 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 86 01 00 00 F4 03 04 00 87 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 24 02 00 35 04 06 00 8C C7 3B BA 5D 82 [19:52:40]Write to MH i2c: E2 00 01 88 1D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 86 01 00 00 F4 03 04 00 87 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 24 02 00 35 04 06 00 8C C7 3B BA 5D 82 00 00 55 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [19:52:40]RAPDU: 90 00 [19:52:40]wFMCommunicate OK [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 0D 03 02 [19:52:40]Write to MH i2c: E2 08 00 89 1D 80 0D 03 02 00 00 00 00 21 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 0B 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 0B 00 89 1D 00 FB 15 CC C9 F8 8D 0A B2 90 00 08 [19:52:40]RAPDU: FB 15 CC C9 F8 8D 0A B2 90 00 [19:52:40]wFMCommunicate OK [19:52:40]SAM_PROTO_SignData done [19:52:40]FM_MakeSignedData done [19:52:40]CreateOFDProtocolMessage [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 11 00 00 [19:52:40]Write to MH i2c: E2 08 00 8A 1D 80 11 00 00 00 00 00 00 21 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 17 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 17 00 8A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 78 [19:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:40]wFMCommunicate OK [19:52:40]CreateOFDProtocolMessage done [19:52:40]OFDSenderStorePacket 140373 [19:52:40]StoreOFDPacket docnum=140373 [19:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 03 D1 00 01 0B 97 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 86 01 00 00 F4 03 04 00 87 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 24 02 00 35 04 06 00 8C C7 3B BA 5D 82 FB 15 CC C9 F8 8D 0A B2 [19:52:40]CheckFolder [19:52:40]dirname=/storage/ofd_packets [19:52:40]CheckFolder done [19:52:40]ProducePacketName [19:52:40]name=ofd_packets/00140373 [19:52:40]NVStorageSaveData ofd_packets/00140373 [19:52:40]File name is /storage/ofd_packets/00140373 [19:52:40]Write 294 bytes [19:52:40]NVStorageSaveData done [19:52:40]OFDSenderStorePacket done [19:52:40]KKMCreateOFDPacket done [19:52:40]NVStorageSaveData kkm_last_timestamp [19:52:40]File name is /storage/kkm_last_timestamp [19:52:40]Write 4 bytes [19:52:40]NVStorageSaveData done [19:52:40]ExternCall_PrintAddStr [19:52:40]wPrintStart [19:52:40]Write to MH i2c: 01 00 00 8B 1D A8 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: 01 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: 01 07 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: 01 07 00 8B 1D 00 00 00 00 00 FF 0F BD [19:52:40]RasterBufferAndPrint [19:52:40]line Счет N : (1)594231 [19:52:40]line ИНН: 02508201610067 [19:52:40]line Контрольно-Кассовый Чек [19:52:40]line ПРОДАЖА [19:52:40]line ТРК (МРК, ГНК) : 53 [19:52:40]line Товар: 2710124130 [19:52:40]line SU-92 [19:52:40]line 5.090 * 68.80 [19:52:40]line = 350.19 [19:52:40]line НДС 12% НСП 1% [19:52:40]line > о реализуемом товаре [19:52:40]line ОКРУГЛЕНИЕ: -0.19 [19:52:40]line ИТОГО: 350.00 [19:52:40]line Внесено: 350.00 [19:52:40]line СДАЧА: 0.00 [19:52:40]line НСП 1% : 3.10 [19:52:40]line НДС 12% : 37.19 [19:52:40]line Наличными: 350.00 [19:52:40]line Безнал.: 0.00 [19:52:40]line Место: АЗС № 136 "Партнер Нефть" [19:52:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:52:40]line СНО: Общий режим [19:52:40]line Чек 390 21.08.2024 19:52 [19:52:40]line Смена: 454 ФФД: 1.0 [19:52:40]line ЗНМ: 0300000067 [19:52:40]line РНМ: 0000000000092569 [19:52:40]line Версия ККМ: 001 [19:52:40]line ФМ: 0000000000871776 [19:52:40]line ФД: 140373 [19:52:40]line ФПД: 154787328449922 [19:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195239&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140373&fm=154787328449922&tin=02508201610067®Number=0000000000092569&sum=35000 [19:52:40]OFD Sender: Processing packet 140373 [packets to send 137, broken 136] [19:52:40]ProducePacketName [19:52:40]name=ofd_packets/00140373 [19:52:40]OFD Sender: To server: pG, [19:52:40]CommunicateWithHost lk.salyk.kg:30040 [19:52:40]ConnectInit lk.salyk.kg [19:52:40]written 0, free lines is 4095 [19:52:41]Connected sock=10 [19:52: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 37 36 08 01 00 00 03 D1 00 01 0B 97 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 CB 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 87 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 86 01 00 00 F4 03 04 00 87 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 55 24 02 00 35 04 06 00 8C C7 3B BA 5D 82 FB 15 CC C9 F8 8D 0A B2 [19:52: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 37 36 4F 00 00 00 64 69 47 00 2C 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 37 36 10 04 04 00 55 24 02 00 F4 03 04 00 17 EC C5 66 B6 04 01 00 00 80 EF 52 5A 3D 1E 70 DC [19:52:41]CommunicateWithHost err = 0 [19:52:41]CheckOFDResponse [19:52:41]1017 (14) - 77093643461234 [19:52:41]1041 (16) - 0000000000871776 [19:52:41]1040 (4) - 140373 [19:52:41]1012 (4) - 21.08.2024 13:31 [19:52:41]1206 (1) - 0 [19:52:41]OFD Sender: Remove packet 140373 [19:52:41]ProducePacketName [19:52:41]name=ofd_packets/00140373 [19:52:41]NVStorageDeleteData [19:52:41]Write to MH i2c: 01 00 00 B6 1D D3 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: 01 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: 01 07 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: 01 07 00 B6 1D 00 00 00 00 00 DD 0C C3 [19:52:41]RasterBufferAndPrint [19:52:41]line [19:52:41]line [19:52:41]line [19:52:41]line [19:52:41]line [19:52:41]written 0, free lines is 3300 [19:52:41]MH_Cut [19:52:41]Write to MH i2c: D1 01 00 BD 1D 01 AC [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: D1 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: D1 01 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: D1 01 00 BD 1D 00 AB [19:52:41]Write to MH i2c: 01 00 00 BE 1D DB [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]OFD Sender: No OFD packet to send [19:52:42]*** Cut start [19:52:42]*** Partial cut [19:52:42]*** CUTSNS_PIN = 1 [19:52:42]*** CUTSNS_PIN = 0 [19:52:42]*** Brake cut motor [19:52:42]Read from MH i2c: 01 [19:52:42]MH_I2C_Read... [19:52:42]*** Stop cut motor [19:52:42]*** Cut end [19:52:42]Read from MH i2c: 01 07 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 FF 0F F0 [19:52:42]process_action close_receipt done [19:52:42]requested_data is exist [19:52:42]produce_requested_data [19:52:42]requested_item fm.sn is exist - process it [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 11 00 00 [19:52:42]Write to MH i2c: E2 08 00 BF 1D 80 11 00 00 00 00 00 00 56 [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 17 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 17 00 BF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AD [19:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:52:42]wFMCommunicate OK [19:52:42]requested_item fd.num is exist - process it [19:52:42]SAM_PROTO_GetFieldsCounters [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 13 00 00 [19:52:42]Write to MH i2c: E2 08 00 C0 1D 80 13 00 00 00 00 00 00 59 [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 62 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 62 00 C0 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [19:52: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 55 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:42]wFMCommunicate OK [19:52:42]SAM_PROTO_GetFieldsCounters done [19:52:42]requested_item shift.num is exist - process it [19:52:42]requested_item shift.opened is exist - process it [19:52:42]req_shift_opened [19:52:42]FM_GetShiftState [19:52:42]SAM_PROTO_GetShiftState [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 13 01 00 [19:52:42]Write to MH i2c: E2 08 00 C1 1D 80 13 01 00 00 00 00 00 5B [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 0E 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 0E 00 C1 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DB [19:52:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:52:42]wFMCommunicate OK [19:52:42]SAM_PROTO_GetShiftState done [19:52:42]FM_GetShiftState done [19:52:42]req_shift_opened done [19:52:42]requested_item shift.open_date is exist - process it [19:52:42]req_shift_open_date [19:52:42]req_shift_open_date done [19:52:42]produce_requested_data done [19:52:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140373,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:52:42]process_action_free close_receipt [19:52:42]json_value_free [19:52:42]json_value_free done [19:52:42]process_json_proto returns [19:52:42]Send response to host [19:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140373,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:52:42]free response buf [19:52:42]execute_script done [19:52:42]execute_script returns [19:52:42]free content buf [19:52:42]Sock 9.Close socket [19:52:42]Sock 9.Thread stoped [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:10]accept exits with 7 [19:53:10]New connection [19:53:10]New thread 3067469156 created [19:53:10]Thread 3067612516 joined [19:53:10]Waiting for new connection... [19:53:10] Sock 7.Parse request [19:53:10]Sock 7.Check first char [19:53:10]Sock 7.First char is OK [19:53:10]request: POST /json_proto HTTP/1.0 [19:53:10]Method: POST [19:53:10]URL: /json_proto [19:53:10]Method is POST - this is cgi request [19:53:10]url: /json_proto [19:53:10]query_string will be loaded in cgi processing [19:53:10]execute_cgi json_proto POST (null) [19:53:10]execute_cgi path=json_proto method=POST [19:53:10]POST find Content-Length [19:53:10]Host: 172.17.45.67:8080 [19:53:10]Content-Length: 678 [19:53:10]Content-Type: application/json [19:53:10] [19:53:10]POST finish read [19:53:10]Found Content-Length = 678 [19:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:10]execute_script... [19:53: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)594232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:10]POST & json_proto [19:53:10]process_json_proto [19:53:10]json parsed OK: [19:53:10]protocol is kg_v1.0 [19:53:10]action value=close_receipt [19:53:10]process_action close_receipt [19:53:10]cmd_close_receipt [19:53:10]MH_GetDate [19:53:10]Write to MH i2c: F0 00 00 C2 1D CE [19:53:10]Write i2c OK [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: F0 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: F0 09 00 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: F0 09 00 C2 1D 00 A7 45 C6 66 5F 7F 2B 66 5E [19:53:10]GetLastDocTimeStamp 1724269959 [19:53:10]current date 1724269991 [19:53:10]FM_GetShiftState [19:53:10]SAM_PROTO_GetShiftState [19:53:10]wFMCommunicate request_size=4 [19:53:10]MH_SAM_APDU [19:53:10]CAPDU: 80 13 01 00 [19:53:10]Write to MH i2c: E2 08 00 C3 1D 80 13 01 00 00 00 00 00 5D [19:53:10]Write i2c OK [19:53:10]MH_I2C_Read... [19:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:10]Read from MH i2c: E2 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 0E 00 [19:53:10]MH_I2C_Read... [19:53:10]Read from MH i2c: E2 0E 00 C3 1D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DD [19:53:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:53:10]wFMCommunicate OK [19:53:10]SAM_PROTO_GetShiftState done [19:53:10]FM_GetShiftState done [19:53:10]opened in 1724200467 [19:53:10]opened+sec_in_day 1724286867 [19:53:10]quantity*price = 74037 [19:53:10]sum+1 = 74039 [19:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.62 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 391 21.08.2024 19:53 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140374 ФПД: 202798034183420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140374&fm=202798034183420&tin=02508201610067®Number=0000000000092569&sum=74000 [19:53:11]StoreToDocumentArchive [19:53:11]shift 454 fd 140374 [19:53:11]save to /storage/0454/doc_00140374 [19:53:11]save last doc name /storage/0454/doc_00140374 to /storage/kkm_last_doc_name [19:53:11]save OK [19:53:11]Clear old archive folders... [19:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:11]tlvbuf is B6E498D0 [19:53:11]SAM_PROTO_ClearQueue [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 09 00 00 [19:53:11]Write to MH i2c: E2 08 00 D0 1D 80 09 00 00 00 00 00 00 5F [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [19:53:11]RAPDU: 90 00 [19:53:11]wFMCommunicate OK [19:53:11]SAM_PROTO_ClearQueue done [19:53:11]KKMCreateOFDPacket [19:53:11]OFDProtocolAddRootSTLVToBuf [19:53:11]FM_MakeSignedData [19:53:11]FM_MakeSignedData [19:53:11]SAM_PROTO_SignData [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 0D 01 02 [19:53:11]Write to MH i2c: E2 08 00 D1 1D 80 0D 01 02 00 00 00 00 67 [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [19:53:11]RAPDU: 90 00 [19:53:11]wFMCommunicate OK [19:53:11]wFMCommunicate request_size=255 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 A7 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 24 02 00 35 04 06 00 B8 [19:53:11]Write to MH i2c: E2 02 01 D2 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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 A7 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 24 02 00 35 04 06 00 B8 00 00 9F [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]OFD Sender: No OFD packet to send [19:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [19:53:11]RAPDU: 90 00 [19:53:11]wFMCommunicate OK [19:53:11]wFMCommunicate request_size=10 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 0D 02 02 05 71 98 C9 E4 FC [19:53:11]Write to MH i2c: E2 0D 00 D3 1D 80 0D 02 02 05 00 71 98 C9 E4 FC 00 00 26 [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:11]Read from MH i2c: E2 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 [19:53:11]MH_I2C_Read... [19:53:11]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [19:53:11]RAPDU: 90 00 [19:53:11]wFMCommunicate OK [19:53:11]wFMCommunicate request_size=4 [19:53:11]MH_SAM_APDU [19:53:11]CAPDU: 80 0D 03 02 [19:53:11]Write to MH i2c: E2 08 00 D4 1D 80 0D 03 02 00 00 00 00 6C [19:53:11]Write i2c OK [19:53:11]MH_I2C_Read... [19:53:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:12]Read from MH i2c: E2 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: E2 0B 00 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: E2 0B 00 D4 1D 00 C3 04 B1 81 51 5B EE 77 90 00 77 [19:53:12]RAPDU: C3 04 B1 81 51 5B EE 77 90 00 [19:53:12]wFMCommunicate OK [19:53:12]SAM_PROTO_SignData done [19:53:12]FM_MakeSignedData done [19:53:12]CreateOFDProtocolMessage [19:53:12]wFMCommunicate request_size=4 [19:53:12]MH_SAM_APDU [19:53:12]CAPDU: 80 11 00 00 [19:53:12]Write to MH i2c: E2 08 00 D5 1D 80 11 00 00 00 00 00 00 6C [19:53:12]Write i2c OK [19:53:12]MH_I2C_Read... [19:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:12]Read from MH i2c: E2 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: E2 17 00 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: E2 17 00 D5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C3 [19:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:53:12]wFMCommunicate OK [19:53:12]CreateOFDProtocolMessage done [19:53:12]OFDSenderStorePacket 140374 [19:53:12]StoreOFDPacket docnum=140374 [19:53:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A3 26 07 01 A0 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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 A7 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 24 02 00 35 04 06 00 B8 71 98 C9 E4 FC C3 04 B1 81 51 5B EE 77 [19:53:12]CheckFolder [19:53:12]dirname=/storage/ofd_packets [19:53:12]CheckFolder done [19:53:12]ProducePacketName [19:53:12]name=ofd_packets/00140374 [19:53:12]NVStorageSaveData ofd_packets/00140374 [19:53:12]File name is /storage/ofd_packets/00140374 [19:53:12]Write 301 bytes [19:53:12]NVStorageSaveData done [19:53:12]OFDSenderStorePacket done [19:53:12]KKMCreateOFDPacket done [19:53:12]NVStorageSaveData kkm_last_timestamp [19:53:12]File name is /storage/kkm_last_timestamp [19:53:12]Write 4 bytes [19:53:12]NVStorageSaveData done [19:53:12]ExternCall_PrintAddStr [19:53:12]wPrintStart [19:53:12]Write to MH i2c: 01 00 00 D6 1D F3 [19:53:12]Write i2c OK [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 07 00 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 07 00 D6 1D 00 00 00 00 00 FF 0F 08 [19:53:12]RasterBufferAndPrint [19:53:12]line Счет N : (1)594232 [19:53:12]line ИНН: 02508201610067 [19:53:12]line Контрольно-Кассовый Чек [19:53:12]line ПРОДАЖА [19:53:12]line ТРК (МРК, ГНК) : 62 [19:53:12]line Товар: 2710124130 [19:53:12]line Аи-92-К-5 [19:53:12]line 10.920 * 67.80 [19:53:12]line = 740.38 [19:53:12]line НДС 12% НСП 1% [19:53:12]line > о реализуемом товаре [19:53:12]line ОКРУГЛЕНИЕ: -0.38 [19:53:12]line ИТОГО: 740.00 [19:53:12]line Внесено: 740.00 [19:53:12]line СДАЧА: 0.00 [19:53:12]line НСП 1% : 6.55 [19:53:12]line НДС 12% : 78.62 [19:53:12]line Наличными: 740.00 [19:53:12]line Безнал.: 0.00 [19:53:12]line Место: АЗС № 136 "Партнер Нефть" [19:53:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:53:12]line СНО: Общий режим [19:53:12]line Чек 391 21.08.2024 19:53 [19:53:12]line Смена: 454 ФФД: 1.0 [19:53:12]line ЗНМ: 0300000067 [19:53:12]line РНМ: 0000000000092569 [19:53:12]line Версия ККМ: 001 [19:53:12]line ФМ: 0000000000871776 [19:53:12]line ФД: 140374 [19:53:12]line ФПД: 202798034183420 [19:53:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140374&fm=202798034183420&tin=02508201610067®Number=0000000000092569&sum=74000 [19:53:12]OFD Sender: Processing packet 140374 [packets to send 137, broken 136] [19:53:12]ProducePacketName [19:53:12]name=ofd_packets/00140374 [19:53:12]OFD Sender: To server: pG, [19:53:12]CommunicateWithHost lk.salyk.kg:30040 [19:53:12]ConnectInit lk.salyk.kg [19:53:12]written 0, free lines is 4095 [19:53:12]Connected sock=10 [19:53: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 37 36 0F 01 00 00 A3 26 07 01 A0 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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 01 00 00 F4 03 04 00 A7 45 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 56 24 02 00 35 04 06 00 B8 71 98 C9 E4 FC C3 04 B1 81 51 5B EE 77 [19:53:12]Write to MH i2c: 01 00 00 01 1E 1F [19:53:12]Write i2c OK [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 07 00 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: 01 07 00 01 1E 00 00 00 00 00 DD 0C 0F [19:53:12]RasterBufferAndPrint [19:53:12]line [19:53:12]line [19:53:12]line [19:53:12]line [19:53:12]line [19:53:12]written 0, free lines is 3299 [19:53:12]MH_Cut [19:53:12]Write to MH i2c: D1 01 00 08 1E 01 F8 [19:53:12]Write i2c OK [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: D1 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: D1 01 00 [19:53:12]MH_I2C_Read... [19:53:12]Read from MH i2c: D1 01 00 08 1E 00 F7 [19:53:12]Write to MH i2c: 01 00 00 09 1E 27 [19:53:12]Write i2c OK [19:53:12]MH_I2C_Read... [19:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 24 67 47 00 84 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 37 36 10 04 04 00 56 24 02 00 F4 03 04 00 37 EC C5 66 B6 04 01 00 00 1C C1 C9 64 9F C4 A5 EC [19:53:13]CommunicateWithHost err = 0 [19:53:13]CheckOFDResponse [19:53:13]1017 (14) - 77093643461234 [19:53:13]1041 (16) - 0000000000871776 [19:53:13]1040 (4) - 140374 [19:53:13]1012 (4) - 21.08.2024 13:31 [19:53:13]1206 (1) - 0 [19:53:13]OFD Sender: Remove packet 140374 [19:53:13]ProducePacketName [19:53:13]name=ofd_packets/00140374 [19:53:13]NVStorageDeleteData [19:53:13]OFD Sender: No OFD packet to send [19:53:13]*** Cut start [19:53:13]*** Partial cut [19:53:13]*** CUTSNS_PIN = 1 [19:53:13]*** CUTSNS_PIN = 0 [19:53:13]*** Brake cut motor [19:53:14]Read from MH i2c: 01 [19:53:14]MH_I2C_Read... [19:53:14]*** Stop cut motor [19:53:14]*** Cut end [19:53:14]Read from MH i2c: 01 07 00 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: 01 07 00 09 1E 00 00 00 00 00 FF 0F 3C [19:53:14]process_action close_receipt done [19:53:14]requested_data is exist [19:53:14]produce_requested_data [19:53:14]requested_item fm.sn is exist - process it [19:53:14]wFMCommunicate request_size=4 [19:53:14]MH_SAM_APDU [19:53:14]CAPDU: 80 11 00 00 [19:53:14]Write to MH i2c: E2 08 00 0A 1E 80 11 00 00 00 00 00 00 A2 [19:53:14]Write i2c OK [19:53:14]MH_I2C_Read... [19:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:14]Read from MH i2c: E2 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 17 00 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 17 00 0A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F9 [19:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:53:14]wFMCommunicate OK [19:53:14]requested_item fd.num is exist - process it [19:53:14]SAM_PROTO_GetFieldsCounters [19:53:14]wFMCommunicate request_size=4 [19:53:14]MH_SAM_APDU [19:53:14]CAPDU: 80 13 00 00 [19:53:14]Write to MH i2c: E2 08 00 0B 1E 80 13 00 00 00 00 00 00 A5 [19:53:14]Write i2c OK [19:53:14]MH_I2C_Read... [19:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:14]Read from MH i2c: E2 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 62 00 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 62 00 0B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 24 02 00 0E 04 04 00 C6 01 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 AB [19:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 56 24 02 00 0E 04 04 00 C6 01 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 [19:53:14]wFMCommunicate OK [19:53:14]SAM_PROTO_GetFieldsCounters done [19:53:14]requested_item shift.num is exist - process it [19:53:14]requested_item shift.opened is exist - process it [19:53:14]req_shift_opened [19:53:14]FM_GetShiftState [19:53:14]SAM_PROTO_GetShiftState [19:53:14]wFMCommunicate request_size=4 [19:53:14]MH_SAM_APDU [19:53:14]CAPDU: 80 13 01 00 [19:53:14]Write to MH i2c: E2 08 00 0C 1E 80 13 01 00 00 00 00 00 A7 [19:53:14]Write i2c OK [19:53:14]MH_I2C_Read... [19:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:14]Read from MH i2c: E2 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 0E 00 [19:53:14]MH_I2C_Read... [19:53:14]Read from MH i2c: E2 0E 00 0C 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [19:53:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:53:14]wFMCommunicate OK [19:53:14]SAM_PROTO_GetShiftState done [19:53:14]FM_GetShiftState done [19:53:14]req_shift_opened done [19:53:14]requested_item shift.open_date is exist - process it [19:53:14]req_shift_open_date [19:53:14]req_shift_open_date done [19:53:14]produce_requested_data done [19:53:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140374,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:53:14]process_action_free close_receipt [19:53:14]json_value_free [19:53:14]json_value_free done [19:53:14]process_json_proto returns [19:53:14]Send response to host [19:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140374,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:53:14]free response buf [19:53:14]execute_script done [19:53:14]execute_script returns [19:53:14]free content buf [19:53:14]Sock 7.Close socket [19:53:14]Sock 7.Thread stoped [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [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]accept exits with 9 [19:58:33]New connection [19:58:33]New thread 3067612516 created [19:58:33]Thread 3067469156 joined [19:58:33]Waiting for new connection... [19:58:33] Sock 9.Parse request [19:58:33]Sock 9.Check first char [19:58:33]Sock 9.First char is OK [19:58:33]request: POST /json_proto HTTP/1.0 [19:58:33]Method: POST [19:58:33]URL: /json_proto [19:58:33]Method is POST - this is cgi request [19:58:33]url: /json_proto [19:58:33]query_string will be loaded in cgi processing [19:58:33]execute_cgi json_proto POST (null) [19:58:33]execute_cgi path=json_proto method=POST [19:58:33]POST find Content-Length [19:58:33]Host: 172.17.45.67:8080 [19:58:33]Content-Length: 677 [19:58:33]Content-Type: application/json [19:58:33] [19:58:33]POST finish read [19:58:33]Found Content-Length = 677 [19:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:33]execute_script... [19:58:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:33]POST & json_proto [19:58:33]process_json_proto [19:58:33]json parsed OK: [19:58:33]protocol is kg_v1.0 [19:58:33]action value=close_receipt [19:58:33]process_action close_receipt [19:58:33]cmd_close_receipt [19:58:33]MH_GetDate [19:58:33]Write to MH i2c: F0 00 00 0D 1E 1A [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 0D 1E 00 EA 46 C6 66 5F 7F 2B 66 EE [19:58:33]GetLastDocTimeStamp 1724269991 [19:58:33]current date 1724270314 [19:58:33]FM_GetShiftState [19:58:33]SAM_PROTO_GetShiftState [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 13 01 00 [19:58:33]Write to MH i2c: E2 08 00 0E 1E 80 13 01 00 00 00 00 00 A9 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 0E 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 29 [19:58:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:58:33]wFMCommunicate OK [19:58:33]SAM_PROTO_GetShiftState done [19:58:33]FM_GetShiftState done [19:58:33]opened in 1724200467 [19:58:33]opened+sec_in_day 1724286867 [19:58:33]quantity*price = 50036 [19:58:33]sum+1 = 50037 [19:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 392 21.08.2024 19:58 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140375 ФПД: 218477407653222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195834&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140375&fm=218477407653222&tin=02508201610067®Number=0000000000092569&sum=50000 [19:58:34]StoreToDocumentArchive [19:58:34]shift 454 fd 140375 [19:58:34]save to /storage/0454/doc_00140375 [19:58:34]save last doc name /storage/0454/doc_00140375 to /storage/kkm_last_doc_name [19:58:34]save OK [19:58:34]Clear old archive folders... [19:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:34]tlvbuf is B6FF99B0 [19:58:34]SAM_PROTO_ClearQueue [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 09 00 00 [19:58:34]Write to MH i2c: E2 08 00 1B 1E 80 09 00 00 00 00 00 00 AB [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]SAM_PROTO_ClearQueue done [19:58:34]KKMCreateOFDPacket [19:58:34]OFDProtocolAddRootSTLVToBuf [19:58:34]FM_MakeSignedData [19:58:34]FM_MakeSignedData [19:58:34]SAM_PROTO_SignData [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 01 02 [19:58:34]Write to MH i2c: E2 08 00 1C 1E 80 0D 01 02 00 00 00 00 B3 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=255 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA 46 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 24 02 00 35 04 06 00 C6 [19:58:34]Write to MH i2c: E2 02 01 1D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA 46 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 24 02 00 35 04 06 00 C6 00 00 2B [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=10 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 02 02 05 B4 3C 46 4D 66 [19:58:34]Write to MH i2c: E2 0D 00 1E 1E 80 0D 02 02 05 00 B4 3C 46 4D 66 00 00 A9 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 03 02 [19:58:34]Write to MH i2c: E2 08 00 1F 1E 80 0D 03 02 00 00 00 00 B8 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 1F 1E 00 C7 26 74 A3 E4 1B BE 53 90 00 CD [19:58:35]RAPDU: C7 26 74 A3 E4 1B BE 53 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_SignData done [19:58:35]FM_MakeSignedData done [19:58:35]CreateOFDProtocolMessage [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 11 00 00 [19:58:35]Write to MH i2c: E2 08 00 20 1E 80 11 00 00 00 00 00 00 B8 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 20 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0F [19:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:58:35]wFMCommunicate OK [19:58:35]CreateOFDProtocolMessage done [19:58:35]OFDSenderStorePacket 140375 [19:58:35]StoreOFDPacket docnum=140375 [19:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C6 AD 07 01 B3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA 46 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 24 02 00 35 04 06 00 C6 B4 3C 46 4D 66 C7 26 74 A3 E4 1B BE 53 [19:58:35]CheckFolder [19:58:35]dirname=/storage/ofd_packets [19:58:35]CheckFolder done [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00140375 [19:58:35]NVStorageSaveData ofd_packets/00140375 [19:58:35]File name is /storage/ofd_packets/00140375 [19:58:35]Write 301 bytes [19:58:35]NVStorageSaveData done [19:58:35]OFDSenderStorePacket done [19:58:35]KKMCreateOFDPacket done [19:58:35]NVStorageSaveData kkm_last_timestamp [19:58:35]File name is /storage/kkm_last_timestamp [19:58:35]Write 4 bytes [19:58:35]NVStorageSaveData done [19:58:35]ExternCall_PrintAddStr [19:58:35]wPrintStart [19:58:35]Write to MH i2c: 01 00 00 21 1E 3F [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 21 1E 00 00 00 00 00 FF 0F 54 [19:58:35]RasterBufferAndPrint [19:58:35]line Счет N : (1)594233 [19:58:35]line ИНН: 02508201610067 [19:58:35]line Контрольно-Кассовый Чек [19:58:35]line ПРОДАЖА [19:58:35]line ТРК (МРК, ГНК) : 42 [19:58:35]line Товар: 2710124130 [19:58:35]line Аи-92-К-5 [19:58:35]line 7.380 * 67.80 [19:58:35]line = 500.36 [19:58:35]line НДС 12% НСП 1% [19:58:35]line > о реализуемом товаре [19:58:35]line ОКРУГЛЕНИЕ: -0.36 [19:58:35]line ИТОГО: 500.00 [19:58:35]line Внесено: 500.00 [19:58:35]line СДАЧА: 0.00 [19:58:35]line НСП 1% : 4.43 [19:58:35]line НДС 12% : 53.14 [19:58:35]line Наличными: 500.00 [19:58:35]line Безнал.: 0.00 [19:58:35]line Место: АЗС № 136 "Партнер Нефть" [19:58:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [19:58:35]line СНО: Общий режим [19:58:35]line Чек 392 21.08.2024 19:58 [19:58:35]line Смена: 454 ФФД: 1.0 [19:58:35]line ЗНМ: 0300000067 [19:58:35]line РНМ: 0000000000092569 [19:58:35]line Версия ККМ: 001 [19:58:35]line ФМ: 0000000000871776 [19:58:35]line ФД: 140375 [19:58:35]line ФПД: 218477407653222 [19:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T195834&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140375&fm=218477407653222&tin=02508201610067®Number=0000000000092569&sum=50000 [19:58:35]written 0, free lines is 4095 [19:58:35]OFD Sender: Processing packet 140375 [packets to send 137, broken 136] [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00140375 [19:58:35]OFD Sender: To server: pG, [19:58:35]CommunicateWithHost lk.salyk.kg:30040 [19:58:35]ConnectInit lk.salyk.kg [19:58:35]Connected sock=11 [19:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C6 AD 07 01 B3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 EA 46 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 24 02 00 35 04 06 00 C6 B4 3C 46 4D 66 C7 26 74 A3 E4 1B BE 53 [19:58:35]Write to MH i2c: 01 00 00 4C 1E 6A [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 4C 1E 00 00 00 00 00 D4 0C 51 [19:58:35]RasterBufferAndPrint [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]line [19:58:35]written 0, free lines is 3288 [19:58:35]MH_Cut [19:58:35]Write to MH i2c: D1 01 00 53 1E 01 43 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 01 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: D1 01 00 53 1E 00 42 [19:58:35]Write to MH i2c: 01 00 00 54 1E 72 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DC 27 47 00 69 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 57 24 02 00 F4 03 04 00 7A ED C5 66 B6 04 01 00 00 E7 7C 68 FB 5C 1F B7 4E [19:58:35]CommunicateWithHost err = 0 [19:58:35]CheckOFDResponse [19:58:35]1017 (14) - 77093643461234 [19:58:35]1041 (16) - 0000000000871776 [19:58:35]1040 (4) - 140375 [19:58:35]1012 (4) - 21.08.2024 13:36 [19:58:35]1206 (1) - 0 [19:58:35]OFD Sender: Remove packet 140375 [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00140375 [19:58:35]NVStorageDeleteData [19:58:36]OFD Sender: No OFD packet to send [19:58:36]*** Cut start [19:58:36]*** Partial cut [19:58:36]*** CUTSNS_PIN = 1 [19:58:36]*** CUTSNS_PIN = 0 [19:58:36]*** Brake cut motor [19:58:37]Read from MH i2c: 01 [19:58:37]MH_I2C_Read... [19:58:37]*** Stop cut motor [19:58:37]*** Cut end [19:58:37]Read from MH i2c: 01 07 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 07 00 54 1E 00 00 00 00 00 FF 0F 87 [19:58:37]process_action close_receipt done [19:58:37]requested_data is exist [19:58:37]produce_requested_data [19:58:37]requested_item fm.sn is exist - process it [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 11 00 00 [19:58:37]Write to MH i2c: E2 08 00 55 1E 80 11 00 00 00 00 00 00 ED [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 55 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [19:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [19:58:37]wFMCommunicate OK [19:58:37]requested_item fd.num is exist - process it [19:58:37]SAM_PROTO_GetFieldsCounters [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 00 00 [19:58:37]Write to MH i2c: E2 08 00 56 1E 80 13 00 00 00 00 00 00 F0 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 56 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 24 02 00 0E 04 04 00 C6 01 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 FA [19:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 57 24 02 00 0E 04 04 00 C6 01 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 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetFieldsCounters done [19:58:37]requested_item shift.num is exist - process it [19:58:37]requested_item shift.opened is exist - process it [19:58:37]req_shift_opened [19:58:37]FM_GetShiftState [19:58:37]SAM_PROTO_GetShiftState [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 01 00 [19:58:37]Write to MH i2c: E2 08 00 57 1E 80 13 01 00 00 00 00 00 F2 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 57 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 72 [19:58:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetShiftState done [19:58:37]FM_GetShiftState done [19:58:37]req_shift_opened done [19:58:37]requested_item shift.open_date is exist - process it [19:58:37]req_shift_open_date [19:58:37]req_shift_open_date done [19:58:37]produce_requested_data done [19:58:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140375,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [19:58:37]process_action_free close_receipt [19:58:37]json_value_free [19:58:37]json_value_free done [19:58:37]process_json_proto returns [19:58:37]Send response to host [19:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140375,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [19:58:37]free response buf [19:58:37]execute_script done [19:58:37]execute_script returns [19:58:37]free content buf [19:58:37]Sock 9.Close socket [19:58:37]Sock 9.Thread stoped [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:52]accept exits with 7 [20:00:52]New connection [20:00:52]New thread 3067469156 created [20:00:52]Thread 3067612516 joined [20:00:52]Waiting for new connection... [20:00:52] Sock 7.Parse request [20:00:52]Sock 7.Check first char [20:00:52]Sock 7.First char is OK [20:00:52]request: POST /json_proto HTTP/1.0 [20:00:52]Method: POST [20:00:52]URL: /json_proto [20:00:52]Method is POST - this is cgi request [20:00:52]url: /json_proto [20:00:52]query_string will be loaded in cgi processing [20:00:52]execute_cgi json_proto POST (null) [20:00:52]execute_cgi path=json_proto method=POST [20:00:52]POST find Content-Length [20:00:52]Host: 172.17.45.67:8080 [20:00:52]Content-Length: 677 [20:00:52]Content-Type: application/json [20:00:52] [20:00:52]POST finish read [20:00:52]Found Content-Length = 677 [20:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [20:00:52]execute_script... [20:00: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)594234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [20:00:52]POST & json_proto [20:00:52]process_json_proto [20:00:52]json parsed OK: [20:00:52]protocol is kg_v1.0 [20:00:52]action value=close_receipt [20:00:52]process_action close_receipt [20:00:52]cmd_close_receipt [20:00:52]MH_GetDate [20:00:52]Write to MH i2c: F0 00 00 58 1E 65 [20:00:52]Write i2c OK [20:00:52]MH_I2C_Read... [20:00:52]Read from MH i2c: F0 [20:00:52]MH_I2C_Read... [20:00:52]Read from MH i2c: F0 09 00 [20:00:52]MH_I2C_Read... [20:00:52]Read from MH i2c: F0 09 00 58 1E 00 75 47 C6 66 5F 7F 2B 66 C5 [20:00:52]GetLastDocTimeStamp 1724270314 [20:00:52]current date 1724270453 [20:00:52]FM_GetShiftState [20:00:52]SAM_PROTO_GetShiftState [20:00:52]wFMCommunicate request_size=4 [20:00:52]MH_SAM_APDU [20:00:52]CAPDU: 80 13 01 00 [20:00:52]Write to MH i2c: E2 08 00 59 1E 80 13 01 00 00 00 00 00 F4 [20:00:52]Write i2c OK [20:00:52]MH_I2C_Read... [20:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:52]Read from MH i2c: E2 [20:00:52]MH_I2C_Read... [20:00:52]Read from MH i2c: E2 0E 00 [20:00:52]MH_I2C_Read... [20:00:52]Read from MH i2c: E2 0E 00 59 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 74 [20:00:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:00:52]wFMCommunicate OK [20:00:52]SAM_PROTO_GetShiftState done [20:00:52]FM_GetShiftState done [20:00:52]opened in 1724200467 [20:00:52]opened+sec_in_day 1724286867 [20:00:52]quantity*price = 25018 [20:00:52]sum+1 = 25019 [20:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 393 21.08.2024 20:00 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140376 ФПД: 55211537080903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140376&fm=55211537080903&tin=02508201610067®Number=0000000000092569&sum=25000 [20:00:53]StoreToDocumentArchive [20:00:53]shift 454 fd 140376 [20:00:53]save to /storage/0454/doc_00140376 [20:00:53]save last doc name /storage/0454/doc_00140376 to /storage/kkm_last_doc_name [20:00:53]save OK [20:00:53]Clear old archive folders... [20:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:53]tlvbuf is B6FF6070 [20:00:53]SAM_PROTO_ClearQueue [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 09 00 00 [20:00:53]Write to MH i2c: E2 08 00 66 1E 80 09 00 00 00 00 00 00 F6 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [20:00:53]RAPDU: 90 00 [20:00:53]wFMCommunicate OK [20:00:53]SAM_PROTO_ClearQueue done [20:00:53]KKMCreateOFDPacket [20:00:53]OFDProtocolAddRootSTLVToBuf [20:00:53]FM_MakeSignedData [20:00:53]FM_MakeSignedData [20:00:53]SAM_PROTO_SignData [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 0D 01 02 [20:00:53]Write to MH i2c: E2 08 00 67 1E 80 0D 01 02 00 00 00 00 FE [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [20:00:53]RAPDU: 90 00 [20:00:53]wFMCommunicate OK [20:00:53]wFMCommunicate request_size=255 [20:00:53]MH_SAM_APDU [20:00: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 89 01 00 00 F4 03 04 00 75 47 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 24 02 00 35 04 06 00 32 [20:00:53]Write to MH i2c: E2 02 01 68 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 89 01 00 00 F4 03 04 00 75 47 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 24 02 00 35 04 06 00 32 00 00 7E [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [20:00:53]RAPDU: 90 00 [20:00:53]wFMCommunicate OK [20:00:53]wFMCommunicate request_size=10 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 0D 02 02 05 36 F0 0E 22 47 [20:00:53]Write to MH i2c: E2 0D 00 69 1E 80 0D 02 02 05 00 36 F0 0E 22 47 00 00 A8 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [20:00:53]RAPDU: 90 00 [20:00:53]wFMCommunicate OK [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 0D 03 02 [20:00:53]Write to MH i2c: E2 08 00 6A 1E 80 0D 03 02 00 00 00 00 03 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0B 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0B 00 6A 1E 00 88 89 18 69 13 D0 BD 0C 90 00 42 [20:00:53]RAPDU: 88 89 18 69 13 D0 BD 0C 90 00 [20:00:53]wFMCommunicate OK [20:00:53]SAM_PROTO_SignData done [20:00:53]FM_MakeSignedData done [20:00:53]CreateOFDProtocolMessage [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 11 00 00 [20:00:53]Write to MH i2c: E2 08 00 6B 1E 80 11 00 00 00 00 00 00 03 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 17 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 17 00 6B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [20:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:00:53]wFMCommunicate OK [20:00:53]CreateOFDProtocolMessage done [20:00:53]OFDSenderStorePacket 140376 [20:00:53]StoreOFDPacket docnum=140376 [20:00:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 92 12 07 01 0C 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 89 01 00 00 F4 03 04 00 75 47 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 24 02 00 35 04 06 00 32 36 F0 0E 22 47 88 89 18 69 13 D0 BD 0C [20:00:53]CheckFolder [20:00:53]dirname=/storage/ofd_packets [20:00:53]CheckFolder done [20:00:53]ProducePacketName [20:00:53]name=ofd_packets/00140376 [20:00:53]NVStorageSaveData ofd_packets/00140376 [20:00:53]File name is /storage/ofd_packets/00140376 [20:00:53]Write 301 bytes [20:00:53]NVStorageSaveData done [20:00:53]OFDSenderStorePacket done [20:00:53]KKMCreateOFDPacket done [20:00:53]NVStorageSaveData kkm_last_timestamp [20:00:53]File name is /storage/kkm_last_timestamp [20:00:53]Write 4 bytes [20:00:53]NVStorageSaveData done [20:00:53]ExternCall_PrintAddStr [20:00:53]wPrintStart [20:00:53]Write to MH i2c: 01 00 00 6C 1E 8A [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: 01 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: 01 07 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: 01 07 00 6C 1E 00 00 00 00 00 FF 0F 9F [20:00:53]RasterBufferAndPrint [20:00:53]line Счет N : (1)594234 [20:00:53]line ИНН: 02508201610067 [20:00:53]line Контрольно-Кассовый Чек [20:00:53]line ПРОДАЖА [20:00:53]line ТРК (МРК, ГНК) : 42 [20:00:53]line Товар: 2710124130 [20:00:53]line Аи-92-К-5 [20:00:53]line 3.690 * 67.80 [20:00:53]line = 250.18 [20:00:53]line НДС 12% НСП 1% [20:00:53]line > о реализуемом товаре [20:00:53]line ОКРУГЛЕНИЕ: -0.18 [20:00:53]line ИТОГО: 250.00 [20:00:53]line Внесено: 250.00 [20:00:53]line СДАЧА: 0.00 [20:00:53]line НСП 1% : 2.21 [20:00:53]line НДС 12% : 26.57 [20:00:53]line Наличными: 250.00 [20:00:53]line Безнал.: 0.00 [20:00:53]line Место: АЗС № 136 "Партнер Нефть" [20:00:53]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:00:53]line СНО: Общий режим [20:00:53]line Чек 393 21.08.2024 20:00 [20:00:53]line Смена: 454 ФФД: 1.0 [20:00:53]line ЗНМ: 0300000067 [20:00:53]line РНМ: 0000000000092569 [20:00:53]line Версия ККМ: 001 [20:00:53]line ФМ: 0000000000871776 [20:00:53]line ФД: 140376 [20:00:53]line ФПД: 55211537080903 [20:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200053&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140376&fm=55211537080903&tin=02508201610067®Number=0000000000092569&sum=25000 [20:00:54]written 0, free lines is 4095 [20:00:54]OFD Sender: Processing packet 140376 [packets to send 137, broken 136] [20:00:54]ProducePacketName [20:00:54]name=ofd_packets/00140376 [20:00:54]OFD Sender: To server: pG, [20:00:54]CommunicateWithHost lk.salyk.kg:30040 [20:00:54]ConnectInit lk.salyk.kg [20:00:54]Connected sock=10 [20:00: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 37 36 0F 01 00 00 92 12 07 01 0C 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 89 01 00 00 F4 03 04 00 75 47 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 58 24 02 00 35 04 06 00 32 36 F0 0E 22 47 88 89 18 69 13 D0 BD 0C [20:00: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 37 36 4F 00 00 00 50 E5 47 00 E5 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 37 36 10 04 04 00 58 24 02 00 F4 03 04 00 05 EE C5 66 B6 04 01 00 00 16 0F 03 37 08 24 28 20 [20:00:54]CommunicateWithHost err = 0 [20:00:54]CheckOFDResponse [20:00:54]1017 (14) - 77093643461234 [20:00:54]1041 (16) - 0000000000871776 [20:00:54]1040 (4) - 140376 [20:00:54]1012 (4) - 21.08.2024 13:39 [20:00:54]1206 (1) - 0 [20:00:54]OFD Sender: Remove packet 140376 [20:00:54]ProducePacketName [20:00:54]name=ofd_packets/00140376 [20:00:54]NVStorageDeleteData [20:00:54]Write to MH i2c: 01 00 00 97 1E B5 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 07 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 07 00 97 1E 00 00 00 00 00 D4 0C 9C [20:00:54]RasterBufferAndPrint [20:00:54]line [20:00:54]line [20:00:54]line [20:00:54]line [20:00:54]line [20:00:54]written 0, free lines is 3288 [20:00:54]MH_Cut [20:00:54]Write to MH i2c: D1 01 00 9E 1E 01 8E [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: D1 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: D1 01 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: D1 01 00 9E 1E 00 8D [20:00:54]Write to MH i2c: 01 00 00 9F 1E BD [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:55]OFD Sender: No OFD packet to send [20:00:55]*** Cut start [20:00:55]*** Partial cut [20:00:55]*** CUTSNS_PIN = 1 [20:00:55]*** CUTSNS_PIN = 0 [20:00:55]*** Brake cut motor [20:00:55]Read from MH i2c: 01 [20:00:55]MH_I2C_Read... [20:00:55]*** Stop cut motor [20:00:55]*** Cut end [20:00:55]Read from MH i2c: 01 07 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 9F 1E 00 00 00 00 00 FF 0F D2 [20:00:55]process_action close_receipt done [20:00:55]requested_data is exist [20:00:55]produce_requested_data [20:00:55]requested_item fm.sn is exist - process it [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 11 00 00 [20:00:55]Write to MH i2c: E2 08 00 A0 1E 80 11 00 00 00 00 00 00 38 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:56]Read from MH i2c: E2 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 17 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 17 00 A0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [20:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:00:56]wFMCommunicate OK [20:00:56]requested_item fd.num is exist - process it [20:00:56]SAM_PROTO_GetFieldsCounters [20:00:56]wFMCommunicate request_size=4 [20:00:56]MH_SAM_APDU [20:00:56]CAPDU: 80 13 00 00 [20:00:56]Write to MH i2c: E2 08 00 A1 1E 80 13 00 00 00 00 00 00 3B [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:56]Read from MH i2c: E2 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 62 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 62 00 A1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 24 02 00 0E 04 04 00 C6 01 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 49 [20:00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 58 24 02 00 0E 04 04 00 C6 01 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 [20:00:56]wFMCommunicate OK [20:00:56]SAM_PROTO_GetFieldsCounters done [20:00:56]requested_item shift.num is exist - process it [20:00:56]requested_item shift.opened is exist - process it [20:00:56]req_shift_opened [20:00:56]FM_GetShiftState [20:00:56]SAM_PROTO_GetShiftState [20:00:56]wFMCommunicate request_size=4 [20:00:56]MH_SAM_APDU [20:00:56]CAPDU: 80 13 01 00 [20:00:56]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:56]Read from MH i2c: E2 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 0E 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 BD [20:00:56]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:00:56]wFMCommunicate OK [20:00:56]SAM_PROTO_GetShiftState done [20:00:56]FM_GetShiftState done [20:00:56]req_shift_opened done [20:00:56]requested_item shift.open_date is exist - process it [20:00:56]req_shift_open_date [20:00:56]req_shift_open_date done [20:00:56]produce_requested_data done [20:00:56]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140376,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:00:56]process_action_free close_receipt [20:00:56]json_value_free [20:00:56]json_value_free done [20:00:56]process_json_proto returns [20:00:56]Send response to host [20:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140376,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:00:56]free response buf [20:00:56]execute_script done [20:00:56]execute_script returns [20:00:56]free content buf [20:00:56]Sock 7.Close socket [20:00:56]Sock 7.Thread stoped [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:24]int [20:03:24]Write to MH i2c: 01 00 00 A3 1E C1 [20:03:24]*** FLAG_PRN_KEY set [20:03:24]Write i2c OK [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 A3 1E 00 08 00 00 00 FF 0F DE [20:03:24]state=0 [20:03:24]Key pressed [20:03:24]Feed [20:03:24]Write to MH i2c: D8 00 00 A4 1E 99 [20:03:24]Write i2c OK [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: D8 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: D8 01 00 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: D8 01 00 A4 1E 00 9A [20:03:24]int [20:03:24]Write to MH i2c: 01 00 00 A5 1E C3 [20:03:24]Write i2c OK [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 A5 1E 00 48 00 00 00 3C 00 4E [20:03:24]state=2 [20:03:24]Key pressed [20:03:24]int [20:03:24]Write to MH i2c: 01 00 00 A6 1E C4 [20:03:24]*** FLAG_PRN_KEY reset [20:03:24]Write i2c OK [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 [20:03:24]MH_I2C_Read... [20:03:24]Read from MH i2c: 01 07 00 A6 1E 00 00 00 00 00 F5 0F CF [20:03:24]state=2 [20:03:24]Stop feed [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:31]accept exits with 9 [20:03:31]New connection [20:03:31]New thread 3067612516 created [20:03:31]Thread 3067469156 joined [20:03:31]Waiting for new connection... [20:03:31] Sock 9.Parse request [20:03:31]Sock 9.Check first char [20:03:31]Sock 9.First char is OK [20:03:31]request: POST /json_proto HTTP/1.0 [20:03:31]Method: POST [20:03:31]URL: /json_proto [20:03:31]Method is POST - this is cgi request [20:03:31]url: /json_proto [20:03:31]query_string will be loaded in cgi processing [20:03:31]execute_cgi json_proto POST (null) [20:03:31]execute_cgi path=json_proto method=POST [20:03:31]POST find Content-Length [20:03:31]Host: 172.17.45.67:8080 [20:03:31]Content-Length: 678 [20:03:31]Content-Type: application/json [20:03:31] [20:03:31]POST finish read [20:03:31]Found Content-Length = 678 [20:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:31]execute_script... [20: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)594236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:31]POST & json_proto [20:03:31]process_json_proto [20:03:31]json parsed OK: [20:03:31]protocol is kg_v1.0 [20:03:31]action value=close_receipt [20:03:31]process_action close_receipt [20:03:31]cmd_close_receipt [20:03:31]MH_GetDate [20:03:31]Write to MH i2c: F0 00 00 A7 1E B4 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: F0 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: F0 09 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: F0 09 00 A7 1E 00 14 48 C6 66 5F 7F 2B 66 B4 [20:03:31]GetLastDocTimeStamp 1724270453 [20:03:31]current date 1724270612 [20:03:31]FM_GetShiftState [20:03:31]SAM_PROTO_GetShiftState [20:03:31]wFMCommunicate request_size=4 [20:03:31]MH_SAM_APDU [20:03:31]CAPDU: 80 13 01 00 [20:03:31]Write to MH i2c: E2 08 00 A8 1E 80 13 01 00 00 00 00 00 43 [20:03:31]Write i2c OK [20:03:31]MH_I2C_Read... [20:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:31]Read from MH i2c: E2 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 0E 00 [20:03:31]MH_I2C_Read... [20:03:31]Read from MH i2c: E2 0E 00 A8 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C3 [20:03:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:03:31]wFMCommunicate OK [20:03:31]SAM_PROTO_GetShiftState done [20:03:31]FM_GetShiftState done [20:03:31]opened in 1724200467 [20:03:31]opened+sec_in_day 1724286867 [20:03:31]quantity*price = 70037 [20:03:31]sum+1 = 70038 [20:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 394 21.08.2024 20:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140377 ФПД: 7353898095025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140377&fm=7353898095025&tin=02508201610067®Number=0000000000092569&sum=70000 [20:03:32]StoreToDocumentArchive [20:03:32]shift 454 fd 140377 [20:03:32]save to /storage/0454/doc_00140377 [20:03:32]save last doc name /storage/0454/doc_00140377 to /storage/kkm_last_doc_name [20:03:32]save OK [20:03:32]Clear old archive folders... [20:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:32]tlvbuf is B6FF6890 [20:03:32]SAM_PROTO_ClearQueue [20:03:32]wFMCommunicate request_size=4 [20:03:32]MH_SAM_APDU [20:03:32]CAPDU: 80 09 00 00 [20:03:32]Write to MH i2c: E2 08 00 B5 1E 80 09 00 00 00 00 00 00 45 [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:32]Read from MH i2c: E2 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 03 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [20:03:32]RAPDU: 90 00 [20:03:32]wFMCommunicate OK [20:03:32]SAM_PROTO_ClearQueue done [20:03:32]KKMCreateOFDPacket [20:03:32]OFDProtocolAddRootSTLVToBuf [20:03:32]FM_MakeSignedData [20:03:32]FM_MakeSignedData [20:03:32]SAM_PROTO_SignData [20:03:32]wFMCommunicate request_size=4 [20:03:32]MH_SAM_APDU [20:03:32]CAPDU: 80 0D 01 02 [20:03:32]Write to MH i2c: E2 08 00 B6 1E 80 0D 01 02 00 00 00 00 4D [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:32]Read from MH i2c: E2 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 03 00 [20:03:32]MH_I2C_Read... [20:03:32]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [20:03:32]RAPDU: 90 00 [20:03:32]wFMCommunicate OK [20:03:32]wFMCommunicate request_size=255 [20:03:32]MH_SAM_APDU [20: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 14 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 24 02 00 35 04 06 00 06 [20:03:32]Write to MH i2c: E2 02 01 B7 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 14 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 24 02 00 35 04 06 00 06 00 00 1C [20:03:32]Write i2c OK [20:03:32]MH_I2C_Read... [20:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:33]Read from MH i2c: E2 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 03 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 03 00 B7 1E 00 90 00 49 [20:03:33]RAPDU: 90 00 [20:03:33]wFMCommunicate OK [20:03:33]wFMCommunicate request_size=10 [20:03:33]MH_SAM_APDU [20:03:33]CAPDU: 80 0D 02 02 05 B0 36 7B D1 B1 [20:03:33]Write to MH i2c: E2 0D 00 B8 1E 80 0D 02 02 05 00 B0 36 7B D1 B1 00 00 3D [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:33]Read from MH i2c: E2 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 03 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 03 00 B8 1E 00 90 00 4A [20:03:33]RAPDU: 90 00 [20:03:33]wFMCommunicate OK [20:03:33]wFMCommunicate request_size=4 [20:03:33]MH_SAM_APDU [20:03:33]CAPDU: 80 0D 03 02 [20:03:33]Write to MH i2c: E2 08 00 B9 1E 80 0D 03 02 00 00 00 00 52 [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:33]Read from MH i2c: E2 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 0B 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 0B 00 B9 1E 00 27 33 7D 22 2F 23 F9 35 90 00 CC [20:03:33]RAPDU: 27 33 7D 22 2F 23 F9 35 90 00 [20:03:33]wFMCommunicate OK [20:03:33]SAM_PROTO_SignData done [20:03:33]FM_MakeSignedData done [20:03:33]CreateOFDProtocolMessage [20:03:33]wFMCommunicate request_size=4 [20:03:33]MH_SAM_APDU [20:03:33]CAPDU: 80 11 00 00 [20:03:33]Write to MH i2c: E2 08 00 BA 1E 80 11 00 00 00 00 00 00 52 [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:33]Read from MH i2c: E2 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 17 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: E2 17 00 BA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A9 [20:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:03:33]wFMCommunicate OK [20:03:33]CreateOFDProtocolMessage done [20:03:33]OFDSenderStorePacket 140377 [20:03:33]StoreOFDPacket docnum=140377 [20:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 06 16 07 01 AA 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 14 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 24 02 00 35 04 06 00 06 B0 36 7B D1 B1 27 33 7D 22 2F 23 F9 35 [20:03:33]CheckFolder [20:03:33]dirname=/storage/ofd_packets [20:03:33]CheckFolder done [20:03:33]ProducePacketName [20:03:33]name=ofd_packets/00140377 [20:03:33]NVStorageSaveData ofd_packets/00140377 [20:03:33]File name is /storage/ofd_packets/00140377 [20:03:33]Write 301 bytes [20:03:33]NVStorageSaveData done [20:03:33]OFDSenderStorePacket done [20:03:33]KKMCreateOFDPacket done [20:03:33]NVStorageSaveData kkm_last_timestamp [20:03:33]File name is /storage/kkm_last_timestamp [20:03:33]Write 4 bytes [20:03:33]NVStorageSaveData done [20:03:33]ExternCall_PrintAddStr [20:03:33]wPrintStart [20:03:33]Write to MH i2c: 01 00 00 BB 1E D9 [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 07 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 FF 0F EE [20:03:33]RasterBufferAndPrint [20:03:33]line Счет N : (1)594236 [20:03:33]line ИНН: 02508201610067 [20:03:33]line Контрольно-Кассовый Чек [20:03:33]line ПРОДАЖА [20:03:33]line ТРК (МРК, ГНК) : 62 [20:03:33]line Товар: 2710124130 [20:03:33]line Аи-92-К-5 [20:03:33]line 10.330 * 67.80 [20:03:33]line = 700.37 [20:03:33]line НДС 12% НСП 1% [20:03:33]line > о реализуемом товаре [20:03:33]line ОКРУГЛЕНИЕ: -0.37 [20:03:33]line ИТОГО: 700.00 [20:03:33]line Внесено: 700.00 [20:03:33]line СДАЧА: 0.00 [20:03:33]line НСП 1% : 6.20 [20:03:33]line НДС 12% : 74.38 [20:03:33]line Наличными: 700.00 [20:03:33]line Безнал.: 0.00 [20:03:33]line Место: АЗС № 136 "Партнер Нефть" [20:03:33]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:03:33]line СНО: Общий режим [20:03:33]line Чек 394 21.08.2024 20:03 [20:03:33]line Смена: 454 ФФД: 1.0 [20:03:33]line ЗНМ: 0300000067 [20:03:33]line РНМ: 0000000000092569 [20:03:33]line Версия ККМ: 001 [20:03:33]line ФМ: 0000000000871776 [20:03:33]line ФД: 140377 [20:03:33]line ФПД: 7353898095025 [20:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200332&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140377&fm=7353898095025&tin=02508201610067®Number=0000000000092569&sum=70000 [20:03:33]written 0, free lines is 4095 [20:03:33]OFD Sender: Processing packet 140377 [packets to send 137, broken 136] [20:03:33]ProducePacketName [20:03:33]name=ofd_packets/00140377 [20:03:33]OFD Sender: To server: pG, [20:03:33]CommunicateWithHost lk.salyk.kg:30040 [20:03:33]ConnectInit lk.salyk.kg [20:03:33]Connected sock=10 [20: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 37 36 0F 01 00 00 06 16 07 01 AA 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 01 00 00 F4 03 04 00 14 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 59 24 02 00 35 04 06 00 06 B0 36 7B D1 B1 27 33 7D 22 2F 23 F9 35 [20: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 37 36 4F 00 00 00 22 25 47 00 9E 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 37 36 10 04 04 00 59 24 02 00 F4 03 04 00 A4 EE C5 66 B6 04 01 00 00 FB 1B 34 60 18 59 10 C0 [20:03:33]CommunicateWithHost err = 0 [20:03:33]CheckOFDResponse [20:03:33]1017 (14) - 77093643461234 [20:03:33]1041 (16) - 0000000000871776 [20:03:33]1040 (4) - 140377 [20:03:33]1012 (4) - 21.08.2024 13:41 [20:03:33]1206 (1) - 0 [20:03:33]OFD Sender: Remove packet 140377 [20:03:33]ProducePacketName [20:03:33]name=ofd_packets/00140377 [20:03:33]NVStorageDeleteData [20:03:33]Write to MH i2c: 01 00 00 E6 1E 04 [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 07 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: 01 07 00 E6 1E 00 00 00 00 00 EE 0C 05 [20:03:33]RasterBufferAndPrint [20:03:33]line [20:03:33]line [20:03:33]line [20:03:33]line [20:03:33]line [20:03:33]written 0, free lines is 3319 [20:03:33]MH_Cut [20:03:33]Write to MH i2c: D1 01 00 ED 1E 01 DD [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: D1 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: D1 01 00 [20:03:33]MH_I2C_Read... [20:03:33]Read from MH i2c: D1 01 00 ED 1E 00 DC [20:03:33]Write to MH i2c: 01 00 00 EE 1E 0C [20:03:33]Write i2c OK [20:03:33]MH_I2C_Read... [20:03:34]OFD Sender: No OFD packet to send [20:03:34]*** Cut start [20:03:34]*** Partial cut [20:03:34]*** CUTSNS_PIN = 1 [20:03:34]*** CUTSNS_PIN = 0 [20:03:34]*** Brake cut motor [20:03:34]Read from MH i2c: 01 [20:03:34]MH_I2C_Read... [20:03:34]*** Stop cut motor [20:03:34]*** Cut end [20:03:34]Read from MH i2c: 01 07 00 [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: 01 07 00 EE 1E 00 00 00 00 00 FF 0F 21 [20:03:34]process_action close_receipt done [20:03:34]requested_data is exist [20:03:34]produce_requested_data [20:03:34]requested_item fm.sn is exist - process it [20:03:34]wFMCommunicate request_size=4 [20:03:34]MH_SAM_APDU [20:03:34]CAPDU: 80 11 00 00 [20:03:34]Write to MH i2c: E2 08 00 EF 1E 80 11 00 00 00 00 00 00 87 [20:03:34]Write i2c OK [20:03:34]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 17 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 17 00 EF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DE [20:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:03:35]wFMCommunicate OK [20:03:35]requested_item fd.num is exist - process it [20:03:35]SAM_PROTO_GetFieldsCounters [20:03:35]wFMCommunicate request_size=4 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 13 00 00 [20:03:35]Write to MH i2c: E2 08 00 F0 1E 80 13 00 00 00 00 00 00 8A [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 62 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 62 00 F0 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 24 02 00 0E 04 04 00 C6 01 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 9C [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 59 24 02 00 0E 04 04 00 C6 01 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 [20:03:35]wFMCommunicate OK [20:03:35]SAM_PROTO_GetFieldsCounters done [20:03:35]requested_item shift.num is exist - process it [20:03:35]requested_item shift.opened is exist - process it [20:03:35]req_shift_opened [20:03:35]FM_GetShiftState [20:03:35]SAM_PROTO_GetShiftState [20:03:35]wFMCommunicate request_size=4 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 13 01 00 [20:03:35]Write to MH i2c: E2 08 00 F1 1E 80 13 01 00 00 00 00 00 8C [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 0E 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 0E 00 F1 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0C [20:03:35]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:03:35]wFMCommunicate OK [20:03:35]SAM_PROTO_GetShiftState done [20:03:35]FM_GetShiftState done [20:03:35]req_shift_opened done [20:03:35]requested_item shift.open_date is exist - process it [20:03:35]req_shift_open_date [20:03:35]req_shift_open_date done [20:03:35]produce_requested_data done [20:03:35]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140377,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:03:35]process_action_free close_receipt [20:03:35]json_value_free [20:03:35]json_value_free done [20:03:35]process_json_proto returns [20:03:35]Send response to host [20:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140377,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:03:35]free response buf [20:03:35]execute_script done [20:03:35]execute_script returns [20:03:35]free content buf [20:03:35]Sock 9.Close socket [20:03:35]Sock 9.Thread stoped [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:57]accept exits with 7 [20:03:57]New connection [20:03:57]New thread 3067469156 created [20:03:57]Thread 3067612516 joined [20:03:57]Waiting for new connection... [20:03:57] Sock 7.Parse request [20:03:57]Sock 7.Check first char [20:03:57]Sock 7.First char is OK [20:03:57]request: POST /json_proto HTTP/1.0 [20:03:57]Method: POST [20:03:57]URL: /json_proto [20:03:57]Method is POST - this is cgi request [20:03:57]url: /json_proto [20:03:57]query_string will be loaded in cgi processing [20:03:57]execute_cgi json_proto POST (null) [20:03:57]execute_cgi path=json_proto method=POST [20:03:57]POST find Content-Length [20:03:57]Host: 172.17.45.67:8080 [20:03:57]Content-Length: 682 [20:03:57]Content-Type: application/json [20:03:57] [20:03:57]POST finish read [20:03:57]Found Content-Length = 682 [20:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:57]execute_script... [20: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)594235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:57]POST & json_proto [20:03:57]process_json_proto [20:03:57]json parsed OK: [20:03:57]protocol is kg_v1.0 [20:03:57]action value=close_receipt [20:03:57]process_action close_receipt [20:03:57]cmd_close_receipt [20:03:57]MH_GetDate [20:03:57]Write to MH i2c: F0 00 00 F2 1E FF [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: F0 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: F0 09 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: F0 09 00 F2 1E 00 2E 48 C6 66 5F 7F 2B 66 19 [20:03:57]GetLastDocTimeStamp 1724270612 [20:03:57]current date 1724270638 [20:03:57]FM_GetShiftState [20:03:57]SAM_PROTO_GetShiftState [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 13 01 00 [20:03:57]Write to MH i2c: E2 08 00 F3 1E 80 13 01 00 00 00 00 00 8E [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 0E 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 0E 00 F3 1E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0E [20:03:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:03:58]wFMCommunicate OK [20:03:58]SAM_PROTO_GetShiftState done [20:03:58]FM_GetShiftState done [20:03:58]opened in 1724200467 [20:03:58]opened+sec_in_day 1724286867 [20:03:58]quantity*price = 150041 [20:03:58]sum+1 = 150042 [20:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 395 21.08.2024 20:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140378 ФПД: 13117400885237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140378&fm=13117400885237&tin=02508201610067®Number=0000000000092569&sum=150000 [20:03:59]StoreToDocumentArchive [20:03:59]shift 454 fd 140378 [20:03:59]save to /storage/0454/doc_00140378 [20:03:59]save last doc name /storage/0454/doc_00140378 to /storage/kkm_last_doc_name [20:03:59]save OK [20:03:59]Clear old archive folders... [20:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:59]tlvbuf is 00C27040 [20:03:59]SAM_PROTO_ClearQueue [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 09 00 00 [20:03:59]Write to MH i2c: E2 08 00 00 1F 80 09 00 00 00 00 00 00 91 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [20:03:59]RAPDU: 90 00 [20:03:59]wFMCommunicate OK [20:03:59]SAM_PROTO_ClearQueue done [20:03:59]KKMCreateOFDPacket [20:03:59]OFDProtocolAddRootSTLVToBuf [20:03:59]FM_MakeSignedData [20:03:59]FM_MakeSignedData [20:03:59]SAM_PROTO_SignData [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 0D 01 02 [20:03:59]Write to MH i2c: E2 08 00 01 1F 80 0D 01 02 00 00 00 00 99 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:59]OFD Sender: No OFD packet to send [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [20:03:59]RAPDU: 90 00 [20:03:59]wFMCommunicate OK [20:03:59]wFMCommunicate request_size=255 [20:03:59]MH_SAM_APDU [20: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 2E 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 24 02 00 35 04 06 00 0B [20:03:59]Write to MH i2c: E2 02 01 02 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 2E 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 24 02 00 35 04 06 00 0B 00 00 17 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 02 1F 00 90 00 95 [20:03:59]RAPDU: 90 00 [20:03:59]wFMCommunicate OK [20:03:59]wFMCommunicate request_size=10 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 0D 02 02 05 EE 22 05 27 F5 [20:03:59]Write to MH i2c: E2 0D 00 03 1F 80 0D 02 02 05 00 EE 22 05 27 F5 00 00 D7 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 03 00 03 1F 00 90 00 96 [20:03:59]RAPDU: 90 00 [20:03:59]wFMCommunicate OK [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 0D 03 02 [20:03:59]Write to MH i2c: E2 08 00 04 1F 80 0D 03 02 00 00 00 00 9E [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 0B 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 0B 00 04 1F 00 49 FC 3D 9F 87 D9 0A D8 90 00 02 [20:03:59]RAPDU: 49 FC 3D 9F 87 D9 0A D8 90 00 [20:03:59]wFMCommunicate OK [20:03:59]SAM_PROTO_SignData done [20:03:59]FM_MakeSignedData done [20:03:59]CreateOFDProtocolMessage [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 11 00 00 [20:03:59]Write to MH i2c: E2 08 00 05 1F 80 11 00 00 00 00 00 00 9E [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 17 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 17 00 05 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F5 [20:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:03:59]wFMCommunicate OK [20:03:59]CreateOFDProtocolMessage done [20:03:59]OFDSenderStorePacket 140378 [20:03:59]StoreOFDPacket docnum=140378 [20:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 0E D8 07 01 95 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 2E 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 24 02 00 35 04 06 00 0B EE 22 05 27 F5 49 FC 3D 9F 87 D9 0A D8 [20:03:59]CheckFolder [20:03:59]dirname=/storage/ofd_packets [20:03:59]CheckFolder done [20:03:59]ProducePacketName [20:03:59]name=ofd_packets/00140378 [20:03:59]NVStorageSaveData ofd_packets/00140378 [20:03:59]File name is /storage/ofd_packets/00140378 [20:03:59]Write 301 bytes [20:03:59]NVStorageSaveData done [20:03:59]OFDSenderStorePacket done [20:03:59]KKMCreateOFDPacket done [20:03:59]NVStorageSaveData kkm_last_timestamp [20:03:59]File name is /storage/kkm_last_timestamp [20:03:59]Write 4 bytes [20:03:59]NVStorageSaveData done [20:03:59]ExternCall_PrintAddStr [20:03:59]wPrintStart [20:03:59]Write to MH i2c: 01 00 00 06 1F 25 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: 01 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: 01 07 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: 01 07 00 06 1F 00 00 00 00 00 FF 0F 3A [20:03:59]RasterBufferAndPrint [20:03:59]line Счет N : (1)594235 [20:03:59]line ИНН: 02508201610067 [20:03:59]line Контрольно-Кассовый Чек [20:03:59]line ПРОДАЖА [20:03:59]line ТРК (МРК, ГНК) : 42 [20:03:59]line Товар: 2710124130 [20:03:59]line Аи-92-К-5 [20:03:59]line 22.130 * 67.80 [20:03:59]line = 1500.41 [20:03:59]line НДС 12% НСП 1% [20:03:59]line > о реализуемом товаре [20:03:59]line ОКРУГЛЕНИЕ: -0.41 [20:03:59]line ИТОГО: 1500.00 [20:03:59]line Внесено: 1500.00 [20:03:59]line СДАЧА: 0.00 [20:03:59]line НСП 1% : 13.28 [20:03:59]line НДС 12% : 159.34 [20:03:59]line Наличными: 1500.00 [20:03:59]line Безнал.: 0.00 [20:03:59]line Место: АЗС № 136 "Партнер Нефть" [20:03:59]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:03:59]line СНО: Общий режим [20:03:59]line Чек 395 21.08.2024 20:03 [20:03:59]line Смена: 454 ФФД: 1.0 [20:03:59]line ЗНМ: 0300000067 [20:03:59]line РНМ: 0000000000092569 [20:03:59]line Версия ККМ: 001 [20:03:59]line ФМ: 0000000000871776 [20:03:59]line ФД: 140378 [20:03:59]line ФПД: 13117400885237 [20:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200358&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140378&fm=13117400885237&tin=02508201610067®Number=0000000000092569&sum=150000 [20:04:00]OFD Sender: Processing packet 140378 [packets to send 137, broken 136] [20:04:00]ProducePacketName [20:04:00]name=ofd_packets/00140378 [20:04:00]OFD Sender: To server: pG, [20:04:00]CommunicateWithHost lk.salyk.kg:30040 [20:04:00]ConnectInit lk.salyk.kg [20:04:00]written 0, free lines is 4095 [20:04:00]Connected sock=10 [20:04: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 37 36 0F 01 00 00 0E D8 07 01 95 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 2E 48 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 24 02 00 35 04 06 00 0B EE 22 05 27 F5 49 FC 3D 9F 87 D9 0A D8 [20: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 37 36 4F 00 00 00 F0 25 47 00 B0 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5A 24 02 00 F4 03 04 00 BE EE C5 66 B6 04 01 00 00 15 D7 B6 BC D0 08 08 34 [20:04:00]CommunicateWithHost err = 0 [20:04:00]CheckOFDResponse [20:04:00]1017 (14) - 77093643461234 [20:04:00]1041 (16) - 0000000000871776 [20:04:00]1040 (4) - 140378 [20:04:00]1012 (4) - 21.08.2024 13:42 [20:04:00]1206 (1) - 0 [20:04:00]OFD Sender: Remove packet 140378 [20:04:00]ProducePacketName [20:04:00]name=ofd_packets/00140378 [20:04:00]NVStorageDeleteData [20:04:00]Write to MH i2c: 01 00 00 31 1F 50 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: 01 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: 01 07 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: 01 07 00 31 1F 00 00 00 00 00 E5 0C 48 [20:04:00]RasterBufferAndPrint [20:04:00]line [20:04:00]line [20:04:00]line [20:04:00]line [20:04:00]line [20:04:00]written 0, free lines is 3310 [20:04:00]MH_Cut [20:04:00]Write to MH i2c: D1 01 00 38 1F 01 29 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: D1 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: D1 01 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: D1 01 00 38 1F 00 28 [20:04:00]Write to MH i2c: 01 00 00 39 1F 58 [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]OFD Sender: No OFD packet to send [20:04:01]*** Cut start [20:04:01]*** Partial cut [20:04:01]*** CUTSNS_PIN = 1 [20:04:01]*** CUTSNS_PIN = 0 [20:04:01]*** Brake cut motor [20:04:01]Read from MH i2c: 01 [20:04:01]MH_I2C_Read... [20:04:01]*** Stop cut motor [20:04:01]*** Cut end [20:04:01]Read from MH i2c: 01 07 00 [20:04:01]MH_I2C_Read... [20:04:01]Read from MH i2c: 01 07 00 39 1F 00 00 00 00 00 FF 0F 6D [20:04:01]process_action close_receipt done [20:04:01]requested_data is exist [20:04:01]produce_requested_data [20:04:01]requested_item fm.sn is exist - process it [20:04:01]wFMCommunicate request_size=4 [20:04:01]MH_SAM_APDU [20:04:01]CAPDU: 80 11 00 00 [20:04:01]Write to MH i2c: E2 08 00 3A 1F 80 11 00 00 00 00 00 00 D3 [20:04:01]Write i2c OK [20:04:01]MH_I2C_Read... [20:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:01]Read from MH i2c: E2 [20:04:01]MH_I2C_Read... [20:04:01]Read from MH i2c: E2 17 00 [20:04:01]MH_I2C_Read... [20:04:01]Read from MH i2c: E2 17 00 3A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2A [20:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:04:01]wFMCommunicate OK [20:04:01]requested_item fd.num is exist - process it [20:04:01]SAM_PROTO_GetFieldsCounters [20:04:01]wFMCommunicate request_size=4 [20:04:01]MH_SAM_APDU [20:04:01]CAPDU: 80 13 00 00 [20:04:01]Write to MH i2c: E2 08 00 3B 1F 80 13 00 00 00 00 00 00 D6 [20:04:01]Write i2c OK [20:04:01]MH_I2C_Read... [20:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:01]Read from MH i2c: E2 [20:04:01]MH_I2C_Read... [20:04:01]Read from MH i2c: E2 62 00 [20:04:01]MH_I2C_Read... [20:04:01]Read from MH i2c: E2 62 00 3B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 24 02 00 0E 04 04 00 C6 01 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 EC [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5A 24 02 00 0E 04 04 00 C6 01 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 [20:04:01]wFMCommunicate OK [20:04:01]SAM_PROTO_GetFieldsCounters done [20:04:01]requested_item shift.num is exist - process it [20:04:01]requested_item shift.opened is exist - process it [20:04:01]req_shift_opened [20:04:01]FM_GetShiftState [20:04:01]SAM_PROTO_GetShiftState [20:04:01]wFMCommunicate request_size=4 [20:04:01]MH_SAM_APDU [20:04:01]CAPDU: 80 13 01 00 [20:04:01]Write to MH i2c: E2 08 00 3C 1F 80 13 01 00 00 00 00 00 D8 [20:04:01]Write i2c OK [20:04:01]MH_I2C_Read... [20:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:02]Read from MH i2c: E2 [20:04:02]MH_I2C_Read... [20:04:02]Read from MH i2c: E2 0E 00 [20:04:02]MH_I2C_Read... [20:04:02]Read from MH i2c: E2 0E 00 3C 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 58 [20:04:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:04:02]wFMCommunicate OK [20:04:02]SAM_PROTO_GetShiftState done [20:04:02]FM_GetShiftState done [20:04:02]req_shift_opened done [20:04:02]requested_item shift.open_date is exist - process it [20:04:02]req_shift_open_date [20:04:02]req_shift_open_date done [20:04:02]produce_requested_data done [20:04:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140378,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:04:02]process_action_free close_receipt [20:04:02]json_value_free [20:04:02]json_value_free done [20:04:02]process_json_proto returns [20:04:02]Send response to host [20:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140378,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:04:02]free response buf [20:04:02]execute_script done [20:04:02]execute_script returns [20:04:02]free content buf [20:04:02]Sock 7.Close socket [20:04:02]Sock 7.Thread stoped [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:06:59]int [20:06:59]Write to MH i2c: 01 00 00 3D 1F 5C [20:06:59]*** FLAG_PRN_KEY set [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 3D 1F 00 08 00 00 00 FF 0F 79 [20:06:59]state=0 [20:06:59]Key pressed [20:06:59]Feed [20:06:59]Write to MH i2c: D8 00 00 3E 1F 34 [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: D8 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: D8 01 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: D8 01 00 3E 1F 00 35 [20:06:59]int [20:06:59]Write to MH i2c: 01 00 00 3F 1F 5E [20:06:59]Write i2c OK [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 [20:06:59]MH_I2C_Read... [20:06:59]Read from MH i2c: 01 07 00 3F 1F 00 48 00 00 00 3C 00 E9 [20:06:59]state=2 [20:06:59]Key pressed [20:07:00]int [20:07:00]Write to MH i2c: 01 00 00 40 1F 5F [20:07:00]*** FLAG_PRN_KEY reset [20:07:00]Write i2c OK [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 [20:07:00]MH_I2C_Read... [20:07:00]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 F6 0F 6B [20:07:00]state=2 [20:07:00]Stop feed [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:41]accept exits with 9 [20:08:41]New connection [20:08:41]New thread 3067612516 created [20:08:41]Thread 3067469156 joined [20:08:41]Waiting for new connection... [20:08:41] Sock 9.Parse request [20:08:41]Sock 9.Check first char [20:08:41]Sock 9.First char is OK [20:08:41]request: POST /json_proto HTTP/1.0 [20:08:41]Method: POST [20:08:41]URL: /json_proto [20:08:41]Method is POST - this is cgi request [20:08:41]url: /json_proto [20:08:41]query_string will be loaded in cgi processing [20:08:41]execute_cgi json_proto POST (null) [20:08:41]execute_cgi path=json_proto method=POST [20:08:41]POST find Content-Length [20:08:41]Host: 172.17.45.67:8080 [20:08:41]Content-Length: 682 [20:08:41]Content-Type: application/json [20:08:41] [20:08:41]POST finish read [20:08:41]Found Content-Length = 682 [20:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.430, "sum" : 1070.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1070.00, "total" : 1070.00, "payments": [ { "type": 0, "sum" : 1070.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:41]execute_script... [20:08: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)594237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 14.430, "sum" : 1070.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1070.00, "total" : 1070.00, "payments": [ { "type": 0, "sum" : 1070.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:41]POST & json_proto [20:08:41]process_json_proto [20:08:41]json parsed OK: [20:08:41]protocol is kg_v1.0 [20:08:41]action value=close_receipt [20:08:41]process_action close_receipt [20:08:41]cmd_close_receipt [20:08:41]MH_GetDate [20:08:41]Write to MH i2c: F0 00 00 41 1F 4F [20:08:41]Write i2c OK [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 09 00 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 09 00 41 1F 00 4A 49 C6 66 5F 7F 2B 66 86 [20:08:41]GetLastDocTimeStamp 1724270638 [20:08:41]current date 1724270922 [20:08:41]FM_GetShiftState [20:08:41]SAM_PROTO_GetShiftState [20:08:41]wFMCommunicate request_size=4 [20:08:41]MH_SAM_APDU [20:08:41]CAPDU: 80 13 01 00 [20:08:41]Write to MH i2c: E2 08 00 42 1F 80 13 01 00 00 00 00 00 DE [20:08:41]Write i2c OK [20:08:41]MH_I2C_Read... [20:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:41]Read from MH i2c: E2 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: E2 0E 00 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: E2 0E 00 42 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5E [20:08:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:08:41]wFMCommunicate OK [20:08:41]SAM_PROTO_GetShiftState done [20:08:41]FM_GetShiftState done [20:08:41]opened in 1724200467 [20:08:41]opened+sec_in_day 1724286867 [20:08:41]quantity*price = 107070 [20:08:41]sum+1 = 107072 [20:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1070.00 Внесено: 1070.00 СДАЧА: 0.00 НСП 1% : 9.47 НДС 12% : 113.70 Наличными: 1070.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 396 21.08.2024 20:08 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140379 ФПД: 153239361832933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200842&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140379&fm=153239361832933&tin=02508201610067®Number=0000000000092569&sum=107000 [20:08:43]StoreToDocumentArchive [20:08:43]shift 454 fd 140379 [20:08:43]save to /storage/0454/doc_00140379 [20:08:43]save last doc name /storage/0454/doc_00140379 to /storage/kkm_last_doc_name [20:08:43]save OK [20:08:43]Clear old archive folders... [20:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:43]tlvbuf is 00C27060 [20:08:43]SAM_PROTO_ClearQueue [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 09 00 00 [20:08:43]Write to MH i2c: E2 08 00 4F 1F 80 09 00 00 00 00 00 00 E0 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 4F 1F 00 90 00 E2 [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]SAM_PROTO_ClearQueue done [20:08:43]KKMCreateOFDPacket [20:08:43]OFDProtocolAddRootSTLVToBuf [20:08:43]FM_MakeSignedData [20:08:43]FM_MakeSignedData [20:08:43]SAM_PROTO_SignData [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 01 02 [20:08:43]Write to MH i2c: E2 08 00 50 1F 80 0D 01 02 00 00 00 00 E8 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 50 1F 00 90 00 E3 [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]wFMCommunicate request_size=255 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2C 00 00 00 00 07 04 06 00 F8 A1 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 01 00 00 F4 03 04 00 4A 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 24 02 00 35 04 06 00 8B [20:08:43]Write to MH i2c: E2 02 01 51 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2C 00 00 00 00 07 04 06 00 F8 A1 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 01 00 00 F4 03 04 00 4A 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 24 02 00 35 04 06 00 8B 00 00 2F [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]wFMCommunicate request_size=10 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 02 02 05 5E D1 BA 47 E5 [20:08:43]Write to MH i2c: E2 0D 00 52 1F 80 0D 02 02 05 00 5E D1 BA 47 E5 00 00 0A [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 03 02 [20:08:43]Write to MH i2c: E2 08 00 53 1F 80 0D 03 02 00 00 00 00 ED [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0B 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0B 00 53 1F 00 40 E2 8B F7 CD 10 8C 47 90 00 42 [20:08:43]RAPDU: 40 E2 8B F7 CD 10 8C 47 90 00 [20:08:43]wFMCommunicate OK [20:08:43]SAM_PROTO_SignData done [20:08:43]FM_MakeSignedData done [20:08:43]CreateOFDProtocolMessage [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 11 00 00 [20:08:43]Write to MH i2c: E2 08 00 54 1F 80 11 00 00 00 00 00 00 ED [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 17 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 17 00 54 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 44 [20:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:08:43]wFMCommunicate OK [20:08:43]CreateOFDProtocolMessage done [20:08:43]OFDSenderStorePacket 140379 [20:08:43]StoreOFDPacket docnum=140379 [20:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3E B1 07 01 6A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2C 00 00 00 00 07 04 06 00 F8 A1 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 01 00 00 F4 03 04 00 4A 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 24 02 00 35 04 06 00 8B 5E D1 BA 47 E5 40 E2 8B F7 CD 10 8C 47 [20:08:43]CheckFolder [20:08:43]dirname=/storage/ofd_packets [20:08:43]CheckFolder done [20:08:43]ProducePacketName [20:08:43]name=ofd_packets/00140379 [20:08:43]NVStorageSaveData ofd_packets/00140379 [20:08:43]File name is /storage/ofd_packets/00140379 [20:08:43]Write 301 bytes [20:08:43]NVStorageSaveData done [20:08:43]OFDSenderStorePacket done [20:08:43]KKMCreateOFDPacket done [20:08:43]NVStorageSaveData kkm_last_timestamp [20:08:43]File name is /storage/kkm_last_timestamp [20:08:43]Write 4 bytes [20:08:43]NVStorageSaveData done [20:08:43]ExternCall_PrintAddStr [20:08:43]wPrintStart [20:08:43]Write to MH i2c: 01 00 00 55 1F 74 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 55 1F 00 00 00 00 00 FF 0F 89 [20:08:43]RasterBufferAndPrint [20:08:43]line Счет N : (1)594237 [20:08:43]line ИНН: 02508201610067 [20:08:43]line Контрольно-Кассовый Чек [20:08:43]line ПРОДАЖА [20:08:43]line ТРК (МРК, ГНК) : 41 [20:08:43]line Товар: 2710124500 [20:08:43]line Аи-95-К-5 [20:08:43]line 14.430 * 74.20 [20:08:43]line = 1070.71 [20:08:43]line НДС 12% НСП 1% [20:08:43]line > о реализуемом товаре [20:08:43]line ОКРУГЛЕНИЕ: -0.71 [20:08:43]line ИТОГО: 1070.00 [20:08:43]line Внесено: 1070.00 [20:08:43]line СДАЧА: 0.00 [20:08:43]line НСП 1% : 9.47 [20:08:43]line НДС 12% : 113.70 [20:08:43]line Наличными: 1070.00 [20:08:43]line Безнал.: 0.00 [20:08:43]line Место: АЗС № 136 "Партнер Нефть" [20:08:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:08:43]line СНО: Общий режим [20:08:43]line Чек 396 21.08.2024 20:08 [20:08:43]line Смена: 454 ФФД: 1.0 [20:08:43]line ЗНМ: 0300000067 [20:08:43]line РНМ: 0000000000092569 [20:08:43]line Версия ККМ: 001 [20:08:43]line ФМ: 0000000000871776 [20:08:43]line ФД: 140379 [20:08:43]line ФПД: 153239361832933 [20:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200842&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140379&fm=153239361832933&tin=02508201610067®Number=0000000000092569&sum=107000 [20:08:43]written 0, free lines is 4095 [20:08:43]OFD Sender: Processing packet 140379 [packets to send 137, broken 136] [20:08:43]ProducePacketName [20:08:43]name=ofd_packets/00140379 [20:08:43]OFD Sender: To server: pG, [20:08:43]CommunicateWithHost lk.salyk.kg:30040 [20:08:43]ConnectInit lk.salyk.kg [20:08:43]Connected sock=10 [20:08: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 37 36 0F 01 00 00 3E B1 07 01 6A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 3F A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 2C 00 00 00 00 07 04 06 00 F8 A1 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 01 00 00 F4 03 04 00 4A 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5B 24 02 00 35 04 06 00 8B 5E D1 BA 47 E5 40 E2 8B F7 CD 10 8C 47 [20:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DE 25 47 00 2A 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 37 36 10 04 04 00 5B 24 02 00 F4 03 04 00 DA EF C5 66 B6 04 01 00 00 ED 62 69 DC FE AE D8 DE [20:08:44]CommunicateWithHost err = 0 [20:08:44]CheckOFDResponse [20:08:44]1017 (14) - 77093643461234 [20:08:44]1041 (16) - 0000000000871776 [20:08:44]1040 (4) - 140379 [20:08:44]1012 (4) - 21.08.2024 13:47 [20:08:44]1206 (1) - 0 [20:08:44]OFD Sender: Remove packet 140379 [20:08:44]ProducePacketName [20:08:44]name=ofd_packets/00140379 [20:08:44]NVStorageDeleteData [20:08:44]Write to MH i2c: 01 00 00 80 1F 9F [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 07 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 E6 0C 98 [20:08:44]RasterBufferAndPrint [20:08:44]line [20:08:44]line [20:08:44]line [20:08:44]line [20:08:44]line [20:08:44]written 0, free lines is 3308 [20:08:44]MH_Cut [20:08:44]Write to MH i2c: D1 01 00 87 1F 01 78 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: D1 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: D1 01 00 [20:08:44]MH_I2C_Read... [20:08:44]Read from MH i2c: D1 01 00 87 1F 00 77 [20:08:44]Write to MH i2c: 01 00 00 88 1F A7 [20:08:44]Write i2c OK [20:08:44]MH_I2C_Read... [20:08:44]OFD Sender: No OFD packet to send [20:08:44]*** Cut start [20:08:44]*** Partial cut [20:08:44]*** CUTSNS_PIN = 1 [20:08:44]*** CUTSNS_PIN = 0 [20:08:45]*** Brake cut motor [20:08:45]Read from MH i2c: 01 [20:08:45]MH_I2C_Read... [20:08:45]*** Stop cut motor [20:08:45]*** Cut end [20:08:45]Read from MH i2c: 01 07 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 FF 0F BC [20:08:45]process_action close_receipt done [20:08:45]requested_data is exist [20:08:45]produce_requested_data [20:08:45]requested_item fm.sn is exist - process it [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 11 00 00 [20:08:45]Write to MH i2c: E2 08 00 89 1F 80 11 00 00 00 00 00 00 22 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 17 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 17 00 89 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 79 [20:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:08:45]wFMCommunicate OK [20:08:45]requested_item fd.num is exist - process it [20:08:45]SAM_PROTO_GetFieldsCounters [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 13 00 00 [20:08:45]Write to MH i2c: E2 08 00 8A 1F 80 13 00 00 00 00 00 00 25 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 62 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 62 00 8A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 24 02 00 0E 04 04 00 C6 01 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 3F [20:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5B 24 02 00 0E 04 04 00 C6 01 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 [20:08:45]wFMCommunicate OK [20:08:45]SAM_PROTO_GetFieldsCounters done [20:08:45]requested_item shift.num is exist - process it [20:08:45]requested_item shift.opened is exist - process it [20:08:45]req_shift_opened [20:08:45]FM_GetShiftState [20:08:45]SAM_PROTO_GetShiftState [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 13 01 00 [20:08:45]Write to MH i2c: E2 08 00 8B 1F 80 13 01 00 00 00 00 00 27 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 8B 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A7 [20:08:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:08:45]wFMCommunicate OK [20:08:45]SAM_PROTO_GetShiftState done [20:08:45]FM_GetShiftState done [20:08:45]req_shift_opened done [20:08:45]requested_item shift.open_date is exist - process it [20:08:45]req_shift_open_date [20:08:45]req_shift_open_date done [20:08:45]produce_requested_data done [20:08:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140379,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:08:45]process_action_free close_receipt [20:08:45]json_value_free [20:08:45]json_value_free done [20:08:45]process_json_proto returns [20:08:45]Send response to host [20:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140379,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:08:45]free response buf [20:08:45]execute_script done [20:08:45]execute_script returns [20:08:45]free content buf [20:08:45]Sock 9.Close socket [20:08:45]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:27]accept exits with 7 [20:09:27]New connection [20:09:27]New thread 3067469156 created [20:09:27]Thread 3067612516 joined [20:09:27]Waiting for new connection... [20:09:27] Sock 7.Parse request [20:09:27]Sock 7.Check first char [20:09:27]Sock 7.First char is OK [20:09:27]request: POST /json_proto HTTP/1.0 [20:09:27]Method: POST [20:09:27]URL: /json_proto [20:09:27]Method is POST - this is cgi request [20:09:27]url: /json_proto [20:09:27]query_string will be loaded in cgi processing [20:09:27]execute_cgi json_proto POST (null) [20:09:27]execute_cgi path=json_proto method=POST [20:09:27]POST find Content-Length [20:09:27]Host: 172.17.45.67:8080 [20:09:27]Content-Length: 677 [20:09:27]Content-Type: application/json [20:09:27] [20:09:27]POST finish read [20:09:27]Found Content-Length = 677 [20:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.840, "sum" : 260.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:27]execute_script... [20:09: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)594238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 3.840, "sum" : 260.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:27]POST & json_proto [20:09:27]process_json_proto [20:09:27]json parsed OK: [20:09:27]protocol is kg_v1.0 [20:09:27]action value=close_receipt [20:09:27]process_action close_receipt [20:09:27]cmd_close_receipt [20:09:27]MH_GetDate [20:09:27]Write to MH i2c: F0 00 00 8C 1F 9A [20:09:27]Write i2c OK [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: F0 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: F0 09 00 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: F0 09 00 8C 1F 00 77 49 C6 66 5F 7F 2B 66 FE [20:09:27]GetLastDocTimeStamp 1724270922 [20:09:27]current date 1724270967 [20:09:27]FM_GetShiftState [20:09:27]SAM_PROTO_GetShiftState [20:09:27]wFMCommunicate request_size=4 [20:09:27]MH_SAM_APDU [20:09:27]CAPDU: 80 13 01 00 [20:09:27]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [20:09:27]Write i2c OK [20:09:27]MH_I2C_Read... [20:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:27]Read from MH i2c: E2 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: E2 0E 00 [20:09:27]MH_I2C_Read... [20:09:27]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A9 [20:09:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:09:27]wFMCommunicate OK [20:09:27]SAM_PROTO_GetShiftState done [20:09:27]FM_GetShiftState done [20:09:27]opened in 1724200467 [20:09:27]opened+sec_in_day 1724286867 [20:09:27]quantity*price = 26035 [20:09:27]sum+1 = 26036 [20:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.65 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 397 21.08.2024 20:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140380 ФПД: 57421089142954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140380&fm=57421089142954&tin=02508201610067®Number=0000000000092569&sum=26000 [20:09:28]StoreToDocumentArchive [20:09:28]shift 454 fd 140380 [20:09:28]save to /storage/0454/doc_00140380 [20:09:28]save last doc name /storage/0454/doc_00140380 to /storage/kkm_last_doc_name [20:09:28]save OK [20:09:28]Clear old archive folders... [20:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:28]tlvbuf is 00C27880 [20:09:28]SAM_PROTO_ClearQueue [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 09 00 00 [20:09:28]Write to MH i2c: E2 08 00 9A 1F 80 09 00 00 00 00 00 00 2B [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]SAM_PROTO_ClearQueue done [20:09:28]KKMCreateOFDPacket [20:09:28]OFDProtocolAddRootSTLVToBuf [20:09:28]FM_MakeSignedData [20:09:28]FM_MakeSignedData [20:09:28]SAM_PROTO_SignData [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 01 02 [20:09:28]Write to MH i2c: E2 08 00 9B 1F 80 0D 01 02 00 00 00 00 33 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=255 [20:09:28]MH_SAM_APDU [20:09: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 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 77 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 24 02 00 35 04 06 00 34 [20:09:28]Write to MH i2c: E2 02 01 9C 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 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 77 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 24 02 00 35 04 06 00 34 00 00 A2 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=10 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 02 02 05 39 63 9E F8 AA [20:09:28]Write to MH i2c: E2 0D 00 9D 1F 80 0D 02 02 05 00 39 63 9E F8 AA 00 00 1C [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [20:09:28]RAPDU: 90 00 [20:09:28]wFMCommunicate OK [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 0D 03 02 [20:09:28]Write to MH i2c: E2 08 00 9E 1F 80 0D 03 02 00 00 00 00 38 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0B 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 0B 00 9E 1F 00 32 F3 98 72 87 1C F2 0E 90 00 0B [20:09:28]RAPDU: 32 F3 98 72 87 1C F2 0E 90 00 [20:09:28]wFMCommunicate OK [20:09:28]SAM_PROTO_SignData done [20:09:28]FM_MakeSignedData done [20:09:28]CreateOFDProtocolMessage [20:09:28]wFMCommunicate request_size=4 [20:09:28]MH_SAM_APDU [20:09:28]CAPDU: 80 11 00 00 [20:09:28]Write to MH i2c: E2 08 00 9F 1F 80 11 00 00 00 00 00 00 38 [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:28]Read from MH i2c: E2 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 17 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: E2 17 00 9F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 8F [20:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:09:28]wFMCommunicate OK [20:09:28]CreateOFDProtocolMessage done [20:09:28]OFDSenderStorePacket 140380 [20:09:28]StoreOFDPacket docnum=140380 [20:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C3 2C 07 01 E1 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 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 77 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 24 02 00 35 04 06 00 34 39 63 9E F8 AA 32 F3 98 72 87 1C F2 0E [20:09:28]CheckFolder [20:09:28]dirname=/storage/ofd_packets [20:09:28]CheckFolder done [20:09:28]ProducePacketName [20:09:28]name=ofd_packets/00140380 [20:09:28]NVStorageSaveData ofd_packets/00140380 [20:09:28]File name is /storage/ofd_packets/00140380 [20:09:28]Write 301 bytes [20:09:28]NVStorageSaveData done [20:09:28]OFDSenderStorePacket done [20:09:28]KKMCreateOFDPacket done [20:09:28]NVStorageSaveData kkm_last_timestamp [20:09:28]File name is /storage/kkm_last_timestamp [20:09:28]Write 4 bytes [20:09:28]NVStorageSaveData done [20:09:28]ExternCall_PrintAddStr [20:09:28]wPrintStart [20:09:28]Write to MH i2c: 01 00 00 A0 1F BF [20:09:28]Write i2c OK [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 07 00 [20:09:28]MH_I2C_Read... [20:09:28]Read from MH i2c: 01 07 00 A0 1F 00 00 00 00 00 FF 0F D4 [20:09:28]RasterBufferAndPrint [20:09:28]line Счет N : (1)594238 [20:09:28]line ИНН: 02508201610067 [20:09:28]line Контрольно-Кассовый Чек [20:09:28]line ПРОДАЖА [20:09:28]line ТРК (МРК, ГНК) : 52 [20:09:28]line Товар: 2710124130 [20:09:28]line Аи-92-К-5 [20:09:28]line 3.840 * 67.80 [20:09:28]line = 260.35 [20:09:28]line НДС 12% НСП 1% [20:09:28]line > о реализуемом товаре [20:09:28]line ОКРУГЛЕНИЕ: -0.35 [20:09:28]line ИТОГО: 260.00 [20:09:28]line Внесено: 260.00 [20:09:28]line СДАЧА: 0.00 [20:09:28]line НСП 1% : 2.30 [20:09:28]line НДС 12% : 27.65 [20:09:28]line Наличными: 260.00 [20:09:28]line Безнал.: 0.00 [20:09:28]line Место: АЗС № 136 "Партнер Нефть" [20:09:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:09:28]line СНО: Общий режим [20:09:28]line Чек 397 21.08.2024 20:09 [20:09:28]line Смена: 454 ФФД: 1.0 [20:09:28]line ЗНМ: 0300000067 [20:09:28]line РНМ: 0000000000092569 [20:09:28]line Версия ККМ: 001 [20:09:28]line ФМ: 0000000000871776 [20:09:28]line ФД: 140380 [20:09:28]line ФПД: 57421089142954 [20:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T200927&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140380&fm=57421089142954&tin=02508201610067®Number=0000000000092569&sum=26000 [20:09:29]written 0, free lines is 4095 [20:09:29]OFD Sender: Processing packet 140380 [packets to send 137, broken 136] [20:09:29]ProducePacketName [20:09:29]name=ofd_packets/00140380 [20:09:29]OFD Sender: To server: pG, [20:09:29]CommunicateWithHost lk.salyk.kg:30040 [20:09:29]ConnectInit lk.salyk.kg [20:09:29]Connected sock=10 [20:09: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 37 36 0F 01 00 00 C3 2C 07 01 E1 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 00 0F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B3 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 77 49 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 24 02 00 35 04 06 00 34 39 63 9E F8 AA 32 F3 98 72 87 1C F2 0E [20:09: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 37 36 4F 00 00 00 13 65 47 00 56 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5C 24 02 00 F4 03 04 00 08 F0 C5 66 B6 04 01 00 00 63 B4 E3 12 5A B9 3A BD [20:09:29]CommunicateWithHost err = 0 [20:09:29]CheckOFDResponse [20:09:29]1017 (14) - 77093643461234 [20:09:29]1041 (16) - 0000000000871776 [20:09:29]1040 (4) - 140380 [20:09:29]1012 (4) - 21.08.2024 13:47 [20:09:29]1206 (1) - 0 [20:09:29]OFD Sender: Remove packet 140380 [20:09:29]ProducePacketName [20:09:29]name=ofd_packets/00140380 [20:09:29]NVStorageDeleteData [20:09:29]Write to MH i2c: 01 00 00 CB 1F EA [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 D8 0C D5 [20:09:29]RasterBufferAndPrint [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]line [20:09:29]written 0, free lines is 3296 [20:09:29]MH_Cut [20:09:29]Write to MH i2c: D1 01 00 D2 1F 01 C3 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 01 00 [20:09:29]MH_I2C_Read... [20:09:29]Read from MH i2c: D1 01 00 D2 1F 00 C2 [20:09:29]Write to MH i2c: 01 00 00 D3 1F F2 [20:09:29]Write i2c OK [20:09:29]MH_I2C_Read... [20:09:29]OFD Sender: No OFD packet to send [20:09:30]*** Cut start [20:09:30]*** Partial cut [20:09:30]*** CUTSNS_PIN = 1 [20:09:30]*** CUTSNS_PIN = 0 [20:09:30]*** Brake cut motor [20:09:30]Read from MH i2c: 01 [20:09:30]MH_I2C_Read... [20:09:30]*** Stop cut motor [20:09:30]*** Cut end [20:09:30]Read from MH i2c: 01 07 00 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [20:09:30]process_action close_receipt done [20:09:30]requested_data is exist [20:09:30]produce_requested_data [20:09:30]requested_item fm.sn is exist - process it [20:09:30]wFMCommunicate request_size=4 [20:09:30]MH_SAM_APDU [20:09:30]CAPDU: 80 11 00 00 [20:09:30]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [20:09:30]Write i2c OK [20:09:30]MH_I2C_Read... [20:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:30]Read from MH i2c: E2 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: E2 17 00 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [20:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:09:30]wFMCommunicate OK [20:09:30]requested_item fd.num is exist - process it [20:09:30]SAM_PROTO_GetFieldsCounters [20:09:30]wFMCommunicate request_size=4 [20:09:30]MH_SAM_APDU [20:09:30]CAPDU: 80 13 00 00 [20:09:30]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [20:09:30]Write i2c OK [20:09:30]MH_I2C_Read... [20:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:30]Read from MH i2c: E2 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: E2 62 00 [20:09:30]MH_I2C_Read... [20:09:30]Read from MH i2c: E2 62 00 D5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 24 02 00 0E 04 04 00 C6 01 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 8E [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5C 24 02 00 0E 04 04 00 C6 01 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 [20:09:31]wFMCommunicate OK [20:09:31]SAM_PROTO_GetFieldsCounters done [20:09:31]requested_item shift.num is exist - process it [20:09:31]requested_item shift.opened is exist - process it [20:09:31]req_shift_opened [20:09:31]FM_GetShiftState [20:09:31]SAM_PROTO_GetShiftState [20:09:31]wFMCommunicate request_size=4 [20:09:31]MH_SAM_APDU [20:09:31]CAPDU: 80 13 01 00 [20:09:31]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [20:09:31]Write i2c OK [20:09:31]MH_I2C_Read... [20:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:31]Read from MH i2c: E2 [20:09:31]MH_I2C_Read... [20:09:31]Read from MH i2c: E2 0E 00 [20:09:31]MH_I2C_Read... [20:09:31]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F2 [20:09:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:09:31]wFMCommunicate OK [20:09:31]SAM_PROTO_GetShiftState done [20:09:31]FM_GetShiftState done [20:09:31]req_shift_opened done [20:09:31]requested_item shift.open_date is exist - process it [20:09:31]req_shift_open_date [20:09:31]req_shift_open_date done [20:09:31]produce_requested_data done [20:09:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140380,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:09:31]process_action_free close_receipt [20:09:31]json_value_free [20:09:31]json_value_free done [20:09:31]process_json_proto returns [20:09:31]Send response to host [20:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140380,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:09:31]free response buf [20:09:31]execute_script done [20:09:31]execute_script returns [20:09:31]free content buf [20:09:31]Sock 7.Close socket [20:09:31]Sock 7.Thread stoped [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:06]accept exits with 9 [20:18:06]New connection [20:18:06]New thread 3067612516 created [20:18:06]Thread 3067469156 joined [20:18:06]Waiting for new connection... [20:18:06] Sock 9.Parse request [20:18:06]Sock 9.Check first char [20:18:06]Sock 9.First char is OK [20:18:06]request: POST /json_proto HTTP/1.0 [20:18:06]Method: POST [20:18:06]URL: /json_proto [20:18:06]Method is POST - this is cgi request [20:18:06]url: /json_proto [20:18:06]query_string will be loaded in cgi processing [20:18:06]execute_cgi json_proto POST (null) [20:18:06]execute_cgi path=json_proto method=POST [20:18:06]POST find Content-Length [20:18:06]Host: 172.17.45.67:8080 [20:18:06]Content-Length: 677 [20:18:06]Content-Type: application/json [20:18:06] [20:18:06]POST finish read [20:18:06]Found Content-Length = 677 [20:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:06]execute_script... [20:18: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)594241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:06]POST & json_proto [20:18:06]process_json_proto [20:18:06]json parsed OK: [20:18:06]protocol is kg_v1.0 [20:18:06]action value=close_receipt [20:18:06]process_action close_receipt [20:18:06]cmd_close_receipt [20:18:06]MH_GetDate [20:18:06]Write to MH i2c: F0 00 00 D7 1F E5 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 09 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: F0 09 00 D7 1F 00 7F 4B C6 66 5F 7F 2B 66 53 [20:18:06]GetLastDocTimeStamp 1724270967 [20:18:06]current date 1724271487 [20:18:06]FM_GetShiftState [20:18:06]SAM_PROTO_GetShiftState [20:18:06]wFMCommunicate request_size=4 [20:18:06]MH_SAM_APDU [20:18:06]CAPDU: 80 13 01 00 [20:18:06]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F4 [20:18:06]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:06]wFMCommunicate OK [20:18:06]SAM_PROTO_GetShiftState done [20:18:06]FM_GetShiftState done [20:18:06]opened in 1724200467 [20:18:06]opened+sec_in_day 1724286867 [20:18:06]quantity*price = 40002 [20:18:06]sum+1 = 40003 [20:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 398 21.08.2024 20:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140381 ФПД: 198846870400026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201807&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140381&fm=198846870400026&tin=02508201610067®Number=0000000000092569&sum=40000 [20:18:07]StoreToDocumentArchive [20:18:07]shift 454 fd 140381 [20:18:07]save to /storage/0454/doc_00140381 [20:18:07]save last doc name /storage/0454/doc_00140381 to /storage/kkm_last_doc_name [20:18:07]save OK [20:18:07]Clear old archive folders... [20:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:07]tlvbuf is B6FF9390 [20:18:07]SAM_PROTO_ClearQueue [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 09 00 00 [20:18:07]Write to MH i2c: E2 08 00 E5 1F 80 09 00 00 00 00 00 00 76 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]SAM_PROTO_ClearQueue done [20:18:07]KKMCreateOFDPacket [20:18:07]OFDProtocolAddRootSTLVToBuf [20:18:07]FM_MakeSignedData [20:18:07]FM_MakeSignedData [20:18:07]SAM_PROTO_SignData [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 01 02 [20:18:07]Write to MH i2c: E2 08 00 E6 1F 80 0D 01 02 00 00 00 00 7E [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=255 [20:18:07]MH_SAM_APDU [20:18: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7F 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 24 02 00 35 04 06 00 B4 [20:18:07]Write to MH i2c: E2 02 01 E7 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7F 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 24 02 00 35 04 06 00 B4 00 00 6F [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=10 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 02 02 05 D9 A5 13 2C 1A [20:18:07]Write to MH i2c: E2 0D 00 E8 1F 80 0D 02 02 05 00 D9 A5 13 2C 1A 00 00 62 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 03 02 [20:18:07]Write to MH i2c: E2 08 00 E9 1F 80 0D 03 02 00 00 00 00 83 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 E9 1F 00 A5 01 57 BD F6 DE E8 24 90 00 1E [20:18:07]RAPDU: A5 01 57 BD F6 DE E8 24 90 00 [20:18:07]wFMCommunicate OK [20:18:07]SAM_PROTO_SignData done [20:18:07]FM_MakeSignedData done [20:18:07]CreateOFDProtocolMessage [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 11 00 00 [20:18:07]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 EA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [20:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:07]wFMCommunicate OK [20:18:07]CreateOFDProtocolMessage done [20:18:07]OFDSenderStorePacket 140381 [20:18:07]StoreOFDPacket docnum=140381 [20:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C9 C1 07 01 2A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7F 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 24 02 00 35 04 06 00 B4 D9 A5 13 2C 1A A5 01 57 BD F6 DE E8 24 [20:18:07]CheckFolder [20:18:07]dirname=/storage/ofd_packets [20:18:07]CheckFolder done [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00140381 [20:18:07]NVStorageSaveData ofd_packets/00140381 [20:18:07]File name is /storage/ofd_packets/00140381 [20:18:07]Write 301 bytes [20:18:07]NVStorageSaveData done [20:18:07]OFDSenderStorePacket done [20:18:07]KKMCreateOFDPacket done [20:18:07]NVStorageSaveData kkm_last_timestamp [20:18:07]File name is /storage/kkm_last_timestamp [20:18:07]Write 4 bytes [20:18:07]NVStorageSaveData done [20:18:07]ExternCall_PrintAddStr [20:18:07]wPrintStart [20:18:07]Write to MH i2c: 01 00 00 EB 1F 0A [20:18:07]OFD Sender: Processing packet 140381 [packets to send 137, broken 136] [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00140381 [20:18:07]OFD Sender: To server: pG, [20:18:07]CommunicateWithHost lk.salyk.kg:30040 [20:18:07]ConnectInit lk.salyk.kg [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 FF 0F 1F [20:18:07]RasterBufferAndPrint [20:18:07]line Счет N : (1)594241 [20:18:07]line ИНН: 02508201610067 [20:18:07]line Контрольно-Кассовый Чек [20:18:07]line ПРОДАЖА [20:18:07]line ТРК (МРК, ГНК) : 32 [20:18:07]line Товар: 2710124130 [20:18:07]line Аи-92-К-5 [20:18:07]line 5.900 * 67.80 [20:18:07]line = 400.02 [20:18:07]line НДС 12% НСП 1% [20:18:07]line > о реализуемом товаре [20:18:07]line ОКРУГЛЕНИЕ: -0.02 [20:18:07]line ИТОГО: 400.00 [20:18:07]line Внесено: 400.00 [20:18:07]line СДАЧА: 0.00 [20:18:07]line НСП 1% : 3.54 [20:18:07]line НДС 12% : 42.48 [20:18:07]line Наличными: 400.00 [20:18:07]line Безнал.: 0.00 [20:18:07]line Место: АЗС № 136 "Партнер Нефть" [20:18:07]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:18:07]line СНО: Общий режим [20:18:07]line Чек 398 21.08.2024 20:18 [20:18:07]line Смена: 454 ФФД: 1.0 [20:18:07]line ЗНМ: 0300000067 [20:18:07]line РНМ: 0000000000092569 [20:18:07]line Версия ККМ: 001 [20:18:07]line ФМ: 0000000000871776 [20:18:07]line ФД: 140381 [20:18:07]line ФПД: 198846870400026 [20:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201807&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140381&fm=198846870400026&tin=02508201610067®Number=0000000000092569&sum=40000 [20:18:08]Connected sock=10 [20:18: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 37 36 0F 01 00 00 C9 C1 07 01 2A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 7F 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5D 24 02 00 35 04 06 00 B4 D9 A5 13 2C 1A A5 01 57 BD F6 DE E8 24 [20:18:08]written 0, free lines is 4095 [20:18: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 37 36 4F 00 00 00 A6 5B 47 00 78 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 37 36 10 04 04 00 5D 24 02 00 F4 03 04 00 0F F2 C5 66 B6 04 01 00 00 C8 61 9A A2 9A B5 12 A4 [20:18:08]CommunicateWithHost err = 0 [20:18:08]CheckOFDResponse [20:18:08]1017 (14) - 77093643461234 [20:18:08]1041 (16) - 0000000000871776 [20:18:08]1040 (4) - 140381 [20:18:08]1012 (4) - 21.08.2024 13:56 [20:18:08]1206 (1) - 0 [20:18:08]OFD Sender: Remove packet 140381 [20:18:08]ProducePacketName [20:18:08]name=ofd_packets/00140381 [20:18:08]NVStorageDeleteData [20:18:08]Write to MH i2c: 01 00 00 16 20 36 [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 07 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: 01 07 00 16 20 00 00 00 00 00 D5 0C 1E [20:18:08]RasterBufferAndPrint [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]line [20:18:08]written 0, free lines is 3293 [20:18:08]MH_Cut [20:18:08]Write to MH i2c: D1 01 00 1D 20 01 0F [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 01 00 [20:18:08]MH_I2C_Read... [20:18:08]Read from MH i2c: D1 01 00 1D 20 00 0E [20:18:08]Write to MH i2c: 01 00 00 1E 20 3E [20:18:08]Write i2c OK [20:18:08]MH_I2C_Read... [20:18:09]OFD Sender: No OFD packet to send [20:18:09]*** Cut start [20:18:09]*** Partial cut [20:18:09]*** CUTSNS_PIN = 1 [20:18:09]*** CUTSNS_PIN = 0 [20:18:09]*** Brake cut motor [20:18:10]Read from MH i2c: 01 [20:18:10]*** Stop cut motor [20:18:10]*** Cut end [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 07 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: 01 07 00 1E 20 00 00 00 00 00 FF 0F 53 [20:18:10]process_action close_receipt done [20:18:10]requested_data is exist [20:18:10]produce_requested_data [20:18:10]requested_item fm.sn is exist - process it [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 11 00 00 [20:18:10]Write to MH i2c: E2 08 00 1F 20 80 11 00 00 00 00 00 00 B9 [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 17 00 1F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [20:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:10]wFMCommunicate OK [20:18:10]requested_item fd.num is exist - process it [20:18:10]SAM_PROTO_GetFieldsCounters [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 00 00 [20:18:10]Write to MH i2c: E2 08 00 20 20 80 13 00 00 00 00 00 00 BC [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 62 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 62 00 20 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 24 02 00 0E 04 04 00 C6 01 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 DE [20:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5D 24 02 00 0E 04 04 00 C6 01 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 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetFieldsCounters done [20:18:10]requested_item shift.num is exist - process it [20:18:10]requested_item shift.opened is exist - process it [20:18:10]req_shift_opened [20:18:10]FM_GetShiftState [20:18:10]SAM_PROTO_GetShiftState [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 01 00 [20:18:10]Write to MH i2c: E2 08 00 21 20 80 13 01 00 00 00 00 00 BE [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 21 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3E [20:18:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetShiftState done [20:18:10]FM_GetShiftState done [20:18:10]req_shift_opened done [20:18:10]requested_item shift.open_date is exist - process it [20:18:10]req_shift_open_date [20:18:10]req_shift_open_date done [20:18:10]produce_requested_data done [20:18:10]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140381,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:18:10]process_action_free close_receipt [20:18:10]json_value_free [20:18:10]json_value_free done [20:18:10]process_json_proto returns [20:18:10]Send response to host [20:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140381,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:18:10]free response buf [20:18:10]execute_script done [20:18:10]execute_script returns [20:18:10]free content buf [20:18:10]Sock 9.Close socket [20:18:10]Sock 9.Thread stoped [20:18:10]accept exits with 7 [20:18:10]New connection [20:18:10]New thread 3067469156 created [20:18:10]Thread 3067612516 joined [20:18:10]Waiting for new connection... [20:18:10] Sock 7.Parse request [20:18:10]Sock 7.Check first char [20:18:10]Sock 7.First char is OK [20:18:10]request: POST /json_proto HTTP/1.0 [20:18:10]Method: POST [20:18:10]URL: /json_proto [20:18:10]Method is POST - this is cgi request [20:18:10]url: /json_proto [20:18:10]query_string will be loaded in cgi processing [20:18:10]execute_cgi json_proto POST (null) [20:18:10]execute_cgi path=json_proto method=POST [20:18:10]POST find Content-Length [20:18:10]Host: 172.17.45.67:8080 [20:18:10]Content-Length: 663 [20:18:10]Content-Type: application/json [20:18:10] [20:18:10]POST finish read [20:18:10]Found Content-Length = 663 [20:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:10]execute_script... [20: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)594240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:10]POST & json_proto [20:18:10]process_json_proto [20:18:10]json parsed OK: [20:18:10]protocol is kg_v1.0 [20:18:10]action value=close_receipt [20:18:10]process_action close_receipt [20:18:10]cmd_close_receipt [20:18:10]MH_GetDate [20:18:10]Write to MH i2c: F0 00 00 22 20 31 [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 09 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: F0 09 00 22 20 00 83 4B C6 66 5F 7F 2B 66 A3 [20:18:10]GetLastDocTimeStamp 1724271487 [20:18:10]current date 1724271491 [20:18:10]FM_GetShiftState [20:18:10]SAM_PROTO_GetShiftState [20:18:10]wFMCommunicate request_size=4 [20:18:10]MH_SAM_APDU [20:18:10]CAPDU: 80 13 01 00 [20:18:10]Write to MH i2c: E2 08 00 23 20 80 13 01 00 00 00 00 00 C0 [20:18:10]Write i2c OK [20:18:10]MH_I2C_Read... [20:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:10]Read from MH i2c: E2 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 [20:18:10]MH_I2C_Read... [20:18:10]Read from MH i2c: E2 0E 00 23 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 40 [20:18:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:10]wFMCommunicate OK [20:18:10]SAM_PROTO_GetShiftState done [20:18:10]FM_GetShiftState done [20:18:10]opened in 1724200467 [20:18:10]opened+sec_in_day 1724286867 [20:18:10]quantity*price = 100035 [20:18:10]sum+1 = 100036 [20:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 399 21.08.2024 20:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140382 ФПД: 113948493816214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140382&fm=113948493816214&tin=02508201610067®Number=0000000000092569&sum=100000 [20:18:12]StoreToDocumentArchive [20:18:12]shift 454 fd 140382 [20:18:12]save to /storage/0454/doc_00140382 [20:18:12]save last doc name /storage/0454/doc_00140382 to /storage/kkm_last_doc_name [20:18:12]save OK [20:18:12]Clear old archive folders... [20:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:18:12]tlvbuf is 00C441A0 [20:18:12]SAM_PROTO_ClearQueue [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 09 00 00 [20:18:12]Write to MH i2c: E2 08 00 30 20 80 09 00 00 00 00 00 00 C2 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_ClearQueue done [20:18:12]KKMCreateOFDPacket [20:18:12]OFDProtocolAddRootSTLVToBuf [20:18:12]FM_MakeSignedData [20:18:12]FM_MakeSignedData [20:18:12]SAM_PROTO_SignData [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 01 02 [20:18:12]Write to MH i2c: E2 08 00 31 20 80 0D 01 02 00 00 00 00 CA [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]wFMCommunicate request_size=253 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 83 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 24 02 00 35 04 06 00 67 A2 B3 7F 21 96 [20:18:12]Write to MH i2c: E2 00 01 32 20 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 83 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 24 02 00 35 04 06 00 67 A2 B3 7F 21 96 00 00 09 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [20:18:12]RAPDU: 90 00 [20:18:12]wFMCommunicate OK [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 0D 03 02 [20:18:12]Write to MH i2c: E2 08 00 33 20 80 0D 03 02 00 00 00 00 CE [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0B 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0B 00 33 20 00 13 CA 4F F4 EB 7D 59 9C 90 00 4C [20:18:12]RAPDU: 13 CA 4F F4 EB 7D 59 9C 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_SignData done [20:18:12]FM_MakeSignedData done [20:18:12]CreateOFDProtocolMessage [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 11 00 00 [20:18:12]Write to MH i2c: E2 08 00 34 20 80 11 00 00 00 00 00 00 CE [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 17 00 34 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 25 [20:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:12]wFMCommunicate OK [20:18:12]CreateOFDProtocolMessage done [20:18:12]OFDSenderStorePacket 140382 [20:18:12]StoreOFDPacket docnum=140382 [20:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 B7 B7 00 01 40 E5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 83 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 24 02 00 35 04 06 00 67 A2 B3 7F 21 96 13 CA 4F F4 EB 7D 59 9C [20:18:12]CheckFolder [20:18:12]dirname=/storage/ofd_packets [20:18:12]CheckFolder done [20:18:12]ProducePacketName [20:18:12]name=ofd_packets/00140382 [20:18:12]NVStorageSaveData ofd_packets/00140382 [20:18:12]File name is /storage/ofd_packets/00140382 [20:18:12]Write 294 bytes [20:18:12]NVStorageSaveData done [20:18:12]OFDSenderStorePacket done [20:18:12]KKMCreateOFDPacket done [20:18:12]NVStorageSaveData kkm_last_timestamp [20:18:12]File name is /storage/kkm_last_timestamp [20:18:12]Write 4 bytes [20:18:12]NVStorageSaveData done [20:18:12]ExternCall_PrintAddStr [20:18:12]wPrintStart [20:18:12]Write to MH i2c: 01 00 00 35 20 55 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: 01 07 00 35 20 00 00 00 00 00 FF 0F 6A [20:18:12]RasterBufferAndPrint [20:18:12]line Счет N : (1)594240 [20:18:12]line ИНН: 02508201610067 [20:18:12]line Контрольно-Кассовый Чек [20:18:12]line ПРОДАЖА [20:18:12]line ТРК (МРК, ГНК) : 53 [20:18:12]line Товар: 2710124130 [20:18:12]line SU-92 [20:18:12]line 14.540 * 68.80 [20:18:12]line = 1000.35 [20:18:12]line НДС 12% НСП 1% [20:18:12]line > о реализуемом товаре [20:18:12]line ОКРУГЛЕНИЕ: -0.35 [20:18:12]line ИТОГО: 1000.00 [20:18:12]line Внесено: 1000.00 [20:18:12]line СДАЧА: 0.00 [20:18:12]line НСП 1% : 8.85 [20:18:12]line НДС 12% : 106.23 [20:18:12]line Наличными: 1000.00 [20:18:12]line Безнал.: 0.00 [20:18:12]line Место: АЗС № 136 "Партнер Нефть" [20:18:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:18:12]line СНО: Общий режим [20:18:12]line Чек 399 21.08.2024 20:18 [20:18:12]line Смена: 454 ФФД: 1.0 [20:18:12]line ЗНМ: 0300000067 [20:18:12]line РНМ: 0000000000092569 [20:18:12]line Версия ККМ: 001 [20:18:12]line ФМ: 0000000000871776 [20:18:12]line ФД: 140382 [20:18:12]line ФПД: 113948493816214 [20:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201811&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140382&fm=113948493816214&tin=02508201610067®Number=0000000000092569&sum=100000 [20:18:12]OFD Sender: Processing packet 140382 [packets to send 137, broken 136] [20:18:12]ProducePacketName [20:18:12]name=ofd_packets/00140382 [20:18:12]OFD Sender: To server: pG, [20:18:12]CommunicateWithHost lk.salyk.kg:30040 [20:18:12]ConnectInit lk.salyk.kg [20:18:12]written 0, free lines is 4095 [20:18:13]Connected sock=10 [20:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 B7 B7 00 01 40 E5 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 83 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5E 24 02 00 35 04 06 00 67 A2 B3 7F 21 96 13 CA 4F F4 EB 7D 59 9C [20:18:13]Write to MH i2c: 01 00 00 60 20 80 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 60 20 00 00 00 00 00 E3 0C 76 [20:18:13]RasterBufferAndPrint [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]line [20:18:13]written 0, free lines is 3311 [20:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F7 FF 47 00 99 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 37 36 10 04 04 00 5E 24 02 00 F4 03 04 00 13 F2 C5 66 B6 04 01 00 00 46 D2 0C 41 2E FC C9 35 [20:18:13]CommunicateWithHost err = 0 [20:18:13]CheckOFDResponse [20:18:13]1017 (14) - 77093643461234 [20:18:13]1041 (16) - 0000000000871776 [20:18:13]1040 (4) - 140382 [20:18:13]1012 (4) - 21.08.2024 13:56 [20:18:13]1206 (1) - 0 [20:18:13]OFD Sender: Remove packet 140382 [20:18:13]ProducePacketName [20:18:13]name=ofd_packets/00140382 [20:18:13]NVStorageDeleteData [20:18:13]MH_Cut [20:18:13]Write to MH i2c: D1 01 00 67 20 01 59 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 01 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: D1 01 00 67 20 00 58 [20:18:13]Write to MH i2c: 01 00 00 68 20 88 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]OFD Sender: No OFD packet to send [20:18:14]*** Cut start [20:18:14]*** Partial cut [20:18:14]*** CUTSNS_PIN = 1 [20:18:14]*** CUTSNS_PIN = 0 [20:18:14]*** Brake cut motor [20:18:14]Read from MH i2c: 01 [20:18:14]MH_I2C_Read... [20:18:14]*** Stop cut motor [20:18:14]Read from MH i2c: 01 07 00 [20:18:14]MH_I2C_Read... [20:18:14]*** Cut end [20:18:14]Read from MH i2c: 01 07 00 68 20 00 00 00 00 00 FF 0F 9D [20:18:14]process_action close_receipt done [20:18:14]requested_data is exist [20:18:14]produce_requested_data [20:18:14]requested_item fm.sn is exist - process it [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 11 00 00 [20:18:14]Write to MH i2c: E2 08 00 69 20 80 11 00 00 00 00 00 00 03 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 17 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 17 00 69 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5A [20:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:14]wFMCommunicate OK [20:18:14]requested_item fd.num is exist - process it [20:18:14]SAM_PROTO_GetFieldsCounters [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 13 00 00 [20:18:14]Write to MH i2c: E2 08 00 6A 20 80 13 00 00 00 00 00 00 06 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 62 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 62 00 6A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 24 02 00 0E 04 04 00 C6 01 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 2C [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5E 24 02 00 0E 04 04 00 C6 01 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 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_GetFieldsCounters done [20:18:14]requested_item shift.num is exist - process it [20:18:14]requested_item shift.opened is exist - process it [20:18:14]req_shift_opened [20:18:14]FM_GetShiftState [20:18:14]SAM_PROTO_GetShiftState [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 13 01 00 [20:18:14]Write to MH i2c: E2 08 00 6B 20 80 13 01 00 00 00 00 00 08 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 6B 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 88 [20:18:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_GetShiftState done [20:18:14]FM_GetShiftState done [20:18:14]req_shift_opened done [20:18:14]requested_item shift.open_date is exist - process it [20:18:14]req_shift_open_date [20:18:14]req_shift_open_date done [20:18:14]produce_requested_data done [20:18:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140382,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:18:14]process_action_free close_receipt [20:18:14]json_value_free [20:18:14]json_value_free done [20:18:14]process_json_proto returns [20:18:15]Send response to host [20:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140382,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:18:15]free response buf [20:18:15]execute_script done [20:18:15]execute_script returns [20:18:15]free content buf [20:18:15]Sock 7.Close socket [20:18:15]Sock 7.Thread stoped [20:18:15]accept exits with 9 [20:18:15]New connection [20:18:15]New thread 3067612516 created [20:18:15]Thread 3067469156 joined [20:18:15]Waiting for new connection... [20:18:15] Sock 9.Parse request [20:18:15]Sock 9.Check first char [20:18:15]Sock 9.First char is OK [20:18:15]request: POST /json_proto HTTP/1.0 [20:18:15]Method: POST [20:18:15]URL: /json_proto [20:18:15]Method is POST - this is cgi request [20:18:15]url: /json_proto [20:18:15]query_string will be loaded in cgi processing [20:18:15]execute_cgi json_proto POST (null) [20:18:15]execute_cgi path=json_proto method=POST [20:18:15]POST find Content-Length [20:18:15]Host: 172.17.45.67:8080 [20:18:15]Content-Length: 687 [20:18:15]Content-Type: application/json [20:18:15] [20:18:15]POST finish read [20:18:15]Found Content-Length = 687 [20:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:18:15]execute_script... [20:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:18:15]POST & json_proto [20:18:15]process_json_proto [20:18:15]json parsed OK: [20:18:15]protocol is kg_v1.0 [20:18:15]action value=close_receipt [20:18:15]process_action close_receipt [20:18:15]cmd_close_receipt [20:18:15]MH_GetDate [20:18:15]Write to MH i2c: F0 00 00 6C 20 7B [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: F0 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: F0 09 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: F0 09 00 6C 20 00 88 4B C6 66 5F 7F 2B 66 F2 [20:18:15]GetLastDocTimeStamp 1724271491 [20:18:15]current date 1724271496 [20:18:15]FM_GetShiftState [20:18:15]SAM_PROTO_GetShiftState [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 13 01 00 [20:18:15]Write to MH i2c: E2 08 00 6D 20 80 13 01 00 00 00 00 00 0A [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 6D 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8A [20:18:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_GetShiftState done [20:18:15]FM_GetShiftState done [20:18:15]opened in 1724200467 [20:18:15]opened+sec_in_day 1724286867 [20:18:15]quantity*price = 300075 [20:18:15]sum+1 = 300077 [20:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 400 21.08.2024 20:18 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140383 ФПД: 230169714114254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201816&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140383&fm=230169714114254&tin=02508201610067®Number=0000000000092569&sum=300000 [20:18:16]StoreToDocumentArchive [20:18:16]shift 454 fd 140383 [20:18:16]save to /storage/0454/doc_00140383 [20:18:16]save last doc name /storage/0454/doc_00140383 to /storage/kkm_last_doc_name [20:18:16]save OK [20:18:16]Clear old archive folders... [20:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:18:16]tlvbuf is 00D0FA70 [20:18:16]SAM_PROTO_ClearQueue [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 09 00 00 [20:18:16]Write to MH i2c: E2 08 00 7A 20 80 09 00 00 00 00 00 00 0C [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 7A 20 00 90 00 0E [20:18:16]RAPDU: 90 00 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_ClearQueue done [20:18:16]KKMCreateOFDPacket [20:18:16]OFDProtocolAddRootSTLVToBuf [20:18:16]FM_MakeSignedData [20:18:16]FM_MakeSignedData [20:18:16]SAM_PROTO_SignData [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 0D 01 02 [20:18:16]Write to MH i2c: E2 08 00 7B 20 80 0D 01 02 00 00 00 00 14 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [20:18:16]RAPDU: 90 00 [20:18:16]wFMCommunicate OK [20:18:16]wFMCommunicate request_size=255 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 90 01 00 00 F4 03 04 00 88 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 24 02 00 35 04 06 00 [20:18:16]Write to MH i2c: E2 02 01 7C 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 90 01 00 00 F4 03 04 00 88 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 24 02 00 35 04 06 00 00 00 9E [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [20:18:16]RAPDU: 90 00 [20:18:16]wFMCommunicate OK [20:18:16]wFMCommunicate request_size=11 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 0D 02 02 06 D1 56 90 0C 3E CE [20:18:16]Write to MH i2c: E2 0E 00 7D 20 80 0D 02 02 06 00 D1 56 90 0C 3E CE 00 00 F2 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:17]Read from MH i2c: E2 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [20:18:17]RAPDU: 90 00 [20:18:17]wFMCommunicate OK [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 0D 03 02 [20:18:17]Write to MH i2c: E2 08 00 7E 20 80 0D 03 02 00 00 00 00 19 [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:17]Read from MH i2c: E2 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 0B 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 0B 00 7E 20 00 EF 46 04 DA BA E1 CC 90 90 00 24 [20:18:17]RAPDU: EF 46 04 DA BA E1 CC 90 90 00 [20:18:17]wFMCommunicate OK [20:18:17]SAM_PROTO_SignData done [20:18:17]FM_MakeSignedData done [20:18:17]CreateOFDProtocolMessage [20:18:17]wFMCommunicate request_size=4 [20:18:17]MH_SAM_APDU [20:18:17]CAPDU: 80 11 00 00 [20:18:17]Write to MH i2c: E2 08 00 7F 20 80 11 00 00 00 00 00 00 19 [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:17]Read from MH i2c: E2 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 17 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: E2 17 00 7F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 70 [20:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:17]wFMCommunicate OK [20:18:17]CreateOFDProtocolMessage done [20:18:17]OFDSenderStorePacket 140383 [20:18:17]StoreOFDPacket docnum=140383 [20:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4E 53 08 01 37 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 90 01 00 00 F4 03 04 00 88 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 24 02 00 35 04 06 00 D1 56 90 0C 3E CE EF 46 04 DA BA E1 CC 90 [20:18:17]CheckFolder [20:18:17]dirname=/storage/ofd_packets [20:18:17]CheckFolder done [20:18:17]ProducePacketName [20:18:17]name=ofd_packets/00140383 [20:18:17]NVStorageSaveData ofd_packets/00140383 [20:18:17]File name is /storage/ofd_packets/00140383 [20:18:17]Write 302 bytes [20:18:17]NVStorageSaveData done [20:18:17]OFDSenderStorePacket done [20:18:17]KKMCreateOFDPacket done [20:18:17]NVStorageSaveData kkm_last_timestamp [20:18:17]File name is /storage/kkm_last_timestamp [20:18:17]Write 4 bytes [20:18:17]NVStorageSaveData done [20:18:17]ExternCall_PrintAddStr [20:18:17]wPrintStart [20:18:17]Write to MH i2c: 01 00 00 80 20 A0 [20:18:17]Write i2c OK [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: 01 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: 01 07 00 [20:18:17]MH_I2C_Read... [20:18:17]Read from MH i2c: 01 07 00 80 20 00 00 00 00 00 FF 0F B5 [20:18:17]RasterBufferAndPrint [20:18:17]line Счет N : (1)594239 [20:18:17]line ИНН: 02508201610067 [20:18:17]line Контрольно-Кассовый Чек [20:18:17]line ПРОДАЖА [20:18:17]line ТРК (МРК, ГНК) : 64 [20:18:17]line Товар: 2710194210 [20:18:17]line ДТ(л)-К-5 [20:18:17]line 39.380 * 76.20 [20:18:17]line = 3000.76 [20:18:17]line НДС 12% НСП 1% [20:18:17]line > о реализуемом товаре [20:18:17]line ОКРУГЛЕНИЕ: -0.76 [20:18:17]line ИТОГО: 3000.00 [20:18:17]line Внесено: 3000.00 [20:18:17]line СДАЧА: 0.00 [20:18:17]line НСП 1% : 26.55 [20:18:17]line НДС 12% : 318.66 [20:18:17]line Наличными: 3000.00 [20:18:17]line Безнал.: 0.00 [20:18:17]line Место: АЗС № 136 "Партнер Нефть" [20:18:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:18:17]line СНО: Общий режим [20:18:17]line Чек 400 21.08.2024 20:18 [20:18:17]line Смена: 454 ФФД: 1.0 [20:18:17]line ЗНМ: 0300000067 [20:18:17]line РНМ: 0000000000092569 [20:18:17]line Версия ККМ: 001 [20:18:17]line ФМ: 0000000000871776 [20:18:17]line ФД: 140383 [20:18:17]line ФПД: 230169714114254 [20:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T201816&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140383&fm=230169714114254&tin=02508201610067®Number=0000000000092569&sum=300000 [20:18:17]OFD Sender: Processing packet 140383 [packets to send 137, broken 136] [20:18:17]ProducePacketName [20:18:17]name=ofd_packets/00140383 [20:18:17]OFD Sender: To server: pG, [20:18:17]written 0, free lines is 4095 [20:18:17]CommunicateWithHost lk.salyk.kg:30040 [20:18:17]ConnectInit lk.salyk.kg [20:18:17]Connected sock=7 [20:18:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 4E 53 08 01 37 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 90 01 00 00 F4 03 04 00 88 4B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 5F 24 02 00 35 04 06 00 D1 56 90 0C 3E CE EF 46 04 DA BA E1 CC 90 [20:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 DF 9A 47 00 EA 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 37 36 10 04 04 00 5F 24 02 00 F4 03 04 00 18 F2 C5 66 B6 04 01 00 00 17 63 CB E9 22 DD 23 22 [20:18:18]CommunicateWithHost err = 0 [20:18:18]CheckOFDResponse [20:18:18]1017 (14) - 77093643461234 [20:18:18]1041 (16) - 0000000000871776 [20:18:18]1040 (4) - 140383 [20:18:18]1012 (4) - 21.08.2024 13:56 [20:18:18]1206 (1) - 0 [20:18:18]OFD Sender: Remove packet 140383 [20:18:18]ProducePacketName [20:18:18]name=ofd_packets/00140383 [20:18:18]NVStorageDeleteData [20:18:18]Write to MH i2c: 01 00 00 AB 20 CB [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 F2 0C D0 [20:18:18]RasterBufferAndPrint [20:18:18]line [20:18:18]line [20:18:18]line [20:18:18]line [20:18:18]line [20:18:18]written 0, free lines is 3337 [20:18:18]MH_Cut [20:18:18]Write to MH i2c: D1 01 00 B2 20 01 A4 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: D1 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: D1 01 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: D1 01 00 B2 20 00 A3 [20:18:18]Write to MH i2c: 01 00 00 B3 20 D3 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]OFD Sender: No OFD packet to send [20:18:18]*** Cut start [20:18:18]*** Partial cut [20:18:18]*** CUTSNS_PIN = 1 [20:18:19]*** CUTSNS_PIN = 0 [20:18:19]*** Brake cut motor [20:18:19]Read from MH i2c: 01 [20:18:19]MH_I2C_Read... [20:18:19]*** Stop cut motor [20:18:19]*** Cut end [20:18:19]Read from MH i2c: 01 07 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: 01 07 00 B3 20 00 00 00 00 00 FF 0F E8 [20:18:19]process_action close_receipt done [20:18:19]requested_data is exist [20:18:19]produce_requested_data [20:18:19]requested_item fm.sn is exist - process it [20:18:19]wFMCommunicate request_size=4 [20:18:19]MH_SAM_APDU [20:18:19]CAPDU: 80 11 00 00 [20:18:19]Write to MH i2c: E2 08 00 B4 20 80 11 00 00 00 00 00 00 4E [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:19]Read from MH i2c: E2 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 17 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 17 00 B4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A5 [20:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:18:19]wFMCommunicate OK [20:18:19]requested_item fd.num is exist - process it [20:18:19]SAM_PROTO_GetFieldsCounters [20:18:19]wFMCommunicate request_size=4 [20:18:19]MH_SAM_APDU [20:18:19]CAPDU: 80 13 00 00 [20:18:19]Write to MH i2c: E2 08 00 B5 20 80 13 00 00 00 00 00 00 51 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:19]Read from MH i2c: E2 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 62 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 62 00 B5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 24 02 00 0E 04 04 00 C6 01 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 7B [20:18:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 5F 24 02 00 0E 04 04 00 C6 01 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 [20:18:19]wFMCommunicate OK [20:18:19]SAM_PROTO_GetFieldsCounters done [20:18:19]requested_item shift.num is exist - process it [20:18:19]requested_item shift.opened is exist - process it [20:18:19]req_shift_opened [20:18:19]FM_GetShiftState [20:18:19]SAM_PROTO_GetShiftState [20:18:19]wFMCommunicate request_size=4 [20:18:19]MH_SAM_APDU [20:18:19]CAPDU: 80 13 01 00 [20:18:19]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [20:18:19]Write i2c OK [20:18:19]MH_I2C_Read... [20:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:19]Read from MH i2c: E2 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 0E 00 [20:18:19]MH_I2C_Read... [20:18:19]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D3 [20:18:19]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:18:19]wFMCommunicate OK [20:18:19]SAM_PROTO_GetShiftState done [20:18:19]FM_GetShiftState done [20:18:19]req_shift_opened done [20:18:19]requested_item shift.open_date is exist - process it [20:18:19]req_shift_open_date [20:18:19]req_shift_open_date done [20:18:19]produce_requested_data done [20:18:19]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140383,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:18:19]process_action_free close_receipt [20:18:19]json_value_free [20:18:19]json_value_free done [20:18:19]process_json_proto returns [20:18:19]Send response to host [20:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140383,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:18:19]free response buf [20:18:19]execute_script done [20:18:19]execute_script returns [20:18:19]free content buf [20:18:19]Sock 9.Close socket [20:18:19]Sock 9.Thread stoped [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21: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:49]accept exits with 10 [20:21:49]New connection [20:21:49]New thread 3067469156 created [20:21:49]Thread 3067612516 joined [20:21:49]Waiting for new connection... [20:21:49] Sock 10.Parse request [20:21:49]Sock 10.Check first char [20:21:49]Sock 10.First char is OK [20:21:49]request: POST /json_proto HTTP/1.0 [20:21:49]Method: POST [20:21:49]URL: /json_proto [20:21:49]Method is POST - this is cgi request [20:21:49]url: /json_proto [20:21:49]query_string will be loaded in cgi processing [20:21:49]execute_cgi json_proto POST (null) [20:21:49]execute_cgi path=json_proto method=POST [20:21:49]POST find Content-Length [20:21:49]Host: 172.17.45.67:8080 [20:21:49]Content-Length: 677 [20:21:49]Content-Type: application/json [20:21:49] [20:21:49]POST finish read [20:21:49]Found Content-Length = 677 [20:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [20:21:49]execute_script... [20:21: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)594242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.020, "sum" : 340.36, "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" ] } } [20:21:49]POST & json_proto [20:21:49]process_json_proto [20:21:49]json parsed OK: [20:21:49]protocol is kg_v1.0 [20:21:49]action value=close_receipt [20:21:49]process_action close_receipt [20:21:49]cmd_close_receipt [20:21:49]MH_GetDate [20:21:49]Write to MH i2c: F0 00 00 B7 20 C6 [20:21:49]Write i2c OK [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: F0 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: F0 09 00 [20:21:49]MH_I2C_Read... [20:21:49]Read from MH i2c: F0 09 00 B7 20 00 5E 4C C6 66 5F 7F 2B 66 14 [20:21:49]GetLastDocTimeStamp 1724271496 [20:21:49]current date 1724271710 [20:21:49]FM_GetShiftState [20:21:49]SAM_PROTO_GetShiftState [20:21:49]wFMCommunicate request_size=4 [20:21:49]MH_SAM_APDU [20:21:49]CAPDU: 80 13 01 00 [20:21:49]Write to MH i2c: E2 08 00 B8 20 80 13 01 00 00 00 00 00 55 [20:21:49]Write i2c OK [20:21:49]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0E 00 B8 20 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D5 [20:21:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_GetShiftState done [20:21:50]FM_GetShiftState done [20:21:50]opened in 1724200467 [20:21:50]opened+sec_in_day 1724286867 [20:21:50]quantity*price = 34035 [20:21:50]sum+1 = 34037 [20:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.14 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 401 21.08.2024 20:21 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140384 ФПД: 155824891814778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202150&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140384&fm=155824891814778&tin=02508201610067®Number=0000000000092569&sum=34000 [20:21:51]StoreToDocumentArchive [20:21:51]shift 454 fd 140384 [20:21:51]save to /storage/0454/doc_00140384 [20:21:51]save last doc name /storage/0454/doc_00140384 to /storage/kkm_last_doc_name [20:21:51]save OK [20:21:51]Clear old archive folders... [20:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:51]tlvbuf is B6F7BBB0 [20:21:51]SAM_PROTO_ClearQueue [20:21:51]wFMCommunicate request_size=4 [20:21:51]MH_SAM_APDU [20:21:51]CAPDU: 80 09 00 00 [20:21:51]Write to MH i2c: E2 08 00 C5 20 80 09 00 00 00 00 00 00 57 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [20:21:51]RAPDU: 90 00 [20:21:51]wFMCommunicate OK [20:21:51]SAM_PROTO_ClearQueue done [20:21:51]KKMCreateOFDPacket [20:21:51]OFDProtocolAddRootSTLVToBuf [20:21:51]FM_MakeSignedData [20:21:51]FM_MakeSignedData [20:21:51]SAM_PROTO_SignData [20:21:51]wFMCommunicate request_size=4 [20:21:51]MH_SAM_APDU [20:21:51]CAPDU: 80 0D 01 02 [20:21:51]Write to MH i2c: E2 08 00 C6 20 80 0D 01 02 00 00 00 00 5F [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [20:21:51]RAPDU: 90 00 [20:21:51]wFMCommunicate OK [20:21:51]wFMCommunicate request_size=255 [20:21:51]MH_SAM_APDU [20:21: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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 91 01 00 00 F4 03 04 00 5E 4C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 24 02 00 35 04 06 00 8D [20:21:51]Write to MH i2c: E2 02 01 C7 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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 91 01 00 00 F4 03 04 00 5E 4C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 24 02 00 35 04 06 00 8D 00 00 74 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [20:21:51]RAPDU: 90 00 [20:21:51]wFMCommunicate OK [20:21:51]wFMCommunicate request_size=10 [20:21:51]MH_SAM_APDU [20:21:51]CAPDU: 80 0D 02 02 05 B8 CF 52 E3 7A [20:21:51]Write to MH i2c: E2 0D 00 C8 20 80 0D 02 02 05 00 B8 CF 52 E3 7A 00 00 A2 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [20:21:51]RAPDU: 90 00 [20:21:51]wFMCommunicate OK [20:21:51]wFMCommunicate request_size=4 [20:21:51]MH_SAM_APDU [20:21:51]CAPDU: 80 0D 03 02 [20:21:51]Write to MH i2c: E2 08 00 C9 20 80 0D 03 02 00 00 00 00 64 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 0B 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 0B 00 C9 20 00 B7 95 67 D4 67 B5 22 DC 90 00 06 [20:21:51]RAPDU: B7 95 67 D4 67 B5 22 DC 90 00 [20:21:51]wFMCommunicate OK [20:21:51]SAM_PROTO_SignData done [20:21:51]FM_MakeSignedData done [20:21:51]CreateOFDProtocolMessage [20:21:51]wFMCommunicate request_size=4 [20:21:51]MH_SAM_APDU [20:21:51]CAPDU: 80 11 00 00 [20:21:51]Write to MH i2c: E2 08 00 CA 20 80 11 00 00 00 00 00 00 64 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:51]Read from MH i2c: E2 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 17 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: E2 17 00 CA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BB [20:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:21:51]wFMCommunicate OK [20:21:51]CreateOFDProtocolMessage done [20:21:51]OFDSenderStorePacket 140384 [20:21:51]StoreOFDPacket docnum=140384 [20:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 07 1D 07 01 7F 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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 91 01 00 00 F4 03 04 00 5E 4C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 24 02 00 35 04 06 00 8D B8 CF 52 E3 7A B7 95 67 D4 67 B5 22 DC [20:21:51]CheckFolder [20:21:51]dirname=/storage/ofd_packets [20:21:51]CheckFolder done [20:21:51]ProducePacketName [20:21:51]name=ofd_packets/00140384 [20:21:51]NVStorageSaveData ofd_packets/00140384 [20:21:51]File name is /storage/ofd_packets/00140384 [20:21:51]Write 301 bytes [20:21:51]NVStorageSaveData done [20:21:51]OFDSenderStorePacket done [20:21:51]KKMCreateOFDPacket done [20:21:51]NVStorageSaveData kkm_last_timestamp [20:21:51]File name is /storage/kkm_last_timestamp [20:21:51]Write 4 bytes [20:21:51]NVStorageSaveData done [20:21:51]ExternCall_PrintAddStr [20:21:51]wPrintStart [20:21:51]Write to MH i2c: 01 00 00 CB 20 EB [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 FF 0F 00 [20:21:51]RasterBufferAndPrint [20:21:51]line Счет N : (1)594242 [20:21:51]line ИНН: 02508201610067 [20:21:51]line Контрольно-Кассовый Чек [20:21:51]line ПРОДАЖА [20:21:51]line ТРК (МРК, ГНК) : 52 [20:21:51]line Товар: 2710124130 [20:21:51]line Аи-92-К-5 [20:21:51]line 5.020 * 67.80 [20:21:51]line = 340.36 [20:21:51]line НДС 12% НСП 1% [20:21:51]line > о реализуемом товаре [20:21:51]line ОКРУГЛЕНИЕ: -0.36 [20:21:51]line ИТОГО: 340.00 [20:21:51]line Внесено: 340.00 [20:21:51]line СДАЧА: 0.00 [20:21:51]line НСП 1% : 3.01 [20:21:51]line НДС 12% : 36.14 [20:21:51]line Наличными: 340.00 [20:21:51]line Безнал.: 0.00 [20:21:51]line Место: АЗС № 136 "Партнер Нефть" [20:21:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:21:51]line СНО: Общий режим [20:21:51]line Чек 401 21.08.2024 20:21 [20:21:51]line Смена: 454 ФФД: 1.0 [20:21:51]line ЗНМ: 0300000067 [20:21:51]line РНМ: 0000000000092569 [20:21:51]line Версия ККМ: 001 [20:21:51]line ФМ: 0000000000871776 [20:21:51]line ФД: 140384 [20:21:51]line ФПД: 155824891814778 [20:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202150&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140384&fm=155824891814778&tin=02508201610067®Number=0000000000092569&sum=34000 [20:21:52]written 0, free lines is 4095 [20:21:52]OFD Sender: Processing packet 140384 [packets to send 137, broken 136] [20:21:52]ProducePacketName [20:21:52]name=ofd_packets/00140384 [20:21:52]OFD Sender: To server: pG, [20:21:52]CommunicateWithHost lk.salyk.kg:30040 [20:21:52]ConnectInit lk.salyk.kg [20:21:52]Connected sock=7 [20:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 07 1D 07 01 7F 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 9C 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F4 84 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 1E 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 91 01 00 00 F4 03 04 00 5E 4C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 60 24 02 00 35 04 06 00 8D B8 CF 52 E3 7A B7 95 67 D4 67 B5 22 DC [20:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E0 0F 47 00 99 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 37 36 10 04 04 00 60 24 02 00 F4 03 04 00 EF F2 C5 66 B6 04 01 00 00 5E 5C D5 AC FD 1C 78 D6 [20:21:52]CommunicateWithHost err = 0 [20:21:52]CheckOFDResponse [20:21:52]1017 (14) - 77093643461234 [20:21:52]1041 (16) - 0000000000871776 [20:21:52]1040 (4) - 140384 [20:21:52]1012 (4) - 21.08.2024 14:00 [20:21:52]1206 (1) - 0 [20:21:52]OFD Sender: Remove packet 140384 [20:21:52]ProducePacketName [20:21:52]name=ofd_packets/00140384 [20:21:52]NVStorageDeleteData [20:21:52]Write to MH i2c: 01 00 00 F6 20 16 [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: 01 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: 01 07 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: 01 07 00 F6 20 00 00 00 00 00 CD 0C F6 [20:21:52]RasterBufferAndPrint [20:21:52]line [20:21:52]line [20:21:52]line [20:21:52]line [20:21:52]line [20:21:52]written 0, free lines is 3283 [20:21:52]MH_Cut [20:21:52]Write to MH i2c: D1 01 00 FD 20 01 EF [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: D1 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: D1 01 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: D1 01 00 FD 20 00 EE [20:21:52]Write to MH i2c: 01 00 00 FE 20 1E [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]OFD Sender: No OFD packet to send [20:21:53]*** Cut start [20:21:53]*** Partial cut [20:21:53]*** CUTSNS_PIN = 1 [20:21:53]*** CUTSNS_PIN = 0 [20:21:53]*** Brake cut motor [20:21:53]Read from MH i2c: 01 [20:21:53]MH_I2C_Read... [20:21:53]*** Stop cut motor [20:21:53]*** Cut end [20:21:53]Read from MH i2c: 01 07 00 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 FF 0F 33 [20:21:53]process_action close_receipt done [20:21:53]requested_data is exist [20:21:53]produce_requested_data [20:21:53]requested_item fm.sn is exist - process it [20:21:53]wFMCommunicate request_size=4 [20:21:53]MH_SAM_APDU [20:21:53]CAPDU: 80 11 00 00 [20:21:53]Write to MH i2c: E2 08 00 FF 20 80 11 00 00 00 00 00 00 99 [20:21:53]Write i2c OK [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: E2 [20:21:53]MH_I2C_Read... [20:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:53]Read from MH i2c: E2 17 00 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: E2 17 00 FF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F0 [20:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:21:53]wFMCommunicate OK [20:21:53]requested_item fd.num is exist - process it [20:21:53]SAM_PROTO_GetFieldsCounters [20:21:53]wFMCommunicate request_size=4 [20:21:53]MH_SAM_APDU [20:21:53]CAPDU: 80 13 00 00 [20:21:53]Write to MH i2c: E2 08 00 00 21 80 13 00 00 00 00 00 00 9D [20:21:53]Write i2c OK [20:21:53]MH_I2C_Read... [20:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:53]Read from MH i2c: E2 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: E2 62 00 [20:21:53]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 62 00 00 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 24 02 00 0E 04 04 00 C6 01 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 CB [20:21:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 60 24 02 00 0E 04 04 00 C6 01 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 [20:21:54]wFMCommunicate OK [20:21:54]SAM_PROTO_GetFieldsCounters done [20:21:54]requested_item shift.num is exist - process it [20:21:54]requested_item shift.opened is exist - process it [20:21:54]req_shift_opened [20:21:54]FM_GetShiftState [20:21:54]SAM_PROTO_GetShiftState [20:21:54]wFMCommunicate request_size=4 [20:21:54]MH_SAM_APDU [20:21:54]CAPDU: 80 13 01 00 [20:21:54]Write to MH i2c: E2 08 00 01 21 80 13 01 00 00 00 00 00 9F [20:21:54]Write i2c OK [20:21:54]MH_I2C_Read... [20:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:54]Read from MH i2c: E2 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 0E 00 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 0E 00 01 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1F [20:21:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:21:54]wFMCommunicate OK [20:21:54]SAM_PROTO_GetShiftState done [20:21:54]FM_GetShiftState done [20:21:54]req_shift_opened done [20:21:54]requested_item shift.open_date is exist - process it [20:21:54]req_shift_open_date [20:21:54]req_shift_open_date done [20:21:54]produce_requested_data done [20:21:54]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140384,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:21:54]process_action_free close_receipt [20:21:54]json_value_free [20:21:54]json_value_free done [20:21:54]process_json_proto returns [20:21:54]Send response to host [20:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140384,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:21:54]free response buf [20:21:54]execute_script done [20:21:54]execute_script returns [20:21:54]free content buf [20:21:54]Sock 10.Close socket [20:21:54]Sock 10.Thread stoped [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:33]accept exits with 9 [20:26:33]New connection [20:26:33]New thread 3067612516 created [20:26:33]Thread 3067469156 joined [20:26:33]Waiting for new connection... [20:26:33] Sock 9.Parse request [20:26:33]Sock 9.Check first char [20:26:33]Sock 9.First char is OK [20:26:33]request: POST /json_proto HTTP/1.0 [20:26:33]Method: POST [20:26:33]URL: /json_proto [20:26:33]Method is POST - this is cgi request [20:26:33]url: /json_proto [20:26:33]query_string will be loaded in cgi processing [20:26:33]execute_cgi json_proto POST (null) [20:26:33]execute_cgi path=json_proto method=POST [20:26:33]POST find Content-Length [20:26:33]Host: 172.17.45.67:8080 [20:26:33]Content-Length: 663 [20:26:33]Content-Type: application/json [20:26:33] [20:26:33]POST finish read [20:26:33]Found Content-Length = 663 [20:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:33]execute_script... [20:26: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)594243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:33]POST & json_proto [20:26:33]process_json_proto [20:26:33]json parsed OK: [20:26:33]protocol is kg_v1.0 [20:26:33]action value=close_receipt [20:26:33]process_action close_receipt [20:26:33]cmd_close_receipt [20:26:33]MH_GetDate [20:26:33]Write to MH i2c: F0 00 00 02 21 12 [20:26:33]Write i2c OK [20:26:33]MH_I2C_Read... [20:26:33]Read from MH i2c: F0 [20:26:33]MH_I2C_Read... [20:26:33]Read from MH i2c: F0 09 00 [20:26:33]MH_I2C_Read... [20:26:33]Read from MH i2c: F0 09 00 02 21 00 7A 4D C6 66 5F 7F 2B 66 7D [20:26:33]GetLastDocTimeStamp 1724271710 [20:26:33]current date 1724271994 [20:26:33]FM_GetShiftState [20:26:33]SAM_PROTO_GetShiftState [20:26:33]wFMCommunicate request_size=4 [20:26:33]MH_SAM_APDU [20:26:33]CAPDU: 80 13 01 00 [20:26:33]Write to MH i2c: E2 08 00 03 21 80 13 01 00 00 00 00 00 A1 [20:26:33]Write i2c OK [20:26:33]MH_I2C_Read... [20:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:33]Read from MH i2c: E2 [20:26:33]MH_I2C_Read... [20:26:33]Read from MH i2c: E2 0E 00 [20:26:33]MH_I2C_Read... [20:26:33]Read from MH i2c: E2 0E 00 03 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 21 [20:26:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:26:33]wFMCommunicate OK [20:26:33]SAM_PROTO_GetShiftState done [20:26:33]FM_GetShiftState done [20:26:33]opened in 1724200467 [20:26:33]opened+sec_in_day 1724286867 [20:26:33]quantity*price = 100035 [20:26:33]sum+1 = 100036 [20:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 402 21.08.2024 20:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140385 ФПД: 50305129515257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140385&fm=50305129515257&tin=02508201610067®Number=0000000000092569&sum=100000 [20:26:34]StoreToDocumentArchive [20:26:34]shift 454 fd 140385 [20:26:34]save to /storage/0454/doc_00140385 [20:26:34]save last doc name /storage/0454/doc_00140385 to /storage/kkm_last_doc_name [20:26:34]save OK [20:26:34]Clear old archive folders... [20:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:26:34]tlvbuf is 00CB3B50 [20:26:34]SAM_PROTO_ClearQueue [20:26:34]wFMCommunicate request_size=4 [20:26:34]MH_SAM_APDU [20:26:34]CAPDU: 80 09 00 00 [20:26:34]Write to MH i2c: E2 08 00 10 21 80 09 00 00 00 00 00 00 A3 [20:26:34]Write i2c OK [20:26:34]MH_I2C_Read... [20:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:34]Read from MH i2c: E2 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [20:26:34]RAPDU: 90 00 [20:26:34]wFMCommunicate OK [20:26:34]SAM_PROTO_ClearQueue done [20:26:34]KKMCreateOFDPacket [20:26:34]OFDProtocolAddRootSTLVToBuf [20:26:34]FM_MakeSignedData [20:26:34]FM_MakeSignedData [20:26:34]SAM_PROTO_SignData [20:26:34]wFMCommunicate request_size=4 [20:26:34]MH_SAM_APDU [20:26:34]CAPDU: 80 0D 01 02 [20:26:34]Write to MH i2c: E2 08 00 11 21 80 0D 01 02 00 00 00 00 AB [20:26:34]Write i2c OK [20:26:34]MH_I2C_Read... [20:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:34]Read from MH i2c: E2 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [20:26:34]RAPDU: 90 00 [20:26:34]wFMCommunicate OK [20:26:34]wFMCommunicate request_size=253 [20:26:34]MH_SAM_APDU [20:26:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 24 02 00 35 04 06 00 2D C0 93 60 08 F9 [20:26:34]Write to MH i2c: E2 00 01 12 21 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 24 02 00 35 04 06 00 2D C0 93 60 08 F9 00 00 D8 [20:26:34]Write i2c OK [20:26:34]MH_I2C_Read... [20:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:34]Read from MH i2c: E2 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 [20:26:34]MH_I2C_Read... [20:26:34]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [20:26:34]RAPDU: 90 00 [20:26:34]wFMCommunicate OK [20:26:34]wFMCommunicate request_size=4 [20:26:34]MH_SAM_APDU [20:26:34]CAPDU: 80 0D 03 02 [20:26:34]Write to MH i2c: E2 08 00 13 21 80 0D 03 02 00 00 00 00 AF [20:26:34]Write i2c OK [20:26:34]MH_I2C_Read... [20:26:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:35]Read from MH i2c: E2 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 0B 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 0B 00 13 21 00 A8 16 90 B9 7D A4 3C 75 90 00 89 [20:26:35]RAPDU: A8 16 90 B9 7D A4 3C 75 90 00 [20:26:35]wFMCommunicate OK [20:26:35]SAM_PROTO_SignData done [20:26:35]FM_MakeSignedData done [20:26:35]CreateOFDProtocolMessage [20:26:35]wFMCommunicate request_size=4 [20:26:35]MH_SAM_APDU [20:26:35]CAPDU: 80 11 00 00 [20:26:35]Write to MH i2c: E2 08 00 14 21 80 11 00 00 00 00 00 00 AF [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:35]Read from MH i2c: E2 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 17 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: E2 17 00 14 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [20:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:35]wFMCommunicate OK [20:26:35]CreateOFDProtocolMessage done [20:26:35]OFDSenderStorePacket 140385 [20:26:35]StoreOFDPacket docnum=140385 [20:26:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 C9 E2 00 01 9A F7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 24 02 00 35 04 06 00 2D C0 93 60 08 F9 A8 16 90 B9 7D A4 3C 75 [20:26:35]CheckFolder [20:26:35]dirname=/storage/ofd_packets [20:26:35]CheckFolder done [20:26:35]ProducePacketName [20:26:35]name=ofd_packets/00140385 [20:26:35]NVStorageSaveData ofd_packets/00140385 [20:26:35]File name is /storage/ofd_packets/00140385 [20:26:35]Write 294 bytes [20:26:35]NVStorageSaveData done [20:26:35]OFDSenderStorePacket done [20:26:35]KKMCreateOFDPacket done [20:26:35]NVStorageSaveData kkm_last_timestamp [20:26:35]File name is /storage/kkm_last_timestamp [20:26:35]Write 4 bytes [20:26:35]NVStorageSaveData done [20:26:35]ExternCall_PrintAddStr [20:26:35]wPrintStart [20:26:35]Write to MH i2c: 01 00 00 15 21 36 [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 07 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 07 00 15 21 00 00 00 00 00 FF 0F 4B [20:26:35]RasterBufferAndPrint [20:26:35]line Счет N : (1)594243 [20:26:35]line ИНН: 02508201610067 [20:26:35]line Контрольно-Кассовый Чек [20:26:35]line ПРОДАЖА [20:26:35]line ТРК (МРК, ГНК) : 63 [20:26:35]line Товар: 2710124130 [20:26:35]line SU-92 [20:26:35]line 14.540 * 68.80 [20:26:35]line = 1000.35 [20:26:35]line НДС 12% НСП 1% [20:26:35]line > о реализуемом товаре [20:26:35]line ОКРУГЛЕНИЕ: -0.35 [20:26:35]line ИТОГО: 1000.00 [20:26:35]line Внесено: 1000.00 [20:26:35]line СДАЧА: 0.00 [20:26:35]line НСП 1% : 8.85 [20:26:35]line НДС 12% : 106.23 [20:26:35]line Наличными: 1000.00 [20:26:35]line Безнал.: 0.00 [20:26:35]line Место: АЗС № 136 "Партнер Нефть" [20:26:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:26:35]line СНО: Общий режим [20:26:35]line Чек 402 21.08.2024 20:26 [20:26:35]line Смена: 454 ФФД: 1.0 [20:26:35]line ЗНМ: 0300000067 [20:26:35]line РНМ: 0000000000092569 [20:26:35]line Версия ККМ: 001 [20:26:35]line ФМ: 0000000000871776 [20:26:35]line ФД: 140385 [20:26:35]line ФПД: 50305129515257 [20:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202634&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140385&fm=50305129515257&tin=02508201610067®Number=0000000000092569&sum=100000 [20:26:35]OFD Sender: Processing packet 140385 [packets to send 137, broken 136] [20:26:35]ProducePacketName [20:26:35]name=ofd_packets/00140385 [20:26:35]OFD Sender: To server: pG, [20:26:35]CommunicateWithHost lk.salyk.kg:30040 [20:26:35]ConnectInit lk.salyk.kg [20:26:35]written 0, free lines is 4095 [20:26:35]Connected sock=10 [20:26: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 37 36 08 01 00 00 C9 E2 00 01 9A F7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 7A 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 24 02 00 35 04 06 00 2D C0 93 60 08 F9 A8 16 90 B9 7D A4 3C 75 [20:26: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 37 36 4F 00 00 00 44 25 47 00 0E F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 61 24 02 00 F4 03 04 00 0A F4 C5 66 B6 04 01 00 00 D2 D0 D8 F9 FD 9D A9 90 [20:26:35]CommunicateWithHost err = 0 [20:26:35]CheckOFDResponse [20:26:35]1017 (14) - 77093643461234 [20:26:35]1041 (16) - 0000000000871776 [20:26:35]1040 (4) - 140385 [20:26:35]1012 (4) - 21.08.2024 14:04 [20:26:35]1206 (1) - 0 [20:26:35]OFD Sender: Remove packet 140385 [20:26:35]ProducePacketName [20:26:35]name=ofd_packets/00140385 [20:26:35]NVStorageDeleteData [20:26:35]Write to MH i2c: 01 00 00 40 21 61 [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 07 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 CF 0C 43 [20:26:35]RasterBufferAndPrint [20:26:35]line [20:26:35]line [20:26:35]line [20:26:35]line [20:26:35]line [20:26:35]written 0, free lines is 3284 [20:26:35]MH_Cut [20:26:35]Write to MH i2c: D1 01 00 47 21 01 3A [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: D1 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: D1 01 00 [20:26:35]MH_I2C_Read... [20:26:35]Read from MH i2c: D1 01 00 47 21 00 39 [20:26:35]Write to MH i2c: 01 00 00 48 21 69 [20:26:35]Write i2c OK [20:26:35]MH_I2C_Read... [20:26:36]OFD Sender: No OFD packet to send [20:26:36]*** Cut start [20:26:36]*** Partial cut [20:26:36]*** CUTSNS_PIN = 1 [20:26:36]*** CUTSNS_PIN = 0 [20:26:36]*** Brake cut motor [20:26:37]Read from MH i2c: 01 [20:26:37]MH_I2C_Read... [20:26:37]*** Stop cut motor [20:26:37]*** Cut end [20:26:37]Read from MH i2c: 01 07 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: 01 07 00 48 21 00 00 00 00 00 FF 0F 7E [20:26:37]process_action close_receipt done [20:26:37]requested_data is exist [20:26:37]produce_requested_data [20:26:37]requested_item fm.sn is exist - process it [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 11 00 00 [20:26:37]Write to MH i2c: E2 08 00 49 21 80 11 00 00 00 00 00 00 E4 [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 17 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 17 00 49 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3B [20:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:26:37]wFMCommunicate OK [20:26:37]requested_item fd.num is exist - process it [20:26:37]SAM_PROTO_GetFieldsCounters [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 13 00 00 [20:26:37]Write to MH i2c: E2 08 00 4A 21 80 13 00 00 00 00 00 00 E7 [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 62 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 62 00 4A 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 24 02 00 0E 04 04 00 C6 01 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 19 [20:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 61 24 02 00 0E 04 04 00 C6 01 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 [20:26:37]wFMCommunicate OK [20:26:37]SAM_PROTO_GetFieldsCounters done [20:26:37]requested_item shift.num is exist - process it [20:26:37]requested_item shift.opened is exist - process it [20:26:37]req_shift_opened [20:26:37]FM_GetShiftState [20:26:37]SAM_PROTO_GetShiftState [20:26:37]wFMCommunicate request_size=4 [20:26:37]MH_SAM_APDU [20:26:37]CAPDU: 80 13 01 00 [20:26:37]Write to MH i2c: E2 08 00 4B 21 80 13 01 00 00 00 00 00 E9 [20:26:37]Write i2c OK [20:26:37]MH_I2C_Read... [20:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:37]Read from MH i2c: E2 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0E 00 [20:26:37]MH_I2C_Read... [20:26:37]Read from MH i2c: E2 0E 00 4B 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 69 [20:26:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:26:37]wFMCommunicate OK [20:26:37]SAM_PROTO_GetShiftState done [20:26:37]FM_GetShiftState done [20:26:37]req_shift_opened done [20:26:37]requested_item shift.open_date is exist - process it [20:26:37]req_shift_open_date [20:26:37]req_shift_open_date done [20:26:37]produce_requested_data done [20:26:37]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140385,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:26:37]process_action_free close_receipt [20:26:37]json_value_free [20:26:37]json_value_free done [20:26:37]process_json_proto returns [20:26:37]Send response to host [20:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140385,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:26:37]free response buf [20:26:37]execute_script done [20:26:37]execute_script returns [20:26:37]free content buf [20:26:37]Sock 9.Close socket [20:26:37]Sock 9.Thread stoped [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:04]accept exits with 7 [20:27:04]New connection [20:27:04]New thread 3067469156 created [20:27:04]Thread 3067612516 joined [20:27:04]Waiting for new connection... [20:27:04] Sock 7.Parse request [20:27:04]Sock 7.Check first char [20:27:04]Sock 7.First char is OK [20:27:04]request: POST /json_proto HTTP/1.0 [20:27:04]Method: POST [20:27:04]URL: /json_proto [20:27:04]Method is POST - this is cgi request [20:27:04]url: /json_proto [20:27:04]query_string will be loaded in cgi processing [20:27:04]execute_cgi json_proto POST (null) [20:27:04]execute_cgi path=json_proto method=POST [20:27:04]POST find Content-Length [20:27:04]Host: 172.17.45.67:8080 [20:27:04]Content-Length: 677 [20:27:04]Content-Type: application/json [20:27:04] [20:27:04]POST finish read [20:27:04]Found Content-Length = 677 [20:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:04]execute_script... [20:27: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)594244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:04]POST & json_proto [20:27:04]process_json_proto [20:27:04]json parsed OK: [20:27:04]protocol is kg_v1.0 [20:27:04]action value=close_receipt [20:27:04]process_action close_receipt [20:27:04]cmd_close_receipt [20:27:04]MH_GetDate [20:27:04]Write to MH i2c: F0 00 00 4C 21 5C [20:27:04]Write i2c OK [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: F0 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: F0 09 00 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: F0 09 00 4C 21 00 99 4D C6 66 5F 7F 2B 66 E6 [20:27:04]GetLastDocTimeStamp 1724271994 [20:27:04]current date 1724272025 [20:27:04]FM_GetShiftState [20:27:04]SAM_PROTO_GetShiftState [20:27:04]wFMCommunicate request_size=4 [20:27:04]MH_SAM_APDU [20:27:04]CAPDU: 80 13 01 00 [20:27:04]Write to MH i2c: E2 08 00 4D 21 80 13 01 00 00 00 00 00 EB [20:27:04]Write i2c OK [20:27:04]MH_I2C_Read... [20:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:04]Read from MH i2c: E2 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: E2 0E 00 [20:27:04]MH_I2C_Read... [20:27:04]Read from MH i2c: E2 0E 00 4D 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6B [20:27:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:27:04]wFMCommunicate OK [20:27:04]SAM_PROTO_GetShiftState done [20:27:04]FM_GetShiftState done [20:27:04]opened in 1724200467 [20:27:04]opened+sec_in_day 1724286867 [20:27:04]quantity*price = 50036 [20:27:04]sum+1 = 50037 [20:27:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 403 21.08.2024 20:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140386 ФПД: 160117437645049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140386&fm=160117437645049&tin=02508201610067®Number=0000000000092569&sum=50000 [20:27:05]StoreToDocumentArchive [20:27:05]shift 454 fd 140386 [20:27:05]save to /storage/0454/doc_00140386 [20:27:05]save last doc name /storage/0454/doc_00140386 to /storage/kkm_last_doc_name [20:27:05]save OK [20:27:05]Clear old archive folders... [20:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:05]tlvbuf is 00C32250 [20:27:05]SAM_PROTO_ClearQueue [20:27:05]wFMCommunicate request_size=4 [20:27:05]MH_SAM_APDU [20:27:05]CAPDU: 80 09 00 00 [20:27:05]Write to MH i2c: E2 08 00 5A 21 80 09 00 00 00 00 00 00 ED [20:27:05]Write i2c OK [20:27:05]MH_I2C_Read... [20:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:05]Read from MH i2c: E2 [20:27:05]MH_I2C_Read... [20:27:05]Read from MH i2c: E2 03 00 [20:27:05]MH_I2C_Read... [20:27:05]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [20:27:05]RAPDU: 90 00 [20:27:05]wFMCommunicate OK [20:27:05]SAM_PROTO_ClearQueue done [20:27:05]KKMCreateOFDPacket [20:27:05]OFDProtocolAddRootSTLVToBuf [20:27:05]FM_MakeSignedData [20:27:05]FM_MakeSignedData [20:27:05]SAM_PROTO_SignData [20:27:05]wFMCommunicate request_size=4 [20:27:05]MH_SAM_APDU [20:27:05]CAPDU: 80 0D 01 02 [20:27:05]Write to MH i2c: E2 08 00 5B 21 80 0D 01 02 00 00 00 00 F5 [20:27:05]Write i2c OK [20:27:05]MH_I2C_Read... [20:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [20:27:06]RAPDU: 90 00 [20:27:06]wFMCommunicate OK [20:27:06]wFMCommunicate request_size=255 [20:27:06]MH_SAM_APDU [20:27: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 24 02 00 35 04 06 00 91 [20:27:06]Write to MH i2c: E2 02 01 5C 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 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 24 02 00 35 04 06 00 91 00 00 04 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [20:27:06]RAPDU: 90 00 [20:27:06]wFMCommunicate OK [20:27:06]wFMCommunicate request_size=10 [20:27:06]MH_SAM_APDU [20:27:06]CAPDU: 80 0D 02 02 05 A0 3E FE 40 F9 [20:27:06]Write to MH i2c: E2 0D 00 5D 21 80 0D 02 02 05 00 A0 3E FE 40 F9 00 00 17 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [20:27:06]RAPDU: 90 00 [20:27:06]wFMCommunicate OK [20:27:06]wFMCommunicate request_size=4 [20:27:06]MH_SAM_APDU [20:27:06]CAPDU: 80 0D 03 02 [20:27:06]Write to MH i2c: E2 08 00 5E 21 80 0D 03 02 00 00 00 00 FA [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:06]OFD Sender: No OFD packet to send [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 0B 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 0B 00 5E 21 00 F2 03 80 15 A3 C9 D9 4F 90 00 19 [20:27:06]RAPDU: F2 03 80 15 A3 C9 D9 4F 90 00 [20:27:06]wFMCommunicate OK [20:27:06]SAM_PROTO_SignData done [20:27:06]FM_MakeSignedData done [20:27:06]CreateOFDProtocolMessage [20:27:06]wFMCommunicate request_size=4 [20:27:06]MH_SAM_APDU [20:27:06]CAPDU: 80 11 00 00 [20:27:06]Write to MH i2c: E2 08 00 5F 21 80 11 00 00 00 00 00 00 FA [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:06]Read from MH i2c: E2 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 17 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: E2 17 00 5F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [20:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:06]wFMCommunicate OK [20:27:06]CreateOFDProtocolMessage done [20:27:06]OFDSenderStorePacket 140386 [20:27:06]StoreOFDPacket docnum=140386 [20:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 30 C7 07 01 F8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 24 02 00 35 04 06 00 91 A0 3E FE 40 F9 F2 03 80 15 A3 C9 D9 4F [20:27:06]CheckFolder [20:27:06]dirname=/storage/ofd_packets [20:27:06]CheckFolder done [20:27:06]ProducePacketName [20:27:06]name=ofd_packets/00140386 [20:27:06]NVStorageSaveData ofd_packets/00140386 [20:27:06]File name is /storage/ofd_packets/00140386 [20:27:06]Write 301 bytes [20:27:06]NVStorageSaveData done [20:27:06]OFDSenderStorePacket done [20:27:06]KKMCreateOFDPacket done [20:27:06]NVStorageSaveData kkm_last_timestamp [20:27:06]File name is /storage/kkm_last_timestamp [20:27:06]Write 4 bytes [20:27:06]NVStorageSaveData done [20:27:06]ExternCall_PrintAddStr [20:27:06]wPrintStart [20:27:06]Write to MH i2c: 01 00 00 60 21 81 [20:27:06]Write i2c OK [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 [20:27:06]MH_I2C_Read... [20:27:06]Read from MH i2c: 01 07 00 60 21 00 00 00 00 00 FF 0F 96 [20:27:06]RasterBufferAndPrint [20:27:06]line Счет N : (1)594244 [20:27:06]line ИНН: 02508201610067 [20:27:06]line Контрольно-Кассовый Чек [20:27:06]line ПРОДАЖА [20:27:06]line ТРК (МРК, ГНК) : 52 [20:27:06]line Товар: 2710124130 [20:27:06]line Аи-92-К-5 [20:27:06]line 7.380 * 67.80 [20:27:06]line = 500.36 [20:27:06]line НДС 12% НСП 1% [20:27:06]line > о реализуемом товаре [20:27:06]line ОКРУГЛЕНИЕ: -0.36 [20:27:06]line ИТОГО: 500.00 [20:27:06]line Внесено: 500.00 [20:27:06]line СДАЧА: 0.00 [20:27:06]line НСП 1% : 4.43 [20:27:06]line НДС 12% : 53.14 [20:27:06]line Наличными: 500.00 [20:27:06]line Безнал.: 0.00 [20:27:06]line Место: АЗС № 136 "Партнер Нефть" [20:27:06]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:27:06]line СНО: Общий режим [20:27:06]line Чек 403 21.08.2024 20:27 [20:27:06]line Смена: 454 ФФД: 1.0 [20:27:06]line ЗНМ: 0300000067 [20:27:06]line РНМ: 0000000000092569 [20:27:06]line Версия ККМ: 001 [20:27:06]line ФМ: 0000000000871776 [20:27:06]line ФД: 140386 [20:27:06]line ФПД: 160117437645049 [20:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202705&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140386&fm=160117437645049&tin=02508201610067®Number=0000000000092569&sum=50000 [20:27:06]OFD Sender: Processing packet 140386 [packets to send 137, broken 136] [20:27:06]ProducePacketName [20:27:06]name=ofd_packets/00140386 [20:27:06]OFD Sender: To server: pG, [20:27:06]CommunicateWithHost lk.salyk.kg:30040 [20:27:06]ConnectInit lk.salyk.kg [20:27:06]written 0, free lines is 4095 [20:27:06]Connected sock=10 [20:27: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 37 36 0F 01 00 00 30 C7 07 01 F8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 99 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 24 02 00 35 04 06 00 91 A0 3E FE 40 F9 F2 03 80 15 A3 C9 D9 4F [20:27: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 37 36 4F 00 00 00 A3 A8 47 00 FA F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 62 24 02 00 F4 03 04 00 29 F4 C5 66 B6 04 01 00 00 A6 5F DE A9 B9 3C 25 47 [20:27:07]CommunicateWithHost err = 0 [20:27:07]CheckOFDResponse [20:27:07]1017 (14) - 77093643461234 [20:27:07]1041 (16) - 0000000000871776 [20:27:07]1040 (4) - 140386 [20:27:07]1012 (4) - 21.08.2024 14:05 [20:27:07]1206 (1) - 0 [20:27:07]OFD Sender: Remove packet 140386 [20:27:07]ProducePacketName [20:27:07]name=ofd_packets/00140386 [20:27:07]NVStorageDeleteData [20:27:07]Write to MH i2c: 01 00 00 8B 21 AC [20:27:07]Write i2c OK [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: 01 [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: 01 07 00 [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: 01 07 00 8B 21 00 00 00 00 00 D0 0C 8F [20:27:07]RasterBufferAndPrint [20:27:07]line [20:27:07]line [20:27:07]line [20:27:07]line [20:27:07]line [20:27:07]written 0, free lines is 3284 [20:27:07]MH_Cut [20:27:07]Write to MH i2c: D1 01 00 92 21 01 85 [20:27:07]Write i2c OK [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: D1 [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: D1 01 00 [20:27:07]MH_I2C_Read... [20:27:07]Read from MH i2c: D1 01 00 92 21 00 84 [20:27:07]Write to MH i2c: 01 00 00 93 21 B4 [20:27:07]Write i2c OK [20:27:07]MH_I2C_Read... [20:27:07]OFD Sender: No OFD packet to send [20:27:07]*** Cut start [20:27:07]*** Partial cut [20:27:07]*** CUTSNS_PIN = 1 [20:27:07]*** CUTSNS_PIN = 0 [20:27:08]*** Brake cut motor [20:27:08]Read from MH i2c: 01 [20:27:08]MH_I2C_Read... [20:27:08]*** Stop cut motor [20:27:08]*** Cut end [20:27:08]Read from MH i2c: 01 07 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: 01 07 00 93 21 00 00 00 00 00 FF 0F C9 [20:27:08]process_action close_receipt done [20:27:08]requested_data is exist [20:27:08]produce_requested_data [20:27:08]requested_item fm.sn is exist - process it [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 11 00 00 [20:27:08]Write to MH i2c: E2 08 00 94 21 80 11 00 00 00 00 00 00 2F [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 17 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 17 00 94 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 86 [20:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:08]wFMCommunicate OK [20:27:08]requested_item fd.num is exist - process it [20:27:08]SAM_PROTO_GetFieldsCounters [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 13 00 00 [20:27:08]Write to MH i2c: E2 08 00 95 21 80 13 00 00 00 00 00 00 32 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 62 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 62 00 95 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 24 02 00 0E 04 04 00 C6 01 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 68 [20:27: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 62 24 02 00 0E 04 04 00 C6 01 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 [20:27:08]wFMCommunicate OK [20:27:08]SAM_PROTO_GetFieldsCounters done [20:27:08]requested_item shift.num is exist - process it [20:27:08]requested_item shift.opened is exist - process it [20:27:08]req_shift_opened [20:27:08]FM_GetShiftState [20:27:08]SAM_PROTO_GetShiftState [20:27:08]wFMCommunicate request_size=4 [20:27:08]MH_SAM_APDU [20:27:08]CAPDU: 80 13 01 00 [20:27:08]Write to MH i2c: E2 08 00 96 21 80 13 01 00 00 00 00 00 34 [20:27:08]Write i2c OK [20:27:08]MH_I2C_Read... [20:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:08]Read from MH i2c: E2 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 0E 00 [20:27:08]MH_I2C_Read... [20:27:08]Read from MH i2c: E2 0E 00 96 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B4 [20:27:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:27:08]wFMCommunicate OK [20:27:08]SAM_PROTO_GetShiftState done [20:27:08]FM_GetShiftState done [20:27:08]req_shift_opened done [20:27:08]requested_item shift.open_date is exist - process it [20:27:08]req_shift_open_date [20:27:08]req_shift_open_date done [20:27:08]produce_requested_data done [20:27:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140386,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:27:08]process_action_free close_receipt [20:27:08]json_value_free [20:27:08]json_value_free done [20:27:08]process_json_proto returns [20:27:08]Send response to host [20:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140386,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:27:08]free response buf [20:27:08]execute_script done [20:27:08]execute_script returns [20:27:08]free content buf [20:27:08]Sock 7.Close socket [20:27:08]Sock 7.Thread stoped [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:21]accept exits with 9 [20:27:21]New connection [20:27:21]New thread 3067612516 created [20:27:21]Thread 3067469156 joined [20:27:21]Waiting for new connection... [20:27:21] Sock 9.Parse request [20:27:21]Sock 9.Check first char [20:27:21]Sock 9.First char is OK [20:27:21]request: POST /json_proto HTTP/1.0 [20:27:21]Method: POST [20:27:21]URL: /json_proto [20:27:21]Method is POST - this is cgi request [20:27:21]url: /json_proto [20:27:21]query_string will be loaded in cgi processing [20:27:21]execute_cgi json_proto POST (null) [20:27:21]execute_cgi path=json_proto method=POST [20:27:21]POST find Content-Length [20:27:21]Host: 172.17.45.67:8080 [20:27:21]Content-Length: 678 [20:27:21]Content-Type: application/json [20:27:21] [20:27:21]POST finish read [20:27:21]Found Content-Length = 678 [20:27:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:21]execute_script... [20:27: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)594245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:21]POST & json_proto [20:27:21]process_json_proto [20:27:21]json parsed OK: [20:27:21]protocol is kg_v1.0 [20:27:21]action value=close_receipt [20:27:21]process_action close_receipt [20:27:21]cmd_close_receipt [20:27:21]MH_GetDate [20:27:21]Write to MH i2c: F0 00 00 97 21 A7 [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: F0 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: F0 09 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: F0 09 00 97 21 00 AA 4D C6 66 5F 7F 2B 66 42 [20:27:21]GetLastDocTimeStamp 1724272025 [20:27:21]current date 1724272042 [20:27:21]FM_GetShiftState [20:27:21]SAM_PROTO_GetShiftState [20:27:21]wFMCommunicate request_size=4 [20:27:21]MH_SAM_APDU [20:27:21]CAPDU: 80 13 01 00 [20:27:21]Write to MH i2c: E2 08 00 98 21 80 13 01 00 00 00 00 00 36 [20:27:21]Write i2c OK [20:27:21]MH_I2C_Read... [20:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:21]Read from MH i2c: E2 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 0E 00 [20:27:21]MH_I2C_Read... [20:27:21]Read from MH i2c: E2 0E 00 98 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B6 [20:27:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:27:21]wFMCommunicate OK [20:27:21]SAM_PROTO_GetShiftState done [20:27:21]FM_GetShiftState done [20:27:21]opened in 1724200467 [20:27:21]opened+sec_in_day 1724286867 [20:27:21]quantity*price = 70037 [20:27:21]sum+1 = 70038 [20:27:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 404 21.08.2024 20:27 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140387 ФПД: 245710015987902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202722&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140387&fm=245710015987902&tin=02508201610067®Number=0000000000092569&sum=70000 [20:27:22]StoreToDocumentArchive [20:27:22]shift 454 fd 140387 [20:27:22]save to /storage/0454/doc_00140387 [20:27:22]save last doc name /storage/0454/doc_00140387 to /storage/kkm_last_doc_name [20:27:22]save OK [20:27:22]Clear old archive folders... [20:27:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:22]tlvbuf is 00C8A2B0 [20:27:22]SAM_PROTO_ClearQueue [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 09 00 00 [20:27:22]Write to MH i2c: E2 08 00 A5 21 80 09 00 00 00 00 00 00 38 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 A5 21 00 90 00 3A [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]SAM_PROTO_ClearQueue done [20:27:22]KKMCreateOFDPacket [20:27:22]OFDProtocolAddRootSTLVToBuf [20:27:22]FM_MakeSignedData [20:27:22]FM_MakeSignedData [20:27:22]SAM_PROTO_SignData [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 01 02 [20:27:22]Write to MH i2c: E2 08 00 A6 21 80 0D 01 02 00 00 00 00 40 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=255 [20:27:22]MH_SAM_APDU [20:27: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 AA 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 24 02 00 35 04 06 00 DF [20:27:22]Write to MH i2c: E2 02 01 A7 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 AA 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 24 02 00 35 04 06 00 DF 00 00 97 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]OFD Sender: No OFD packet to send [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=10 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 02 02 05 78 D2 38 80 BE [20:27:22]Write to MH i2c: E2 0D 00 A8 21 80 0D 02 02 05 00 78 D2 38 80 BE 00 00 0D [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [20:27:22]RAPDU: 90 00 [20:27:22]wFMCommunicate OK [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 0D 03 02 [20:27:22]Write to MH i2c: E2 08 00 A9 21 80 0D 03 02 00 00 00 00 45 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:22]Read from MH i2c: E2 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 [20:27:22]MH_I2C_Read... [20:27:22]Read from MH i2c: E2 0B 00 A9 21 00 C5 9A 43 AA 76 9A E2 F2 90 00 76 [20:27:22]RAPDU: C5 9A 43 AA 76 9A E2 F2 90 00 [20:27:22]wFMCommunicate OK [20:27:22]SAM_PROTO_SignData done [20:27:22]FM_MakeSignedData done [20:27:22]CreateOFDProtocolMessage [20:27:22]wFMCommunicate request_size=4 [20:27:22]MH_SAM_APDU [20:27:22]CAPDU: 80 11 00 00 [20:27:22]Write to MH i2c: E2 08 00 AA 21 80 11 00 00 00 00 00 00 45 [20:27:22]Write i2c OK [20:27:22]MH_I2C_Read... [20:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:23]Read from MH i2c: E2 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: E2 17 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: E2 17 00 AA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9C [20:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:23]wFMCommunicate OK [20:27:23]CreateOFDProtocolMessage done [20:27:23]OFDSenderStorePacket 140387 [20:27:23]StoreOFDPacket docnum=140387 [20:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BD 25 07 01 33 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 AA 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 24 02 00 35 04 06 00 DF 78 D2 38 80 BE C5 9A 43 AA 76 9A E2 F2 [20:27:23]CheckFolder [20:27:23]dirname=/storage/ofd_packets [20:27:23]CheckFolder done [20:27:23]ProducePacketName [20:27:23]name=ofd_packets/00140387 [20:27:23]NVStorageSaveData ofd_packets/00140387 [20:27:23]File name is /storage/ofd_packets/00140387 [20:27:23]Write 301 bytes [20:27:23]NVStorageSaveData done [20:27:23]OFDSenderStorePacket done [20:27:23]KKMCreateOFDPacket done [20:27:23]NVStorageSaveData kkm_last_timestamp [20:27:23]File name is /storage/kkm_last_timestamp [20:27:23]Write 4 bytes [20:27:23]NVStorageSaveData done [20:27:23]ExternCall_PrintAddStr [20:27:23]wPrintStart [20:27:23]Write to MH i2c: 01 00 00 AB 21 CC [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 AB 21 00 00 00 00 00 FF 0F E1 [20:27:23]RasterBufferAndPrint [20:27:23]line Счет N : (1)594245 [20:27:23]line ИНН: 02508201610067 [20:27:23]line Контрольно-Кассовый Чек [20:27:23]line ПРОДАЖА [20:27:23]line ТРК (МРК, ГНК) : 42 [20:27:23]line Товар: 2710124130 [20:27:23]line Аи-92-К-5 [20:27:23]line 10.330 * 67.80 [20:27:23]line = 700.37 [20:27:23]line НДС 12% НСП 1% [20:27:23]line > о реализуемом товаре [20:27:23]line ОКРУГЛЕНИЕ: -0.37 [20:27:23]line ИТОГО: 700.00 [20:27:23]line Внесено: 700.00 [20:27:23]line СДАЧА: 0.00 [20:27:23]line НСП 1% : 6.20 [20:27:23]line НДС 12% : 74.38 [20:27:23]line Наличными: 700.00 [20:27:23]line Безнал.: 0.00 [20:27:23]line Место: АЗС № 136 "Партнер Нефть" [20:27:23]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:27:23]line СНО: Общий режим [20:27:23]line Чек 404 21.08.2024 20:27 [20:27:23]line Смена: 454 ФФД: 1.0 [20:27:23]line ЗНМ: 0300000067 [20:27:23]line РНМ: 0000000000092569 [20:27:23]line Версия ККМ: 001 [20:27:23]line ФМ: 0000000000871776 [20:27:23]line ФД: 140387 [20:27:23]line ФПД: 245710015987902 [20:27:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T202722&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140387&fm=245710015987902&tin=02508201610067®Number=0000000000092569&sum=70000 [20:27:23]OFD Sender: Processing packet 140387 [packets to send 137, broken 136] [20:27:23]ProducePacketName [20:27:23]name=ofd_packets/00140387 [20:27:23]OFD Sender: To server: pG, [20:27:23]CommunicateWithHost lk.salyk.kg:30040 [20:27:23]ConnectInit lk.salyk.kg [20:27:23]written 0, free lines is 4095 [20:27:23]Connected sock=10 [20:27: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 37 36 0F 01 00 00 BD 25 07 01 33 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 AA 4D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 24 02 00 35 04 06 00 DF 78 D2 38 80 BE C5 9A 43 AA 76 9A E2 F2 [20:27: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 37 36 4F 00 00 00 4F 0C 47 00 D8 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 63 24 02 00 F4 03 04 00 3A F4 C5 66 B6 04 01 00 00 41 0D 0C 5A AA 2A E0 68 [20:27:23]CommunicateWithHost err = 0 [20:27:23]CheckOFDResponse [20:27:23]1017 (14) - 77093643461234 [20:27:23]1041 (16) - 0000000000871776 [20:27:23]1040 (4) - 140387 [20:27:23]1012 (4) - 21.08.2024 14:05 [20:27:23]1206 (1) - 0 [20:27:23]OFD Sender: Remove packet 140387 [20:27:23]ProducePacketName [20:27:23]name=ofd_packets/00140387 [20:27:23]NVStorageDeleteData [20:27:23]Write to MH i2c: 01 00 00 D6 21 F7 [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 DA 0C E4 [20:27:23]RasterBufferAndPrint [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]line [20:27:23]written 0, free lines is 3298 [20:27:23]MH_Cut [20:27:23]Write to MH i2c: D1 01 00 DD 21 01 D0 [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 [20:27:23]MH_I2C_Read... [20:27:23]Read from MH i2c: D1 01 00 DD 21 00 CF [20:27:23]Write to MH i2c: 01 00 00 DE 21 FF [20:27:23]Write i2c OK [20:27:23]MH_I2C_Read... [20:27:24]OFD Sender: No OFD packet to send [20:27:24]*** Cut start [20:27:24]*** Partial cut [20:27:24]*** CUTSNS_PIN = 1 [20:27:24]*** CUTSNS_PIN = 0 [20:27:24]*** Brake cut motor [20:27:25]Read from MH i2c: 01 [20:27:25]MH_I2C_Read... [20:27:25]*** Stop cut motor [20:27:25]*** Cut end [20:27:25]Read from MH i2c: 01 07 00 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 FF 0F 14 [20:27:25]process_action close_receipt done [20:27:25]requested_data is exist [20:27:25]produce_requested_data [20:27:25]requested_item fm.sn is exist - process it [20:27:25]wFMCommunicate request_size=4 [20:27:25]MH_SAM_APDU [20:27:25]CAPDU: 80 11 00 00 [20:27:25]Write to MH i2c: E2 08 00 DF 21 80 11 00 00 00 00 00 00 7A [20:27:25]Write i2c OK [20:27:25]MH_I2C_Read... [20:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:25]Read from MH i2c: E2 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 17 00 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 17 00 DF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D1 [20:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:27:25]wFMCommunicate OK [20:27:25]requested_item fd.num is exist - process it [20:27:25]SAM_PROTO_GetFieldsCounters [20:27:25]wFMCommunicate request_size=4 [20:27:25]MH_SAM_APDU [20:27:25]CAPDU: 80 13 00 00 [20:27:25]Write to MH i2c: E2 08 00 E0 21 80 13 00 00 00 00 00 00 7D [20:27:25]Write i2c OK [20:27:25]MH_I2C_Read... [20:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:25]Read from MH i2c: E2 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 62 00 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 62 00 E0 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 24 02 00 0E 04 04 00 C6 01 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 B7 [20:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 63 24 02 00 0E 04 04 00 C6 01 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 [20:27:25]wFMCommunicate OK [20:27:25]SAM_PROTO_GetFieldsCounters done [20:27:25]requested_item shift.num is exist - process it [20:27:25]requested_item shift.opened is exist - process it [20:27:25]req_shift_opened [20:27:25]FM_GetShiftState [20:27:25]SAM_PROTO_GetShiftState [20:27:25]wFMCommunicate request_size=4 [20:27:25]MH_SAM_APDU [20:27:25]CAPDU: 80 13 01 00 [20:27:25]Write to MH i2c: E2 08 00 E1 21 80 13 01 00 00 00 00 00 7F [20:27:25]Write i2c OK [20:27:25]MH_I2C_Read... [20:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:25]Read from MH i2c: E2 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 0E 00 [20:27:25]MH_I2C_Read... [20:27:25]Read from MH i2c: E2 0E 00 E1 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FF [20:27:25]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:27:25]wFMCommunicate OK [20:27:25]SAM_PROTO_GetShiftState done [20:27:25]FM_GetShiftState done [20:27:25]req_shift_opened done [20:27:25]requested_item shift.open_date is exist - process it [20:27:25]req_shift_open_date [20:27:25]req_shift_open_date done [20:27:25]produce_requested_data done [20:27:25]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140387,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:27:25]process_action_free close_receipt [20:27:25]json_value_free [20:27:25]json_value_free done [20:27:25]process_json_proto returns [20:27:25]Send response to host [20:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140387,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:27:25]free response buf [20:27:25]execute_script done [20:27:25]execute_script returns [20:27:25]free content buf [20:27:25]Sock 9.Close socket [20:27:25]Sock 9.Thread stoped [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:42]accept exits with 7 [20:30:42]New connection [20:30:42]New thread 3067469156 created [20:30:42]Thread 3067612516 joined [20:30:42]Waiting for new connection... [20:30:42] Sock 7.Parse request [20:30:42]Sock 7.Check first char [20:30:42]Sock 7.First char is OK [20:30:42]request: POST /json_proto HTTP/1.0 [20:30:42]Method: POST [20:30:42]URL: /json_proto [20:30:42]Method is POST - this is cgi request [20:30:42]url: /json_proto [20:30:42]query_string will be loaded in cgi processing [20:30:42]execute_cgi json_proto POST (null) [20:30:42]execute_cgi path=json_proto method=POST [20:30:42]POST find Content-Length [20:30:42]Host: 172.17.45.67:8080 [20:30:42]Content-Length: 677 [20:30:42]Content-Type: application/json [20:30:42] [20:30:42]POST finish read [20:30:42]Found Content-Length = 677 [20:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:42]execute_script... [20:30: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)594246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:42]POST & json_proto [20:30:42]process_json_proto [20:30:42]json parsed OK: [20:30:42]protocol is kg_v1.0 [20:30:42]action value=close_receipt [20:30:42]process_action close_receipt [20:30:42]cmd_close_receipt [20:30:42]MH_GetDate [20:30:42]Write to MH i2c: F0 00 00 E2 21 F2 [20:30:42]Write i2c OK [20:30:42]MH_I2C_Read... [20:30:42]Read from MH i2c: F0 [20:30:42]MH_I2C_Read... [20:30:42]Read from MH i2c: F0 09 00 [20:30:42]MH_I2C_Read... [20:30:42]Read from MH i2c: F0 09 00 E2 21 00 73 4E C6 66 5F 7F 2B 66 57 [20:30:42]GetLastDocTimeStamp 1724272042 [20:30:42]current date 1724272243 [20:30:42]FM_GetShiftState [20:30:42]SAM_PROTO_GetShiftState [20:30:42]wFMCommunicate request_size=4 [20:30:42]MH_SAM_APDU [20:30:42]CAPDU: 80 13 01 00 [20:30:42]Write to MH i2c: E2 08 00 E3 21 80 13 01 00 00 00 00 00 81 [20:30:42]Write i2c OK [20:30:42]MH_I2C_Read... [20:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:42]Read from MH i2c: E2 [20:30:42]MH_I2C_Read... [20:30:42]Read from MH i2c: E2 0E 00 [20:30:42]MH_I2C_Read... [20:30:42]Read from MH i2c: E2 0E 00 E3 21 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 01 [20:30:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:30:42]wFMCommunicate OK [20:30:42]SAM_PROTO_GetShiftState done [20:30:42]FM_GetShiftState done [20:30:42]opened in 1724200467 [20:30:42]opened+sec_in_day 1724286867 [20:30:42]quantity*price = 40002 [20:30:42]sum+1 = 40003 [20:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 405 21.08.2024 20:30 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140388 ФПД: 120078672978653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140388&fm=120078672978653&tin=02508201610067®Number=0000000000092569&sum=40000 [20:30:43]StoreToDocumentArchive [20:30:43]shift 454 fd 140388 [20:30:43]save to /storage/0454/doc_00140388 [20:30:43]save last doc name /storage/0454/doc_00140388 to /storage/kkm_last_doc_name [20:30:43]save OK [20:30:43]Clear old archive folders... [20:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:43]tlvbuf is 00C6AC90 [20:30:43]SAM_PROTO_ClearQueue [20:30:43]wFMCommunicate request_size=4 [20:30:43]MH_SAM_APDU [20:30:43]CAPDU: 80 09 00 00 [20:30:43]Write to MH i2c: E2 08 00 F0 21 80 09 00 00 00 00 00 00 83 [20:30:43]Write i2c OK [20:30:43]MH_I2C_Read... [20:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:43]Read from MH i2c: E2 [20:30:43]MH_I2C_Read... [20:30:43]Read from MH i2c: E2 03 00 [20:30:43]MH_I2C_Read... [20:30:43]Read from MH i2c: E2 03 00 F0 21 00 90 00 85 [20:30:43]RAPDU: 90 00 [20:30:43]wFMCommunicate OK [20:30:43]SAM_PROTO_ClearQueue done [20:30:43]KKMCreateOFDPacket [20:30:43]OFDProtocolAddRootSTLVToBuf [20:30:43]FM_MakeSignedData [20:30:43]FM_MakeSignedData [20:30:43]SAM_PROTO_SignData [20:30:43]wFMCommunicate request_size=4 [20:30:43]MH_SAM_APDU [20:30:43]CAPDU: 80 0D 01 02 [20:30:43]Write to MH i2c: E2 08 00 F1 21 80 0D 01 02 00 00 00 00 8B [20:30:43]Write i2c OK [20:30:43]MH_I2C_Read... [20:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:43]Read from MH i2c: E2 [20:30:43]MH_I2C_Read... [20:30:43]Read from MH i2c: E2 03 00 [20:30:43]MH_I2C_Read... [20:30:43]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [20:30:43]RAPDU: 90 00 [20:30:43]wFMCommunicate OK [20:30:43]wFMCommunicate request_size=255 [20:30:43]MH_SAM_APDU [20:30:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 73 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 24 02 00 35 04 06 00 6D [20:30:43]Write to MH i2c: E2 02 01 F2 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 73 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 24 02 00 35 04 06 00 6D 00 00 3A [20:30:43]Write i2c OK [20:30:43]MH_I2C_Read... [20:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:44]Read from MH i2c: E2 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 03 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [20:30:44]RAPDU: 90 00 [20:30:44]wFMCommunicate OK [20:30:44]wFMCommunicate request_size=10 [20:30:44]MH_SAM_APDU [20:30:44]CAPDU: 80 0D 02 02 05 35 FE A5 E2 DD [20:30:44]Write to MH i2c: E2 0D 00 F3 21 80 0D 02 02 05 00 35 FE A5 E2 DD 00 00 2F [20:30:44]Write i2c OK [20:30:44]MH_I2C_Read... [20:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:44]Read from MH i2c: E2 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 03 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [20:30:44]RAPDU: 90 00 [20:30:44]wFMCommunicate OK [20:30:44]wFMCommunicate request_size=4 [20:30:44]MH_SAM_APDU [20:30:44]CAPDU: 80 0D 03 02 [20:30:44]Write to MH i2c: E2 08 00 F4 21 80 0D 03 02 00 00 00 00 90 [20:30:44]Write i2c OK [20:30:44]MH_I2C_Read... [20:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:44]Read from MH i2c: E2 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 0B 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 0B 00 F4 21 00 64 5B A3 22 BD ED BA FE 90 00 77 [20:30:44]RAPDU: 64 5B A3 22 BD ED BA FE 90 00 [20:30:44]wFMCommunicate OK [20:30:44]SAM_PROTO_SignData done [20:30:44]FM_MakeSignedData done [20:30:44]CreateOFDProtocolMessage [20:30:44]wFMCommunicate request_size=4 [20:30:44]MH_SAM_APDU [20:30:44]CAPDU: 80 11 00 00 [20:30:44]Write to MH i2c: E2 08 00 F5 21 80 11 00 00 00 00 00 00 90 [20:30:44]Write i2c OK [20:30:44]MH_I2C_Read... [20:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:44]Read from MH i2c: E2 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 17 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: E2 17 00 F5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E7 [20:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:44]wFMCommunicate OK [20:30:44]CreateOFDProtocolMessage done [20:30:44]OFDSenderStorePacket 140388 [20:30:44]StoreOFDPacket docnum=140388 [20:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C F1 07 01 61 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 73 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 24 02 00 35 04 06 00 6D 35 FE A5 E2 DD 64 5B A3 22 BD ED BA FE [20:30:44]CheckFolder [20:30:44]dirname=/storage/ofd_packets [20:30:44]CheckFolder done [20:30:44]ProducePacketName [20:30:44]name=ofd_packets/00140388 [20:30:44]NVStorageSaveData ofd_packets/00140388 [20:30:44]File name is /storage/ofd_packets/00140388 [20:30:44]Write 301 bytes [20:30:44]NVStorageSaveData done [20:30:44]OFDSenderStorePacket done [20:30:44]KKMCreateOFDPacket done [20:30:44]NVStorageSaveData kkm_last_timestamp [20:30:44]File name is /storage/kkm_last_timestamp [20:30:44]Write 4 bytes [20:30:44]NVStorageSaveData done [20:30:44]ExternCall_PrintAddStr [20:30:44]wPrintStart [20:30:44]Write to MH i2c: 01 00 00 F6 21 17 [20:30:44]Write i2c OK [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 07 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 FF 0F 2C [20:30:44]RasterBufferAndPrint [20:30:44]line Счет N : (1)594246 [20:30:44]line ИНН: 02508201610067 [20:30:44]line Контрольно-Кассовый Чек [20:30:44]line ПРОДАЖА [20:30:44]line ТРК (МРК, ГНК) : 52 [20:30:44]line Товар: 2710124130 [20:30:44]line Аи-92-К-5 [20:30:44]line 5.900 * 67.80 [20:30:44]line = 400.02 [20:30:44]line НДС 12% НСП 1% [20:30:44]line > о реализуемом товаре [20:30:44]line ОКРУГЛЕНИЕ: -0.02 [20:30:44]line ИТОГО: 400.00 [20:30:44]line Внесено: 400.00 [20:30:44]line СДАЧА: 0.00 [20:30:44]line НСП 1% : 3.54 [20:30:44]line НДС 12% : 42.48 [20:30:44]line Наличными: 400.00 [20:30:44]line Безнал.: 0.00 [20:30:44]line Место: АЗС № 136 "Партнер Нефть" [20:30:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:30:44]line СНО: Общий режим [20:30:44]line Чек 405 21.08.2024 20:30 [20:30:44]line Смена: 454 ФФД: 1.0 [20:30:44]line ЗНМ: 0300000067 [20:30:44]line РНМ: 0000000000092569 [20:30:44]line Версия ККМ: 001 [20:30:44]line ФМ: 0000000000871776 [20:30:44]line ФД: 140388 [20:30:44]line ФПД: 120078672978653 [20:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203043&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140388&fm=120078672978653&tin=02508201610067®Number=0000000000092569&sum=40000 [20:30:44]OFD Sender: Processing packet 140388 [packets to send 137, broken 136] [20:30:44]ProducePacketName [20:30:44]name=ofd_packets/00140388 [20:30:44]OFD Sender: To server: pG, [20:30:44]CommunicateWithHost lk.salyk.kg:30040 [20:30:44]ConnectInit lk.salyk.kg [20:30:44]written 0, free lines is 4095 [20:30:44]Connected sock=10 [20:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C F1 07 01 61 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 73 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 64 24 02 00 35 04 06 00 6D 35 FE A5 E2 DD 64 5B A3 22 BD ED BA FE [20:30: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 37 36 4F 00 00 00 DB AE 47 00 23 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 37 36 10 04 04 00 64 24 02 00 F4 03 04 00 03 F5 C5 66 B6 04 01 00 00 40 A2 3B D1 A1 CB 74 29 [20:30:44]CommunicateWithHost err = 0 [20:30:44]CheckOFDResponse [20:30:44]1017 (14) - 77093643461234 [20:30:44]1041 (16) - 0000000000871776 [20:30:44]1040 (4) - 140388 [20:30:44]1012 (4) - 21.08.2024 14:09 [20:30:44]1206 (1) - 0 [20:30:44]OFD Sender: Remove packet 140388 [20:30:44]ProducePacketName [20:30:44]name=ofd_packets/00140388 [20:30:44]NVStorageDeleteData [20:30:44]Write to MH i2c: 01 00 00 21 22 43 [20:30:44]Write i2c OK [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 07 00 [20:30:44]MH_I2C_Read... [20:30:44]Read from MH i2c: 01 07 00 21 22 00 00 00 00 00 D9 0C 2F [20:30:44]RasterBufferAndPrint [20:30:44]line [20:30:44]line [20:30:44]line [20:30:44]line [20:30:44]line [20:30:44]written 0, free lines is 3296 [20:30:45]MH_Cut [20:30:45]Write to MH i2c: D1 01 00 28 22 01 1C [20:30:45]Write i2c OK [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: D1 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: D1 01 00 [20:30:45]MH_I2C_Read... [20:30:45]Read from MH i2c: D1 01 00 28 22 00 1B [20:30:45]Write to MH i2c: 01 00 00 29 22 4B [20:30:45]Write i2c OK [20:30:45]MH_I2C_Read... [20:30:45]OFD Sender: No OFD packet to send [20:30:45]*** Cut start [20:30:45]*** Partial cut [20:30:45]*** CUTSNS_PIN = 1 [20:30:45]*** CUTSNS_PIN = 0 [20:30:45]*** Brake cut motor [20:30:46]Read from MH i2c: 01 [20:30:46]MH_I2C_Read... [20:30:46]*** Stop cut motor [20:30:46]*** Cut end [20:30:46]Read from MH i2c: 01 07 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 FF 0F 60 [20:30:46]process_action close_receipt done [20:30:46]requested_data is exist [20:30:46]produce_requested_data [20:30:46]requested_item fm.sn is exist - process it [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 11 00 00 [20:30:46]Write to MH i2c: E2 08 00 2A 22 80 11 00 00 00 00 00 00 C6 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 17 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 17 00 2A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1D [20:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:30:46]wFMCommunicate OK [20:30:46]requested_item fd.num is exist - process it [20:30:46]SAM_PROTO_GetFieldsCounters [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 13 00 00 [20:30:46]Write to MH i2c: E2 08 00 2B 22 80 13 00 00 00 00 00 00 C9 [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 62 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 62 00 2B 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 24 02 00 0E 04 04 00 C6 01 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 07 [20:30: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 64 24 02 00 0E 04 04 00 C6 01 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 [20:30:46]wFMCommunicate OK [20:30:46]SAM_PROTO_GetFieldsCounters done [20:30:46]requested_item shift.num is exist - process it [20:30:46]requested_item shift.opened is exist - process it [20:30:46]req_shift_opened [20:30:46]FM_GetShiftState [20:30:46]SAM_PROTO_GetShiftState [20:30:46]wFMCommunicate request_size=4 [20:30:46]MH_SAM_APDU [20:30:46]CAPDU: 80 13 01 00 [20:30:46]Write to MH i2c: E2 08 00 2C 22 80 13 01 00 00 00 00 00 CB [20:30:46]Write i2c OK [20:30:46]MH_I2C_Read... [20:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:46]Read from MH i2c: E2 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 0E 00 [20:30:46]MH_I2C_Read... [20:30:46]Read from MH i2c: E2 0E 00 2C 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4B [20:30:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:30:46]wFMCommunicate OK [20:30:46]SAM_PROTO_GetShiftState done [20:30:46]FM_GetShiftState done [20:30:46]req_shift_opened done [20:30:46]requested_item shift.open_date is exist - process it [20:30:46]req_shift_open_date [20:30:46]req_shift_open_date done [20:30:46]produce_requested_data done [20:30:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140388,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:30:46]process_action_free close_receipt [20:30:46]json_value_free [20:30:46]json_value_free done [20:30:46]process_json_proto returns [20:30:46]Send response to host [20:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140388,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:30:46]free response buf [20:30:46]execute_script done [20:30:46]execute_script returns [20:30:46]free content buf [20:30:46]Sock 7.Close socket [20:30:46]Sock 7.Thread stoped [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:34]accept exits with 9 [20:31:34]New connection [20:31:34]New thread 3067612516 created [20:31:34]Thread 3067469156 joined [20:31:34]Waiting for new connection... [20:31:34] Sock 9.Parse request [20:31:34]Sock 9.Check first char [20:31:34]Sock 9.First char is OK [20:31:34]request: POST /json_proto HTTP/1.0 [20:31:34]Method: POST [20:31:34]URL: /json_proto [20:31:34]Method is POST - this is cgi request [20:31:34]url: /json_proto [20:31:34]query_string will be loaded in cgi processing [20:31:34]execute_cgi json_proto POST (null) [20:31:34]execute_cgi path=json_proto method=POST [20:31:34]POST find Content-Length [20:31:34]Host: 172.17.45.67:8080 [20:31:34]Content-Length: 677 [20:31:34]Content-Type: application/json [20:31:34] [20:31:34]POST finish read [20:31:34]Found Content-Length = 677 [20:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:34]execute_script... [20:31: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)594247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:34]POST & json_proto [20:31:34]process_json_proto [20:31:34]json parsed OK: [20:31:34]protocol is kg_v1.0 [20:31:34]action value=close_receipt [20:31:34]process_action close_receipt [20:31:34]cmd_close_receipt [20:31:34]MH_GetDate [20:31:34]Write to MH i2c: F0 00 00 2D 22 3E [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: F0 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: F0 09 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: F0 09 00 2D 22 00 A7 4E C6 66 5F 7F 2B 66 D7 [20:31:34]GetLastDocTimeStamp 1724272243 [20:31:34]current date 1724272295 [20:31:34]FM_GetShiftState [20:31:34]SAM_PROTO_GetShiftState [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 13 01 00 [20:31:34]Write to MH i2c: E2 08 00 2E 22 80 13 01 00 00 00 00 00 CD [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:34]Read from MH i2c: E2 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 0E 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 0E 00 2E 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4D [20:31:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:31:34]wFMCommunicate OK [20:31:34]SAM_PROTO_GetShiftState done [20:31:34]FM_GetShiftState done [20:31:34]opened in 1724200467 [20:31:34]opened+sec_in_day 1724286867 [20:31:34]quantity*price = 50036 [20:31:34]sum+1 = 50037 [20:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 406 21.08.2024 20:31 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140389 ФПД: 4867401263436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203135&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140389&fm=4867401263436&tin=02508201610067®Number=0000000000092569&sum=50000 [20:31:35]StoreToDocumentArchive [20:31:35]shift 454 fd 140389 [20:31:35]save to /storage/0454/doc_00140389 [20:31:35]save last doc name /storage/0454/doc_00140389 to /storage/kkm_last_doc_name [20:31:35]save OK [20:31:35]Clear old archive folders... [20:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:35]tlvbuf is 00C71030 [20:31:35]SAM_PROTO_ClearQueue [20:31:35]wFMCommunicate request_size=4 [20:31:35]MH_SAM_APDU [20:31:35]CAPDU: 80 09 00 00 [20:31:35]Write to MH i2c: E2 08 00 3B 22 80 09 00 00 00 00 00 00 CF [20:31:35]Write i2c OK [20:31:35]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 3B 22 00 90 00 D1 [20:31:36]RAPDU: 90 00 [20:31:36]wFMCommunicate OK [20:31:36]SAM_PROTO_ClearQueue done [20:31:36]KKMCreateOFDPacket [20:31:36]OFDProtocolAddRootSTLVToBuf [20:31:36]FM_MakeSignedData [20:31:36]FM_MakeSignedData [20:31:36]SAM_PROTO_SignData [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 0D 01 02 [20:31:36]Write to MH i2c: E2 08 00 3C 22 80 0D 01 02 00 00 00 00 D7 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [20:31:36]RAPDU: 90 00 [20:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=255 [20:31:36]MH_SAM_APDU [20:31: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A7 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 24 02 00 35 04 06 00 04 [20:31:36]Write to MH i2c: E2 02 01 3D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A7 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 24 02 00 35 04 06 00 04 00 00 6E [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [20:31:36]RAPDU: 90 00 [20:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=10 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 0D 02 02 05 6D 47 B9 29 4C [20:31:36]Write to MH i2c: E2 0D 00 3E 22 80 0D 02 02 05 00 6D 47 B9 29 4C 00 00 C6 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [20:31:36]RAPDU: 90 00 [20:31:36]wFMCommunicate OK [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 0D 03 02 [20:31:36]Write to MH i2c: E2 08 00 3F 22 80 0D 03 02 00 00 00 00 DC [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 0B 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 0B 00 3F 22 00 45 90 A9 EA A4 96 29 25 90 00 CD [20:31:36]RAPDU: 45 90 A9 EA A4 96 29 25 90 00 [20:31:36]wFMCommunicate OK [20:31:36]SAM_PROTO_SignData done [20:31:36]FM_MakeSignedData done [20:31:36]CreateOFDProtocolMessage [20:31:36]wFMCommunicate request_size=4 [20:31:36]MH_SAM_APDU [20:31:36]CAPDU: 80 11 00 00 [20:31:36]Write to MH i2c: E2 08 00 40 22 80 11 00 00 00 00 00 00 DC [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:36]Read from MH i2c: E2 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 17 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: E2 17 00 40 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [20:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:31:36]wFMCommunicate OK [20:31:36]CreateOFDProtocolMessage done [20:31:36]OFDSenderStorePacket 140389 [20:31:36]StoreOFDPacket docnum=140389 [20:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 BC A9 07 01 8B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A7 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 24 02 00 35 04 06 00 04 6D 47 B9 29 4C 45 90 A9 EA A4 96 29 25 [20:31:36]CheckFolder [20:31:36]dirname=/storage/ofd_packets [20:31:36]CheckFolder done [20:31:36]ProducePacketName [20:31:36]name=ofd_packets/00140389 [20:31:36]NVStorageSaveData ofd_packets/00140389 [20:31:36]File name is /storage/ofd_packets/00140389 [20:31:36]Write 301 bytes [20:31:36]NVStorageSaveData done [20:31:36]OFDSenderStorePacket done [20:31:36]KKMCreateOFDPacket done [20:31:36]NVStorageSaveData kkm_last_timestamp [20:31:36]File name is /storage/kkm_last_timestamp [20:31:36]Write 4 bytes [20:31:36]NVStorageSaveData done [20:31:36]ExternCall_PrintAddStr [20:31:36]wPrintStart [20:31:36]Write to MH i2c: 01 00 00 41 22 63 [20:31:36]Write i2c OK [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 07 00 [20:31:36]MH_I2C_Read... [20:31:36]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 FF 0F 78 [20:31:36]RasterBufferAndPrint [20:31:36]line Счет N : (1)594247 [20:31:36]line ИНН: 02508201610067 [20:31:36]line Контрольно-Кассовый Чек [20:31:36]line ПРОДАЖА [20:31:36]line ТРК (МРК, ГНК) : 42 [20:31:36]line Товар: 2710124130 [20:31:36]line Аи-92-К-5 [20:31:36]line 7.380 * 67.80 [20:31:36]line = 500.36 [20:31:36]line НДС 12% НСП 1% [20:31:36]line > о реализуемом товаре [20:31:36]line ОКРУГЛЕНИЕ: -0.36 [20:31:36]line ИТОГО: 500.00 [20:31:36]line Внесено: 500.00 [20:31:36]line СДАЧА: 0.00 [20:31:36]line НСП 1% : 4.43 [20:31:36]line НДС 12% : 53.14 [20:31:36]line Наличными: 500.00 [20:31:36]line Безнал.: 0.00 [20:31:36]line Место: АЗС № 136 "Партнер Нефть" [20:31:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:31:36]line СНО: Общий режим [20:31:36]line Чек 406 21.08.2024 20:31 [20:31:36]line Смена: 454 ФФД: 1.0 [20:31:36]line ЗНМ: 0300000067 [20:31:36]line РНМ: 0000000000092569 [20:31:36]line Версия ККМ: 001 [20:31:36]line ФМ: 0000000000871776 [20:31:36]line ФД: 140389 [20:31:36]line ФПД: 4867401263436 [20:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203135&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140389&fm=4867401263436&tin=02508201610067®Number=0000000000092569&sum=50000 [20:31:36]OFD Sender: Processing packet 140389 [packets to send 137, broken 136] [20:31:36]ProducePacketName [20:31:36]name=ofd_packets/00140389 [20:31:36]OFD Sender: To server: pG, [20:31:36]CommunicateWithHost lk.salyk.kg:30040 [20:31:36]ConnectInit lk.salyk.kg [20:31:36]written 0, free lines is 4095 [20:31:36]Connected sock=7 [20:31: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 37 36 0F 01 00 00 BC A9 07 01 8B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 A7 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 65 24 02 00 35 04 06 00 04 6D 47 B9 29 4C 45 90 A9 EA A4 96 29 25 [20:31: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 37 36 4F 00 00 00 98 35 47 00 14 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 37 36 10 04 04 00 65 24 02 00 F4 03 04 00 37 F5 C5 66 B6 04 01 00 00 51 FF 83 93 E5 50 0E E5 [20:31:37]CommunicateWithHost err = 0 [20:31:37]CheckOFDResponse [20:31:37]1017 (14) - 77093643461234 [20:31:37]1041 (16) - 0000000000871776 [20:31:37]1040 (4) - 140389 [20:31:37]1012 (4) - 21.08.2024 14:09 [20:31:37]1206 (1) - 0 [20:31:37]OFD Sender: Remove packet 140389 [20:31:37]ProducePacketName [20:31:37]name=ofd_packets/00140389 [20:31:37]NVStorageDeleteData [20:31:37]Write to MH i2c: 01 00 00 6C 22 8E [20:31:37]Write i2c OK [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: 01 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: 01 07 00 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: 01 07 00 6C 22 00 00 00 00 00 CA 0C 6B [20:31:37]RasterBufferAndPrint [20:31:37]line [20:31:37]line [20:31:37]line [20:31:37]line [20:31:37]line [20:31:37]written 0, free lines is 3281 [20:31:37]MH_Cut [20:31:37]Write to MH i2c: D1 01 00 73 22 01 67 [20:31:37]Write i2c OK [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: D1 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: D1 01 00 [20:31:37]MH_I2C_Read... [20:31:37]Read from MH i2c: D1 01 00 73 22 00 66 [20:31:37]Write to MH i2c: 01 00 00 74 22 96 [20:31:37]Write i2c OK [20:31:37]MH_I2C_Read... [20:31:37]OFD Sender: No OFD packet to send [20:31:38]*** Cut start [20:31:38]*** Partial cut [20:31:38]*** CUTSNS_PIN = 1 [20:31:38]*** CUTSNS_PIN = 0 [20:31:38]*** Brake cut motor [20:31:38]Read from MH i2c: 01 [20:31:38]MH_I2C_Read... [20:31:38]*** Stop cut motor [20:31:38]*** Cut end [20:31:38]Read from MH i2c: 01 07 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: 01 07 00 74 22 00 00 00 00 00 FF 0F AB [20:31:38]process_action close_receipt done [20:31:38]requested_data is exist [20:31:38]produce_requested_data [20:31:38]requested_item fm.sn is exist - process it [20:31:38]wFMCommunicate request_size=4 [20:31:38]MH_SAM_APDU [20:31:38]CAPDU: 80 11 00 00 [20:31:38]Write to MH i2c: E2 08 00 75 22 80 11 00 00 00 00 00 00 11 [20:31:38]Write i2c OK [20:31:38]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 17 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 17 00 75 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [20:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:31:38]wFMCommunicate OK [20:31:38]requested_item fd.num is exist - process it [20:31:38]SAM_PROTO_GetFieldsCounters [20:31:38]wFMCommunicate request_size=4 [20:31:38]MH_SAM_APDU [20:31:38]CAPDU: 80 13 00 00 [20:31:38]Write to MH i2c: E2 08 00 76 22 80 13 00 00 00 00 00 00 14 [20:31:38]Write i2c OK [20:31:38]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 62 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 62 00 76 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 24 02 00 0E 04 04 00 C6 01 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 56 [20:31: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 65 24 02 00 0E 04 04 00 C6 01 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 [20:31:38]wFMCommunicate OK [20:31:38]SAM_PROTO_GetFieldsCounters done [20:31:38]requested_item shift.num is exist - process it [20:31:38]requested_item shift.opened is exist - process it [20:31:38]req_shift_opened [20:31:38]FM_GetShiftState [20:31:38]SAM_PROTO_GetShiftState [20:31:38]wFMCommunicate request_size=4 [20:31:38]MH_SAM_APDU [20:31:38]CAPDU: 80 13 01 00 [20:31:38]Write to MH i2c: E2 08 00 77 22 80 13 01 00 00 00 00 00 16 [20:31:38]Write i2c OK [20:31:38]MH_I2C_Read... [20:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:38]Read from MH i2c: E2 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 0E 00 [20:31:38]MH_I2C_Read... [20:31:38]Read from MH i2c: E2 0E 00 77 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 96 [20:31:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:31:38]wFMCommunicate OK [20:31:38]SAM_PROTO_GetShiftState done [20:31:38]FM_GetShiftState done [20:31:38]req_shift_opened done [20:31:38]requested_item shift.open_date is exist - process it [20:31:38]req_shift_open_date [20:31:38]req_shift_open_date done [20:31:38]produce_requested_data done [20:31:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140389,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:31:38]process_action_free close_receipt [20:31:38]json_value_free [20:31:38]json_value_free done [20:31:38]process_json_proto returns [20:31:38]Send response to host [20:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140389,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:31:38]free response buf [20:31:38]execute_script done [20:31:38]execute_script returns [20:31:38]free content buf [20:31:38]Sock 9.Close socket [20:31:38]Sock 9.Thread stoped [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:13]accept exits with 10 [20:32:13]New connection [20:32:13]New thread 3067469156 created [20:32:13]Thread 3067612516 joined [20:32:13]Waiting for new connection... [20:32:13] Sock 10.Parse request [20:32:13]Sock 10.Check first char [20:32:13]Sock 10.First char is OK [20:32:13]request: POST /json_proto HTTP/1.0 [20:32:13]Method: POST [20:32:13]URL: /json_proto [20:32:13]Method is POST - this is cgi request [20:32:13]url: /json_proto [20:32:13]query_string will be loaded in cgi processing [20:32:13]execute_cgi json_proto POST (null) [20:32:13]execute_cgi path=json_proto method=POST [20:32:13]POST find Content-Length [20:32:13]Host: 172.17.45.67:8080 [20:32:13]Content-Length: 677 [20:32:13]Content-Type: application/json [20:32:13] [20:32:13]POST finish read [20:32:13]Found Content-Length = 677 [20:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:13]execute_script... [20:32: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)594248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:13]POST & json_proto [20:32:13]process_json_proto [20:32:13]json parsed OK: [20:32:13]protocol is kg_v1.0 [20:32:13]action value=close_receipt [20:32:13]process_action close_receipt [20:32:13]cmd_close_receipt [20:32:13]MH_GetDate [20:32:13]Write to MH i2c: F0 00 00 78 22 89 [20:32:13]Write i2c OK [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 09 00 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: F0 09 00 78 22 00 CE 4E C6 66 5F 7F 2B 66 49 [20:32:13]GetLastDocTimeStamp 1724272295 [20:32:13]current date 1724272334 [20:32:13]FM_GetShiftState [20:32:13]SAM_PROTO_GetShiftState [20:32:13]wFMCommunicate request_size=4 [20:32:13]MH_SAM_APDU [20:32:13]CAPDU: 80 13 01 00 [20:32:13]Write to MH i2c: E2 08 00 79 22 80 13 01 00 00 00 00 00 18 [20:32:13]Write i2c OK [20:32:13]MH_I2C_Read... [20:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:13]Read from MH i2c: E2 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: E2 0E 00 [20:32:13]MH_I2C_Read... [20:32:13]Read from MH i2c: E2 0E 00 79 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 98 [20:32:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:32:13]wFMCommunicate OK [20:32:13]SAM_PROTO_GetShiftState done [20:32:13]FM_GetShiftState done [20:32:13]opened in 1724200467 [20:32:13]opened+sec_in_day 1724286867 [20:32:13]quantity*price = 20001 [20:32:13]sum+1 = 20002 [20:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 407 21.08.2024 20:32 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140390 ФПД: 98929400151670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140390&fm=98929400151670&tin=02508201610067®Number=0000000000092569&sum=20000 [20:32:14]StoreToDocumentArchive [20:32:14]shift 454 fd 140390 [20:32:14]save to /storage/0454/doc_00140390 [20:32:14]save last doc name /storage/0454/doc_00140390 to /storage/kkm_last_doc_name [20:32:14]save OK [20:32:14]Clear old archive folders... [20:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:14]tlvbuf is 00C34C20 [20:32:14]SAM_PROTO_ClearQueue [20:32:14]wFMCommunicate request_size=4 [20:32:14]MH_SAM_APDU [20:32:14]CAPDU: 80 09 00 00 [20:32:14]Write to MH i2c: E2 08 00 86 22 80 09 00 00 00 00 00 00 1A [20:32:14]Write i2c OK [20:32:14]MH_I2C_Read... [20:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:14]Read from MH i2c: E2 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: E2 03 00 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: E2 03 00 86 22 00 90 00 1C [20:32:14]RAPDU: 90 00 [20:32:14]wFMCommunicate OK [20:32:14]SAM_PROTO_ClearQueue done [20:32:14]KKMCreateOFDPacket [20:32:14]OFDProtocolAddRootSTLVToBuf [20:32:14]FM_MakeSignedData [20:32:14]FM_MakeSignedData [20:32:14]SAM_PROTO_SignData [20:32:14]wFMCommunicate request_size=4 [20:32:14]MH_SAM_APDU [20:32:14]CAPDU: 80 0D 01 02 [20:32:14]Write to MH i2c: E2 08 00 87 22 80 0D 01 02 00 00 00 00 22 [20:32:14]Write i2c OK [20:32:14]MH_I2C_Read... [20:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:14]Read from MH i2c: E2 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: E2 03 00 [20:32:14]MH_I2C_Read... [20:32:14]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [20:32:14]RAPDU: 90 00 [20:32:14]wFMCommunicate OK [20:32:14]wFMCommunicate request_size=255 [20:32:14]MH_SAM_APDU [20:32: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 01 00 00 F4 03 04 00 CE 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 24 02 00 35 04 06 00 59 [20:32:14]Write to MH i2c: E2 02 01 88 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 01 00 00 F4 03 04 00 CE 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 24 02 00 35 04 06 00 59 00 00 39 [20:32:14]Write i2c OK [20:32:14]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]wFMCommunicate request_size=10 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 0D 02 02 05 F9 CB C0 FE 76 [20:32:15]Write to MH i2c: E2 0D 00 89 22 80 0D 02 02 05 00 F9 CB C0 FE 76 00 00 27 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [20:32:15]RAPDU: 90 00 [20:32:15]wFMCommunicate OK [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 0D 03 02 [20:32:15]Write to MH i2c: E2 08 00 8A 22 80 0D 03 02 00 00 00 00 27 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0B 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0B 00 8A 22 00 2C 64 19 2B DE E4 70 81 90 00 AF [20:32:15]RAPDU: 2C 64 19 2B DE E4 70 81 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_SignData done [20:32:15]FM_MakeSignedData done [20:32:15]CreateOFDProtocolMessage [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 11 00 00 [20:32:15]Write to MH i2c: E2 08 00 8B 22 80 11 00 00 00 00 00 00 27 [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 17 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 17 00 8B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7E [20:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:15]wFMCommunicate OK [20:32:15]CreateOFDProtocolMessage done [20:32:15]OFDSenderStorePacket 140390 [20:32:15]StoreOFDPacket docnum=140390 [20:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 19 8D 07 01 7D 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 01 00 00 F4 03 04 00 CE 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 24 02 00 35 04 06 00 59 F9 CB C0 FE 76 2C 64 19 2B DE E4 70 81 [20:32:15]CheckFolder [20:32:15]dirname=/storage/ofd_packets [20:32:15]CheckFolder done [20:32:15]ProducePacketName [20:32:15]name=ofd_packets/00140390 [20:32:15]NVStorageSaveData ofd_packets/00140390 [20:32:15]File name is /storage/ofd_packets/00140390 [20:32:15]Write 301 bytes [20:32:15]NVStorageSaveData done [20:32:15]OFDSenderStorePacket done [20:32:15]KKMCreateOFDPacket done [20:32:15]NVStorageSaveData kkm_last_timestamp [20:32:15]File name is /storage/kkm_last_timestamp [20:32:15]Write 4 bytes [20:32:15]NVStorageSaveData done [20:32:15]ExternCall_PrintAddStr [20:32:15]wPrintStart [20:32:15]Write to MH i2c: 01 00 00 8C 22 AE [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: 01 07 00 8C 22 00 00 00 00 00 FF 0F C3 [20:32:15]RasterBufferAndPrint [20:32:15]line Счет N : (1)594248 [20:32:15]line ИНН: 02508201610067 [20:32:15]line Контрольно-Кассовый Чек [20:32:15]line ПРОДАЖА [20:32:15]line ТРК (МРК, ГНК) : 42 [20:32:15]line Товар: 2710124130 [20:32:15]line Аи-92-К-5 [20:32:15]line 2.950 * 67.80 [20:32:15]line = 200.01 [20:32:15]line НДС 12% НСП 1% [20:32:15]line > о реализуемом товаре [20:32:15]line ОКРУГЛЕНИЕ: -0.01 [20:32:15]line ИТОГО: 200.00 [20:32:15]line Внесено: 200.00 [20:32:15]line СДАЧА: 0.00 [20:32:15]line НСП 1% : 1.77 [20:32:15]line НДС 12% : 21.24 [20:32:15]line Наличными: 200.00 [20:32:15]line Безнал.: 0.00 [20:32:15]line Место: АЗС № 136 "Партнер Нефть" [20:32:15]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:32:15]line СНО: Общий режим [20:32:15]line Чек 407 21.08.2024 20:32 [20:32:15]line Смена: 454 ФФД: 1.0 [20:32:15]line ЗНМ: 0300000067 [20:32:15]line РНМ: 0000000000092569 [20:32:15]line Версия ККМ: 001 [20:32:15]line ФМ: 0000000000871776 [20:32:15]line ФД: 140390 [20:32:15]line ФПД: 98929400151670 [20:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203214&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140390&fm=98929400151670&tin=02508201610067®Number=0000000000092569&sum=20000 [20:32:15]written 0, free lines is 4095 [20:32:15]OFD Sender: Processing packet 140390 [packets to send 137, broken 136] [20:32:15]ProducePacketName [20:32:15]name=ofd_packets/00140390 [20:32:15]OFD Sender: To server: pG, [20:32:15]CommunicateWithHost lk.salyk.kg:30040 [20:32:15]ConnectInit lk.salyk.kg [20:32:15]Connected sock=9 [20:32: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 37 36 0F 01 00 00 19 8D 07 01 7D 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 01 00 00 F4 03 04 00 CE 4E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 66 24 02 00 35 04 06 00 59 F9 CB C0 FE 76 2C 64 19 2B DE E4 70 81 [20:32:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 32 53 47 00 5E 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 37 36 10 04 04 00 66 24 02 00 F4 03 04 00 5E F5 C5 66 B6 04 01 00 00 C0 AE B0 10 39 CF 0F 78 [20:32:16]CommunicateWithHost err = 0 [20:32:16]CheckOFDResponse [20:32:16]1017 (14) - 77093643461234 [20:32:16]1041 (16) - 0000000000871776 [20:32:16]1040 (4) - 140390 [20:32:16]1012 (4) - 21.08.2024 14:10 [20:32:16]1206 (1) - 0 [20:32:16]OFD Sender: Remove packet 140390 [20:32:16]ProducePacketName [20:32:16]name=ofd_packets/00140390 [20:32:16]NVStorageDeleteData [20:32:16]Write to MH i2c: 01 00 00 B7 22 D9 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 CB 0C B7 [20:32:16]RasterBufferAndPrint [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]line [20:32:16]written 0, free lines is 3281 [20:32:16]MH_Cut [20:32:16]Write to MH i2c: D1 01 00 BE 22 01 B2 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 01 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: D1 01 00 BE 22 00 B1 [20:32:16]Write to MH i2c: 01 00 00 BF 22 E1 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]OFD Sender: No OFD packet to send [20:32:16]*** Cut start [20:32:16]*** Partial cut [20:32:16]*** CUTSNS_PIN = 1 [20:32:16]*** CUTSNS_PIN = 0 [20:32:17]*** Brake cut motor [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]*** Stop cut motor [20:32:17]*** Cut end [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 FF 0F F6 [20:32:17]process_action close_receipt done [20:32:17]requested_data is exist [20:32:17]produce_requested_data [20:32:17]requested_item fm.sn is exist - process it [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 11 00 00 [20:32:17]Write to MH i2c: E2 08 00 C0 22 80 11 00 00 00 00 00 00 5C [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 C0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B3 [20:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:32:17]wFMCommunicate OK [20:32:17]requested_item fd.num is exist - process it [20:32:17]SAM_PROTO_GetFieldsCounters [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 13 00 00 [20:32:17]Write to MH i2c: E2 08 00 C1 22 80 13 00 00 00 00 00 00 5F [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 62 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 62 00 C1 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 24 02 00 0E 04 04 00 C6 01 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 A5 [20:32:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 66 24 02 00 0E 04 04 00 C6 01 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 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_GetFieldsCounters done [20:32:17]requested_item shift.num is exist - process it [20:32:17]requested_item shift.opened is exist - process it [20:32:17]req_shift_opened [20:32:17]FM_GetShiftState [20:32:17]SAM_PROTO_GetShiftState [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 13 01 00 [20:32:17]Write to MH i2c: E2 08 00 C2 22 80 13 01 00 00 00 00 00 61 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0E 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0E 00 C2 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E1 [20:32:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_GetShiftState done [20:32:17]FM_GetShiftState done [20:32:17]req_shift_opened done [20:32:17]requested_item shift.open_date is exist - process it [20:32:17]req_shift_open_date [20:32:17]req_shift_open_date done [20:32:17]produce_requested_data done [20:32:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140390,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:32:17]process_action_free close_receipt [20:32:17]json_value_free [20:32:17]json_value_free done [20:32:17]process_json_proto returns [20:32:17]Send response to host [20:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140390,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:32:17]free response buf [20:32:17]execute_script done [20:32:17]execute_script returns [20:32:17]free content buf [20:32:17]Sock 10.Close socket [20:32:17]Sock 10.Thread stoped [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:49]accept exits with 7 [20:34:49]New connection [20:34:49]New thread 3067612516 created [20:34:49]Thread 3067469156 joined [20:34:49]Waiting for new connection... [20:34:49] Sock 7.Parse request [20:34:49]Sock 7.Check first char [20:34:49]Sock 7.First char is OK [20:34:49]request: POST /json_proto HTTP/1.0 [20:34:49]Method: POST [20:34:49]URL: /json_proto [20:34:49]Method is POST - this is cgi request [20:34:49]url: /json_proto [20:34:49]query_string will be loaded in cgi processing [20:34:49]execute_cgi json_proto POST (null) [20:34:49]execute_cgi path=json_proto method=POST [20:34:49]POST find Content-Length [20:34:49]Host: 172.17.45.67:8080 [20:34:49]Content-Length: 682 [20:34:49]Content-Type: application/json [20:34:49] [20:34:49]POST finish read [20:34:49]Found Content-Length = 682 [20:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [20:34:49]execute_script... [20: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)594249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [20:34:49]POST & json_proto [20:34:49]process_json_proto [20:34:49]json parsed OK: [20:34:49]protocol is kg_v1.0 [20:34:49]action value=close_receipt [20:34:49]process_action close_receipt [20:34:49]cmd_close_receipt [20:34:49]MH_GetDate [20:34:49]Write to MH i2c: F0 00 00 C3 22 D4 [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: F0 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: F0 09 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: F0 09 00 C3 22 00 6A 4F C6 66 5F 7F 2B 66 31 [20:34:49]GetLastDocTimeStamp 1724272334 [20:34:49]current date 1724272490 [20:34:49]FM_GetShiftState [20:34:49]SAM_PROTO_GetShiftState [20:34:49]wFMCommunicate request_size=4 [20:34:49]MH_SAM_APDU [20:34:49]CAPDU: 80 13 01 00 [20:34:49]Write to MH i2c: E2 08 00 C4 22 80 13 01 00 00 00 00 00 63 [20:34:49]Write i2c OK [20:34:49]MH_I2C_Read... [20:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:49]Read from MH i2c: E2 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 0E 00 [20:34:49]MH_I2C_Read... [20:34:49]Read from MH i2c: E2 0E 00 C4 22 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [20:34:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:34:49]wFMCommunicate OK [20:34:49]SAM_PROTO_GetShiftState done [20:34:49]FM_GetShiftState done [20:34:49]opened in 1724200467 [20:34:49]opened+sec_in_day 1724286867 [20:34:49]quantity*price = 120006 [20:34:49]sum+1 = 120007 [20:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 408 21.08.2024 20:34 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140391 ФПД: 149524866867046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203450&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140391&fm=149524866867046&tin=02508201610067®Number=0000000000092569&sum=120000 [20:34:50]StoreToDocumentArchive [20:34:50]shift 454 fd 140391 [20:34:50]save to /storage/0454/doc_00140391 [20:34:50]save last doc name /storage/0454/doc_00140391 to /storage/kkm_last_doc_name [20:34:50]save OK [20:34:50]Clear old archive folders... [20:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:50]tlvbuf is 00C6E930 [20:34:50]SAM_PROTO_ClearQueue [20:34:50]wFMCommunicate request_size=4 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 09 00 00 [20:34:50]Write to MH i2c: E2 08 00 D1 22 80 09 00 00 00 00 00 00 65 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [20:34:50]RAPDU: 90 00 [20:34:50]wFMCommunicate OK [20:34:50]SAM_PROTO_ClearQueue done [20:34:50]KKMCreateOFDPacket [20:34:50]OFDProtocolAddRootSTLVToBuf [20:34:50]FM_MakeSignedData [20:34:50]FM_MakeSignedData [20:34:50]SAM_PROTO_SignData [20:34:50]wFMCommunicate request_size=4 [20:34:50]MH_SAM_APDU [20:34:50]CAPDU: 80 0D 01 02 [20:34:50]Write to MH i2c: E2 08 00 D2 22 80 0D 01 02 00 00 00 00 6D [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:50]Read from MH i2c: E2 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 [20:34:50]MH_I2C_Read... [20:34:50]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [20:34:50]RAPDU: 90 00 [20:34:50]wFMCommunicate OK [20:34:50]wFMCommunicate request_size=255 [20:34:50]MH_SAM_APDU [20: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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 98 01 00 00 F4 03 04 00 6A 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 24 02 00 35 04 06 00 87 [20:34:50]Write to MH i2c: E2 02 01 D3 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 98 01 00 00 F4 03 04 00 6A 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 24 02 00 35 04 06 00 87 00 00 C1 [20:34:50]Write i2c OK [20:34:50]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [20:34:51]RAPDU: 90 00 [20:34:51]wFMCommunicate OK [20:34:51]wFMCommunicate request_size=10 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 0D 02 02 05 FD F8 93 1F 66 [20:34:51]Write to MH i2c: E2 0D 00 D4 22 80 0D 02 02 05 00 FD F8 93 1F 66 00 00 87 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 03 00 D4 22 00 90 00 6A [20:34:51]RAPDU: 90 00 [20:34:51]wFMCommunicate OK [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 0D 03 02 [20:34:51]Write to MH i2c: E2 08 00 D5 22 80 0D 03 02 00 00 00 00 72 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 0B 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 0B 00 D5 22 00 BD B1 59 76 D7 8F AB 8E 90 00 4F [20:34:51]RAPDU: BD B1 59 76 D7 8F AB 8E 90 00 [20:34:51]wFMCommunicate OK [20:34:51]SAM_PROTO_SignData done [20:34:51]FM_MakeSignedData done [20:34:51]CreateOFDProtocolMessage [20:34:51]wFMCommunicate request_size=4 [20:34:51]MH_SAM_APDU [20:34:51]CAPDU: 80 11 00 00 [20:34:51]Write to MH i2c: E2 08 00 D6 22 80 11 00 00 00 00 00 00 72 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:51]Read from MH i2c: E2 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 17 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: E2 17 00 D6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C9 [20:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:34:51]wFMCommunicate OK [20:34:51]CreateOFDProtocolMessage done [20:34:51]OFDSenderStorePacket 140391 [20:34:51]StoreOFDPacket docnum=140391 [20:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4D B0 07 01 8D 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 98 01 00 00 F4 03 04 00 6A 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 24 02 00 35 04 06 00 87 FD F8 93 1F 66 BD B1 59 76 D7 8F AB 8E [20:34:51]CheckFolder [20:34:51]dirname=/storage/ofd_packets [20:34:51]CheckFolder done [20:34:51]ProducePacketName [20:34:51]name=ofd_packets/00140391 [20:34:51]NVStorageSaveData ofd_packets/00140391 [20:34:51]File name is /storage/ofd_packets/00140391 [20:34:51]Write 301 bytes [20:34:51]NVStorageSaveData done [20:34:51]OFDSenderStorePacket done [20:34:51]KKMCreateOFDPacket done [20:34:51]NVStorageSaveData kkm_last_timestamp [20:34:51]File name is /storage/kkm_last_timestamp [20:34:51]Write 4 bytes [20:34:51]NVStorageSaveData done [20:34:51]ExternCall_PrintAddStr [20:34:51]wPrintStart [20:34:51]Write to MH i2c: 01 00 00 D7 22 F9 [20:34:51]Write i2c OK [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 [20:34:51]MH_I2C_Read... [20:34:51]Read from MH i2c: 01 07 00 D7 22 00 00 00 00 00 FF 0F 0E [20:34:51]RasterBufferAndPrint [20:34:51]line Счет N : (1)594249 [20:34:51]line ИНН: 02508201610067 [20:34:51]line Контрольно-Кассовый Чек [20:34:51]line ПРОДАЖА [20:34:51]line ТРК (МРК, ГНК) : 42 [20:34:51]line Товар: 2710124130 [20:34:51]line Аи-92-К-5 [20:34:51]line 17.700 * 67.80 [20:34:51]line = 1200.06 [20:34:51]line НДС 12% НСП 1% [20:34:51]line > о реализуемом товаре [20:34:51]line ОКРУГЛЕНИЕ: -0.06 [20:34:51]line ИТОГО: 1200.00 [20:34:51]line Внесено: 1200.00 [20:34:51]line СДАЧА: 0.00 [20:34:51]line НСП 1% : 10.62 [20:34:51]line НДС 12% : 127.44 [20:34:51]line Наличными: 1200.00 [20:34:51]line Безнал.: 0.00 [20:34:51]line Место: АЗС № 136 "Партнер Нефть" [20:34:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:34:51]line СНО: Общий режим [20:34:51]line Чек 408 21.08.2024 20:34 [20:34:51]line Смена: 454 ФФД: 1.0 [20:34:51]line ЗНМ: 0300000067 [20:34:51]line РНМ: 0000000000092569 [20:34:51]line Версия ККМ: 001 [20:34:51]line ФМ: 0000000000871776 [20:34:51]line ФД: 140391 [20:34:51]line ФПД: 149524866867046 [20:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203450&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140391&fm=149524866867046&tin=02508201610067®Number=0000000000092569&sum=120000 [20:34:51]written 0, free lines is 4095 [20:34:51]OFD Sender: Processing packet 140391 [packets to send 137, broken 136] [20:34:51]ProducePacketName [20:34:51]name=ofd_packets/00140391 [20:34:51]OFD Sender: To server: pG, [20:34:51]CommunicateWithHost lk.salyk.kg:30040 [20:34:51]ConnectInit lk.salyk.kg [20:34:51]Connected sock=10 [20: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 37 36 0F 01 00 00 4D B0 07 01 8D 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 98 01 00 00 F4 03 04 00 6A 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 67 24 02 00 35 04 06 00 87 FD F8 93 1F 66 BD B1 59 76 D7 8F AB 8E [20: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 37 36 4F 00 00 00 B8 F8 47 00 20 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 37 36 10 04 04 00 67 24 02 00 F4 03 04 00 FA F5 C5 66 B6 04 01 00 00 89 D5 0F 11 AD 9D F4 EB [20:34:52]CommunicateWithHost err = 0 [20:34:52]CheckOFDResponse [20:34:52]1017 (14) - 77093643461234 [20:34:52]1041 (16) - 0000000000871776 [20:34:52]1040 (4) - 140391 [20:34:52]1012 (4) - 21.08.2024 14:13 [20:34:52]1206 (1) - 0 [20:34:52]OFD Sender: Remove packet 140391 [20:34:52]ProducePacketName [20:34:52]name=ofd_packets/00140391 [20:34:52]NVStorageDeleteData [20:34:52]Write to MH i2c: 01 00 00 02 23 25 [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: 01 07 00 02 23 00 00 00 00 00 DD 0C 15 [20:34:52]RasterBufferAndPrint [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]line [20:34:52]written 0, free lines is 3299 [20:34:52]MH_Cut [20:34:52]Write to MH i2c: D1 01 00 09 23 01 FE [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 01 00 [20:34:52]MH_I2C_Read... [20:34:52]Read from MH i2c: D1 01 00 09 23 00 FD [20:34:52]Write to MH i2c: 01 00 00 0A 23 2D [20:34:52]Write i2c OK [20:34:52]MH_I2C_Read... [20:34:52]OFD Sender: No OFD packet to send [20:34:52]*** Cut start [20:34:52]*** Partial cut [20:34:52]*** CUTSNS_PIN = 1 [20:34:52]*** CUTSNS_PIN = 0 [20:34:53]*** Brake cut motor [20:34:53]*** Stop cut motor [20:34:53]*** Cut end [20:34:53]Read from MH i2c: 01 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: 01 07 00 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: 01 07 00 0A 23 00 00 00 00 00 FF 0F 42 [20:34:53]process_action close_receipt done [20:34:53]requested_data is exist [20:34:53]produce_requested_data [20:34:53]requested_item fm.sn is exist - process it [20:34:53]wFMCommunicate request_size=4 [20:34:53]MH_SAM_APDU [20:34:53]CAPDU: 80 11 00 00 [20:34:53]Write to MH i2c: E2 08 00 0B 23 80 11 00 00 00 00 00 00 A8 [20:34:53]Write i2c OK [20:34:53]MH_I2C_Read... [20:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:53]Read from MH i2c: E2 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 17 00 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 17 00 0B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FF [20:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:34:53]wFMCommunicate OK [20:34:53]requested_item fd.num is exist - process it [20:34:53]SAM_PROTO_GetFieldsCounters [20:34:53]wFMCommunicate request_size=4 [20:34:53]MH_SAM_APDU [20:34:53]CAPDU: 80 13 00 00 [20:34:53]Write to MH i2c: E2 08 00 0C 23 80 13 00 00 00 00 00 00 AB [20:34:53]Write i2c OK [20:34:53]MH_I2C_Read... [20:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:53]Read from MH i2c: E2 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 62 00 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 62 00 0C 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 24 02 00 0E 04 04 00 C6 01 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 F5 [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 67 24 02 00 0E 04 04 00 C6 01 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 [20:34:53]wFMCommunicate OK [20:34:53]SAM_PROTO_GetFieldsCounters done [20:34:53]requested_item shift.num is exist - process it [20:34:53]requested_item shift.opened is exist - process it [20:34:53]req_shift_opened [20:34:53]FM_GetShiftState [20:34:53]SAM_PROTO_GetShiftState [20:34:53]wFMCommunicate request_size=4 [20:34:53]MH_SAM_APDU [20:34:53]CAPDU: 80 13 01 00 [20:34:53]Write to MH i2c: E2 08 00 0D 23 80 13 01 00 00 00 00 00 AD [20:34:53]Write i2c OK [20:34:53]MH_I2C_Read... [20:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:53]Read from MH i2c: E2 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 0E 00 [20:34:53]MH_I2C_Read... [20:34:53]Read from MH i2c: E2 0E 00 0D 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2D [20:34:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:34:53]wFMCommunicate OK [20:34:53]SAM_PROTO_GetShiftState done [20:34:53]FM_GetShiftState done [20:34:53]req_shift_opened done [20:34:53]requested_item shift.open_date is exist - process it [20:34:53]req_shift_open_date [20:34:53]req_shift_open_date done [20:34:53]produce_requested_data done [20:34:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140391,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:34:53]process_action_free close_receipt [20:34:53]json_value_free [20:34:53]json_value_free done [20:34:53]process_json_proto returns [20:34:53]Send response to host [20:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140391,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:34:53]free response buf [20:34:53]execute_script done [20:34:53]execute_script returns [20:34:53]free content buf [20:34:53]Sock 7.Close socket [20:34:53]Sock 7.Thread stoped [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:10]accept exits with 9 [20:36:10]New connection [20:36:10]New thread 3067469156 created [20:36:10]Thread 3067612516 joined [20:36:10]Waiting for new connection... [20:36:10] Sock 9.Parse request [20:36:10]Sock 9.Check first char [20:36:10]Sock 9.First char is OK [20:36:10]request: POST /json_proto HTTP/1.0 [20:36:10]Method: POST [20:36:10]URL: /json_proto [20:36:10]Method is POST - this is cgi request [20:36:10]url: /json_proto [20:36:10]query_string will be loaded in cgi processing [20:36:10]execute_cgi json_proto POST (null) [20:36:10]execute_cgi path=json_proto method=POST [20:36:10]POST find Content-Length [20:36:10]Host: 172.17.45.67:8080 [20:36:10]Content-Length: 805 [20:36:10]Content-Type: application/json [20:36:10] [20:36:10]POST finish read [20:36:10]Found Content-Length = 805 [20:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4082164", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:10]execute_script... [20: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)594250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4082164", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:10]POST & json_proto [20:36:10]process_json_proto [20:36:10]json parsed OK: [20:36:10]protocol is kg_v1.0 [20:36:10]action value=close_receipt [20:36:10]process_action close_receipt [20:36:10]cmd_close_receipt [20:36:10]MH_GetDate [20:36:10]Write to MH i2c: F0 00 00 0E 23 20 [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 09 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: F0 09 00 0E 23 00 BB 4F C6 66 5F 7F 2B 66 CE [20:36:10]GetLastDocTimeStamp 1724272490 [20:36:10]current date 1724272571 [20:36:10]FM_GetShiftState [20:36:10]SAM_PROTO_GetShiftState [20:36:10]wFMCommunicate request_size=4 [20:36:10]MH_SAM_APDU [20:36:10]CAPDU: 80 13 01 00 [20:36:10]Write to MH i2c: E2 08 00 0F 23 80 13 01 00 00 00 00 00 AF [20:36:10]Write i2c OK [20:36:10]MH_I2C_Read... [20:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:10]Read from MH i2c: E2 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 [20:36:10]MH_I2C_Read... [20:36:10]Read from MH i2c: E2 0E 00 0F 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2F [20:36:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:36:10]wFMCommunicate OK [20:36:10]SAM_PROTO_GetShiftState done [20:36:10]FM_GetShiftState done [20:36:10]opened in 1724200467 [20:36:10]opened+sec_in_day 1724286867 [20:36:10]quantity*price = 0 [20:36:10]sum+1 = 1 [20:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 409 21.08.2024 20:36 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливные Талоны 4082164 ФМ: 0000000000871776 ФД: 140392 ФПД: 167648579576779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203611&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140392&fm=167648579576779&tin=02508201610067®Number=0000000000092569&sum=0 [20:36:11]StoreToDocumentArchive [20:36:11]shift 454 fd 140392 [20:36:11]save to /storage/0454/doc_00140392 [20:36:11]save last doc name /storage/0454/doc_00140392 to /storage/kkm_last_doc_name [20:36:11]save OK [20:36:11]Clear old archive folders... [20:36:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:36:11]tlvbuf is 00CC8610 [20:36:11]SAM_PROTO_ClearQueue [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 09 00 00 [20:36:11]Write to MH i2c: E2 08 00 1C 23 80 09 00 00 00 00 00 00 B1 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 1C 23 00 90 00 B3 [20:36:11]RAPDU: 90 00 [20:36:11]wFMCommunicate OK [20:36:11]SAM_PROTO_ClearQueue done [20:36:11]KKMCreateOFDPacket [20:36:11]OFDProtocolAddRootSTLVToBuf [20:36:11]FM_MakeSignedData [20:36:11]FM_MakeSignedData [20:36:11]SAM_PROTO_SignData [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 0D 01 02 [20:36:11]Write to MH i2c: E2 08 00 1D 23 80 0D 01 02 00 00 00 00 B9 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 1D 23 00 90 00 B4 [20:36:11]RAPDU: 90 00 [20:36:11]wFMCommunicate OK [20:36:11]wFMCommunicate request_size=255 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 01 00 00 F4 03 04 00 BB 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 24 02 00 35 04 06 00 [20:36:11]Write to MH i2c: E2 02 01 1E 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 01 00 00 F4 03 04 00 BB 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 24 02 00 35 04 06 00 00 00 9B [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 1E 23 00 90 00 B5 [20:36:11]RAPDU: 90 00 [20:36:11]wFMCommunicate OK [20:36:11]wFMCommunicate request_size=11 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 0D 02 02 06 98 79 BA 08 63 CB [20:36:11]Write to MH i2c: E2 0E 00 1F 23 80 0D 02 02 06 00 98 79 BA 08 63 CB 00 00 C9 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 03 00 1F 23 00 90 00 B6 [20:36:11]RAPDU: 90 00 [20:36:11]wFMCommunicate OK [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 0D 03 02 [20:36:11]Write to MH i2c: E2 08 00 20 23 80 0D 03 02 00 00 00 00 BE [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 0B 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 0B 00 20 23 00 23 39 0B 3C 25 0A 97 6C 90 00 94 [20:36:11]RAPDU: 23 39 0B 3C 25 0A 97 6C 90 00 [20:36:11]wFMCommunicate OK [20:36:11]SAM_PROTO_SignData done [20:36:11]FM_MakeSignedData done [20:36:11]CreateOFDProtocolMessage [20:36:11]wFMCommunicate request_size=4 [20:36:11]MH_SAM_APDU [20:36:11]CAPDU: 80 11 00 00 [20:36:11]Write to MH i2c: E2 08 00 21 23 80 11 00 00 00 00 00 00 BE [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:11]Read from MH i2c: E2 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 17 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: E2 17 00 21 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 15 [20:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:36:11]wFMCommunicate OK [20:36:11]CreateOFDProtocolMessage done [20:36:11]OFDSenderStorePacket 140392 [20:36:11]StoreOFDPacket docnum=140392 [20:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 90 18 08 01 02 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 01 00 00 F4 03 04 00 BB 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 24 02 00 35 04 06 00 98 79 BA 08 63 CB 23 39 0B 3C 25 0A 97 6C [20:36:11]CheckFolder [20:36:11]dirname=/storage/ofd_packets [20:36:11]CheckFolder done [20:36:11]ProducePacketName [20:36:11]name=ofd_packets/00140392 [20:36:11]NVStorageSaveData ofd_packets/00140392 [20:36:11]File name is /storage/ofd_packets/00140392 [20:36:11]Write 302 bytes [20:36:11]NVStorageSaveData done [20:36:11]OFDSenderStorePacket done [20:36:11]KKMCreateOFDPacket done [20:36:11]NVStorageSaveData kkm_last_timestamp [20:36:11]File name is /storage/kkm_last_timestamp [20:36:11]Write 4 bytes [20:36:11]NVStorageSaveData done [20:36:11]ExternCall_PrintAddStr [20:36:11]wPrintStart [20:36:11]Write to MH i2c: 01 00 00 22 23 45 [20:36:11]Write i2c OK [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 07 00 [20:36:11]MH_I2C_Read... [20:36:11]Read from MH i2c: 01 07 00 22 23 00 00 00 00 00 FF 0F 5A [20:36:11]RasterBufferAndPrint [20:36:11]line Счет N : (1)594250 [20:36:11]line ИНН: 02508201610067 [20:36:11]line Контрольно-Кассовый Чек [20:36:11]line ПРОДАЖА [20:36:11]line ТРК (МРК, ГНК) : 64 [20:36:11]line Товар: 2710194210 [20:36:11]line ДТ(л)-К-5 [20:36:11]line 20.000 * 0.00 [20:36:11]line = 0.00 [20:36:11]line НДС 12% НСП 1% [20:36:11]line > о реализуемом товаре [20:36:11]line ИТОГО: 0.00 [20:36:11]line НСП 1% : 0.00 [20:36:11]line НДС 12% : 0.00 [20:36:11]line Наличными: 0.00 [20:36:11]line Безнал.: 0.00 [20:36:11]line Место: АЗС № 136 "Партнер Нефть" [20:36:11]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:36:11]line СНО: Общий режим [20:36:11]line Чек 409 21.08.2024 20:36 [20:36:11]line Смена: 454 ФФД: 1.0 [20:36:11]line ЗНМ: 0300000067 [20:36:11]line РНМ: 0000000000092569 [20:36:11]line Версия ККМ: 001 [20:36:11]line Талоны: Топливные Талоны [20:36:11]line 4082164 [20:36:11]line ФМ: 0000000000871776 [20:36:11]line ФД: 140392 [20:36:11]line ФПД: 167648579576779 [20:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T203611&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140392&fm=167648579576779&tin=02508201610067®Number=0000000000092569&sum=0 [20:36:12]written 0, free lines is 4095 [20:36:12]OFD Sender: Processing packet 140392 [packets to send 137, broken 136] [20:36:12]ProducePacketName [20:36:12]name=ofd_packets/00140392 [20:36:12]OFD Sender: To server: pG, [20:36:12]CommunicateWithHost lk.salyk.kg:30040 [20:36:12]ConnectInit lk.salyk.kg [20:36:12]Connected sock=10 [20: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 37 36 10 01 00 00 90 18 08 01 02 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 01 00 00 F4 03 04 00 BB 4F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 68 24 02 00 35 04 06 00 98 79 BA 08 63 CB 23 39 0B 3C 25 0A 97 6C [20: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 37 36 4F 00 00 00 D0 AC 47 00 78 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 37 36 10 04 04 00 68 24 02 00 F4 03 04 00 4B F6 C5 66 B6 04 01 00 00 FB EC 30 18 DE CE 8E A1 [20:36:12]CommunicateWithHost err = 0 [20:36:12]CheckOFDResponse [20:36:12]1017 (14) - 77093643461234 [20:36:12]1041 (16) - 0000000000871776 [20:36:12]1040 (4) - 140392 [20:36:12]1012 (4) - 21.08.2024 14:14 [20:36:12]1206 (1) - 0 [20:36:12]OFD Sender: Remove packet 140392 [20:36:12]ProducePacketName [20:36:12]name=ofd_packets/00140392 [20:36:12]NVStorageDeleteData [20:36:12]Write to MH i2c: 01 00 00 4C 23 6F [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 07 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: 01 07 00 4C 23 00 00 00 00 00 E4 0C 66 [20:36:12]RasterBufferAndPrint [20:36:12]line [20:36:12]line [20:36:12]line [20:36:12]line [20:36:12]line [20:36:12]written 0, free lines is 3306 [20:36:12]MH_Cut [20:36:12]Write to MH i2c: D1 01 00 53 23 01 48 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: D1 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: D1 01 00 [20:36:12]MH_I2C_Read... [20:36:12]Read from MH i2c: D1 01 00 53 23 00 47 [20:36:12]Write to MH i2c: 01 00 00 54 23 77 [20:36:12]Write i2c OK [20:36:12]MH_I2C_Read... [20:36:13]OFD Sender: No OFD packet to send [20:36:13]*** Cut start [20:36:13]*** Partial cut [20:36:13]*** CUTSNS_PIN = 1 [20:36:13]*** CUTSNS_PIN = 0 [20:36:13]*** Brake cut motor [20:36:13]Read from MH i2c: 01 [20:36:13]MH_I2C_Read... [20:36:13]*** Stop cut motor [20:36:13]*** Cut end [20:36:13]Read from MH i2c: 01 07 00 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: 01 07 00 54 23 00 00 00 00 00 FF 0F 8C [20:36:13]process_action close_receipt done [20:36:13]requested_data is exist [20:36:13]produce_requested_data [20:36:13]requested_item fm.sn is exist - process it [20:36:13]wFMCommunicate request_size=4 [20:36:13]MH_SAM_APDU [20:36:13]CAPDU: 80 11 00 00 [20:36:13]Write to MH i2c: E2 08 00 55 23 80 11 00 00 00 00 00 00 F2 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:13]Read from MH i2c: E2 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: E2 17 00 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: E2 17 00 55 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 49 [20:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:36:13]wFMCommunicate OK [20:36:13]requested_item fd.num is exist - process it [20:36:13]SAM_PROTO_GetFieldsCounters [20:36:13]wFMCommunicate request_size=4 [20:36:13]MH_SAM_APDU [20:36:13]CAPDU: 80 13 00 00 [20:36:13]Write to MH i2c: E2 08 00 56 23 80 13 00 00 00 00 00 00 F5 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 62 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 62 00 56 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 24 02 00 0E 04 04 00 C6 01 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 43 [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 68 24 02 00 0E 04 04 00 C6 01 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 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetFieldsCounters done [20:36:14]requested_item shift.num is exist - process it [20:36:14]requested_item shift.opened is exist - process it [20:36:14]req_shift_opened [20:36:14]FM_GetShiftState [20:36:14]SAM_PROTO_GetShiftState [20:36:14]wFMCommunicate request_size=4 [20:36:14]MH_SAM_APDU [20:36:14]CAPDU: 80 13 01 00 [20:36:14]Write to MH i2c: E2 08 00 57 23 80 13 01 00 00 00 00 00 F7 [20:36:14]*** FLAG_PRN_KEY set [20:36:14]int [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 57 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 77 [20:36:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetShiftState done [20:36:14]FM_GetShiftState done [20:36:14]req_shift_opened done [20:36:14]requested_item shift.open_date is exist - process it [20:36:14]req_shift_open_date [20:36:14]req_shift_open_date done [20:36:14]produce_requested_data done [20:36:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140392,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:36:14]process_action_free close_receipt [20:36:14]json_value_free [20:36:14]json_value_free done [20:36:14]process_json_proto returns [20:36:14]Send response to host [20:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140392,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:36:14]free response buf [20:36:14]execute_script done [20:36:14]execute_script returns [20:36:14]free content buf [20:36:14]Sock 9.Close socket [20:36:14]Sock 9.Thread stoped [20:36:14]Write to MH i2c: 01 00 00 58 23 7B [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 58 23 00 08 00 00 00 FF 0F 98 [20:36:14]state=0 [20:36:14]Key pressed [20:36:14]Feed [20:36:14]Write to MH i2c: D8 00 00 59 23 53 [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: D8 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: D8 01 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: D8 01 00 59 23 00 54 [20:36:14]int [20:36:14]Write to MH i2c: 01 00 00 5A 23 7D [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 5A 23 00 48 00 00 00 3C 00 08 [20:36:14]state=2 [20:36:14]Key pressed [20:36:14]int [20:36:14]Write to MH i2c: 01 00 00 5B 23 7E [20:36:14]*** FLAG_PRN_KEY reset [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 F6 0F 8A [20:36:14]state=2 [20:36:14]Stop feed [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:49]accept exits with 7 [20:41:49]New connection [20:41:49]New thread 3067612516 created [20:41:49]Thread 3067469156 joined [20:41:49]Waiting for new connection... [20:41:49] Sock 7.Parse request [20:41:49]Sock 7.Check first char [20:41:49]Sock 7.First char is OK [20:41:49]request: POST /json_proto HTTP/1.0 [20:41:49]Method: POST [20:41:49]URL: /json_proto [20:41:49]Method is POST - this is cgi request [20:41:49]url: /json_proto [20:41:49]query_string will be loaded in cgi processing [20:41:49]execute_cgi json_proto POST (null) [20:41:49]execute_cgi path=json_proto method=POST [20:41:49]POST find Content-Length [20:41:49]Host: 172.17.45.67:8080 [20:41:49]Content-Length: 683 [20:41:49]Content-Type: application/json [20:41:49] [20:41:49]POST finish read [20:41:49]Found Content-Length = 683 [20:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:41:49]execute_script... [20:41: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)594252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:41:49]POST & json_proto [20:41:49]process_json_proto [20:41:49]json parsed OK: [20:41:49]protocol is kg_v1.0 [20:41:49]action value=close_receipt [20:41:49]process_action close_receipt [20:41:49]cmd_close_receipt [20:41:49]MH_GetDate [20:41:49]Write to MH i2c: F0 00 00 5C 23 6E [20:41:49]Write i2c OK [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: F0 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: F0 09 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: F0 09 00 5C 23 00 0E 51 C6 66 5F 7F 2B 66 71 [20:41:49]GetLastDocTimeStamp 1724272571 [20:41:49]current date 1724272910 [20:41:49]FM_GetShiftState [20:41:49]SAM_PROTO_GetShiftState [20:41:49]wFMCommunicate request_size=4 [20:41:49]MH_SAM_APDU [20:41:49]CAPDU: 80 13 01 00 [20:41:49]Write to MH i2c: E2 08 00 5D 23 80 13 01 00 00 00 00 00 FD [20:41:49]Write i2c OK [20:41:49]MH_I2C_Read... [20:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:49]Read from MH i2c: E2 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 0E 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 0E 00 5D 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7D [20:41:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:41:49]wFMCommunicate OK [20:41:49]SAM_PROTO_GetShiftState done [20:41:49]FM_GetShiftState done [20:41:49]opened in 1724200467 [20:41:49]opened+sec_in_day 1724286867 [20:41:49]quantity*price = 80010 [20:41:49]sum+1 = 80011 [20:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 410 21.08.2024 20:41 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140393 ФПД: 86126364363283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T204150&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140393&fm=86126364363283&tin=02508201610067®Number=0000000000092569&sum=80000 [20:41:50]StoreToDocumentArchive [20:41:50]shift 454 fd 140393 [20:41:50]save to /storage/0454/doc_00140393 [20:41:50]save last doc name /storage/0454/doc_00140393 to /storage/kkm_last_doc_name [20:41:50]save OK [20:41:50]Clear old archive folders... [20:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:41:50]tlvbuf is 00C6A9B0 [20:41:50]SAM_PROTO_ClearQueue [20:41:50]wFMCommunicate request_size=4 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 09 00 00 [20:41:50]Write to MH i2c: E2 08 00 6A 23 80 09 00 00 00 00 00 00 FF [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [20:41:50]RAPDU: 90 00 [20:41:50]wFMCommunicate OK [20:41:50]SAM_PROTO_ClearQueue done [20:41:50]KKMCreateOFDPacket [20:41:50]OFDProtocolAddRootSTLVToBuf [20:41:50]FM_MakeSignedData [20:41:50]FM_MakeSignedData [20:41:50]SAM_PROTO_SignData [20:41:50]wFMCommunicate request_size=4 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 0D 01 02 [20:41:50]Write to MH i2c: E2 08 00 6B 23 80 0D 01 02 00 00 00 00 07 [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [20:41:50]RAPDU: 90 00 [20:41:50]wFMCommunicate OK [20:41:50]wFMCommunicate request_size=255 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9A 01 00 00 F4 03 04 00 0E 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 24 02 00 35 04 06 00 [20:41:50]Write to MH i2c: E2 02 01 6C 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9A 01 00 00 F4 03 04 00 0E 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 24 02 00 35 04 06 00 00 00 2D [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:50]Read from MH i2c: E2 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 [20:41:50]MH_I2C_Read... [20:41:50]Read from MH i2c: E2 03 00 6C 23 00 90 00 03 [20:41:50]RAPDU: 90 00 [20:41:50]wFMCommunicate OK [20:41:50]wFMCommunicate request_size=11 [20:41:50]MH_SAM_APDU [20:41:50]CAPDU: 80 0D 02 02 06 4E 54 DB 5A 8A 13 [20:41:50]Write to MH i2c: E2 0E 00 6D 23 80 0D 02 02 06 00 4E 54 DB 5A 8A 13 00 00 8A [20:41:50]Write i2c OK [20:41:50]MH_I2C_Read... [20:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:51]Read from MH i2c: E2 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 03 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [20:41:51]RAPDU: 90 00 [20:41:51]wFMCommunicate OK [20:41:51]wFMCommunicate request_size=4 [20:41:51]MH_SAM_APDU [20:41:51]CAPDU: 80 0D 03 02 [20:41:51]Write to MH i2c: E2 08 00 6E 23 80 0D 03 02 00 00 00 00 0C [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:51]Read from MH i2c: E2 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0B 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0B 00 6E 23 00 81 DC 0A BA 6E 85 ED C5 90 00 D3 [20:41:51]RAPDU: 81 DC 0A BA 6E 85 ED C5 90 00 [20:41:51]wFMCommunicate OK [20:41:51]SAM_PROTO_SignData done [20:41:51]FM_MakeSignedData done [20:41:51]CreateOFDProtocolMessage [20:41:51]wFMCommunicate request_size=4 [20:41:51]MH_SAM_APDU [20:41:51]CAPDU: 80 11 00 00 [20:41:51]Write to MH i2c: E2 08 00 6F 23 80 11 00 00 00 00 00 00 0C [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:51]Read from MH i2c: E2 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 17 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 17 00 6F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 63 [20:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:41:51]wFMCommunicate OK [20:41:51]CreateOFDProtocolMessage done [20:41:51]OFDSenderStorePacket 140393 [20:41:51]StoreOFDPacket docnum=140393 [20:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F8 23 08 01 FA 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9A 01 00 00 F4 03 04 00 0E 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 24 02 00 35 04 06 00 4E 54 DB 5A 8A 13 81 DC 0A BA 6E 85 ED C5 [20:41:51]CheckFolder [20:41:51]dirname=/storage/ofd_packets [20:41:51]CheckFolder done [20:41:51]ProducePacketName [20:41:51]name=ofd_packets/00140393 [20:41:51]NVStorageSaveData ofd_packets/00140393 [20:41:51]File name is /storage/ofd_packets/00140393 [20:41:51]Write 302 bytes [20:41:51]NVStorageSaveData done [20:41:51]OFDSenderStorePacket done [20:41:51]KKMCreateOFDPacket done [20:41:51]NVStorageSaveData kkm_last_timestamp [20:41:51]File name is /storage/kkm_last_timestamp [20:41:51]Write 4 bytes [20:41:51]NVStorageSaveData done [20:41:51]ExternCall_PrintAddStr [20:41:51]wPrintStart [20:41:51]Write to MH i2c: 01 00 00 70 23 93 [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 07 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 07 00 70 23 00 00 00 00 00 FF 0F A8 [20:41:51]RasterBufferAndPrint [20:41:51]line Счет N : (1)594252 [20:41:51]line ИНН: 02508201610067 [20:41:51]line Контрольно-Кассовый Чек [20:41:51]line ПРОДАЖА [20:41:51]line ТРК (МРК, ГНК) : 44 [20:41:51]line Товар: 2710194210 [20:41:51]line ДТ(л)-К-5 [20:41:51]line 10.500 * 76.20 [20:41:51]line = 800.10 [20:41:51]line НДС 12% НСП 1% [20:41:51]line > о реализуемом товаре [20:41:51]line ОКРУГЛЕНИЕ: -0.10 [20:41:51]line ИТОГО: 800.00 [20:41:51]line Внесено: 800.00 [20:41:51]line СДАЧА: 0.00 [20:41:51]line НСП 1% : 7.08 [20:41:51]line НДС 12% : 84.97 [20:41:51]line Наличными: 800.00 [20:41:51]line Безнал.: 0.00 [20:41:51]line Место: АЗС № 136 "Партнер Нефть" [20:41:51]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:41:51]line СНО: Общий режим [20:41:51]line Чек 410 21.08.2024 20:41 [20:41:51]line Смена: 454 ФФД: 1.0 [20:41:51]line ЗНМ: 0300000067 [20:41:51]line РНМ: 0000000000092569 [20:41:51]line Версия ККМ: 001 [20:41:51]line ФМ: 0000000000871776 [20:41:51]line ФД: 140393 [20:41:51]line ФПД: 86126364363283 [20:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T204150&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140393&fm=86126364363283&tin=02508201610067®Number=0000000000092569&sum=80000 [20:41:51]OFD Sender: Processing packet 140393 [packets to send 137, broken 136] [20:41:51]ProducePacketName [20:41:51]name=ofd_packets/00140393 [20:41:51]OFD Sender: To server: pG, [20:41:51]CommunicateWithHost lk.salyk.kg:30040 [20:41:51]ConnectInit lk.salyk.kg [20:41:51]written 0, free lines is 4095 [20:41:51]Connected sock=10 [20:41: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 37 36 10 01 00 00 F8 23 08 01 FA 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9A 01 00 00 F4 03 04 00 0E 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 24 02 00 35 04 06 00 4E 54 DB 5A 8A 13 81 DC 0A BA 6E 85 ED C5 [20:41: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 37 36 4F 00 00 00 52 05 47 00 9C A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 69 24 02 00 F4 03 04 00 9E F7 C5 66 B6 04 01 00 00 91 6F E2 20 0E F7 65 C3 [20:41:51]CommunicateWithHost err = 0 [20:41:51]CheckOFDResponse [20:41:51]1017 (14) - 77093643461234 [20:41:51]1041 (16) - 0000000000871776 [20:41:51]1040 (4) - 140393 [20:41:51]1012 (4) - 21.08.2024 14:20 [20:41:51]1206 (1) - 0 [20:41:51]OFD Sender: Remove packet 140393 [20:41:51]ProducePacketName [20:41:51]name=ofd_packets/00140393 [20:41:51]NVStorageDeleteData [20:41:51]Write to MH i2c: 01 00 00 9B 23 BE [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 07 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 F0 0C C1 [20:41:51]RasterBufferAndPrint [20:41:51]line [20:41:51]line [20:41:51]line [20:41:51]line [20:41:51]line [20:41:51]written 0, free lines is 3318 [20:41:51]MH_Cut [20:41:51]Write to MH i2c: D1 01 00 A2 23 01 97 [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: D1 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: D1 01 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: D1 01 00 A2 23 00 96 [20:41:51]Write to MH i2c: 01 00 00 A3 23 C6 [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:52]OFD Sender: No OFD packet to send [20:41:52]*** Cut start [20:41:52]*** Partial cut [20:41:52]*** CUTSNS_PIN = 1 [20:41:52]*** CUTSNS_PIN = 0 [20:41:52]*** Brake cut motor [20:41:53]Read from MH i2c: 01 [20:41:53]MH_I2C_Read... [20:41:53]*** Stop cut motor [20:41:53]*** Cut end [20:41:53]Read from MH i2c: 01 07 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 FF 0F DB [20:41:53]process_action close_receipt done [20:41:53]requested_data is exist [20:41:53]produce_requested_data [20:41:53]requested_item fm.sn is exist - process it [20:41:53]wFMCommunicate request_size=4 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 11 00 00 [20:41:53]Write to MH i2c: E2 08 00 A4 23 80 11 00 00 00 00 00 00 41 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 17 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 17 00 A4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 98 [20:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:41:53]wFMCommunicate OK [20:41:53]requested_item fd.num is exist - process it [20:41:53]SAM_PROTO_GetFieldsCounters [20:41:53]wFMCommunicate request_size=4 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 13 00 00 [20:41:53]Write to MH i2c: E2 08 00 A5 23 80 13 00 00 00 00 00 00 44 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 62 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 62 00 A5 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 24 02 00 0E 04 04 00 C6 01 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 96 [20:41: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 69 24 02 00 0E 04 04 00 C6 01 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 [20:41:53]wFMCommunicate OK [20:41:53]SAM_PROTO_GetFieldsCounters done [20:41:53]requested_item shift.num is exist - process it [20:41:53]requested_item shift.opened is exist - process it [20:41:53]req_shift_opened [20:41:53]FM_GetShiftState [20:41:53]SAM_PROTO_GetShiftState [20:41:53]wFMCommunicate request_size=4 [20:41:53]MH_SAM_APDU [20:41:53]CAPDU: 80 13 01 00 [20:41:53]Write to MH i2c: E2 08 00 A6 23 80 13 01 00 00 00 00 00 46 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:53]Read from MH i2c: E2 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 0E 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: E2 0E 00 A6 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [20:41:53]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:41:53]wFMCommunicate OK [20:41:53]SAM_PROTO_GetShiftState done [20:41:53]FM_GetShiftState done [20:41:53]req_shift_opened done [20:41:53]requested_item shift.open_date is exist - process it [20:41:53]req_shift_open_date [20:41:53]req_shift_open_date done [20:41:53]produce_requested_data done [20:41:53]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140393,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:41:53]process_action_free close_receipt [20:41:53]json_value_free [20:41:53]json_value_free done [20:41:53]process_json_proto returns [20:41:53]Send response to host [20:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140393,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:41:53]free response buf [20:41:53]execute_script done [20:41:53]execute_script returns [20:41:53]free content buf [20:41:53]Sock 7.Close socket [20:41:53]Sock 7.Thread stoped [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:26]accept exits with 9 [20:42:26]New connection [20:42:26]New thread 3067469156 created [20:42:26]Thread 3067612516 joined [20:42:26]Waiting for new connection... [20:42:26] Sock 9.Parse request [20:42:26]Sock 9.Check first char [20:42:26]Sock 9.First char is OK [20:42:26]request: POST /json_proto HTTP/1.0 [20:42:26]Method: POST [20:42:26]URL: /json_proto [20:42:26]Method is POST - this is cgi request [20:42:26]url: /json_proto [20:42:26]query_string will be loaded in cgi processing [20:42:26]execute_cgi json_proto POST (null) [20:42:26]execute_cgi path=json_proto method=POST [20:42:26]POST find Content-Length [20:42:26]Host: 172.17.45.67:8080 [20:42:26]Content-Length: 687 [20:42:26]Content-Type: application/json [20:42:26] [20:42:26]POST finish read [20:42:26]Found Content-Length = 687 [20:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:26]execute_script... [20:42:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:26]POST & json_proto [20:42:26]process_json_proto [20:42:26]json parsed OK: [20:42:26]protocol is kg_v1.0 [20:42:26]action value=close_receipt [20:42:26]process_action close_receipt [20:42:26]cmd_close_receipt [20:42:26]MH_GetDate [20:42:26]Write to MH i2c: F0 00 00 A7 23 B9 [20:42:26]Write i2c OK [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: F0 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: F0 09 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: F0 09 00 A7 23 00 33 51 C6 66 5F 7F 2B 66 E1 [20:42:26]GetLastDocTimeStamp 1724272910 [20:42:26]current date 1724272947 [20:42:26]FM_GetShiftState [20:42:26]SAM_PROTO_GetShiftState [20:42:26]wFMCommunicate request_size=4 [20:42:26]MH_SAM_APDU [20:42:26]CAPDU: 80 13 01 00 [20:42:26]Write to MH i2c: E2 08 00 A8 23 80 13 01 00 00 00 00 00 48 [20:42:26]Write i2c OK [20:42:26]MH_I2C_Read... [20:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:26]Read from MH i2c: E2 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 0E 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 0E 00 A8 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C8 [20:42:26]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:42:26]wFMCommunicate OK [20:42:26]SAM_PROTO_GetShiftState done [20:42:26]FM_GetShiftState done [20:42:26]opened in 1724200467 [20:42:26]opened+sec_in_day 1724286867 [20:42:26]quantity*price = 200025 [20:42:26]sum+1 = 200026 [20:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 411 21.08.2024 20:42 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140394 ФПД: 249995732706347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T204227&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140394&fm=249995732706347&tin=02508201610067®Number=0000000000092569&sum=200000 [20:42:27]StoreToDocumentArchive [20:42:27]shift 454 fd 140394 [20:42:27]save to /storage/0454/doc_00140394 [20:42:27]save last doc name /storage/0454/doc_00140394 to /storage/kkm_last_doc_name [20:42:27]save OK [20:42:27]Clear old archive folders... [20:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:42:27]tlvbuf is 00C27190 [20:42:27]SAM_PROTO_ClearQueue [20:42:27]wFMCommunicate request_size=4 [20:42:27]MH_SAM_APDU [20:42:27]CAPDU: 80 09 00 00 [20:42:27]Write to MH i2c: E2 08 00 B5 23 80 09 00 00 00 00 00 00 4A [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:27]Read from MH i2c: E2 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [20:42:27]RAPDU: 90 00 [20:42:27]wFMCommunicate OK [20:42:27]SAM_PROTO_ClearQueue done [20:42:27]KKMCreateOFDPacket [20:42:27]OFDProtocolAddRootSTLVToBuf [20:42:27]FM_MakeSignedData [20:42:27]FM_MakeSignedData [20:42:27]SAM_PROTO_SignData [20:42:27]wFMCommunicate request_size=4 [20:42:27]MH_SAM_APDU [20:42:27]CAPDU: 80 0D 01 02 [20:42:27]Write to MH i2c: E2 08 00 B6 23 80 0D 01 02 00 00 00 00 52 [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:27]Read from MH i2c: E2 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 B6 23 00 90 00 4D [20:42:27]RAPDU: 90 00 [20:42:27]wFMCommunicate OK [20:42:27]wFMCommunicate request_size=255 [20:42:27]MH_SAM_APDU [20:42:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 01 00 00 F4 03 04 00 33 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 24 02 00 35 04 06 00 [20:42:27]Write to MH i2c: E2 02 01 B7 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 01 00 00 F4 03 04 00 33 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 24 02 00 35 04 06 00 00 00 5A [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:27]Read from MH i2c: E2 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 B7 23 00 90 00 4E [20:42:27]RAPDU: 90 00 [20:42:27]wFMCommunicate OK [20:42:27]wFMCommunicate request_size=11 [20:42:27]MH_SAM_APDU [20:42:27]CAPDU: 80 0D 02 02 06 E3 5E AA D7 E4 2B [20:42:27]Write to MH i2c: E2 0E 00 B8 23 80 0D 02 02 06 00 E3 5E AA D7 E4 2B 00 00 32 [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:27]Read from MH i2c: E2 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 [20:42:27]MH_I2C_Read... [20:42:27]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [20:42:27]RAPDU: 90 00 [20:42:27]wFMCommunicate OK [20:42:27]wFMCommunicate request_size=4 [20:42:27]MH_SAM_APDU [20:42:27]CAPDU: 80 0D 03 02 [20:42:27]Write to MH i2c: E2 08 00 B9 23 80 0D 03 02 00 00 00 00 57 [20:42:27]Write i2c OK [20:42:27]MH_I2C_Read... [20:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:28]Read from MH i2c: E2 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: E2 0B 00 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: E2 0B 00 B9 23 00 BD D5 0E 1F BF BC 36 5D 90 00 25 [20:42:28]RAPDU: BD D5 0E 1F BF BC 36 5D 90 00 [20:42:28]wFMCommunicate OK [20:42:28]SAM_PROTO_SignData done [20:42:28]FM_MakeSignedData done [20:42:28]CreateOFDProtocolMessage [20:42:28]wFMCommunicate request_size=4 [20:42:28]MH_SAM_APDU [20:42:28]CAPDU: 80 11 00 00 [20:42:28]Write to MH i2c: E2 08 00 BA 23 80 11 00 00 00 00 00 00 57 [20:42:28]Write i2c OK [20:42:28]MH_I2C_Read... [20:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:28]Read from MH i2c: E2 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: E2 17 00 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: E2 17 00 BA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AE [20:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:42:28]wFMCommunicate OK [20:42:28]CreateOFDProtocolMessage done [20:42:28]OFDSenderStorePacket 140394 [20:42:28]StoreOFDPacket docnum=140394 [20:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 45 4F 08 01 68 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 01 00 00 F4 03 04 00 33 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 24 02 00 35 04 06 00 E3 5E AA D7 E4 2B BD D5 0E 1F BF BC 36 5D [20:42:28]CheckFolder [20:42:28]dirname=/storage/ofd_packets [20:42:28]CheckFolder done [20:42:28]ProducePacketName [20:42:28]name=ofd_packets/00140394 [20:42:28]NVStorageSaveData ofd_packets/00140394 [20:42:28]File name is /storage/ofd_packets/00140394 [20:42:28]Write 302 bytes [20:42:28]NVStorageSaveData done [20:42:28]OFDSenderStorePacket done [20:42:28]KKMCreateOFDPacket done [20:42:28]NVStorageSaveData kkm_last_timestamp [20:42:28]File name is /storage/kkm_last_timestamp [20:42:28]Write 4 bytes [20:42:28]NVStorageSaveData done [20:42:28]ExternCall_PrintAddStr [20:42:28]wPrintStart [20:42:28]Write to MH i2c: 01 00 00 BB 23 DE [20:42:28]Write i2c OK [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 07 00 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 07 00 BB 23 00 00 00 00 00 FF 0F F3 [20:42:28]RasterBufferAndPrint [20:42:28]line Счет N : (1)594251 [20:42:28]line ИНН: 02508201610067 [20:42:28]line Контрольно-Кассовый Чек [20:42:28]line ПРОДАЖА [20:42:28]line ТРК (МРК, ГНК) : 34 [20:42:28]line Товар: 2710194210 [20:42:28]line ДТ(л)-К-5 [20:42:28]line 26.250 * 76.20 [20:42:28]line = 2000.25 [20:42:28]line НДС 12% НСП 1% [20:42:28]line > о реализуемом товаре [20:42:28]line ОКРУГЛЕНИЕ: -0.25 [20:42:28]line ИТОГО: 2000.00 [20:42:28]line Внесено: 2000.00 [20:42:28]line СДАЧА: 0.00 [20:42:28]line НСП 1% : 17.70 [20:42:28]line НДС 12% : 212.42 [20:42:28]line Наличными: 2000.00 [20:42:28]line Безнал.: 0.00 [20:42:28]line Место: АЗС № 136 "Партнер Нефть" [20:42:28]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:42:28]line СНО: Общий режим [20:42:28]line Чек 411 21.08.2024 20:42 [20:42:28]line Смена: 454 ФФД: 1.0 [20:42:28]line ЗНМ: 0300000067 [20:42:28]line РНМ: 0000000000092569 [20:42:28]line Версия ККМ: 001 [20:42:28]line ФМ: 0000000000871776 [20:42:28]line ФД: 140394 [20:42:28]line ФПД: 249995732706347 [20:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T204227&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140394&fm=249995732706347&tin=02508201610067®Number=0000000000092569&sum=200000 [20:42:28]OFD Sender: Processing packet 140394 [packets to send 137, broken 136] [20:42:28]ProducePacketName [20:42:28]name=ofd_packets/00140394 [20:42:28]OFD Sender: To server: pG, [20:42:28]CommunicateWithHost lk.salyk.kg:30040 [20:42:28]ConnectInit lk.salyk.kg [20:42:28]written 0, free lines is 4095 [20:42:28]Connected sock=10 [20:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 45 4F 08 01 68 B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 01 00 00 F4 03 04 00 33 51 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 24 02 00 35 04 06 00 E3 5E AA D7 E4 2B BD D5 0E 1F BF BC 36 5D [20:42: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 37 36 4F 00 00 00 8D 25 47 00 08 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6A 24 02 00 F4 03 04 00 C3 F7 C5 66 B6 04 01 00 00 64 47 73 56 43 D7 5C 60 [20:42:28]CommunicateWithHost err = 0 [20:42:28]CheckOFDResponse [20:42:28]1017 (14) - 77093643461234 [20:42:28]1041 (16) - 0000000000871776 [20:42:28]1040 (4) - 140394 [20:42:28]1012 (4) - 21.08.2024 14:20 [20:42:28]1206 (1) - 0 [20:42:28]OFD Sender: Remove packet 140394 [20:42:28]ProducePacketName [20:42:28]name=ofd_packets/00140394 [20:42:28]NVStorageDeleteData [20:42:28]Write to MH i2c: 01 00 00 E6 23 09 [20:42:28]Write i2c OK [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 07 00 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: 01 07 00 E6 23 00 00 00 00 00 ED 0C 09 [20:42:28]RasterBufferAndPrint [20:42:28]line [20:42:28]line [20:42:28]line [20:42:28]line [20:42:28]line [20:42:28]written 0, free lines is 3318 [20:42:28]MH_Cut [20:42:28]Write to MH i2c: D1 01 00 ED 23 01 E2 [20:42:28]Write i2c OK [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: D1 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: D1 01 00 [20:42:28]MH_I2C_Read... [20:42:28]Read from MH i2c: D1 01 00 ED 23 00 E1 [20:42:28]Write to MH i2c: 01 00 00 EE 23 11 [20:42:28]Write i2c OK [20:42:28]MH_I2C_Read... [20:42:29]OFD Sender: No OFD packet to send [20:42:29]*** Cut start [20:42:29]*** Partial cut [20:42:29]*** CUTSNS_PIN = 1 [20:42:29]*** CUTSNS_PIN = 0 [20:42:29]*** Brake cut motor [20:42:30]Read from MH i2c: 01 [20:42:30]MH_I2C_Read... [20:42:30]*** Stop cut motor [20:42:30]*** Cut end [20:42:30]Read from MH i2c: 01 07 00 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: 01 07 00 EE 23 00 00 00 00 00 FF 0F 26 [20:42:30]process_action close_receipt done [20:42:30]requested_data is exist [20:42:30]produce_requested_data [20:42:30]requested_item fm.sn is exist - process it [20:42:30]wFMCommunicate request_size=4 [20:42:30]MH_SAM_APDU [20:42:30]CAPDU: 80 11 00 00 [20:42:30]Write to MH i2c: E2 08 00 EF 23 80 11 00 00 00 00 00 00 8C [20:42:30]Write i2c OK [20:42:30]MH_I2C_Read... [20:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:30]Read from MH i2c: E2 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 17 00 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 17 00 EF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E3 [20:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:42:30]wFMCommunicate OK [20:42:30]requested_item fd.num is exist - process it [20:42:30]SAM_PROTO_GetFieldsCounters [20:42:30]wFMCommunicate request_size=4 [20:42:30]MH_SAM_APDU [20:42:30]CAPDU: 80 13 00 00 [20:42:30]Write to MH i2c: E2 08 00 F0 23 80 13 00 00 00 00 00 00 8F [20:42:30]Write i2c OK [20:42:30]MH_I2C_Read... [20:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:30]Read from MH i2c: E2 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 62 00 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 62 00 F0 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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 24 02 00 0E 04 04 00 C6 01 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 E5 [20:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6A 24 02 00 0E 04 04 00 C6 01 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 [20:42:30]wFMCommunicate OK [20:42:30]SAM_PROTO_GetFieldsCounters done [20:42:30]requested_item shift.num is exist - process it [20:42:30]requested_item shift.opened is exist - process it [20:42:30]req_shift_opened [20:42:30]FM_GetShiftState [20:42:30]SAM_PROTO_GetShiftState [20:42:30]wFMCommunicate request_size=4 [20:42:30]MH_SAM_APDU [20:42:30]CAPDU: 80 13 01 00 [20:42:30]Write to MH i2c: E2 08 00 F1 23 80 13 01 00 00 00 00 00 91 [20:42:30]Write i2c OK [20:42:30]MH_I2C_Read... [20:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:30]Read from MH i2c: E2 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 0E 00 [20:42:30]MH_I2C_Read... [20:42:30]Read from MH i2c: E2 0E 00 F1 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 11 [20:42:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:42:30]wFMCommunicate OK [20:42:30]SAM_PROTO_GetShiftState done [20:42:30]FM_GetShiftState done [20:42:30]req_shift_opened done [20:42:30]requested_item shift.open_date is exist - process it [20:42:30]req_shift_open_date [20:42:30]req_shift_open_date done [20:42:30]produce_requested_data done [20:42:30]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140394,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:42:30]process_action_free close_receipt [20:42:30]json_value_free [20:42:30]json_value_free done [20:42:30]process_json_proto returns [20:42:30]Send response to host [20:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140394,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:42:30]free response buf [20:42:30]execute_script done [20:42:30]execute_script returns [20:42:30]free content buf [20:42:30]Sock 9.Close socket [20:42:30]Sock 9.Thread stoped [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:58]accept exits with 7 [20:50:58]New connection [20:50:58]New thread 3067612516 created [20:50:58]Thread 3067469156 joined [20:50:58]Waiting for new connection... [20:50:58] Sock 7.Parse request [20:50:58]Sock 7.Check first char [20:50:58]Sock 7.First char is OK [20:50:58]request: POST /json_proto HTTP/1.0 [20:50:58]Method: POST [20:50:58]URL: /json_proto [20:50:58]Method is POST - this is cgi request [20:50:58]url: /json_proto [20:50:58]query_string will be loaded in cgi processing [20:50:58]execute_cgi json_proto POST (null) [20:50:58]execute_cgi path=json_proto method=POST [20:50:58]POST find Content-Length [20:50:58]Host: 172.17.45.67:8080 [20:50:58]Content-Length: 682 [20:50:58]Content-Type: application/json [20:50:58] [20:50:58]POST finish read [20:50:58]Found Content-Length = 682 [20:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:58]execute_script... [20: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)594253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:58]POST & json_proto [20:50:58]process_json_proto [20:50:58]json parsed OK: [20:50:58]protocol is kg_v1.0 [20:50:58]action value=close_receipt [20:50:58]process_action close_receipt [20:50:58]cmd_close_receipt [20:50:58]MH_GetDate [20:50:58]Write to MH i2c: F0 00 00 F2 23 04 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: F0 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: F0 09 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: F0 09 00 F2 23 00 33 53 C6 66 5F 7F 2B 66 2E [20:50:58]GetLastDocTimeStamp 1724272947 [20:50:58]current date 1724273459 [20:50:58]FM_GetShiftState [20:50:58]SAM_PROTO_GetShiftState [20:50:58]wFMCommunicate request_size=4 [20:50:58]MH_SAM_APDU [20:50:58]CAPDU: 80 13 01 00 [20:50:58]Write to MH i2c: E2 08 00 F3 23 80 13 01 00 00 00 00 00 93 [20:50:58]Write i2c OK [20:50:58]MH_I2C_Read... [20:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:58]Read from MH i2c: E2 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 0E 00 [20:50:58]MH_I2C_Read... [20:50:58]Read from MH i2c: E2 0E 00 F3 23 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 13 [20:50:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:50:58]wFMCommunicate OK [20:50:58]SAM_PROTO_GetShiftState done [20:50:58]FM_GetShiftState done [20:50:58]opened in 1724200467 [20:50:58]opened+sec_in_day 1724286867 [20:50:58]quantity*price = 300064 [20:50:58]sum+1 = 300066 [20:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 412 21.08.2024 20:50 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140395 ФПД: 36817141308498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205059&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140395&fm=36817141308498&tin=02508201610067®Number=0000000000092569&sum=300000 [20:50:59]StoreToDocumentArchive [20:50:59]shift 454 fd 140395 [20:50:59]save to /storage/0454/doc_00140395 [20:50:59]save last doc name /storage/0454/doc_00140395 to /storage/kkm_last_doc_name [20:50:59]save OK [20:50:59]Clear old archive folders... [20:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:59]tlvbuf is B6FF9810 [20:50:59]SAM_PROTO_ClearQueue [20:50:59]wFMCommunicate request_size=4 [20:50:59]MH_SAM_APDU [20:50:59]CAPDU: 80 09 00 00 [20:50:59]Write to MH i2c: E2 08 00 00 24 80 09 00 00 00 00 00 00 96 [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:59]Read from MH i2c: E2 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 03 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [20:50:59]RAPDU: 90 00 [20:50:59]wFMCommunicate OK [20:50:59]SAM_PROTO_ClearQueue done [20:50:59]KKMCreateOFDPacket [20:50:59]OFDProtocolAddRootSTLVToBuf [20:50:59]FM_MakeSignedData [20:50:59]FM_MakeSignedData [20:50:59]SAM_PROTO_SignData [20:50:59]wFMCommunicate request_size=4 [20:50:59]MH_SAM_APDU [20:50:59]CAPDU: 80 0D 01 02 [20:50:59]Write to MH i2c: E2 08 00 01 24 80 0D 01 02 00 00 00 00 9E [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:59]Read from MH i2c: E2 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 03 00 [20:50:59]MH_I2C_Read... [20:50:59]Read from MH i2c: E2 03 00 01 24 00 90 00 99 [20:50:59]RAPDU: 90 00 [20:50:59]wFMCommunicate OK [20:50:59]wFMCommunicate request_size=255 [20:50:59]MH_SAM_APDU [20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 33 53 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 24 02 00 35 04 06 00 21 [20:50:59]Write to MH i2c: E2 02 01 02 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 33 53 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 24 02 00 35 04 06 00 21 00 00 30 [20:50:59]Write i2c OK [20:50:59]MH_I2C_Read... [20:51:00]OFD Sender: No OFD packet to send [20:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:00]Read from MH i2c: E2 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 03 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 03 00 02 24 00 90 00 9A [20:51:00]RAPDU: 90 00 [20:51:00]wFMCommunicate OK [20:51:00]wFMCommunicate request_size=10 [20:51:00]MH_SAM_APDU [20:51:00]CAPDU: 80 0D 02 02 05 7C 28 A1 1C 52 [20:51:00]Write to MH i2c: E2 0D 00 03 24 80 0D 02 02 05 00 7C 28 A1 1C 52 00 00 5E [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:00]Read from MH i2c: E2 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 03 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [20:51:00]RAPDU: 90 00 [20:51:00]wFMCommunicate OK [20:51:00]wFMCommunicate request_size=4 [20:51:00]MH_SAM_APDU [20:51:00]CAPDU: 80 0D 03 02 [20:51:00]Write to MH i2c: E2 08 00 04 24 80 0D 03 02 00 00 00 00 A3 [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:00]Read from MH i2c: E2 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 0B 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 0B 00 04 24 00 DD C0 BF BF 7F 76 C5 EA 90 00 63 [20:51:00]RAPDU: DD C0 BF BF 7F 76 C5 EA 90 00 [20:51:00]wFMCommunicate OK [20:51:00]SAM_PROTO_SignData done [20:51:00]FM_MakeSignedData done [20:51:00]CreateOFDProtocolMessage [20:51:00]wFMCommunicate request_size=4 [20:51:00]MH_SAM_APDU [20:51:00]CAPDU: 80 11 00 00 [20:51:00]Write to MH i2c: E2 08 00 05 24 80 11 00 00 00 00 00 00 A3 [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:00]Read from MH i2c: E2 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 17 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 17 00 05 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 FA [20:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:51:00]wFMCommunicate OK [20:51:00]CreateOFDProtocolMessage done [20:51:00]OFDSenderStorePacket 140395 [20:51:00]StoreOFDPacket docnum=140395 [20:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 F9 23 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 33 53 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 24 02 00 35 04 06 00 21 7C 28 A1 1C 52 DD C0 BF BF 7F 76 C5 EA [20:51:00]CheckFolder [20:51:00]dirname=/storage/ofd_packets [20:51:00]CheckFolder done [20:51:00]ProducePacketName [20:51:00]name=ofd_packets/00140395 [20:51:00]NVStorageSaveData ofd_packets/00140395 [20:51:00]File name is /storage/ofd_packets/00140395 [20:51:00]Write 301 bytes [20:51:00]NVStorageSaveData done [20:51:00]OFDSenderStorePacket done [20:51:00]KKMCreateOFDPacket done [20:51:00]NVStorageSaveData kkm_last_timestamp [20:51:00]File name is /storage/kkm_last_timestamp [20:51:00]Write 4 bytes [20:51:00]NVStorageSaveData done [20:51:00]ExternCall_PrintAddStr [20:51:00]wPrintStart [20:51:00]Write to MH i2c: 01 00 00 06 24 2A [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: 01 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: 01 07 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 FF 0F 3F [20:51:00]RasterBufferAndPrint [20:51:00]line Счет N : (1)594253 [20:51:00]line ИНН: 02508201610067 [20:51:00]line Контрольно-Кассовый Чек [20:51:00]line ПРОДАЖА [20:51:00]line ТРК (МРК, ГНК) : 41 [20:51:00]line Товар: 2710124500 [20:51:00]line Аи-95-К-5 [20:51:00]line 40.440 * 74.20 [20:51:00]line = 3000.65 [20:51:00]line НДС 12% НСП 1% [20:51:00]line > о реализуемом товаре [20:51:00]line ОКРУГЛЕНИЕ: -0.65 [20:51:00]line ИТОГО: 3000.00 [20:51:00]line Внесено: 3000.00 [20:51:00]line СДАЧА: 0.00 [20:51:00]line НСП 1% : 26.55 [20:51:00]line НДС 12% : 318.65 [20:51:00]line Наличными: 3000.00 [20:51:00]line Безнал.: 0.00 [20:51:00]line Место: АЗС № 136 "Партнер Нефть" [20:51:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:51:00]line СНО: Общий режим [20:51:00]line Чек 412 21.08.2024 20:50 [20:51:00]line Смена: 454 ФФД: 1.0 [20:51:00]line ЗНМ: 0300000067 [20:51:00]line РНМ: 0000000000092569 [20:51:00]line Версия ККМ: 001 [20:51:00]line ФМ: 0000000000871776 [20:51:00]line ФД: 140395 [20:51:00]line ФПД: 36817141308498 [20:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205059&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140395&fm=36817141308498&tin=02508201610067®Number=0000000000092569&sum=300000 [20:51:00]OFD Sender: Processing packet 140395 [packets to send 137, broken 136] [20:51:00]ProducePacketName [20:51:00]name=ofd_packets/00140395 [20:51:00]OFD Sender: To server: pG, [20:51:00]CommunicateWithHost lk.salyk.kg:30040 [20:51:00]ConnectInit lk.salyk.kg [20:51:00]written 0, free lines is 4095 [20:51:00]Connected sock=10 [20: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 37 36 0F 01 00 00 F9 23 07 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 33 53 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6B 24 02 00 35 04 06 00 21 7C 28 A1 1C 52 DD C0 BF BF 7F 76 C5 EA [20:51: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 37 36 4F 00 00 00 4F 48 47 00 24 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 37 36 10 04 04 00 6B 24 02 00 F4 03 04 00 C3 F9 C5 66 B6 04 01 00 00 18 F6 E0 1F 0C 31 C0 F4 [20:51:01]CommunicateWithHost err = 0 [20:51:01]CheckOFDResponse [20:51:01]1017 (14) - 77093643461234 [20:51:01]1041 (16) - 0000000000871776 [20:51:01]1040 (4) - 140395 [20:51:01]1012 (4) - 21.08.2024 14:29 [20:51:01]1206 (1) - 0 [20:51:01]OFD Sender: Remove packet 140395 [20:51:01]ProducePacketName [20:51:01]name=ofd_packets/00140395 [20:51:01]NVStorageDeleteData [20:51:01]Write to MH i2c: 01 00 00 31 24 55 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 07 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 07 00 31 24 00 00 00 00 00 D9 0C 41 [20:51:01]RasterBufferAndPrint [20:51:01]line [20:51:01]line [20:51:01]line [20:51:01]line [20:51:01]line [20:51:01]written 0, free lines is 3296 [20:51:01]MH_Cut [20:51:01]Write to MH i2c: D1 01 00 38 24 01 2E [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: D1 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: D1 01 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: D1 01 00 38 24 00 2D [20:51:01]Write to MH i2c: 01 00 00 39 24 5D [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]OFD Sender: No OFD packet to send [20:51:01]*** Cut start [20:51:01]*** Partial cut [20:51:01]*** CUTSNS_PIN = 1 [20:51:01]*** CUTSNS_PIN = 0 [20:51:02]*** Brake cut motor [20:51:02]Read from MH i2c: 01 [20:51:02]MH_I2C_Read... [20:51:02]*** Stop cut motor [20:51:02]*** Cut end [20:51:02]Read from MH i2c: 01 07 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 07 00 39 24 00 00 00 00 00 FF 0F 72 [20:51:02]process_action close_receipt done [20:51:02]requested_data is exist [20:51:02]produce_requested_data [20:51:02]requested_item fm.sn is exist - process it [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 11 00 00 [20:51:02]Write to MH i2c: E2 08 00 3A 24 80 11 00 00 00 00 00 00 D8 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 17 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 17 00 3A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2F [20:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:51:02]wFMCommunicate OK [20:51:02]requested_item fd.num is exist - process it [20:51:02]SAM_PROTO_GetFieldsCounters [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 13 00 00 [20:51:02]Write to MH i2c: E2 08 00 3B 24 80 13 00 00 00 00 00 00 DB [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 62 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 62 00 3B 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 24 02 00 0E 04 04 00 C6 01 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 35 [20: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6B 24 02 00 0E 04 04 00 C6 01 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 [20:51:02]wFMCommunicate OK [20:51:02]SAM_PROTO_GetFieldsCounters done [20:51:02]requested_item shift.num is exist - process it [20:51:02]requested_item shift.opened is exist - process it [20:51:02]req_shift_opened [20:51:02]FM_GetShiftState [20:51:02]SAM_PROTO_GetShiftState [20:51:02]wFMCommunicate request_size=4 [20:51:02]MH_SAM_APDU [20:51:02]CAPDU: 80 13 01 00 [20:51:02]Write to MH i2c: E2 08 00 3C 24 80 13 01 00 00 00 00 00 DD [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:02]Read from MH i2c: E2 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 0E 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: E2 0E 00 3C 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5D [20:51:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:51:02]wFMCommunicate OK [20:51:02]SAM_PROTO_GetShiftState done [20:51:02]FM_GetShiftState done [20:51:02]req_shift_opened done [20:51:02]requested_item shift.open_date is exist - process it [20:51:02]req_shift_open_date [20:51:02]req_shift_open_date done [20:51:02]produce_requested_data done [20:51:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140395,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:51:02]process_action_free close_receipt [20:51:02]json_value_free [20:51:02]json_value_free done [20:51:02]process_json_proto returns [20:51:02]Send response to host [20:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140395,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:51:02]free response buf [20:51:02]execute_script done [20:51:02]execute_script returns [20:51:02]free content buf [20:51:02]Sock 7.Close socket [20:51:02]Sock 7.Thread stoped [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:32]accept exits with 9 [20:54:32]New connection [20:54:32]New thread 3067469156 created [20:54:32]Thread 3067612516 joined [20:54:32]Waiting for new connection... [20:54:32] Sock 9.Parse request [20:54:32]Sock 9.Check first char [20:54:32]Sock 9.First char is OK [20:54:32]request: POST /json_proto HTTP/1.0 [20:54:32]Method: POST [20:54:32]URL: /json_proto [20:54:32]Method is POST - this is cgi request [20:54:32]url: /json_proto [20:54:32]query_string will be loaded in cgi processing [20:54:32]execute_cgi json_proto POST (null) [20:54:32]execute_cgi path=json_proto method=POST [20:54:32]POST find Content-Length [20:54:32]Host: 172.17.45.67:8080 [20:54:32]Content-Length: 687 [20:54:32]Content-Type: application/json [20:54:32] [20:54:32]POST finish read [20:54:32]Found Content-Length = 687 [20:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 58.670, "sum" : 4470.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4800.00, "total" : 4470.00, "payments": [ { "type": 0, "sum" : 4470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:32]execute_script... [20:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 58.670, "sum" : 4470.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4800.00, "total" : 4470.00, "payments": [ { "type": 0, "sum" : 4470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:32]POST & json_proto [20:54:32]process_json_proto [20:54:32]json parsed OK: [20:54:32]protocol is kg_v1.0 [20:54:32]action value=close_receipt [20:54:32]process_action close_receipt [20:54:32]cmd_close_receipt [20:54:32]MH_GetDate [20:54:32]Write to MH i2c: F0 00 00 3D 24 50 [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: F0 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: F0 09 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: F0 09 00 3D 24 00 09 54 C6 66 5F 7F 2B 66 51 [20:54:32]GetLastDocTimeStamp 1724273459 [20:54:32]current date 1724273673 [20:54:32]FM_GetShiftState [20:54:32]SAM_PROTO_GetShiftState [20:54:32]wFMCommunicate request_size=4 [20:54:32]MH_SAM_APDU [20:54:32]CAPDU: 80 13 01 00 [20:54:32]Write to MH i2c: E2 08 00 3E 24 80 13 01 00 00 00 00 00 DF [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:32]Read from MH i2c: E2 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 0E 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 0E 00 3E 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5F [20:54:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:54:32]wFMCommunicate OK [20:54:32]SAM_PROTO_GetShiftState done [20:54:32]FM_GetShiftState done [20:54:32]opened in 1724200467 [20:54:32]opened+sec_in_day 1724286867 [20:54:32]quantity*price = 447065 [20:54:32]sum+1 = 447066 [20:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 4470.00 Внесено: 4800.00 СДАЧА: 330.00 НСП 1% : 39.56 НДС 12% : 474.76 Наличными: 4470.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 413 21.08.2024 20:54 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140396 ФПД: 163610542680572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140396&fm=163610542680572&tin=02508201610067®Number=0000000000092569&sum=447000 [20:54:33]StoreToDocumentArchive [20:54:33]shift 454 fd 140396 [20:54:33]save to /storage/0454/doc_00140396 [20:54:33]save last doc name /storage/0454/doc_00140396 to /storage/kkm_last_doc_name [20:54:33]save OK [20:54:33]Clear old archive folders... [20:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:54:33]tlvbuf is 00C6ED90 [20:54:33]SAM_PROTO_ClearQueue [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 09 00 00 [20:54:33]Write to MH i2c: E2 08 00 4B 24 80 09 00 00 00 00 00 00 E1 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 03 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [20:54:33]RAPDU: 90 00 [20:54:33]wFMCommunicate OK [20:54:33]SAM_PROTO_ClearQueue done [20:54:33]KKMCreateOFDPacket [20:54:33]OFDProtocolAddRootSTLVToBuf [20:54:33]FM_MakeSignedData [20:54:33]FM_MakeSignedData [20:54:33]SAM_PROTO_SignData [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 0D 01 02 [20:54:33]Write to MH i2c: E2 08 00 4C 24 80 0D 01 02 00 00 00 00 E9 [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 03 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 03 00 4C 24 00 90 00 E4 [20:54:33]RAPDU: 90 00 [20:54:33]wFMCommunicate OK [20:54:33]wFMCommunicate request_size=255 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 D2 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D2 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 B9 00 00 00 00 07 04 06 00 18 D2 06 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 09 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 24 02 00 35 04 06 00 [20:54:33]Write to MH i2c: E2 02 01 4D 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 D2 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D2 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 B9 00 00 00 00 07 04 06 00 18 D2 06 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 09 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 24 02 00 35 04 06 00 00 00 6D [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 4D 24 00 90 00 E5 [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]wFMCommunicate request_size=11 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 02 02 06 94 CD 8C 47 29 FC [20:54:34]Write to MH i2c: E2 0E 00 4E 24 80 0D 02 02 06 00 94 CD 8C 47 29 FC 00 00 51 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [20:54:34]RAPDU: 90 00 [20:54:34]wFMCommunicate OK [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 0D 03 02 [20:54:34]Write to MH i2c: E2 08 00 4F 24 80 0D 03 02 00 00 00 00 EE [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0B 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 0B 00 4F 24 00 1B 54 F7 E0 E8 DE EC ED 90 00 D4 [20:54:34]RAPDU: 1B 54 F7 E0 E8 DE EC ED 90 00 [20:54:34]wFMCommunicate OK [20:54:34]SAM_PROTO_SignData done [20:54:34]FM_MakeSignedData done [20:54:34]CreateOFDProtocolMessage [20:54:34]wFMCommunicate request_size=4 [20:54:34]MH_SAM_APDU [20:54:34]CAPDU: 80 11 00 00 [20:54:34]Write to MH i2c: E2 08 00 50 24 80 11 00 00 00 00 00 00 EE [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:34]Read from MH i2c: E2 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 17 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: E2 17 00 50 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 45 [20:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:54:34]wFMCommunicate OK [20:54:34]CreateOFDProtocolMessage done [20:54:34]OFDSenderStorePacket 140396 [20:54:34]StoreOFDPacket docnum=140396 [20:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 66 BB 08 01 3A F4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 D2 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D2 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 B9 00 00 00 00 07 04 06 00 18 D2 06 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 09 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 24 02 00 35 04 06 00 94 CD 8C 47 29 FC 1B 54 F7 E0 E8 DE EC ED [20:54:34]CheckFolder [20:54:34]dirname=/storage/ofd_packets [20:54:34]CheckFolder done [20:54:34]ProducePacketName [20:54:34]name=ofd_packets/00140396 [20:54:34]NVStorageSaveData ofd_packets/00140396 [20:54:34]File name is /storage/ofd_packets/00140396 [20:54:34]Write 302 bytes [20:54:34]NVStorageSaveData done [20:54:34]OFDSenderStorePacket done [20:54:34]KKMCreateOFDPacket done [20:54:34]NVStorageSaveData kkm_last_timestamp [20:54:34]File name is /storage/kkm_last_timestamp [20:54:34]Write 4 bytes [20:54:34]NVStorageSaveData done [20:54:34]ExternCall_PrintAddStr [20:54:34]wPrintStart [20:54:34]Write to MH i2c: 01 00 00 51 24 75 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 51 24 00 00 00 00 00 FF 0F 8A [20:54:34]RasterBufferAndPrint [20:54:34]line Счет N : (1)594254 [20:54:34]line ИНН: 02508201610067 [20:54:34]line Контрольно-Кассовый Чек [20:54:34]line ПРОДАЖА [20:54:34]line ТРК (МРК, ГНК) : 64 [20:54:34]line Товар: 2710194210 [20:54:34]line ДТ(л)-К-5 [20:54:34]line 58.670 * 76.20 [20:54:34]line = 4470.65 [20:54:34]line НДС 12% НСП 1% [20:54:34]line > о реализуемом товаре [20:54:34]line ОКРУГЛЕНИЕ: -0.65 [20:54:34]line ИТОГО: 4470.00 [20:54:34]line Внесено: 4800.00 [20:54:34]line СДАЧА: 330.00 [20:54:34]line НСП 1% : 39.56 [20:54:34]line НДС 12% : 474.76 [20:54:34]line Наличными: 4470.00 [20:54:34]line Безнал.: 0.00 [20:54:34]line Место: АЗС № 136 "Партнер Нефть" [20:54:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:54:34]line СНО: Общий режим [20:54:34]line Чек 413 21.08.2024 20:54 [20:54:34]line Смена: 454 ФФД: 1.0 [20:54:34]line ЗНМ: 0300000067 [20:54:34]line РНМ: 0000000000092569 [20:54:34]line Версия ККМ: 001 [20:54:34]line ФМ: 0000000000871776 [20:54:34]line ФД: 140396 [20:54:34]line ФПД: 163610542680572 [20:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140396&fm=163610542680572&tin=02508201610067®Number=0000000000092569&sum=447000 [20:54:34]OFD Sender: Processing packet 140396 [packets to send 137, broken 136] [20:54:34]ProducePacketName [20:54:34]name=ofd_packets/00140396 [20:54:34]OFD Sender: To server: pG, [20:54:34]CommunicateWithHost lk.salyk.kg:30040 [20:54:34]ConnectInit lk.salyk.kg [20:54:34]written 0, free lines is 4095 [20:54:34]Connected sock=10 [20:54: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 37 36 10 01 00 00 66 BB 08 01 3A F4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 2E E5 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 D2 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D2 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 B9 00 00 00 00 07 04 06 00 18 D2 06 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 09 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6C 24 02 00 35 04 06 00 94 CD 8C 47 29 FC 1B 54 F7 E0 E8 DE EC ED [20:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 07 5C 47 00 20 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 37 36 10 04 04 00 6C 24 02 00 F4 03 04 00 99 FA C5 66 B6 04 01 00 00 8F 24 7A DA 6E DE A7 CC [20:54:35]CommunicateWithHost err = 0 [20:54:35]CheckOFDResponse [20:54:35]1017 (14) - 77093643461234 [20:54:35]1041 (16) - 0000000000871776 [20:54:35]1040 (4) - 140396 [20:54:35]1012 (4) - 21.08.2024 14:32 [20:54:35]1206 (1) - 0 [20:54:35]OFD Sender: Remove packet 140396 [20:54:35]ProducePacketName [20:54:35]name=ofd_packets/00140396 [20:54:35]NVStorageDeleteData [20:54:35]Write to MH i2c: 01 00 00 7C 24 A0 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 07 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 07 00 7C 24 00 00 00 00 00 F1 0C A4 [20:54:35]RasterBufferAndPrint [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]line [20:54:35]written 0, free lines is 3319 [20:54:35]MH_Cut [20:54:35]Write to MH i2c: D1 01 00 83 24 01 79 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 01 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: D1 01 00 83 24 00 78 [20:54:35]Write to MH i2c: 01 00 00 84 24 A8 [20:54:35]Write i2c OK [20:54:35]MH_I2C_Read... [20:54:35]OFD Sender: No OFD packet to send [20:54:35]*** Cut start [20:54:35]*** Partial cut [20:54:35]*** CUTSNS_PIN = 1 [20:54:35]*** CUTSNS_PIN = 0 [20:54:36]*** Brake cut motor [20:54:36]Read from MH i2c: 01 [20:54:36]MH_I2C_Read... [20:54:36]*** Stop cut motor [20:54:36]*** Cut end [20:54:36]Read from MH i2c: 01 07 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: 01 07 00 84 24 00 00 00 00 00 FF 0F BD [20:54:36]process_action close_receipt done [20:54:36]requested_data is exist [20:54:36]produce_requested_data [20:54:36]requested_item fm.sn is exist - process it [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 11 00 00 [20:54:36]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 17 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7A [20:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:54:36]wFMCommunicate OK [20:54:36]requested_item fd.num is exist - process it [20:54:36]SAM_PROTO_GetFieldsCounters [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 13 00 00 [20:54:36]Write to MH i2c: E2 08 00 86 24 80 13 00 00 00 00 00 00 26 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 62 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 62 00 86 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 24 02 00 0E 04 04 00 C6 01 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 84 [20:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6C 24 02 00 0E 04 04 00 C6 01 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 [20:54:36]wFMCommunicate OK [20:54:36]SAM_PROTO_GetFieldsCounters done [20:54:36]requested_item shift.num is exist - process it [20:54:36]requested_item shift.opened is exist - process it [20:54:36]req_shift_opened [20:54:36]FM_GetShiftState [20:54:36]SAM_PROTO_GetShiftState [20:54:36]wFMCommunicate request_size=4 [20:54:36]MH_SAM_APDU [20:54:36]CAPDU: 80 13 01 00 [20:54:36]Write to MH i2c: E2 08 00 87 24 80 13 01 00 00 00 00 00 28 [20:54:36]Write i2c OK [20:54:36]MH_I2C_Read... [20:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:36]Read from MH i2c: E2 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 [20:54:36]MH_I2C_Read... [20:54:36]Read from MH i2c: E2 0E 00 87 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A8 [20:54:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:54:36]wFMCommunicate OK [20:54:36]SAM_PROTO_GetShiftState done [20:54:36]FM_GetShiftState done [20:54:36]req_shift_opened done [20:54:36]requested_item shift.open_date is exist - process it [20:54:36]req_shift_open_date [20:54:36]req_shift_open_date done [20:54:36]produce_requested_data done [20:54:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140396,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:54:36]process_action_free close_receipt [20:54:36]json_value_free [20:54:36]json_value_free done [20:54:36]process_json_proto returns [20:54:36]Send response to host [20:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140396,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:54:36]free response buf [20:54:36]execute_script done [20:54:36]execute_script returns [20:54:36]free content buf [20:54:36]Sock 9.Close socket [20:54:36]Sock 9.Thread stoped [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:12]accept exits with 7 [20:55:12]New connection [20:55:12]New thread 3067612516 created [20:55:12]Thread 3067469156 joined [20:55:12]Waiting for new connection... [20:55:12] Sock 7.Parse request [20:55:12]Sock 7.Check first char [20:55:12]Sock 7.First char is OK [20:55:12]request: POST /json_proto HTTP/1.0 [20:55:12]Method: POST [20:55:12]URL: /json_proto [20:55:12]Method is POST - this is cgi request [20:55:12]url: /json_proto [20:55:12]query_string will be loaded in cgi processing [20:55:12]execute_cgi json_proto POST (null) [20:55:12]execute_cgi path=json_proto method=POST [20:55:12]POST find Content-Length [20:55:12]Host: 172.17.45.67:8080 [20:55:12]Content-Length: 797 [20:55:12]Content-Type: application/json [20:55:12] [20:55:12]POST finish read [20:55:12]Found Content-Length = 797 [20:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:12]execute_script... [20:55: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)594255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 42.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:12]POST & json_proto [20:55:12]process_json_proto [20:55:12]json parsed OK: [20:55:12]protocol is kg_v1.0 [20:55:12]action value=close_receipt [20:55:12]process_action close_receipt [20:55:12]cmd_close_receipt [20:55:12]MH_GetDate [20:55:12]Write to MH i2c: F0 00 00 88 24 9B [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: F0 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: F0 09 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: F0 09 00 88 24 00 32 54 C6 66 5F 7F 2B 66 C5 [20:55:12]GetLastDocTimeStamp 1724273673 [20:55:12]current date 1724273714 [20:55:12]FM_GetShiftState [20:55:12]SAM_PROTO_GetShiftState [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 13 01 00 [20:55:12]Write to MH i2c: E2 08 00 89 24 80 13 01 00 00 00 00 00 2A [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:13]Read from MH i2c: E2 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 0E 00 [20:55:13]MH_I2C_Read... [20:55:13]Read from MH i2c: E2 0E 00 89 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AA [20:55:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:55:13]wFMCommunicate OK [20:55:13]SAM_PROTO_GetShiftState done [20:55:13]FM_GetShiftState done [20:55:13]opened in 1724200467 [20:55:13]opened+sec_in_day 1724286867 [20:55:13]quantity*price = 0 [20:55:13]sum+1 = 1 [20:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 414 21.08.2024 20:55 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140397 ФПД: 57239871336431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140397&fm=57239871336431&tin=02508201610067®Number=0000000000092569&sum=0 [20:55:14]StoreToDocumentArchive [20:55:14]shift 454 fd 140397 [20:55:14]save to /storage/0454/doc_00140397 [20:55:14]save last doc name /storage/0454/doc_00140397 to /storage/kkm_last_doc_name [20:55:14]save OK [20:55:14]Clear old archive folders... [20:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:55:14]tlvbuf is 00C341E0 [20:55:14]SAM_PROTO_ClearQueue [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 09 00 00 [20:55:14]Write to MH i2c: E2 08 00 96 24 80 09 00 00 00 00 00 00 2C [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 96 24 00 90 00 2E [20:55:14]RAPDU: 90 00 [20:55:14]wFMCommunicate OK [20:55:14]SAM_PROTO_ClearQueue done [20:55:14]KKMCreateOFDPacket [20:55:14]OFDProtocolAddRootSTLVToBuf [20:55:14]FM_MakeSignedData [20:55:14]FM_MakeSignedData [20:55:14]SAM_PROTO_SignData [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 0D 01 02 [20:55:14]Write to MH i2c: E2 08 00 97 24 80 0D 01 02 00 00 00 00 34 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 97 24 00 90 00 2F [20:55:14]RAPDU: 90 00 [20:55:14]wFMCommunicate OK [20:55:14]wFMCommunicate request_size=255 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 9E 01 00 00 F4 03 04 00 32 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 24 02 00 35 04 06 00 [20:55:14]Write to MH i2c: E2 02 01 98 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 9E 01 00 00 F4 03 04 00 32 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 24 02 00 35 04 06 00 00 00 E2 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [20:55:14]RAPDU: 90 00 [20:55:14]wFMCommunicate OK [20:55:14]wFMCommunicate request_size=11 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 0D 02 02 06 34 0F 32 32 AF EF [20:55:14]Write to MH i2c: E2 0E 00 99 24 80 0D 02 02 06 00 34 0F 32 32 AF EF 00 00 88 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [20:55:14]RAPDU: 90 00 [20:55:14]wFMCommunicate OK [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 0D 03 02 [20:55:14]Write to MH i2c: E2 08 00 9A 24 80 0D 03 02 00 00 00 00 39 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 0B 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 0B 00 9A 24 00 25 6D 20 BF 7D ED 5A 33 90 00 A2 [20:55:14]RAPDU: 25 6D 20 BF 7D ED 5A 33 90 00 [20:55:14]wFMCommunicate OK [20:55:14]SAM_PROTO_SignData done [20:55:14]FM_MakeSignedData done [20:55:14]CreateOFDProtocolMessage [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 11 00 00 [20:55:14]Write to MH i2c: E2 08 00 9B 24 80 11 00 00 00 00 00 00 39 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 17 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 17 00 9B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 90 [20:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:55:14]wFMCommunicate OK [20:55:14]CreateOFDProtocolMessage done [20:55:14]OFDSenderStorePacket 140397 [20:55:14]StoreOFDPacket docnum=140397 [20:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 79 01 08 01 3A A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 9E 01 00 00 F4 03 04 00 32 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 24 02 00 35 04 06 00 34 0F 32 32 AF EF 25 6D 20 BF 7D ED 5A 33 [20:55:14]CheckFolder [20:55:14]dirname=/storage/ofd_packets [20:55:14]CheckFolder done [20:55:14]ProducePacketName [20:55:14]name=ofd_packets/00140397 [20:55:14]NVStorageSaveData ofd_packets/00140397 [20:55:14]File name is /storage/ofd_packets/00140397 [20:55:14]Write 302 bytes [20:55:14]NVStorageSaveData done [20:55:14]OFDSenderStorePacket done [20:55:14]KKMCreateOFDPacket done [20:55:14]NVStorageSaveData kkm_last_timestamp [20:55:14]File name is /storage/kkm_last_timestamp [20:55:14]Write 4 bytes [20:55:14]NVStorageSaveData done [20:55:14]ExternCall_PrintAddStr [20:55:14]wPrintStart [20:55:14]Write to MH i2c: 01 00 00 9C 24 C0 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 07 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 07 00 9C 24 00 00 00 00 00 FF 0F D5 [20:55:14]RasterBufferAndPrint [20:55:14]line Счет N : (1)594255 [20:55:14]line ИНН: 02508201610067 [20:55:14]line Контрольно-Кассовый Чек [20:55:14]line ПРОДАЖА [20:55:14]line ТРК (МРК, ГНК) : 54 [20:55:14]line Товар: 2710194210 [20:55:14]line ДТ(л)-К-5 [20:55:14]line 42.000 * 0.00 [20:55:14]line = 0.00 [20:55:14]line НДС 12% НСП 1% [20:55:14]line > о реализуемом товаре [20:55:14]line ИТОГО: 0.00 [20:55:14]line НСП 1% : 0.00 [20:55:14]line НДС 12% : 0.00 [20:55:14]line Наличными: 0.00 [20:55:14]line Безнал.: 0.00 [20:55:14]line Место: АЗС № 136 "Партнер Нефть" [20:55:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [20:55:14]line СНО: Общий режим [20:55:14]line Чек 414 21.08.2024 20:55 [20:55:14]line Смена: 454 ФФД: 1.0 [20:55:14]line ЗНМ: 0300000067 [20:55:14]line РНМ: 0000000000092569 [20:55:14]line Версия ККМ: 001 [20:55:14]line Талоны: Топливная Карта [20:55:14]line 99761 [20:55:14]line ФМ: 0000000000871776 [20:55:14]line ФД: 140397 [20:55:14]line ФПД: 57239871336431 [20:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T205514&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140397&fm=57239871336431&tin=02508201610067®Number=0000000000092569&sum=0 [20:55:14]written 0, free lines is 4095 [20:55:14]OFD Sender: Processing packet 140397 [packets to send 137, broken 136] [20:55:14]ProducePacketName [20:55:14]name=ofd_packets/00140397 [20:55:14]OFD Sender: To server: pG, [20:55:14]CommunicateWithHost lk.salyk.kg:30040 [20:55:14]ConnectInit lk.salyk.kg [20:55:14]Connected sock=10 [20:55: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 37 36 10 01 00 00 79 01 08 01 3A A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 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 9E 01 00 00 F4 03 04 00 32 54 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6D 24 02 00 35 04 06 00 34 0F 32 32 AF EF 25 6D 20 BF 7D ED 5A 33 [20:55:15]Write to MH i2c: 01 00 00 C6 24 EA [20:55: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 37 36 4F 00 00 00 23 9A 47 00 7D 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 37 36 10 04 04 00 6D 24 02 00 F4 03 04 00 C1 FA C5 66 B6 04 01 00 00 B0 3E FE DC 94 29 09 8E [20:55:15]CommunicateWithHost err = 0 [20:55:15]CheckOFDResponse [20:55:15]1017 (14) - 77093643461234 [20:55:15]1041 (16) - 0000000000871776 [20:55:15]1040 (4) - 140397 [20:55:15]1012 (4) - 21.08.2024 14:33 [20:55:15]1206 (1) - 0 [20:55:15]OFD Sender: Remove packet 140397 [20:55:15]ProducePacketName [20:55:15]name=ofd_packets/00140397 [20:55:15]NVStorageDeleteData [20:55:15]Write i2c OK [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: 01 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: 01 07 00 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: 01 07 00 C6 24 00 00 00 00 00 EC 0C E9 [20:55:15]RasterBufferAndPrint [20:55:15]line [20:55:15]line [20:55:15]line [20:55:15]line [20:55:15]line [20:55:15]written 0, free lines is 3333 [20:55:15]MH_Cut [20:55:15]Write to MH i2c: D1 01 00 CD 24 01 C3 [20:55:15]Write i2c OK [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: D1 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: D1 01 00 [20:55:15]MH_I2C_Read... [20:55:15]Read from MH i2c: D1 01 00 CD 24 00 C2 [20:55:15]Write to MH i2c: 01 00 00 CE 24 F2 [20:55:15]Write i2c OK [20:55:15]MH_I2C_Read... [20:55:15]OFD Sender: No OFD packet to send [20:55:15]*** Cut start [20:55:15]*** Partial cut [20:55:15]*** CUTSNS_PIN = 1 [20:55:15]*** CUTSNS_PIN = 0 [20:55:16]*** Brake cut motor [20:55:16]Read from MH i2c: 01 [20:55:16]MH_I2C_Read... [20:55:16]*** Stop cut motor [20:55:16]*** Cut end [20:55:16]Read from MH i2c: 01 07 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: 01 07 00 CE 24 00 00 00 00 00 FF 0F 07 [20:55:16]process_action close_receipt done [20:55:16]requested_data is exist [20:55:16]produce_requested_data [20:55:16]requested_item fm.sn is exist - process it [20:55:16]wFMCommunicate request_size=4 [20:55:16]MH_SAM_APDU [20:55:16]CAPDU: 80 11 00 00 [20:55:16]Write to MH i2c: E2 08 00 CF 24 80 11 00 00 00 00 00 00 6D [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:16]Read from MH i2c: E2 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 17 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 17 00 CF 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C4 [20:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [20:55:16]wFMCommunicate OK [20:55:16]requested_item fd.num is exist - process it [20:55:16]SAM_PROTO_GetFieldsCounters [20:55:16]wFMCommunicate request_size=4 [20:55:16]MH_SAM_APDU [20:55:16]CAPDU: 80 13 00 00 [20:55:16]Write to MH i2c: E2 08 00 D0 24 80 13 00 00 00 00 00 00 70 [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:16]Read from MH i2c: E2 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 62 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 62 00 D0 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 24 02 00 0E 04 04 00 C6 01 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 D2 [20:55: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6D 24 02 00 0E 04 04 00 C6 01 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 [20:55:16]wFMCommunicate OK [20:55:16]SAM_PROTO_GetFieldsCounters done [20:55:16]requested_item shift.num is exist - process it [20:55:16]requested_item shift.opened is exist - process it [20:55:16]req_shift_opened [20:55:16]FM_GetShiftState [20:55:16]SAM_PROTO_GetShiftState [20:55:16]wFMCommunicate request_size=4 [20:55:16]MH_SAM_APDU [20:55:16]CAPDU: 80 13 01 00 [20:55:16]Write to MH i2c: E2 08 00 D1 24 80 13 01 00 00 00 00 00 72 [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:16]Read from MH i2c: E2 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 D1 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F2 [20:55:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [20:55:16]wFMCommunicate OK [20:55:16]SAM_PROTO_GetShiftState done [20:55:16]FM_GetShiftState done [20:55:16]req_shift_opened done [20:55:16]requested_item shift.open_date is exist - process it [20:55:16]req_shift_open_date [20:55:16]req_shift_open_date done [20:55:16]produce_requested_data done [20:55:16]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140397,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [20:55:16]process_action_free close_receipt [20:55:16]json_value_free [20:55:16]json_value_free done [20:55:16]process_json_proto returns [20:55:16]Send response to host [20:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140397,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [20:55:16]free response buf [20:55:16]execute_script done [20:55:16]execute_script returns [20:55:16]free content buf [20:55:16]Sock 7.Close socket [20:55:16]Sock 7.Thread stoped [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58: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:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:10]accept exits with 9 [21:03:10]New connection [21:03:10]New thread 3067469156 created [21:03:10]Thread 3067612516 joined [21:03:10]Waiting for new connection... [21:03:10] Sock 9.Parse request [21:03:10]Sock 9.Check first char [21:03:10]Sock 9.First char is OK [21:03:10]request: POST /json_proto HTTP/1.0 [21:03:10]Method: POST [21:03:10]URL: /json_proto [21:03:10]Method is POST - this is cgi request [21:03:10]url: /json_proto [21:03:10]query_string will be loaded in cgi processing [21:03:10]execute_cgi json_proto POST (null) [21:03:10]execute_cgi path=json_proto method=POST [21:03:10]POST find Content-Length [21:03:10]Host: 172.17.45.67:8080 [21:03:10]Content-Length: 677 [21:03:10]Content-Type: application/json [21:03:10] [21:03:10]POST finish read [21:03:10]Found Content-Length = 677 [21:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:10]execute_script... [21:03: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)594256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:10]POST & json_proto [21:03:10]process_json_proto [21:03:10]json parsed OK: [21:03:10]protocol is kg_v1.0 [21:03:10]action value=close_receipt [21:03:10]process_action close_receipt [21:03:10]cmd_close_receipt [21:03:10]MH_GetDate [21:03:10]Write to MH i2c: F0 00 00 D2 24 E5 [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: F0 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: F0 09 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: F0 09 00 D2 24 00 0F 56 C6 66 5F 7F 2B 66 EE [21:03:10]GetLastDocTimeStamp 1724273714 [21:03:10]current date 1724274191 [21:03:10]FM_GetShiftState [21:03:10]SAM_PROTO_GetShiftState [21:03:10]wFMCommunicate request_size=4 [21:03:10]MH_SAM_APDU [21:03:10]CAPDU: 80 13 01 00 [21:03:10]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:10]Read from MH i2c: E2 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 0E 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F4 [21:03:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:03:10]wFMCommunicate OK [21:03:10]SAM_PROTO_GetShiftState done [21:03:10]FM_GetShiftState done [21:03:10]opened in 1724200467 [21:03:10]opened+sec_in_day 1724286867 [21:03:10]quantity*price = 30035 [21:03:10]sum+1 = 30036 [21:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 415 21.08.2024 21:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140398 ФПД: 26692971286709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140398&fm=26692971286709&tin=02508201610067®Number=0000000000092569&sum=30000 [21:03:11]StoreToDocumentArchive [21:03:11]shift 454 fd 140398 [21:03:11]save to /storage/0454/doc_00140398 [21:03:11]save last doc name /storage/0454/doc_00140398 to /storage/kkm_last_doc_name [21:03:11]save OK [21:03:11]Clear old archive folders... [21:03:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:11]tlvbuf is B6FF9C20 [21:03:11]SAM_PROTO_ClearQueue [21:03:11]wFMCommunicate request_size=4 [21:03:11]MH_SAM_APDU [21:03:11]CAPDU: 80 09 00 00 [21:03:11]Write to MH i2c: E2 08 00 E0 24 80 09 00 00 00 00 00 00 76 [21:03:11]Write i2c OK [21:03:11]MH_I2C_Read... [21:03:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:11]Read from MH i2c: E2 [21:03:11]MH_I2C_Read... [21:03:11]Read from MH i2c: E2 03 00 [21:03:11]MH_I2C_Read... [21:03:11]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [21:03:11]RAPDU: 90 00 [21:03:11]wFMCommunicate OK [21:03:11]SAM_PROTO_ClearQueue done [21:03:11]KKMCreateOFDPacket [21:03:11]OFDProtocolAddRootSTLVToBuf [21:03:11]FM_MakeSignedData [21:03:11]FM_MakeSignedData [21:03:11]SAM_PROTO_SignData [21:03:11]wFMCommunicate request_size=4 [21:03:11]MH_SAM_APDU [21:03:11]CAPDU: 80 0D 01 02 [21:03:11]Write to MH i2c: E2 08 00 E1 24 80 0D 01 02 00 00 00 00 7E [21:03:11]Write i2c OK [21:03:11]MH_I2C_Read... [21:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:11]Read from MH i2c: E2 [21:03:11]MH_I2C_Read... [21:03:11]Read from MH i2c: E2 03 00 [21:03:11]MH_I2C_Read... [21:03:11]Read from MH i2c: E2 03 00 E1 24 00 90 00 79 [21:03:11]RAPDU: 90 00 [21:03:11]wFMCommunicate OK [21:03:11]wFMCommunicate request_size=255 [21:03:11]MH_SAM_APDU [21:03: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 0F 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 24 02 00 35 04 06 00 18 [21:03:11]Write to MH i2c: E2 02 01 E2 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 0F 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 24 02 00 35 04 06 00 18 00 00 CA [21:03:11]Write i2c OK [21:03:11]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 03 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [21:03:12]RAPDU: 90 00 [21:03:12]wFMCommunicate OK [21:03:12]wFMCommunicate request_size=10 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 0D 02 02 05 46 F1 12 50 B5 [21:03:12]Write to MH i2c: E2 0D 00 E3 24 80 0D 02 02 05 00 46 F1 12 50 B5 00 00 D9 [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 03 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [21:03:12]RAPDU: 90 00 [21:03:12]wFMCommunicate OK [21:03:12]wFMCommunicate request_size=4 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 0D 03 02 [21:03:12]Write to MH i2c: E2 08 00 E4 24 80 0D 03 02 00 00 00 00 83 [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 0B 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 0B 00 E4 24 00 75 C0 7A A6 27 77 84 39 90 00 34 [21:03:12]RAPDU: 75 C0 7A A6 27 77 84 39 90 00 [21:03:12]wFMCommunicate OK [21:03:12]SAM_PROTO_SignData done [21:03:12]FM_MakeSignedData done [21:03:12]CreateOFDProtocolMessage [21:03:12]wFMCommunicate request_size=4 [21:03:12]MH_SAM_APDU [21:03:12]CAPDU: 80 11 00 00 [21:03:12]Write to MH i2c: E2 08 00 E5 24 80 11 00 00 00 00 00 00 83 [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:12]Read from MH i2c: E2 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 17 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: E2 17 00 E5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 DA [21:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:03:12]wFMCommunicate OK [21:03:12]CreateOFDProtocolMessage done [21:03:12]OFDSenderStorePacket 140398 [21:03:12]StoreOFDPacket docnum=140398 [21:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 CF 07 01 A8 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 0F 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 24 02 00 35 04 06 00 18 46 F1 12 50 B5 75 C0 7A A6 27 77 84 39 [21:03:12]CheckFolder [21:03:12]dirname=/storage/ofd_packets [21:03:12]CheckFolder done [21:03:12]ProducePacketName [21:03:12]name=ofd_packets/00140398 [21:03:12]NVStorageSaveData ofd_packets/00140398 [21:03:12]File name is /storage/ofd_packets/00140398 [21:03:12]Write 301 bytes [21:03:12]NVStorageSaveData done [21:03:12]OFDSenderStorePacket done [21:03:12]KKMCreateOFDPacket done [21:03:12]NVStorageSaveData kkm_last_timestamp [21:03:12]File name is /storage/kkm_last_timestamp [21:03:12]Write 4 bytes [21:03:12]NVStorageSaveData done [21:03:12]ExternCall_PrintAddStr [21:03:12]wPrintStart [21:03:12]Write to MH i2c: 01 00 00 E6 24 0A [21:03:12]Write i2c OK [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: 01 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: 01 07 00 [21:03:12]MH_I2C_Read... [21:03:12]Read from MH i2c: 01 07 00 E6 24 00 00 00 00 00 FF 0F 1F [21:03:12]RasterBufferAndPrint [21:03:12]line Счет N : (1)594256 [21:03:12]line ИНН: 02508201610067 [21:03:12]line Контрольно-Кассовый Чек [21:03:12]line ПРОДАЖА [21:03:12]line ТРК (МРК, ГНК) : 42 [21:03:12]line Товар: 2710124130 [21:03:12]line Аи-92-К-5 [21:03:12]line 4.430 * 67.80 [21:03:12]line = 300.35 [21:03:12]line НДС 12% НСП 1% [21:03:12]line > о реализуемом товаре [21:03:12]line ОКРУГЛЕНИЕ: -0.35 [21:03:12]line ИТОГО: 300.00 [21:03:12]line Внесено: 300.00 [21:03:12]line СДАЧА: 0.00 [21:03:12]line НСП 1% : 2.66 [21:03:12]line НДС 12% : 31.90 [21:03:12]line Наличными: 300.00 [21:03:12]line Безнал.: 0.00 [21:03:12]line Место: АЗС № 136 "Партнер Нефть" [21:03:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:03:12]line СНО: Общий режим [21:03:12]line Чек 415 21.08.2024 21:03 [21:03:12]line Смена: 454 ФФД: 1.0 [21:03:12]line ЗНМ: 0300000067 [21:03:12]line РНМ: 0000000000092569 [21:03:12]line Версия ККМ: 001 [21:03:12]line ФМ: 0000000000871776 [21:03:12]line ФД: 140398 [21:03:12]line ФПД: 26692971286709 [21:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210311&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140398&fm=26692971286709&tin=02508201610067®Number=0000000000092569&sum=30000 [21:03:12]written 0, free lines is 4095 [21:03:12]OFD Sender: Processing packet 140398 [packets to send 137, broken 136] [21:03:12]ProducePacketName [21:03:12]name=ofd_packets/00140398 [21:03:12]OFD Sender: To server: pG, [21:03:12]CommunicateWithHost lk.salyk.kg:30040 [21:03:12]ConnectInit lk.salyk.kg [21:03:12]Connected sock=10 [21:03: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 37 36 0F 01 00 00 D0 CF 07 01 A8 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 0F 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6E 24 02 00 35 04 06 00 18 46 F1 12 50 B5 75 C0 7A A6 27 77 84 39 [21:03: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 37 36 4F 00 00 00 E8 32 47 00 A3 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 37 36 10 04 04 00 6E 24 02 00 F4 03 04 00 9F FC C5 66 B6 04 01 00 00 F6 F1 3C 46 E2 90 EC DD [21:03:13]CommunicateWithHost err = 0 [21:03:13]CheckOFDResponse [21:03:13]1017 (14) - 77093643461234 [21:03:13]1041 (16) - 0000000000871776 [21:03:13]1040 (4) - 140398 [21:03:13]1012 (4) - 21.08.2024 14:41 [21:03:13]1206 (1) - 0 [21:03:13]OFD Sender: Remove packet 140398 [21:03:13]ProducePacketName [21:03:13]name=ofd_packets/00140398 [21:03:13]NVStorageDeleteData [21:03:13]Write to MH i2c: 01 00 00 11 25 36 [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 07 00 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: 01 07 00 11 25 00 00 00 00 00 CF 0C 18 [21:03:13]RasterBufferAndPrint [21:03:13]line [21:03:13]line [21:03:13]line [21:03:13]line [21:03:13]line [21:03:13]written 0, free lines is 3287 [21:03:13]MH_Cut [21:03:13]Write to MH i2c: D1 01 00 18 25 01 0F [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: D1 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: D1 01 00 [21:03:13]MH_I2C_Read... [21:03:13]Read from MH i2c: D1 01 00 18 25 00 0E [21:03:13]Write to MH i2c: 01 00 00 19 25 3E [21:03:13]Write i2c OK [21:03:13]MH_I2C_Read... [21:03:13]OFD Sender: No OFD packet to send [21:03:13]*** Cut start [21:03:13]*** Partial cut [21:03:13]*** CUTSNS_PIN = 1 [21:03:13]*** CUTSNS_PIN = 0 [21:03:14]*** Brake cut motor [21:03:14]Read from MH i2c: 01 [21:03:14]MH_I2C_Read... [21:03:14]*** Stop cut motor [21:03:14]*** Cut end [21:03:14]Read from MH i2c: 01 07 00 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: 01 07 00 19 25 00 00 00 00 00 FF 0F 53 [21:03:14]process_action close_receipt done [21:03:14]requested_data is exist [21:03:14]produce_requested_data [21:03:14]requested_item fm.sn is exist - process it [21:03:14]wFMCommunicate request_size=4 [21:03:14]MH_SAM_APDU [21:03:14]CAPDU: 80 11 00 00 [21:03:14]Write to MH i2c: E2 08 00 1A 25 80 11 00 00 00 00 00 00 B9 [21:03:14]Write i2c OK [21:03:14]MH_I2C_Read... [21:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:14]Read from MH i2c: E2 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 17 00 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 17 00 1A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 10 [21:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:03:14]wFMCommunicate OK [21:03:14]requested_item fd.num is exist - process it [21:03:14]SAM_PROTO_GetFieldsCounters [21:03:14]wFMCommunicate request_size=4 [21:03:14]MH_SAM_APDU [21:03:14]CAPDU: 80 13 00 00 [21:03:14]Write to MH i2c: E2 08 00 1B 25 80 13 00 00 00 00 00 00 BC [21:03:14]Write i2c OK [21:03:14]MH_I2C_Read... [21:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:14]Read from MH i2c: E2 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 62 00 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 62 00 1B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 24 02 00 0E 04 04 00 C6 01 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 22 [21:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6E 24 02 00 0E 04 04 00 C6 01 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 [21:03:14]wFMCommunicate OK [21:03:14]SAM_PROTO_GetFieldsCounters done [21:03:14]requested_item shift.num is exist - process it [21:03:14]requested_item shift.opened is exist - process it [21:03:14]req_shift_opened [21:03:14]FM_GetShiftState [21:03:14]SAM_PROTO_GetShiftState [21:03:14]wFMCommunicate request_size=4 [21:03:14]MH_SAM_APDU [21:03:14]CAPDU: 80 13 01 00 [21:03:14]Write to MH i2c: E2 08 00 1C 25 80 13 01 00 00 00 00 00 BE [21:03:14]Write i2c OK [21:03:14]MH_I2C_Read... [21:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:14]Read from MH i2c: E2 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 0E 00 [21:03:14]MH_I2C_Read... [21:03:14]Read from MH i2c: E2 0E 00 1C 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 3E [21:03:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:03:14]wFMCommunicate OK [21:03:14]SAM_PROTO_GetShiftState done [21:03:14]FM_GetShiftState done [21:03:14]req_shift_opened done [21:03:14]requested_item shift.open_date is exist - process it [21:03:14]req_shift_open_date [21:03:14]req_shift_open_date done [21:03:14]produce_requested_data done [21:03:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140398,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:03:14]process_action_free close_receipt [21:03:14]json_value_free [21:03:14]json_value_free done [21:03:14]process_json_proto returns [21:03:14]Send response to host [21:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140398,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:03:14]free response buf [21:03:14]execute_script done [21:03:14]execute_script returns [21:03:14]free content buf [21:03:14]Sock 9.Close socket [21:03:14]Sock 9.Thread stoped [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:11]accept exits with 7 [21:04:11]New connection [21:04:11]New thread 3067612516 created [21:04:11]Thread 3067469156 joined [21:04:11]Waiting for new connection... [21:04:11] Sock 7.Parse request [21:04:11]Sock 7.Check first char [21:04:11]Sock 7.First char is OK [21:04:11]request: POST /json_proto HTTP/1.0 [21:04:11]Method: POST [21:04:11]URL: /json_proto [21:04:11]Method is POST - this is cgi request [21:04:11]url: /json_proto [21:04:11]query_string will be loaded in cgi processing [21:04:11]execute_cgi json_proto POST (null) [21:04:11]execute_cgi path=json_proto method=POST [21:04:11]POST find Content-Length [21:04:11]Host: 172.17.45.67:8080 [21:04:11]Content-Length: 677 [21:04:11]Content-Type: application/json [21:04:11] [21:04:11]POST finish read [21:04:11]Found Content-Length = 677 [21:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:11]execute_script... [21:04:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:04:11]POST & json_proto [21:04:11]process_json_proto [21:04:11]json parsed OK: [21:04:11]protocol is kg_v1.0 [21:04:11]action value=close_receipt [21:04:11]process_action close_receipt [21:04:11]cmd_close_receipt [21:04:11]MH_GetDate [21:04:11]Write to MH i2c: F0 00 00 1D 25 31 [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 09 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 09 00 1D 25 00 4C 56 C6 66 5F 7F 2B 66 77 [21:04:11]GetLastDocTimeStamp 1724274191 [21:04:11]current date 1724274252 [21:04:11]FM_GetShiftState [21:04:11]SAM_PROTO_GetShiftState [21:04:11]wFMCommunicate request_size=4 [21:04:11]MH_SAM_APDU [21:04:11]CAPDU: 80 13 01 00 [21:04:11]Write to MH i2c: E2 08 00 1E 25 80 13 01 00 00 00 00 00 C0 [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:11]Read from MH i2c: E2 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: E2 0E 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: E2 0E 00 1E 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 40 [21:04:11]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:04:11]wFMCommunicate OK [21:04:11]SAM_PROTO_GetShiftState done [21:04:11]FM_GetShiftState done [21:04:11]opened in 1724200467 [21:04:11]opened+sec_in_day 1724286867 [21:04:11]quantity*price = 50036 [21:04:11]sum+1 = 50037 [21:04:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 416 21.08.2024 21:04 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140399 ФПД: 108206635315577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210412&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140399&fm=108206635315577&tin=02508201610067®Number=0000000000092569&sum=50000 [21:04:12]StoreToDocumentArchive [21:04:12]shift 454 fd 140399 [21:04:12]save to /storage/0454/doc_00140399 [21:04:12]save last doc name /storage/0454/doc_00140399 to /storage/kkm_last_doc_name [21:04:12]save OK [21:04:12]Clear old archive folders... [21:04:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:12]tlvbuf is B6FF60D0 [21:04:12]SAM_PROTO_ClearQueue [21:04:12]wFMCommunicate request_size=4 [21:04:12]MH_SAM_APDU [21:04:12]CAPDU: 80 09 00 00 [21:04:12]Write to MH i2c: E2 08 00 2B 25 80 09 00 00 00 00 00 00 C2 [21:04:12]Write i2c OK [21:04:12]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]SAM_PROTO_ClearQueue done [21:04:13]KKMCreateOFDPacket [21:04:13]OFDProtocolAddRootSTLVToBuf [21:04:13]FM_MakeSignedData [21:04:13]FM_MakeSignedData [21:04:13]SAM_PROTO_SignData [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 01 02 [21:04:13]Write to MH i2c: E2 08 00 2C 25 80 0D 01 02 00 00 00 00 CA [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 2C 25 00 90 00 C5 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=255 [21:04:13]MH_SAM_APDU [21:04: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 4C 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 24 02 00 35 04 06 00 62 [21:04:13]Write to MH i2c: E2 02 01 2D 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 4C 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 24 02 00 35 04 06 00 62 00 00 80 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=10 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 02 02 05 69 D2 0F 71 79 [21:04:13]Write to MH i2c: E2 0D 00 2E 25 80 0D 02 02 05 00 69 D2 0F 71 79 00 00 0B [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 03 02 [21:04:13]Write to MH i2c: E2 08 00 2F 25 80 0D 03 02 00 00 00 00 CF [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 0B 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 0B 00 2F 25 00 2D F9 35 E2 01 8E 0A F3 90 00 99 [21:04:13]RAPDU: 2D F9 35 E2 01 8E 0A F3 90 00 [21:04:13]wFMCommunicate OK [21:04:13]SAM_PROTO_SignData done [21:04:13]FM_MakeSignedData done [21:04:13]CreateOFDProtocolMessage [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 11 00 00 [21:04:13]Write to MH i2c: E2 08 00 30 25 80 11 00 00 00 00 00 00 CF [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 17 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 17 00 30 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 26 [21:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:04:13]wFMCommunicate OK [21:04:13]CreateOFDProtocolMessage done [21:04:13]OFDSenderStorePacket 140399 [21:04:13]StoreOFDPacket docnum=140399 [21:04:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 AF 1F 07 01 5A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 4C 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 24 02 00 35 04 06 00 62 69 D2 0F 71 79 2D F9 35 E2 01 8E 0A F3 [21:04:13]CheckFolder [21:04:13]dirname=/storage/ofd_packets [21:04:13]CheckFolder done [21:04:13]ProducePacketName [21:04:13]name=ofd_packets/00140399 [21:04:13]NVStorageSaveData ofd_packets/00140399 [21:04:13]File name is /storage/ofd_packets/00140399 [21:04:13]Write 301 bytes [21:04:13]NVStorageSaveData done [21:04:13]OFDSenderStorePacket done [21:04:13]KKMCreateOFDPacket done [21:04:13]NVStorageSaveData kkm_last_timestamp [21:04:13]File name is /storage/kkm_last_timestamp [21:04:13]Write 4 bytes [21:04:13]NVStorageSaveData done [21:04:13]ExternCall_PrintAddStr [21:04:13]wPrintStart [21:04:13]Write to MH i2c: 01 00 00 31 25 56 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 31 25 00 00 00 00 00 FF 0F 6B [21:04:13]RasterBufferAndPrint [21:04:13]line Счет N : (1)594257 [21:04:13]line ИНН: 02508201610067 [21:04:13]line Контрольно-Кассовый Чек [21:04:13]line ПРОДАЖА [21:04:13]line ТРК (МРК, ГНК) : 32 [21:04:13]line Товар: 2710124130 [21:04:13]line Аи-92-К-5 [21:04:13]line 7.380 * 67.80 [21:04:13]line = 500.36 [21:04:13]line НДС 12% НСП 1% [21:04:13]line > о реализуемом товаре [21:04:13]line ОКРУГЛЕНИЕ: -0.36 [21:04:13]line ИТОГО: 500.00 [21:04:13]line Внесено: 500.00 [21:04:13]line СДАЧА: 0.00 [21:04:13]line НСП 1% : 4.43 [21:04:13]line НДС 12% : 53.14 [21:04:13]line Наличными: 500.00 [21:04:13]line Безнал.: 0.00 [21:04:13]line Место: АЗС № 136 "Партнер Нефть" [21:04:13]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:04:13]line СНО: Общий режим [21:04:13]line Чек 416 21.08.2024 21:04 [21:04:13]line Смена: 454 ФФД: 1.0 [21:04:13]line ЗНМ: 0300000067 [21:04:13]line РНМ: 0000000000092569 [21:04:13]line Версия ККМ: 001 [21:04:13]line ФМ: 0000000000871776 [21:04:13]line ФД: 140399 [21:04:13]line ФПД: 108206635315577 [21:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210412&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140399&fm=108206635315577&tin=02508201610067®Number=0000000000092569&sum=50000 [21:04:13]written 0, free lines is 4095 [21:04:13]OFD Sender: Processing packet 140399 [packets to send 137, broken 136] [21:04:13]ProducePacketName [21:04:13]name=ofd_packets/00140399 [21:04:13]OFD Sender: To server: pG, [21:04:13]CommunicateWithHost lk.salyk.kg:30040 [21:04:13]ConnectInit lk.salyk.kg [21:04:14]Connected sock=10 [21:04: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 37 36 0F 01 00 00 AF 1F 07 01 5A 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 4C 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 6F 24 02 00 35 04 06 00 62 69 D2 0F 71 79 2D F9 35 E2 01 8E 0A F3 [21:04:14]Write to MH i2c: 01 00 00 5C 25 81 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 5C 25 00 00 00 00 00 CD 0C 61 [21:04:14]RasterBufferAndPrint [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]written 0, free lines is 3284 [21:04:14]MH_Cut [21:04:14]Write to MH i2c: D1 01 00 63 25 01 5A [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 63 25 00 59 [21:04:14]Write to MH i2c: 01 00 00 64 25 89 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 46 A6 47 00 3E 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 37 36 10 04 04 00 6F 24 02 00 F4 03 04 00 DC FC C5 66 B6 04 01 00 00 A9 F5 CB 6C F2 D4 68 82 [21:04:14]CommunicateWithHost err = 0 [21:04:14]CheckOFDResponse [21:04:14]1017 (14) - 77093643461234 [21:04:14]1041 (16) - 0000000000871776 [21:04:14]1040 (4) - 140399 [21:04:14]1012 (4) - 21.08.2024 14:42 [21:04:14]1206 (1) - 0 [21:04:14]OFD Sender: Remove packet 140399 [21:04:14]ProducePacketName [21:04:14]name=ofd_packets/00140399 [21:04:14]NVStorageDeleteData [21:04:14]OFD Sender: No OFD packet to send [21:04:15]*** Cut start [21:04:15]*** Partial cut [21:04:15]*** CUTSNS_PIN = 1 [21:04:15]*** CUTSNS_PIN = 0 [21:04:15]*** Brake cut motor [21:04:15]Read from MH i2c: 01 [21:04:15]MH_I2C_Read... [21:04:15]*** Stop cut motor [21:04:15]*** Cut end [21:04:15]Read from MH i2c: 01 07 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: 01 07 00 64 25 00 00 00 00 00 FF 0F 9E [21:04:15]process_action close_receipt done [21:04:15]requested_data is exist [21:04:15]produce_requested_data [21:04:15]requested_item fm.sn is exist - process it [21:04:15]wFMCommunicate request_size=4 [21:04:15]MH_SAM_APDU [21:04:15]CAPDU: 80 11 00 00 [21:04:15]Write to MH i2c: E2 08 00 65 25 80 11 00 00 00 00 00 00 04 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:15]Read from MH i2c: E2 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 17 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 17 00 65 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 5B [21:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:04:15]wFMCommunicate OK [21:04:15]requested_item fd.num is exist - process it [21:04:15]SAM_PROTO_GetFieldsCounters [21:04:15]wFMCommunicate request_size=4 [21:04:15]MH_SAM_APDU [21:04:15]CAPDU: 80 13 00 00 [21:04:15]Write to MH i2c: E2 08 00 66 25 80 13 00 00 00 00 00 00 07 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:15]Read from MH i2c: E2 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 62 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 62 00 66 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 24 02 00 0E 04 04 00 C6 01 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 71 [21:04:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 6F 24 02 00 0E 04 04 00 C6 01 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 [21:04:15]wFMCommunicate OK [21:04:15]SAM_PROTO_GetFieldsCounters done [21:04:15]requested_item shift.num is exist - process it [21:04:15]requested_item shift.opened is exist - process it [21:04:15]req_shift_opened [21:04:15]FM_GetShiftState [21:04:15]SAM_PROTO_GetShiftState [21:04:15]wFMCommunicate request_size=4 [21:04:15]MH_SAM_APDU [21:04:15]CAPDU: 80 13 01 00 [21:04:15]Write to MH i2c: E2 08 00 67 25 80 13 01 00 00 00 00 00 09 [21:04:15]Write i2c OK [21:04:15]MH_I2C_Read... [21:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:15]Read from MH i2c: E2 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 0E 00 [21:04:15]MH_I2C_Read... [21:04:15]Read from MH i2c: E2 0E 00 67 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 89 [21:04:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:04:15]wFMCommunicate OK [21:04:15]SAM_PROTO_GetShiftState done [21:04:15]FM_GetShiftState done [21:04:15]req_shift_opened done [21:04:15]requested_item shift.open_date is exist - process it [21:04:15]req_shift_open_date [21:04:15]req_shift_open_date done [21:04:15]produce_requested_data done [21:04:15]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140399,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:04:15]process_action_free close_receipt [21:04:15]json_value_free [21:04:15]json_value_free done [21:04:15]process_json_proto returns [21:04:15]Send response to host [21:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140399,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:04:15]free response buf [21:04:15]execute_script done [21:04:15]execute_script returns [21:04:15]free content buf [21:04:15]Sock 7.Close socket [21:04:15]Sock 7.Thread stoped [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:42]accept exits with 9 [21:06:42]New connection [21:06:42]New thread 3067469156 created [21:06:42]Thread 3067612516 joined [21:06:42]Waiting for new connection... [21:06:42] Sock 9.Parse request [21:06:42]Sock 9.Check first char [21:06:42]Sock 9.First char is OK [21:06:42]request: POST /json_proto HTTP/1.0 [21:06:42]Method: POST [21:06:42]URL: /json_proto [21:06:42]Method is POST - this is cgi request [21:06:42]url: /json_proto [21:06:42]query_string will be loaded in cgi processing [21:06:42]execute_cgi json_proto POST (null) [21:06:42]execute_cgi path=json_proto method=POST [21:06:42]POST find Content-Length [21:06:42]Host: 172.17.45.67:8080 [21:06:42]Content-Length: 682 [21:06:42]Content-Type: application/json [21:06:42] [21:06:42]POST finish read [21:06:42]Found Content-Length = 682 [21:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:42]execute_script... [21:06: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)594258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:42]POST & json_proto [21:06:42]process_json_proto [21:06:42]json parsed OK: [21:06:42]protocol is kg_v1.0 [21:06:42]action value=close_receipt [21:06:42]process_action close_receipt [21:06:42]cmd_close_receipt [21:06:42]MH_GetDate [21:06:42]Write to MH i2c: F0 00 00 68 25 7C [21:06:42]Write i2c OK [21:06:42]MH_I2C_Read... [21:06:42]Read from MH i2c: F0 [21:06:42]MH_I2C_Read... [21:06:42]Read from MH i2c: F0 09 00 [21:06:42]MH_I2C_Read... [21:06:42]Read from MH i2c: F0 09 00 68 25 00 E3 56 C6 66 5F 7F 2B 66 59 [21:06:42]GetLastDocTimeStamp 1724274252 [21:06:42]current date 1724274403 [21:06:42]FM_GetShiftState [21:06:42]SAM_PROTO_GetShiftState [21:06:42]wFMCommunicate request_size=4 [21:06:42]MH_SAM_APDU [21:06:42]CAPDU: 80 13 01 00 [21:06:42]Write to MH i2c: E2 08 00 69 25 80 13 01 00 00 00 00 00 0B [21:06:42]Write i2c OK [21:06:42]MH_I2C_Read... [21:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:42]Read from MH i2c: E2 [21:06:42]MH_I2C_Read... [21:06:42]Read from MH i2c: E2 0E 00 [21:06:42]MH_I2C_Read... [21:06:42]Read from MH i2c: E2 0E 00 69 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8B [21:06:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:06:42]wFMCommunicate OK [21:06:42]SAM_PROTO_GetShiftState done [21:06:42]FM_GetShiftState done [21:06:42]opened in 1724200467 [21:06:42]opened+sec_in_day 1724286867 [21:06:42]quantity*price = 120006 [21:06:42]sum+1 = 120007 [21:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 417 21.08.2024 21:06 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140400 ФПД: 42864783770877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140400&fm=42864783770877&tin=02508201610067®Number=0000000000092569&sum=120000 [21:06:43]StoreToDocumentArchive [21:06:43]shift 454 fd 140400 [21:06:43]save to /storage/0454/doc_00140400 [21:06:43]save last doc name /storage/0454/doc_00140400 to /storage/kkm_last_doc_name [21:06:43]save OK [21:06:43]Clear old archive folders... [21:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:43]tlvbuf is 00C95990 [21:06:43]SAM_PROTO_ClearQueue [21:06:43]wFMCommunicate request_size=4 [21:06:43]MH_SAM_APDU [21:06:43]CAPDU: 80 09 00 00 [21:06:43]Write to MH i2c: E2 08 00 76 25 80 09 00 00 00 00 00 00 0D [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [21:06:43]RAPDU: 90 00 [21:06:43]wFMCommunicate OK [21:06:43]SAM_PROTO_ClearQueue done [21:06:43]KKMCreateOFDPacket [21:06:43]OFDProtocolAddRootSTLVToBuf [21:06:43]FM_MakeSignedData [21:06:43]FM_MakeSignedData [21:06:43]SAM_PROTO_SignData [21:06:43]wFMCommunicate request_size=4 [21:06:43]MH_SAM_APDU [21:06:43]CAPDU: 80 0D 01 02 [21:06:43]Write to MH i2c: E2 08 00 77 25 80 0D 01 02 00 00 00 00 15 [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 77 25 00 90 00 10 [21:06:43]RAPDU: 90 00 [21:06:43]wFMCommunicate OK [21:06:43]wFMCommunicate request_size=255 [21:06:43]MH_SAM_APDU [21:06: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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 A1 01 00 00 F4 03 04 00 E3 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 24 02 00 35 04 06 00 26 [21:06:43]Write to MH i2c: E2 02 01 78 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 A1 01 00 00 F4 03 04 00 E3 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 24 02 00 35 04 06 00 26 00 00 9A [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 78 25 00 90 00 11 [21:06:43]RAPDU: 90 00 [21:06:43]wFMCommunicate OK [21:06:43]wFMCommunicate request_size=10 [21:06:43]MH_SAM_APDU [21:06:43]CAPDU: 80 0D 02 02 05 FC 3C 35 C4 FD [21:06:43]Write to MH i2c: E2 0D 00 79 25 80 0D 02 02 05 00 FC 3C 35 C4 FD 00 00 50 [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 03 00 79 25 00 90 00 12 [21:06:43]RAPDU: 90 00 [21:06:43]wFMCommunicate OK [21:06:43]wFMCommunicate request_size=4 [21:06:43]MH_SAM_APDU [21:06:43]CAPDU: 80 0D 03 02 [21:06:43]Write to MH i2c: E2 08 00 7A 25 80 0D 03 02 00 00 00 00 1A [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 0B 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 0B 00 7A 25 00 BA 4D 98 8E B4 8C 24 58 90 00 04 [21:06:43]RAPDU: BA 4D 98 8E B4 8C 24 58 90 00 [21:06:43]wFMCommunicate OK [21:06:43]SAM_PROTO_SignData done [21:06:43]FM_MakeSignedData done [21:06:43]CreateOFDProtocolMessage [21:06:43]wFMCommunicate request_size=4 [21:06:43]MH_SAM_APDU [21:06:43]CAPDU: 80 11 00 00 [21:06:43]Write to MH i2c: E2 08 00 7B 25 80 11 00 00 00 00 00 00 1A [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:43]Read from MH i2c: E2 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 17 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: E2 17 00 7B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 71 [21:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:06:43]wFMCommunicate OK [21:06:43]CreateOFDProtocolMessage done [21:06:43]OFDSenderStorePacket 140400 [21:06:43]StoreOFDPacket docnum=140400 [21:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 DD 3E 07 01 AC FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 A1 01 00 00 F4 03 04 00 E3 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 24 02 00 35 04 06 00 26 FC 3C 35 C4 FD BA 4D 98 8E B4 8C 24 58 [21:06:43]CheckFolder [21:06:43]dirname=/storage/ofd_packets [21:06:43]CheckFolder done [21:06:43]ProducePacketName [21:06:43]name=ofd_packets/00140400 [21:06:43]NVStorageSaveData ofd_packets/00140400 [21:06:43]File name is /storage/ofd_packets/00140400 [21:06:43]Write 301 bytes [21:06:43]NVStorageSaveData done [21:06:43]OFDSenderStorePacket done [21:06:43]KKMCreateOFDPacket done [21:06:43]NVStorageSaveData kkm_last_timestamp [21:06:43]File name is /storage/kkm_last_timestamp [21:06:43]Write 4 bytes [21:06:43]NVStorageSaveData done [21:06:43]ExternCall_PrintAddStr [21:06:43]wPrintStart [21:06:43]Write to MH i2c: 01 00 00 7C 25 A1 [21:06:43]Write i2c OK [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 07 00 [21:06:43]MH_I2C_Read... [21:06:43]Read from MH i2c: 01 07 00 7C 25 00 00 00 00 00 FF 0F B6 [21:06:43]RasterBufferAndPrint [21:06:43]line Счет N : (1)594258 [21:06:43]line ИНН: 02508201610067 [21:06:43]line Контрольно-Кассовый Чек [21:06:43]line ПРОДАЖА [21:06:43]line ТРК (МРК, ГНК) : 42 [21:06:43]line Товар: 2710124130 [21:06:43]line Аи-92-К-5 [21:06:43]line 17.700 * 67.80 [21:06:43]line = 1200.06 [21:06:43]line НДС 12% НСП 1% [21:06:43]line > о реализуемом товаре [21:06:43]line ОКРУГЛЕНИЕ: -0.06 [21:06:43]line ИТОГО: 1200.00 [21:06:43]line Внесено: 1200.00 [21:06:43]line СДАЧА: 0.00 [21:06:43]line НСП 1% : 10.62 [21:06:43]line НДС 12% : 127.44 [21:06:43]line Наличными: 1200.00 [21:06:43]line Безнал.: 0.00 [21:06:43]line Место: АЗС № 136 "Партнер Нефть" [21:06:43]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:06:43]line СНО: Общий режим [21:06:43]line Чек 417 21.08.2024 21:06 [21:06:43]line Смена: 454 ФФД: 1.0 [21:06:43]line ЗНМ: 0300000067 [21:06:43]line РНМ: 0000000000092569 [21:06:43]line Версия ККМ: 001 [21:06:43]line ФМ: 0000000000871776 [21:06:43]line ФД: 140400 [21:06:43]line ФПД: 42864783770877 [21:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T210643&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140400&fm=42864783770877&tin=02508201610067®Number=0000000000092569&sum=120000 [21:06:43]written 0, free lines is 4095 [21:06:43]OFD Sender: Processing packet 140400 [packets to send 137, broken 136] [21:06:43]ProducePacketName [21:06:43]name=ofd_packets/00140400 [21:06:43]OFD Sender: To server: pG, [21:06:43]CommunicateWithHost lk.salyk.kg:30040 [21:06:43]ConnectInit lk.salyk.kg [21:06:44]Connected sock=10 [21:06: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 37 36 0F 01 00 00 DD 3E 07 01 AC FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 A1 01 00 00 F4 03 04 00 E3 56 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 70 24 02 00 35 04 06 00 26 FC 3C 35 C4 FD BA 4D 98 8E B4 8C 24 58 [21:06:44]Write to MH i2c: 01 00 00 A7 25 CC [21:06:44]Write i2c OK [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: 01 [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: 01 07 00 [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: 01 07 00 A7 25 00 00 00 00 00 D2 0C B1 [21:06:44]RasterBufferAndPrint [21:06:44]line [21:06:44]line [21:06:44]line [21:06:44]line [21:06:44]line [21:06:44]written 0, free lines is 3287 [21:06:44]MH_Cut [21:06:44]Write to MH i2c: D1 01 00 AE 25 01 A5 [21:06:44]Write i2c OK [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: D1 [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: D1 01 00 [21:06:44]MH_I2C_Read... [21:06:44]Read from MH i2c: D1 01 00 AE 25 00 A4 [21:06:44]Write to MH i2c: 01 00 00 AF 25 D4 [21:06:44]Write i2c OK [21:06:44]MH_I2C_Read... [21:06: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 37 36 4F 00 00 00 FA F8 47 00 F3 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 37 36 10 04 04 00 70 24 02 00 F4 03 04 00 72 FD C5 66 B6 04 01 00 00 C9 8D 04 6C 07 4D DD 45 [21:06:44]CommunicateWithHost err = 0 [21:06:44]CheckOFDResponse [21:06:44]1017 (14) - 77093643461234 [21:06:44]1041 (16) - 0000000000871776 [21:06:44]1040 (4) - 140400 [21:06:44]1012 (4) - 21.08.2024 14:45 [21:06:44]1206 (1) - 0 [21:06:44]OFD Sender: Remove packet 140400 [21:06:44]ProducePacketName [21:06:44]name=ofd_packets/00140400 [21:06:44]NVStorageDeleteData [21:06:44]OFD Sender: No OFD packet to send [21:06:44]*** Cut start [21:06:44]*** Partial cut [21:06:44]*** CUTSNS_PIN = 1 [21:06:45]*** CUTSNS_PIN = 0 [21:06:45]*** Brake cut motor [21:06:45]Read from MH i2c: 01 [21:06:45]MH_I2C_Read... [21:06:45]*** Stop cut motor [21:06:45]*** Cut end [21:06:45]Read from MH i2c: 01 07 00 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: 01 07 00 AF 25 00 00 00 00 00 FF 0F E9 [21:06:45]process_action close_receipt done [21:06:45]requested_data is exist [21:06:45]produce_requested_data [21:06:45]requested_item fm.sn is exist - process it [21:06:45]wFMCommunicate request_size=4 [21:06:45]MH_SAM_APDU [21:06:45]CAPDU: 80 11 00 00 [21:06:45]Write to MH i2c: E2 08 00 B0 25 80 11 00 00 00 00 00 00 4F [21:06:45]Write i2c OK [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 [21:06:45]MH_I2C_Read... [21:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:45]Read from MH i2c: E2 17 00 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 17 00 B0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A6 [21:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:06:45]wFMCommunicate OK [21:06:45]requested_item fd.num is exist - process it [21:06:45]SAM_PROTO_GetFieldsCounters [21:06:45]wFMCommunicate request_size=4 [21:06:45]MH_SAM_APDU [21:06:45]CAPDU: 80 13 00 00 [21:06:45]Write to MH i2c: E2 08 00 B1 25 80 13 00 00 00 00 00 00 52 [21:06:45]Write i2c OK [21:06:45]MH_I2C_Read... [21:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:45]Read from MH i2c: E2 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 62 00 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 62 00 B1 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 24 02 00 0E 04 04 00 C6 01 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 C0 [21:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 70 24 02 00 0E 04 04 00 C6 01 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 [21:06:45]wFMCommunicate OK [21:06:45]SAM_PROTO_GetFieldsCounters done [21:06:45]requested_item shift.num is exist - process it [21:06:45]requested_item shift.opened is exist - process it [21:06:45]req_shift_opened [21:06:45]FM_GetShiftState [21:06:45]SAM_PROTO_GetShiftState [21:06:45]wFMCommunicate request_size=4 [21:06:45]MH_SAM_APDU [21:06:45]CAPDU: 80 13 01 00 [21:06:45]Write to MH i2c: E2 08 00 B2 25 80 13 01 00 00 00 00 00 54 [21:06:45]Write i2c OK [21:06:45]MH_I2C_Read... [21:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:45]Read from MH i2c: E2 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 0E 00 [21:06:45]MH_I2C_Read... [21:06:45]Read from MH i2c: E2 0E 00 B2 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D4 [21:06:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:06:45]wFMCommunicate OK [21:06:45]SAM_PROTO_GetShiftState done [21:06:45]FM_GetShiftState done [21:06:45]req_shift_opened done [21:06:45]requested_item shift.open_date is exist - process it [21:06:45]req_shift_open_date [21:06:45]req_shift_open_date done [21:06:45]produce_requested_data done [21:06:45]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140400,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:06:45]process_action_free close_receipt [21:06:45]json_value_free [21:06:45]json_value_free done [21:06:45]process_json_proto returns [21:06:45]Send response to host [21:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140400,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:06:45]free response buf [21:06:45]execute_script done [21:06:45]execute_script returns [21:06:45]free content buf [21:06:45]Sock 9.Close socket [21:06:45]Sock 9.Thread stoped [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:08]accept exits with 7 [21:15:08]New connection [21:15:08]New thread 3067612516 created [21:15:08]Thread 3067469156 joined [21:15:08]Waiting for new connection... [21:15:08] Sock 7.Parse request [21:15:08]Sock 7.Check first char [21:15:08]Sock 7.First char is OK [21:15:08]request: POST /json_proto HTTP/1.0 [21:15:08]Method: POST [21:15:08]URL: /json_proto [21:15:08]Method is POST - this is cgi request [21:15:08]url: /json_proto [21:15:08]query_string will be loaded in cgi processing [21:15:08]execute_cgi json_proto POST (null) [21:15:08]execute_cgi path=json_proto method=POST [21:15:08]POST find Content-Length [21:15:08]Host: 172.17.45.67:8080 [21:15:08]Content-Length: 677 [21:15:08]Content-Type: application/json [21:15:08] [21:15:08]POST finish read [21:15:08]Found Content-Length = 677 [21:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:08]execute_script... [21:15: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)594259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:08]POST & json_proto [21:15:08]process_json_proto [21:15:08]json parsed OK: [21:15:08]protocol is kg_v1.0 [21:15:08]action value=close_receipt [21:15:08]process_action close_receipt [21:15:08]cmd_close_receipt [21:15:08]MH_GetDate [21:15:08]Write to MH i2c: F0 00 00 B3 25 C7 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: F0 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: F0 09 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: F0 09 00 B3 25 00 DD 58 C6 66 5F 7F 2B 66 A0 [21:15:08]GetLastDocTimeStamp 1724274403 [21:15:08]current date 1724274909 [21:15:08]FM_GetShiftState [21:15:08]SAM_PROTO_GetShiftState [21:15:08]wFMCommunicate request_size=4 [21:15:08]MH_SAM_APDU [21:15:08]CAPDU: 80 13 01 00 [21:15:08]Write to MH i2c: E2 08 00 B4 25 80 13 01 00 00 00 00 00 56 [21:15:08]Write i2c OK [21:15:08]MH_I2C_Read... [21:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:08]Read from MH i2c: E2 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 0E 00 [21:15:08]MH_I2C_Read... [21:15:08]Read from MH i2c: E2 0E 00 B4 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 D6 [21:15:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:15:08]wFMCommunicate OK [21:15:08]SAM_PROTO_GetShiftState done [21:15:08]FM_GetShiftState done [21:15:08]opened in 1724200467 [21:15:08]opened+sec_in_day 1724286867 [21:15:08]quantity*price = 50036 [21:15:08]sum+1 = 50037 [21:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 418 21.08.2024 21:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140401 ФПД: 188739242634374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T211509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140401&fm=188739242634374&tin=02508201610067®Number=0000000000092569&sum=50000 [21:15:09]StoreToDocumentArchive [21:15:09]shift 454 fd 140401 [21:15:09]save to /storage/0454/doc_00140401 [21:15:09]save last doc name /storage/0454/doc_00140401 to /storage/kkm_last_doc_name [21:15:09]save OK [21:15:09]Clear old archive folders... [21:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:09]tlvbuf is 00C714D0 [21:15:09]SAM_PROTO_ClearQueue [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 09 00 00 [21:15:09]Write to MH i2c: E2 08 00 C1 25 80 09 00 00 00 00 00 00 58 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 C1 25 00 90 00 5A [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_ClearQueue done [21:15:09]KKMCreateOFDPacket [21:15:09]OFDProtocolAddRootSTLVToBuf [21:15:09]FM_MakeSignedData [21:15:09]FM_MakeSignedData [21:15:09]SAM_PROTO_SignData [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 01 02 [21:15:09]Write to MH i2c: E2 08 00 C2 25 80 0D 01 02 00 00 00 00 60 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 C2 25 00 90 00 5B [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=255 [21:15:09]MH_SAM_APDU [21:15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DD 58 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 24 02 00 35 04 06 00 AB [21:15:09]Write to MH i2c: E2 02 01 C3 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DD 58 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 24 02 00 35 04 06 00 AB 00 00 F6 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 C3 25 00 90 00 5C [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=10 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 02 02 05 A8 47 83 2C 86 [21:15:09]Write to MH i2c: E2 0D 00 C4 25 80 0D 02 02 05 00 A8 47 83 2C 86 00 00 91 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 C4 25 00 90 00 5D [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 03 02 [21:15:09]Write to MH i2c: E2 08 00 C5 25 80 0D 03 02 00 00 00 00 65 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0B 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0B 00 C5 25 00 34 50 C0 A5 B6 EE C6 C2 90 00 7B [21:15:09]RAPDU: 34 50 C0 A5 B6 EE C6 C2 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_SignData done [21:15:09]FM_MakeSignedData done [21:15:09]CreateOFDProtocolMessage [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 11 00 00 [21:15:09]Write to MH i2c: E2 08 00 C6 25 80 11 00 00 00 00 00 00 65 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 17 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 17 00 C6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BC [21:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:15:09]wFMCommunicate OK [21:15:09]CreateOFDProtocolMessage done [21:15:09]OFDSenderStorePacket 140401 [21:15:09]StoreOFDPacket docnum=140401 [21:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1B 89 07 01 9E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DD 58 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 24 02 00 35 04 06 00 AB A8 47 83 2C 86 34 50 C0 A5 B6 EE C6 C2 [21:15:09]CheckFolder [21:15:09]dirname=/storage/ofd_packets [21:15:09]CheckFolder done [21:15:09]ProducePacketName [21:15:09]name=ofd_packets/00140401 [21:15:09]NVStorageSaveData ofd_packets/00140401 [21:15:09]File name is /storage/ofd_packets/00140401 [21:15:09]Write 301 bytes [21:15:09]NVStorageSaveData done [21:15:09]OFDSenderStorePacket done [21:15:09]KKMCreateOFDPacket done [21:15:09]NVStorageSaveData kkm_last_timestamp [21:15:09]File name is /storage/kkm_last_timestamp [21:15:09]Write 4 bytes [21:15:09]NVStorageSaveData done [21:15:09]ExternCall_PrintAddStr [21:15:09]wPrintStart [21:15:09]Write to MH i2c: 01 00 00 C7 25 EC [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 C7 25 00 00 00 00 00 FF 0F 01 [21:15:09]RasterBufferAndPrint [21:15:09]line Счет N : (1)594259 [21:15:09]line ИНН: 02508201610067 [21:15:09]line Контрольно-Кассовый Чек [21:15:09]line ПРОДАЖА [21:15:09]line ТРК (МРК, ГНК) : 32 [21:15:09]line Товар: 2710124130 [21:15:09]line Аи-92-К-5 [21:15:09]line 7.380 * 67.80 [21:15:09]line = 500.36 [21:15:09]line НДС 12% НСП 1% [21:15:09]line > о реализуемом товаре [21:15:09]line ОКРУГЛЕНИЕ: -0.36 [21:15:09]line ИТОГО: 500.00 [21:15:09]line Внесено: 500.00 [21:15:09]line СДАЧА: 0.00 [21:15:09]line НСП 1% : 4.43 [21:15:09]line НДС 12% : 53.14 [21:15:09]line Наличными: 500.00 [21:15:09]line Безнал.: 0.00 [21:15:09]line Место: АЗС № 136 "Партнер Нефть" [21:15:09]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:15:09]line СНО: Общий режим [21:15:09]line Чек 418 21.08.2024 21:15 [21:15:09]line Смена: 454 ФФД: 1.0 [21:15:09]line ЗНМ: 0300000067 [21:15:09]line РНМ: 0000000000092569 [21:15:09]line Версия ККМ: 001 [21:15:09]line ФМ: 0000000000871776 [21:15:09]line ФД: 140401 [21:15:09]line ФПД: 188739242634374 [21:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T211509&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140401&fm=188739242634374&tin=02508201610067®Number=0000000000092569&sum=50000 [21:15:10]written 0, free lines is 4095 [21:15:10]OFD Sender: Processing packet 140401 [packets to send 137, broken 136] [21:15:10]ProducePacketName [21:15:10]name=ofd_packets/00140401 [21:15:10]OFD Sender: To server: pG, [21:15:10]CommunicateWithHost lk.salyk.kg:30040 [21:15:10]ConnectInit lk.salyk.kg [21:15:10]Connected sock=10 [21:15: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 37 36 0F 01 00 00 1B 89 07 01 9E 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DD 58 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 71 24 02 00 35 04 06 00 AB A8 47 83 2C 86 34 50 C0 A5 B6 EE C6 C2 [21:15: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 37 36 4F 00 00 00 5D 95 47 00 EB 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 37 36 10 04 04 00 71 24 02 00 F4 03 04 00 6D FF C5 66 B6 04 01 00 00 99 65 09 F2 9A 18 50 DE [21:15:10]CommunicateWithHost err = 0 [21:15:10]CheckOFDResponse [21:15:10]1017 (14) - 77093643461234 [21:15:10]1041 (16) - 0000000000871776 [21:15:10]1040 (4) - 140401 [21:15:10]1012 (4) - 21.08.2024 14:53 [21:15:10]1206 (1) - 0 [21:15:10]OFD Sender: Remove packet 140401 [21:15:10]ProducePacketName [21:15:10]name=ofd_packets/00140401 [21:15:10]NVStorageDeleteData [21:15:10]Write to MH i2c: 01 00 00 F2 25 17 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 07 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 07 00 F2 25 00 00 00 00 00 CD 0C F7 [21:15:10]RasterBufferAndPrint [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]written 0, free lines is 3284 [21:15:10]MH_Cut [21:15:10]Write to MH i2c: D1 01 00 F9 25 01 F0 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 01 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 01 00 F9 25 00 EF [21:15:10]Write to MH i2c: 01 00 00 FA 25 1F [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:11]OFD Sender: No OFD packet to send [21:15:11]*** Cut start [21:15:11]*** Partial cut [21:15:11]*** CUTSNS_PIN = 1 [21:15:11]*** CUTSNS_PIN = 0 [21:15:11]*** Brake cut motor [21:15:11]Read from MH i2c: 01 [21:15:11]MH_I2C_Read... [21:15:11]*** Stop cut motor [21:15:11]*** Cut end [21:15:11]Read from MH i2c: 01 07 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 FA 25 00 00 00 00 00 FF 0F 34 [21:15:11]process_action close_receipt done [21:15:11]requested_data is exist [21:15:11]produce_requested_data [21:15:11]requested_item fm.sn is exist - process it [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 11 00 00 [21:15:11]Write to MH i2c: E2 08 00 FB 25 80 11 00 00 00 00 00 00 9A [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 17 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 17 00 FB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F1 [21:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:15:12]wFMCommunicate OK [21:15:12]requested_item fd.num is exist - process it [21:15:12]SAM_PROTO_GetFieldsCounters [21:15:12]wFMCommunicate request_size=4 [21:15:12]MH_SAM_APDU [21:15:12]CAPDU: 80 13 00 00 [21:15:12]Write to MH i2c: E2 08 00 FC 25 80 13 00 00 00 00 00 00 9D [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 62 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 62 00 FC 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 24 02 00 0E 04 04 00 C6 01 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 0F [21:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 71 24 02 00 0E 04 04 00 C6 01 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 [21:15:12]wFMCommunicate OK [21:15:12]SAM_PROTO_GetFieldsCounters done [21:15:12]requested_item shift.num is exist - process it [21:15:12]requested_item shift.opened is exist - process it [21:15:12]req_shift_opened [21:15:12]FM_GetShiftState [21:15:12]SAM_PROTO_GetShiftState [21:15:12]wFMCommunicate request_size=4 [21:15:12]MH_SAM_APDU [21:15:12]CAPDU: 80 13 01 00 [21:15:12]Write to MH i2c: E2 08 00 FD 25 80 13 01 00 00 00 00 00 9F [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0E 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0E 00 FD 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1F [21:15:12]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:15:12]wFMCommunicate OK [21:15:12]SAM_PROTO_GetShiftState done [21:15:12]FM_GetShiftState done [21:15:12]req_shift_opened done [21:15:12]requested_item shift.open_date is exist - process it [21:15:12]req_shift_open_date [21:15:12]req_shift_open_date done [21:15:12]produce_requested_data done [21:15:12]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140401,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:15:12]process_action_free close_receipt [21:15:12]json_value_free [21:15:12]json_value_free done [21:15:12]process_json_proto returns [21:15:12]Send response to host [21:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140401,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:15:12]free response buf [21:15:12]execute_script done [21:15:12]execute_script returns [21:15:12]free content buf [21:15:12]Sock 7.Close socket [21:15:12]Sock 7.Thread stoped [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:23]accept exits with 9 [21:25:23]New connection [21:25:23]New thread 3067469156 created [21:25:23]Thread 3067612516 joined [21:25:23]Waiting for new connection... [21:25:23] Sock 9.Parse request [21:25:23]Sock 9.Check first char [21:25:23]Sock 9.First char is OK [21:25:23]request: POST /json_proto HTTP/1.0 [21:25:23]Method: POST [21:25:23]URL: /json_proto [21:25:23]Method is POST - this is cgi request [21:25:23]url: /json_proto [21:25:23]query_string will be loaded in cgi processing [21:25:23]execute_cgi json_proto POST (null) [21:25:23]execute_cgi path=json_proto method=POST [21:25:23]POST find Content-Length [21:25:23]Host: 172.17.45.67:8080 [21:25:23]Content-Length: 827 [21:25:23]Content-Type: application/json [21:25:23] [21:25:23]POST finish read [21:25:23]Found Content-Length = 827 [21:25:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:23]execute_script... [21:25: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)594260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:23]POST & json_proto [21:25:23]process_json_proto [21:25:23]json parsed OK: [21:25:23]protocol is kg_v1.0 [21:25:23]action value=close_receipt [21:25:23]process_action close_receipt [21:25:23]cmd_close_receipt [21:25:23]MH_GetDate [21:25:23]Write to MH i2c: F0 00 00 FE 25 12 [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 09 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: F0 09 00 FE 25 00 44 5B C6 66 5F 7F 2B 66 55 [21:25:23]GetLastDocTimeStamp 1724274909 [21:25:23]current date 1724275524 [21:25:23]FM_GetShiftState [21:25:23]SAM_PROTO_GetShiftState [21:25:23]wFMCommunicate request_size=4 [21:25:23]MH_SAM_APDU [21:25:23]CAPDU: 80 13 01 00 [21:25:23]Write to MH i2c: E2 08 00 FF 25 80 13 01 00 00 00 00 00 A1 [21:25:23]Write i2c OK [21:25:23]MH_I2C_Read... [21:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:23]Read from MH i2c: E2 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: E2 0E 00 [21:25:23]MH_I2C_Read... [21:25:23]Read from MH i2c: E2 0E 00 FF 25 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 21 [21:25:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:25:23]wFMCommunicate OK [21:25:23]SAM_PROTO_GetShiftState done [21:25:23]FM_GetShiftState done [21:25:23]opened in 1724200467 [21:25:23]opened+sec_in_day 1724286867 [21:25:23]quantity*price = 250012 [21:25:23]sum+1 = 250013 [21:25:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 419 21.08.2024 21:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140402 ФПД: 44256033094029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212525&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140402&fm=44256033094029&tin=02508201610067®Number=0000000000092569&sum=250000 [21:25:25]StoreToDocumentArchive [21:25:25]shift 454 fd 140402 [21:25:25]save to /storage/0454/doc_00140402 [21:25:25]save last doc name /storage/0454/doc_00140402 to /storage/kkm_last_doc_name [21:25:25]save OK [21:25:25]Clear old archive folders... [21:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:25:25]tlvbuf is 00C8A050 [21:25:25]SAM_PROTO_ClearQueue [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 09 00 00 [21:25:25]Write to MH i2c: E2 08 00 0C 26 80 09 00 00 00 00 00 00 A4 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 0C 26 00 90 00 A6 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]SAM_PROTO_ClearQueue done [21:25:25]KKMCreateOFDPacket [21:25:25]OFDProtocolAddRootSTLVToBuf [21:25:25]FM_MakeSignedData [21:25:25]FM_MakeSignedData [21:25:25]SAM_PROTO_SignData [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 01 02 [21:25:25]Write to MH i2c: E2 08 00 0D 26 80 0D 01 02 00 00 00 00 AC [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 0D 26 00 90 00 A7 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=255 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 45 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 24 02 00 35 04 06 00 [21:25:25]Write to MH i2c: E2 02 01 0E 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 45 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 24 02 00 35 04 06 00 00 00 53 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 0E 26 00 90 00 A8 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=11 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 02 02 06 28 40 29 21 B9 8D [21:25:25]Write to MH i2c: E2 0E 00 0F 26 80 0D 02 02 06 00 28 40 29 21 B9 8D 00 00 B3 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 03 00 0F 26 00 90 00 A9 [21:25:25]RAPDU: 90 00 [21:25:25]wFMCommunicate OK [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 0D 03 02 [21:25:25]Write to MH i2c: E2 08 00 10 26 80 0D 03 02 00 00 00 00 B1 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 0B 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 0B 00 10 26 00 EB FF 97 7A 97 B1 6E 92 90 00 F5 [21:25:25]RAPDU: EB FF 97 7A 97 B1 6E 92 90 00 [21:25:25]wFMCommunicate OK [21:25:25]SAM_PROTO_SignData done [21:25:25]FM_MakeSignedData done [21:25:25]CreateOFDProtocolMessage [21:25:25]wFMCommunicate request_size=4 [21:25:25]MH_SAM_APDU [21:25:25]CAPDU: 80 11 00 00 [21:25:25]Write to MH i2c: E2 08 00 11 26 80 11 00 00 00 00 00 00 B1 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:25]Read from MH i2c: E2 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 17 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: E2 17 00 11 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 08 [21:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:25]wFMCommunicate OK [21:25:25]CreateOFDProtocolMessage done [21:25:25]OFDSenderStorePacket 140402 [21:25:25]StoreOFDPacket docnum=140402 [21:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 91 26 08 01 B3 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 45 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 24 02 00 35 04 06 00 28 40 29 21 B9 8D EB FF 97 7A 97 B1 6E 92 [21:25:25]CheckFolder [21:25:25]dirname=/storage/ofd_packets [21:25:25]CheckFolder done [21:25:25]ProducePacketName [21:25:25]name=ofd_packets/00140402 [21:25:25]NVStorageSaveData ofd_packets/00140402 [21:25:25]File name is /storage/ofd_packets/00140402 [21:25:25]Write 302 bytes [21:25:25]NVStorageSaveData done [21:25:25]OFDSenderStorePacket done [21:25:25]KKMCreateOFDPacket done [21:25:25]NVStorageSaveData kkm_last_timestamp [21:25:25]File name is /storage/kkm_last_timestamp [21:25:25]Write 4 bytes [21:25:25]NVStorageSaveData done [21:25:25]ExternCall_PrintAddStr [21:25:25]wPrintStart [21:25:25]Write to MH i2c: 01 00 00 12 26 38 [21:25:25]Write i2c OK [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 07 00 [21:25:25]MH_I2C_Read... [21:25:25]Read from MH i2c: 01 07 00 12 26 00 00 00 00 00 FF 0F 4D [21:25:25]RasterBufferAndPrint [21:25:25]line Счет N : (1)594260 [21:25:25]line ИНН: 02508201610067 [21:25:25]line Контрольно-Кассовый Чек [21:25:25]line ПРОДАЖА [21:25:25]line ТРК (МРК, ГНК) : 44 [21:25:25]line Товар: 2710194210 [21:25:25]line ДТ(л)-К-5 [21:25:25]line 32.810 * 76.20 [21:25:25]line = 2500.12 [21:25:25]line НДС 12% НСП 1% [21:25:25]line > о реализуемом товаре [21:25:25]line ОКРУГЛЕНИЕ: -0.12 [21:25:25]line ИТОГО: 2500.00 [21:25:25]line НСП 1% : 22.12 [21:25:25]line НДС 12% : 265.50 [21:25:25]line Наличными: 0.00 [21:25:25]line Безнал.: 2500.00 [21:25:25]line Место: АЗС № 136 "Партнер Нефть" [21:25:25]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:25:25]line СНО: Общий режим [21:25:25]line Чек 419 21.08.2024 21:25 [21:25:25]line Смена: 454 ФФД: 1.0 [21:25:25]line ЗНМ: 0300000067 [21:25:25]line РНМ: 0000000000092569 [21:25:25]line Версия ККМ: 001 [21:25:25]line Платежная система: O! деньги [21:25:25]line ФМ: 0000000000871776 [21:25:25]line ФД: 140402 [21:25:25]line ФПД: 44256033094029 [21:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212525&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140402&fm=44256033094029&tin=02508201610067®Number=0000000000092569&sum=250000 [21:25:25]OFD Sender: Processing packet 140402 [packets to send 137, broken 136] [21:25:25]ProducePacketName [21:25:25]name=ofd_packets/00140402 [21:25:25]OFD Sender: To server: pG, [21:25:25]CommunicateWithHost lk.salyk.kg:30040 [21:25:25]ConnectInit lk.salyk.kg [21:25:25]written 0, free lines is 4095 [21:25:26]Connected sock=10 [21:25: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 37 36 10 01 00 00 91 26 08 01 B3 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 45 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 24 02 00 35 04 06 00 28 40 29 21 B9 8D EB FF 97 7A 97 B1 6E 92 [21:25: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 37 36 4F 00 00 00 30 5E 47 00 D1 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 72 24 02 00 F4 03 04 00 D4 01 C6 66 B6 04 01 00 00 0D 63 C6 FB 1C BC 44 80 [21:25:26]CommunicateWithHost err = 0 [21:25:26]CheckOFDResponse [21:25:26]1017 (14) - 77093643461234 [21:25:26]1041 (16) - 0000000000871776 [21:25:26]1040 (4) - 140402 [21:25:26]1012 (4) - 21.08.2024 15:03 [21:25:26]1206 (1) - 0 [21:25:26]OFD Sender: Remove packet 140402 [21:25:26]ProducePacketName [21:25:26]name=ofd_packets/00140402 [21:25:26]NVStorageDeleteData [21:25:26]Write to MH i2c: 01 00 00 3D 26 63 [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 07 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: 01 07 00 3D 26 00 00 00 00 00 D4 0C 4A [21:25:26]RasterBufferAndPrint [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]line [21:25:26]written 0, free lines is 3290 [21:25:26]MH_Cut [21:25:26]Write to MH i2c: D1 01 00 44 26 01 3C [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 01 00 [21:25:26]MH_I2C_Read... [21:25:26]Read from MH i2c: D1 01 00 44 26 00 3B [21:25:26]Write to MH i2c: 01 00 00 45 26 6B [21:25:26]Write i2c OK [21:25:26]MH_I2C_Read... [21:25:26]OFD Sender: No OFD packet to send [21:25:27]*** Cut start [21:25:27]*** Partial cut [21:25:27]*** CUTSNS_PIN = 1 [21:25:27]*** CUTSNS_PIN = 0 [21:25:27]*** Brake cut motor [21:25:27]Read from MH i2c: 01 [21:25:27]MH_I2C_Read... [21:25:27]*** Stop cut motor [21:25:27]*** Cut end [21:25:27]Read from MH i2c: 01 07 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: 01 07 00 45 26 00 00 00 00 00 FF 0F 80 [21:25:27]process_action close_receipt done [21:25:27]requested_data is exist [21:25:27]produce_requested_data [21:25:27]requested_item fm.sn is exist - process it [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 11 00 00 [21:25:27]Write to MH i2c: E2 08 00 46 26 80 11 00 00 00 00 00 00 E6 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 17 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 17 00 46 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3D [21:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:27]wFMCommunicate OK [21:25:27]requested_item fd.num is exist - process it [21:25:27]SAM_PROTO_GetFieldsCounters [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 13 00 00 [21:25:27]Write to MH i2c: E2 08 00 47 26 80 13 00 00 00 00 00 00 E9 [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 62 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 62 00 47 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 24 02 00 0E 04 04 00 C6 01 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 5F [21:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 72 24 02 00 0E 04 04 00 C6 01 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 [21:25:27]wFMCommunicate OK [21:25:27]SAM_PROTO_GetFieldsCounters done [21:25:27]requested_item shift.num is exist - process it [21:25:27]requested_item shift.opened is exist - process it [21:25:27]req_shift_opened [21:25:27]FM_GetShiftState [21:25:27]SAM_PROTO_GetShiftState [21:25:27]wFMCommunicate request_size=4 [21:25:27]MH_SAM_APDU [21:25:27]CAPDU: 80 13 01 00 [21:25:27]Write to MH i2c: E2 08 00 48 26 80 13 01 00 00 00 00 00 EB [21:25:27]Write i2c OK [21:25:27]MH_I2C_Read... [21:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:27]Read from MH i2c: E2 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 0E 00 [21:25:27]MH_I2C_Read... [21:25:27]Read from MH i2c: E2 0E 00 48 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6B [21:25:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:25:27]wFMCommunicate OK [21:25:27]SAM_PROTO_GetShiftState done [21:25:27]FM_GetShiftState done [21:25:27]req_shift_opened done [21:25:27]requested_item shift.open_date is exist - process it [21:25:27]req_shift_open_date [21:25:27]req_shift_open_date done [21:25:27]produce_requested_data done [21:25:27]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140402,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:25:27]process_action_free close_receipt [21:25:27]json_value_free [21:25:27]json_value_free done [21:25:27]process_json_proto returns [21:25:27]Send response to host [21:25:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140402,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:25:27]free response buf [21:25:27]execute_script done [21:25:27]execute_script returns [21:25:27]free content buf [21:25:27]Sock 9.Close socket [21:25:27]Sock 9.Thread stoped [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:44]accept exits with 7 [21:25:44]New connection [21:25:44]New thread 3067612516 created [21:25:44]Thread 3067469156 joined [21:25:44]Waiting for new connection... [21:25:44] Sock 7.Parse request [21:25:44]Sock 7.Check first char [21:25:44]Sock 7.First char is OK [21:25:44]request: POST /json_proto HTTP/1.0 [21:25:44]Method: POST [21:25:44]URL: /json_proto [21:25:44]Method is POST - this is cgi request [21:25:44]url: /json_proto [21:25:44]query_string will be loaded in cgi processing [21:25:44]execute_cgi json_proto POST (null) [21:25:44]execute_cgi path=json_proto method=POST [21:25:44]POST find Content-Length [21:25:44]Host: 172.17.45.67:8080 [21:25:44]Content-Length: 677 [21:25:44]Content-Type: application/json [21:25:44] [21:25:44]POST finish read [21:25:44]Found Content-Length = 677 [21:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:44]execute_script... [21:25: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)594261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:44]POST & json_proto [21:25:44]process_json_proto [21:25:44]json parsed OK: [21:25:44]protocol is kg_v1.0 [21:25:44]action value=close_receipt [21:25:44]process_action close_receipt [21:25:44]cmd_close_receipt [21:25:44]MH_GetDate [21:25:44]Write to MH i2c: F0 00 00 49 26 5E [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 09 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: F0 09 00 49 26 00 59 5B C6 66 5F 7F 2B 66 B6 [21:25:44]GetLastDocTimeStamp 1724275525 [21:25:44]current date 1724275545 [21:25:44]FM_GetShiftState [21:25:44]SAM_PROTO_GetShiftState [21:25:44]wFMCommunicate request_size=4 [21:25:44]MH_SAM_APDU [21:25:44]CAPDU: 80 13 01 00 [21:25:44]Write to MH i2c: E2 08 00 4A 26 80 13 01 00 00 00 00 00 ED [21:25:44]Write i2c OK [21:25:44]MH_I2C_Read... [21:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:44]Read from MH i2c: E2 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 [21:25:44]MH_I2C_Read... [21:25:44]Read from MH i2c: E2 0E 00 4A 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 6D [21:25:44]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:25:44]wFMCommunicate OK [21:25:44]SAM_PROTO_GetShiftState done [21:25:44]FM_GetShiftState done [21:25:44]opened in 1724200467 [21:25:44]opened+sec_in_day 1724286867 [21:25:44]quantity*price = 50036 [21:25:44]sum+1 = 50037 [21:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 420 21.08.2024 21:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140403 ФПД: 241421234998676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212546&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140403&fm=241421234998676&tin=02508201610067®Number=0000000000092569&sum=50000 [21:25:45]StoreToDocumentArchive [21:25:45]shift 454 fd 140403 [21:25:45]save to /storage/0454/doc_00140403 [21:25:45]save last doc name /storage/0454/doc_00140403 to /storage/kkm_last_doc_name [21:25:45]save OK [21:25:45]Clear old archive folders... [21:25:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:46]tlvbuf is 00CC2270 [21:25:46]SAM_PROTO_ClearQueue [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 09 00 00 [21:25:46]Write to MH i2c: E2 08 00 57 26 80 09 00 00 00 00 00 00 EF [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 57 26 00 90 00 F1 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]SAM_PROTO_ClearQueue done [21:25:46]KKMCreateOFDPacket [21:25:46]OFDProtocolAddRootSTLVToBuf [21:25:46]FM_MakeSignedData [21:25:46]FM_MakeSignedData [21:25:46]SAM_PROTO_SignData [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 01 02 [21:25:46]Write to MH i2c: E2 08 00 58 26 80 0D 01 02 00 00 00 00 F7 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 58 26 00 90 00 F2 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]wFMCommunicate request_size=255 [21:25:46]MH_SAM_APDU [21:25: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5A 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 24 02 00 35 04 06 00 DB [21:25:46]Write to MH i2c: E2 02 01 59 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5A 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 24 02 00 35 04 06 00 DB 00 00 41 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 59 26 00 90 00 F3 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]wFMCommunicate request_size=10 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 02 02 05 92 42 F4 0D 94 [21:25:46]Write to MH i2c: E2 0D 00 5A 26 80 0D 02 02 05 00 92 42 F4 0D 94 00 00 6D [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [21:25:46]RAPDU: 90 00 [21:25:46]wFMCommunicate OK [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 0D 03 02 [21:25:46]Write to MH i2c: E2 08 00 5B 26 80 0D 03 02 00 00 00 00 FC [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0B 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 0B 00 5B 26 00 85 83 58 37 E7 12 9D E9 90 00 13 [21:25:46]RAPDU: 85 83 58 37 E7 12 9D E9 90 00 [21:25:46]wFMCommunicate OK [21:25:46]SAM_PROTO_SignData done [21:25:46]FM_MakeSignedData done [21:25:46]CreateOFDProtocolMessage [21:25:46]wFMCommunicate request_size=4 [21:25:46]MH_SAM_APDU [21:25:46]CAPDU: 80 11 00 00 [21:25:46]Write to MH i2c: E2 08 00 5C 26 80 11 00 00 00 00 00 00 FC [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:46]Read from MH i2c: E2 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 17 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: E2 17 00 5C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 53 [21:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:46]wFMCommunicate OK [21:25:46]CreateOFDProtocolMessage done [21:25:46]OFDSenderStorePacket 140403 [21:25:46]StoreOFDPacket docnum=140403 [21:25:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E6 88 07 01 49 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5A 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 24 02 00 35 04 06 00 DB 92 42 F4 0D 94 85 83 58 37 E7 12 9D E9 [21:25:46]CheckFolder [21:25:46]dirname=/storage/ofd_packets [21:25:46]CheckFolder done [21:25:46]ProducePacketName [21:25:46]name=ofd_packets/00140403 [21:25:46]NVStorageSaveData ofd_packets/00140403 [21:25:46]File name is /storage/ofd_packets/00140403 [21:25:46]Write 301 bytes [21:25:46]NVStorageSaveData done [21:25:46]OFDSenderStorePacket done [21:25:46]KKMCreateOFDPacket done [21:25:46]NVStorageSaveData kkm_last_timestamp [21:25:46]File name is /storage/kkm_last_timestamp [21:25:46]Write 4 bytes [21:25:46]NVStorageSaveData done [21:25:46]ExternCall_PrintAddStr [21:25:46]wPrintStart [21:25:46]Write to MH i2c: 01 00 00 5D 26 83 [21:25:46]Write i2c OK [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 07 00 [21:25:46]MH_I2C_Read... [21:25:46]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 FF 0F 98 [21:25:46]RasterBufferAndPrint [21:25:46]line Счет N : (1)594261 [21:25:46]line ИНН: 02508201610067 [21:25:46]line Контрольно-Кассовый Чек [21:25:46]line ПРОДАЖА [21:25:46]line ТРК (МРК, ГНК) : 52 [21:25:46]line Товар: 2710124130 [21:25:46]line Аи-92-К-5 [21:25:46]line 7.380 * 67.80 [21:25:46]line = 500.36 [21:25:46]line НДС 12% НСП 1% [21:25:46]line > о реализуемом товаре [21:25:46]line ОКРУГЛЕНИЕ: -0.36 [21:25:46]line ИТОГО: 500.00 [21:25:46]line Внесено: 500.00 [21:25:46]line СДАЧА: 0.00 [21:25:46]line НСП 1% : 4.43 [21:25:46]line НДС 12% : 53.14 [21:25:46]line Наличными: 500.00 [21:25:46]line Безнал.: 0.00 [21:25:46]line Место: АЗС № 136 "Партнер Нефть" [21:25:46]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:25:46]line СНО: Общий режим [21:25:46]line Чек 420 21.08.2024 21:25 [21:25:46]line Смена: 454 ФФД: 1.0 [21:25:46]line ЗНМ: 0300000067 [21:25:46]line РНМ: 0000000000092569 [21:25:46]line Версия ККМ: 001 [21:25:46]line ФМ: 0000000000871776 [21:25:46]line ФД: 140403 [21:25:46]line ФПД: 241421234998676 [21:25:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212546&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140403&fm=241421234998676&tin=02508201610067®Number=0000000000092569&sum=50000 [21:25:46]OFD Sender: Processing packet 140403 [packets to send 137, broken 136] [21:25:46]ProducePacketName [21:25:46]name=ofd_packets/00140403 [21:25:46]OFD Sender: To server: pG, [21:25:46]CommunicateWithHost lk.salyk.kg:30040 [21:25:46]ConnectInit lk.salyk.kg [21:25:46]written 0, free lines is 4095 [21:25:46]Connected sock=10 [21:25: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 37 36 0F 01 00 00 E6 88 07 01 49 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5A 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 73 24 02 00 35 04 06 00 DB 92 42 F4 0D 94 85 83 58 37 E7 12 9D E9 [21:25: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 37 36 4F 00 00 00 17 29 47 00 37 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 37 36 10 04 04 00 73 24 02 00 F4 03 04 00 E9 01 C6 66 B6 04 01 00 00 AE F3 57 53 10 F4 D2 ED [21:25:47]CommunicateWithHost err = 0 [21:25:47]CheckOFDResponse [21:25:47]1017 (14) - 77093643461234 [21:25:47]1041 (16) - 0000000000871776 [21:25:47]1040 (4) - 140403 [21:25:47]1012 (4) - 21.08.2024 15:04 [21:25:47]1206 (1) - 0 [21:25:47]OFD Sender: Remove packet 140403 [21:25:47]ProducePacketName [21:25:47]name=ofd_packets/00140403 [21:25:47]NVStorageDeleteData [21:25:47]Write to MH i2c: 01 00 00 88 26 AE [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 07 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 CD 0C 8E [21:25:47]RasterBufferAndPrint [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]line [21:25:47]written 0, free lines is 3283 [21:25:47]MH_Cut [21:25:47]Write to MH i2c: D1 01 00 8F 26 01 87 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 01 00 [21:25:47]MH_I2C_Read... [21:25:47]Read from MH i2c: D1 01 00 8F 26 00 86 [21:25:47]Write to MH i2c: 01 00 00 90 26 B6 [21:25:47]Write i2c OK [21:25:47]MH_I2C_Read... [21:25:47]OFD Sender: No OFD packet to send [21:25:48]*** Cut start [21:25:48]*** Partial cut [21:25:48]*** CUTSNS_PIN = 1 [21:25:48]*** CUTSNS_PIN = 0 [21:25:48]*** Brake cut motor [21:25:48]Read from MH i2c: 01 [21:25:48]MH_I2C_Read... [21:25:48]*** Stop cut motor [21:25:48]*** Cut end [21:25:48]Read from MH i2c: 01 07 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: 01 07 00 90 26 00 00 00 00 00 FF 0F CB [21:25:48]process_action close_receipt done [21:25:48]requested_data is exist [21:25:48]produce_requested_data [21:25:48]requested_item fm.sn is exist - process it [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 11 00 00 [21:25:48]Write to MH i2c: E2 08 00 91 26 80 11 00 00 00 00 00 00 31 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 17 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 17 00 91 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 88 [21:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:25:48]wFMCommunicate OK [21:25:48]requested_item fd.num is exist - process it [21:25:48]SAM_PROTO_GetFieldsCounters [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 13 00 00 [21:25:48]Write to MH i2c: E2 08 00 92 26 80 13 00 00 00 00 00 00 34 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 62 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 62 00 92 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 24 02 00 0E 04 04 00 C6 01 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 AE [21:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 73 24 02 00 0E 04 04 00 C6 01 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 [21:25:48]wFMCommunicate OK [21:25:48]SAM_PROTO_GetFieldsCounters done [21:25:48]requested_item shift.num is exist - process it [21:25:48]requested_item shift.opened is exist - process it [21:25:48]req_shift_opened [21:25:48]FM_GetShiftState [21:25:48]SAM_PROTO_GetShiftState [21:25:48]wFMCommunicate request_size=4 [21:25:48]MH_SAM_APDU [21:25:48]CAPDU: 80 13 01 00 [21:25:48]Write to MH i2c: E2 08 00 93 26 80 13 01 00 00 00 00 00 36 [21:25:48]Write i2c OK [21:25:48]MH_I2C_Read... [21:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:48]Read from MH i2c: E2 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0E 00 [21:25:48]MH_I2C_Read... [21:25:48]Read from MH i2c: E2 0E 00 93 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B6 [21:25:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:25:48]wFMCommunicate OK [21:25:48]SAM_PROTO_GetShiftState done [21:25:48]FM_GetShiftState done [21:25:48]req_shift_opened done [21:25:48]requested_item shift.open_date is exist - process it [21:25:48]req_shift_open_date [21:25:48]req_shift_open_date done [21:25:48]produce_requested_data done [21:25:48]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140403,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:25:48]process_action_free close_receipt [21:25:48]json_value_free [21:25:48]json_value_free done [21:25:48]process_json_proto returns [21:25:48]Send response to host [21:25:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140403,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:25:48]free response buf [21:25:48]execute_script done [21:25:48]execute_script returns [21:25:48]free content buf [21:25:48]Sock 7.Close socket [21:25:48]Sock 7.Thread stoped [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:30]accept exits with 9 [21:26:30]New connection [21:26:30]New thread 3067469156 created [21:26:30]Thread 3067612516 joined [21:26:30]Waiting for new connection... [21:26:30] Sock 9.Parse request [21:26:30]Sock 9.Check first char [21:26:30]Sock 9.First char is OK [21:26:30]request: POST /json_proto HTTP/1.0 [21:26:30]Method: POST [21:26:30]URL: /json_proto [21:26:30]Method is POST - this is cgi request [21:26:30]url: /json_proto [21:26:30]query_string will be loaded in cgi processing [21:26:30]execute_cgi json_proto POST (null) [21:26:30]execute_cgi path=json_proto method=POST [21:26:30]POST find Content-Length [21:26:30]Host: 172.17.45.67:8080 [21:26:30]Content-Length: 682 [21:26:30]Content-Type: application/json [21:26:30] [21:26:30]POST finish read [21:26:30]Found Content-Length = 682 [21:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "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" ] } } [21:26:30]execute_script... [21:26: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)594262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 2.890, "sum" : 220.22, "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" ] } } [21:26:30]POST & json_proto [21:26:30]process_json_proto [21:26:30]json parsed OK: [21:26:30]protocol is kg_v1.0 [21:26:30]action value=close_receipt [21:26:30]process_action close_receipt [21:26:30]cmd_close_receipt [21:26:30]MH_GetDate [21:26:30]Write to MH i2c: F0 00 00 94 26 A9 [21:26:30]Write i2c OK [21:26:30]MH_I2C_Read... [21:26:30]Read from MH i2c: F0 [21:26:30]MH_I2C_Read... [21:26:30]Read from MH i2c: F0 09 00 [21:26:30]MH_I2C_Read... [21:26:30]Read from MH i2c: F0 09 00 94 26 00 87 5B C6 66 5F 7F 2B 66 2F [21:26:30]GetLastDocTimeStamp 1724275546 [21:26:30]current date 1724275591 [21:26:30]FM_GetShiftState [21:26:30]SAM_PROTO_GetShiftState [21:26:30]wFMCommunicate request_size=4 [21:26:30]MH_SAM_APDU [21:26:30]CAPDU: 80 13 01 00 [21:26:30]Write to MH i2c: E2 08 00 95 26 80 13 01 00 00 00 00 00 38 [21:26:30]Write i2c OK [21:26:30]MH_I2C_Read... [21:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:30]Read from MH i2c: E2 [21:26:30]MH_I2C_Read... [21:26:30]Read from MH i2c: E2 0E 00 [21:26:30]MH_I2C_Read... [21:26:30]Read from MH i2c: E2 0E 00 95 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B8 [21:26:30]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:26:30]wFMCommunicate OK [21:26:30]SAM_PROTO_GetShiftState done [21:26:30]FM_GetShiftState done [21:26:30]opened in 1724200467 [21:26:30]opened+sec_in_day 1724286867 [21:26:30]quantity*price = 22021 [21:26:30]sum+1 = 22023 [21:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.39 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 421 21.08.2024 21:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140404 ФПД: 173611845786067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140404&fm=173611845786067&tin=02508201610067®Number=0000000000092569&sum=22000 [21:26:31]StoreToDocumentArchive [21:26:31]shift 454 fd 140404 [21:26:31]save to /storage/0454/doc_00140404 [21:26:31]save last doc name /storage/0454/doc_00140404 to /storage/kkm_last_doc_name [21:26:31]save OK [21:26:31]Clear old archive folders... [21:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:26:31]tlvbuf is 00C6AF10 [21:26:31]SAM_PROTO_ClearQueue [21:26:31]wFMCommunicate request_size=4 [21:26:31]MH_SAM_APDU [21:26:31]CAPDU: 80 09 00 00 [21:26:31]Write to MH i2c: E2 08 00 A2 26 80 09 00 00 00 00 00 00 3A [21:26:31]Write i2c OK [21:26:31]MH_I2C_Read... [21:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:31]Read from MH i2c: E2 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 03 00 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [21:26:31]RAPDU: 90 00 [21:26:31]wFMCommunicate OK [21:26:31]SAM_PROTO_ClearQueue done [21:26:31]KKMCreateOFDPacket [21:26:31]OFDProtocolAddRootSTLVToBuf [21:26:31]FM_MakeSignedData [21:26:31]FM_MakeSignedData [21:26:31]SAM_PROTO_SignData [21:26:31]wFMCommunicate request_size=4 [21:26:31]MH_SAM_APDU [21:26:31]CAPDU: 80 0D 01 02 [21:26:31]Write to MH i2c: E2 08 00 A3 26 80 0D 01 02 00 00 00 00 42 [21:26:31]Write i2c OK [21:26:31]MH_I2C_Read... [21:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:31]Read from MH i2c: E2 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 03 00 [21:26:31]MH_I2C_Read... [21:26:31]Read from MH i2c: E2 03 00 A3 26 00 90 00 3D [21:26:31]RAPDU: 90 00 [21:26:31]wFMCommunicate OK [21:26:31]wFMCommunicate request_size=255 [21:26:31]MH_SAM_APDU [21:26:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 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 23 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 A5 01 00 00 F4 03 04 00 87 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 24 02 00 35 04 06 00 [21:26:31]Write to MH i2c: E2 02 01 A4 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 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 23 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 A5 01 00 00 F4 03 04 00 87 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 24 02 00 35 04 06 00 00 00 B1 [21:26:31]Write i2c OK [21:26:31]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 A4 26 00 90 00 3E [21:26:32]RAPDU: 90 00 [21:26:32]wFMCommunicate OK [21:26:32]wFMCommunicate request_size=11 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 0D 02 02 06 9D E6 28 65 99 D3 [21:26:32]Write to MH i2c: E2 0E 00 A5 26 80 0D 02 02 06 00 9D E6 28 65 99 D3 00 00 CD [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [21:26:32]RAPDU: 90 00 [21:26:32]wFMCommunicate OK [21:26:32]wFMCommunicate request_size=4 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 0D 03 02 [21:26:32]Write to MH i2c: E2 08 00 A6 26 80 0D 03 02 00 00 00 00 47 [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 0B 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 0B 00 A6 26 00 E1 55 71 CF AC ED 37 16 90 00 A4 [21:26:32]RAPDU: E1 55 71 CF AC ED 37 16 90 00 [21:26:32]wFMCommunicate OK [21:26:32]SAM_PROTO_SignData done [21:26:32]FM_MakeSignedData done [21:26:32]CreateOFDProtocolMessage [21:26:32]wFMCommunicate request_size=4 [21:26:32]MH_SAM_APDU [21:26:32]CAPDU: 80 11 00 00 [21:26:32]Write to MH i2c: E2 08 00 A7 26 80 11 00 00 00 00 00 00 47 [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:32]Read from MH i2c: E2 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 17 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: E2 17 00 A7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [21:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:26:32]wFMCommunicate OK [21:26:32]CreateOFDProtocolMessage done [21:26:32]OFDSenderStorePacket 140404 [21:26:32]StoreOFDPacket docnum=140404 [21:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 05 71 08 01 C9 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 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 23 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 A5 01 00 00 F4 03 04 00 87 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 24 02 00 35 04 06 00 9D E6 28 65 99 D3 E1 55 71 CF AC ED 37 16 [21:26:32]CheckFolder [21:26:32]dirname=/storage/ofd_packets [21:26:32]CheckFolder done [21:26:32]ProducePacketName [21:26:32]name=ofd_packets/00140404 [21:26:32]NVStorageSaveData ofd_packets/00140404 [21:26:32]File name is /storage/ofd_packets/00140404 [21:26:32]Write 302 bytes [21:26:32]NVStorageSaveData done [21:26:32]OFDSenderStorePacket done [21:26:32]KKMCreateOFDPacket done [21:26:32]NVStorageSaveData kkm_last_timestamp [21:26:32]File name is /storage/kkm_last_timestamp [21:26:32]Write 4 bytes [21:26:32]NVStorageSaveData done [21:26:32]ExternCall_PrintAddStr [21:26:32]wPrintStart [21:26:32]Write to MH i2c: 01 00 00 A8 26 CE [21:26:32]Write i2c OK [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: 01 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: 01 07 00 [21:26:32]MH_I2C_Read... [21:26:32]Read from MH i2c: 01 07 00 A8 26 00 00 00 00 00 FF 0F E3 [21:26:32]RasterBufferAndPrint [21:26:32]line Счет N : (1)594262 [21:26:32]line ИНН: 02508201610067 [21:26:32]line Контрольно-Кассовый Чек [21:26:32]line ПРОДАЖА [21:26:32]line ТРК (МРК, ГНК) : 34 [21:26:32]line Товар: 2710194210 [21:26:32]line ДТ(л)-К-5 [21:26:32]line 2.890 * 76.20 [21:26:32]line = 220.22 [21:26:32]line НДС 12% НСП 1% [21:26:32]line > о реализуемом товаре [21:26:32]line ОКРУГЛЕНИЕ: -0.22 [21:26:32]line ИТОГО: 220.00 [21:26:32]line Внесено: 220.00 [21:26:32]line СДАЧА: 0.00 [21:26:32]line НСП 1% : 1.95 [21:26:32]line НДС 12% : 23.39 [21:26:32]line Наличными: 220.00 [21:26:32]line Безнал.: 0.00 [21:26:32]line Место: АЗС № 136 "Партнер Нефть" [21:26:32]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:26:32]line СНО: Общий режим [21:26:32]line Чек 421 21.08.2024 21:26 [21:26:32]line Смена: 454 ФФД: 1.0 [21:26:32]line ЗНМ: 0300000067 [21:26:32]line РНМ: 0000000000092569 [21:26:32]line Версия ККМ: 001 [21:26:32]line ФМ: 0000000000871776 [21:26:32]line ФД: 140404 [21:26:32]line ФПД: 173611845786067 [21:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T212631&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140404&fm=173611845786067&tin=02508201610067®Number=0000000000092569&sum=22000 [21:26:32]OFD Sender: Processing packet 140404 [packets to send 137, broken 136] [21:26:32]ProducePacketName [21:26:32]name=ofd_packets/00140404 [21:26:32]OFD Sender: To server: pG, [21:26:32]CommunicateWithHost lk.salyk.kg:30040 [21:26:32]ConnectInit lk.salyk.kg [21:26:32]written 0, free lines is 4095 [21:26:32]Connected sock=10 [21:26: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 37 36 10 01 00 00 05 71 08 01 C9 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 0B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 06 56 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 23 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 A5 01 00 00 F4 03 04 00 87 5B C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 24 02 00 35 04 06 00 9D E6 28 65 99 D3 E1 55 71 CF AC ED 37 16 [21:26: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 37 36 4F 00 00 00 3B F9 47 00 9B E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 74 24 02 00 F4 03 04 00 17 02 C6 66 B6 04 01 00 00 13 7D 28 81 10 C0 BA C0 [21:26:33]CommunicateWithHost err = 0 [21:26:33]CheckOFDResponse [21:26:33]1017 (14) - 77093643461234 [21:26:33]1041 (16) - 0000000000871776 [21:26:33]1040 (4) - 140404 [21:26:33]1012 (4) - 21.08.2024 15:04 [21:26:33]1206 (1) - 0 [21:26:33]OFD Sender: Remove packet 140404 [21:26:33]ProducePacketName [21:26:33]name=ofd_packets/00140404 [21:26:33]NVStorageDeleteData [21:26:33]Write to MH i2c: 01 00 00 D3 26 F9 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 D2 0C DE [21:26:33]RasterBufferAndPrint [21:26:33]line [21:26:33]line [21:26:33]line [21:26:33]line [21:26:33]line [21:26:33]written 0, free lines is 3289 [21:26:33]MH_Cut [21:26:33]Write to MH i2c: D1 01 00 DA 26 01 D2 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: D1 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: D1 01 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: D1 01 00 DA 26 00 D1 [21:26:33]Write to MH i2c: 01 00 00 DB 26 01 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]OFD Sender: No OFD packet to send [21:26:33]*** Cut start [21:26:33]*** Partial cut [21:26:33]*** CUTSNS_PIN = 1 [21:26:33]*** CUTSNS_PIN = 0 [21:26:34]*** Brake cut motor [21:26:34]Read from MH i2c: 01 [21:26:34]MH_I2C_Read... [21:26:34]*** Stop cut motor [21:26:34]*** Cut end [21:26:34]Read from MH i2c: 01 07 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: 01 07 00 DB 26 00 00 00 00 00 FF 0F 16 [21:26:34]process_action close_receipt done [21:26:34]requested_data is exist [21:26:34]produce_requested_data [21:26:34]requested_item fm.sn is exist - process it [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 11 00 00 [21:26:34]Write to MH i2c: E2 08 00 DC 26 80 11 00 00 00 00 00 00 7C [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 17 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 17 00 DC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D3 [21:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:26:34]wFMCommunicate OK [21:26:34]requested_item fd.num is exist - process it [21:26:34]SAM_PROTO_GetFieldsCounters [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 13 00 00 [21:26:34]Write to MH i2c: E2 08 00 DD 26 80 13 00 00 00 00 00 00 7F [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 62 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 62 00 DD 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 24 02 00 0E 04 04 00 C6 01 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 FD [21:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 74 24 02 00 0E 04 04 00 C6 01 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 [21:26:34]wFMCommunicate OK [21:26:34]SAM_PROTO_GetFieldsCounters done [21:26:34]requested_item shift.num is exist - process it [21:26:34]requested_item shift.opened is exist - process it [21:26:34]req_shift_opened [21:26:34]FM_GetShiftState [21:26:34]SAM_PROTO_GetShiftState [21:26:34]wFMCommunicate request_size=4 [21:26:34]MH_SAM_APDU [21:26:34]CAPDU: 80 13 01 00 [21:26:34]Write to MH i2c: E2 08 00 DE 26 80 13 01 00 00 00 00 00 81 [21:26:34]Write i2c OK [21:26:34]MH_I2C_Read... [21:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:34]Read from MH i2c: E2 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 0E 00 [21:26:34]MH_I2C_Read... [21:26:34]Read from MH i2c: E2 0E 00 DE 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 01 [21:26:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:26:34]wFMCommunicate OK [21:26:34]SAM_PROTO_GetShiftState done [21:26:34]FM_GetShiftState done [21:26:34]req_shift_opened done [21:26:34]requested_item shift.open_date is exist - process it [21:26:34]req_shift_open_date [21:26:34]req_shift_open_date done [21:26:34]produce_requested_data done [21:26:34]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140404,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:26:34]process_action_free close_receipt [21:26:34]json_value_free [21:26:34]json_value_free done [21:26:34]process_json_proto returns [21:26:34]Send response to host [21:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140404,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:26:34]free response buf [21:26:34]execute_script done [21:26:34]execute_script returns [21:26:34]free content buf [21:26:34]Sock 9.Close socket [21:26:34]Sock 9.Thread stoped [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:37]ConnectInit Can't connect to host [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:19]ConnectInit Can't connect to host [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:41]int [21:32:41]Write to MH i2c: 01 00 00 DF 26 05 [21:32:41]*** FLAG_PRN_KEY set [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 DF 26 00 08 00 00 00 FF 0F 22 [21:32:41]state=0 [21:32:41]Key pressed [21:32:41]Feed [21:32:41]Write to MH i2c: D8 00 00 E0 26 DD [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: D8 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: D8 01 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: D8 01 00 E0 26 00 DE [21:32:41]int [21:32:41]Write to MH i2c: 01 00 00 E1 26 07 [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 E1 26 00 48 00 00 00 3C 00 92 [21:32:41]state=2 [21:32:41]Key pressed [21:32:41]int [21:32:41]Write to MH i2c: 01 00 00 E2 26 08 [21:32:41]*** FLAG_PRN_KEY reset [21:32:41]Write i2c OK [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 [21:32:41]MH_I2C_Read... [21:32:41]Read from MH i2c: 01 07 00 E2 26 00 00 00 00 00 F6 0F 14 [21:32:41]state=2 [21:32:41]Stop feed [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:32]accept exits with 7 [21:34:32]New connection [21:34:32]New thread 3067612516 created [21:34:32]Thread 3067469156 joined [21:34:32]Waiting for new connection... [21:34:32] Sock 7.Parse request [21:34:32]Sock 7.Check first char [21:34:32]Sock 7.First char is OK [21:34:32]request: POST /json_proto HTTP/1.0 [21:34:32]Method: POST [21:34:32]URL: /json_proto [21:34:32]Method is POST - this is cgi request [21:34:32]url: /json_proto [21:34:32]query_string will be loaded in cgi processing [21:34:32]execute_cgi json_proto POST (null) [21:34:32]execute_cgi path=json_proto method=POST [21:34:32]POST find Content-Length [21:34:32]Host: 172.17.45.67:8080 [21:34:32]Content-Length: 677 [21:34:32]Content-Type: application/json [21:34:32] [21:34:32]POST finish read [21:34:32]Found Content-Length = 677 [21:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:32]execute_script... [21:34: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)594263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:32]POST & json_proto [21:34:32]process_json_proto [21:34:32]json parsed OK: [21:34:32]protocol is kg_v1.0 [21:34:32]action value=close_receipt [21:34:32]process_action close_receipt [21:34:32]cmd_close_receipt [21:34:32]MH_GetDate [21:34:32]Write to MH i2c: F0 00 00 E3 26 F8 [21:34:32]Write i2c OK [21:34:32]MH_I2C_Read... [21:34:32]Read from MH i2c: F0 [21:34:32]MH_I2C_Read... [21:34:32]Read from MH i2c: F0 09 00 [21:34:32]MH_I2C_Read... [21:34:32]Read from MH i2c: F0 09 00 E3 26 00 69 5D C6 66 5F 7F 2B 66 62 [21:34:32]GetLastDocTimeStamp 1724275591 [21:34:32]current date 1724276073 [21:34:32]FM_GetShiftState [21:34:32]SAM_PROTO_GetShiftState [21:34:32]wFMCommunicate request_size=4 [21:34:32]MH_SAM_APDU [21:34:32]CAPDU: 80 13 01 00 [21:34:32]Write to MH i2c: E2 08 00 E4 26 80 13 01 00 00 00 00 00 87 [21:34:32]Write i2c OK [21:34:32]MH_I2C_Read... [21:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:32]Read from MH i2c: E2 [21:34:32]MH_I2C_Read... [21:34:32]Read from MH i2c: E2 0E 00 [21:34:32]MH_I2C_Read... [21:34:32]Read from MH i2c: E2 0E 00 E4 26 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 07 [21:34:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:34:32]wFMCommunicate OK [21:34:32]SAM_PROTO_GetShiftState done [21:34:32]FM_GetShiftState done [21:34:32]opened in 1724200467 [21:34:32]opened+sec_in_day 1724286867 [21:34:32]quantity*price = 20001 [21:34:32]sum+1 = 20002 [21:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 422 21.08.2024 21:34 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140405 ФПД: 217463455566977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T213433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140405&fm=217463455566977&tin=02508201610067®Number=0000000000092569&sum=20000 [21:34:33]StoreToDocumentArchive [21:34:33]shift 454 fd 140405 [21:34:33]save to /storage/0454/doc_00140405 [21:34:33]save last doc name /storage/0454/doc_00140405 to /storage/kkm_last_doc_name [21:34:33]save OK [21:34:33]Clear old archive folders... [21:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:33]tlvbuf is 00CC2710 [21:34:33]SAM_PROTO_ClearQueue [21:34:33]wFMCommunicate request_size=4 [21:34:33]MH_SAM_APDU [21:34:33]CAPDU: 80 09 00 00 [21:34:33]Write to MH i2c: E2 08 00 F1 26 80 09 00 00 00 00 00 00 89 [21:34:33]Write i2c OK [21:34:33]MH_I2C_Read... [21:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:33]Read from MH i2c: E2 [21:34:33]MH_I2C_Read... [21:34:33]Read from MH i2c: E2 03 00 [21:34:33]MH_I2C_Read... [21:34:33]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [21:34:33]RAPDU: 90 00 [21:34:33]wFMCommunicate OK [21:34:33]SAM_PROTO_ClearQueue done [21:34:33]KKMCreateOFDPacket [21:34:33]OFDProtocolAddRootSTLVToBuf [21:34:33]FM_MakeSignedData [21:34:33]FM_MakeSignedData [21:34:33]SAM_PROTO_SignData [21:34:33]wFMCommunicate request_size=4 [21:34:33]MH_SAM_APDU [21:34:33]CAPDU: 80 0D 01 02 [21:34:33]Write to MH i2c: E2 08 00 F2 26 80 0D 01 02 00 00 00 00 91 [21:34:33]Write i2c OK [21:34:33]MH_I2C_Read... [21:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:33]Read from MH i2c: E2 [21:34:33]MH_I2C_Read... [21:34:33]Read from MH i2c: E2 03 00 [21:34:33]MH_I2C_Read... [21:34:33]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [21:34:33]RAPDU: 90 00 [21:34:33]wFMCommunicate OK [21:34:33]wFMCommunicate request_size=255 [21:34:33]MH_SAM_APDU [21:34: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A6 01 00 00 F4 03 04 00 69 5D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 24 02 00 35 04 06 00 C5 [21:34:33]Write to MH i2c: E2 02 01 F3 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A6 01 00 00 F4 03 04 00 69 5D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 24 02 00 35 04 06 00 C5 00 00 DC [21:34:33]Write i2c OK [21:34:33]MH_I2C_Read... [21:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:34]Read from MH i2c: E2 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 03 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [21:34:34]RAPDU: 90 00 [21:34:34]wFMCommunicate OK [21:34:34]wFMCommunicate request_size=10 [21:34:34]MH_SAM_APDU [21:34:34]CAPDU: 80 0D 02 02 05 C8 28 05 4C 81 [21:34:34]Write to MH i2c: E2 0D 00 F4 26 80 0D 02 02 05 00 C8 28 05 4C 81 00 00 60 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:34]Read from MH i2c: E2 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 03 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [21:34:34]RAPDU: 90 00 [21:34:34]wFMCommunicate OK [21:34:34]wFMCommunicate request_size=4 [21:34:34]MH_SAM_APDU [21:34:34]CAPDU: 80 0D 03 02 [21:34:34]Write to MH i2c: E2 08 00 F5 26 80 0D 03 02 00 00 00 00 96 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:34]Read from MH i2c: E2 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 0B 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 0B 00 F5 26 00 36 68 7E 6F B3 1A 8C 44 90 00 BF [21:34:34]RAPDU: 36 68 7E 6F B3 1A 8C 44 90 00 [21:34:34]wFMCommunicate OK [21:34:34]SAM_PROTO_SignData done [21:34:34]FM_MakeSignedData done [21:34:34]CreateOFDProtocolMessage [21:34:34]wFMCommunicate request_size=4 [21:34:34]MH_SAM_APDU [21:34:34]CAPDU: 80 11 00 00 [21:34:34]Write to MH i2c: E2 08 00 F6 26 80 11 00 00 00 00 00 00 96 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:34]Read from MH i2c: E2 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 17 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: E2 17 00 F6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 ED [21:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:34:34]wFMCommunicate OK [21:34:34]CreateOFDProtocolMessage done [21:34:34]OFDSenderStorePacket 140405 [21:34:34]StoreOFDPacket docnum=140405 [21:34:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 52 A6 07 01 5F A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A6 01 00 00 F4 03 04 00 69 5D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 24 02 00 35 04 06 00 C5 C8 28 05 4C 81 36 68 7E 6F B3 1A 8C 44 [21:34:34]CheckFolder [21:34:34]dirname=/storage/ofd_packets [21:34:34]CheckFolder done [21:34:34]ProducePacketName [21:34:34]name=ofd_packets/00140405 [21:34:34]NVStorageSaveData ofd_packets/00140405 [21:34:34]File name is /storage/ofd_packets/00140405 [21:34:34]Write 301 bytes [21:34:34]NVStorageSaveData done [21:34:34]OFDSenderStorePacket done [21:34:34]KKMCreateOFDPacket done [21:34:34]NVStorageSaveData kkm_last_timestamp [21:34:34]File name is /storage/kkm_last_timestamp [21:34:34]Write 4 bytes [21:34:34]NVStorageSaveData done [21:34:34]ExternCall_PrintAddStr [21:34:34]wPrintStart [21:34:34]Write to MH i2c: 01 00 00 F7 26 1D [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 F7 26 00 00 00 00 00 FF 0F 32 [21:34:34]RasterBufferAndPrint [21:34:34]line Счет N : (1)594263 [21:34:34]line ИНН: 02508201610067 [21:34:34]line Контрольно-Кассовый Чек [21:34:34]line ПРОДАЖА [21:34:34]line ТРК (МРК, ГНК) : 42 [21:34:34]line Товар: 2710124130 [21:34:34]line Аи-92-К-5 [21:34:34]line 2.950 * 67.80 [21:34:34]line = 200.01 [21:34:34]line НДС 12% НСП 1% [21:34:34]line > о реализуемом товаре [21:34:34]line ОКРУГЛЕНИЕ: -0.01 [21:34:34]line ИТОГО: 200.00 [21:34:34]line Внесено: 200.00 [21:34:34]line СДАЧА: 0.00 [21:34:34]line НСП 1% : 1.77 [21:34:34]line НДС 12% : 21.24 [21:34:34]line Наличными: 200.00 [21:34:34]line Безнал.: 0.00 [21:34:34]line Место: АЗС № 136 "Партнер Нефть" [21:34:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:34:34]line СНО: Общий режим [21:34:34]line Чек 422 21.08.2024 21:34 [21:34:34]line Смена: 454 ФФД: 1.0 [21:34:34]line ЗНМ: 0300000067 [21:34:34]line РНМ: 0000000000092569 [21:34:34]line Версия ККМ: 001 [21:34:34]line ФМ: 0000000000871776 [21:34:34]line ФД: 140405 [21:34:34]line ФПД: 217463455566977 [21:34:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T213433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140405&fm=217463455566977&tin=02508201610067®Number=0000000000092569&sum=20000 [21:34:34]OFD Sender: Processing packet 140405 [packets to send 137, broken 136] [21:34:34]ProducePacketName [21:34:34]name=ofd_packets/00140405 [21:34:34]OFD Sender: To server: pG, [21:34:34]CommunicateWithHost lk.salyk.kg:30040 [21:34:34]ConnectInit lk.salyk.kg [21:34:34]written 0, free lines is 4095 [21:34:34]Connected sock=10 [21:34: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 37 36 0F 01 00 00 52 A6 07 01 5F A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A6 01 00 00 F4 03 04 00 69 5D C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 75 24 02 00 35 04 06 00 C5 C8 28 05 4C 81 36 68 7E 6F B3 1A 8C 44 [21:34: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 37 36 4F 00 00 00 E7 B5 47 00 2E 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 37 36 10 04 04 00 75 24 02 00 F4 03 04 00 F9 03 C6 66 B6 04 01 00 00 C0 A4 99 CC 7C 53 34 2B [21:34:34]CommunicateWithHost err = 0 [21:34:34]CheckOFDResponse [21:34:34]1017 (14) - 77093643461234 [21:34:34]1041 (16) - 0000000000871776 [21:34:34]1040 (4) - 140405 [21:34:34]1012 (4) - 21.08.2024 15:12 [21:34:34]1206 (1) - 0 [21:34:34]OFD Sender: Remove packet 140405 [21:34:34]ProducePacketName [21:34:34]name=ofd_packets/00140405 [21:34:34]NVStorageDeleteData [21:34:34]Write to MH i2c: 01 00 00 22 27 49 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 22 27 00 00 00 00 00 CD 0C 29 [21:34:34]RasterBufferAndPrint [21:34:34]line [21:34:34]line [21:34:34]line [21:34:34]line [21:34:34]line [21:34:34]written 0, free lines is 3284 [21:34:34]MH_Cut [21:34:34]Write to MH i2c: D1 01 00 29 27 01 22 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: D1 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: D1 01 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: D1 01 00 29 27 00 21 [21:34:34]Write to MH i2c: 01 00 00 2A 27 51 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:35]OFD Sender: No OFD packet to send [21:34:35]*** Cut start [21:34:35]*** Partial cut [21:34:35]*** CUTSNS_PIN = 1 [21:34:35]*** CUTSNS_PIN = 0 [21:34:35]*** Brake cut motor [21:34:36]Read from MH i2c: 01 [21:34:36]MH_I2C_Read... [21:34:36]*** Stop cut motor [21:34:36]*** Cut end [21:34:36]Read from MH i2c: 01 07 00 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 FF 0F 66 [21:34:36]process_action close_receipt done [21:34:36]requested_data is exist [21:34:36]produce_requested_data [21:34:36]requested_item fm.sn is exist - process it [21:34:36]wFMCommunicate request_size=4 [21:34:36]MH_SAM_APDU [21:34:36]CAPDU: 80 11 00 00 [21:34:36]Write to MH i2c: E2 08 00 2B 27 80 11 00 00 00 00 00 00 CC [21:34:36]Write i2c OK [21:34:36]MH_I2C_Read... [21:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:36]Read from MH i2c: E2 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 17 00 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 17 00 2B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 23 [21:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:34:36]wFMCommunicate OK [21:34:36]requested_item fd.num is exist - process it [21:34:36]SAM_PROTO_GetFieldsCounters [21:34:36]wFMCommunicate request_size=4 [21:34:36]MH_SAM_APDU [21:34:36]CAPDU: 80 13 00 00 [21:34:36]Write to MH i2c: E2 08 00 2C 27 80 13 00 00 00 00 00 00 CF [21:34:36]Write i2c OK [21:34:36]MH_I2C_Read... [21:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:36]Read from MH i2c: E2 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 62 00 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 62 00 2C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 24 02 00 0E 04 04 00 C6 01 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 51 [21:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 75 24 02 00 0E 04 04 00 C6 01 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 [21:34:36]wFMCommunicate OK [21:34:36]SAM_PROTO_GetFieldsCounters done [21:34:36]requested_item shift.num is exist - process it [21:34:36]requested_item shift.opened is exist - process it [21:34:36]req_shift_opened [21:34:36]FM_GetShiftState [21:34:36]SAM_PROTO_GetShiftState [21:34:36]wFMCommunicate request_size=4 [21:34:36]MH_SAM_APDU [21:34:36]CAPDU: 80 13 01 00 [21:34:36]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [21:34:36]Write i2c OK [21:34:36]MH_I2C_Read... [21:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:36]Read from MH i2c: E2 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 0E 00 [21:34:36]MH_I2C_Read... [21:34:36]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 51 [21:34:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:34:36]wFMCommunicate OK [21:34:36]SAM_PROTO_GetShiftState done [21:34:36]FM_GetShiftState done [21:34:36]req_shift_opened done [21:34:36]requested_item shift.open_date is exist - process it [21:34:36]req_shift_open_date [21:34:36]req_shift_open_date done [21:34:36]produce_requested_data done [21:34:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140405,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:34:36]process_action_free close_receipt [21:34:36]json_value_free [21:34:36]json_value_free done [21:34:36]process_json_proto returns [21:34:36]Send response to host [21:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140405,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:34:36]free response buf [21:34:36]execute_script done [21:34:36]execute_script returns [21:34:36]free content buf [21:34:36]Sock 7.Close socket [21:34:36]Sock 7.Thread stoped [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39: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:16]accept exits with 9 [21:40:16]New connection [21:40:16]New thread 3067469156 created [21:40:16]Thread 3067612516 joined [21:40:16]Waiting for new connection... [21:40:16] Sock 9.Parse request [21:40:16]Sock 9.Check first char [21:40:16]Sock 9.First char is OK [21:40:16]request: POST /json_proto HTTP/1.0 [21:40:16]Method: POST [21:40:16]URL: /json_proto [21:40:16]Method is POST - this is cgi request [21:40:16]url: /json_proto [21:40:16]query_string will be loaded in cgi processing [21:40:16]execute_cgi json_proto POST (null) [21:40:16]execute_cgi path=json_proto method=POST [21:40:16]POST find Content-Length [21:40:16]Host: 172.17.45.67:8080 [21:40:16]Content-Length: 682 [21:40:16]Content-Type: application/json [21:40:16] [21:40:16]POST finish read [21:40:16]Found Content-Length = 682 [21:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:16]execute_script... [21:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:16]POST & json_proto [21:40:16]process_json_proto [21:40:16]json parsed OK: [21:40:16]protocol is kg_v1.0 [21:40:16]action value=close_receipt [21:40:16]process_action close_receipt [21:40:16]cmd_close_receipt [21:40:16]MH_GetDate [21:40:16]Write to MH i2c: F0 00 00 2E 27 44 [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: F0 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: F0 09 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: F0 09 00 2E 27 00 C1 5E C6 66 5F 7F 2B 66 07 [21:40:16]GetLastDocTimeStamp 1724276073 [21:40:16]current date 1724276417 [21:40:16]FM_GetShiftState [21:40:16]SAM_PROTO_GetShiftState [21:40:16]wFMCommunicate request_size=4 [21:40:16]MH_SAM_APDU [21:40:16]CAPDU: 80 13 01 00 [21:40:16]Write to MH i2c: E2 08 00 2F 27 80 13 01 00 00 00 00 00 D3 [21:40:16]Write i2c OK [21:40:16]MH_I2C_Read... [21:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:16]Read from MH i2c: E2 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 0E 00 [21:40:16]MH_I2C_Read... [21:40:16]Read from MH i2c: E2 0E 00 2F 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 53 [21:40:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:40:16]wFMCommunicate OK [21:40:16]SAM_PROTO_GetShiftState done [21:40:16]FM_GetShiftState done [21:40:16]opened in 1724200467 [21:40:16]opened+sec_in_day 1724286867 [21:40:16]quantity*price = 100005 [21:40:16]sum+1 = 100006 [21:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 423 21.08.2024 21:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140406 ФПД: 40452256165632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T214017&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140406&fm=40452256165632&tin=02508201610067®Number=0000000000092569&sum=100000 [21:40:17]StoreToDocumentArchive [21:40:17]shift 454 fd 140406 [21:40:17]save to /storage/0454/doc_00140406 [21:40:17]save last doc name /storage/0454/doc_00140406 to /storage/kkm_last_doc_name [21:40:17]save OK [21:40:17]Clear old archive folders... [21:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:17]tlvbuf is 00C7CB80 [21:40:17]SAM_PROTO_ClearQueue [21:40:17]wFMCommunicate request_size=4 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 09 00 00 [21:40:17]Write to MH i2c: E2 08 00 3C 27 80 09 00 00 00 00 00 00 D5 [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [21:40:17]RAPDU: 90 00 [21:40:17]wFMCommunicate OK [21:40:17]SAM_PROTO_ClearQueue done [21:40:17]KKMCreateOFDPacket [21:40:17]OFDProtocolAddRootSTLVToBuf [21:40:17]FM_MakeSignedData [21:40:17]FM_MakeSignedData [21:40:17]SAM_PROTO_SignData [21:40:17]wFMCommunicate request_size=4 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 0D 01 02 [21:40:17]Write to MH i2c: E2 08 00 3D 27 80 0D 01 02 00 00 00 00 DD [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:17]Read from MH i2c: E2 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 [21:40:17]MH_I2C_Read... [21:40:17]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [21:40:17]RAPDU: 90 00 [21:40:17]wFMCommunicate OK [21:40:17]wFMCommunicate request_size=255 [21:40:17]MH_SAM_APDU [21:40:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 C1 5E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 24 02 00 35 04 06 00 24 [21:40:17]Write to MH i2c: E2 02 01 3E 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 C1 5E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 24 02 00 35 04 06 00 24 00 00 6F [21:40:17]Write i2c OK [21:40:17]MH_I2C_Read... [21:40:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:18]Read from MH i2c: E2 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 03 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [21:40:18]RAPDU: 90 00 [21:40:18]wFMCommunicate OK [21:40:18]wFMCommunicate request_size=10 [21:40:18]MH_SAM_APDU [21:40:18]CAPDU: 80 0D 02 02 05 CA 86 5B EF 00 [21:40:18]Write to MH i2c: E2 0D 00 3F 27 80 0D 02 02 05 00 CA 86 5B EF 00 00 00 84 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:18]Read from MH i2c: E2 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 03 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [21:40:18]RAPDU: 90 00 [21:40:18]wFMCommunicate OK [21:40:18]wFMCommunicate request_size=4 [21:40:18]MH_SAM_APDU [21:40:18]CAPDU: 80 0D 03 02 [21:40:18]Write to MH i2c: E2 08 00 40 27 80 0D 03 02 00 00 00 00 E2 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:18]Read from MH i2c: E2 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 0B 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 0B 00 40 27 00 5C FD FD 8B F9 BD 55 05 90 00 D4 [21:40:18]RAPDU: 5C FD FD 8B F9 BD 55 05 90 00 [21:40:18]wFMCommunicate OK [21:40:18]SAM_PROTO_SignData done [21:40:18]FM_MakeSignedData done [21:40:18]CreateOFDProtocolMessage [21:40:18]wFMCommunicate request_size=4 [21:40:18]MH_SAM_APDU [21:40:18]CAPDU: 80 11 00 00 [21:40:18]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:18]Read from MH i2c: E2 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 17 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [21:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:40:18]wFMCommunicate OK [21:40:18]CreateOFDProtocolMessage done [21:40:18]OFDSenderStorePacket 140406 [21:40:18]StoreOFDPacket docnum=140406 [21:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EF 5A 07 01 C6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 C1 5E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 24 02 00 35 04 06 00 24 CA 86 5B EF 00 5C FD FD 8B F9 BD 55 05 [21:40:18]CheckFolder [21:40:18]dirname=/storage/ofd_packets [21:40:18]CheckFolder done [21:40:18]ProducePacketName [21:40:18]name=ofd_packets/00140406 [21:40:18]NVStorageSaveData ofd_packets/00140406 [21:40:18]File name is /storage/ofd_packets/00140406 [21:40:18]Write 301 bytes [21:40:18]NVStorageSaveData done [21:40:18]OFDSenderStorePacket done [21:40:18]KKMCreateOFDPacket done [21:40:18]NVStorageSaveData kkm_last_timestamp [21:40:18]File name is /storage/kkm_last_timestamp [21:40:18]Write 4 bytes [21:40:18]NVStorageSaveData done [21:40:18]ExternCall_PrintAddStr [21:40:18]wPrintStart [21:40:18]Write to MH i2c: 01 00 00 42 27 69 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 42 27 00 00 00 00 00 FF 0F 7E [21:40:18]RasterBufferAndPrint [21:40:18]line Счет N : (1)594264 [21:40:18]line ИНН: 02508201610067 [21:40:18]line Контрольно-Кассовый Чек [21:40:18]line ПРОДАЖА [21:40:18]line ТРК (МРК, ГНК) : 42 [21:40:18]line Товар: 2710124130 [21:40:18]line Аи-92-К-5 [21:40:18]line 14.750 * 67.80 [21:40:18]line = 1000.05 [21:40:18]line НДС 12% НСП 1% [21:40:18]line > о реализуемом товаре [21:40:18]line ОКРУГЛЕНИЕ: -0.05 [21:40:18]line ИТОГО: 1000.00 [21:40:18]line Внесено: 1000.00 [21:40:18]line СДАЧА: 0.00 [21:40:18]line НСП 1% : 8.85 [21:40:18]line НДС 12% : 106.20 [21:40:18]line Наличными: 1000.00 [21:40:18]line Безнал.: 0.00 [21:40:18]line Место: АЗС № 136 "Партнер Нефть" [21:40:18]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:40:18]line СНО: Общий режим [21:40:18]line Чек 423 21.08.2024 21:40 [21:40:18]line Смена: 454 ФФД: 1.0 [21:40:18]line ЗНМ: 0300000067 [21:40:18]line РНМ: 0000000000092569 [21:40:18]line Версия ККМ: 001 [21:40:18]line ФМ: 0000000000871776 [21:40:18]line ФД: 140406 [21:40:18]line ФПД: 40452256165632 [21:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T214017&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140406&fm=40452256165632&tin=02508201610067®Number=0000000000092569&sum=100000 [21:40:18]written 0, free lines is 4095 [21:40:18]OFD Sender: Processing packet 140406 [packets to send 137, broken 136] [21:40:18]ProducePacketName [21:40:18]name=ofd_packets/00140406 [21:40:18]OFD Sender: To server: pG, [21:40:18]CommunicateWithHost lk.salyk.kg:30040 [21:40:18]ConnectInit lk.salyk.kg [21:40:18]Connected sock=7 [21:40:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 EF 5A 07 01 C6 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 C1 5E C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 76 24 02 00 35 04 06 00 24 CA 86 5B EF 00 5C FD FD 8B F9 BD 55 05 [21:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 49 E7 47 00 C8 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 37 36 10 04 04 00 76 24 02 00 F4 03 04 00 51 05 C6 66 B6 04 01 00 00 11 81 2F C6 24 29 27 E9 [21:40:18]CommunicateWithHost err = 0 [21:40:18]CheckOFDResponse [21:40:18]1017 (14) - 77093643461234 [21:40:18]1041 (16) - 0000000000871776 [21:40:18]1040 (4) - 140406 [21:40:18]1012 (4) - 21.08.2024 15:18 [21:40:18]1206 (1) - 0 [21:40:18]OFD Sender: Remove packet 140406 [21:40:18]ProducePacketName [21:40:18]name=ofd_packets/00140406 [21:40:18]NVStorageDeleteData [21:40:18]Write to MH i2c: 01 00 00 6D 27 94 [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 C9 0C 70 [21:40:18]RasterBufferAndPrint [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]line [21:40:18]written 0, free lines is 3280 [21:40:18]MH_Cut [21:40:18]Write to MH i2c: D1 01 00 74 27 01 6D [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 01 00 [21:40:18]MH_I2C_Read... [21:40:18]Read from MH i2c: D1 01 00 74 27 00 6C [21:40:18]Write to MH i2c: 01 00 00 75 27 9C [21:40:18]Write i2c OK [21:40:18]MH_I2C_Read... [21:40:19]OFD Sender: No OFD packet to send [21:40:19]*** Cut start [21:40:19]*** Partial cut [21:40:19]*** CUTSNS_PIN = 1 [21:40:19]*** CUTSNS_PIN = 0 [21:40:19]*** Brake cut motor [21:40:20]Read from MH i2c: 01 [21:40:20]MH_I2C_Read... [21:40:20]*** Stop cut motor [21:40:20]*** Cut end [21:40:20]Read from MH i2c: 01 07 00 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [21:40:20]process_action close_receipt done [21:40:20]requested_data is exist [21:40:20]produce_requested_data [21:40:20]requested_item fm.sn is exist - process it [21:40:20]wFMCommunicate request_size=4 [21:40:20]MH_SAM_APDU [21:40:20]CAPDU: 80 11 00 00 [21:40:20]Write to MH i2c: E2 08 00 76 27 80 11 00 00 00 00 00 00 17 [21:40:20]Write i2c OK [21:40:20]MH_I2C_Read... [21:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:20]Read from MH i2c: E2 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 17 00 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 17 00 76 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6E [21:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:40:20]wFMCommunicate OK [21:40:20]requested_item fd.num is exist - process it [21:40:20]SAM_PROTO_GetFieldsCounters [21:40:20]wFMCommunicate request_size=4 [21:40:20]MH_SAM_APDU [21:40:20]CAPDU: 80 13 00 00 [21:40:20]Write to MH i2c: E2 08 00 77 27 80 13 00 00 00 00 00 00 1A [21:40:20]Write i2c OK [21:40:20]MH_I2C_Read... [21:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:20]Read from MH i2c: E2 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 62 00 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 62 00 77 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 24 02 00 0E 04 04 00 C6 01 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 A0 [21:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 76 24 02 00 0E 04 04 00 C6 01 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 [21:40:20]wFMCommunicate OK [21:40:20]SAM_PROTO_GetFieldsCounters done [21:40:20]requested_item shift.num is exist - process it [21:40:20]requested_item shift.opened is exist - process it [21:40:20]req_shift_opened [21:40:20]FM_GetShiftState [21:40:20]SAM_PROTO_GetShiftState [21:40:20]wFMCommunicate request_size=4 [21:40:20]MH_SAM_APDU [21:40:20]CAPDU: 80 13 01 00 [21:40:20]Write to MH i2c: E2 08 00 78 27 80 13 01 00 00 00 00 00 1C [21:40:20]Write i2c OK [21:40:20]MH_I2C_Read... [21:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:20]Read from MH i2c: E2 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 0E 00 [21:40:20]MH_I2C_Read... [21:40:20]Read from MH i2c: E2 0E 00 78 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9C [21:40:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:40:20]wFMCommunicate OK [21:40:20]SAM_PROTO_GetShiftState done [21:40:20]FM_GetShiftState done [21:40:20]req_shift_opened done [21:40:20]requested_item shift.open_date is exist - process it [21:40:20]req_shift_open_date [21:40:20]req_shift_open_date done [21:40:20]produce_requested_data done [21:40:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140406,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:40:20]process_action_free close_receipt [21:40:20]json_value_free [21:40:20]json_value_free done [21:40:20]process_json_proto returns [21:40:20]Send response to host [21:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140406,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:40:20]free response buf [21:40:20]execute_script done [21:40:20]execute_script returns [21:40:20]free content buf [21:40:20]Sock 9.Close socket [21:40:20]Sock 9.Thread stoped [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48: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:54]accept exits with 10 [21:49:54]New connection [21:49:54]New thread 3067612516 created [21:49:54]Thread 3067469156 joined [21:49:54]Waiting for new connection... [21:49:54] Sock 10.Parse request [21:49:54]Sock 10.Check first char [21:49:54]Sock 10.First char is OK [21:49:54]request: POST /json_proto HTTP/1.0 [21:49:54]Method: POST [21:49:54]URL: /json_proto [21:49:54]Method is POST - this is cgi request [21:49:54]url: /json_proto [21:49:54]query_string will be loaded in cgi processing [21:49:54]execute_cgi json_proto POST (null) [21:49:54]execute_cgi path=json_proto method=POST [21:49:54]POST find Content-Length [21:49:54]Host: 172.17.45.67:8080 [21:49:54]Content-Length: 677 [21:49:54]Content-Type: application/json [21:49:54] [21:49:54]POST finish read [21:49:54]Found Content-Length = 677 [21:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [21:49:54]execute_script... [21:49: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)594265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.480, "sum" : 100.34, "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" ] } } [21:49:54]POST & json_proto [21:49:54]process_json_proto [21:49:54]json parsed OK: [21:49:54]protocol is kg_v1.0 [21:49:54]action value=close_receipt [21:49:54]process_action close_receipt [21:49:54]cmd_close_receipt [21:49:54]MH_GetDate [21:49:54]Write to MH i2c: F0 00 00 79 27 8F [21:49:54]Write i2c OK [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 09 00 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: F0 09 00 79 27 00 03 61 C6 66 5F 7F 2B 66 97 [21:49:54]GetLastDocTimeStamp 1724276417 [21:49:54]current date 1724276995 [21:49:54]FM_GetShiftState [21:49:54]SAM_PROTO_GetShiftState [21:49:54]wFMCommunicate request_size=4 [21:49:54]MH_SAM_APDU [21:49:54]CAPDU: 80 13 01 00 [21:49:54]Write to MH i2c: E2 08 00 7A 27 80 13 01 00 00 00 00 00 1E [21:49:54]Write i2c OK [21:49:54]MH_I2C_Read... [21:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:54]Read from MH i2c: E2 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: E2 0E 00 [21:49:54]MH_I2C_Read... [21:49:54]Read from MH i2c: E2 0E 00 7A 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 9E [21:49:54]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:49:54]wFMCommunicate OK [21:49:54]SAM_PROTO_GetShiftState done [21:49:54]FM_GetShiftState done [21:49:54]opened in 1724200467 [21:49:54]opened+sec_in_day 1724286867 [21:49:54]quantity*price = 10034 [21:49:54]sum+1 = 10035 [21:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 424 21.08.2024 21:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140407 ФПД: 235645983997026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T214955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140407&fm=235645983997026&tin=02508201610067®Number=0000000000092569&sum=10000 [21:49:55]StoreToDocumentArchive [21:49:55]shift 454 fd 140407 [21:49:55]save to /storage/0454/doc_00140407 [21:49:55]save last doc name /storage/0454/doc_00140407 to /storage/kkm_last_doc_name [21:49:55]save OK [21:49:55]Clear old archive folders... [21:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:55]tlvbuf is 00C6F020 [21:49:55]SAM_PROTO_ClearQueue [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 09 00 00 [21:49:55]Write to MH i2c: E2 08 00 87 27 80 09 00 00 00 00 00 00 20 [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 87 27 00 90 00 22 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]SAM_PROTO_ClearQueue done [21:49:55]KKMCreateOFDPacket [21:49:55]OFDProtocolAddRootSTLVToBuf [21:49:55]FM_MakeSignedData [21:49:55]FM_MakeSignedData [21:49:55]SAM_PROTO_SignData [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 01 02 [21:49:55]Write to MH i2c: E2 08 00 88 27 80 0D 01 02 00 00 00 00 28 [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]wFMCommunicate request_size=255 [21:49:55]MH_SAM_APDU [21: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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 A8 01 00 00 F4 03 04 00 03 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 24 02 00 35 04 06 00 D6 [21:49:55]Write to MH i2c: E2 02 01 89 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 A8 01 00 00 F4 03 04 00 03 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 24 02 00 35 04 06 00 D6 00 00 60 [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]wFMCommunicate request_size=10 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 02 02 05 51 9B 2B 3C 62 [21:49:55]Write to MH i2c: E2 0D 00 8A 27 80 0D 02 02 05 00 51 9B 2B 3C 62 00 00 EA [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [21:49:55]RAPDU: 90 00 [21:49:55]wFMCommunicate OK [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 0D 03 02 [21:49:55]Write to MH i2c: E2 08 00 8B 27 80 0D 03 02 00 00 00 00 2D [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:55]Read from MH i2c: E2 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 0B 00 [21:49:55]MH_I2C_Read... [21:49:55]Read from MH i2c: E2 0B 00 8B 27 00 16 5E 08 06 59 D5 3C DA 90 00 F4 [21:49:55]RAPDU: 16 5E 08 06 59 D5 3C DA 90 00 [21:49:55]wFMCommunicate OK [21:49:55]SAM_PROTO_SignData done [21:49:55]FM_MakeSignedData done [21:49:55]CreateOFDProtocolMessage [21:49:55]wFMCommunicate request_size=4 [21:49:55]MH_SAM_APDU [21:49:55]CAPDU: 80 11 00 00 [21:49:55]Write to MH i2c: E2 08 00 8C 27 80 11 00 00 00 00 00 00 2D [21:49:55]Write i2c OK [21:49:55]MH_I2C_Read... [21:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:56]Read from MH i2c: E2 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 17 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: E2 17 00 8C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 84 [21:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:49:56]wFMCommunicate OK [21:49:56]CreateOFDProtocolMessage done [21:49:56]OFDSenderStorePacket 140407 [21:49:56]StoreOFDPacket docnum=140407 [21:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 C0 3B 07 01 F8 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 A8 01 00 00 F4 03 04 00 03 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 24 02 00 35 04 06 00 D6 51 9B 2B 3C 62 16 5E 08 06 59 D5 3C DA [21:49:56]CheckFolder [21:49:56]dirname=/storage/ofd_packets [21:49:56]CheckFolder done [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00140407 [21:49:56]NVStorageSaveData ofd_packets/00140407 [21:49:56]File name is /storage/ofd_packets/00140407 [21:49:56]Write 301 bytes [21:49:56]NVStorageSaveData done [21:49:56]OFDSenderStorePacket done [21:49:56]KKMCreateOFDPacket done [21:49:56]NVStorageSaveData kkm_last_timestamp [21:49:56]File name is /storage/kkm_last_timestamp [21:49:56]Write 4 bytes [21:49:56]NVStorageSaveData done [21:49:56]ExternCall_PrintAddStr [21:49:56]wPrintStart [21:49:56]Write to MH i2c: 01 00 00 8D 27 B4 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 8D 27 00 00 00 00 00 FF 0F C9 [21:49:56]RasterBufferAndPrint [21:49:56]line Счет N : (1)594265 [21:49:56]line ИНН: 02508201610067 [21:49:56]line Контрольно-Кассовый Чек [21:49:56]line ПРОДАЖА [21:49:56]line ТРК (МРК, ГНК) : 42 [21:49:56]line Товар: 2710124130 [21:49:56]line Аи-92-К-5 [21:49:56]line 1.480 * 67.80 [21:49:56]line = 100.34 [21:49:56]line НДС 12% НСП 1% [21:49:56]line > о реализуемом товаре [21:49:56]line ОКРУГЛЕНИЕ: -0.34 [21:49:56]line ИТОГО: 100.00 [21:49:56]line Внесено: 100.00 [21:49:56]line СДАЧА: 0.00 [21:49:56]line НСП 1% : 0.89 [21:49:56]line НДС 12% : 10.66 [21:49:56]line Наличными: 100.00 [21:49:56]line Безнал.: 0.00 [21:49:56]line Место: АЗС № 136 "Партнер Нефть" [21:49:56]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:49:56]line СНО: Общий режим [21:49:56]line Чек 424 21.08.2024 21:49 [21:49:56]line Смена: 454 ФФД: 1.0 [21:49:56]line ЗНМ: 0300000067 [21:49:56]line РНМ: 0000000000092569 [21:49:56]line Версия ККМ: 001 [21:49:56]line ФМ: 0000000000871776 [21:49:56]line ФД: 140407 [21:49:56]line ФПД: 235645983997026 [21:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T214955&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140407&fm=235645983997026&tin=02508201610067®Number=0000000000092569&sum=10000 [21:49:56]written 0, free lines is 4095 [21:49:56]OFD Sender: Processing packet 140407 [packets to send 137, broken 136] [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00140407 [21:49:56]OFD Sender: To server: pG, [21:49:56]CommunicateWithHost lk.salyk.kg:30040 [21:49:56]ConnectInit lk.salyk.kg [21:49:56]Connected sock=9 [21: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 37 36 0F 01 00 00 C0 3B 07 01 F8 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 A8 01 00 00 F4 03 04 00 03 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 77 24 02 00 35 04 06 00 D6 51 9B 2B 3C 62 16 5E 08 06 59 D5 3C DA [21: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 37 36 4F 00 00 00 7E C1 47 00 78 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 37 36 10 04 04 00 77 24 02 00 F4 03 04 00 93 07 C6 66 B6 04 01 00 00 C1 66 B6 3C 11 32 E2 EF [21:49:56]CommunicateWithHost err = 0 [21:49:56]CheckOFDResponse [21:49:56]1017 (14) - 77093643461234 [21:49:56]1041 (16) - 0000000000871776 [21:49:56]1040 (4) - 140407 [21:49:56]1012 (4) - 21.08.2024 15:28 [21:49:56]1206 (1) - 0 [21:49:56]OFD Sender: Remove packet 140407 [21:49:56]ProducePacketName [21:49:56]name=ofd_packets/00140407 [21:49:56]NVStorageDeleteData [21:49:56]Write to MH i2c: 01 00 00 B8 27 DF [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: 01 07 00 B8 27 00 00 00 00 00 C6 0C B8 [21:49:56]RasterBufferAndPrint [21:49:56]line [21:49:56]line [21:49:56]line [21:49:56]line [21:49:56]line [21:49:56]written 0, free lines is 3276 [21:49:56]MH_Cut [21:49:56]Write to MH i2c: D1 01 00 BF 27 01 B8 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: D1 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: D1 01 00 [21:49:56]MH_I2C_Read... [21:49:56]Read from MH i2c: D1 01 00 BF 27 00 B7 [21:49:56]Write to MH i2c: 01 00 00 C0 27 E7 [21:49:56]Write i2c OK [21:49:56]MH_I2C_Read... [21:49:57]OFD Sender: No OFD packet to send [21:49:57]*** Cut start [21:49:57]*** Partial cut [21:49:57]*** CUTSNS_PIN = 1 [21:49:57]*** CUTSNS_PIN = 0 [21:49:57]*** Brake cut motor [21:49:58]Read from MH i2c: 01 [21:49:58]MH_I2C_Read... [21:49:58]*** Stop cut motor [21:49:58]*** Cut end [21:49:58]Read from MH i2c: 01 07 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: 01 07 00 C0 27 00 00 00 00 00 FF 0F FC [21:49:58]process_action close_receipt done [21:49:58]requested_data is exist [21:49:58]produce_requested_data [21:49:58]requested_item fm.sn is exist - process it [21:49:58]wFMCommunicate request_size=4 [21:49:58]MH_SAM_APDU [21:49:58]CAPDU: 80 11 00 00 [21:49:58]Write to MH i2c: E2 08 00 C1 27 80 11 00 00 00 00 00 00 62 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 [21:49:58]MH_I2C_Read... [21:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:58]Read from MH i2c: E2 17 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 17 00 C1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B9 [21:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:49:58]wFMCommunicate OK [21:49:58]requested_item fd.num is exist - process it [21:49:58]SAM_PROTO_GetFieldsCounters [21:49:58]wFMCommunicate request_size=4 [21:49:58]MH_SAM_APDU [21:49:58]CAPDU: 80 13 00 00 [21:49:58]Write to MH i2c: E2 08 00 C2 27 80 13 00 00 00 00 00 00 65 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:58]Read from MH i2c: E2 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 62 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 62 00 C2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 24 02 00 0E 04 04 00 C6 01 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 EF [21: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 77 24 02 00 0E 04 04 00 C6 01 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 [21:49:58]wFMCommunicate OK [21:49:58]SAM_PROTO_GetFieldsCounters done [21:49:58]requested_item shift.num is exist - process it [21:49:58]requested_item shift.opened is exist - process it [21:49:58]req_shift_opened [21:49:58]FM_GetShiftState [21:49:58]SAM_PROTO_GetShiftState [21:49:58]wFMCommunicate request_size=4 [21:49:58]MH_SAM_APDU [21:49:58]CAPDU: 80 13 01 00 [21:49:58]Write to MH i2c: E2 08 00 C3 27 80 13 01 00 00 00 00 00 67 [21:49:58]Write i2c OK [21:49:58]MH_I2C_Read... [21:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:58]Read from MH i2c: E2 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 0E 00 [21:49:58]MH_I2C_Read... [21:49:58]Read from MH i2c: E2 0E 00 C3 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E7 [21:49:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:49:58]wFMCommunicate OK [21:49:58]SAM_PROTO_GetShiftState done [21:49:58]FM_GetShiftState done [21:49:58]req_shift_opened done [21:49:58]requested_item shift.open_date is exist - process it [21:49:58]req_shift_open_date [21:49:58]req_shift_open_date done [21:49:58]produce_requested_data done [21:49:58]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140407,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:49:58]process_action_free close_receipt [21:49:58]json_value_free [21:49:58]json_value_free done [21:49:58]process_json_proto returns [21:49:58]Send response to host [21:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140407,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:49:58]free response buf [21:49:58]execute_script done [21:49:58]execute_script returns [21:49:58]free content buf [21:49:58]Sock 10.Close socket [21:49:58]Sock 10.Thread stoped [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:04]accept exits with 7 [21:54:04]New connection [21:54:04]New thread 3067469156 created [21:54:04]Thread 3067612516 joined [21:54:04]Waiting for new connection... [21:54:04] Sock 7.Parse request [21:54:04]Sock 7.Check first char [21:54:04]Sock 7.First char is OK [21:54:04]request: POST /json_proto HTTP/1.0 [21:54:04]Method: POST [21:54:04]URL: /json_proto [21:54:04]Method is POST - this is cgi request [21:54:04]url: /json_proto [21:54:04]query_string will be loaded in cgi processing [21:54:04]execute_cgi json_proto POST (null) [21:54:04]execute_cgi path=json_proto method=POST [21:54:04]POST find Content-Length [21:54:04]Host: 172.17.45.67:8080 [21:54:04]Content-Length: 677 [21:54:04]Content-Type: application/json [21:54:04] [21:54:04]POST finish read [21:54:04]Found Content-Length = 677 [21:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:04]execute_script... [21:54: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)594266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:04]POST & json_proto [21:54:04]process_json_proto [21:54:04]json parsed OK: [21:54:04]protocol is kg_v1.0 [21:54:04]action value=close_receipt [21:54:04]process_action close_receipt [21:54:04]cmd_close_receipt [21:54:04]MH_GetDate [21:54:04]Write to MH i2c: F0 00 00 C4 27 DA [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: F0 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: F0 09 00 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: F0 09 00 C4 27 00 FD 61 C6 66 5F 7F 2B 66 DC [21:54:04]GetLastDocTimeStamp 1724276995 [21:54:04]current date 1724277245 [21:54:04]FM_GetShiftState [21:54:04]SAM_PROTO_GetShiftState [21:54:04]wFMCommunicate request_size=4 [21:54:04]MH_SAM_APDU [21:54:04]CAPDU: 80 13 01 00 [21:54:04]Write to MH i2c: E2 08 00 C5 27 80 13 01 00 00 00 00 00 69 [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:04]Read from MH i2c: E2 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 0E 00 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 0E 00 C5 27 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E9 [21:54:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:54:04]wFMCommunicate OK [21:54:04]SAM_PROTO_GetShiftState done [21:54:04]FM_GetShiftState done [21:54:04]opened in 1724200467 [21:54:04]opened+sec_in_day 1724286867 [21:54:04]quantity*price = 40002 [21:54:04]sum+1 = 40003 [21:54:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 425 21.08.2024 21:54 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140408 ФПД: 63999847048981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T215405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140408&fm=63999847048981&tin=02508201610067®Number=0000000000092569&sum=40000 [21:54:05]StoreToDocumentArchive [21:54:05]shift 454 fd 140408 [21:54:05]save to /storage/0454/doc_00140408 [21:54:05]save last doc name /storage/0454/doc_00140408 to /storage/kkm_last_doc_name [21:54:05]save OK [21:54:05]Clear old archive folders... [21:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:05]tlvbuf is 00C95230 [21:54:05]SAM_PROTO_ClearQueue [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 09 00 00 [21:54:05]Write to MH i2c: E2 08 00 D2 27 80 09 00 00 00 00 00 00 6B [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 D2 27 00 90 00 6D [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]SAM_PROTO_ClearQueue done [21:54:05]KKMCreateOFDPacket [21:54:05]OFDProtocolAddRootSTLVToBuf [21:54:05]FM_MakeSignedData [21:54:05]FM_MakeSignedData [21:54:05]SAM_PROTO_SignData [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 0D 01 02 [21:54:05]Write to MH i2c: E2 08 00 D3 27 80 0D 01 02 00 00 00 00 73 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]wFMCommunicate request_size=255 [21:54:05]MH_SAM_APDU [21:54: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FD 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 24 02 00 35 04 06 00 3A [21:54:05]Write to MH i2c: E2 02 01 D4 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FD 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 24 02 00 35 04 06 00 3A 00 00 B4 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]wFMCommunicate request_size=10 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 0D 02 02 05 35 20 26 27 15 [21:54:05]Write to MH i2c: E2 0D 00 D5 27 80 0D 02 02 05 00 35 20 26 27 15 00 00 37 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [21:54:05]RAPDU: 90 00 [21:54:05]wFMCommunicate OK [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 0D 03 02 [21:54:05]Write to MH i2c: E2 08 00 D6 27 80 0D 03 02 00 00 00 00 78 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0B 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0B 00 D6 27 00 58 EA FC E9 F2 83 3E 77 90 00 CA [21:54:05]RAPDU: 58 EA FC E9 F2 83 3E 77 90 00 [21:54:05]wFMCommunicate OK [21:54:05]SAM_PROTO_SignData done [21:54:05]FM_MakeSignedData done [21:54:05]CreateOFDProtocolMessage [21:54:05]wFMCommunicate request_size=4 [21:54:05]MH_SAM_APDU [21:54:05]CAPDU: 80 11 00 00 [21:54:05]Write to MH i2c: E2 08 00 D7 27 80 11 00 00 00 00 00 00 78 [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 17 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 17 00 D7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CF [21:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:54:05]wFMCommunicate OK [21:54:05]CreateOFDProtocolMessage done [21:54:05]OFDSenderStorePacket 140408 [21:54:05]StoreOFDPacket docnum=140408 [21:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 CA DC 07 01 5B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FD 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 24 02 00 35 04 06 00 3A 35 20 26 27 15 58 EA FC E9 F2 83 3E 77 [21:54:05]CheckFolder [21:54:05]dirname=/storage/ofd_packets [21:54:05]CheckFolder done [21:54:05]ProducePacketName [21:54:05]name=ofd_packets/00140408 [21:54:05]NVStorageSaveData ofd_packets/00140408 [21:54:05]File name is /storage/ofd_packets/00140408 [21:54:05]Write 301 bytes [21:54:05]NVStorageSaveData done [21:54:05]OFDSenderStorePacket done [21:54:05]KKMCreateOFDPacket done [21:54:05]NVStorageSaveData kkm_last_timestamp [21:54:05]File name is /storage/kkm_last_timestamp [21:54:05]Write 4 bytes [21:54:05]NVStorageSaveData done [21:54:05]ExternCall_PrintAddStr [21:54:05]wPrintStart [21:54:05]Write to MH i2c: 01 00 00 D8 27 FF [21:54:05]Write i2c OK [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: 01 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: 01 07 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 FF 0F 14 [21:54:05]RasterBufferAndPrint [21:54:05]line Счет N : (1)594266 [21:54:05]line ИНН: 02508201610067 [21:54:05]line Контрольно-Кассовый Чек [21:54:05]line ПРОДАЖА [21:54:05]line ТРК (МРК, ГНК) : 52 [21:54:05]line Товар: 2710124130 [21:54:05]line Аи-92-К-5 [21:54:05]line 5.900 * 67.80 [21:54:05]line = 400.02 [21:54:05]line НДС 12% НСП 1% [21:54:05]line > о реализуемом товаре [21:54:05]line ОКРУГЛЕНИЕ: -0.02 [21:54:05]line ИТОГО: 400.00 [21:54:05]line Внесено: 400.00 [21:54:05]line СДАЧА: 0.00 [21:54:05]line НСП 1% : 3.54 [21:54:05]line НДС 12% : 42.48 [21:54:05]line Наличными: 400.00 [21:54:05]line Безнал.: 0.00 [21:54:05]line Место: АЗС № 136 "Партнер Нефть" [21:54:05]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [21:54:05]line СНО: Общий режим [21:54:05]line Чек 425 21.08.2024 21:54 [21:54:05]line Смена: 454 ФФД: 1.0 [21:54:05]line ЗНМ: 0300000067 [21:54:05]line РНМ: 0000000000092569 [21:54:05]line Версия ККМ: 001 [21:54:05]line ФМ: 0000000000871776 [21:54:05]line ФД: 140408 [21:54:05]line ФПД: 63999847048981 [21:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T215405&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140408&fm=63999847048981&tin=02508201610067®Number=0000000000092569&sum=40000 [21:54:06]written 0, free lines is 4095 [21:54:06]OFD Sender: Processing packet 140408 [packets to send 137, broken 136] [21:54:06]ProducePacketName [21:54:06]name=ofd_packets/00140408 [21:54:06]OFD Sender: To server: pG, [21:54:06]CommunicateWithHost lk.salyk.kg:30040 [21:54:06]ConnectInit lk.salyk.kg [21:54:06]Connected sock=10 [21:54: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 37 36 0F 01 00 00 CA DC 07 01 5B 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 FD 61 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 78 24 02 00 35 04 06 00 3A 35 20 26 27 15 58 EA FC E9 F2 83 3E 77 [21:54: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 37 36 4F 00 00 00 3C B9 47 00 66 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 37 36 10 04 04 00 78 24 02 00 F4 03 04 00 8D 08 C6 66 B6 04 01 00 00 5A 79 51 46 EC 24 2E D2 [21:54:06]CommunicateWithHost err = 0 [21:54:06]CheckOFDResponse [21:54:06]1017 (14) - 77093643461234 [21:54:06]1041 (16) - 0000000000871776 [21:54:06]1040 (4) - 140408 [21:54:06]1012 (4) - 21.08.2024 15:32 [21:54:06]1206 (1) - 0 [21:54:06]OFD Sender: Remove packet 140408 [21:54:06]ProducePacketName [21:54:06]name=ofd_packets/00140408 [21:54:06]NVStorageDeleteData [21:54:06]Write to MH i2c: 01 00 00 03 28 2B [21:54:06]Write i2c OK [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: 01 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: 01 07 00 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: 01 07 00 03 28 00 00 00 00 00 CE 0C 0C [21:54:06]RasterBufferAndPrint [21:54:06]line [21:54:06]line [21:54:06]line [21:54:06]line [21:54:06]line [21:54:06]written 0, free lines is 3287 [21:54:06]MH_Cut [21:54:06]Write to MH i2c: D1 01 00 0A 28 01 04 [21:54:06]Write i2c OK [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: D1 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: D1 01 00 [21:54:06]MH_I2C_Read... [21:54:06]Read from MH i2c: D1 01 00 0A 28 00 03 [21:54:06]Write to MH i2c: 01 00 00 0B 28 33 [21:54:06]Write i2c OK [21:54:06]MH_I2C_Read... [21:54:07]OFD Sender: No OFD packet to send [21:54:07]*** Cut start [21:54:07]*** Partial cut [21:54:07]*** CUTSNS_PIN = 1 [21:54:07]*** CUTSNS_PIN = 0 [21:54:07]*** Brake cut motor [21:54:07]Read from MH i2c: 01 [21:54:07]MH_I2C_Read... [21:54:07]*** Stop cut motor [21:54:08]*** Cut end [21:54:08]Read from MH i2c: 01 07 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: 01 07 00 0B 28 00 00 00 00 00 FF 0F 48 [21:54:08]process_action close_receipt done [21:54:08]requested_data is exist [21:54:08]produce_requested_data [21:54:08]requested_item fm.sn is exist - process it [21:54:08]wFMCommunicate request_size=4 [21:54:08]MH_SAM_APDU [21:54:08]CAPDU: 80 11 00 00 [21:54:08]Write to MH i2c: E2 08 00 0C 28 80 11 00 00 00 00 00 00 AE [21:54:08]Write i2c OK [21:54:08]MH_I2C_Read... [21:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:08]Read from MH i2c: E2 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 17 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 17 00 0C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 05 [21:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [21:54:08]wFMCommunicate OK [21:54:08]requested_item fd.num is exist - process it [21:54:08]SAM_PROTO_GetFieldsCounters [21:54:08]wFMCommunicate request_size=4 [21:54:08]MH_SAM_APDU [21:54:08]CAPDU: 80 13 00 00 [21:54:08]Write to MH i2c: E2 08 00 0D 28 80 13 00 00 00 00 00 00 B1 [21:54:08]Write i2c OK [21:54:08]MH_I2C_Read... [21:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:08]Read from MH i2c: E2 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 62 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 62 00 0D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 24 02 00 0E 04 04 00 C6 01 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 3F [21:54: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 78 24 02 00 0E 04 04 00 C6 01 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 [21:54:08]wFMCommunicate OK [21:54:08]SAM_PROTO_GetFieldsCounters done [21:54:08]requested_item shift.num is exist - process it [21:54:08]requested_item shift.opened is exist - process it [21:54:08]req_shift_opened [21:54:08]FM_GetShiftState [21:54:08]SAM_PROTO_GetShiftState [21:54:08]wFMCommunicate request_size=4 [21:54:08]MH_SAM_APDU [21:54:08]CAPDU: 80 13 01 00 [21:54:08]Write to MH i2c: E2 08 00 0E 28 80 13 01 00 00 00 00 00 B3 [21:54:08]Write i2c OK [21:54:08]MH_I2C_Read... [21:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:08]Read from MH i2c: E2 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 0E 00 [21:54:08]MH_I2C_Read... [21:54:08]Read from MH i2c: E2 0E 00 0E 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 33 [21:54:08]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [21:54:08]wFMCommunicate OK [21:54:08]SAM_PROTO_GetShiftState done [21:54:08]FM_GetShiftState done [21:54:08]req_shift_opened done [21:54:08]requested_item shift.open_date is exist - process it [21:54:08]req_shift_open_date [21:54:08]req_shift_open_date done [21:54:08]produce_requested_data done [21:54:08]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140408,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [21:54:08]process_action_free close_receipt [21:54:08]json_value_free [21:54:08]json_value_free done [21:54:08]process_json_proto returns [21:54:08]Send response to host [21:54:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140408,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [21:54:08]free response buf [21:54:08]execute_script done [21:54:08]execute_script returns [21:54:08]free content buf [21:54:08]Sock 7.Close socket [21:54:08]Sock 7.Thread stoped [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07: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:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:46]accept exits with 9 [22:13:46]New connection [22:13:46]New thread 3067612516 created [22:13:46]Thread 3067469156 joined [22:13:46]Waiting for new connection... [22:13:46] Sock 9.Parse request [22:13:46]Sock 9.Check first char [22:13:46]Sock 9.First char is OK [22:13:46]request: POST /json_proto HTTP/1.0 [22:13:46]Method: POST [22:13:46]URL: /json_proto [22:13:46]Method is POST - this is cgi request [22:13:46]url: /json_proto [22:13:46]query_string will be loaded in cgi processing [22:13:46]execute_cgi json_proto POST (null) [22:13:46]execute_cgi path=json_proto method=POST [22:13:46]POST find Content-Length [22:13:46]Host: 172.17.45.67:8080 [22:13:46]Content-Length: 674 [22:13:46]Content-Type: application/json [22:13:46] [22:13:46]POST finish read [22:13:46]Found Content-Length = 674 [22:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.220, "sum" : 82.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 82.00, "payments": [ { "type": 0, "sum" : 82.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:46]execute_script... [22:13: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)594267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.220, "sum" : 82.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 82.00, "payments": [ { "type": 0, "sum" : 82.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:46]POST & json_proto [22:13:46]process_json_proto [22:13:46]json parsed OK: [22:13:46]protocol is kg_v1.0 [22:13:46]action value=close_receipt [22:13:46]process_action close_receipt [22:13:46]cmd_close_receipt [22:13:46]MH_GetDate [22:13:46]Write to MH i2c: F0 00 00 0F 28 26 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 09 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 09 00 0F 28 00 9B 66 C6 66 5F 7F 2B 66 CB [22:13:46]GetLastDocTimeStamp 1724277245 [22:13:46]current date 1724278427 [22:13:46]FM_GetShiftState [22:13:46]SAM_PROTO_GetShiftState [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 13 01 00 [22:13:46]Write to MH i2c: E2 08 00 10 28 80 13 01 00 00 00 00 00 B5 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 10 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 35 [22:13:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_GetShiftState done [22:13:46]FM_GetShiftState done [22:13:46]opened in 1724200467 [22:13:46]opened+sec_in_day 1724286867 [22:13:46]quantity*price = 8271 [22:13:46]sum+1 = 8273 [22:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 82.00 Внесено: 150.00 СДАЧА: 68.00 НСП 1% : 0.73 НДС 12% : 8.78 Наличными: 82.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 426 21.08.2024 22:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140409 ФПД: 125269923801359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140409&fm=125269923801359&tin=02508201610067®Number=0000000000092569&sum=8200 [22:13:47]StoreToDocumentArchive [22:13:47]shift 454 fd 140409 [22:13:47]save to /storage/0454/doc_00140409 [22:13:47]save last doc name /storage/0454/doc_00140409 to /storage/kkm_last_doc_name [22:13:47]save OK [22:13:47]Clear old archive folders... [22:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:47]tlvbuf is 00C775E0 [22:13:47]SAM_PROTO_ClearQueue [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 09 00 00 [22:13:47]Write to MH i2c: E2 08 00 1D 28 80 09 00 00 00 00 00 00 B7 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 1D 28 00 90 00 B9 [22:13:47]RAPDU: 90 00 [22:13:47]wFMCommunicate OK [22:13:47]SAM_PROTO_ClearQueue done [22:13:47]KKMCreateOFDPacket [22:13:47]OFDProtocolAddRootSTLVToBuf [22:13:47]FM_MakeSignedData [22:13:47]FM_MakeSignedData [22:13:47]SAM_PROTO_SignData [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 0D 01 02 [22:13:47]Write to MH i2c: E2 08 00 1E 28 80 0D 01 02 00 00 00 00 BF [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:47]Read from MH i2c: E2 03 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [22:13:47]RAPDU: 90 00 [22:13:47]wFMCommunicate OK [22:13:47]wFMCommunicate request_size=255 [22:13:47]MH_SAM_APDU [22:13: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 C4 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 03 00 00 00 00 07 04 06 00 08 20 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 9B 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 24 02 00 35 04 06 00 71 [22:13:47]Write to MH i2c: E2 02 01 1F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 03 00 00 00 00 07 04 06 00 08 20 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 9B 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 24 02 00 35 04 06 00 71 00 00 5A [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [22:13:47]RAPDU: 90 00 [22:13:47]wFMCommunicate OK [22:13:47]wFMCommunicate request_size=10 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 0D 02 02 05 EE AD 4F 29 0F [22:13:47]Write to MH i2c: E2 0D 00 20 28 80 0D 02 02 05 00 EE AD 4F 29 0F 00 00 EE [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [22:13:47]RAPDU: 90 00 [22:13:47]wFMCommunicate OK [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 0D 03 02 [22:13:47]Write to MH i2c: E2 08 00 21 28 80 0D 03 02 00 00 00 00 C4 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:47]Read from MH i2c: E2 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 0B 00 [22:13:47]MH_I2C_Read... [22:13:47]Read from MH i2c: E2 0B 00 21 28 00 99 D5 10 04 3F F1 94 B6 90 00 C1 [22:13:47]RAPDU: 99 D5 10 04 3F F1 94 B6 90 00 [22:13:47]wFMCommunicate OK [22:13:47]SAM_PROTO_SignData done [22:13:47]FM_MakeSignedData done [22:13:47]CreateOFDProtocolMessage [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 11 00 00 [22:13:47]Write to MH i2c: E2 08 00 22 28 80 11 00 00 00 00 00 00 C4 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 22 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1B [22:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:13:48]wFMCommunicate OK [22:13:48]CreateOFDProtocolMessage done [22:13:48]OFDSenderStorePacket 140409 [22:13:48]StoreOFDPacket docnum=140409 [22:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5D 4B 07 01 10 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 C4 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 03 00 00 00 00 07 04 06 00 08 20 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 9B 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 24 02 00 35 04 06 00 71 EE AD 4F 29 0F 99 D5 10 04 3F F1 94 B6 [22:13:48]CheckFolder [22:13:48]dirname=/storage/ofd_packets [22:13:48]CheckFolder done [22:13:48]ProducePacketName [22:13:48]name=ofd_packets/00140409 [22:13:48]NVStorageSaveData ofd_packets/00140409 [22:13:48]File name is /storage/ofd_packets/00140409 [22:13:48]Write 301 bytes [22:13:48]NVStorageSaveData done [22:13:48]OFDSenderStorePacket done [22:13:48]KKMCreateOFDPacket done [22:13:48]NVStorageSaveData kkm_last_timestamp [22:13:48]File name is /storage/kkm_last_timestamp [22:13:48]Write 4 bytes [22:13:48]NVStorageSaveData done [22:13:48]ExternCall_PrintAddStr [22:13:48]wPrintStart [22:13:48]Write to MH i2c: 01 00 00 23 28 4B [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 23 28 00 00 00 00 00 FF 0F 60 [22:13:48]RasterBufferAndPrint [22:13:48]line Счет N : (1)594267 [22:13:48]line ИНН: 02508201610067 [22:13:48]line Контрольно-Кассовый Чек [22:13:48]line ПРОДАЖА [22:13:48]line ТРК (МРК, ГНК) : 52 [22:13:48]line Товар: 2710124130 [22:13:48]line Аи-92-К-5 [22:13:48]line 1.220 * 67.80 [22:13:48]line = 82.72 [22:13:48]line НДС 12% НСП 1% [22:13:48]line > о реализуемом товаре [22:13:48]line ОКРУГЛЕНИЕ: -0.72 [22:13:48]line ИТОГО: 82.00 [22:13:48]line Внесено: 150.00 [22:13:48]line СДАЧА: 68.00 [22:13:48]line НСП 1% : 0.73 [22:13:48]line НДС 12% : 8.78 [22:13:48]line Наличными: 82.00 [22:13:48]line Безнал.: 0.00 [22:13:48]line Место: АЗС № 136 "Партнер Нефть" [22:13:48]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:13:48]line СНО: Общий режим [22:13:48]line Чек 426 21.08.2024 22:13 [22:13:48]line Смена: 454 ФФД: 1.0 [22:13:48]line ЗНМ: 0300000067 [22:13:48]line РНМ: 0000000000092569 [22:13:48]line Версия ККМ: 001 [22:13:48]line ФМ: 0000000000871776 [22:13:48]line ФД: 140409 [22:13:48]line ФПД: 125269923801359 [22:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221347&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140409&fm=125269923801359&tin=02508201610067®Number=0000000000092569&sum=8200 [22:13:48]OFD Sender: Processing packet 140409 [packets to send 137, broken 136] [22:13:48]ProducePacketName [22:13:48]name=ofd_packets/00140409 [22:13:48]OFD Sender: To server: pG, [22:13:48]CommunicateWithHost lk.salyk.kg:30040 [22:13:48]ConnectInit lk.salyk.kg [22:13:48]written 0, free lines is 4095 [22:13:48]Connected sock=10 [22:13: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 37 36 0F 01 00 00 5D 4B 07 01 10 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 C4 04 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 50 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 03 00 00 00 00 07 04 06 00 08 20 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 9B 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 79 24 02 00 35 04 06 00 71 EE AD 4F 29 0F 99 D5 10 04 3F F1 94 B6 [22:13:48]Write to MH i2c: 01 00 00 4E 28 76 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 4E 28 00 00 00 00 00 D8 0C 61 [22:13:48]RasterBufferAndPrint [22:13:48]line [22:13:48]line [22:13:48]line [22:13:48]line [22:13:48]line [22:13:48]written 0, free lines is 3293 [22:13:48]MH_Cut [22:13:48]Write to MH i2c: D1 01 00 55 28 01 4F [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: D1 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: D1 01 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: D1 01 00 55 28 00 4E [22:13:48]Write to MH i2c: 01 00 00 56 28 7E [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13: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 37 36 4F 00 00 00 EA EE 47 00 EB 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 37 36 10 04 04 00 79 24 02 00 F4 03 04 00 2B 0D C6 66 B6 04 01 00 00 D4 58 90 A9 DD 14 8A 53 [22:13:48]CommunicateWithHost err = 0 [22:13:48]CheckOFDResponse [22:13:48]1017 (14) - 77093643461234 [22:13:48]1041 (16) - 0000000000871776 [22:13:48]1040 (4) - 140409 [22:13:48]1012 (4) - 21.08.2024 15:52 [22:13:48]1206 (1) - 0 [22:13:48]OFD Sender: Remove packet 140409 [22:13:48]ProducePacketName [22:13:48]name=ofd_packets/00140409 [22:13:48]NVStorageDeleteData [22:13:49]OFD Sender: No OFD packet to send [22:13:49]*** Cut start [22:13:49]*** Partial cut [22:13:49]*** CUTSNS_PIN = 1 [22:13:49]*** CUTSNS_PIN = 0 [22:13:49]*** Brake cut motor [22:13:50]Read from MH i2c: 01 [22:13:50]MH_I2C_Read... [22:13:50]*** Stop cut motor [22:13:50]*** Cut end [22:13:50]Read from MH i2c: 01 07 00 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: 01 07 00 56 28 00 00 00 00 00 FF 0F 93 [22:13:50]process_action close_receipt done [22:13:50]requested_data is exist [22:13:50]produce_requested_data [22:13:50]requested_item fm.sn is exist - process it [22:13:50]wFMCommunicate request_size=4 [22:13:50]MH_SAM_APDU [22:13:50]CAPDU: 80 11 00 00 [22:13:50]Write to MH i2c: E2 08 00 57 28 80 11 00 00 00 00 00 00 F9 [22:13:50]Write i2c OK [22:13:50]MH_I2C_Read... [22:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:50]Read from MH i2c: E2 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 17 00 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 17 00 57 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 50 [22:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:13:50]wFMCommunicate OK [22:13:50]requested_item fd.num is exist - process it [22:13:50]SAM_PROTO_GetFieldsCounters [22:13:50]wFMCommunicate request_size=4 [22:13:50]MH_SAM_APDU [22:13:50]CAPDU: 80 13 00 00 [22:13:50]Write to MH i2c: E2 08 00 58 28 80 13 00 00 00 00 00 00 FC [22:13:50]Write i2c OK [22:13:50]MH_I2C_Read... [22:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:50]Read from MH i2c: E2 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 62 00 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 62 00 58 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 24 02 00 0E 04 04 00 C6 01 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 8E [22:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 79 24 02 00 0E 04 04 00 C6 01 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 [22:13:50]wFMCommunicate OK [22:13:50]SAM_PROTO_GetFieldsCounters done [22:13:50]requested_item shift.num is exist - process it [22:13:50]requested_item shift.opened is exist - process it [22:13:50]req_shift_opened [22:13:50]FM_GetShiftState [22:13:50]SAM_PROTO_GetShiftState [22:13:50]wFMCommunicate request_size=4 [22:13:50]MH_SAM_APDU [22:13:50]CAPDU: 80 13 01 00 [22:13:50]Write to MH i2c: E2 08 00 59 28 80 13 01 00 00 00 00 00 FE [22:13:50]Write i2c OK [22:13:50]MH_I2C_Read... [22:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:50]Read from MH i2c: E2 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 0E 00 [22:13:50]MH_I2C_Read... [22:13:50]Read from MH i2c: E2 0E 00 59 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7E [22:13:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:13:50]wFMCommunicate OK [22:13:50]SAM_PROTO_GetShiftState done [22:13:50]FM_GetShiftState done [22:13:50]req_shift_opened done [22:13:50]requested_item shift.open_date is exist - process it [22:13:50]req_shift_open_date [22:13:50]req_shift_open_date done [22:13:50]produce_requested_data done [22:13:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140409,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:13:50]process_action_free close_receipt [22:13:50]json_value_free [22:13:50]json_value_free done [22:13:50]process_json_proto returns [22:13:50]Send response to host [22:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140409,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:13:50]free response buf [22:13:50]execute_script done [22:13:50]execute_script returns [22:13:50]free content buf [22:13:50]Sock 9.Close socket [22:13:50]Sock 9.Thread stoped [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:29]int [22:14:29]Write to MH i2c: 01 00 00 5A 28 82 [22:14:29]*** FLAG_PRN_KEY set [22:14:29]Write i2c OK [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 5A 28 00 08 00 00 00 FF 0F 9F [22:14:29]state=0 [22:14:29]Key pressed [22:14:29]Feed [22:14:29]Write to MH i2c: D8 00 00 5B 28 5A [22:14:29]Write i2c OK [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: D8 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: D8 01 00 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: D8 01 00 5B 28 00 5B [22:14:29]int [22:14:29]Write to MH i2c: 01 00 00 5C 28 84 [22:14:29]Write i2c OK [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 5C 28 00 48 00 00 00 3C 00 0F [22:14:29]state=2 [22:14:29]Key pressed [22:14:29]int [22:14:29]Write to MH i2c: 01 00 00 5D 28 85 [22:14:29]*** FLAG_PRN_KEY reset [22:14:29]Write i2c OK [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 [22:14:29]MH_I2C_Read... [22:14:29]Read from MH i2c: 01 07 00 5D 28 00 00 00 00 00 F6 0F 91 [22:14:29]state=2 [22:14:29]Stop feed [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:48]accept exits with 7 [22:14:48]New connection [22:14:48]New thread 3067469156 created [22:14:48]Thread 3067612516 joined [22:14:48]Waiting for new connection... [22:14:48] Sock 7.Parse request [22:14:48]Sock 7.Check first char [22:14:48]Sock 7.First char is OK [22:14:48]request: POST /json_proto HTTP/1.0 [22:14:48]Method: POST [22:14:48]URL: /json_proto [22:14:48]Method is POST - this is cgi request [22:14:48]url: /json_proto [22:14:48]query_string will be loaded in cgi processing [22:14:48]execute_cgi json_proto POST (null) [22:14:48]execute_cgi path=json_proto method=POST [22:14:48]POST find Content-Length [22:14:48]Host: 172.17.45.67:8080 [22:14:48]Content-Length: 792 [22:14:48]Content-Type: application/json [22:14:48] [22:14:48]POST finish read [22:14:48]Found Content-Length = 792 [22:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:48]execute_script... [22:14:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99761", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:48]POST & json_proto [22:14:48]process_json_proto [22:14:48]json parsed OK: [22:14:48]protocol is kg_v1.0 [22:14:48]action value=close_receipt [22:14:48]process_action close_receipt [22:14:48]cmd_close_receipt [22:14:48]MH_GetDate [22:14:48]Write to MH i2c: F0 00 00 5E 28 75 [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: F0 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: F0 09 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: F0 09 00 5E 28 00 DA 66 C6 66 5F 7F 2B 66 59 [22:14:48]GetLastDocTimeStamp 1724278427 [22:14:48]current date 1724278490 [22:14:48]FM_GetShiftState [22:14:48]SAM_PROTO_GetShiftState [22:14:48]wFMCommunicate request_size=4 [22:14:48]MH_SAM_APDU [22:14:48]CAPDU: 80 13 01 00 [22:14:48]Write to MH i2c: E2 08 00 5F 28 80 13 01 00 00 00 00 00 04 [22:14:48]Write i2c OK [22:14:48]MH_I2C_Read... [22:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:48]Read from MH i2c: E2 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: E2 0E 00 [22:14:48]MH_I2C_Read... [22:14:48]Read from MH i2c: E2 0E 00 5F 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 84 [22:14:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:14:48]wFMCommunicate OK [22:14:48]SAM_PROTO_GetShiftState done [22:14:48]FM_GetShiftState done [22:14:48]opened in 1724200467 [22:14:48]opened+sec_in_day 1724286867 [22:14:48]quantity*price = 0 [22:14:48]sum+1 = 1 [22:14:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 427 21.08.2024 22:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Талоны: Топливная Карта 99761 ФМ: 0000000000871776 ФД: 140410 ФПД: 129051463455792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221450&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140410&fm=129051463455792&tin=02508201610067®Number=0000000000092569&sum=0 [22:14:50]StoreToDocumentArchive [22:14:50]shift 454 fd 140410 [22:14:50]save to /storage/0454/doc_00140410 [22:14:50]save last doc name /storage/0454/doc_00140410 to /storage/kkm_last_doc_name [22:14:50]save OK [22:14:50]Clear old archive folders... [22:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:14:50]tlvbuf is 00C715B0 [22:14:50]SAM_PROTO_ClearQueue [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 09 00 00 [22:14:50]Write to MH i2c: E2 08 00 6C 28 80 09 00 00 00 00 00 00 06 [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [22:14:50]RAPDU: 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_ClearQueue done [22:14:50]KKMCreateOFDPacket [22:14:50]OFDProtocolAddRootSTLVToBuf [22:14:50]FM_MakeSignedData [22:14:50]FM_MakeSignedData [22:14:50]SAM_PROTO_SignData [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 0D 01 02 [22:14:50]Write to MH i2c: E2 08 00 6D 28 80 0D 01 02 00 00 00 00 0E [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 6D 28 00 90 00 09 [22:14:50]RAPDU: 90 00 [22:14:50]wFMCommunicate OK [22:14:50]wFMCommunicate request_size=255 [22:14:50]MH_SAM_APDU [22:14: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 B0 36 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 AB 01 00 00 F4 03 04 00 DA 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 24 02 00 35 04 06 00 75 [22:14:50]Write to MH i2c: E2 02 01 6E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 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 AB 01 00 00 F4 03 04 00 DA 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 24 02 00 35 04 06 00 75 00 00 FC [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 6E 28 00 90 00 0A [22:14:50]RAPDU: 90 00 [22:14:50]wFMCommunicate OK [22:14:50]wFMCommunicate request_size=10 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 0D 02 02 05 5F 22 A3 14 30 [22:14:50]Write to MH i2c: E2 0D 00 6F 28 80 0D 02 02 05 00 5F 22 A3 14 30 00 00 83 [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 03 00 6F 28 00 90 00 0B [22:14:50]RAPDU: 90 00 [22:14:50]wFMCommunicate OK [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 0D 03 02 [22:14:50]Write to MH i2c: E2 08 00 70 28 80 0D 03 02 00 00 00 00 13 [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0B 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 0B 00 70 28 00 E8 5E 36 35 74 49 C4 7F 90 00 C5 [22:14:50]RAPDU: E8 5E 36 35 74 49 C4 7F 90 00 [22:14:50]wFMCommunicate OK [22:14:50]SAM_PROTO_SignData done [22:14:50]FM_MakeSignedData done [22:14:50]CreateOFDProtocolMessage [22:14:50]wFMCommunicate request_size=4 [22:14:50]MH_SAM_APDU [22:14:50]CAPDU: 80 11 00 00 [22:14:50]Write to MH i2c: E2 08 00 71 28 80 11 00 00 00 00 00 00 13 [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:50]Read from MH i2c: E2 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 17 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: E2 17 00 71 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6A [22:14:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:14:50]wFMCommunicate OK [22:14:50]CreateOFDProtocolMessage done [22:14:50]OFDSenderStorePacket 140410 [22:14:50]StoreOFDPacket docnum=140410 [22:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 08 07 01 35 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 B0 36 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 AB 01 00 00 F4 03 04 00 DA 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 24 02 00 35 04 06 00 75 5F 22 A3 14 30 E8 5E 36 35 74 49 C4 7F [22:14:50]CheckFolder [22:14:50]dirname=/storage/ofd_packets [22:14:50]CheckFolder done [22:14:50]ProducePacketName [22:14:50]name=ofd_packets/00140410 [22:14:50]NVStorageSaveData ofd_packets/00140410 [22:14:50]File name is /storage/ofd_packets/00140410 [22:14:50]Write 301 bytes [22:14:50]NVStorageSaveData done [22:14:50]OFDSenderStorePacket done [22:14:50]KKMCreateOFDPacket done [22:14:50]NVStorageSaveData kkm_last_timestamp [22:14:50]File name is /storage/kkm_last_timestamp [22:14:50]Write 4 bytes [22:14:50]NVStorageSaveData done [22:14:50]ExternCall_PrintAddStr [22:14:50]wPrintStart [22:14:50]Write to MH i2c: 01 00 00 72 28 9A [22:14:50]Write i2c OK [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: 01 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: 01 07 00 [22:14:50]MH_I2C_Read... [22:14:50]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 FF 0F AF [22:14:50]RasterBufferAndPrint [22:14:50]line Счет N : (1)594268 [22:14:50]line ИНН: 02508201610067 [22:14:50]line Контрольно-Кассовый Чек [22:14:50]line ПРОДАЖА [22:14:50]line ТРК (МРК, ГНК) : 42 [22:14:50]line Товар: 2710124130 [22:14:50]line Аи-92-К-5 [22:14:50]line 14.000 * 0.00 [22:14:50]line = 0.00 [22:14:50]line НДС 12% НСП 1% [22:14:50]line > о реализуемом товаре [22:14:50]line ИТОГО: 0.00 [22:14:50]line НСП 1% : 0.00 [22:14:50]line НДС 12% : 0.00 [22:14:50]line Наличными: 0.00 [22:14:50]line Безнал.: 0.00 [22:14:50]line Место: АЗС № 136 "Партнер Нефть" [22:14:50]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:14:50]line СНО: Общий режим [22:14:50]line Чек 427 21.08.2024 22:14 [22:14:50]line Смена: 454 ФФД: 1.0 [22:14:50]line ЗНМ: 0300000067 [22:14:50]line РНМ: 0000000000092569 [22:14:50]line Версия ККМ: 001 [22:14:50]line Талоны: Топливная Карта [22:14:50]line 99761 [22:14:50]line ФМ: 0000000000871776 [22:14:50]line ФД: 140410 [22:14:50]line ФПД: 129051463455792 [22:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221450&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140410&fm=129051463455792&tin=02508201610067®Number=0000000000092569&sum=0 [22:14:50]written 0, free lines is 4095 [22:14:50]OFD Sender: Processing packet 140410 [packets to send 137, broken 136] [22:14:50]ProducePacketName [22:14:50]name=ofd_packets/00140410 [22:14:50]OFD Sender: To server: pG, [22:14:50]CommunicateWithHost lk.salyk.kg:30040 [22:14:50]ConnectInit lk.salyk.kg [22:14:50]Connected sock=10 [22:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 B1 08 07 01 35 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 B0 36 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 AB 01 00 00 F4 03 04 00 DA 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 24 02 00 35 04 06 00 75 5F 22 A3 14 30 E8 5E 36 35 74 49 C4 7F [22:14: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 37 36 4F 00 00 00 5B 12 47 00 38 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7A 24 02 00 F4 03 04 00 69 0D C6 66 B6 04 01 00 00 02 DB 8C 33 74 44 E7 35 [22:14:51]CommunicateWithHost err = 0 [22:14:51]CheckOFDResponse [22:14:51]1017 (14) - 77093643461234 [22:14:51]1041 (16) - 0000000000871776 [22:14:51]1040 (4) - 140410 [22:14:51]1012 (4) - 21.08.2024 15:53 [22:14:51]1206 (1) - 0 [22:14:51]OFD Sender: Remove packet 140410 [22:14:51]ProducePacketName [22:14:51]name=ofd_packets/00140410 [22:14:51]NVStorageDeleteData [22:14:51]Write to MH i2c: 01 00 00 9C 28 C4 [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: 01 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: 01 07 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 EF 0C C6 [22:14:51]RasterBufferAndPrint [22:14:51]line [22:14:51]line [22:14:51]line [22:14:51]line [22:14:51]line [22:14:51]written 0, free lines is 3320 [22:14:51]MH_Cut [22:14:51]Write to MH i2c: D1 01 00 A3 28 01 9D [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: D1 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: D1 01 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: D1 01 00 A3 28 00 9C [22:14:51]Write to MH i2c: 01 00 00 A4 28 CC [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]OFD Sender: No OFD packet to send [22:14:51]*** Cut start [22:14:51]*** Partial cut [22:14:51]*** CUTSNS_PIN = 1 [22:14:51]*** CUTSNS_PIN = 0 [22:14:52]*** Brake cut motor [22:14:52]Read from MH i2c: 01 [22:14:52]MH_I2C_Read... [22:14:52]*** Stop cut motor [22:14:52]*** Cut end [22:14:52]Read from MH i2c: 01 07 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: 01 07 00 A4 28 00 00 00 00 00 FF 0F E1 [22:14:52]process_action close_receipt done [22:14:52]requested_data is exist [22:14:52]produce_requested_data [22:14:52]requested_item fm.sn is exist - process it [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 11 00 00 [22:14:52]Write to MH i2c: E2 08 00 A5 28 80 11 00 00 00 00 00 00 47 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 17 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 17 00 A5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 9E [22:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:14:52]wFMCommunicate OK [22:14:52]requested_item fd.num is exist - process it [22:14:52]SAM_PROTO_GetFieldsCounters [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 13 00 00 [22:14:52]Write to MH i2c: E2 08 00 A6 28 80 13 00 00 00 00 00 00 4A [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 62 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 62 00 A6 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 24 02 00 0E 04 04 00 C6 01 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 E0 [22:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7A 24 02 00 0E 04 04 00 C6 01 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 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_GetFieldsCounters done [22:14:52]requested_item shift.num is exist - process it [22:14:52]requested_item shift.opened is exist - process it [22:14:52]req_shift_opened [22:14:52]FM_GetShiftState [22:14:52]SAM_PROTO_GetShiftState [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 13 01 00 [22:14:52]Write to MH i2c: E2 08 00 A7 28 80 13 01 00 00 00 00 00 4C [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0E 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0E 00 A7 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CC [22:14:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_GetShiftState done [22:14:52]FM_GetShiftState done [22:14:52]req_shift_opened done [22:14:52]requested_item shift.open_date is exist - process it [22:14:52]req_shift_open_date [22:14:52]req_shift_open_date done [22:14:52]produce_requested_data done [22:14:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140410,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:14:52]process_action_free close_receipt [22:14:52]json_value_free [22:14:52]json_value_free done [22:14:52]process_json_proto returns [22:14:52]Send response to host [22:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140410,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:14:52]free response buf [22:14:52]execute_script done [22:14:52]execute_script returns [22:14:52]free content buf [22:14:52]Sock 7.Close socket [22:14:52]Sock 7.Thread stoped [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]accept exits with 9 [22:15:16]New connection [22:15:16]New thread 3067612516 created [22:15:16]Thread 3067469156 joined [22:15:16]Waiting for new connection... [22:15:16] Sock 9.Parse request [22:15:16]Sock 9.Check first char [22:15:16]Sock 9.First char is OK [22:15:16]request: POST /json_proto HTTP/1.0 [22:15:16]Method: POST [22:15:16]URL: /json_proto [22:15:16]Method is POST - this is cgi request [22:15:16]url: /json_proto [22:15:16]query_string will be loaded in cgi processing [22:15:16]execute_cgi json_proto POST (null) [22:15:16]execute_cgi path=json_proto method=POST [22:15:16]POST find Content-Length [22:15:16]Host: 172.17.45.67:8080 [22:15:16]Content-Length: 673 [22:15:16]Content-Type: application/json [22:15:16] [22:15:16]POST finish read [22:15:16]Found Content-Length = 673 [22:15:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.010, "sum" : 68.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 68.00, "total" : 68.00, "payments": [ { "type": 0, "sum" : 68.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:16]execute_script... [22:15: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)594269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 1.010, "sum" : 68.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 68.00, "total" : 68.00, "payments": [ { "type": 0, "sum" : 68.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:16]POST & json_proto [22:15:16]process_json_proto [22:15:16]json parsed OK: [22:15:16]protocol is kg_v1.0 [22:15:16]action value=close_receipt [22:15:16]process_action close_receipt [22:15:16]cmd_close_receipt [22:15:16]MH_GetDate [22:15:16]Write to MH i2c: F0 00 00 A8 28 BF [22:15:16]Write i2c OK [22:15:16]MH_I2C_Read... [22:15:16]Read from MH i2c: F0 [22:15:16]MH_I2C_Read... [22:15:16]Read from MH i2c: F0 09 00 [22:15:16]MH_I2C_Read... [22:15:16]Read from MH i2c: F0 09 00 A8 28 00 F5 66 C6 66 5F 7F 2B 66 BE [22:15:16]GetLastDocTimeStamp 1724278490 [22:15:16]current date 1724278517 [22:15:16]FM_GetShiftState [22:15:16]SAM_PROTO_GetShiftState [22:15:16]wFMCommunicate request_size=4 [22:15:16]MH_SAM_APDU [22:15:16]CAPDU: 80 13 01 00 [22:15:16]Write to MH i2c: E2 08 00 A9 28 80 13 01 00 00 00 00 00 4E [22:15:16]Write i2c OK [22:15:16]MH_I2C_Read... [22:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:16]Read from MH i2c: E2 [22:15:16]MH_I2C_Read... [22:15:16]Read from MH i2c: E2 0E 00 [22:15:16]MH_I2C_Read... [22:15:16]Read from MH i2c: E2 0E 00 A9 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 CE [22:15:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:15:16]wFMCommunicate OK [22:15:16]SAM_PROTO_GetShiftState done [22:15:16]FM_GetShiftState done [22:15:16]opened in 1724200467 [22:15:16]opened+sec_in_day 1724286867 [22:15:16]quantity*price = 6847 [22:15:16]sum+1 = 6849 [22:15:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 68.00 Внесено: 68.00 СДАЧА: 0.00 НСП 1% : 0.61 НДС 12% : 7.27 Наличными: 68.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 428 21.08.2024 22:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140411 ФПД: 75930067644443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140411&fm=75930067644443&tin=02508201610067®Number=0000000000092569&sum=6800 [22:15:17]StoreToDocumentArchive [22:15:17]shift 454 fd 140411 [22:15:17]save to /storage/0454/doc_00140411 [22:15:17]save last doc name /storage/0454/doc_00140411 to /storage/kkm_last_doc_name [22:15:17]save OK [22:15:17]Clear old archive folders... [22:15:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:17]tlvbuf is 00C7EC40 [22:15:17]SAM_PROTO_ClearQueue [22:15:17]wFMCommunicate request_size=4 [22:15:17]MH_SAM_APDU [22:15:17]CAPDU: 80 09 00 00 [22:15:17]Write to MH i2c: E2 08 00 B6 28 80 09 00 00 00 00 00 00 50 [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [22:15:17]RAPDU: 90 00 [22:15:17]wFMCommunicate OK [22:15:17]SAM_PROTO_ClearQueue done [22:15:17]KKMCreateOFDPacket [22:15:17]OFDProtocolAddRootSTLVToBuf [22:15:17]FM_MakeSignedData [22:15:17]FM_MakeSignedData [22:15:17]SAM_PROTO_SignData [22:15:17]wFMCommunicate request_size=4 [22:15:17]MH_SAM_APDU [22:15:17]CAPDU: 80 0D 01 02 [22:15:17]Write to MH i2c: E2 08 00 B7 28 80 0D 01 02 00 00 00 00 58 [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [22:15:17]RAPDU: 90 00 [22:15:17]wFMCommunicate OK [22:15:17]wFMCommunicate request_size=255 [22:15:17]MH_SAM_APDU [22:15: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 F2 03 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C0 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 02 00 00 00 00 07 04 06 00 90 1A 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 01 00 00 F4 03 04 00 F5 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 24 02 00 35 04 06 00 45 [22:15:17]Write to MH i2c: E2 02 01 B8 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C0 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 02 00 00 00 00 07 04 06 00 90 1A 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 01 00 00 F4 03 04 00 F5 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 24 02 00 35 04 06 00 45 00 00 1C [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 B8 28 00 90 00 54 [22:15:17]RAPDU: 90 00 [22:15:17]wFMCommunicate OK [22:15:17]wFMCommunicate request_size=10 [22:15:17]MH_SAM_APDU [22:15:17]CAPDU: 80 0D 02 02 05 0E D8 B5 B0 1B [22:15:17]Write to MH i2c: E2 0D 00 B9 28 80 0D 02 02 05 00 0E D8 B5 B0 1B 00 00 CB [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 03 00 B9 28 00 90 00 55 [22:15:17]RAPDU: 90 00 [22:15:17]wFMCommunicate OK [22:15:17]wFMCommunicate request_size=4 [22:15:17]MH_SAM_APDU [22:15:17]CAPDU: 80 0D 03 02 [22:15:17]Write to MH i2c: E2 08 00 BA 28 80 0D 03 02 00 00 00 00 5D [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 0B 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 0B 00 BA 28 00 97 4F 11 E2 46 D9 EC A6 90 00 E8 [22:15:17]RAPDU: 97 4F 11 E2 46 D9 EC A6 90 00 [22:15:17]wFMCommunicate OK [22:15:17]SAM_PROTO_SignData done [22:15:17]FM_MakeSignedData done [22:15:17]CreateOFDProtocolMessage [22:15:17]wFMCommunicate request_size=4 [22:15:17]MH_SAM_APDU [22:15:17]CAPDU: 80 11 00 00 [22:15:17]Write to MH i2c: E2 08 00 BB 28 80 11 00 00 00 00 00 00 5D [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:17]Read from MH i2c: E2 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 17 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: E2 17 00 BB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [22:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:17]wFMCommunicate OK [22:15:17]CreateOFDProtocolMessage done [22:15:17]OFDSenderStorePacket 140411 [22:15:17]StoreOFDPacket docnum=140411 [22:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 21 C4 07 01 6E 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 F2 03 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C0 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 02 00 00 00 00 07 04 06 00 90 1A 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 01 00 00 F4 03 04 00 F5 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 24 02 00 35 04 06 00 45 0E D8 B5 B0 1B 97 4F 11 E2 46 D9 EC A6 [22:15:17]CheckFolder [22:15:17]dirname=/storage/ofd_packets [22:15:17]CheckFolder done [22:15:17]ProducePacketName [22:15:17]name=ofd_packets/00140411 [22:15:17]NVStorageSaveData ofd_packets/00140411 [22:15:17]File name is /storage/ofd_packets/00140411 [22:15:17]Write 301 bytes [22:15:17]NVStorageSaveData done [22:15:17]OFDSenderStorePacket done [22:15:17]KKMCreateOFDPacket done [22:15:17]NVStorageSaveData kkm_last_timestamp [22:15:17]File name is /storage/kkm_last_timestamp [22:15:17]Write 4 bytes [22:15:17]NVStorageSaveData done [22:15:17]ExternCall_PrintAddStr [22:15:17]wPrintStart [22:15:17]Write to MH i2c: 01 00 00 BC 28 E4 [22:15:17]Write i2c OK [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: 01 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: 01 07 00 [22:15:17]MH_I2C_Read... [22:15:17]Read from MH i2c: 01 07 00 BC 28 00 00 00 00 00 FF 0F F9 [22:15:17]RasterBufferAndPrint [22:15:17]line Счет N : (1)594269 [22:15:17]line ИНН: 02508201610067 [22:15:17]line Контрольно-Кассовый Чек [22:15:17]line ПРОДАЖА [22:15:17]line ТРК (МРК, ГНК) : 52 [22:15:17]line Товар: 2710124130 [22:15:17]line Аи-92-К-5 [22:15:17]line 1.010 * 67.80 [22:15:17]line = 68.48 [22:15:17]line НДС 12% НСП 1% [22:15:17]line > о реализуемом товаре [22:15:17]line ОКРУГЛЕНИЕ: -0.48 [22:15:17]line ИТОГО: 68.00 [22:15:17]line Внесено: 68.00 [22:15:17]line СДАЧА: 0.00 [22:15:17]line НСП 1% : 0.61 [22:15:17]line НДС 12% : 7.27 [22:15:17]line Наличными: 68.00 [22:15:17]line Безнал.: 0.00 [22:15:17]line Место: АЗС № 136 "Партнер Нефть" [22:15:17]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:15:17]line СНО: Общий режим [22:15:17]line Чек 428 21.08.2024 22:15 [22:15:17]line Смена: 454 ФФД: 1.0 [22:15:17]line ЗНМ: 0300000067 [22:15:17]line РНМ: 0000000000092569 [22:15:17]line Версия ККМ: 001 [22:15:17]line ФМ: 0000000000871776 [22:15:17]line ФД: 140411 [22:15:17]line ФПД: 75930067644443 [22:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221517&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140411&fm=75930067644443&tin=02508201610067®Number=0000000000092569&sum=6800 [22:15:18]written 0, free lines is 4095 [22:15:18]OFD Sender: Processing packet 140411 [packets to send 137, broken 136] [22:15:18]ProducePacketName [22:15:18]name=ofd_packets/00140411 [22:15:18]OFD Sender: To server: pG, [22:15:18]CommunicateWithHost lk.salyk.kg:30040 [22:15:18]ConnectInit lk.salyk.kg [22:15:18]Connected sock=10 [22:15: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 37 36 0F 01 00 00 21 C4 07 01 6E 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 F2 03 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C0 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 02 00 00 00 00 07 04 06 00 90 1A 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 01 00 00 F4 03 04 00 F5 66 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7B 24 02 00 35 04 06 00 45 0E D8 B5 B0 1B 97 4F 11 E2 46 D9 EC A6 [22:15: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 37 36 4F 00 00 00 DC 24 47 00 F8 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 37 36 10 04 04 00 7B 24 02 00 F4 03 04 00 85 0D C6 66 B6 04 01 00 00 3E 83 A4 39 3D 3D A8 01 [22:15:18]CommunicateWithHost err = 0 [22:15:18]CheckOFDResponse [22:15:18]1017 (14) - 77093643461234 [22:15:18]1041 (16) - 0000000000871776 [22:15:18]1040 (4) - 140411 [22:15:18]1012 (4) - 21.08.2024 15:53 [22:15:18]1206 (1) - 0 [22:15:18]OFD Sender: Remove packet 140411 [22:15:18]ProducePacketName [22:15:18]name=ofd_packets/00140411 [22:15:18]NVStorageDeleteData [22:15:18]Write to MH i2c: 01 00 00 E7 28 0F [22:15:18]Write i2c OK [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: 01 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: 01 07 00 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: 01 07 00 E7 28 00 00 00 00 00 CF 0C F1 [22:15:18]RasterBufferAndPrint [22:15:18]line [22:15:18]line [22:15:18]line [22:15:18]line [22:15:18]line [22:15:18]written 0, free lines is 3286 [22:15:18]MH_Cut [22:15:18]Write to MH i2c: D1 01 00 EE 28 01 E8 [22:15:18]Write i2c OK [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: D1 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: D1 01 00 [22:15:18]MH_I2C_Read... [22:15:18]Read from MH i2c: D1 01 00 EE 28 00 E7 [22:15:18]Write to MH i2c: 01 00 00 EF 28 17 [22:15:18]Write i2c OK [22:15:18]MH_I2C_Read... [22:15:19]OFD Sender: No OFD packet to send [22:15:19]*** Cut start [22:15:19]*** Partial cut [22:15:19]*** CUTSNS_PIN = 1 [22:15:19]*** CUTSNS_PIN = 0 [22:15:19]*** Brake cut motor [22:15:20]Read from MH i2c: 01 [22:15:20]MH_I2C_Read... [22:15:20]*** Stop cut motor [22:15:20]*** Cut end [22:15:20]Read from MH i2c: 01 07 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 EF 28 00 00 00 00 00 FF 0F 2C [22:15:20]process_action close_receipt done [22:15:20]requested_data is exist [22:15:20]produce_requested_data [22:15:20]requested_item fm.sn is exist - process it [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 11 00 00 [22:15:20]Write to MH i2c: E2 08 00 F0 28 80 11 00 00 00 00 00 00 92 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 17 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 17 00 F0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E9 [22:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:20]wFMCommunicate OK [22:15:20]requested_item fd.num is exist - process it [22:15:20]SAM_PROTO_GetFieldsCounters [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 13 00 00 [22:15:20]Write to MH i2c: E2 08 00 F1 28 80 13 00 00 00 00 00 00 95 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 62 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 62 00 F1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 24 02 00 0E 04 04 00 C6 01 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 2F [22:15: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7B 24 02 00 0E 04 04 00 C6 01 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 [22:15:20]wFMCommunicate OK [22:15:20]SAM_PROTO_GetFieldsCounters done [22:15:20]requested_item shift.num is exist - process it [22:15:20]requested_item shift.opened is exist - process it [22:15:20]req_shift_opened [22:15:20]FM_GetShiftState [22:15:20]SAM_PROTO_GetShiftState [22:15:20]wFMCommunicate request_size=4 [22:15:20]MH_SAM_APDU [22:15:20]CAPDU: 80 13 01 00 [22:15:20]Write to MH i2c: E2 08 00 F2 28 80 13 01 00 00 00 00 00 97 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:20]Read from MH i2c: E2 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 0E 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: E2 0E 00 F2 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 17 [22:15:20]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:15:20]wFMCommunicate OK [22:15:20]SAM_PROTO_GetShiftState done [22:15:20]FM_GetShiftState done [22:15:20]req_shift_opened done [22:15:20]requested_item shift.open_date is exist - process it [22:15:20]req_shift_open_date [22:15:20]req_shift_open_date done [22:15:20]produce_requested_data done [22:15:20]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140411,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:15:20]process_action_free close_receipt [22:15:20]json_value_free [22:15:20]json_value_free done [22:15:20]process_json_proto returns [22:15:20]Send response to host [22:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140411,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:15:20]free response buf [22:15:20]execute_script done [22:15:20]execute_script returns [22:15:20]free content buf [22:15:20]Sock 9.Close socket [22:15:20]Sock 9.Thread stoped [22:15:20]int [22:15:20]Write to MH i2c: 01 00 00 F3 28 1B [22:15:20]*** FLAG_PRN_KEY set [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 F3 28 00 08 00 00 00 FF 0F 38 [22:15:20]state=0 [22:15:20]Key pressed [22:15:20]Feed [22:15:20]Write to MH i2c: D8 00 00 F4 28 F3 [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: D8 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: D8 01 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: D8 01 00 F4 28 00 F4 [22:15:20]int [22:15:20]Write to MH i2c: 01 00 00 F5 28 1D [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 F5 28 00 48 00 00 00 3C 00 A8 [22:15:20]state=2 [22:15:20]Key pressed [22:15:20]int [22:15:20]Write to MH i2c: 01 00 00 F6 28 1E [22:15:20]*** FLAG_PRN_KEY reset [22:15:20]Write i2c OK [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 [22:15:20]MH_I2C_Read... [22:15:20]Read from MH i2c: 01 07 00 F6 28 00 00 00 00 00 F8 0F 2C [22:15:20]state=2 [22:15:20]Stop feed [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:38]accept exits with 7 [22:15:38]New connection [22:15:38]New thread 3067469156 created [22:15:38]Thread 3067612516 joined [22:15:38]Waiting for new connection... [22:15:38] Sock 7.Parse request [22:15:38]Sock 7.Check first char [22:15:38]Sock 7.First char is OK [22:15:38]request: POST /json_proto HTTP/1.0 [22:15:38]Method: POST [22:15:38]URL: /json_proto [22:15:38]Method is POST - this is cgi request [22:15:38]url: /json_proto [22:15:38]query_string will be loaded in cgi processing [22:15:38]execute_cgi json_proto POST (null) [22:15:38]execute_cgi path=json_proto method=POST [22:15:38]POST find Content-Length [22:15:38]Host: 172.17.45.67:8080 [22:15:38]Content-Length: 677 [22:15:38]Content-Type: application/json [22:15:38] [22:15:38]POST finish read [22:15:38]Found Content-Length = 677 [22:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:38]execute_script... [22:15: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)594270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:38]POST & json_proto [22:15:38]process_json_proto [22:15:38]json parsed OK: [22:15:38]protocol is kg_v1.0 [22:15:38]action value=close_receipt [22:15:38]process_action close_receipt [22:15:38]cmd_close_receipt [22:15:38]MH_GetDate [22:15:38]Write to MH i2c: F0 00 00 F7 28 0E [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 09 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 09 00 F7 28 00 0C 67 C6 66 5F 7F 2B 66 25 [22:15:38]GetLastDocTimeStamp 1724278517 [22:15:38]current date 1724278540 [22:15:38]FM_GetShiftState [22:15:38]SAM_PROTO_GetShiftState [22:15:38]wFMCommunicate request_size=4 [22:15:38]MH_SAM_APDU [22:15:38]CAPDU: 80 13 01 00 [22:15:38]Write to MH i2c: E2 08 00 F8 28 80 13 01 00 00 00 00 00 9D [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:38]Read from MH i2c: E2 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0E 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0E 00 F8 28 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 1D [22:15:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:15:38]wFMCommunicate OK [22:15:38]SAM_PROTO_GetShiftState done [22:15:38]FM_GetShiftState done [22:15:38]opened in 1724200467 [22:15:38]opened+sec_in_day 1724286867 [22:15:38]quantity*price = 50036 [22:15:38]sum+1 = 50037 [22:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 429 21.08.2024 22:15 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140412 ФПД: 184810034188788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221540&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140412&fm=184810034188788&tin=02508201610067®Number=0000000000092569&sum=50000 [22:15:40]StoreToDocumentArchive [22:15:40]shift 454 fd 140412 [22:15:40]save to /storage/0454/doc_00140412 [22:15:40]save last doc name /storage/0454/doc_00140412 to /storage/kkm_last_doc_name [22:15:40]save OK [22:15:40]Clear old archive folders... [22:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:40]tlvbuf is 00C6EE30 [22:15:40]SAM_PROTO_ClearQueue [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 09 00 00 [22:15:40]Write to MH i2c: E2 08 00 05 29 80 09 00 00 00 00 00 00 A0 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 05 29 00 90 00 A2 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_ClearQueue done [22:15:40]KKMCreateOFDPacket [22:15:40]OFDProtocolAddRootSTLVToBuf [22:15:40]FM_MakeSignedData [22:15:40]FM_MakeSignedData [22:15:40]SAM_PROTO_SignData [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 01 02 [22:15:40]Write to MH i2c: E2 08 00 06 29 80 0D 01 02 00 00 00 00 A8 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 06 29 00 90 00 A3 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=255 [22:15:40]MH_SAM_APDU [22:15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 0C 67 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 24 02 00 35 04 06 00 A8 [22:15:40]Write to MH i2c: E2 02 01 07 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 0C 67 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 24 02 00 35 04 06 00 A8 00 00 8F [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 07 29 00 90 00 A4 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=10 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 02 02 05 15 70 70 51 F4 [22:15:40]Write to MH i2c: E2 0D 00 08 29 80 0D 02 02 05 00 15 70 70 51 F4 00 00 EF [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 08 29 00 90 00 A5 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 03 02 [22:15:40]Write to MH i2c: E2 08 00 09 29 80 0D 03 02 00 00 00 00 AD [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0B 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0B 00 09 29 00 D5 96 01 D6 4C CA FC C1 90 00 C3 [22:15:40]RAPDU: D5 96 01 D6 4C CA FC C1 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_SignData done [22:15:40]FM_MakeSignedData done [22:15:40]CreateOFDProtocolMessage [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 11 00 00 [22:15:40]Write to MH i2c: E2 08 00 0A 29 80 11 00 00 00 00 00 00 AD [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 0A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 04 [22:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:40]wFMCommunicate OK [22:15:40]CreateOFDProtocolMessage done [22:15:40]OFDSenderStorePacket 140412 [22:15:40]StoreOFDPacket docnum=140412 [22:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A5 F2 07 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 0C 67 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 24 02 00 35 04 06 00 A8 15 70 70 51 F4 D5 96 01 D6 4C CA FC C1 [22:15:40]CheckFolder [22:15:40]dirname=/storage/ofd_packets [22:15:40]CheckFolder done [22:15:40]ProducePacketName [22:15:40]name=ofd_packets/00140412 [22:15:40]NVStorageSaveData ofd_packets/00140412 [22:15:40]File name is /storage/ofd_packets/00140412 [22:15:40]Write 301 bytes [22:15:40]NVStorageSaveData done [22:15:40]OFDSenderStorePacket done [22:15:40]KKMCreateOFDPacket done [22:15:40]NVStorageSaveData kkm_last_timestamp [22:15:40]File name is /storage/kkm_last_timestamp [22:15:40]Write 4 bytes [22:15:40]NVStorageSaveData done [22:15:40]ExternCall_PrintAddStr [22:15:40]wPrintStart [22:15:40]Write to MH i2c: 01 00 00 0B 29 34 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 07 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 07 00 0B 29 00 00 00 00 00 FF 0F 49 [22:15:40]RasterBufferAndPrint [22:15:40]line Счет N : (1)594270 [22:15:40]line ИНН: 02508201610067 [22:15:40]line Контрольно-Кассовый Чек [22:15:40]line ПРОДАЖА [22:15:40]line ТРК (МРК, ГНК) : 42 [22:15:40]line Товар: 2710124130 [22:15:40]line Аи-92-К-5 [22:15:40]line 7.380 * 67.80 [22:15:40]line = 500.36 [22:15:40]line НДС 12% НСП 1% [22:15:40]line > о реализуемом товаре [22:15:40]line ОКРУГЛЕНИЕ: -0.36 [22:15:40]line ИТОГО: 500.00 [22:15:40]line Внесено: 500.00 [22:15:40]line СДАЧА: 0.00 [22:15:40]line НСП 1% : 4.43 [22:15:40]line НДС 12% : 53.14 [22:15:40]line Наличными: 500.00 [22:15:40]line Безнал.: 0.00 [22:15:40]line Место: АЗС № 136 "Партнер Нефть" [22:15:40]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:15:40]line СНО: Общий режим [22:15:40]line Чек 429 21.08.2024 22:15 [22:15:40]line Смена: 454 ФФД: 1.0 [22:15:40]line ЗНМ: 0300000067 [22:15:40]line РНМ: 0000000000092569 [22:15:40]line Версия ККМ: 001 [22:15:40]line ФМ: 0000000000871776 [22:15:40]line ФД: 140412 [22:15:40]line ФПД: 184810034188788 [22:15:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T221540&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140412&fm=184810034188788&tin=02508201610067®Number=0000000000092569&sum=50000 [22:15:40]written 0, free lines is 4095 [22:15:40]OFD Sender: Processing packet 140412 [packets to send 137, broken 136] [22:15:40]ProducePacketName [22:15:40]name=ofd_packets/00140412 [22:15:40]OFD Sender: To server: pG, [22:15:40]CommunicateWithHost lk.salyk.kg:30040 [22:15:40]ConnectInit lk.salyk.kg [22:15:41]Connected sock=10 [22:15: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 37 36 0F 01 00 00 A5 F2 07 01 91 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 0C 67 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7C 24 02 00 35 04 06 00 A8 15 70 70 51 F4 D5 96 01 D6 4C CA FC C1 [22:15:41]Write to MH i2c: 01 00 00 36 29 5F [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: 01 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: 01 07 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: 01 07 00 36 29 00 00 00 00 00 DE 0C 50 [22:15:41]RasterBufferAndPrint [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]written 0, free lines is 3300 [22:15:41]MH_Cut [22:15:41]Write to MH i2c: D1 01 00 3D 29 01 38 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 01 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 01 00 3D 29 00 37 [22:15:41]Write to MH i2c: 01 00 00 3E 29 67 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15: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 37 36 4F 00 00 00 19 B4 47 00 0E 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 37 36 10 04 04 00 7C 24 02 00 F4 03 04 00 9C 0D C6 66 B6 04 01 00 00 F3 87 B5 0A 5C 01 F2 BF [22:15:41]CommunicateWithHost err = 0 [22:15:41]CheckOFDResponse [22:15:41]1017 (14) - 77093643461234 [22:15:41]1041 (16) - 0000000000871776 [22:15:41]1040 (4) - 140412 [22:15:41]1012 (4) - 21.08.2024 15:54 [22:15:41]1206 (1) - 0 [22:15:41]OFD Sender: Remove packet 140412 [22:15:41]ProducePacketName [22:15:41]name=ofd_packets/00140412 [22:15:41]NVStorageDeleteData [22:15:41]OFD Sender: No OFD packet to send [22:15:42]*** Cut start [22:15:42]*** Partial cut [22:15:42]*** CUTSNS_PIN = 1 [22:15:42]*** CUTSNS_PIN = 0 [22:15:42]*** Brake cut motor [22:15:42]Read from MH i2c: 01 [22:15:42]MH_I2C_Read... [22:15:42]*** Stop cut motor [22:15:42]*** Cut end [22:15:42]Read from MH i2c: 01 07 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: 01 07 00 3E 29 00 00 00 00 00 FF 0F 7C [22:15:42]process_action close_receipt done [22:15:42]requested_data is exist [22:15:42]produce_requested_data [22:15:42]requested_item fm.sn is exist - process it [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 11 00 00 [22:15:42]Write to MH i2c: E2 08 00 3F 29 80 11 00 00 00 00 00 00 E2 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 17 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 17 00 3F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 39 [22:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:15:42]wFMCommunicate OK [22:15:42]requested_item fd.num is exist - process it [22:15:42]SAM_PROTO_GetFieldsCounters [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 13 00 00 [22:15:42]Write to MH i2c: E2 08 00 40 29 80 13 00 00 00 00 00 00 E5 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 62 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 62 00 40 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 24 02 00 0E 04 04 00 C6 01 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 83 [22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7C 24 02 00 0E 04 04 00 C6 01 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 [22:15:42]wFMCommunicate OK [22:15:42]SAM_PROTO_GetFieldsCounters done [22:15:42]requested_item shift.num is exist - process it [22:15:42]requested_item shift.opened is exist - process it [22:15:42]req_shift_opened [22:15:42]FM_GetShiftState [22:15:42]SAM_PROTO_GetShiftState [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 13 01 00 [22:15:42]Write to MH i2c: E2 08 00 41 29 80 13 01 00 00 00 00 00 E7 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 0E 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 0E 00 41 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 67 [22:15:42]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:15:42]wFMCommunicate OK [22:15:42]SAM_PROTO_GetShiftState done [22:15:42]FM_GetShiftState done [22:15:42]req_shift_opened done [22:15:42]requested_item shift.open_date is exist - process it [22:15:42]req_shift_open_date [22:15:42]req_shift_open_date done [22:15:42]produce_requested_data done [22:15:42]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140412,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:15:42]process_action_free close_receipt [22:15:42]json_value_free [22:15:42]json_value_free done [22:15:42]process_json_proto returns [22:15:42]Send response to host [22:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140412,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:15:42]free response buf [22:15:42]execute_script done [22:15:42]execute_script returns [22:15:42]free content buf [22:15:42]Sock 7.Close socket [22:15:42]Sock 7.Thread stoped [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:01]accept exits with 9 [22:22:01]New connection [22:22:01]New thread 3067612516 created [22:22:01]Thread 3067469156 joined [22:22:01]Waiting for new connection... [22:22:01] Sock 9.Parse request [22:22:01]Sock 9.Check first char [22:22:01]Sock 9.First char is OK [22:22:01]request: POST /json_proto HTTP/1.0 [22:22:01]Method: POST [22:22:01]URL: /json_proto [22:22:01]Method is POST - this is cgi request [22:22:01]url: /json_proto [22:22:01]query_string will be loaded in cgi processing [22:22:01]execute_cgi json_proto POST (null) [22:22:01]execute_cgi path=json_proto method=POST [22:22:01]POST find Content-Length [22:22:01]Host: 172.17.45.67:8080 [22:22:01]Content-Length: 803 [22:22:01]Content-Type: application/json [22:22:01] [22:22:01]POST finish read [22:22:01]Found Content-Length = 803 [22:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:01]execute_script... [22:22: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)594271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:01]POST & json_proto [22:22:01]process_json_proto [22:22:01]json parsed OK: [22:22:01]protocol is kg_v1.0 [22:22:01]action value=close_receipt [22:22:01]process_action close_receipt [22:22:01]cmd_close_receipt [22:22:01]MH_GetDate [22:22:01]Write to MH i2c: F0 00 00 42 29 5A [22:22:01]Write i2c OK [22:22:01]MH_I2C_Read... [22:22:01]Read from MH i2c: F0 [22:22:01]MH_I2C_Read... [22:22:01]Read from MH i2c: F0 09 00 [22:22:01]MH_I2C_Read... [22:22:01]Read from MH i2c: F0 09 00 42 29 00 8B 68 C6 66 5F 7F 2B 66 F1 [22:22:01]GetLastDocTimeStamp 1724278540 [22:22:01]current date 1724278923 [22:22:01]FM_GetShiftState [22:22:01]SAM_PROTO_GetShiftState [22:22:01]wFMCommunicate request_size=4 [22:22:01]MH_SAM_APDU [22:22:01]CAPDU: 80 13 01 00 [22:22:01]Write to MH i2c: E2 08 00 43 29 80 13 01 00 00 00 00 00 E9 [22:22:01]Write i2c OK [22:22:01]MH_I2C_Read... [22:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:01]Read from MH i2c: E2 [22:22:01]MH_I2C_Read... [22:22:01]Read from MH i2c: E2 0E 00 [22:22:01]MH_I2C_Read... [22:22:01]Read from MH i2c: E2 0E 00 43 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 69 [22:22:01]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:22:01]wFMCommunicate OK [22:22:01]SAM_PROTO_GetShiftState done [22:22:01]FM_GetShiftState done [22:22:01]opened in 1724200467 [22:22:01]opened+sec_in_day 1724286867 [22:22:01]quantity*price = 100035 [22:22:01]sum+1 = 100036 [22:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 430 21.08.2024 22:22 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140413 ФПД: 4935595043331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140413&fm=4935595043331&tin=02508201610067®Number=0000000000092569&sum=100000 [22:22:02]StoreToDocumentArchive [22:22:02]shift 454 fd 140413 [22:22:02]save to /storage/0454/doc_00140413 [22:22:02]save last doc name /storage/0454/doc_00140413 to /storage/kkm_last_doc_name [22:22:02]save OK [22:22:02]Clear old archive folders... [22:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:22:02]tlvbuf is 00C27290 [22:22:02]SAM_PROTO_ClearQueue [22:22:02]wFMCommunicate request_size=4 [22:22:02]MH_SAM_APDU [22:22:02]CAPDU: 80 09 00 00 [22:22:02]Write to MH i2c: E2 08 00 50 29 80 09 00 00 00 00 00 00 EB [22:22:02]Write i2c OK [22:22:02]MH_I2C_Read... [22:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:02]Read from MH i2c: E2 [22:22:02]MH_I2C_Read... [22:22:02]Read from MH i2c: E2 03 00 [22:22:02]MH_I2C_Read... [22:22:02]Read from MH i2c: E2 03 00 50 29 00 90 00 ED [22:22:02]RAPDU: 90 00 [22:22:02]wFMCommunicate OK [22:22:02]SAM_PROTO_ClearQueue done [22:22:02]KKMCreateOFDPacket [22:22:02]OFDProtocolAddRootSTLVToBuf [22:22:02]FM_MakeSignedData [22:22:02]FM_MakeSignedData [22:22:02]SAM_PROTO_SignData [22:22:02]wFMCommunicate request_size=4 [22:22:02]MH_SAM_APDU [22:22:02]CAPDU: 80 0D 01 02 [22:22:02]Write to MH i2c: E2 08 00 51 29 80 0D 01 02 00 00 00 00 F3 [22:22:02]Write i2c OK [22:22:02]MH_I2C_Read... [22:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:02]Read from MH i2c: E2 [22:22:02]MH_I2C_Read... [22:22:02]Read from MH i2c: E2 03 00 [22:22:02]MH_I2C_Read... [22:22:02]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [22:22:02]RAPDU: 90 00 [22:22:02]wFMCommunicate OK [22:22:02]wFMCommunicate request_size=253 [22:22:02]MH_SAM_APDU [22:22:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8B 68 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 24 02 00 35 04 06 00 04 7D 28 63 AA 03 [22:22:02]Write to MH i2c: E2 00 01 52 29 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8B 68 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 24 02 00 35 04 06 00 04 7D 28 63 AA 03 00 00 5C [22:22:03]Write i2c OK [22:22:03]MH_I2C_Read... [22:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:03]Read from MH i2c: E2 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 03 00 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [22:22:03]RAPDU: 90 00 [22:22:03]wFMCommunicate OK [22:22:03]wFMCommunicate request_size=4 [22:22:03]MH_SAM_APDU [22:22:03]CAPDU: 80 0D 03 02 [22:22:03]Write to MH i2c: E2 08 00 53 29 80 0D 03 02 00 00 00 00 F7 [22:22:03]Write i2c OK [22:22:03]MH_I2C_Read... [22:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:03]Read from MH i2c: E2 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 0B 00 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 0B 00 53 29 00 B5 99 F4 60 92 1A 2B 97 90 00 08 [22:22:03]RAPDU: B5 99 F4 60 92 1A 2B 97 90 00 [22:22:03]wFMCommunicate OK [22:22:03]SAM_PROTO_SignData done [22:22:03]FM_MakeSignedData done [22:22:03]CreateOFDProtocolMessage [22:22:03]wFMCommunicate request_size=4 [22:22:03]MH_SAM_APDU [22:22:03]CAPDU: 80 11 00 00 [22:22:03]Write to MH i2c: E2 08 00 54 29 80 11 00 00 00 00 00 00 F7 [22:22:03]Write i2c OK [22:22:03]MH_I2C_Read... [22:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:03]Read from MH i2c: E2 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 17 00 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: E2 17 00 54 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4E [22:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:22:03]wFMCommunicate OK [22:22:03]CreateOFDProtocolMessage done [22:22:03]OFDSenderStorePacket 140413 [22:22:03]StoreOFDPacket docnum=140413 [22:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 D9 EC 00 01 FD C2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8B 68 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 24 02 00 35 04 06 00 04 7D 28 63 AA 03 B5 99 F4 60 92 1A 2B 97 [22:22:03]CheckFolder [22:22:03]dirname=/storage/ofd_packets [22:22:03]CheckFolder done [22:22:03]ProducePacketName [22:22:03]name=ofd_packets/00140413 [22:22:03]NVStorageSaveData ofd_packets/00140413 [22:22:03]File name is /storage/ofd_packets/00140413 [22:22:03]Write 294 bytes [22:22:03]NVStorageSaveData done [22:22:03]OFDSenderStorePacket done [22:22:03]KKMCreateOFDPacket done [22:22:03]NVStorageSaveData kkm_last_timestamp [22:22:03]File name is /storage/kkm_last_timestamp [22:22:03]Write 4 bytes [22:22:03]NVStorageSaveData done [22:22:03]ExternCall_PrintAddStr [22:22:03]wPrintStart [22:22:03]Write to MH i2c: 01 00 00 55 29 7E [22:22:03]Write i2c OK [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: 01 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: 01 07 00 [22:22:03]MH_I2C_Read... [22:22:03]Read from MH i2c: 01 07 00 55 29 00 00 00 00 00 FF 0F 93 [22:22:03]RasterBufferAndPrint [22:22:03]line Счет N : (1)594271 [22:22:03]line ИНН: 02508201610067 [22:22:03]line Контрольно-Кассовый Чек [22:22:03]line ПРОДАЖА [22:22:03]line ТРК (МРК, ГНК) : 43 [22:22:03]line Товар: 2710124130 [22:22:03]line SU-92 [22:22:03]line 14.540 * 68.80 [22:22:03]line = 1000.35 [22:22:03]line НДС 12% НСП 1% [22:22:03]line > о реализуемом товаре [22:22:03]line ОКРУГЛЕНИЕ: -0.35 [22:22:03]line ИТОГО: 1000.00 [22:22:03]line НСП 1% : 8.85 [22:22:03]line НДС 12% : 106.23 [22:22:03]line Наличными: 0.00 [22:22:03]line Безнал.: 1000.00 [22:22:03]line Место: АЗС № 136 "Партнер Нефть" [22:22:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:22:03]line СНО: Общий режим [22:22:03]line Чек 430 21.08.2024 22:22 [22:22:03]line Смена: 454 ФФД: 1.0 [22:22:03]line ЗНМ: 0300000067 [22:22:03]line РНМ: 0000000000092569 [22:22:03]line Версия ККМ: 001 [22:22:03]line Платежная система: O! деньги [22:22:03]line ФМ: 0000000000871776 [22:22:03]line ФД: 140413 [22:22:03]line ФПД: 4935595043331 [22:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222203&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140413&fm=4935595043331&tin=02508201610067®Number=0000000000092569&sum=100000 [22:22:03]OFD Sender: Processing packet 140413 [packets to send 137, broken 136] [22:22:03]ProducePacketName [22:22:03]name=ofd_packets/00140413 [22:22:03]OFD Sender: To server: pG, [22:22:03]CommunicateWithHost lk.salyk.kg:30040 [22:22:03]ConnectInit lk.salyk.kg [22:22:03]written 0, free lines is 4095 [22:22:03]Connected sock=10 [22:22: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 37 36 08 01 00 00 D9 EC 00 01 FD C2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 8B 68 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7D 24 02 00 35 04 06 00 04 7D 28 63 AA 03 B5 99 F4 60 92 1A 2B 97 [22:22: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 37 36 4F 00 00 00 31 78 47 00 31 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 37 36 10 04 04 00 7D 24 02 00 F4 03 04 00 1A 0F C6 66 B6 04 01 00 00 EB B0 57 F8 3E 1E D9 E2 [22:22:04]CommunicateWithHost err = 0 [22:22:04]CheckOFDResponse [22:22:04]1017 (14) - 77093643461234 [22:22:04]1041 (16) - 0000000000871776 [22:22:04]1040 (4) - 140413 [22:22:04]1012 (4) - 21.08.2024 16:00 [22:22:04]1206 (1) - 0 [22:22:04]OFD Sender: Remove packet 140413 [22:22:04]ProducePacketName [22:22:04]name=ofd_packets/00140413 [22:22:04]NVStorageDeleteData [22:22:04]Write to MH i2c: 01 00 00 80 29 A9 [22:22:04]Write i2c OK [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: 01 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: 01 07 00 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: 01 07 00 80 29 00 00 00 00 00 DC 0C 98 [22:22:04]RasterBufferAndPrint [22:22:04]line [22:22:04]line [22:22:04]line [22:22:04]line [22:22:04]line [22:22:04]written 0, free lines is 3298 [22:22:04]MH_Cut [22:22:04]Write to MH i2c: D1 01 00 87 29 01 82 [22:22:04]Write i2c OK [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: D1 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: D1 01 00 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: D1 01 00 87 29 00 81 [22:22:04]Write to MH i2c: 01 00 00 88 29 B1 [22:22:04]Write i2c OK [22:22:04]MH_I2C_Read... [22:22:04]OFD Sender: No OFD packet to send [22:22:04]*** Cut start [22:22:04]*** Partial cut [22:22:04]*** CUTSNS_PIN = 1 [22:22:04]*** CUTSNS_PIN = 0 [22:22:05]*** Brake cut motor [22:22:05]Read from MH i2c: 01 [22:22:05]MH_I2C_Read... [22:22:05]*** Stop cut motor [22:22:05]*** Cut end [22:22:05]Read from MH i2c: 01 07 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: 01 07 00 88 29 00 00 00 00 00 FF 0F C6 [22:22:05]process_action close_receipt done [22:22:05]requested_data is exist [22:22:05]produce_requested_data [22:22:05]requested_item fm.sn is exist - process it [22:22:05]wFMCommunicate request_size=4 [22:22:05]MH_SAM_APDU [22:22:05]CAPDU: 80 11 00 00 [22:22:05]Write to MH i2c: E2 08 00 89 29 80 11 00 00 00 00 00 00 2C [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:05]Read from MH i2c: E2 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 17 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 17 00 89 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 83 [22:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:22:05]wFMCommunicate OK [22:22:05]requested_item fd.num is exist - process it [22:22:05]SAM_PROTO_GetFieldsCounters [22:22:05]wFMCommunicate request_size=4 [22:22:05]MH_SAM_APDU [22:22:05]CAPDU: 80 13 00 00 [22:22:05]Write to MH i2c: E2 08 00 8A 29 80 13 00 00 00 00 00 00 2F [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:05]Read from MH i2c: E2 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 62 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 62 00 8A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 24 02 00 0E 04 04 00 C6 01 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 D1 [22:22: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7D 24 02 00 0E 04 04 00 C6 01 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 [22:22:05]wFMCommunicate OK [22:22:05]SAM_PROTO_GetFieldsCounters done [22:22:05]requested_item shift.num is exist - process it [22:22:05]requested_item shift.opened is exist - process it [22:22:05]req_shift_opened [22:22:05]FM_GetShiftState [22:22:05]SAM_PROTO_GetShiftState [22:22:05]wFMCommunicate request_size=4 [22:22:05]MH_SAM_APDU [22:22:05]CAPDU: 80 13 01 00 [22:22:05]Write to MH i2c: E2 08 00 8B 29 80 13 01 00 00 00 00 00 31 [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:05]Read from MH i2c: E2 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 0E 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 0E 00 8B 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B1 [22:22:05]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:22:05]wFMCommunicate OK [22:22:05]SAM_PROTO_GetShiftState done [22:22:05]FM_GetShiftState done [22:22:05]req_shift_opened done [22:22:05]requested_item shift.open_date is exist - process it [22:22:05]req_shift_open_date [22:22:05]req_shift_open_date done [22:22:05]produce_requested_data done [22:22:05]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140413,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:22:05]process_action_free close_receipt [22:22:05]json_value_free [22:22:05]json_value_free done [22:22:05]process_json_proto returns [22:22:05]Send response to host [22:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140413,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:22:05]free response buf [22:22:05]execute_script done [22:22:05]execute_script returns [22:22:05]free content buf [22:22:05]Sock 9.Close socket [22:22:05]Sock 9.Thread stoped [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:37]accept exits with 7 [22:24:37]New connection [22:24:37]New thread 3067469156 created [22:24:37]Thread 3067612516 joined [22:24:37]Waiting for new connection... [22:24:37] Sock 7.Parse request [22:24:37]Sock 7.Check first char [22:24:37]Sock 7.First char is OK [22:24:37]request: POST /json_proto HTTP/1.0 [22:24:37]Method: POST [22:24:37]URL: /json_proto [22:24:37]Method is POST - this is cgi request [22:24:37]url: /json_proto [22:24:37]query_string will be loaded in cgi processing [22:24:37]execute_cgi json_proto POST (null) [22:24:37]execute_cgi path=json_proto method=POST [22:24:37]POST find Content-Length [22:24:37]Host: 172.17.45.67:8080 [22:24:37]Content-Length: 682 [22:24:37]Content-Type: application/json [22:24:37] [22:24:37]POST finish read [22:24:37]Found Content-Length = 682 [22:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:37]execute_script... [22:24: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)594272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:37]POST & json_proto [22:24:37]process_json_proto [22:24:37]json parsed OK: [22:24:37]protocol is kg_v1.0 [22:24:37]action value=close_receipt [22:24:37]process_action close_receipt [22:24:37]cmd_close_receipt [22:24:37]MH_GetDate [22:24:37]Write to MH i2c: F0 00 00 8C 29 A4 [22:24:37]Write i2c OK [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: F0 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: F0 09 00 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: F0 09 00 8C 29 00 27 69 C6 66 5F 7F 2B 66 D8 [22:24:37]GetLastDocTimeStamp 1724278923 [22:24:37]current date 1724279079 [22:24:37]FM_GetShiftState [22:24:37]SAM_PROTO_GetShiftState [22:24:37]wFMCommunicate request_size=4 [22:24:37]MH_SAM_APDU [22:24:37]CAPDU: 80 13 01 00 [22:24:37]Write to MH i2c: E2 08 00 8D 29 80 13 01 00 00 00 00 00 33 [22:24:37]Write i2c OK [22:24:37]MH_I2C_Read... [22:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:37]Read from MH i2c: E2 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: E2 0E 00 [22:24:37]MH_I2C_Read... [22:24:37]Read from MH i2c: E2 0E 00 8D 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 B3 [22:24:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:24:37]wFMCommunicate OK [22:24:37]SAM_PROTO_GetShiftState done [22:24:37]FM_GetShiftState done [22:24:37]opened in 1724200467 [22:24:37]opened+sec_in_day 1724286867 [22:24:37]quantity*price = 200010 [22:24:37]sum+1 = 200011 [22:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 431 21.08.2024 22:24 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140414 ФПД: 88691631733126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222439&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140414&fm=88691631733126&tin=02508201610067®Number=0000000000092569&sum=200000 [22:24:38]StoreToDocumentArchive [22:24:38]shift 454 fd 140414 [22:24:38]save to /storage/0454/doc_00140414 [22:24:38]save last doc name /storage/0454/doc_00140414 to /storage/kkm_last_doc_name [22:24:38]save OK [22:24:38]Clear old archive folders... [22:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:38]tlvbuf is 00C277C0 [22:24:38]SAM_PROTO_ClearQueue [22:24:38]wFMCommunicate request_size=4 [22:24:38]MH_SAM_APDU [22:24:38]CAPDU: 80 09 00 00 [22:24:38]Write to MH i2c: E2 08 00 9A 29 80 09 00 00 00 00 00 00 35 [22:24:38]Write i2c OK [22:24:38]MH_I2C_Read... [22:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:38]Read from MH i2c: E2 [22:24:38]MH_I2C_Read... [22:24:38]Read from MH i2c: E2 03 00 [22:24:38]MH_I2C_Read... [22:24:38]Read from MH i2c: E2 03 00 9A 29 00 90 00 37 [22:24:38]RAPDU: 90 00 [22:24:38]wFMCommunicate OK [22:24:38]SAM_PROTO_ClearQueue done [22:24:38]KKMCreateOFDPacket [22:24:38]OFDProtocolAddRootSTLVToBuf [22:24:38]FM_MakeSignedData [22:24:38]FM_MakeSignedData [22:24:38]SAM_PROTO_SignData [22:24:38]wFMCommunicate request_size=4 [22:24:38]MH_SAM_APDU [22:24:38]CAPDU: 80 0D 01 02 [22:24:38]Write to MH i2c: E2 08 00 9B 29 80 0D 01 02 00 00 00 00 3D [22:24:38]Write i2c OK [22:24:38]MH_I2C_Read... [22:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:38]Read from MH i2c: E2 [22:24:38]MH_I2C_Read... [22:24:38]Read from MH i2c: E2 03 00 [22:24:38]MH_I2C_Read... [22:24:38]Read from MH i2c: E2 03 00 9B 29 00 90 00 38 [22:24:38]RAPDU: 90 00 [22:24:38]wFMCommunicate OK [22:24:38]wFMCommunicate request_size=255 [22:24:38]MH_SAM_APDU [22:24: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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 27 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 24 02 00 35 04 06 00 50 [22:24:38]Write to MH i2c: E2 02 01 9C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 27 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 24 02 00 35 04 06 00 50 00 00 F1 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 03 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 03 00 9C 29 00 90 00 39 [22:24:39]RAPDU: 90 00 [22:24:39]wFMCommunicate OK [22:24:39]wFMCommunicate request_size=10 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 0D 02 02 05 AA 21 34 39 86 [22:24:39]Write to MH i2c: E2 0D 00 9D 29 80 0D 02 02 05 00 AA 21 34 39 86 00 00 08 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 03 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 03 00 9D 29 00 90 00 3A [22:24:39]RAPDU: 90 00 [22:24:39]wFMCommunicate OK [22:24:39]wFMCommunicate request_size=4 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 0D 03 02 [22:24:39]Write to MH i2c: E2 08 00 9E 29 80 0D 03 02 00 00 00 00 42 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 0B 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 0B 00 9E 29 00 71 D1 E0 4E 78 15 53 60 90 00 F3 [22:24:39]RAPDU: 71 D1 E0 4E 78 15 53 60 90 00 [22:24:39]wFMCommunicate OK [22:24:39]SAM_PROTO_SignData done [22:24:39]FM_MakeSignedData done [22:24:39]CreateOFDProtocolMessage [22:24:39]wFMCommunicate request_size=4 [22:24:39]MH_SAM_APDU [22:24:39]CAPDU: 80 11 00 00 [22:24:39]Write to MH i2c: E2 08 00 9F 29 80 11 00 00 00 00 00 00 42 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:39]Read from MH i2c: E2 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 17 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: E2 17 00 9F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 99 [22:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:24:39]wFMCommunicate OK [22:24:39]CreateOFDProtocolMessage done [22:24:39]OFDSenderStorePacket 140414 [22:24:39]StoreOFDPacket docnum=140414 [22:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 4D 1A 07 01 9F E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 27 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 24 02 00 35 04 06 00 50 AA 21 34 39 86 71 D1 E0 4E 78 15 53 60 [22:24:39]CheckFolder [22:24:39]dirname=/storage/ofd_packets [22:24:39]CheckFolder done [22:24:39]ProducePacketName [22:24:39]name=ofd_packets/00140414 [22:24:39]NVStorageSaveData ofd_packets/00140414 [22:24:39]File name is /storage/ofd_packets/00140414 [22:24:39]Write 301 bytes [22:24:39]NVStorageSaveData done [22:24:39]OFDSenderStorePacket done [22:24:39]KKMCreateOFDPacket done [22:24:39]NVStorageSaveData kkm_last_timestamp [22:24:39]File name is /storage/kkm_last_timestamp [22:24:39]Write 4 bytes [22:24:39]NVStorageSaveData done [22:24:39]ExternCall_PrintAddStr [22:24:39]wPrintStart [22:24:39]Write to MH i2c: 01 00 00 A0 29 C9 [22:24:39]Write i2c OK [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: 01 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: 01 07 00 [22:24:39]MH_I2C_Read... [22:24:39]Read from MH i2c: 01 07 00 A0 29 00 00 00 00 00 FF 0F DE [22:24:39]RasterBufferAndPrint [22:24:39]line Счет N : (1)594272 [22:24:39]line ИНН: 02508201610067 [22:24:39]line Контрольно-Кассовый Чек [22:24:39]line ПРОДАЖА [22:24:39]line ТРК (МРК, ГНК) : 32 [22:24:39]line Товар: 2710124130 [22:24:39]line Аи-92-К-5 [22:24:39]line 29.500 * 67.80 [22:24:39]line = 2000.10 [22:24:39]line НДС 12% НСП 1% [22:24:39]line > о реализуемом товаре [22:24:39]line ОКРУГЛЕНИЕ: -0.10 [22:24:39]line ИТОГО: 2000.00 [22:24:39]line Внесено: 2000.00 [22:24:39]line СДАЧА: 0.00 [22:24:39]line НСП 1% : 17.70 [22:24:39]line НДС 12% : 212.40 [22:24:39]line Наличными: 2000.00 [22:24:39]line Безнал.: 0.00 [22:24:39]line Место: АЗС № 136 "Партнер Нефть" [22:24:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:24:39]line СНО: Общий режим [22:24:39]line Чек 431 21.08.2024 22:24 [22:24:39]line Смена: 454 ФФД: 1.0 [22:24:39]line ЗНМ: 0300000067 [22:24:39]line РНМ: 0000000000092569 [22:24:39]line Версия ККМ: 001 [22:24:39]line ФМ: 0000000000871776 [22:24:39]line ФД: 140414 [22:24:39]line ФПД: 88691631733126 [22:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222439&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140414&fm=88691631733126&tin=02508201610067®Number=0000000000092569&sum=200000 [22:24:39]OFD Sender: Processing packet 140414 [packets to send 137, broken 136] [22:24:39]ProducePacketName [22:24:39]name=ofd_packets/00140414 [22:24:39]OFD Sender: To server: pG, [22:24:39]CommunicateWithHost lk.salyk.kg:30040 [22:24:39]ConnectInit lk.salyk.kg [22:24:39]written 0, free lines is 4095 [22:24:39]Connected sock=10 [22:24: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 37 36 0F 01 00 00 4D 1A 07 01 9F E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 01 00 00 F4 03 04 00 27 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7E 24 02 00 35 04 06 00 50 AA 21 34 39 86 71 D1 E0 4E 78 15 53 60 [22:24: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 37 36 4F 00 00 00 92 A3 47 00 67 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 37 36 10 04 04 00 7E 24 02 00 F4 03 04 00 B6 0F C6 66 B6 04 01 00 00 E4 1B 78 4D C6 BA BC D4 [22:24:40]CommunicateWithHost err = 0 [22:24:40]CheckOFDResponse [22:24:40]1017 (14) - 77093643461234 [22:24:40]1041 (16) - 0000000000871776 [22:24:40]1040 (4) - 140414 [22:24:40]1012 (4) - 21.08.2024 16:03 [22:24:40]1206 (1) - 0 [22:24:40]OFD Sender: Remove packet 140414 [22:24:40]ProducePacketName [22:24:40]name=ofd_packets/00140414 [22:24:40]NVStorageDeleteData [22:24:40]Write to MH i2c: 01 00 00 CB 29 F4 [22:24:40]Write i2c OK [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: 01 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: 01 07 00 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 E9 0C F0 [22:24:40]RasterBufferAndPrint [22:24:40]line [22:24:40]line [22:24:40]line [22:24:40]line [22:24:40]line [22:24:40]written 0, free lines is 3314 [22:24:40]MH_Cut [22:24:40]Write to MH i2c: D1 01 00 D2 29 01 CD [22:24:40]Write i2c OK [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: D1 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: D1 01 00 [22:24:40]MH_I2C_Read... [22:24:40]Read from MH i2c: D1 01 00 D2 29 00 CC [22:24:40]Write to MH i2c: 01 00 00 D3 29 FC [22:24:40]Write i2c OK [22:24:40]MH_I2C_Read... [22:24:40]OFD Sender: No OFD packet to send [22:24:40]*** Cut start [22:24:40]*** Partial cut [22:24:40]*** CUTSNS_PIN = 1 [22:24:40]*** CUTSNS_PIN = 0 [22:24:41]*** Brake cut motor [22:24:41]Read from MH i2c: 01 [22:24:41]MH_I2C_Read... [22:24:41]*** Stop cut motor [22:24:41]*** Cut end [22:24:41]Read from MH i2c: 01 07 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: 01 07 00 D3 29 00 00 00 00 00 FF 0F 11 [22:24:41]process_action close_receipt done [22:24:41]requested_data is exist [22:24:41]produce_requested_data [22:24:41]requested_item fm.sn is exist - process it [22:24:41]wFMCommunicate request_size=4 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 11 00 00 [22:24:41]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 17 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CE [22:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:24:41]wFMCommunicate OK [22:24:41]requested_item fd.num is exist - process it [22:24:41]SAM_PROTO_GetFieldsCounters [22:24:41]wFMCommunicate request_size=4 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 13 00 00 [22:24:41]Write to MH i2c: E2 08 00 D5 29 80 13 00 00 00 00 00 00 7A [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 62 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 62 00 D5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 24 02 00 0E 04 04 00 C6 01 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 20 [22:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7E 24 02 00 0E 04 04 00 C6 01 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 [22:24:41]wFMCommunicate OK [22:24:41]SAM_PROTO_GetFieldsCounters done [22:24:41]requested_item shift.num is exist - process it [22:24:41]requested_item shift.opened is exist - process it [22:24:41]req_shift_opened [22:24:41]FM_GetShiftState [22:24:41]SAM_PROTO_GetShiftState [22:24:41]wFMCommunicate request_size=4 [22:24:41]MH_SAM_APDU [22:24:41]CAPDU: 80 13 01 00 [22:24:41]Write to MH i2c: E2 08 00 D6 29 80 13 01 00 00 00 00 00 7C [22:24:41]Write i2c OK [22:24:41]MH_I2C_Read... [22:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:41]Read from MH i2c: E2 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 0E 00 [22:24:41]MH_I2C_Read... [22:24:41]Read from MH i2c: E2 0E 00 D6 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FC [22:24:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:24:41]wFMCommunicate OK [22:24:41]SAM_PROTO_GetShiftState done [22:24:41]FM_GetShiftState done [22:24:41]req_shift_opened done [22:24:41]requested_item shift.open_date is exist - process it [22:24:41]req_shift_open_date [22:24:41]req_shift_open_date done [22:24:41]produce_requested_data done [22:24:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140414,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:24:41]process_action_free close_receipt [22:24:41]json_value_free [22:24:41]json_value_free done [22:24:41]process_json_proto returns [22:24:41]Send response to host [22:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140414,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:24:41]free response buf [22:24:41]execute_script done [22:24:41]execute_script returns [22:24:41]free content buf [22:24:41]Sock 7.Close socket [22:24:41]Sock 7.Thread stoped [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:00]accept exits with 9 [22:25:00]New connection [22:25:00]New thread 3067612516 created [22:25:00]Thread 3067469156 joined [22:25:00]Waiting for new connection... [22:25:00] Sock 9.Parse request [22:25:00]Sock 9.Check first char [22:25:00]Sock 9.First char is OK [22:25:00]request: POST /json_proto HTTP/1.0 [22:25:00]Method: POST [22:25:00]URL: /json_proto [22:25:00]Method is POST - this is cgi request [22:25:00]url: /json_proto [22:25:00]query_string will be loaded in cgi processing [22:25:00]execute_cgi json_proto POST (null) [22:25:00]execute_cgi path=json_proto method=POST [22:25:00]POST find Content-Length [22:25:00]Host: 172.17.45.67:8080 [22:25:00]Content-Length: 687 [22:25:00]Content-Type: application/json [22:25:00] [22:25:00]POST finish read [22:25:00]Found Content-Length = 687 [22:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:25:00]execute_script... [22:25: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)594273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:25:00]POST & json_proto [22:25:00]process_json_proto [22:25:00]json parsed OK: [22:25:00]protocol is kg_v1.0 [22:25:00]action value=close_receipt [22:25:00]process_action close_receipt [22:25:00]cmd_close_receipt [22:25:00]MH_GetDate [22:25:00]Write to MH i2c: F0 00 00 D7 29 EF [22:25:00]Write i2c OK [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: F0 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: F0 09 00 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: F0 09 00 D7 29 00 3E 69 C6 66 5F 7F 2B 66 3A [22:25:00]GetLastDocTimeStamp 1724279079 [22:25:00]current date 1724279102 [22:25:00]FM_GetShiftState [22:25:00]SAM_PROTO_GetShiftState [22:25:00]wFMCommunicate request_size=4 [22:25:00]MH_SAM_APDU [22:25:00]CAPDU: 80 13 01 00 [22:25:00]Write to MH i2c: E2 08 00 D8 29 80 13 01 00 00 00 00 00 7E [22:25:00]Write i2c OK [22:25:00]MH_I2C_Read... [22:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:00]Read from MH i2c: E2 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: E2 0E 00 [22:25:00]MH_I2C_Read... [22:25:00]Read from MH i2c: E2 0E 00 D8 29 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FE [22:25:00]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:25:00]wFMCommunicate OK [22:25:00]SAM_PROTO_GetShiftState done [22:25:00]FM_GetShiftState done [22:25:00]opened in 1724200467 [22:25:00]opened+sec_in_day 1724286867 [22:25:00]quantity*price = 150037 [22:25:00]sum+1 = 150039 [22:25: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 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 432 21.08.2024 22:25 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140415 ФПД: 38012577295673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140415&fm=38012577295673&tin=02508201610067®Number=0000000000092569&sum=150000 [22:25:02]StoreToDocumentArchive [22:25:02]shift 454 fd 140415 [22:25:02]save to /storage/0454/doc_00140415 [22:25:02]save last doc name /storage/0454/doc_00140415 to /storage/kkm_last_doc_name [22:25:02]save OK [22:25:02]Clear old archive folders... [22:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:25:02]tlvbuf is 00CA83E0 [22:25:02]SAM_PROTO_ClearQueue [22:25:02]wFMCommunicate request_size=4 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 09 00 00 [22:25:02]Write to MH i2c: E2 08 00 E5 29 80 09 00 00 00 00 00 00 80 [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 E5 29 00 90 00 82 [22:25:02]RAPDU: 90 00 [22:25:02]wFMCommunicate OK [22:25:02]SAM_PROTO_ClearQueue done [22:25:02]KKMCreateOFDPacket [22:25:02]OFDProtocolAddRootSTLVToBuf [22:25:02]FM_MakeSignedData [22:25:02]FM_MakeSignedData [22:25:02]SAM_PROTO_SignData [22:25:02]wFMCommunicate request_size=4 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 0D 01 02 [22:25:02]Write to MH i2c: E2 08 00 E6 29 80 0D 01 02 00 00 00 00 88 [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 E6 29 00 90 00 83 [22:25:02]RAPDU: 90 00 [22:25:02]wFMCommunicate OK [22:25:02]wFMCommunicate request_size=255 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B0 01 00 00 F4 03 04 00 3E 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 24 02 00 35 04 06 00 [22:25:02]Write to MH i2c: E2 02 01 E7 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B0 01 00 00 F4 03 04 00 3E 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 24 02 00 35 04 06 00 00 00 66 [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [22:25:02]RAPDU: 90 00 [22:25:02]wFMCommunicate OK [22:25:02]wFMCommunicate request_size=11 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 0D 02 02 06 22 92 7E 2A AD 39 [22:25:02]Write to MH i2c: E2 0E 00 E8 29 80 0D 02 02 06 00 22 92 7E 2A AD 39 00 00 D9 [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 03 00 E8 29 00 90 00 85 [22:25:02]RAPDU: 90 00 [22:25:02]wFMCommunicate OK [22:25:02]wFMCommunicate request_size=4 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 0D 03 02 [22:25:02]Write to MH i2c: E2 08 00 E9 29 80 0D 03 02 00 00 00 00 8D [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 0B 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 0B 00 E9 29 00 E7 A1 46 FF A3 09 FE E9 90 00 EE [22:25:02]RAPDU: E7 A1 46 FF A3 09 FE E9 90 00 [22:25:02]wFMCommunicate OK [22:25:02]SAM_PROTO_SignData done [22:25:02]FM_MakeSignedData done [22:25:02]CreateOFDProtocolMessage [22:25:02]wFMCommunicate request_size=4 [22:25:02]MH_SAM_APDU [22:25:02]CAPDU: 80 11 00 00 [22:25:02]Write to MH i2c: E2 08 00 EA 29 80 11 00 00 00 00 00 00 8D [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:02]Read from MH i2c: E2 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 17 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: E2 17 00 EA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E4 [22:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:25:02]wFMCommunicate OK [22:25:02]CreateOFDProtocolMessage done [22:25:02]OFDSenderStorePacket 140415 [22:25:02]StoreOFDPacket docnum=140415 [22:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 1D E4 08 01 52 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B0 01 00 00 F4 03 04 00 3E 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 24 02 00 35 04 06 00 22 92 7E 2A AD 39 E7 A1 46 FF A3 09 FE E9 [22:25:02]CheckFolder [22:25:02]dirname=/storage/ofd_packets [22:25:02]CheckFolder done [22:25:02]ProducePacketName [22:25:02]name=ofd_packets/00140415 [22:25:02]NVStorageSaveData ofd_packets/00140415 [22:25:02]File name is /storage/ofd_packets/00140415 [22:25:02]Write 302 bytes [22:25:02]NVStorageSaveData done [22:25:02]OFDSenderStorePacket done [22:25:02]KKMCreateOFDPacket done [22:25:02]NVStorageSaveData kkm_last_timestamp [22:25:02]File name is /storage/kkm_last_timestamp [22:25:02]Write 4 bytes [22:25:02]NVStorageSaveData done [22:25:02]ExternCall_PrintAddStr [22:25:02]wPrintStart [22:25:02]Write to MH i2c: 01 00 00 EB 29 14 [22:25:02]Write i2c OK [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: 01 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: 01 07 00 [22:25:02]MH_I2C_Read... [22:25:02]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 FF 0F 29 [22:25:02]RasterBufferAndPrint [22:25:02]line Счет N : (1)594273 [22:25:02]line ИНН: 02508201610067 [22:25:02]line Контрольно-Кассовый Чек [22:25:02]line ПРОДАЖА [22:25:02]line ТРК (МРК, ГНК) : 44 [22:25:02]line Товар: 2710194210 [22:25:02]line ДТ(л)-К-5 [22:25:02]line 19.690 * 76.20 [22:25:02]line = 1500.38 [22:25:02]line НДС 12% НСП 1% [22:25:02]line > о реализуемом товаре [22:25:02]line ОКРУГЛЕНИЕ: -0.38 [22:25:02]line ИТОГО: 1500.00 [22:25:02]line Внесено: 1500.00 [22:25:02]line СДАЧА: 0.00 [22:25:02]line НСП 1% : 13.28 [22:25:02]line НДС 12% : 159.33 [22:25:02]line Наличными: 1500.00 [22:25:02]line Безнал.: 0.00 [22:25:02]line Место: АЗС № 136 "Партнер Нефть" [22:25:02]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:25:02]line СНО: Общий режим [22:25:02]line Чек 432 21.08.2024 22:25 [22:25:02]line Смена: 454 ФФД: 1.0 [22:25:02]line ЗНМ: 0300000067 [22:25:02]line РНМ: 0000000000092569 [22:25:02]line Версия ККМ: 001 [22:25:02]line ФМ: 0000000000871776 [22:25:02]line ФД: 140415 [22:25:02]line ФПД: 38012577295673 [22:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222502&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140415&fm=38012577295673&tin=02508201610067®Number=0000000000092569&sum=150000 [22:25:02]written 0, free lines is 4095 [22:25:02]OFD Sender: Processing packet 140415 [packets to send 137, broken 136] [22:25:02]ProducePacketName [22:25:02]name=ofd_packets/00140415 [22:25:02]OFD Sender: To server: pG, [22:25:02]CommunicateWithHost lk.salyk.kg:30040 [22:25:02]ConnectInit lk.salyk.kg [22:25:02]Connected sock=10 [22:25: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 37 36 10 01 00 00 1D E4 08 01 52 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B0 01 00 00 F4 03 04 00 3E 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 7F 24 02 00 35 04 06 00 22 92 7E 2A AD 39 E7 A1 46 FF A3 09 FE E9 [22:25: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 37 36 4F 00 00 00 AC BA 47 00 29 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 37 36 10 04 04 00 7F 24 02 00 F4 03 04 00 CD 0F C6 66 B6 04 01 00 00 64 EE D8 50 90 4F AB 66 [22:25:02]CommunicateWithHost err = 0 [22:25:02]CheckOFDResponse [22:25:02]1017 (14) - 77093643461234 [22:25:02]1041 (16) - 0000000000871776 [22:25:02]1040 (4) - 140415 [22:25:02]1012 (4) - 21.08.2024 16:03 [22:25:02]1206 (1) - 0 [22:25:02]OFD Sender: Remove packet 140415 [22:25:02]ProducePacketName [22:25:02]name=ofd_packets/00140415 [22:25:02]NVStorageDeleteData [22:25:03]Write to MH i2c: 01 00 00 16 2A 40 [22:25:03]Write i2c OK [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: 01 [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: 01 07 00 [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: 01 07 00 16 2A 00 00 00 00 00 E6 0C 39 [22:25:03]RasterBufferAndPrint [22:25:03]line [22:25:03]line [22:25:03]line [22:25:03]line [22:25:03]line [22:25:03]written 0, free lines is 3311 [22:25:03]MH_Cut [22:25:03]Write to MH i2c: D1 01 00 1D 2A 01 19 [22:25:03]Write i2c OK [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: D1 [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: D1 01 00 [22:25:03]MH_I2C_Read... [22:25:03]Read from MH i2c: D1 01 00 1D 2A 00 18 [22:25:03]Write to MH i2c: 01 00 00 1E 2A 48 [22:25:03]Write i2c OK [22:25:03]MH_I2C_Read... [22:25:03]OFD Sender: No OFD packet to send [22:25:03]*** Cut start [22:25:03]*** Partial cut [22:25:03]*** CUTSNS_PIN = 1 [22:25:03]*** CUTSNS_PIN = 0 [22:25:03]*** Brake cut motor [22:25:04]Read from MH i2c: 01 [22:25:04]MH_I2C_Read... [22:25:04]*** Stop cut motor [22:25:04]*** Cut end [22:25:04]Read from MH i2c: 01 07 00 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: 01 07 00 1E 2A 00 00 00 00 00 FF 0F 5D [22:25:04]process_action close_receipt done [22:25:04]requested_data is exist [22:25:04]produce_requested_data [22:25:04]requested_item fm.sn is exist - process it [22:25:04]wFMCommunicate request_size=4 [22:25:04]MH_SAM_APDU [22:25:04]CAPDU: 80 11 00 00 [22:25:04]Write to MH i2c: E2 08 00 1F 2A 80 11 00 00 00 00 00 00 C3 [22:25:04]Write i2c OK [22:25:04]MH_I2C_Read... [22:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:04]Read from MH i2c: E2 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 17 00 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 17 00 1F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1A [22:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:25:04]wFMCommunicate OK [22:25:04]requested_item fd.num is exist - process it [22:25:04]SAM_PROTO_GetFieldsCounters [22:25:04]wFMCommunicate request_size=4 [22:25:04]MH_SAM_APDU [22:25:04]CAPDU: 80 13 00 00 [22:25:04]Write to MH i2c: E2 08 00 20 2A 80 13 00 00 00 00 00 00 C6 [22:25:04]Write i2c OK [22:25:04]MH_I2C_Read... [22:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:04]Read from MH i2c: E2 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 62 00 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 62 00 20 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 24 02 00 0E 04 04 00 C6 01 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 70 [22:25: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 7F 24 02 00 0E 04 04 00 C6 01 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 [22:25:04]wFMCommunicate OK [22:25:04]SAM_PROTO_GetFieldsCounters done [22:25:04]requested_item shift.num is exist - process it [22:25:04]requested_item shift.opened is exist - process it [22:25:04]req_shift_opened [22:25:04]FM_GetShiftState [22:25:04]SAM_PROTO_GetShiftState [22:25:04]wFMCommunicate request_size=4 [22:25:04]MH_SAM_APDU [22:25:04]CAPDU: 80 13 01 00 [22:25:04]Write to MH i2c: E2 08 00 21 2A 80 13 01 00 00 00 00 00 C8 [22:25:04]Write i2c OK [22:25:04]MH_I2C_Read... [22:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:04]Read from MH i2c: E2 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 0E 00 [22:25:04]MH_I2C_Read... [22:25:04]Read from MH i2c: E2 0E 00 21 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 48 [22:25:04]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:25:04]wFMCommunicate OK [22:25:04]SAM_PROTO_GetShiftState done [22:25:04]FM_GetShiftState done [22:25:04]req_shift_opened done [22:25:04]requested_item shift.open_date is exist - process it [22:25:04]req_shift_open_date [22:25:04]req_shift_open_date done [22:25:04]produce_requested_data done [22:25:04]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140415,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:25:04]process_action_free close_receipt [22:25:04]json_value_free [22:25:04]json_value_free done [22:25:04]process_json_proto returns [22:25:04]Send response to host [22:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140415,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:25:04]free response buf [22:25:04]execute_script done [22:25:04]execute_script returns [22:25:04]free content buf [22:25:04]Sock 9.Close socket [22:25:04]Sock 9.Thread stoped [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:27]accept exits with 7 [22:26:27]New connection [22:26:27]New thread 3067469156 created [22:26:27]Thread 3067612516 joined [22:26:27]Waiting for new connection... [22:26:27] Sock 7.Parse request [22:26:27]Sock 7.Check first char [22:26:27]Sock 7.First char is OK [22:26:27]request: POST /json_proto HTTP/1.0 [22:26:27]Method: POST [22:26:27]URL: /json_proto [22:26:27]Method is POST - this is cgi request [22:26:27]url: /json_proto [22:26:27]query_string will be loaded in cgi processing [22:26:27]execute_cgi json_proto POST (null) [22:26:27]execute_cgi path=json_proto method=POST [22:26:27]POST find Content-Length [22:26:27]Host: 172.17.45.67:8080 [22:26:27]Content-Length: 682 [22:26:27]Content-Type: application/json [22:26:27] [22:26:27]POST finish read [22:26:27]Found Content-Length = 682 [22:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:27]execute_script... [22:26: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)594274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:27]POST & json_proto [22:26:27]process_json_proto [22:26:27]json parsed OK: [22:26:27]protocol is kg_v1.0 [22:26:27]action value=close_receipt [22:26:27]process_action close_receipt [22:26:27]cmd_close_receipt [22:26:27]MH_GetDate [22:26:27]Write to MH i2c: F0 00 00 22 2A 3B [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 09 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: F0 09 00 22 2A 00 94 69 C6 66 5F 7F 2B 66 DC [22:26:27]GetLastDocTimeStamp 1724279102 [22:26:27]current date 1724279188 [22:26:27]FM_GetShiftState [22:26:27]SAM_PROTO_GetShiftState [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 13 01 00 [22:26:27]Write to MH i2c: E2 08 00 23 2A 80 13 01 00 00 00 00 00 CA [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:27]Read from MH i2c: E2 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 [22:26:27]MH_I2C_Read... [22:26:27]Read from MH i2c: E2 0E 00 23 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 4A [22:26:27]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:26:27]wFMCommunicate OK [22:26:27]SAM_PROTO_GetShiftState done [22:26:27]FM_GetShiftState done [22:26:27]opened in 1724200467 [22:26:27]opened+sec_in_day 1724286867 [22:26:27]quantity*price = 100021 [22:26:27]sum+1 = 100023 [22:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 433 21.08.2024 22:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140416 ФПД: 278798272808326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222628&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140416&fm=278798272808326&tin=02508201610067®Number=0000000000092569&sum=100000 [22:26:28]StoreToDocumentArchive [22:26:28]shift 454 fd 140416 [22:26:28]save to /storage/0454/doc_00140416 [22:26:28]save last doc name /storage/0454/doc_00140416 to /storage/kkm_last_doc_name [22:26:28]save OK [22:26:28]Clear old archive folders... [22:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:28]tlvbuf is B6E497F0 [22:26:28]SAM_PROTO_ClearQueue [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 09 00 00 [22:26:28]Write to MH i2c: E2 08 00 30 2A 80 09 00 00 00 00 00 00 CC [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 30 2A 00 90 00 CE [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_ClearQueue done [22:26:28]KKMCreateOFDPacket [22:26:28]OFDProtocolAddRootSTLVToBuf [22:26:28]FM_MakeSignedData [22:26:28]FM_MakeSignedData [22:26:28]SAM_PROTO_SignData [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 01 02 [22:26:28]Write to MH i2c: E2 08 00 31 2A 80 0D 01 02 00 00 00 00 D4 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:28]OFD Sender: No OFD packet to send [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 31 2A 00 90 00 CF [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=255 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 94 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 24 02 00 35 04 06 00 FD [22:26:28]Write to MH i2c: E2 02 01 32 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 94 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 24 02 00 35 04 06 00 FD 00 00 CF [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 32 2A 00 90 00 D0 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=10 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 02 02 05 90 C8 03 C5 86 [22:26:28]Write to MH i2c: E2 0D 00 33 2A 80 0D 02 02 05 00 90 C8 03 C5 86 00 00 87 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 33 2A 00 90 00 D1 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 03 02 [22:26:28]Write to MH i2c: E2 08 00 34 2A 80 0D 03 02 00 00 00 00 D9 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 34 2A 00 93 29 4B AC 45 73 98 58 90 00 35 [22:26:28]RAPDU: 93 29 4B AC 45 73 98 58 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_SignData done [22:26:28]FM_MakeSignedData done [22:26:28]CreateOFDProtocolMessage [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 11 00 00 [22:26:28]Write to MH i2c: E2 08 00 35 2A 80 11 00 00 00 00 00 00 D9 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:29]Read from MH i2c: E2 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 17 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: E2 17 00 35 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 30 [22:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:29]wFMCommunicate OK [22:26:29]CreateOFDProtocolMessage done [22:26:29]OFDSenderStorePacket 140416 [22:26:29]StoreOFDPacket docnum=140416 [22:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 09 20 07 01 E1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 94 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 24 02 00 35 04 06 00 FD 90 C8 03 C5 86 93 29 4B AC 45 73 98 58 [22:26:29]CheckFolder [22:26:29]dirname=/storage/ofd_packets [22:26:29]CheckFolder done [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00140416 [22:26:29]NVStorageSaveData ofd_packets/00140416 [22:26:29]File name is /storage/ofd_packets/00140416 [22:26:29]Write 301 bytes [22:26:29]NVStorageSaveData done [22:26:29]OFDSenderStorePacket done [22:26:29]KKMCreateOFDPacket done [22:26:29]NVStorageSaveData kkm_last_timestamp [22:26:29]File name is /storage/kkm_last_timestamp [22:26:29]Write 4 bytes [22:26:29]NVStorageSaveData done [22:26:29]ExternCall_PrintAddStr [22:26:29]wPrintStart [22:26:29]Write to MH i2c: 01 00 00 36 2A 60 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 36 2A 00 00 00 00 00 FF 0F 75 [22:26:29]RasterBufferAndPrint [22:26:29]line Счет N : (1)594274 [22:26:29]line ИНН: 02508201610067 [22:26:29]line Контрольно-Кассовый Чек [22:26:29]line ПРОДАЖА [22:26:29]line ТРК (МРК, ГНК) : 61 [22:26:29]line Товар: 2710124500 [22:26:29]line Аи-95-К-5 [22:26:29]line 13.480 * 74.20 [22:26:29]line = 1000.22 [22:26:29]line НДС 12% НСП 1% [22:26:29]line > о реализуемом товаре [22:26:29]line ОКРУГЛЕНИЕ: -0.22 [22:26:29]line ИТОГО: 1000.00 [22:26:29]line Внесено: 1000.00 [22:26:29]line СДАЧА: 0.00 [22:26:29]line НСП 1% : 8.85 [22:26:29]line НДС 12% : 106.22 [22:26:29]line Наличными: 1000.00 [22:26:29]line Безнал.: 0.00 [22:26:29]line Место: АЗС № 136 "Партнер Нефть" [22:26:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:26:29]line СНО: Общий режим [22:26:29]line Чек 433 21.08.2024 22:26 [22:26:29]line Смена: 454 ФФД: 1.0 [22:26:29]line ЗНМ: 0300000067 [22:26:29]line РНМ: 0000000000092569 [22:26:29]line Версия ККМ: 001 [22:26:29]line ФМ: 0000000000871776 [22:26:29]line ФД: 140416 [22:26:29]line ФПД: 278798272808326 [22:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222628&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140416&fm=278798272808326&tin=02508201610067®Number=0000000000092569&sum=100000 [22:26:29]OFD Sender: Processing packet 140416 [packets to send 137, broken 136] [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00140416 [22:26:29]OFD Sender: To server: pG, [22:26:29]CommunicateWithHost lk.salyk.kg:30040 [22:26:29]ConnectInit lk.salyk.kg [22:26:29]written 0, free lines is 4095 [22:26:29]Write to MH i2c: 01 00 00 61 2A 8B [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 61 2A 00 00 00 00 00 DC 0C 7A [22:26:29]RasterBufferAndPrint [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]written 0, free lines is 3298 [22:26:29]MH_Cut [22:26:29]Write to MH i2c: D1 01 00 68 2A 01 64 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 68 2A 00 63 [22:26:29]Write to MH i2c: 01 00 00 69 2A 93 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:30]*** Cut start [22:26:30]*** Partial cut [22:26:30]*** CUTSNS_PIN = 1 [22:26:30]*** CUTSNS_PIN = 0 [22:26:30]*** Brake cut motor [22:26:31]Read from MH i2c: 01 [22:26:31]MH_I2C_Read... [22:26:31]*** Stop cut motor [22:26:31]*** Cut end [22:26:31]Read from MH i2c: 01 07 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 FF 0F A8 [22:26:31]process_action close_receipt done [22:26:31]requested_data is exist [22:26:31]produce_requested_data [22:26:31]requested_item fm.sn is exist - process it [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 11 00 00 [22:26:31]Write to MH i2c: E2 08 00 6A 2A 80 11 00 00 00 00 00 00 0E [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 17 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 17 00 6A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 65 [22:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:26:31]wFMCommunicate OK [22:26:31]requested_item fd.num is exist - process it [22:26:31]SAM_PROTO_GetFieldsCounters [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 13 00 00 [22:26:31]Write to MH i2c: E2 08 00 6B 2A 80 13 00 00 00 00 00 00 11 [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 62 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 62 00 6B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 24 02 00 0E 04 04 00 C6 01 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 BF [22:26: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 80 24 02 00 0E 04 04 00 C6 01 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 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetFieldsCounters done [22:26:31]requested_item shift.num is exist - process it [22:26:31]requested_item shift.opened is exist - process it [22:26:31]req_shift_opened [22:26:31]FM_GetShiftState [22:26:31]SAM_PROTO_GetShiftState [22:26:31]wFMCommunicate request_size=4 [22:26:31]MH_SAM_APDU [22:26:31]CAPDU: 80 13 01 00 [22:26:31]Write to MH i2c: E2 08 00 6C 2A 80 13 01 00 00 00 00 00 13 [22:26:31]Write i2c OK [22:26:31]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 6C 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 93 [22:26:31]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetShiftState done [22:26:31]FM_GetShiftState done [22:26:31]req_shift_opened done [22:26:31]requested_item shift.open_date is exist - process it [22:26:31]req_shift_open_date [22:26:31]req_shift_open_date done [22:26:31]produce_requested_data done [22:26:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140416,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:26:31]process_action_free close_receipt [22:26:31]json_value_free [22:26:31]json_value_free done [22:26:31]process_json_proto returns [22:26:31]Send response to host [22:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140416,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:26:31]free response buf [22:26:31]execute_script done [22:26:31]execute_script returns [22:26:31]free content buf [22:26:31]Sock 7.Close socket [22:26:31]Sock 7.Thread stoped [22:27:32]int [22:27:32]Write to MH i2c: 01 00 00 6D 2A 97 [22:27:32]*** FLAG_PRN_KEY set [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 6D 2A 00 08 00 00 00 FF 0F B4 [22:27:32]state=0 [22:27:32]Key pressed [22:27:32]Feed [22:27:32]Write to MH i2c: D8 00 00 6E 2A 6F [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: D8 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: D8 01 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: D8 01 00 6E 2A 00 70 [22:27:32]int [22:27:32]Write to MH i2c: 01 00 00 6F 2A 99 [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 6F 2A 00 48 00 00 00 3C 00 24 [22:27:32]state=2 [22:27:32]Key pressed [22:27:32]int [22:27:32]Write to MH i2c: 01 00 00 70 2A 9A [22:27:32]*** FLAG_PRN_KEY reset [22:27:32]Write i2c OK [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 [22:27:32]MH_I2C_Read... [22:27:32]Read from MH i2c: 01 07 00 70 2A 00 00 00 00 00 F6 0F A6 [22:27:32]state=2 [22:27:32]Stop feed [22:28:42]ConnectInit Can't connect to host [22:28:42]CommunicateWithHost connect error [22:28:42]CommunicateWithHost err = -1 [22:28:42]OFD Sender: Server communicate error [22:28:47]OFD Sender: Processing packet 140416 [packets to send 137, broken 136] [22:28:47]ProducePacketName [22:28:47]name=ofd_packets/00140416 [22:28:47]OFD Sender: To server: pG, [22:28:47]CommunicateWithHost lk.salyk.kg:30040 [22:28:47]ConnectInit lk.salyk.kg [22:28:48]Connected sock=7 [22:28: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 37 36 0F 01 00 00 09 20 07 01 E1 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 01 00 00 F4 03 04 00 94 69 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 24 02 00 35 04 06 00 FD 90 C8 03 C5 86 93 29 4B AC 45 73 98 58 [22:28: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 37 36 4F 00 00 00 9E CA 47 00 4C 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 80 24 02 00 F4 03 04 00 AF 10 C6 66 B6 04 01 00 00 81 8E 82 0C 04 9C 35 3B [22:28:48]CommunicateWithHost err = 0 [22:28:48]CheckOFDResponse [22:28:48]1017 (14) - 77093643461234 [22:28:48]1041 (16) - 0000000000871776 [22:28:48]1040 (4) - 140416 [22:28:48]1012 (4) - 21.08.2024 16:07 [22:28:48]1206 (1) - 0 [22:28:48]OFD Sender: Remove packet 140416 [22:28:48]ProducePacketName [22:28:48]name=ofd_packets/00140416 [22:28:48]NVStorageDeleteData [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:10]accept exits with 9 [22:29:10]New connection [22:29:10]New thread 3067612516 created [22:29:10]Thread 3067469156 joined [22:29:10]Waiting for new connection... [22:29:10] Sock 9.Parse request [22:29:10]Sock 9.Check first char [22:29:10]Sock 9.First char is OK [22:29:10]request: POST /json_proto HTTP/1.0 [22:29:10]Method: POST [22:29:10]URL: /json_proto [22:29:10]Method is POST - this is cgi request [22:29:10]url: /json_proto [22:29:10]query_string will be loaded in cgi processing [22:29:10]execute_cgi json_proto POST (null) [22:29:10]execute_cgi path=json_proto method=POST [22:29:10]POST find Content-Length [22:29:10]Host: 172.17.45.67:8080 [22:29:10]Content-Length: 822 [22:29:10]Content-Type: application/json [22:29:10] [22:29:10]POST finish read [22:29:10]Found Content-Length = 822 [22:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:10]execute_script... [22:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:10]POST & json_proto [22:29:10]process_json_proto [22:29:10]json parsed OK: [22:29:10]protocol is kg_v1.0 [22:29:10]action value=close_receipt [22:29:10]process_action close_receipt [22:29:10]cmd_close_receipt [22:29:10]MH_GetDate [22:29:10]Write to MH i2c: F0 00 00 71 2A 8A [22:29:10]Write i2c OK [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: F0 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: F0 09 00 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: F0 09 00 71 2A 00 37 6A C6 66 5F 7F 2B 66 CF [22:29:10]GetLastDocTimeStamp 1724279188 [22:29:10]current date 1724279351 [22:29:10]FM_GetShiftState [22:29:10]SAM_PROTO_GetShiftState [22:29:10]wFMCommunicate request_size=4 [22:29:10]MH_SAM_APDU [22:29:10]CAPDU: 80 13 01 00 [22:29:10]Write to MH i2c: E2 08 00 72 2A 80 13 01 00 00 00 00 00 19 [22:29:10]Write i2c OK [22:29:10]MH_I2C_Read... [22:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:10]Read from MH i2c: E2 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 0E 00 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 0E 00 72 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 99 [22:29:10]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:29:10]wFMCommunicate OK [22:29:10]SAM_PROTO_GetShiftState done [22:29:10]FM_GetShiftState done [22:29:10]opened in 1724200467 [22:29:10]opened+sec_in_day 1724286867 [22:29:10]quantity*price = 100005 [22:29:10]sum+1 = 100006 [22:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 434 21.08.2024 22:29 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140417 ФПД: 21966499124253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222911&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140417&fm=21966499124253&tin=02508201610067®Number=0000000000092569&sum=100000 [22:29:11]StoreToDocumentArchive [22:29:11]shift 454 fd 140417 [22:29:11]save to /storage/0454/doc_00140417 [22:29:11]save last doc name /storage/0454/doc_00140417 to /storage/kkm_last_doc_name [22:29:11]save OK [22:29:11]Clear old archive folders... [22:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:11]tlvbuf is 00C73450 [22:29:11]SAM_PROTO_ClearQueue [22:29:11]wFMCommunicate request_size=4 [22:29:11]MH_SAM_APDU [22:29:11]CAPDU: 80 09 00 00 [22:29:11]Write to MH i2c: E2 08 00 7F 2A 80 09 00 00 00 00 00 00 1B [22:29:11]Write i2c OK [22:29:11]MH_I2C_Read... [22:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:11]Read from MH i2c: E2 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 03 00 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 03 00 7F 2A 00 90 00 1D [22:29:11]RAPDU: 90 00 [22:29:11]wFMCommunicate OK [22:29:11]SAM_PROTO_ClearQueue done [22:29:11]KKMCreateOFDPacket [22:29:11]OFDProtocolAddRootSTLVToBuf [22:29:11]FM_MakeSignedData [22:29:11]FM_MakeSignedData [22:29:11]SAM_PROTO_SignData [22:29:11]wFMCommunicate request_size=4 [22:29:11]MH_SAM_APDU [22:29:11]CAPDU: 80 0D 01 02 [22:29:11]Write to MH i2c: E2 08 00 80 2A 80 0D 01 02 00 00 00 00 23 [22:29:11]Write i2c OK [22:29:11]MH_I2C_Read... [22:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:11]Read from MH i2c: E2 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 03 00 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 03 00 80 2A 00 90 00 1E [22:29:11]RAPDU: 90 00 [22:29:11]wFMCommunicate OK [22:29:11]wFMCommunicate request_size=255 [22:29:11]MH_SAM_APDU [22:29:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 37 6A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 24 02 00 35 04 06 00 13 [22:29:11]Write to MH i2c: E2 02 01 81 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 37 6A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 24 02 00 35 04 06 00 13 00 00 3C [22:29:11]Write i2c OK [22:29:11]MH_I2C_Read... [22:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:12]Read from MH i2c: E2 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 03 00 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 03 00 81 2A 00 90 00 1F [22:29:12]RAPDU: 90 00 [22:29:12]wFMCommunicate OK [22:29:12]wFMCommunicate request_size=10 [22:29:12]MH_SAM_APDU [22:29:12]CAPDU: 80 0D 02 02 05 FA 79 60 94 1D [22:29:12]Write to MH i2c: E2 0D 00 82 2A 80 0D 02 02 05 00 FA 79 60 94 1D 00 00 B4 [22:29:12]Write i2c OK [22:29:12]MH_I2C_Read... [22:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:12]Read from MH i2c: E2 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 03 00 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 03 00 82 2A 00 90 00 20 [22:29:12]RAPDU: 90 00 [22:29:12]wFMCommunicate OK [22:29:12]wFMCommunicate request_size=4 [22:29:12]MH_SAM_APDU [22:29:12]CAPDU: 80 0D 03 02 [22:29:12]Write to MH i2c: E2 08 00 83 2A 80 0D 03 02 00 00 00 00 28 [22:29:12]Write i2c OK [22:29:12]MH_I2C_Read... [22:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:12]Read from MH i2c: E2 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 0B 00 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 0B 00 83 2A 00 FB AD DB 86 22 4A 15 E8 90 00 9B [22:29:12]RAPDU: FB AD DB 86 22 4A 15 E8 90 00 [22:29:12]wFMCommunicate OK [22:29:12]SAM_PROTO_SignData done [22:29:12]FM_MakeSignedData done [22:29:12]CreateOFDProtocolMessage [22:29:12]wFMCommunicate request_size=4 [22:29:12]MH_SAM_APDU [22:29:12]CAPDU: 80 11 00 00 [22:29:12]Write to MH i2c: E2 08 00 84 2A 80 11 00 00 00 00 00 00 28 [22:29:12]Write i2c OK [22:29:12]MH_I2C_Read... [22:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:12]Read from MH i2c: E2 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 17 00 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: E2 17 00 84 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 7F [22:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:29:12]wFMCommunicate OK [22:29:12]CreateOFDProtocolMessage done [22:29:12]OFDSenderStorePacket 140417 [22:29:12]StoreOFDPacket docnum=140417 [22:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 64 07 01 3E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 37 6A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 24 02 00 35 04 06 00 13 FA 79 60 94 1D FB AD DB 86 22 4A 15 E8 [22:29:12]CheckFolder [22:29:12]dirname=/storage/ofd_packets [22:29:12]CheckFolder done [22:29:12]ProducePacketName [22:29:12]name=ofd_packets/00140417 [22:29:12]NVStorageSaveData ofd_packets/00140417 [22:29:12]File name is /storage/ofd_packets/00140417 [22:29:12]Write 301 bytes [22:29:12]NVStorageSaveData done [22:29:12]OFDSenderStorePacket done [22:29:12]KKMCreateOFDPacket done [22:29:12]NVStorageSaveData kkm_last_timestamp [22:29:12]File name is /storage/kkm_last_timestamp [22:29:12]Write 4 bytes [22:29:12]NVStorageSaveData done [22:29:12]ExternCall_PrintAddStr [22:29:12]wPrintStart [22:29:12]Write to MH i2c: 01 00 00 85 2A AF [22:29:12]Write i2c OK [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: 01 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: 01 07 00 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: 01 07 00 85 2A 00 00 00 00 00 FF 0F C4 [22:29:12]RasterBufferAndPrint [22:29:12]line Счет N : (1)594275 [22:29:12]line ИНН: 02508201610067 [22:29:12]line Контрольно-Кассовый Чек [22:29:12]line ПРОДАЖА [22:29:12]line ТРК (МРК, ГНК) : 42 [22:29:12]line Товар: 2710124130 [22:29:12]line Аи-92-К-5 [22:29:12]line 14.750 * 67.80 [22:29:12]line = 1000.05 [22:29:12]line НДС 12% НСП 1% [22:29:12]line > о реализуемом товаре [22:29:12]line ОКРУГЛЕНИЕ: -0.05 [22:29:12]line ИТОГО: 1000.00 [22:29:12]line НСП 1% : 8.85 [22:29:12]line НДС 12% : 106.20 [22:29:12]line Наличными: 0.00 [22:29:12]line Безнал.: 1000.00 [22:29:12]line Место: АЗС № 136 "Партнер Нефть" [22:29:12]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:29:12]line СНО: Общий режим [22:29:12]line Чек 434 21.08.2024 22:29 [22:29:12]line Смена: 454 ФФД: 1.0 [22:29:12]line ЗНМ: 0300000067 [22:29:12]line РНМ: 0000000000092569 [22:29:12]line Версия ККМ: 001 [22:29:12]line Платежная система: O! деньги [22:29:12]line ФМ: 0000000000871776 [22:29:12]line ФД: 140417 [22:29:12]line ФПД: 21966499124253 [22:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T222911&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140417&fm=21966499124253&tin=02508201610067®Number=0000000000092569&sum=100000 [22:29:12]written 0, free lines is 4095 [22:29:12]OFD Sender: Processing packet 140417 [packets to send 137, broken 136] [22:29:12]ProducePacketName [22:29:12]name=ofd_packets/00140417 [22:29:12]OFD Sender: To server: pG, [22:29:12]CommunicateWithHost lk.salyk.kg:30040 [22:29:12]ConnectInit lk.salyk.kg [22:29:12]Connected sock=10 [22:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 44 64 07 01 3E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 37 6A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 81 24 02 00 35 04 06 00 13 FA 79 60 94 1D FB AD DB 86 22 4A 15 E8 [22:29:12]Write to MH i2c: 01 00 00 B0 2A DA [22:29:12]Write i2c OK [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: 01 [22:29:12]MH_I2C_Read... [22:29:12]Read from MH i2c: 01 07 00 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: 01 07 00 B0 2A 00 00 00 00 00 E6 0C D3 [22:29:13]RasterBufferAndPrint [22:29:13]line [22:29:13]line [22:29:13]line [22:29:13]line [22:29:13]line [22:29:13]written 0, free lines is 3307 [22:29: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 37 36 4F 00 00 00 4E 98 47 00 F0 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 37 36 10 04 04 00 81 24 02 00 F4 03 04 00 C7 10 C6 66 B6 04 01 00 00 3D 09 5B 27 77 61 B9 56 [22:29:13]CommunicateWithHost err = 0 [22:29:13]CheckOFDResponse [22:29:13]1017 (14) - 77093643461234 [22:29:13]1041 (16) - 0000000000871776 [22:29:13]1040 (4) - 140417 [22:29:13]1012 (4) - 21.08.2024 16:07 [22:29:13]1206 (1) - 0 [22:29:13]OFD Sender: Remove packet 140417 [22:29:13]ProducePacketName [22:29:13]name=ofd_packets/00140417 [22:29:13]NVStorageDeleteData [22:29:13]MH_Cut [22:29:13]Write to MH i2c: D1 01 00 B7 2A 01 B3 [22:29:13]Write i2c OK [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: D1 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: D1 01 00 [22:29:13]MH_I2C_Read... [22:29:13]Read from MH i2c: D1 01 00 B7 2A 00 B2 [22:29:13]Write to MH i2c: 01 00 00 B8 2A E2 [22:29:13]Write i2c OK [22:29:13]MH_I2C_Read... [22:29:13]OFD Sender: No OFD packet to send [22:29:13]*** Cut start [22:29:13]*** Partial cut [22:29:13]*** CUTSNS_PIN = 1 [22:29:13]*** CUTSNS_PIN = 0 [22:29:13]*** Brake cut motor [22:29:14]Read from MH i2c: 01 [22:29:14]MH_I2C_Read... [22:29:14]*** Stop cut motor [22:29:14]*** Cut end [22:29:14]Read from MH i2c: 01 07 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: 01 07 00 B8 2A 00 00 00 00 00 FF 0F F7 [22:29:14]process_action close_receipt done [22:29:14]requested_data is exist [22:29:14]produce_requested_data [22:29:14]requested_item fm.sn is exist - process it [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 11 00 00 [22:29:14]Write to MH i2c: E2 08 00 B9 2A 80 11 00 00 00 00 00 00 5D [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 17 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 17 00 B9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B4 [22:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:29:14]wFMCommunicate OK [22:29:14]requested_item fd.num is exist - process it [22:29:14]SAM_PROTO_GetFieldsCounters [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 13 00 00 [22:29:14]Write to MH i2c: E2 08 00 BA 2A 80 13 00 00 00 00 00 00 60 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 62 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 62 00 BA 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 24 02 00 0E 04 04 00 C6 01 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 12 [22:29: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 81 24 02 00 0E 04 04 00 C6 01 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 [22:29:14]wFMCommunicate OK [22:29:14]SAM_PROTO_GetFieldsCounters done [22:29:14]requested_item shift.num is exist - process it [22:29:14]requested_item shift.opened is exist - process it [22:29:14]req_shift_opened [22:29:14]FM_GetShiftState [22:29:14]SAM_PROTO_GetShiftState [22:29:14]wFMCommunicate request_size=4 [22:29:14]MH_SAM_APDU [22:29:14]CAPDU: 80 13 01 00 [22:29:14]Write to MH i2c: E2 08 00 BB 2A 80 13 01 00 00 00 00 00 62 [22:29:14]Write i2c OK [22:29:14]MH_I2C_Read... [22:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:14]Read from MH i2c: E2 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0E 00 [22:29:14]MH_I2C_Read... [22:29:14]Read from MH i2c: E2 0E 00 BB 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E2 [22:29:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:29:14]wFMCommunicate OK [22:29:14]SAM_PROTO_GetShiftState done [22:29:14]FM_GetShiftState done [22:29:14]req_shift_opened done [22:29:14]requested_item shift.open_date is exist - process it [22:29:14]req_shift_open_date [22:29:14]req_shift_open_date done [22:29:14]produce_requested_data done [22:29:14]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140417,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:29:14]process_action_free close_receipt [22:29:14]json_value_free [22:29:14]json_value_free done [22:29:14]process_json_proto returns [22:29:14]Send response to host [22:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140417,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:29:14]free response buf [22:29:14]execute_script done [22:29:14]execute_script returns [22:29:14]free content buf [22:29:14]Sock 9.Close socket [22:29:14]Sock 9.Thread stoped [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40: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:33]accept exits with 7 [22:40:33]New connection [22:40:33]New thread 3067469156 created [22:40:33]Thread 3067612516 joined [22:40:33]Waiting for new connection... [22:40:33] Sock 7.Parse request [22:40:33]Sock 7.Check first char [22:40:33]Sock 7.First char is OK [22:40:33]request: POST /json_proto HTTP/1.0 [22:40:33]Method: POST [22:40:33]URL: /json_proto [22:40:33]Method is POST - this is cgi request [22:40:33]url: /json_proto [22:40:33]query_string will be loaded in cgi processing [22:40:33]execute_cgi json_proto POST (null) [22:40:33]execute_cgi path=json_proto method=POST [22:40:33]POST find Content-Length [22:40:33]Host: 172.17.45.67:8080 [22:40:33]Content-Length: 818 [22:40:33]Content-Type: application/json [22:40:33] [22:40:33]POST finish read [22:40:33]Found Content-Length = 818 [22:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:33]execute_script... [22:40: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)594276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:33]POST & json_proto [22:40:33]process_json_proto [22:40:33]json parsed OK: [22:40:33]protocol is kg_v1.0 [22:40:33]action value=close_receipt [22:40:33]process_action close_receipt [22:40:33]cmd_close_receipt [22:40:33]MH_GetDate [22:40:33]Write to MH i2c: F0 00 00 BC 2A D5 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 09 00 [22:40:33]MH_I2C_Read... [22:40:33]Read from MH i2c: F0 09 00 BC 2A 00 E3 6C C6 66 5F 7F 2B 66 C8 [22:40:33]GetLastDocTimeStamp 1724279351 [22:40:33]current date 1724280035 [22:40:33]FM_GetShiftState [22:40:33]SAM_PROTO_GetShiftState [22:40:33]wFMCommunicate request_size=4 [22:40:33]MH_SAM_APDU [22:40:33]CAPDU: 80 13 01 00 [22:40:33]Write to MH i2c: E2 08 00 BD 2A 80 13 01 00 00 00 00 00 64 [22:40:33]Write i2c OK [22:40:33]MH_I2C_Read... [22:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:34]Read from MH i2c: E2 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 0E 00 [22:40:34]MH_I2C_Read... [22:40:34]Read from MH i2c: E2 0E 00 BD 2A 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E4 [22:40:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:40:34]wFMCommunicate OK [22:40:34]SAM_PROTO_GetShiftState done [22:40:34]FM_GetShiftState done [22:40:34]opened in 1724200467 [22:40:34]opened+sec_in_day 1724286867 [22:40:34]quantity*price = 30035 [22:40:34]sum+1 = 30036 [22:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 435 21.08.2024 22:40 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140418 ФПД: 27141034733807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T224035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140418&fm=27141034733807&tin=02508201610067®Number=0000000000092569&sum=30000 [22:40:35]StoreToDocumentArchive [22:40:35]shift 454 fd 140418 [22:40:35]save to /storage/0454/doc_00140418 [22:40:35]save last doc name /storage/0454/doc_00140418 to /storage/kkm_last_doc_name [22:40:35]save OK [22:40:35]Clear old archive folders... [22:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:35]tlvbuf is 00D05D70 [22:40:35]SAM_PROTO_ClearQueue [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 09 00 00 [22:40:35]Write to MH i2c: E2 08 00 CA 2A 80 09 00 00 00 00 00 00 66 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 CA 2A 00 90 00 68 [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]SAM_PROTO_ClearQueue done [22:40:35]KKMCreateOFDPacket [22:40:35]OFDProtocolAddRootSTLVToBuf [22:40:35]FM_MakeSignedData [22:40:35]FM_MakeSignedData [22:40:35]SAM_PROTO_SignData [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 0D 01 02 [22:40:35]Write to MH i2c: E2 08 00 CB 2A 80 0D 01 02 00 00 00 00 6E [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 CB 2A 00 90 00 69 [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]wFMCommunicate request_size=255 [22:40:35]MH_SAM_APDU [22:40: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E3 6C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 24 02 00 35 04 06 00 18 [22:40:35]Write to MH i2c: E2 02 01 CC 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E3 6C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 24 02 00 35 04 06 00 18 00 00 CC [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 CC 2A 00 90 00 6A [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]wFMCommunicate request_size=10 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 0D 02 02 05 AF 43 BB F0 EF [22:40:35]Write to MH i2c: E2 0D 00 CD 2A 80 0D 02 02 05 00 AF 43 BB F0 EF 00 00 07 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 03 00 CD 2A 00 90 00 6B [22:40:35]RAPDU: 90 00 [22:40:35]wFMCommunicate OK [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 0D 03 02 [22:40:35]Write to MH i2c: E2 08 00 CE 2A 80 0D 03 02 00 00 00 00 73 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0B 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 0B 00 CE 2A 00 30 CF 8E A8 44 11 52 4F 90 00 9F [22:40:35]RAPDU: 30 CF 8E A8 44 11 52 4F 90 00 [22:40:35]wFMCommunicate OK [22:40:35]SAM_PROTO_SignData done [22:40:35]FM_MakeSignedData done [22:40:35]CreateOFDProtocolMessage [22:40:35]wFMCommunicate request_size=4 [22:40:35]MH_SAM_APDU [22:40:35]CAPDU: 80 11 00 00 [22:40:35]Write to MH i2c: E2 08 00 CF 2A 80 11 00 00 00 00 00 00 73 [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:35]Read from MH i2c: E2 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: E2 17 00 CF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 CA [22:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:35]wFMCommunicate OK [22:40:35]CreateOFDProtocolMessage done [22:40:35]OFDSenderStorePacket 140418 [22:40:35]StoreOFDPacket docnum=140418 [22:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 07 60 07 01 BA 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E3 6C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 24 02 00 35 04 06 00 18 AF 43 BB F0 EF 30 CF 8E A8 44 11 52 4F [22:40:35]CheckFolder [22:40:35]dirname=/storage/ofd_packets [22:40:35]CheckFolder done [22:40:35]ProducePacketName [22:40:35]name=ofd_packets/00140418 [22:40:35]NVStorageSaveData ofd_packets/00140418 [22:40:35]File name is /storage/ofd_packets/00140418 [22:40:35]Write 301 bytes [22:40:35]NVStorageSaveData done [22:40:35]OFDSenderStorePacket done [22:40:35]KKMCreateOFDPacket done [22:40:35]NVStorageSaveData kkm_last_timestamp [22:40:35]File name is /storage/kkm_last_timestamp [22:40:35]Write 4 bytes [22:40:35]NVStorageSaveData done [22:40:35]ExternCall_PrintAddStr [22:40:35]wPrintStart [22:40:35]Write to MH i2c: 01 00 00 D0 2A FA [22:40:35]Write i2c OK [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 07 00 [22:40:35]MH_I2C_Read... [22:40:35]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 FF 0F 0F [22:40:35]RasterBufferAndPrint [22:40:35]line Счет N : (1)594276 [22:40:35]line ИНН: 02508201610067 [22:40:35]line Контрольно-Кассовый Чек [22:40:35]line ПРОДАЖА [22:40:35]line ТРК (МРК, ГНК) : 42 [22:40:35]line Товар: 2710124130 [22:40:35]line Аи-92-К-5 [22:40:35]line 4.430 * 67.80 [22:40:35]line = 300.35 [22:40:35]line НДС 12% НСП 1% [22:40:35]line > о реализуемом товаре [22:40:35]line ОКРУГЛЕНИЕ: -0.35 [22:40:35]line ИТОГО: 300.00 [22:40:35]line НСП 1% : 2.66 [22:40:35]line НДС 12% : 31.90 [22:40:35]line Наличными: 0.00 [22:40:35]line Безнал.: 300.00 [22:40:35]line Место: АЗС № 136 "Партнер Нефть" [22:40:35]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:40:35]line СНО: Общий режим [22:40:35]line Чек 435 21.08.2024 22:40 [22:40:35]line Смена: 454 ФФД: 1.0 [22:40:35]line ЗНМ: 0300000067 [22:40:35]line РНМ: 0000000000092569 [22:40:35]line Версия ККМ: 001 [22:40:35]line Платежная система: O! деньги [22:40:35]line ФМ: 0000000000871776 [22:40:35]line ФД: 140418 [22:40:35]line ФПД: 27141034733807 [22:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T224035&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140418&fm=27141034733807&tin=02508201610067®Number=0000000000092569&sum=30000 [22:40:36]OFD Sender: Processing packet 140418 [packets to send 137, broken 136] [22:40:36]ProducePacketName [22:40:36]name=ofd_packets/00140418 [22:40:36]OFD Sender: To server: pG, [22:40:36]CommunicateWithHost lk.salyk.kg:30040 [22:40:36]ConnectInit lk.salyk.kg [22:40:36]written 0, free lines is 4095 [22:40:36]Connected sock=9 [22:40: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 37 36 0F 01 00 00 07 60 07 01 BA 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 E3 6C C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 24 02 00 35 04 06 00 18 AF 43 BB F0 EF 30 CF 8E A8 44 11 52 4F [22:40: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 37 36 4F 00 00 00 87 6D 47 00 36 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 82 24 02 00 F4 03 04 00 73 13 C6 66 B6 04 01 00 00 40 57 78 16 AC 64 9C 3B [22:40:36]CommunicateWithHost err = 0 [22:40:36]CheckOFDResponse [22:40:36]1017 (14) - 77093643461234 [22:40:36]1041 (16) - 0000000000871776 [22:40:36]1040 (4) - 140418 [22:40:36]1012 (4) - 21.08.2024 16:18 [22:40:36]1206 (1) - 0 [22:40:36]OFD Sender: Remove packet 140418 [22:40:36]ProducePacketName [22:40:36]name=ofd_packets/00140418 [22:40:36]NVStorageDeleteData [22:40:36]Write to MH i2c: 01 00 00 FB 2A 25 [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 07 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: 01 07 00 FB 2A 00 00 00 00 00 DB 0C 13 [22:40:36]RasterBufferAndPrint [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]line [22:40:36]written 0, free lines is 3301 [22:40:36]MH_Cut [22:40:36]Write to MH i2c: D1 01 00 02 2B 01 FF [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: D1 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: D1 01 00 [22:40:36]MH_I2C_Read... [22:40:36]Read from MH i2c: D1 01 00 02 2B 00 FE [22:40:36]Write to MH i2c: 01 00 00 03 2B 2E [22:40:36]Write i2c OK [22:40:36]MH_I2C_Read... [22:40:36]OFD Sender: No OFD packet to send [22:40:37]*** Cut start [22:40:37]*** Partial cut [22:40:37]*** CUTSNS_PIN = 1 [22:40:37]*** CUTSNS_PIN = 0 [22:40:37]*** Brake cut motor [22:40:37]Read from MH i2c: 01 [22:40:37]MH_I2C_Read... [22:40:37]*** Stop cut motor [22:40:37]*** Cut end [22:40:37]Read from MH i2c: 01 07 00 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: 01 07 00 03 2B 00 00 00 00 00 FF 0F 43 [22:40:37]process_action close_receipt done [22:40:37]requested_data is exist [22:40:37]produce_requested_data [22:40:37]requested_item fm.sn is exist - process it [22:40:37]wFMCommunicate request_size=4 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 11 00 00 [22:40:37]Write to MH i2c: E2 08 00 04 2B 80 11 00 00 00 00 00 00 A9 [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:37]Read from MH i2c: E2 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 17 00 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 17 00 04 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 00 [22:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:40:37]wFMCommunicate OK [22:40:37]requested_item fd.num is exist - process it [22:40:37]SAM_PROTO_GetFieldsCounters [22:40:37]wFMCommunicate request_size=4 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 13 00 00 [22:40:37]Write to MH i2c: E2 08 00 05 2B 80 13 00 00 00 00 00 00 AC [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:37]Read from MH i2c: E2 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 62 00 [22:40:37]MH_I2C_Read... [22:40:37]Read from MH i2c: E2 62 00 05 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 24 02 00 0E 04 04 00 C6 01 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 62 [22:40: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 82 24 02 00 0E 04 04 00 C6 01 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 [22:40:37]wFMCommunicate OK [22:40:37]SAM_PROTO_GetFieldsCounters done [22:40:37]requested_item shift.num is exist - process it [22:40:37]requested_item shift.opened is exist - process it [22:40:37]req_shift_opened [22:40:37]FM_GetShiftState [22:40:37]SAM_PROTO_GetShiftState [22:40:37]wFMCommunicate request_size=4 [22:40:37]MH_SAM_APDU [22:40:37]CAPDU: 80 13 01 00 [22:40:37]Write to MH i2c: E2 08 00 06 2B 80 13 01 00 00 00 00 00 AE [22:40:37]Write i2c OK [22:40:37]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0E 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0E 00 06 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 2E [22:40:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:40:38]wFMCommunicate OK [22:40:38]SAM_PROTO_GetShiftState done [22:40:38]FM_GetShiftState done [22:40:38]req_shift_opened done [22:40:38]requested_item shift.open_date is exist - process it [22:40:38]req_shift_open_date [22:40:38]req_shift_open_date done [22:40:38]produce_requested_data done [22:40:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140418,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:40:38]process_action_free close_receipt [22:40:38]json_value_free [22:40:38]json_value_free done [22:40:38]process_json_proto returns [22:40:38]Send response to host [22:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140418,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:40:38]free response buf [22:40:38]execute_script done [22:40:38]execute_script returns [22:40:38]free content buf [22:40:38]Sock 7.Close socket [22:40:38]Sock 7.Thread stoped [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [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:48]accept exits with 10 [22:49:48]New connection [22:49:48]New thread 3067612516 created [22:49:48]Thread 3067469156 joined [22:49:48]Waiting for new connection... [22:49:48] Sock 10.Parse request [22:49:48]Sock 10.Check first char [22:49:48]Sock 10.First char is OK [22:49:48]request: POST /json_proto HTTP/1.0 [22:49:48]Method: POST [22:49:48]URL: /json_proto [22:49:48]Method is POST - this is cgi request [22:49:48]url: /json_proto [22:49:48]query_string will be loaded in cgi processing [22:49:48]execute_cgi json_proto POST (null) [22:49:48]execute_cgi path=json_proto method=POST [22:49:48]POST find Content-Length [22:49:48]Host: 172.17.45.67:8080 [22:49:48]Content-Length: 678 [22:49:48]Content-Type: application/json [22:49:48] [22:49:48]POST finish read [22:49:48]Found Content-Length = 678 [22:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:48]execute_script... [22:49: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)594277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:48]POST & json_proto [22:49:48]process_json_proto [22:49:48]json parsed OK: [22:49:48]protocol is kg_v1.0 [22:49:48]action value=close_receipt [22:49:48]process_action close_receipt [22:49:48]cmd_close_receipt [22:49:48]MH_GetDate [22:49:48]Write to MH i2c: F0 00 00 07 2B 21 [22:49:48]Write i2c OK [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: F0 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: F0 09 00 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: F0 09 00 07 2B 00 0D 6F C6 66 5F 7F 2B 66 41 [22:49:48]GetLastDocTimeStamp 1724280035 [22:49:48]current date 1724280589 [22:49:48]FM_GetShiftState [22:49:48]SAM_PROTO_GetShiftState [22:49:48]wFMCommunicate request_size=4 [22:49:48]MH_SAM_APDU [22:49:48]CAPDU: 80 13 01 00 [22:49:48]Write to MH i2c: E2 08 00 08 2B 80 13 01 00 00 00 00 00 B0 [22:49:48]Write i2c OK [22:49:48]MH_I2C_Read... [22:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:48]Read from MH i2c: E2 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: E2 0E 00 [22:49:48]MH_I2C_Read... [22:49:48]Read from MH i2c: E2 0E 00 08 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 30 [22:49:48]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:49:48]wFMCommunicate OK [22:49:48]SAM_PROTO_GetShiftState done [22:49:48]FM_GetShiftState done [22:49:48]opened in 1724200467 [22:49:48]opened+sec_in_day 1724286867 [22:49:48]quantity*price = 80004 [22:49:48]sum+1 = 80005 [22:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 436 21.08.2024 22:49 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140419 ФПД: 265524872315761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T224949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140419&fm=265524872315761&tin=02508201610067®Number=0000000000092569&sum=80000 [22:49:49]StoreToDocumentArchive [22:49:49]shift 454 fd 140419 [22:49:49]save to /storage/0454/doc_00140419 [22:49:49]save last doc name /storage/0454/doc_00140419 to /storage/kkm_last_doc_name [22:49:49]save OK [22:49:49]Clear old archive folders... [22:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:49]tlvbuf is 00C31BA0 [22:49:49]SAM_PROTO_ClearQueue [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 09 00 00 [22:49:49]Write to MH i2c: E2 08 00 15 2B 80 09 00 00 00 00 00 00 B2 [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:49]Read from MH i2c: E2 03 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 15 2B 00 90 00 B4 [22:49:49]RAPDU: 90 00 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_ClearQueue done [22:49:49]KKMCreateOFDPacket [22:49:49]OFDProtocolAddRootSTLVToBuf [22:49:49]FM_MakeSignedData [22:49:49]FM_MakeSignedData [22:49:49]SAM_PROTO_SignData [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 0D 01 02 [22:49:49]Write to MH i2c: E2 08 00 16 2B 80 0D 01 02 00 00 00 00 BA [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 16 2B 00 90 00 B5 [22:49:49]RAPDU: 90 00 [22:49:49]wFMCommunicate OK [22:49:49]wFMCommunicate request_size=255 [22:49:49]MH_SAM_APDU [22:49: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 0D 6F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 24 02 00 35 04 06 00 F1 [22:49:49]Write to MH i2c: E2 02 01 17 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 0D 6F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 24 02 00 35 04 06 00 F1 00 00 AE [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 17 2B 00 90 00 B6 [22:49:49]RAPDU: 90 00 [22:49:49]wFMCommunicate OK [22:49:49]wFMCommunicate request_size=10 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 0D 02 02 05 7E 53 B1 83 71 [22:49:49]Write to MH i2c: E2 0D 00 18 2B 80 0D 02 02 05 00 7E 53 B1 83 71 00 00 3D [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 03 00 18 2B 00 90 00 B7 [22:49:49]RAPDU: 90 00 [22:49:49]wFMCommunicate OK [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 0D 03 02 [22:49:49]Write to MH i2c: E2 08 00 19 2B 80 0D 03 02 00 00 00 00 BF [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 0B 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 0B 00 19 2B 00 02 2A F9 D3 C5 25 CB 86 90 00 F3 [22:49:49]RAPDU: 02 2A F9 D3 C5 25 CB 86 90 00 [22:49:49]wFMCommunicate OK [22:49:49]SAM_PROTO_SignData done [22:49:49]FM_MakeSignedData done [22:49:49]CreateOFDProtocolMessage [22:49:49]wFMCommunicate request_size=4 [22:49:49]MH_SAM_APDU [22:49:49]CAPDU: 80 11 00 00 [22:49:49]Write to MH i2c: E2 08 00 1A 2B 80 11 00 00 00 00 00 00 BF [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:49]Read from MH i2c: E2 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: E2 17 00 1A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [22:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:49:49]wFMCommunicate OK [22:49:49]CreateOFDProtocolMessage done [22:49:49]OFDSenderStorePacket 140419 [22:49:49]StoreOFDPacket docnum=140419 [22:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 2B C1 07 01 4A 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 0D 6F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 24 02 00 35 04 06 00 F1 7E 53 B1 83 71 02 2A F9 D3 C5 25 CB 86 [22:49:49]CheckFolder [22:49:49]dirname=/storage/ofd_packets [22:49:49]CheckFolder done [22:49:49]ProducePacketName [22:49:49]name=ofd_packets/00140419 [22:49:49]NVStorageSaveData ofd_packets/00140419 [22:49:49]File name is /storage/ofd_packets/00140419 [22:49:49]Write 301 bytes [22:49:49]NVStorageSaveData done [22:49:49]OFDSenderStorePacket done [22:49:49]KKMCreateOFDPacket done [22:49:49]NVStorageSaveData kkm_last_timestamp [22:49:49]File name is /storage/kkm_last_timestamp [22:49:49]Write 4 bytes [22:49:49]NVStorageSaveData done [22:49:49]ExternCall_PrintAddStr [22:49:49]wPrintStart [22:49:49]Write to MH i2c: 01 00 00 1B 2B 46 [22:49:49]Write i2c OK [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: 01 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: 01 07 00 [22:49:49]MH_I2C_Read... [22:49:49]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 FF 0F 5B [22:49:49]RasterBufferAndPrint [22:49:49]line Счет N : (1)594277 [22:49:49]line ИНН: 02508201610067 [22:49:49]line Контрольно-Кассовый Чек [22:49:49]line ПРОДАЖА [22:49:49]line ТРК (МРК, ГНК) : 42 [22:49:49]line Товар: 2710124130 [22:49:49]line Аи-92-К-5 [22:49:49]line 11.800 * 67.80 [22:49:49]line = 800.04 [22:49:49]line НДС 12% НСП 1% [22:49:49]line > о реализуемом товаре [22:49:49]line ОКРУГЛЕНИЕ: -0.04 [22:49:49]line ИТОГО: 800.00 [22:49:49]line Внесено: 800.00 [22:49:49]line СДАЧА: 0.00 [22:49:49]line НСП 1% : 7.08 [22:49:49]line НДС 12% : 84.96 [22:49:49]line Наличными: 800.00 [22:49:49]line Безнал.: 0.00 [22:49:49]line Место: АЗС № 136 "Партнер Нефть" [22:49:49]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:49:49]line СНО: Общий режим [22:49:49]line Чек 436 21.08.2024 22:49 [22:49:49]line Смена: 454 ФФД: 1.0 [22:49:49]line ЗНМ: 0300000067 [22:49:49]line РНМ: 0000000000092569 [22:49:49]line Версия ККМ: 001 [22:49:49]line ФМ: 0000000000871776 [22:49:49]line ФД: 140419 [22:49:50]line ФПД: 265524872315761 [22:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T224949&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140419&fm=265524872315761&tin=02508201610067®Number=0000000000092569&sum=80000 [22:49:50]OFD Sender: Processing packet 140419 [packets to send 137, broken 136] [22:49:50]ProducePacketName [22:49:50]name=ofd_packets/00140419 [22:49:50]OFD Sender: To server: pG, [22:49:50]CommunicateWithHost lk.salyk.kg:30040 [22:49:50]ConnectInit lk.salyk.kg [22:49:50]written 0, free lines is 4095 [22:49:50]Connected sock=9 [22:49: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 37 36 0F 01 00 00 2B C1 07 01 4A 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 0D 6F C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 83 24 02 00 35 04 06 00 F1 7E 53 B1 83 71 02 2A F9 D3 C5 25 CB 86 [22:49: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 37 36 4F 00 00 00 4B 57 47 00 43 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 37 36 10 04 04 00 83 24 02 00 F4 03 04 00 9D 15 C6 66 B6 04 01 00 00 C1 86 35 2A E3 4C 02 6C [22:49:50]CommunicateWithHost err = 0 [22:49:50]CheckOFDResponse [22:49:50]1017 (14) - 77093643461234 [22:49:50]1041 (16) - 0000000000871776 [22:49:50]1040 (4) - 140419 [22:49:50]1012 (4) - 21.08.2024 16:28 [22:49:50]1206 (1) - 0 [22:49:50]OFD Sender: Remove packet 140419 [22:49:50]ProducePacketName [22:49:50]name=ofd_packets/00140419 [22:49:50]NVStorageDeleteData [22:49:50]Write to MH i2c: 01 00 00 46 2B 71 [22:49:50]Write i2c OK [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: 01 [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: 01 07 00 [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: 01 07 00 46 2B 00 00 00 00 00 D2 0C 56 [22:49:50]RasterBufferAndPrint [22:49:50]line [22:49:50]line [22:49:50]line [22:49:50]line [22:49:50]line [22:49:50]written 0, free lines is 3289 [22:49:50]MH_Cut [22:49:50]Write to MH i2c: D1 01 00 4D 2B 01 4A [22:49:50]Write i2c OK [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: D1 [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: D1 01 00 [22:49:50]MH_I2C_Read... [22:49:50]Read from MH i2c: D1 01 00 4D 2B 00 49 [22:49:50]Write to MH i2c: 01 00 00 4E 2B 79 [22:49:50]Write i2c OK [22:49:50]MH_I2C_Read... [22:49:51]OFD Sender: No OFD packet to send [22:49:51]*** Cut start [22:49:51]*** Partial cut [22:49:51]*** CUTSNS_PIN = 1 [22:49:51]*** CUTSNS_PIN = 0 [22:49:51]*** Brake cut motor [22:49:52]Read from MH i2c: 01 [22:49:52]MH_I2C_Read... [22:49:52]*** Stop cut motor [22:49:52]*** Cut end [22:49:52]Read from MH i2c: 01 07 00 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: 01 07 00 4E 2B 00 00 00 00 00 FF 0F 8E [22:49:52]process_action close_receipt done [22:49:52]requested_data is exist [22:49:52]produce_requested_data [22:49:52]requested_item fm.sn is exist - process it [22:49:52]wFMCommunicate request_size=4 [22:49:52]MH_SAM_APDU [22:49:52]CAPDU: 80 11 00 00 [22:49:52]Write to MH i2c: E2 08 00 4F 2B 80 11 00 00 00 00 00 00 F4 [22:49:52]Write i2c OK [22:49:52]MH_I2C_Read... [22:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:52]Read from MH i2c: E2 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 17 00 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 17 00 4F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [22:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:49:52]wFMCommunicate OK [22:49:52]requested_item fd.num is exist - process it [22:49:52]SAM_PROTO_GetFieldsCounters [22:49:52]wFMCommunicate request_size=4 [22:49:52]MH_SAM_APDU [22:49:52]CAPDU: 80 13 00 00 [22:49:52]Write to MH i2c: E2 08 00 50 2B 80 13 00 00 00 00 00 00 F7 [22:49:52]Write i2c OK [22:49:52]MH_I2C_Read... [22:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:52]Read from MH i2c: E2 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 62 00 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 62 00 50 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 24 02 00 0E 04 04 00 C6 01 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 B1 [22:49: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 83 24 02 00 0E 04 04 00 C6 01 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 [22:49:52]wFMCommunicate OK [22:49:52]SAM_PROTO_GetFieldsCounters done [22:49:52]requested_item shift.num is exist - process it [22:49:52]requested_item shift.opened is exist - process it [22:49:52]req_shift_opened [22:49:52]FM_GetShiftState [22:49:52]SAM_PROTO_GetShiftState [22:49:52]wFMCommunicate request_size=4 [22:49:52]MH_SAM_APDU [22:49:52]CAPDU: 80 13 01 00 [22:49:52]Write to MH i2c: E2 08 00 51 2B 80 13 01 00 00 00 00 00 F9 [22:49:52]Write i2c OK [22:49:52]MH_I2C_Read... [22:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:52]Read from MH i2c: E2 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 0E 00 [22:49:52]MH_I2C_Read... [22:49:52]Read from MH i2c: E2 0E 00 51 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 79 [22:49:52]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:49:52]wFMCommunicate OK [22:49:52]SAM_PROTO_GetShiftState done [22:49:52]FM_GetShiftState done [22:49:52]req_shift_opened done [22:49:52]requested_item shift.open_date is exist - process it [22:49:52]req_shift_open_date [22:49:52]req_shift_open_date done [22:49:52]produce_requested_data done [22:49:52]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140419,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:49:52]process_action_free close_receipt [22:49:52]json_value_free [22:49:52]json_value_free done [22:49:52]process_json_proto returns [22:49:52]Send response to host [22:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140419,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:49:52]free response buf [22:49:52]execute_script done [22:49:52]execute_script returns [22:49:52]free content buf [22:49:52]Sock 10.Close socket [22:49:52]Sock 10.Thread stoped [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:32]accept exits with 7 [22:54:32]New connection [22:54:32]New thread 3067469156 created [22:54:32]Thread 3067612516 joined [22:54:32]Waiting for new connection... [22:54:32] Sock 7.Parse request [22:54:32]Sock 7.Check first char [22:54:32]Sock 7.First char is OK [22:54:32]request: POST /json_proto HTTP/1.0 [22:54:32]Method: POST [22:54:32]URL: /json_proto [22:54:32]Method is POST - this is cgi request [22:54:32]url: /json_proto [22:54:32]query_string will be loaded in cgi processing [22:54:32]execute_cgi json_proto POST (null) [22:54:32]execute_cgi path=json_proto method=POST [22:54:32]POST find Content-Length [22:54:32]Host: 172.17.45.67:8080 [22:54:32]Content-Length: 677 [22:54:32]Content-Type: application/json [22:54:32] [22:54:32]POST finish read [22:54:32]Found Content-Length = 677 [22:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:32]execute_script... [22:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 4.050, "sum" : 300.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:32]POST & json_proto [22:54:32]process_json_proto [22:54:32]json parsed OK: [22:54:32]protocol is kg_v1.0 [22:54:32]action value=close_receipt [22:54:32]process_action close_receipt [22:54:32]cmd_close_receipt [22:54:32]MH_GetDate [22:54:32]Write to MH i2c: F0 00 00 52 2B 6C [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: F0 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: F0 09 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: F0 09 00 52 2B 00 29 70 C6 66 5F 7F 2B 66 A9 [22:54:32]GetLastDocTimeStamp 1724280589 [22:54:32]current date 1724280873 [22:54:32]FM_GetShiftState [22:54:32]SAM_PROTO_GetShiftState [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 13 01 00 [22:54:32]Write to MH i2c: E2 08 00 53 2B 80 13 01 00 00 00 00 00 FB [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 53 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [22:54:32]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_GetShiftState done [22:54:32]FM_GetShiftState done [22:54:32]opened in 1724200467 [22:54:32]opened+sec_in_day 1724286867 [22:54:32]quantity*price = 30051 [22:54:32]sum+1 = 30052 [22:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 437 21.08.2024 22:54 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140420 ФПД: 201345329558614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140420&fm=201345329558614&tin=02508201610067®Number=0000000000092569&sum=30000 [22:54:33]StoreToDocumentArchive [22:54:33]shift 454 fd 140420 [22:54:33]save to /storage/0454/doc_00140420 [22:54:33]save last doc name /storage/0454/doc_00140420 to /storage/kkm_last_doc_name [22:54:33]save OK [22:54:33]Clear old archive folders... [22:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:33]tlvbuf is 00C276C0 [22:54:33]SAM_PROTO_ClearQueue [22:54:33]wFMCommunicate request_size=4 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 09 00 00 [22:54:33]Write to MH i2c: E2 08 00 60 2B 80 09 00 00 00 00 00 00 FD [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 60 2B 00 90 00 FF [22:54:33]RAPDU: 90 00 [22:54:33]wFMCommunicate OK [22:54:33]SAM_PROTO_ClearQueue done [22:54:33]KKMCreateOFDPacket [22:54:33]OFDProtocolAddRootSTLVToBuf [22:54:33]FM_MakeSignedData [22:54:33]FM_MakeSignedData [22:54:33]SAM_PROTO_SignData [22:54:33]wFMCommunicate request_size=4 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 0D 01 02 [22:54:33]Write to MH i2c: E2 08 00 61 2B 80 0D 01 02 00 00 00 00 05 [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 61 2B 00 90 00 00 [22:54:33]RAPDU: 90 00 [22:54:33]wFMCommunicate OK [22:54:33]wFMCommunicate request_size=255 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 29 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 24 02 00 35 04 06 00 B7 [22:54:33]Write to MH i2c: E2 02 01 62 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 29 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 24 02 00 35 04 06 00 B7 00 00 69 [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 62 2B 00 90 00 01 [22:54:33]RAPDU: 90 00 [22:54:33]wFMCommunicate OK [22:54:33]wFMCommunicate request_size=10 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 0D 02 02 05 1F 5C D8 74 56 [22:54:33]Write to MH i2c: E2 0D 00 63 2B 80 0D 02 02 05 00 1F 5C D8 74 56 00 00 2F [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:34]Read from MH i2c: E2 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 03 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 03 00 63 2B 00 90 00 02 [22:54:34]RAPDU: 90 00 [22:54:34]wFMCommunicate OK [22:54:34]wFMCommunicate request_size=4 [22:54:34]MH_SAM_APDU [22:54:34]CAPDU: 80 0D 03 02 [22:54:34]Write to MH i2c: E2 08 00 64 2B 80 0D 03 02 00 00 00 00 0A [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:34]Read from MH i2c: E2 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 0B 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 0B 00 64 2B 00 BF 48 AA E9 93 46 2D 54 90 00 FF [22:54:34]RAPDU: BF 48 AA E9 93 46 2D 54 90 00 [22:54:34]wFMCommunicate OK [22:54:34]SAM_PROTO_SignData done [22:54:34]FM_MakeSignedData done [22:54:34]CreateOFDProtocolMessage [22:54:34]wFMCommunicate request_size=4 [22:54:34]MH_SAM_APDU [22:54:34]CAPDU: 80 11 00 00 [22:54:34]Write to MH i2c: E2 08 00 65 2B 80 11 00 00 00 00 00 00 0A [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:34]Read from MH i2c: E2 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 17 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: E2 17 00 65 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [22:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:54:34]wFMCommunicate OK [22:54:34]CreateOFDProtocolMessage done [22:54:34]OFDSenderStorePacket 140420 [22:54:34]StoreOFDPacket docnum=140420 [22:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 B0 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 29 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 24 02 00 35 04 06 00 B7 1F 5C D8 74 56 BF 48 AA E9 93 46 2D 54 [22:54:34]CheckFolder [22:54:34]dirname=/storage/ofd_packets [22:54:34]CheckFolder done [22:54:34]ProducePacketName [22:54:34]name=ofd_packets/00140420 [22:54:34]NVStorageSaveData ofd_packets/00140420 [22:54:34]File name is /storage/ofd_packets/00140420 [22:54:34]Write 301 bytes [22:54:34]NVStorageSaveData done [22:54:34]OFDSenderStorePacket done [22:54:34]KKMCreateOFDPacket done [22:54:34]NVStorageSaveData kkm_last_timestamp [22:54:34]File name is /storage/kkm_last_timestamp [22:54:34]Write 4 bytes [22:54:34]NVStorageSaveData done [22:54:34]ExternCall_PrintAddStr [22:54:34]wPrintStart [22:54:34]Write to MH i2c: 01 00 00 66 2B 91 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 66 2B 00 00 00 00 00 FF 0F A6 [22:54:34]RasterBufferAndPrint [22:54:34]line Счет N : (1)594278 [22:54:34]line ИНН: 02508201610067 [22:54:34]line Контрольно-Кассовый Чек [22:54:34]line ПРОДАЖА [22:54:34]line ТРК (МРК, ГНК) : 61 [22:54:34]line Товар: 2710124500 [22:54:34]line Аи-95-К-5 [22:54:34]line 4.050 * 74.20 [22:54:34]line = 300.51 [22:54:34]line НДС 12% НСП 1% [22:54:34]line > о реализуемом товаре [22:54:34]line ОКРУГЛЕНИЕ: -0.51 [22:54:34]line ИТОГО: 300.00 [22:54:34]line Внесено: 300.00 [22:54:34]line СДАЧА: 0.00 [22:54:34]line НСП 1% : 2.66 [22:54:34]line НДС 12% : 31.91 [22:54:34]line Наличными: 300.00 [22:54:34]line Безнал.: 0.00 [22:54:34]line Место: АЗС № 136 "Партнер Нефть" [22:54:34]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:54:34]line СНО: Общий режим [22:54:34]line Чек 437 21.08.2024 22:54 [22:54:34]line Смена: 454 ФФД: 1.0 [22:54:34]line ЗНМ: 0300000067 [22:54:34]line РНМ: 0000000000092569 [22:54:34]line Версия ККМ: 001 [22:54:34]line ФМ: 0000000000871776 [22:54:34]line ФД: 140420 [22:54:34]line ФПД: 201345329558614 [22:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225433&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140420&fm=201345329558614&tin=02508201610067®Number=0000000000092569&sum=30000 [22:54:34]written 0, free lines is 4095 [22:54:34]OFD Sender: Processing packet 140420 [packets to send 137, broken 136] [22:54:34]ProducePacketName [22:54:34]name=ofd_packets/00140420 [22:54:34]OFD Sender: To server: pG, [22:54:34]CommunicateWithHost lk.salyk.kg:30040 [22:54:34]ConnectInit lk.salyk.kg [22:54:34]Connected sock=10 [22:54: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 37 36 0F 01 00 00 E2 B0 07 01 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 63 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 01 00 00 F4 03 04 00 29 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 24 02 00 35 04 06 00 B7 1F 5C D8 74 56 BF 48 AA E9 93 46 2D 54 [22:54: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 37 36 4F 00 00 00 E9 EE 47 00 2A A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 84 24 02 00 F4 03 04 00 B9 16 C6 66 B6 04 01 00 00 30 A8 AB D6 35 18 99 BD [22:54:34]CommunicateWithHost err = 0 [22:54:34]CheckOFDResponse [22:54:34]1017 (14) - 77093643461234 [22:54:34]1041 (16) - 0000000000871776 [22:54:34]1040 (4) - 140420 [22:54:34]1012 (4) - 21.08.2024 16:32 [22:54:34]1206 (1) - 0 [22:54:34]OFD Sender: Remove packet 140420 [22:54:34]ProducePacketName [22:54:34]name=ofd_packets/00140420 [22:54:34]NVStorageDeleteData [22:54:34]Write to MH i2c: 01 00 00 91 2B BC [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 C2 0C 91 [22:54:34]RasterBufferAndPrint [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]written 0, free lines is 3275 [22:54:34]MH_Cut [22:54:34]Write to MH i2c: D1 01 00 98 2B 01 95 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 01 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 01 00 98 2B 00 94 [22:54:34]Write to MH i2c: 01 00 00 99 2B C4 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:35]OFD Sender: No OFD packet to send [22:54:35]*** Cut start [22:54:35]*** Partial cut [22:54:35]*** CUTSNS_PIN = 1 [22:54:35]*** CUTSNS_PIN = 0 [22:54:35]*** Brake cut motor [22:54:36]Read from MH i2c: 01 [22:54:36]MH_I2C_Read... [22:54:36]*** Stop cut motor [22:54:36]*** Cut end [22:54:36]Read from MH i2c: 01 07 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: 01 07 00 99 2B 00 00 00 00 00 FF 0F D9 [22:54:36]process_action close_receipt done [22:54:36]requested_data is exist [22:54:36]produce_requested_data [22:54:36]requested_item fm.sn is exist - process it [22:54:36]wFMCommunicate request_size=4 [22:54:36]MH_SAM_APDU [22:54:36]CAPDU: 80 11 00 00 [22:54:36]Write to MH i2c: E2 08 00 9A 2B 80 11 00 00 00 00 00 00 3F [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:36]Read from MH i2c: E2 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 17 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 17 00 9A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 96 [22:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:54:36]wFMCommunicate OK [22:54:36]requested_item fd.num is exist - process it [22:54:36]SAM_PROTO_GetFieldsCounters [22:54:36]wFMCommunicate request_size=4 [22:54:36]MH_SAM_APDU [22:54:36]CAPDU: 80 13 00 00 [22:54:36]Write to MH i2c: E2 08 00 9B 2B 80 13 00 00 00 00 00 00 42 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:36]Read from MH i2c: E2 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 62 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 62 00 9B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 24 02 00 0E 04 04 00 C6 01 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 00 [22:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 84 24 02 00 0E 04 04 00 C6 01 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 [22:54:36]wFMCommunicate OK [22:54:36]SAM_PROTO_GetFieldsCounters done [22:54:36]requested_item shift.num is exist - process it [22:54:36]requested_item shift.opened is exist - process it [22:54:36]req_shift_opened [22:54:36]FM_GetShiftState [22:54:36]SAM_PROTO_GetShiftState [22:54:36]wFMCommunicate request_size=4 [22:54:36]MH_SAM_APDU [22:54:36]CAPDU: 80 13 01 00 [22:54:36]Write to MH i2c: E2 08 00 9C 2B 80 13 01 00 00 00 00 00 44 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:36]Read from MH i2c: E2 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 0E 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 0E 00 9C 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C4 [22:54:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:54:36]wFMCommunicate OK [22:54:36]SAM_PROTO_GetShiftState done [22:54:36]FM_GetShiftState done [22:54:36]req_shift_opened done [22:54:36]requested_item shift.open_date is exist - process it [22:54:36]req_shift_open_date [22:54:36]req_shift_open_date done [22:54:36]produce_requested_data done [22:54:36]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140420,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:54:36]process_action_free close_receipt [22:54:36]json_value_free [22:54:36]json_value_free done [22:54:36]process_json_proto returns [22:54:36]Send response to host [22:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140420,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:54:36]free response buf [22:54:36]execute_script done [22:54:36]execute_script returns [22:54:36]free content buf [22:54:36]Sock 7.Close socket [22:54:36]Sock 7.Thread stoped [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:20]accept exits with 9 [22:56:20]New connection [22:56:20]New thread 3067612516 created [22:56:20]Thread 3067469156 joined [22:56:20]Waiting for new connection... [22:56:20] Sock 9.Parse request [22:56:20]Sock 9.Check first char [22:56:20]Sock 9.First char is OK [22:56:20]request: POST /json_proto HTTP/1.0 [22:56:20]Method: POST [22:56:20]URL: /json_proto [22:56:20]Method is POST - this is cgi request [22:56:20]url: /json_proto [22:56:20]query_string will be loaded in cgi processing [22:56:20]execute_cgi json_proto POST (null) [22:56:20]execute_cgi path=json_proto method=POST [22:56:20]POST find Content-Length [22:56:20]Host: 172.17.45.67:8080 [22:56:20]Content-Length: 677 [22:56:20]Content-Type: application/json [22:56:20] [22:56:20]POST finish read [22:56:20]Found Content-Length = 677 [22:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:56:20]execute_script... [22:56:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [22:56:20]POST & json_proto [22:56:20]process_json_proto [22:56:20]json parsed OK: [22:56:20]protocol is kg_v1.0 [22:56:20]action value=close_receipt [22:56:20]process_action close_receipt [22:56:20]cmd_close_receipt [22:56:20]MH_GetDate [22:56:20]Write to MH i2c: F0 00 00 9D 2B B7 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 9D 2B 00 96 70 C6 66 5F 7F 2B 66 61 [22:56:20]GetLastDocTimeStamp 1724280873 [22:56:20]current date 1724280982 [22:56:20]FM_GetShiftState [22:56:20]SAM_PROTO_GetShiftState [22:56:20]wFMCommunicate request_size=4 [22:56:20]MH_SAM_APDU [22:56:20]CAPDU: 80 13 01 00 [22:56:20]Write to MH i2c: E2 08 00 9E 2B 80 13 01 00 00 00 00 00 46 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:21]Read from MH i2c: E2 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 0E 00 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 0E 00 9E 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C6 [22:56:21]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:56:21]wFMCommunicate OK [22:56:21]SAM_PROTO_GetShiftState done [22:56:21]FM_GetShiftState done [22:56:21]opened in 1724200467 [22:56:21]opened+sec_in_day 1724286867 [22:56:21]quantity*price = 60003 [22:56:21]sum+1 = 60004 [22:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 438 21.08.2024 22:56 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140421 ФПД: 9585337910913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140421&fm=9585337910913&tin=02508201610067®Number=0000000000092569&sum=60000 [22:56:22]StoreToDocumentArchive [22:56:22]shift 454 fd 140421 [22:56:22]save to /storage/0454/doc_00140421 [22:56:22]save last doc name /storage/0454/doc_00140421 to /storage/kkm_last_doc_name [22:56:22]save OK [22:56:22]Clear old archive folders... [22:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:22]tlvbuf is 00CC8950 [22:56:22]SAM_PROTO_ClearQueue [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 09 00 00 [22:56:22]Write to MH i2c: E2 08 00 AB 2B 80 09 00 00 00 00 00 00 48 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 AB 2B 00 90 00 4A [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_ClearQueue done [22:56:22]KKMCreateOFDPacket [22:56:22]OFDProtocolAddRootSTLVToBuf [22:56:22]FM_MakeSignedData [22:56:22]FM_MakeSignedData [22:56:22]SAM_PROTO_SignData [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 01 02 [22:56:22]Write to MH i2c: E2 08 00 AC 2B 80 0D 01 02 00 00 00 00 50 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 AC 2B 00 90 00 4B [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=255 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B6 01 00 00 F4 03 04 00 96 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 24 02 00 35 04 06 00 08 [22:56:22]Write to MH i2c: E2 02 01 AD 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B6 01 00 00 F4 03 04 00 96 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 24 02 00 35 04 06 00 08 00 00 03 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 AD 2B 00 90 00 4C [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=10 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 02 02 05 B7 C2 A9 46 81 [22:56:22]Write to MH i2c: E2 0D 00 AE 2B 80 0D 02 02 05 00 B7 C2 A9 46 81 00 00 46 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 03 02 [22:56:22]Write to MH i2c: E2 08 00 AF 2B 80 0D 03 02 00 00 00 00 55 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 AF 2B 00 B4 71 B6 BD 2C 6A 85 1D 90 00 26 [22:56:22]RAPDU: B4 71 B6 BD 2C 6A 85 1D 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_SignData done [22:56:22]FM_MakeSignedData done [22:56:22]CreateOFDProtocolMessage [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 11 00 00 [22:56:22]Write to MH i2c: E2 08 00 B0 2B 80 11 00 00 00 00 00 00 55 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 B0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [22:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:56:22]wFMCommunicate OK [22:56:22]CreateOFDProtocolMessage done [22:56:22]OFDSenderStorePacket 140421 [22:56:22]StoreOFDPacket docnum=140421 [22:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 AE 07 01 67 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B6 01 00 00 F4 03 04 00 96 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 24 02 00 35 04 06 00 08 B7 C2 A9 46 81 B4 71 B6 BD 2C 6A 85 1D [22:56:22]CheckFolder [22:56:22]dirname=/storage/ofd_packets [22:56:22]CheckFolder done [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00140421 [22:56:22]NVStorageSaveData ofd_packets/00140421 [22:56:22]File name is /storage/ofd_packets/00140421 [22:56:22]Write 301 bytes [22:56:22]NVStorageSaveData done [22:56:22]OFDSenderStorePacket done [22:56:22]KKMCreateOFDPacket done [22:56:22]NVStorageSaveData kkm_last_timestamp [22:56:22]File name is /storage/kkm_last_timestamp [22:56:22]Write 4 bytes [22:56:22]NVStorageSaveData done [22:56:22]ExternCall_PrintAddStr [22:56:22]wPrintStart [22:56:22]Write to MH i2c: 01 00 00 B1 2B DC [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 FF 0F F1 [22:56:22]RasterBufferAndPrint [22:56:22]line Счет N : (1)594279 [22:56:22]line ИНН: 02508201610067 [22:56:22]line Контрольно-Кассовый Чек [22:56:22]line ПРОДАЖА [22:56:22]line ТРК (МРК, ГНК) : 42 [22:56:22]line Товар: 2710124130 [22:56:22]line Аи-92-К-5 [22:56:22]line 8.850 * 67.80 [22:56:22]line = 600.03 [22:56:22]line НДС 12% НСП 1% [22:56:22]line > о реализуемом товаре [22:56:22]line ОКРУГЛЕНИЕ: -0.03 [22:56:22]line ИТОГО: 600.00 [22:56:22]line Внесено: 600.00 [22:56:22]line СДАЧА: 0.00 [22:56:22]line НСП 1% : 5.31 [22:56:22]line НДС 12% : 63.72 [22:56:22]line Наличными: 600.00 [22:56:22]line Безнал.: 0.00 [22:56:22]line Место: АЗС № 136 "Партнер Нефть" [22:56:22]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:56:22]line СНО: Общий режим [22:56:22]line Чек 438 21.08.2024 22:56 [22:56:22]line Смена: 454 ФФД: 1.0 [22:56:22]line ЗНМ: 0300000067 [22:56:22]line РНМ: 0000000000092569 [22:56:22]line Версия ККМ: 001 [22:56:22]line ФМ: 0000000000871776 [22:56:22]line ФД: 140421 [22:56:22]line ФПД: 9585337910913 [22:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225622&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140421&fm=9585337910913&tin=02508201610067®Number=0000000000092569&sum=60000 [22:56:22]written 0, free lines is 4095 [22:56:22]OFD Sender: Processing packet 140421 [packets to send 137, broken 136] [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00140421 [22:56:22]OFD Sender: To server: pG, [22:56:22]CommunicateWithHost lk.salyk.kg:30040 [22:56:22]ConnectInit lk.salyk.kg [22:56:22]Connected sock=10 [22:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 E2 AE 07 01 67 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 B6 01 00 00 F4 03 04 00 96 70 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 85 24 02 00 35 04 06 00 08 B7 C2 A9 46 81 B4 71 B6 BD 2C 6A 85 1D [22:56: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 37 36 4F 00 00 00 DA 59 47 00 42 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 37 36 10 04 04 00 85 24 02 00 F4 03 04 00 25 17 C6 66 B6 04 01 00 00 96 C2 5B E9 2F 62 FA B5 [22:56:23]CommunicateWithHost err = 0 [22:56:23]CheckOFDResponse [22:56:23]1017 (14) - 77093643461234 [22:56:23]1041 (16) - 0000000000871776 [22:56:23]1040 (4) - 140421 [22:56:23]1012 (4) - 21.08.2024 16:34 [22:56:23]1206 (1) - 0 [22:56:23]OFD Sender: Remove packet 140421 [22:56:23]ProducePacketName [22:56:23]name=ofd_packets/00140421 [22:56:23]NVStorageDeleteData [22:56:23]Write to MH i2c: 01 00 00 DC 2B 07 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 DF 0C F9 [22:56:23]RasterBufferAndPrint [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]written 0, free lines is 3303 [22:56:23]MH_Cut [22:56:23]Write to MH i2c: D1 01 00 E3 2B 01 E0 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 E3 2B 00 DF [22:56:23]Write to MH i2c: 01 00 00 E4 2B 0F [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]OFD Sender: No OFD packet to send [22:56:23]*** Cut start [22:56:23]*** Partial cut [22:56:23]*** CUTSNS_PIN = 1 [22:56:23]*** CUTSNS_PIN = 0 [22:56:24]*** Brake cut motor [22:56:24]Read from MH i2c: 01 [22:56:24]MH_I2C_Read... [22:56:24]*** Stop cut motor [22:56:24]*** Cut end [22:56:24]Read from MH i2c: 01 07 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [22:56:24]process_action close_receipt done [22:56:24]requested_data is exist [22:56:24]produce_requested_data [22:56:24]requested_item fm.sn is exist - process it [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 11 00 00 [22:56:24]Write to MH i2c: E2 08 00 E5 2B 80 11 00 00 00 00 00 00 8A [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 E5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E1 [22:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:56:24]wFMCommunicate OK [22:56:24]requested_item fd.num is exist - process it [22:56:24]SAM_PROTO_GetFieldsCounters [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 00 00 [22:56:24]Write to MH i2c: E2 08 00 E6 2B 80 13 00 00 00 00 00 00 8D [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 E6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 24 02 00 0E 04 04 00 C6 01 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 4F [22:56: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 85 24 02 00 0E 04 04 00 C6 01 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 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetFieldsCounters done [22:56:24]requested_item shift.num is exist - process it [22:56:24]requested_item shift.opened is exist - process it [22:56:24]req_shift_opened [22:56:24]FM_GetShiftState [22:56:24]SAM_PROTO_GetShiftState [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 01 00 [22:56:24]Write to MH i2c: E2 08 00 E7 2B 80 13 01 00 00 00 00 00 8F [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 E7 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0F [22:56:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetShiftState done [22:56:24]FM_GetShiftState done [22:56:24]req_shift_opened done [22:56:24]requested_item shift.open_date is exist - process it [22:56:24]req_shift_open_date [22:56:24]req_shift_open_date done [22:56:24]produce_requested_data done [22:56:24]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140421,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:56:24]process_action_free close_receipt [22:56:24]json_value_free [22:56:24]json_value_free done [22:56:24]process_json_proto returns [22:56:24]Send response to host [22:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140421,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:56:24]free response buf [22:56:24]execute_script done [22:56:24]execute_script returns [22:56:24]free content buf [22:56:24]Sock 9.Close socket [22:56:24]Sock 9.Thread stoped [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58: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:36]accept exits with 7 [22:59:36]New connection [22:59:36]New thread 3067469156 created [22:59:36]Thread 3067612516 joined [22:59:36]Waiting for new connection... [22:59:36] Sock 7.Parse request [22:59:36]Sock 7.Check first char [22:59:36]Sock 7.First char is OK [22:59:36]request: POST /json_proto HTTP/1.0 [22:59:36]Method: POST [22:59:36]URL: /json_proto [22:59:36]Method is POST - this is cgi request [22:59:36]url: /json_proto [22:59:36]query_string will be loaded in cgi processing [22:59:36]execute_cgi json_proto POST (null) [22:59:36]execute_cgi path=json_proto method=POST [22:59:36]POST find Content-Length [22:59:36]Host: 172.17.45.67:8080 [22:59:36]Content-Length: 799 [22:59:36]Content-Type: application/json [22:59:36] [22:59:36]POST finish read [22:59:36]Found Content-Length = 799 [22:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:36]execute_script... [22:59: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)594280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 2.910, "sum" : 200.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:36]POST & json_proto [22:59:36]process_json_proto [22:59:36]json parsed OK: [22:59:36]protocol is kg_v1.0 [22:59:36]action value=close_receipt [22:59:36]process_action close_receipt [22:59:36]cmd_close_receipt [22:59:36]MH_GetDate [22:59:36]Write to MH i2c: F0 00 00 E8 2B 02 [22:59:36]Write i2c OK [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: F0 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: F0 09 00 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: F0 09 00 E8 2B 00 59 71 C6 66 5F 7F 2B 66 70 [22:59:36]GetLastDocTimeStamp 1724280982 [22:59:36]current date 1724281177 [22:59:36]FM_GetShiftState [22:59:36]SAM_PROTO_GetShiftState [22:59:36]wFMCommunicate request_size=4 [22:59:36]MH_SAM_APDU [22:59:36]CAPDU: 80 13 01 00 [22:59:36]Write to MH i2c: E2 08 00 E9 2B 80 13 01 00 00 00 00 00 91 [22:59:36]Write i2c OK [22:59:36]MH_I2C_Read... [22:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:36]Read from MH i2c: E2 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: E2 0E 00 [22:59:36]MH_I2C_Read... [22:59:36]Read from MH i2c: E2 0E 00 E9 2B 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 11 [22:59:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:59:36]wFMCommunicate OK [22:59:36]SAM_PROTO_GetShiftState done [22:59:36]FM_GetShiftState done [22:59:36]opened in 1724200467 [22:59:36]opened+sec_in_day 1724286867 [22:59:36]quantity*price = 20020 [22:59:36]sum+1 = 20022 [22:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 439 21.08.2024 22:59 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140422 ФПД: 261421751589140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225937&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140422&fm=261421751589140&tin=02508201610067®Number=0000000000092569&sum=20000 [22:59:37]StoreToDocumentArchive [22:59:37]shift 454 fd 140422 [22:59:37]save to /storage/0454/doc_00140422 [22:59:37]save last doc name /storage/0454/doc_00140422 to /storage/kkm_last_doc_name [22:59:37]save OK [22:59:37]Clear old archive folders... [22:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [22:59:37]tlvbuf is 00C8A190 [22:59:37]SAM_PROTO_ClearQueue [22:59:37]wFMCommunicate request_size=4 [22:59:37]MH_SAM_APDU [22:59:37]CAPDU: 80 09 00 00 [22:59:37]Write to MH i2c: E2 08 00 F6 2B 80 09 00 00 00 00 00 00 93 [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:37]Read from MH i2c: E2 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 F6 2B 00 90 00 95 [22:59:37]RAPDU: 90 00 [22:59:37]wFMCommunicate OK [22:59:37]SAM_PROTO_ClearQueue done [22:59:37]KKMCreateOFDPacket [22:59:37]OFDProtocolAddRootSTLVToBuf [22:59:37]FM_MakeSignedData [22:59:37]FM_MakeSignedData [22:59:37]SAM_PROTO_SignData [22:59:37]wFMCommunicate request_size=4 [22:59:37]MH_SAM_APDU [22:59:37]CAPDU: 80 0D 01 02 [22:59:37]Write to MH i2c: E2 08 00 F7 2B 80 0D 01 02 00 00 00 00 9B [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:37]Read from MH i2c: E2 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 F7 2B 00 90 00 96 [22:59:37]RAPDU: 90 00 [22:59:37]wFMCommunicate OK [22:59:37]wFMCommunicate request_size=253 [22:59:37]MH_SAM_APDU [22:59:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 59 71 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 24 02 00 35 04 06 00 ED C2 FE A3 D9 14 [22:59:37]Write to MH i2c: E2 00 01 F8 2B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 59 71 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 24 02 00 35 04 06 00 ED C2 FE A3 D9 14 00 00 84 [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:37]Read from MH i2c: E2 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 03 00 F8 2B 00 90 00 97 [22:59:37]RAPDU: 90 00 [22:59:37]wFMCommunicate OK [22:59:37]wFMCommunicate request_size=4 [22:59:37]MH_SAM_APDU [22:59:37]CAPDU: 80 0D 03 02 [22:59:37]Write to MH i2c: E2 08 00 F9 2B 80 0D 03 02 00 00 00 00 9F [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:37]Read from MH i2c: E2 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 0B 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 0B 00 F9 2B 00 72 3D C6 C3 B3 A8 A3 40 90 00 16 [22:59:37]RAPDU: 72 3D C6 C3 B3 A8 A3 40 90 00 [22:59:37]wFMCommunicate OK [22:59:37]SAM_PROTO_SignData done [22:59:37]FM_MakeSignedData done [22:59:37]CreateOFDProtocolMessage [22:59:37]wFMCommunicate request_size=4 [22:59:37]MH_SAM_APDU [22:59:37]CAPDU: 80 11 00 00 [22:59:37]Write to MH i2c: E2 08 00 FA 2B 80 11 00 00 00 00 00 00 9F [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:37]Read from MH i2c: E2 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 17 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: E2 17 00 FA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [22:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:59:37]wFMCommunicate OK [22:59:37]CreateOFDProtocolMessage done [22:59:37]OFDSenderStorePacket 140422 [22:59:37]StoreOFDPacket docnum=140422 [22:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 89 B9 00 01 2E 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 59 71 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 24 02 00 35 04 06 00 ED C2 FE A3 D9 14 72 3D C6 C3 B3 A8 A3 40 [22:59:37]CheckFolder [22:59:37]dirname=/storage/ofd_packets [22:59:37]CheckFolder done [22:59:37]ProducePacketName [22:59:37]name=ofd_packets/00140422 [22:59:37]NVStorageSaveData ofd_packets/00140422 [22:59:37]File name is /storage/ofd_packets/00140422 [22:59:37]Write 294 bytes [22:59:37]NVStorageSaveData done [22:59:37]OFDSenderStorePacket done [22:59:37]KKMCreateOFDPacket done [22:59:37]NVStorageSaveData kkm_last_timestamp [22:59:37]File name is /storage/kkm_last_timestamp [22:59:37]Write 4 bytes [22:59:37]NVStorageSaveData done [22:59:37]ExternCall_PrintAddStr [22:59:37]wPrintStart [22:59:37]Write to MH i2c: 01 00 00 FB 2B 26 [22:59:37]Write i2c OK [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: 01 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: 01 07 00 [22:59:37]MH_I2C_Read... [22:59:37]Read from MH i2c: 01 07 00 FB 2B 00 00 00 00 00 FF 0F 3B [22:59:37]RasterBufferAndPrint [22:59:37]line Счет N : (1)594280 [22:59:37]line ИНН: 02508201610067 [22:59:37]line Контрольно-Кассовый Чек [22:59:37]line ПРОДАЖА [22:59:37]line ТРК (МРК, ГНК) : 43 [22:59:37]line Товар: 2710124130 [22:59:37]line SU-92 [22:59:37]line 2.910 * 68.80 [22:59:37]line = 200.21 [22:59:37]line НДС 12% НСП 1% [22:59:37]line > о реализуемом товаре [22:59:37]line ОКРУГЛЕНИЕ: -0.21 [22:59:37]line ИТОГО: 200.00 [22:59:37]line НСП 1% : 1.77 [22:59:37]line НДС 12% : 21.26 [22:59:37]line Наличными: 0.00 [22:59:37]line Безнал.: 200.00 [22:59:37]line Место: АЗС № 136 "Партнер Нефть" [22:59:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [22:59:37]line СНО: Общий режим [22:59:37]line Чек 439 21.08.2024 22:59 [22:59:37]line Смена: 454 ФФД: 1.0 [22:59:37]line ЗНМ: 0300000067 [22:59:37]line РНМ: 0000000000092569 [22:59:37]line Версия ККМ: 001 [22:59:37]line Платежная система: O! деньги [22:59:37]line ФМ: 0000000000871776 [22:59:37]line ФД: 140422 [22:59:37]line ФПД: 261421751589140 [22:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T225937&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140422&fm=261421751589140&tin=02508201610067®Number=0000000000092569&sum=20000 [22:59:38]OFD Sender: Processing packet 140422 [packets to send 137, broken 136] [22:59:38]ProducePacketName [22:59:38]name=ofd_packets/00140422 [22:59:38]OFD Sender: To server: pG, [22:59:38]CommunicateWithHost lk.salyk.kg:30040 [22:59:38]ConnectInit lk.salyk.kg [22:59:38]written 0, free lines is 4095 [22:59:38]Connected sock=10 [22:59: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 37 36 08 01 00 00 89 B9 00 01 2E 7F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 35 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 01 00 00 F4 03 04 00 59 71 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 86 24 02 00 35 04 06 00 ED C2 FE A3 D9 14 72 3D C6 C3 B3 A8 A3 40 [22:59:38]Write to MH i2c: 01 00 00 26 2C 52 [22:59:38]Write i2c OK [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: 01 [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: 01 07 00 [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 CC 0C 31 [22:59:38]RasterBufferAndPrint [22:59:38]line [22:59:38]line [22:59:38]line [22:59:38]line [22:59:38]line [22:59:38]written 0, free lines is 3282 [22:59: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 37 36 4F 00 00 00 61 B2 47 00 B2 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 37 36 10 04 04 00 86 24 02 00 F4 03 04 00 E9 17 C6 66 B6 04 01 00 00 6B C8 40 45 07 B9 9E C2 [22:59:38]CommunicateWithHost err = 0 [22:59:38]CheckOFDResponse [22:59:38]1017 (14) - 77093643461234 [22:59:38]1041 (16) - 0000000000871776 [22:59:38]1040 (4) - 140422 [22:59:38]1012 (4) - 21.08.2024 16:38 [22:59:38]1206 (1) - 0 [22:59:38]OFD Sender: Remove packet 140422 [22:59:38]ProducePacketName [22:59:38]name=ofd_packets/00140422 [22:59:38]NVStorageDeleteData [22:59:38]MH_Cut [22:59:38]Write to MH i2c: D1 01 00 2D 2C 01 2B [22:59:38]Write i2c OK [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: D1 [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: D1 01 00 [22:59:38]MH_I2C_Read... [22:59:38]Read from MH i2c: D1 01 00 2D 2C 00 2A [22:59:38]Write to MH i2c: 01 00 00 2E 2C 5A [22:59:38]Write i2c OK [22:59:38]MH_I2C_Read... [22:59:39]OFD Sender: No OFD packet to send [22:59:39]*** Cut start [22:59:39]*** Partial cut [22:59:39]*** CUTSNS_PIN = 1 [22:59:39]*** CUTSNS_PIN = 0 [22:59:39]*** Brake cut motor [22:59:39]Read from MH i2c: 01 [22:59:40]MH_I2C_Read... [22:59:40]*** Stop cut motor [22:59:40]*** Cut end [22:59:40]Read from MH i2c: 01 07 00 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: 01 07 00 2E 2C 00 00 00 00 00 FF 0F 6F [22:59:40]process_action close_receipt done [22:59:40]requested_data is exist [22:59:40]produce_requested_data [22:59:40]requested_item fm.sn is exist - process it [22:59:40]wFMCommunicate request_size=4 [22:59:40]MH_SAM_APDU [22:59:40]CAPDU: 80 11 00 00 [22:59:40]Write to MH i2c: E2 08 00 2F 2C 80 11 00 00 00 00 00 00 D5 [22:59:40]Write i2c OK [22:59:40]MH_I2C_Read... [22:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:40]Read from MH i2c: E2 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 17 00 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 17 00 2F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [22:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [22:59:40]wFMCommunicate OK [22:59:40]requested_item fd.num is exist - process it [22:59:40]SAM_PROTO_GetFieldsCounters [22:59:40]wFMCommunicate request_size=4 [22:59:40]MH_SAM_APDU [22:59:40]CAPDU: 80 13 00 00 [22:59:40]Write to MH i2c: E2 08 00 30 2C 80 13 00 00 00 00 00 00 D8 [22:59:40]Write i2c OK [22:59:40]MH_I2C_Read... [22:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:40]Read from MH i2c: E2 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 62 00 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 62 00 30 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 24 02 00 0E 04 04 00 C6 01 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 9E [22:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 86 24 02 00 0E 04 04 00 C6 01 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 [22:59:40]wFMCommunicate OK [22:59:40]SAM_PROTO_GetFieldsCounters done [22:59:40]requested_item shift.num is exist - process it [22:59:40]requested_item shift.opened is exist - process it [22:59:40]req_shift_opened [22:59:40]FM_GetShiftState [22:59:40]SAM_PROTO_GetShiftState [22:59:40]wFMCommunicate request_size=4 [22:59:40]MH_SAM_APDU [22:59:40]CAPDU: 80 13 01 00 [22:59:40]Write to MH i2c: E2 08 00 31 2C 80 13 01 00 00 00 00 00 DA [22:59:40]Write i2c OK [22:59:40]MH_I2C_Read... [22:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:40]Read from MH i2c: E2 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 0E 00 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 0E 00 31 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5A [22:59:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [22:59:40]wFMCommunicate OK [22:59:40]SAM_PROTO_GetShiftState done [22:59:40]FM_GetShiftState done [22:59:40]req_shift_opened done [22:59:40]requested_item shift.open_date is exist - process it [22:59:40]req_shift_open_date [22:59:40]req_shift_open_date done [22:59:40]produce_requested_data done [22:59:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140422,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [22:59:40]process_action_free close_receipt [22:59:40]json_value_free [22:59:40]json_value_free done [22:59:40]process_json_proto returns [22:59:40]Send response to host [22:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140422,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [22:59:40]free response buf [22:59:40]execute_script done [22:59:40]execute_script returns [22:59:40]free content buf [22:59:40]Sock 7.Close socket [22:59:40]Sock 7.Thread stoped [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:12:58]accept exits with 9 [23:12:58]New connection [23:12:58]New thread 3067612516 created [23:12:58]Thread 3067469156 joined [23:12:58]Waiting for new connection... [23:12:58] Sock 9.Parse request [23:12:58]Sock 9.Check first char [23:12:58]Sock 9.First char is OK [23:12:58]request: POST /json_proto HTTP/1.0 [23:12:58]Method: POST [23:12:58]URL: /json_proto [23:12:58]Method is POST - this is cgi request [23:12:58]url: /json_proto [23:12:58]query_string will be loaded in cgi processing [23:12:58]execute_cgi json_proto POST (null) [23:12:58]execute_cgi path=json_proto method=POST [23:12:58]POST find Content-Length [23:12:58]Host: 172.17.45.67:8080 [23:12:58]Content-Length: 680 [23:12:58]Content-Type: application/json [23:12:58] [23:12:58]POST finish read [23:12:58]Found Content-Length = 680 [23:12:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 0.940, "sum" : 71.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 71.00, "payments": [ { "type": 0, "sum" : 71.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:58]execute_script... [23:12:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 0.940, "sum" : 71.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 71.00, "payments": [ { "type": 0, "sum" : 71.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:58]POST & json_proto [23:12:58]process_json_proto [23:12:58]json parsed OK: [23:12:58]protocol is kg_v1.0 [23:12:58]action value=close_receipt [23:12:58]process_action close_receipt [23:12:58]cmd_close_receipt [23:12:58]MH_GetDate [23:12:58]Write to MH i2c: F0 00 00 32 2C 4D [23:12:58]Write i2c OK [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: F0 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: F0 09 00 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: F0 09 00 32 2C 00 7C 74 C6 66 5F 7F 2B 66 E1 [23:12:58]GetLastDocTimeStamp 1724281177 [23:12:58]current date 1724281980 [23:12:58]FM_GetShiftState [23:12:58]SAM_PROTO_GetShiftState [23:12:58]wFMCommunicate request_size=4 [23:12:58]MH_SAM_APDU [23:12:58]CAPDU: 80 13 01 00 [23:12:58]Write to MH i2c: E2 08 00 33 2C 80 13 01 00 00 00 00 00 DC [23:12:58]Write i2c OK [23:12:58]MH_I2C_Read... [23:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:58]Read from MH i2c: E2 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 0E 00 [23:12:58]MH_I2C_Read... [23:12:58]Read from MH i2c: E2 0E 00 33 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5C [23:12:58]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:12:58]wFMCommunicate OK [23:12:58]SAM_PROTO_GetShiftState done [23:12:58]FM_GetShiftState done [23:12:58]opened in 1724200467 [23:12:58]opened+sec_in_day 1724286867 [23:12:58]quantity*price = 7162 [23:12:58]sum+1 = 7164 [23:12:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 71.00 Внесено: 1000.00 СДАЧА: 929.00 НСП 1% : 0.63 НДС 12% : 7.61 Наличными: 71.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 440 21.08.2024 23:13 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140423 ФПД: 238025142754995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140423&fm=238025142754995&tin=02508201610067®Number=0000000000092569&sum=7100 [23:12:59]StoreToDocumentArchive [23:12:59]shift 454 fd 140423 [23:12:59]save to /storage/0454/doc_00140423 [23:12:59]save last doc name /storage/0454/doc_00140423 to /storage/kkm_last_doc_name [23:12:59]save OK [23:12:59]Clear old archive folders... [23:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:12:59]tlvbuf is 00C8AA60 [23:12:59]SAM_PROTO_ClearQueue [23:12:59]wFMCommunicate request_size=4 [23:12:59]MH_SAM_APDU [23:12:59]CAPDU: 80 09 00 00 [23:12:59]Write to MH i2c: E2 08 00 40 2C 80 09 00 00 00 00 00 00 DE [23:12:59]Write i2c OK [23:12:59]MH_I2C_Read... [23:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:59]Read from MH i2c: E2 [23:12:59]MH_I2C_Read... [23:12:59]Read from MH i2c: E2 03 00 [23:12:59]MH_I2C_Read... [23:12:59]Read from MH i2c: E2 03 00 40 2C 00 90 00 E0 [23:12:59]RAPDU: 90 00 [23:12:59]wFMCommunicate OK [23:12:59]SAM_PROTO_ClearQueue done [23:12:59]KKMCreateOFDPacket [23:12:59]OFDProtocolAddRootSTLVToBuf [23:12:59]FM_MakeSignedData [23:12:59]FM_MakeSignedData [23:12:59]SAM_PROTO_SignData [23:12:59]wFMCommunicate request_size=4 [23:12:59]MH_SAM_APDU [23:12:59]CAPDU: 80 0D 01 02 [23:12:59]Write to MH i2c: E2 08 00 41 2C 80 0D 01 02 00 00 00 00 E6 [23:12:59]Write i2c OK [23:12:59]MH_I2C_Read... [23:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:59]Read from MH i2c: E2 [23:12:59]MH_I2C_Read... [23:12:59]Read from MH i2c: E2 03 00 [23:12:59]MH_I2C_Read... [23:12:59]Read from MH i2c: E2 03 00 41 2C 00 90 00 E1 [23:12:59]RAPDU: 90 00 [23:12:59]wFMCommunicate OK [23:12:59]wFMCommunicate request_size=255 [23:12:59]MH_SAM_APDU [23:12:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 02 00 00 00 00 07 04 06 00 BC 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 7C 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 24 02 00 35 04 06 00 [23:12:59]Write to MH i2c: E2 02 01 42 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 02 00 00 00 00 07 04 06 00 BC 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 7C 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 24 02 00 35 04 06 00 00 00 0C [23:12:59]Write i2c OK [23:12:59]MH_I2C_Read... [23:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:00]Read from MH i2c: E2 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 03 00 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 03 00 42 2C 00 90 00 E2 [23:13:00]RAPDU: 90 00 [23:13:00]wFMCommunicate OK [23:13:00]wFMCommunicate request_size=11 [23:13:00]MH_SAM_APDU [23:13:00]CAPDU: 80 0D 02 02 06 D8 7B 8C 14 DE B3 [23:13:00]Write to MH i2c: E2 0E 00 43 2C 80 0D 02 02 06 00 D8 7B 8C 14 DE B3 00 00 79 [23:13:00]Write i2c OK [23:13:00]MH_I2C_Read... [23:13:00]OFD Sender: No OFD packet to send [23:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:00]Read from MH i2c: E2 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 03 00 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 03 00 43 2C 00 90 00 E3 [23:13:00]RAPDU: 90 00 [23:13:00]wFMCommunicate OK [23:13:00]wFMCommunicate request_size=4 [23:13:00]MH_SAM_APDU [23:13:00]CAPDU: 80 0D 03 02 [23:13:00]Write to MH i2c: E2 08 00 44 2C 80 0D 03 02 00 00 00 00 EB [23:13:00]Write i2c OK [23:13:00]MH_I2C_Read... [23:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:00]Read from MH i2c: E2 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 0B 00 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 0B 00 44 2C 00 87 08 36 D4 B1 AD 90 85 90 00 F8 [23:13:00]RAPDU: 87 08 36 D4 B1 AD 90 85 90 00 [23:13:00]wFMCommunicate OK [23:13:00]SAM_PROTO_SignData done [23:13:00]FM_MakeSignedData done [23:13:00]CreateOFDProtocolMessage [23:13:00]wFMCommunicate request_size=4 [23:13:00]MH_SAM_APDU [23:13:00]CAPDU: 80 11 00 00 [23:13:00]Write to MH i2c: E2 08 00 45 2C 80 11 00 00 00 00 00 00 EB [23:13:00]Write i2c OK [23:13:00]MH_I2C_Read... [23:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:00]Read from MH i2c: E2 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 17 00 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: E2 17 00 45 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 42 [23:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:13:00]wFMCommunicate OK [23:13:00]CreateOFDProtocolMessage done [23:13:00]OFDSenderStorePacket 140423 [23:13:00]StoreOFDPacket docnum=140423 [23:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 8A DC 08 01 75 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 02 00 00 00 00 07 04 06 00 BC 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 7C 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 24 02 00 35 04 06 00 D8 7B 8C 14 DE B3 87 08 36 D4 B1 AD 90 85 [23:13:00]CheckFolder [23:13:00]dirname=/storage/ofd_packets [23:13:00]CheckFolder done [23:13:00]ProducePacketName [23:13:00]name=ofd_packets/00140423 [23:13:00]NVStorageSaveData ofd_packets/00140423 [23:13:00]File name is /storage/ofd_packets/00140423 [23:13:00]Write 302 bytes [23:13:00]NVStorageSaveData done [23:13:00]OFDSenderStorePacket done [23:13:00]KKMCreateOFDPacket done [23:13:00]NVStorageSaveData kkm_last_timestamp [23:13:00]File name is /storage/kkm_last_timestamp [23:13:00]Write 4 bytes [23:13:00]NVStorageSaveData done [23:13:00]ExternCall_PrintAddStr [23:13:00]wPrintStart [23:13:00]Write to MH i2c: 01 00 00 46 2C 72 [23:13:00]Write i2c OK [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: 01 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: 01 07 00 [23:13:00]MH_I2C_Read... [23:13:00]Read from MH i2c: 01 07 00 46 2C 00 00 00 00 00 FF 0F 87 [23:13:00]RasterBufferAndPrint [23:13:00]line Счет N : (1)594281 [23:13:00]line ИНН: 02508201610067 [23:13:00]line Контрольно-Кассовый Чек [23:13:00]line ПРОДАЖА [23:13:00]line ТРК (МРК, ГНК) : 34 [23:13:00]line Товар: 2710194210 [23:13:00]line ДТ(л)-К-5 [23:13:00]line 0.940 * 76.20 [23:13:00]line = 71.63 [23:13:00]line НДС 12% НСП 1% [23:13:00]line > о реализуемом товаре [23:13:00]line ОКРУГЛЕНИЕ: -0.63 [23:13:00]line ИТОГО: 71.00 [23:13:00]line Внесено: 1000.00 [23:13:00]line СДАЧА: 929.00 [23:13:00]line НСП 1% : 0.63 [23:13:00]line НДС 12% : 7.61 [23:13:00]line Наличными: 71.00 [23:13:00]line Безнал.: 0.00 [23:13:00]line Место: АЗС № 136 "Партнер Нефть" [23:13:00]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:13:00]line СНО: Общий режим [23:13:00]line Чек 440 21.08.2024 23:13 [23:13:00]line Смена: 454 ФФД: 1.0 [23:13:00]line ЗНМ: 0300000067 [23:13:00]line РНМ: 0000000000092569 [23:13:00]line Версия ККМ: 001 [23:13:00]line ФМ: 0000000000871776 [23:13:00]line ФД: 140423 [23:13:00]line ФПД: 238025142754995 [23:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231300&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140423&fm=238025142754995&tin=02508201610067®Number=0000000000092569&sum=7100 [23:13:00]OFD Sender: Processing packet 140423 [packets to send 137, broken 136] [23:13:00]ProducePacketName [23:13:00]name=ofd_packets/00140423 [23:13:00]OFD Sender: To server: pG, [23:13:00]CommunicateWithHost lk.salyk.kg:30040 [23:13:00]ConnectInit lk.salyk.kg [23:13:00]written 0, free lines is 4095 [23:13:00]Connected sock=10 [23:13: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 37 36 10 01 00 00 8A DC 08 01 75 7E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 03 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 02 00 00 00 00 07 04 06 00 BC 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 01 00 00 F4 03 04 00 7C 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 87 24 02 00 35 04 06 00 D8 7B 8C 14 DE B3 87 08 36 D4 B1 AD 90 85 [23:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 E8 52 47 00 1E 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 37 36 10 04 04 00 87 24 02 00 F4 03 04 00 0B 1B C6 66 B6 04 01 00 00 C8 57 7C 8F D7 0D 1B D9 [23:13:01]CommunicateWithHost err = 0 [23:13:01]CheckOFDResponse [23:13:01]1017 (14) - 77093643461234 [23:13:01]1041 (16) - 0000000000871776 [23:13:01]1040 (4) - 140423 [23:13:01]1012 (4) - 21.08.2024 16:51 [23:13:01]1206 (1) - 0 [23:13:01]OFD Sender: Remove packet 140423 [23:13:01]ProducePacketName [23:13:01]name=ofd_packets/00140423 [23:13:01]NVStorageDeleteData [23:13:01]Write to MH i2c: 01 00 00 71 2C 9D [23:13:01]Write i2c OK [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: 01 [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: 01 07 00 [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: 01 07 00 71 2C 00 00 00 00 00 C5 0C 75 [23:13:01]RasterBufferAndPrint [23:13:01]line [23:13:01]line [23:13:01]line [23:13:01]line [23:13:01]line [23:13:01]written 0, free lines is 3275 [23:13:01]MH_Cut [23:13:01]Write to MH i2c: D1 01 00 78 2C 01 76 [23:13:01]Write i2c OK [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: D1 [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: D1 01 00 [23:13:01]MH_I2C_Read... [23:13:01]Read from MH i2c: D1 01 00 78 2C 00 75 [23:13:01]Write to MH i2c: 01 00 00 79 2C A5 [23:13:01]Write i2c OK [23:13:01]MH_I2C_Read... [23:13:01]OFD Sender: No OFD packet to send [23:13:01]*** Cut start [23:13:01]*** Partial cut [23:13:01]*** CUTSNS_PIN = 1 [23:13:01]*** CUTSNS_PIN = 0 [23:13:02]*** Brake cut motor [23:13:02]Read from MH i2c: 01 [23:13:02]MH_I2C_Read... [23:13:02]*** Stop cut motor [23:13:02]*** Cut end [23:13:02]Read from MH i2c: 01 07 00 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: 01 07 00 79 2C 00 00 00 00 00 FF 0F BA [23:13:02]process_action close_receipt done [23:13:02]requested_data is exist [23:13:02]produce_requested_data [23:13:02]requested_item fm.sn is exist - process it [23:13:02]wFMCommunicate request_size=4 [23:13:02]MH_SAM_APDU [23:13:02]CAPDU: 80 11 00 00 [23:13:02]Write to MH i2c: E2 08 00 7A 2C 80 11 00 00 00 00 00 00 20 [23:13:02]Write i2c OK [23:13:02]MH_I2C_Read... [23:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:02]Read from MH i2c: E2 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 17 00 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 17 00 7A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [23:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:13:02]wFMCommunicate OK [23:13:02]requested_item fd.num is exist - process it [23:13:02]SAM_PROTO_GetFieldsCounters [23:13:02]wFMCommunicate request_size=4 [23:13:02]MH_SAM_APDU [23:13:02]CAPDU: 80 13 00 00 [23:13:02]Write to MH i2c: E2 08 00 7B 2C 80 13 00 00 00 00 00 00 23 [23:13:02]Write i2c OK [23:13:02]MH_I2C_Read... [23:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:02]Read from MH i2c: E2 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 62 00 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 62 00 7B 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 24 02 00 0E 04 04 00 C6 01 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 ED [23:13: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 87 24 02 00 0E 04 04 00 C6 01 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 [23:13:02]wFMCommunicate OK [23:13:02]SAM_PROTO_GetFieldsCounters done [23:13:02]requested_item shift.num is exist - process it [23:13:02]requested_item shift.opened is exist - process it [23:13:02]req_shift_opened [23:13:02]FM_GetShiftState [23:13:02]SAM_PROTO_GetShiftState [23:13:02]wFMCommunicate request_size=4 [23:13:02]MH_SAM_APDU [23:13:02]CAPDU: 80 13 01 00 [23:13:02]Write to MH i2c: E2 08 00 7C 2C 80 13 01 00 00 00 00 00 25 [23:13:02]Write i2c OK [23:13:02]MH_I2C_Read... [23:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:02]Read from MH i2c: E2 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 0E 00 [23:13:02]MH_I2C_Read... [23:13:02]Read from MH i2c: E2 0E 00 7C 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 A5 [23:13:02]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:13:02]wFMCommunicate OK [23:13:02]SAM_PROTO_GetShiftState done [23:13:02]FM_GetShiftState done [23:13:02]req_shift_opened done [23:13:02]requested_item shift.open_date is exist - process it [23:13:02]req_shift_open_date [23:13:02]req_shift_open_date done [23:13:02]produce_requested_data done [23:13:02]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140423,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:13:02]process_action_free close_receipt [23:13:02]json_value_free [23:13:02]json_value_free done [23:13:02]process_json_proto returns [23:13:02]Send response to host [23:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140423,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:13:02]free response buf [23:13:02]execute_script done [23:13:02]execute_script returns [23:13:02]free content buf [23:13:02]Sock 9.Close socket [23:13:02]Sock 9.Thread stoped [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:13]int [23:13:13]Write to MH i2c: 01 00 00 7D 2C A9 [23:13:13]*** FLAG_PRN_KEY set [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 7D 2C 00 08 00 00 00 FF 0F C6 [23:13:13]state=0 [23:13:13]Key pressed [23:13:13]Feed [23:13:13]Write to MH i2c: D8 00 00 7E 2C 81 [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: D8 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: D8 01 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: D8 01 00 7E 2C 00 82 [23:13:13]int [23:13:13]Write to MH i2c: 01 00 00 7F 2C AB [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 7F 2C 00 48 00 00 00 3C 00 36 [23:13:13]state=2 [23:13:13]Key pressed [23:13:13]int [23:13:13]Write to MH i2c: 01 00 00 80 2C AC [23:13:13]*** FLAG_PRN_KEY reset [23:13:13]Write i2c OK [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 [23:13:13]MH_I2C_Read... [23:13:13]Read from MH i2c: 01 07 00 80 2C 00 00 00 00 00 F6 0F B8 [23:13:13]state=2 [23:13:13]Stop feed [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]accept exits with 7 [23:14:36]New connection [23:14:36]New thread 3067469156 created [23:14:36]Thread 3067612516 joined [23:14:36]Waiting for new connection... [23:14:36] Sock 7.Parse request [23:14:36]Sock 7.Check first char [23:14:36]Sock 7.First char is OK [23:14:36]request: POST /json_proto HTTP/1.0 [23:14:36]Method: POST [23:14:36]URL: /json_proto [23:14:36]Method is POST - this is cgi request [23:14:36]url: /json_proto [23:14:36]query_string will be loaded in cgi processing [23:14:36]execute_cgi json_proto POST (null) [23:14:36]execute_cgi path=json_proto method=POST [23:14:36]POST find Content-Length [23:14:36]Host: 172.17.45.67:8080 [23:14:36]Content-Length: 683 [23:14:36]Content-Type: application/json [23:14:36] [23:14:36]POST finish read [23:14:36]Found Content-Length = 683 [23:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 12.200, "sum" : 929.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 929.00, "total" : 929.00, "payments": [ { "type": 0, "sum" : 929.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:36]execute_script... [23:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 12.200, "sum" : 929.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 929.00, "total" : 929.00, "payments": [ { "type": 0, "sum" : 929.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:36]POST & json_proto [23:14:36]process_json_proto [23:14:36]json parsed OK: [23:14:36]protocol is kg_v1.0 [23:14:36]action value=close_receipt [23:14:36]process_action close_receipt [23:14:36]cmd_close_receipt [23:14:36]MH_GetDate [23:14:36]Write to MH i2c: F0 00 00 81 2C 9C [23:14:36]Write i2c OK [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: F0 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: F0 09 00 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: F0 09 00 81 2C 00 DD 74 C6 66 5F 7F 2B 66 91 [23:14:36]GetLastDocTimeStamp 1724281980 [23:14:36]current date 1724282077 [23:14:36]FM_GetShiftState [23:14:36]SAM_PROTO_GetShiftState [23:14:36]wFMCommunicate request_size=4 [23:14:36]MH_SAM_APDU [23:14:36]CAPDU: 80 13 01 00 [23:14:36]Write to MH i2c: E2 08 00 82 2C 80 13 01 00 00 00 00 00 2B [23:14:36]Write i2c OK [23:14:36]MH_I2C_Read... [23:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:36]Read from MH i2c: E2 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: E2 0E 00 [23:14:36]MH_I2C_Read... [23:14:36]Read from MH i2c: E2 0E 00 82 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 AB [23:14:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:14:36]wFMCommunicate OK [23:14:36]SAM_PROTO_GetShiftState done [23:14:36]FM_GetShiftState done [23:14:36]opened in 1724200467 [23:14:36]opened+sec_in_day 1724286867 [23:14:36]quantity*price = 92964 [23:14:36]sum+1 = 92965 [23:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 929.00 Внесено: 929.00 СДАЧА: 0.00 НСП 1% : 8.23 НДС 12% : 98.72 Наличными: 929.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 441 21.08.2024 23:14 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140424 ФПД: 123522150212118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231437&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140424&fm=123522150212118&tin=02508201610067®Number=0000000000092569&sum=92900 [23:14:37]StoreToDocumentArchive [23:14:37]shift 454 fd 140424 [23:14:37]save to /storage/0454/doc_00140424 [23:14:37]save last doc name /storage/0454/doc_00140424 to /storage/kkm_last_doc_name [23:14:37]save OK [23:14:37]Clear old archive folders... [23:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:14:37]tlvbuf is 00C6AEE0 [23:14:37]SAM_PROTO_ClearQueue [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 09 00 00 [23:14:37]Write to MH i2c: E2 08 00 8F 2C 80 09 00 00 00 00 00 00 2D [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [23:14:37]RAPDU: 90 00 [23:14:37]wFMCommunicate OK [23:14:37]SAM_PROTO_ClearQueue done [23:14:37]KKMCreateOFDPacket [23:14:37]OFDProtocolAddRootSTLVToBuf [23:14:37]FM_MakeSignedData [23:14:37]FM_MakeSignedData [23:14:37]SAM_PROTO_SignData [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 0D 01 02 [23:14:37]Write to MH i2c: E2 08 00 90 2C 80 0D 01 02 00 00 00 00 35 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 90 2C 00 90 00 30 [23:14:37]RAPDU: 90 00 [23:14:37]wFMCommunicate OK [23:14:37]wFMCommunicate request_size=255 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 26 00 00 00 00 07 04 06 00 E4 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 DD 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 24 02 00 35 04 06 00 [23:14:37]Write to MH i2c: E2 02 01 91 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 26 00 00 00 00 07 04 06 00 E4 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 DD 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 24 02 00 35 04 06 00 00 00 06 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 91 2C 00 90 00 31 [23:14:37]RAPDU: 90 00 [23:14:37]wFMCommunicate OK [23:14:37]wFMCommunicate request_size=11 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 0D 02 02 06 70 57 BD E2 A2 16 [23:14:37]Write to MH i2c: E2 0E 00 92 2C 80 0D 02 02 06 00 70 57 BD E2 A2 16 00 00 62 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 03 00 92 2C 00 90 00 32 [23:14:37]RAPDU: 90 00 [23:14:37]wFMCommunicate OK [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 0D 03 02 [23:14:37]Write to MH i2c: E2 08 00 93 2C 80 0D 03 02 00 00 00 00 3A [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0B 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0B 00 93 2C 00 33 8B 68 5B 46 DA D7 58 90 00 0B [23:14:37]RAPDU: 33 8B 68 5B 46 DA D7 58 90 00 [23:14:37]wFMCommunicate OK [23:14:37]SAM_PROTO_SignData done [23:14:37]FM_MakeSignedData done [23:14:37]CreateOFDProtocolMessage [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 11 00 00 [23:14:37]Write to MH i2c: E2 08 00 94 2C 80 11 00 00 00 00 00 00 3A [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 17 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 17 00 94 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 91 [23:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:14:37]wFMCommunicate OK [23:14:37]CreateOFDProtocolMessage done [23:14:37]OFDSenderStorePacket 140424 [23:14:37]StoreOFDPacket docnum=140424 [23:14:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 F8 CE 08 01 AE AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 26 00 00 00 00 07 04 06 00 E4 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 DD 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 24 02 00 35 04 06 00 70 57 BD E2 A2 16 33 8B 68 5B 46 DA D7 58 [23:14:37]CheckFolder [23:14:37]dirname=/storage/ofd_packets [23:14:37]CheckFolder done [23:14:37]ProducePacketName [23:14:37]name=ofd_packets/00140424 [23:14:37]NVStorageSaveData ofd_packets/00140424 [23:14:37]File name is /storage/ofd_packets/00140424 [23:14:37]Write 302 bytes [23:14:37]NVStorageSaveData done [23:14:37]OFDSenderStorePacket done [23:14:37]KKMCreateOFDPacket done [23:14:37]NVStorageSaveData kkm_last_timestamp [23:14:37]File name is /storage/kkm_last_timestamp [23:14:37]Write 4 bytes [23:14:37]NVStorageSaveData done [23:14:37]ExternCall_PrintAddStr [23:14:37]wPrintStart [23:14:37]Write to MH i2c: 01 00 00 95 2C C1 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: 01 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: 01 07 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 FF 0F D6 [23:14:37]RasterBufferAndPrint [23:14:37]line Счет N : (1)594282 [23:14:37]line ИНН: 02508201610067 [23:14:37]line Контрольно-Кассовый Чек [23:14:37]line ПРОДАЖА [23:14:37]line ТРК (МРК, ГНК) : 54 [23:14:37]line Товар: 2710194210 [23:14:37]line ДТ(л)-К-5 [23:14:37]line 12.200 * 76.20 [23:14:37]line = 929.64 [23:14:37]line НДС 12% НСП 1% [23:14:37]line > о реализуемом товаре [23:14:37]line ОКРУГЛЕНИЕ: -0.64 [23:14:37]line ИТОГО: 929.00 [23:14:37]line Внесено: 929.00 [23:14:37]line СДАЧА: 0.00 [23:14:37]line НСП 1% : 8.23 [23:14:37]line НДС 12% : 98.72 [23:14:37]line Наличными: 929.00 [23:14:37]line Безнал.: 0.00 [23:14:37]line Место: АЗС № 136 "Партнер Нефть" [23:14:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:14:37]line СНО: Общий режим [23:14:37]line Чек 441 21.08.2024 23:14 [23:14:37]line Смена: 454 ФФД: 1.0 [23:14:37]line ЗНМ: 0300000067 [23:14:37]line РНМ: 0000000000092569 [23:14:37]line Версия ККМ: 001 [23:14:37]line ФМ: 0000000000871776 [23:14:37]line ФД: 140424 [23:14:37]line ФПД: 123522150212118 [23:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231437&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140424&fm=123522150212118&tin=02508201610067®Number=0000000000092569&sum=92900 [23:14:38]OFD Sender: Processing packet 140424 [packets to send 137, broken 136] [23:14:38]ProducePacketName [23:14:38]name=ofd_packets/00140424 [23:14:38]OFD Sender: To server: pG, [23:14:38]CommunicateWithHost lk.salyk.kg:30040 [23:14:38]ConnectInit lk.salyk.kg [23:14:38]written 0, free lines is 4095 [23:14:38]Connected sock=10 [23:14: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 37 36 10 01 00 00 F8 CE 08 01 AE AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A8 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 24 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 6A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 26 00 00 00 00 07 04 06 00 E4 6A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 01 00 00 F4 03 04 00 DD 74 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 88 24 02 00 35 04 06 00 70 57 BD E2 A2 16 33 8B 68 5B 46 DA D7 58 [23:14: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 37 36 4F 00 00 00 63 51 47 00 1C 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 37 36 10 04 04 00 88 24 02 00 F4 03 04 00 6D 1B C6 66 B6 04 01 00 00 37 0D 94 20 3D D5 78 4B [23:14:38]CommunicateWithHost err = 0 [23:14:38]CheckOFDResponse [23:14:38]1017 (14) - 77093643461234 [23:14:38]1041 (16) - 0000000000871776 [23:14:38]1040 (4) - 140424 [23:14:38]1012 (4) - 21.08.2024 16:53 [23:14:38]1206 (1) - 0 [23:14:38]OFD Sender: Remove packet 140424 [23:14:38]ProducePacketName [23:14:38]name=ofd_packets/00140424 [23:14:38]NVStorageDeleteData [23:14:38]Write to MH i2c: 01 00 00 C0 2C EC [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 C0 2C 00 00 00 00 00 DC 0C DB [23:14:38]RasterBufferAndPrint [23:14:38]line [23:14:38]line [23:14:38]line [23:14:38]line [23:14:38]line [23:14:38]written 0, free lines is 3298 [23:14:38]MH_Cut [23:14:38]Write to MH i2c: D1 01 00 C7 2C 01 C5 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: D1 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: D1 01 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: D1 01 00 C7 2C 00 C4 [23:14:38]Write to MH i2c: 01 00 00 C8 2C F4 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:39]OFD Sender: No OFD packet to send [23:14:39]*** Cut start [23:14:39]*** Partial cut [23:14:39]*** CUTSNS_PIN = 1 [23:14:39]*** CUTSNS_PIN = 0 [23:14:39]*** Brake cut motor [23:14:39]Read from MH i2c: 01 [23:14:39]MH_I2C_Read... [23:14:39]*** Stop cut motor [23:14:39]*** Cut end [23:14:39]Read from MH i2c: 01 07 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 07 00 C8 2C 00 00 00 00 00 FF 0F 09 [23:14:39]process_action close_receipt done [23:14:39]requested_data is exist [23:14:39]produce_requested_data [23:14:39]requested_item fm.sn is exist - process it [23:14:39]wFMCommunicate request_size=4 [23:14:39]MH_SAM_APDU [23:14:39]CAPDU: 80 11 00 00 [23:14:39]Write to MH i2c: E2 08 00 C9 2C 80 11 00 00 00 00 00 00 6F [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: E2 [23:14:39]MH_I2C_Read... [23:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:39]Read from MH i2c: E2 17 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: E2 17 00 C9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C6 [23:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:14:39]wFMCommunicate OK [23:14:39]requested_item fd.num is exist - process it [23:14:39]SAM_PROTO_GetFieldsCounters [23:14:39]wFMCommunicate request_size=4 [23:14:39]MH_SAM_APDU [23:14:39]CAPDU: 80 13 00 00 [23:14:39]Write to MH i2c: E2 08 00 CA 2C 80 13 00 00 00 00 00 00 72 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 62 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 62 00 CA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 24 02 00 0E 04 04 00 C6 01 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 40 [23:14: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 88 24 02 00 0E 04 04 00 C6 01 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 [23:14:40]wFMCommunicate OK [23:14:40]SAM_PROTO_GetFieldsCounters done [23:14:40]requested_item shift.num is exist - process it [23:14:40]requested_item shift.opened is exist - process it [23:14:40]req_shift_opened [23:14:40]FM_GetShiftState [23:14:40]SAM_PROTO_GetShiftState [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 13 01 00 [23:14:40]Write to MH i2c: E2 08 00 CB 2C 80 13 01 00 00 00 00 00 74 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0E 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 0E 00 CB 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F4 [23:14:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:14:40]wFMCommunicate OK [23:14:40]SAM_PROTO_GetShiftState done [23:14:40]FM_GetShiftState done [23:14:40]req_shift_opened done [23:14:40]requested_item shift.open_date is exist - process it [23:14:40]req_shift_open_date [23:14:40]req_shift_open_date done [23:14:40]produce_requested_data done [23:14:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140424,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:14:40]process_action_free close_receipt [23:14:40]json_value_free [23:14:40]json_value_free done [23:14:40]process_json_proto returns [23:14:40]Send response to host [23:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140424,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:14:40]free response buf [23:14:40]execute_script done [23:14:40]execute_script returns [23:14:40]free content buf [23:14:40]Sock 7.Close socket [23:14:40]Sock 7.Thread stoped [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: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:18]int [23:16:18]Write to MH i2c: 01 00 00 CC 2C F8 [23:16:18]*** FLAG_PRN_KEY set [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 CC 2C 00 08 00 00 00 FF 0F 15 [23:16:18]state=0 [23:16:18]Key pressed [23:16:18]Feed [23:16:18]Write to MH i2c: D8 00 00 CD 2C D0 [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: D8 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: D8 01 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: D8 01 00 CD 2C 00 D1 [23:16:18]int [23:16:18]Write to MH i2c: 01 00 00 CE 2C FA [23:16:18]Write i2c OK [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 [23:16:18]MH_I2C_Read... [23:16:18]Read from MH i2c: 01 07 00 CE 2C 00 48 00 00 00 3C 00 85 [23:16:18]state=2 [23:16:18]Key pressed [23:16:19]int [23:16:19]Write to MH i2c: 01 00 00 CF 2C FB [23:16:19]*** FLAG_PRN_KEY reset [23:16:19]Write i2c OK [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 07 00 [23:16:19]MH_I2C_Read... [23:16:19]Read from MH i2c: 01 07 00 CF 2C 00 00 00 00 00 F5 0F 06 [23:16:19]state=2 [23:16:19]Stop feed [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:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:45]accept exits with 9 [23:19:45]New connection [23:19:45]New thread 3067612516 created [23:19:45]Thread 3067469156 joined [23:19:45]Waiting for new connection... [23:19:45] Sock 9.Parse request [23:19:45]Sock 9.Check first char [23:19:45]Sock 9.First char is OK [23:19:45]request: POST /json_proto HTTP/1.0 [23:19:45]Method: POST [23:19:45]URL: /json_proto [23:19:45]Method is POST - this is cgi request [23:19:45]url: /json_proto [23:19:45]query_string will be loaded in cgi processing [23:19:45]execute_cgi json_proto POST (null) [23:19:45]execute_cgi path=json_proto method=POST [23:19:45]POST find Content-Length [23:19:45]Host: 172.17.45.67:8080 [23:19:45]Content-Length: 682 [23:19:45]Content-Type: application/json [23:19:45] [23:19:45]POST finish read [23:19:45]Found Content-Length = 682 [23:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [23:19:45]execute_script... [23:19: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)594283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [23:19:45]POST & json_proto [23:19:45]process_json_proto [23:19:45]json parsed OK: [23:19:45]protocol is kg_v1.0 [23:19:45]action value=close_receipt [23:19:45]process_action close_receipt [23:19:45]cmd_close_receipt [23:19:45]MH_GetDate [23:19:45]Write to MH i2c: F0 00 00 D0 2C EB [23:19:45]Write i2c OK [23:19:45]MH_I2C_Read... [23:19:45]Read from MH i2c: F0 [23:19:45]MH_I2C_Read... [23:19:45]Read from MH i2c: F0 09 00 [23:19:45]MH_I2C_Read... [23:19:45]Read from MH i2c: F0 09 00 D0 2C 00 13 76 C6 66 5F 7F 2B 66 18 [23:19:45]GetLastDocTimeStamp 1724282077 [23:19:45]current date 1724282387 [23:19:45]FM_GetShiftState [23:19:45]SAM_PROTO_GetShiftState [23:19:45]wFMCommunicate request_size=4 [23:19:45]MH_SAM_APDU [23:19:45]CAPDU: 80 13 01 00 [23:19:45]Write to MH i2c: E2 08 00 D1 2C 80 13 01 00 00 00 00 00 7A [23:19:45]Write i2c OK [23:19:45]MH_I2C_Read... [23:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:45]Read from MH i2c: E2 [23:19:45]MH_I2C_Read... [23:19:45]Read from MH i2c: E2 0E 00 [23:19:45]MH_I2C_Read... [23:19:45]Read from MH i2c: E2 0E 00 D1 2C 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 FA [23:19:45]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:19:45]wFMCommunicate OK [23:19:45]SAM_PROTO_GetShiftState done [23:19:45]FM_GetShiftState done [23:19:45]opened in 1724200467 [23:19:45]opened+sec_in_day 1724286867 [23:19:45]quantity*price = 60045 [23:19:45]sum+1 = 60047 [23:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 442 21.08.2024 23:19 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140425 ФПД: 201397284571881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140425&fm=201397284571881&tin=02508201610067®Number=0000000000092569&sum=60000 [23:19:46]StoreToDocumentArchive [23:19:46]shift 454 fd 140425 [23:19:46]save to /storage/0454/doc_00140425 [23:19:46]save last doc name /storage/0454/doc_00140425 to /storage/kkm_last_doc_name [23:19:46]save OK [23:19:46]Clear old archive folders... [23:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:19:46]tlvbuf is 00C322B0 [23:19:46]SAM_PROTO_ClearQueue [23:19:46]wFMCommunicate request_size=4 [23:19:46]MH_SAM_APDU [23:19:46]CAPDU: 80 09 00 00 [23:19:46]Write to MH i2c: E2 08 00 DE 2C 80 09 00 00 00 00 00 00 7C [23:19:46]Write i2c OK [23:19:46]MH_I2C_Read... [23:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:46]Read from MH i2c: E2 [23:19:46]MH_I2C_Read... [23:19:46]Read from MH i2c: E2 03 00 [23:19:46]MH_I2C_Read... [23:19:46]Read from MH i2c: E2 03 00 DE 2C 00 90 00 7E [23:19:46]RAPDU: 90 00 [23:19:46]wFMCommunicate OK [23:19:46]SAM_PROTO_ClearQueue done [23:19:46]KKMCreateOFDPacket [23:19:46]OFDProtocolAddRootSTLVToBuf [23:19:46]FM_MakeSignedData [23:19:46]FM_MakeSignedData [23:19:46]SAM_PROTO_SignData [23:19:46]wFMCommunicate request_size=4 [23:19:46]MH_SAM_APDU [23:19:46]CAPDU: 80 0D 01 02 [23:19:46]Write to MH i2c: E2 08 00 DF 2C 80 0D 01 02 00 00 00 00 84 [23:19:46]Write i2c OK [23:19:46]MH_I2C_Read... [23:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:46]Read from MH i2c: E2 [23:19:46]MH_I2C_Read... [23:19:46]Read from MH i2c: E2 03 00 [23:19:46]MH_I2C_Read... [23:19:46]Read from MH i2c: E2 03 00 DF 2C 00 90 00 7F [23:19:46]RAPDU: 90 00 [23:19:46]wFMCommunicate OK [23:19:46]wFMCommunicate request_size=255 [23:19:46]MH_SAM_APDU [23:19:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 BA 01 00 00 F4 03 04 00 13 76 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 24 02 00 35 04 06 00 [23:19:46]Write to MH i2c: E2 02 01 E0 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 BA 01 00 00 F4 03 04 00 13 76 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 24 02 00 35 04 06 00 00 00 A2 [23:19:46]Write i2c OK [23:19:46]MH_I2C_Read... [23:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:47]Read from MH i2c: E2 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 03 00 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 03 00 E0 2C 00 90 00 80 [23:19:47]RAPDU: 90 00 [23:19:47]wFMCommunicate OK [23:19:47]wFMCommunicate request_size=11 [23:19:47]MH_SAM_APDU [23:19:47]CAPDU: 80 0D 02 02 06 B7 2B 75 9B 0A E9 [23:19:47]Write to MH i2c: E2 0E 00 E1 2C 80 0D 02 02 06 00 B7 2B 75 9B 0A E9 00 00 78 [23:19:47]Write i2c OK [23:19:47]MH_I2C_Read... [23:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:47]Read from MH i2c: E2 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 03 00 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [23:19:47]RAPDU: 90 00 [23:19:47]wFMCommunicate OK [23:19:47]wFMCommunicate request_size=4 [23:19:47]MH_SAM_APDU [23:19:47]CAPDU: 80 0D 03 02 [23:19:47]Write to MH i2c: E2 08 00 E2 2C 80 0D 03 02 00 00 00 00 89 [23:19:47]Write i2c OK [23:19:47]MH_I2C_Read... [23:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:47]Read from MH i2c: E2 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 0B 00 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 0B 00 E2 2C 00 BA 43 90 29 38 9F AA AD 90 00 6E [23:19:47]RAPDU: BA 43 90 29 38 9F AA AD 90 00 [23:19:47]wFMCommunicate OK [23:19:47]SAM_PROTO_SignData done [23:19:47]FM_MakeSignedData done [23:19:47]CreateOFDProtocolMessage [23:19:47]wFMCommunicate request_size=4 [23:19:47]MH_SAM_APDU [23:19:47]CAPDU: 80 11 00 00 [23:19:47]Write to MH i2c: E2 08 00 E3 2C 80 11 00 00 00 00 00 00 89 [23:19:47]Write i2c OK [23:19:47]MH_I2C_Read... [23:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:47]Read from MH i2c: E2 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 17 00 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: E2 17 00 E3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [23:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:19:47]wFMCommunicate OK [23:19:47]CreateOFDProtocolMessage done [23:19:47]OFDSenderStorePacket 140425 [23:19:47]StoreOFDPacket docnum=140425 [23:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 01 00 00 0E 46 08 01 EC EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 BA 01 00 00 F4 03 04 00 13 76 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 24 02 00 35 04 06 00 B7 2B 75 9B 0A E9 BA 43 90 29 38 9F AA AD [23:19:47]CheckFolder [23:19:47]dirname=/storage/ofd_packets [23:19:47]CheckFolder done [23:19:47]ProducePacketName [23:19:47]name=ofd_packets/00140425 [23:19:47]NVStorageSaveData ofd_packets/00140425 [23:19:47]File name is /storage/ofd_packets/00140425 [23:19:47]Write 302 bytes [23:19:47]NVStorageSaveData done [23:19:47]OFDSenderStorePacket done [23:19:47]KKMCreateOFDPacket done [23:19:47]NVStorageSaveData kkm_last_timestamp [23:19:47]File name is /storage/kkm_last_timestamp [23:19:47]Write 4 bytes [23:19:47]NVStorageSaveData done [23:19:47]ExternCall_PrintAddStr [23:19:47]wPrintStart [23:19:47]Write to MH i2c: 01 00 00 E4 2C 10 [23:19:47]Write i2c OK [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: 01 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: 01 07 00 [23:19:47]MH_I2C_Read... [23:19:47]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 FF 0F 25 [23:19:47]RasterBufferAndPrint [23:19:47]line Счет N : (1)594283 [23:19:47]line ИНН: 02508201610067 [23:19:47]line Контрольно-Кассовый Чек [23:19:47]line ПРОДАЖА [23:19:47]line ТРК (МРК, ГНК) : 54 [23:19:47]line Товар: 2710194210 [23:19:47]line ДТ(л)-К-5 [23:19:47]line 7.880 * 76.20 [23:19:47]line = 600.46 [23:19:47]line НДС 12% НСП 1% [23:19:47]line > о реализуемом товаре [23:19:47]line ОКРУГЛЕНИЕ: -0.46 [23:19:47]line ИТОГО: 600.00 [23:19:47]line Внесено: 600.00 [23:19:47]line СДАЧА: 0.00 [23:19:47]line НСП 1% : 5.31 [23:19:47]line НДС 12% : 63.77 [23:19:47]line Наличными: 600.00 [23:19:47]line Безнал.: 0.00 [23:19:47]line Место: АЗС № 136 "Партнер Нефть" [23:19:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:19:47]line СНО: Общий режим [23:19:47]line Чек 442 21.08.2024 23:19 [23:19:47]line Смена: 454 ФФД: 1.0 [23:19:47]line ЗНМ: 0300000067 [23:19:47]line РНМ: 0000000000092569 [23:19:47]line Версия ККМ: 001 [23:19:47]line ФМ: 0000000000871776 [23:19:47]line ФД: 140425 [23:19:47]line ФПД: 201397284571881 [23:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T231947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140425&fm=201397284571881&tin=02508201610067®Number=0000000000092569&sum=60000 [23:19:47]OFD Sender: Processing packet 140425 [packets to send 137, broken 136] [23:19:47]ProducePacketName [23:19:47]name=ofd_packets/00140425 [23:19:47]OFD Sender: To server: pG, [23:19:47]CommunicateWithHost lk.salyk.kg:30040 [23:19:47]ConnectInit lk.salyk.kg [23:19:47]written 0, free lines is 4095 [23:19:47]Connected sock=10 [23:19: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 37 36 10 01 00 00 0E 46 08 01 EC EC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 BA 01 00 00 F4 03 04 00 13 76 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 89 24 02 00 35 04 06 00 B7 2B 75 9B 0A E9 BA 43 90 29 38 9F AA AD [23:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 5D 18 47 00 E6 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 37 36 10 04 04 00 89 24 02 00 F4 03 04 00 A2 1C C6 66 B6 04 01 00 00 B1 17 F3 F2 B2 EF FD D9 [23:19:48]CommunicateWithHost err = 0 [23:19:48]CheckOFDResponse [23:19:48]1017 (14) - 77093643461234 [23:19:48]1041 (16) - 0000000000871776 [23:19:48]1040 (4) - 140425 [23:19:48]1012 (4) - 21.08.2024 16:58 [23:19:48]1206 (1) - 0 [23:19:48]OFD Sender: Remove packet 140425 [23:19:48]ProducePacketName [23:19:48]name=ofd_packets/00140425 [23:19:48]NVStorageDeleteData [23:19:48]Write to MH i2c: 01 00 00 0F 2D 3C [23:19:48]Write i2c OK [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: 01 [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: 01 07 00 [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 CF 0C 1E [23:19:48]RasterBufferAndPrint [23:19:48]line [23:19:48]line [23:19:48]line [23:19:48]line [23:19:48]line [23:19:48]written 0, free lines is 3286 [23:19:48]MH_Cut [23:19:48]Write to MH i2c: D1 01 00 16 2D 01 15 [23:19:48]Write i2c OK [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: D1 [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: D1 01 00 [23:19:48]MH_I2C_Read... [23:19:48]Read from MH i2c: D1 01 00 16 2D 00 14 [23:19:48]Write to MH i2c: 01 00 00 17 2D 44 [23:19:48]Write i2c OK [23:19:48]MH_I2C_Read... [23:19:48]OFD Sender: No OFD packet to send [23:19:48]*** Cut start [23:19:48]*** Partial cut [23:19:48]*** CUTSNS_PIN = 1 [23:19:48]*** CUTSNS_PIN = 0 [23:19:49]*** Brake cut motor [23:19:49]Read from MH i2c: 01 [23:19:49]MH_I2C_Read... [23:19:49]*** Stop cut motor [23:19:49]*** Cut end [23:19:49]Read from MH i2c: 01 07 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: 01 07 00 17 2D 00 00 00 00 00 FF 0F 59 [23:19:49]process_action close_receipt done [23:19:49]requested_data is exist [23:19:49]produce_requested_data [23:19:49]requested_item fm.sn is exist - process it [23:19:49]wFMCommunicate request_size=4 [23:19:49]MH_SAM_APDU [23:19:49]CAPDU: 80 11 00 00 [23:19:49]Write to MH i2c: E2 08 00 18 2D 80 11 00 00 00 00 00 00 BF [23:19:49]Write i2c OK [23:19:49]MH_I2C_Read... [23:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:49]Read from MH i2c: E2 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 17 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 17 00 18 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 16 [23:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:19:49]wFMCommunicate OK [23:19:49]requested_item fd.num is exist - process it [23:19:49]SAM_PROTO_GetFieldsCounters [23:19:49]wFMCommunicate request_size=4 [23:19:49]MH_SAM_APDU [23:19:49]CAPDU: 80 13 00 00 [23:19:49]Write to MH i2c: E2 08 00 19 2D 80 13 00 00 00 00 00 00 C2 [23:19:49]Write i2c OK [23:19:49]MH_I2C_Read... [23:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:49]Read from MH i2c: E2 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 62 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 62 00 19 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 24 02 00 0E 04 04 00 C6 01 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 94 [23:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 89 24 02 00 0E 04 04 00 C6 01 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 [23:19:49]wFMCommunicate OK [23:19:49]SAM_PROTO_GetFieldsCounters done [23:19:49]requested_item shift.num is exist - process it [23:19:49]requested_item shift.opened is exist - process it [23:19:49]req_shift_opened [23:19:49]FM_GetShiftState [23:19:49]SAM_PROTO_GetShiftState [23:19:49]wFMCommunicate request_size=4 [23:19:49]MH_SAM_APDU [23:19:49]CAPDU: 80 13 01 00 [23:19:49]Write to MH i2c: E2 08 00 1A 2D 80 13 01 00 00 00 00 00 C4 [23:19:49]Write i2c OK [23:19:49]MH_I2C_Read... [23:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:49]Read from MH i2c: E2 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 0E 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 0E 00 1A 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 44 [23:19:49]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:19:49]wFMCommunicate OK [23:19:49]SAM_PROTO_GetShiftState done [23:19:49]FM_GetShiftState done [23:19:49]req_shift_opened done [23:19:49]requested_item shift.open_date is exist - process it [23:19:49]req_shift_open_date [23:19:49]req_shift_open_date done [23:19:49]produce_requested_data done [23:19:49]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140425,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:19:49]process_action_free close_receipt [23:19:49]json_value_free [23:19:49]json_value_free done [23:19:49]process_json_proto returns [23:19:49]Send response to host [23:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140425,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:19:49]free response buf [23:19:49]execute_script done [23:19:49]execute_script returns [23:19:49]free content buf [23:19:49]Sock 9.Close socket [23:19:49]Sock 9.Thread stoped [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:34]accept exits with 7 [23:26:34]New connection [23:26:34]New thread 3067469156 created [23:26:34]Thread 3067612516 joined [23:26:34]Waiting for new connection... [23:26:34] Sock 7.Parse request [23:26:34]Sock 7.Check first char [23:26:34]Sock 7.First char is OK [23:26:34]request: POST /json_proto HTTP/1.0 [23:26:34]Method: POST [23:26:34]URL: /json_proto [23:26:34]Method is POST - this is cgi request [23:26:34]url: /json_proto [23:26:34]query_string will be loaded in cgi processing [23:26:34]execute_cgi json_proto POST (null) [23:26:34]execute_cgi path=json_proto method=POST [23:26:34]POST find Content-Length [23:26:34]Host: 172.17.45.67:8080 [23:26:34]Content-Length: 677 [23:26:34]Content-Type: application/json [23:26:34] [23:26:34]POST finish read [23:26:34]Found Content-Length = 677 [23:26:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:34]execute_script... [23:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:34]POST & json_proto [23:26:34]process_json_proto [23:26:34]json parsed OK: [23:26:34]protocol is kg_v1.0 [23:26:34]action value=close_receipt [23:26:34]process_action close_receipt [23:26:34]cmd_close_receipt [23:26:34]MH_GetDate [23:26:34]Write to MH i2c: F0 00 00 1B 2D 37 [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: F0 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: F0 09 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: F0 09 00 1B 2D 00 AB 77 C6 66 5F 7F 2B 66 FD [23:26:34]GetLastDocTimeStamp 1724282387 [23:26:34]current date 1724282795 [23:26:34]FM_GetShiftState [23:26:34]SAM_PROTO_GetShiftState [23:26:34]wFMCommunicate request_size=4 [23:26:34]MH_SAM_APDU [23:26:34]CAPDU: 80 13 01 00 [23:26:34]Write to MH i2c: E2 08 00 1C 2D 80 13 01 00 00 00 00 00 C6 [23:26:34]Write i2c OK [23:26:34]MH_I2C_Read... [23:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:34]Read from MH i2c: E2 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 0E 00 [23:26:34]MH_I2C_Read... [23:26:34]Read from MH i2c: E2 0E 00 1C 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 46 [23:26:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:26:34]wFMCommunicate OK [23:26:34]SAM_PROTO_GetShiftState done [23:26:34]FM_GetShiftState done [23:26:34]opened in 1724200467 [23:26:34]opened+sec_in_day 1724286867 [23:26:34]quantity*price = 50036 [23:26:34]sum+1 = 50037 [23:26:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 443 21.08.2024 23:26 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140426 ФПД: 141941855936620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T232635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140426&fm=141941855936620&tin=02508201610067®Number=0000000000092569&sum=50000 [23:26:35]StoreToDocumentArchive [23:26:35]shift 454 fd 140426 [23:26:35]save to /storage/0454/doc_00140426 [23:26:35]save last doc name /storage/0454/doc_00140426 to /storage/kkm_last_doc_name [23:26:35]save OK [23:26:35]Clear old archive folders... [23:26:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:35]tlvbuf is 00CA82D0 [23:26:35]SAM_PROTO_ClearQueue [23:26:35]wFMCommunicate request_size=4 [23:26:35]MH_SAM_APDU [23:26:35]CAPDU: 80 09 00 00 [23:26:35]Write to MH i2c: E2 08 00 29 2D 80 09 00 00 00 00 00 00 C8 [23:26:35]Write i2c OK [23:26:35]MH_I2C_Read... [23:26:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:35]Read from MH i2c: E2 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 29 2D 00 90 00 CA [23:26:35]RAPDU: 90 00 [23:26:35]wFMCommunicate OK [23:26:35]SAM_PROTO_ClearQueue done [23:26:35]KKMCreateOFDPacket [23:26:35]OFDProtocolAddRootSTLVToBuf [23:26:35]FM_MakeSignedData [23:26:35]FM_MakeSignedData [23:26:35]SAM_PROTO_SignData [23:26:35]wFMCommunicate request_size=4 [23:26:35]MH_SAM_APDU [23:26:35]CAPDU: 80 0D 01 02 [23:26:35]Write to MH i2c: E2 08 00 2A 2D 80 0D 01 02 00 00 00 00 D0 [23:26:35]Write i2c OK [23:26:35]MH_I2C_Read... [23:26:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:35]Read from MH i2c: E2 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 2A 2D 00 90 00 CB [23:26:35]RAPDU: 90 00 [23:26:35]wFMCommunicate OK [23:26:35]wFMCommunicate request_size=255 [23:26:35]MH_SAM_APDU [23:26:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 AB 77 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 24 02 00 35 04 06 00 81 [23:26:35]Write to MH i2c: E2 02 01 2B 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 AB 77 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 24 02 00 35 04 06 00 81 00 00 5B [23:26:35]Write i2c OK [23:26:35]MH_I2C_Read... [23:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:35]Read from MH i2c: E2 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 2B 2D 00 90 00 CC [23:26:35]RAPDU: 90 00 [23:26:35]wFMCommunicate OK [23:26:35]wFMCommunicate request_size=10 [23:26:35]MH_SAM_APDU [23:26:35]CAPDU: 80 0D 02 02 05 18 69 E6 E0 6C [23:26:35]Write to MH i2c: E2 0D 00 2C 2D 80 0D 02 02 05 00 18 69 E6 E0 6C 00 00 90 [23:26:35]Write i2c OK [23:26:35]MH_I2C_Read... [23:26:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:35]Read from MH i2c: E2 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 [23:26:35]MH_I2C_Read... [23:26:35]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [23:26:35]RAPDU: 90 00 [23:26:35]wFMCommunicate OK [23:26:35]wFMCommunicate request_size=4 [23:26:35]MH_SAM_APDU [23:26:35]CAPDU: 80 0D 03 02 [23:26:35]Write to MH i2c: E2 08 00 2D 2D 80 0D 03 02 00 00 00 00 D5 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:36]Read from MH i2c: E2 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 0B 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 0B 00 2D 2D 00 6B 4C 14 43 28 22 61 FE 90 00 8D [23:26:36]RAPDU: 6B 4C 14 43 28 22 61 FE 90 00 [23:26:36]wFMCommunicate OK [23:26:36]SAM_PROTO_SignData done [23:26:36]FM_MakeSignedData done [23:26:36]CreateOFDProtocolMessage [23:26:36]wFMCommunicate request_size=4 [23:26:36]MH_SAM_APDU [23:26:36]CAPDU: 80 11 00 00 [23:26:36]Write to MH i2c: E2 08 00 2E 2D 80 11 00 00 00 00 00 00 D5 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:36]Read from MH i2c: E2 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 17 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: E2 17 00 2E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [23:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:26:36]wFMCommunicate OK [23:26:36]CreateOFDProtocolMessage done [23:26:36]OFDSenderStorePacket 140426 [23:26:36]StoreOFDPacket docnum=140426 [23:26:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 CE 07 01 D8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 AB 77 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 24 02 00 35 04 06 00 81 18 69 E6 E0 6C 6B 4C 14 43 28 22 61 FE [23:26:36]CheckFolder [23:26:36]dirname=/storage/ofd_packets [23:26:36]CheckFolder done [23:26:36]ProducePacketName [23:26:36]name=ofd_packets/00140426 [23:26:36]NVStorageSaveData ofd_packets/00140426 [23:26:36]File name is /storage/ofd_packets/00140426 [23:26:36]Write 301 bytes [23:26:36]NVStorageSaveData done [23:26:36]OFDSenderStorePacket done [23:26:36]KKMCreateOFDPacket done [23:26:36]NVStorageSaveData kkm_last_timestamp [23:26:36]File name is /storage/kkm_last_timestamp [23:26:36]Write 4 bytes [23:26:36]NVStorageSaveData done [23:26:36]ExternCall_PrintAddStr [23:26:36]wPrintStart [23:26:36]Write to MH i2c: 01 00 00 2F 2D 5C [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 07 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 07 00 2F 2D 00 00 00 00 00 FF 0F 71 [23:26:36]RasterBufferAndPrint [23:26:36]line Счет N : (1)594284 [23:26:36]line ИНН: 02508201610067 [23:26:36]line Контрольно-Кассовый Чек [23:26:36]line ПРОДАЖА [23:26:36]line ТРК (МРК, ГНК) : 52 [23:26:36]line Товар: 2710124130 [23:26:36]line Аи-92-К-5 [23:26:36]line 7.380 * 67.80 [23:26:36]line = 500.36 [23:26:36]line НДС 12% НСП 1% [23:26:36]line > о реализуемом товаре [23:26:36]line ОКРУГЛЕНИЕ: -0.36 [23:26:36]line ИТОГО: 500.00 [23:26:36]line Внесено: 500.00 [23:26:36]line СДАЧА: 0.00 [23:26:36]line НСП 1% : 4.43 [23:26:36]line НДС 12% : 53.14 [23:26:36]line Наличными: 500.00 [23:26:36]line Безнал.: 0.00 [23:26:36]line Место: АЗС № 136 "Партнер Нефть" [23:26:36]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:26:36]line СНО: Общий режим [23:26:36]line Чек 443 21.08.2024 23:26 [23:26:36]line Смена: 454 ФФД: 1.0 [23:26:36]line ЗНМ: 0300000067 [23:26:36]line РНМ: 0000000000092569 [23:26:36]line Версия ККМ: 001 [23:26:36]line ФМ: 0000000000871776 [23:26:36]line ФД: 140426 [23:26:36]line ФПД: 141941855936620 [23:26:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T232635&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140426&fm=141941855936620&tin=02508201610067®Number=0000000000092569&sum=50000 [23:26:36]written 0, free lines is 4095 [23:26:36]OFD Sender: Processing packet 140426 [packets to send 137, broken 136] [23:26:36]ProducePacketName [23:26:36]name=ofd_packets/00140426 [23:26:36]OFD Sender: To server: pG, [23:26:36]CommunicateWithHost lk.salyk.kg:30040 [23:26:36]ConnectInit lk.salyk.kg [23:26:36]Connected sock=10 [23:26:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 56 CE 07 01 D8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 AB 77 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8A 24 02 00 35 04 06 00 81 18 69 E6 E0 6C 6B 4C 14 43 28 22 61 FE [23:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 F4 09 47 00 6C 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 37 36 10 04 04 00 8A 24 02 00 F4 03 04 00 3B 1E C6 66 B6 04 01 00 00 C7 1A 49 4F 3F B6 B1 16 [23:26:36]CommunicateWithHost err = 0 [23:26:36]CheckOFDResponse [23:26:36]1017 (14) - 77093643461234 [23:26:36]1041 (16) - 0000000000871776 [23:26:36]1040 (4) - 140426 [23:26:36]1012 (4) - 21.08.2024 17:04 [23:26:36]1206 (1) - 0 [23:26:36]OFD Sender: Remove packet 140426 [23:26:36]ProducePacketName [23:26:36]name=ofd_packets/00140426 [23:26:36]NVStorageDeleteData [23:26:36]Write to MH i2c: 01 00 00 5A 2D 87 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 07 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 D4 0C 6E [23:26:36]RasterBufferAndPrint [23:26:36]line [23:26:36]line [23:26:36]line [23:26:36]line [23:26:36]line [23:26:36]written 0, free lines is 3292 [23:26:36]MH_Cut [23:26:36]Write to MH i2c: D1 01 00 61 2D 01 60 [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: D1 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: D1 01 00 [23:26:36]MH_I2C_Read... [23:26:36]Read from MH i2c: D1 01 00 61 2D 00 5F [23:26:36]Write to MH i2c: 01 00 00 62 2D 8F [23:26:36]Write i2c OK [23:26:36]MH_I2C_Read... [23:26:37]OFD Sender: No OFD packet to send [23:26:37]*** Cut start [23:26:37]*** Partial cut [23:26:37]*** CUTSNS_PIN = 1 [23:26:37]*** CUTSNS_PIN = 0 [23:26:37]*** Brake cut motor [23:26:38]Read from MH i2c: 01 [23:26:38]MH_I2C_Read... [23:26:38]*** Stop cut motor [23:26:38]*** Cut end [23:26:38]Read from MH i2c: 01 07 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: 01 07 00 62 2D 00 00 00 00 00 FF 0F A4 [23:26:38]process_action close_receipt done [23:26:38]requested_data is exist [23:26:38]produce_requested_data [23:26:38]requested_item fm.sn is exist - process it [23:26:38]wFMCommunicate request_size=4 [23:26:38]MH_SAM_APDU [23:26:38]CAPDU: 80 11 00 00 [23:26:38]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [23:26:38]Write i2c OK [23:26:38]MH_I2C_Read... [23:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:38]Read from MH i2c: E2 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 17 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 61 [23:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:26:38]wFMCommunicate OK [23:26:38]requested_item fd.num is exist - process it [23:26:38]SAM_PROTO_GetFieldsCounters [23:26:38]wFMCommunicate request_size=4 [23:26:38]MH_SAM_APDU [23:26:38]CAPDU: 80 13 00 00 [23:26:38]Write to MH i2c: E2 08 00 64 2D 80 13 00 00 00 00 00 00 0D [23:26:38]Write i2c OK [23:26:38]MH_I2C_Read... [23:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:38]Read from MH i2c: E2 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 62 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 62 00 64 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 24 02 00 0E 04 04 00 C6 01 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 E3 [23:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8A 24 02 00 0E 04 04 00 C6 01 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 [23:26:38]wFMCommunicate OK [23:26:38]SAM_PROTO_GetFieldsCounters done [23:26:38]requested_item shift.num is exist - process it [23:26:38]requested_item shift.opened is exist - process it [23:26:38]req_shift_opened [23:26:38]FM_GetShiftState [23:26:38]SAM_PROTO_GetShiftState [23:26:38]wFMCommunicate request_size=4 [23:26:38]MH_SAM_APDU [23:26:38]CAPDU: 80 13 01 00 [23:26:38]Write to MH i2c: E2 08 00 65 2D 80 13 01 00 00 00 00 00 0F [23:26:38]Write i2c OK [23:26:38]MH_I2C_Read... [23:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:38]Read from MH i2c: E2 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 0E 00 [23:26:38]MH_I2C_Read... [23:26:38]Read from MH i2c: E2 0E 00 65 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 8F [23:26:38]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:26:38]wFMCommunicate OK [23:26:38]SAM_PROTO_GetShiftState done [23:26:38]FM_GetShiftState done [23:26:38]req_shift_opened done [23:26:38]requested_item shift.open_date is exist - process it [23:26:38]req_shift_open_date [23:26:38]req_shift_open_date done [23:26:38]produce_requested_data done [23:26:38]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140426,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:26:38]process_action_free close_receipt [23:26:38]json_value_free [23:26:38]json_value_free done [23:26:38]process_json_proto returns [23:26:38]Send response to host [23:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140426,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:26:38]free response buf [23:26:38]execute_script done [23:26:38]execute_script returns [23:26:38]free content buf [23:26:38]Sock 7.Close socket [23:26:38]Sock 7.Thread stoped [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:29]accept exits with 9 [23:34:29]New connection [23:34:29]New thread 3067612516 created [23:34:29]Thread 3067469156 joined [23:34:29]Waiting for new connection... [23:34:29] Sock 9.Parse request [23:34:29]Sock 9.Check first char [23:34:29]Sock 9.First char is OK [23:34:29]request: POST /json_proto HTTP/1.0 [23:34:29]Method: POST [23:34:29]URL: /json_proto [23:34:29]Method is POST - this is cgi request [23:34:29]url: /json_proto [23:34:29]query_string will be loaded in cgi processing [23:34:29]execute_cgi json_proto POST (null) [23:34:29]execute_cgi path=json_proto method=POST [23:34:29]POST find Content-Length [23:34:29]Host: 172.17.45.67:8080 [23:34:29]Content-Length: 677 [23:34:29]Content-Type: application/json [23:34:29] [23:34:29]POST finish read [23:34:29]Found Content-Length = 677 [23:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.200, "sum" : 460.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:29]execute_script... [23:34:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.200, "sum" : 460.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:29]POST & json_proto [23:34:29]process_json_proto [23:34:29]json parsed OK: [23:34:29]protocol is kg_v1.0 [23:34:29]action value=close_receipt [23:34:29]process_action close_receipt [23:34:29]cmd_close_receipt [23:34:29]MH_GetDate [23:34:29]Write to MH i2c: F0 00 00 66 2D 82 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: F0 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: F0 09 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: F0 09 00 66 2D 00 86 79 C6 66 5F 7F 2B 66 25 [23:34:29]GetLastDocTimeStamp 1724282795 [23:34:29]current date 1724283270 [23:34:29]FM_GetShiftState [23:34:29]SAM_PROTO_GetShiftState [23:34:29]wFMCommunicate request_size=4 [23:34:29]MH_SAM_APDU [23:34:29]CAPDU: 80 13 01 00 [23:34:29]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [23:34:29]Write i2c OK [23:34:29]MH_I2C_Read... [23:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:29]Read from MH i2c: E2 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 0E 00 [23:34:29]MH_I2C_Read... [23:34:29]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 91 [23:34:29]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:34:29]wFMCommunicate OK [23:34:29]SAM_PROTO_GetShiftState done [23:34:29]FM_GetShiftState done [23:34:29]opened in 1724200467 [23:34:29]opened+sec_in_day 1724286867 [23:34:29]quantity*price = 46004 [23:34:29]sum+1 = 46005 [23:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.85 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 444 21.08.2024 23:34 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140427 ФПД: 244023574189726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140427&fm=244023574189726&tin=02508201610067®Number=0000000000092569&sum=46000 [23:34:30]StoreToDocumentArchive [23:34:30]shift 454 fd 140427 [23:34:30]save to /storage/0454/doc_00140427 [23:34:30]save last doc name /storage/0454/doc_00140427 to /storage/kkm_last_doc_name [23:34:30]save OK [23:34:30]Clear old archive folders... [23:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:30]tlvbuf is 00CE2410 [23:34:30]SAM_PROTO_ClearQueue [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 09 00 00 [23:34:30]Write to MH i2c: E2 08 00 74 2D 80 09 00 00 00 00 00 00 13 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:30]Read from MH i2c: E2 03 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 74 2D 00 90 00 15 [23:34:30]RAPDU: 90 00 [23:34:30]wFMCommunicate OK [23:34:30]SAM_PROTO_ClearQueue done [23:34:30]KKMCreateOFDPacket [23:34:30]OFDProtocolAddRootSTLVToBuf [23:34:30]FM_MakeSignedData [23:34:30]FM_MakeSignedData [23:34:30]SAM_PROTO_SignData [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 0D 01 02 [23:34:30]Write to MH i2c: E2 08 00 75 2D 80 0D 01 02 00 00 00 00 1B [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 75 2D 00 90 00 16 [23:34:30]RAPDU: 90 00 [23:34:30]wFMCommunicate OK [23:34:30]wFMCommunicate request_size=255 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B4 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 86 79 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 24 02 00 35 04 06 00 DD [23:34:30]Write to MH i2c: E2 02 01 76 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B4 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 86 79 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 24 02 00 35 04 06 00 DD 00 00 C5 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:30]Read from MH i2c: E2 03 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [23:34:30]RAPDU: 90 00 [23:34:30]wFMCommunicate OK [23:34:30]wFMCommunicate request_size=10 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 0D 02 02 05 F0 2A 74 D6 9E [23:34:30]Write to MH i2c: E2 0D 00 77 2D 80 0D 02 02 05 00 F0 2A 74 D6 9E 00 00 2A [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [23:34:30]RAPDU: 90 00 [23:34:30]wFMCommunicate OK [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 0D 03 02 [23:34:30]Write to MH i2c: E2 08 00 78 2D 80 0D 03 02 00 00 00 00 20 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0B 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0B 00 78 2D 00 18 8D B2 0E DF 4A 69 6E 90 00 86 [23:34:30]RAPDU: 18 8D B2 0E DF 4A 69 6E 90 00 [23:34:30]wFMCommunicate OK [23:34:30]SAM_PROTO_SignData done [23:34:30]FM_MakeSignedData done [23:34:30]CreateOFDProtocolMessage [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 11 00 00 [23:34:30]Write to MH i2c: E2 08 00 79 2D 80 11 00 00 00 00 00 00 20 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 79 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 77 [23:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:34:31]wFMCommunicate OK [23:34:31]CreateOFDProtocolMessage done [23:34:31]OFDSenderStorePacket 140427 [23:34:31]StoreOFDPacket docnum=140427 [23:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 A5 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B4 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 86 79 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 24 02 00 35 04 06 00 DD F0 2A 74 D6 9E 18 8D B2 0E DF 4A 69 6E [23:34:31]CheckFolder [23:34:31]dirname=/storage/ofd_packets [23:34:31]CheckFolder done [23:34:31]ProducePacketName [23:34:31]name=ofd_packets/00140427 [23:34:31]NVStorageSaveData ofd_packets/00140427 [23:34:31]File name is /storage/ofd_packets/00140427 [23:34:31]Write 301 bytes [23:34:31]NVStorageSaveData done [23:34:31]OFDSenderStorePacket done [23:34:31]KKMCreateOFDPacket done [23:34:31]NVStorageSaveData kkm_last_timestamp [23:34:31]File name is /storage/kkm_last_timestamp [23:34:31]Write 4 bytes [23:34:31]NVStorageSaveData done [23:34:31]ExternCall_PrintAddStr [23:34:31]wPrintStart [23:34:31]Write to MH i2c: 01 00 00 7A 2D A7 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 FF 0F BC [23:34:31]RasterBufferAndPrint [23:34:31]line Счет N : (1)594285 [23:34:31]line ИНН: 02508201610067 [23:34:31]line Контрольно-Кассовый Чек [23:34:31]line ПРОДАЖА [23:34:31]line ТРК (МРК, ГНК) : 51 [23:34:31]line Товар: 2710124500 [23:34:31]line Аи-95-К-5 [23:34:31]line 6.200 * 74.20 [23:34:31]line = 460.04 [23:34:31]line НДС 12% НСП 1% [23:34:31]line > о реализуемом товаре [23:34:31]line ОКРУГЛЕНИЕ: -0.04 [23:34:31]line ИТОГО: 460.00 [23:34:31]line Внесено: 460.00 [23:34:31]line СДАЧА: 0.00 [23:34:31]line НСП 1% : 4.07 [23:34:31]line НДС 12% : 48.85 [23:34:31]line Наличными: 460.00 [23:34:31]line Безнал.: 0.00 [23:34:31]line Место: АЗС № 136 "Партнер Нефть" [23:34:31]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:34:31]line СНО: Общий режим [23:34:31]line Чек 444 21.08.2024 23:34 [23:34:31]line Смена: 454 ФФД: 1.0 [23:34:31]line ЗНМ: 0300000067 [23:34:31]line РНМ: 0000000000092569 [23:34:31]line Версия ККМ: 001 [23:34:31]line ФМ: 0000000000871776 [23:34:31]line ФД: 140427 [23:34:31]line ФПД: 244023574189726 [23:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233430&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140427&fm=244023574189726&tin=02508201610067®Number=0000000000092569&sum=46000 [23:34:31]OFD Sender: Processing packet 140427 [packets to send 137, broken 136] [23:34:31]ProducePacketName [23:34:31]name=ofd_packets/00140427 [23:34:31]OFD Sender: To server: pG, [23:34:31]CommunicateWithHost lk.salyk.kg:30040 [23:34:31]ConnectInit lk.salyk.kg [23:34:31]written 0, free lines is 4095 [23:34:31]Connected sock=10 [23:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 D0 A5 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 38 18 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B4 B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 13 00 00 00 00 07 04 06 00 B0 B3 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 86 79 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8B 24 02 00 35 04 06 00 DD F0 2A 74 D6 9E 18 8D B2 0E DF 4A 69 6E [23:34: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 37 36 4F 00 00 00 6C 73 47 00 80 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 37 36 10 04 04 00 8B 24 02 00 F4 03 04 00 16 20 C6 66 B6 04 01 00 00 EC 91 67 91 0F EF 59 E4 [23:34:31]CommunicateWithHost err = 0 [23:34:31]CheckOFDResponse [23:34:31]1017 (14) - 77093643461234 [23:34:31]1041 (16) - 0000000000871776 [23:34:31]1040 (4) - 140427 [23:34:31]1012 (4) - 21.08.2024 17:12 [23:34:31]1206 (1) - 0 [23:34:31]OFD Sender: Remove packet 140427 [23:34:31]ProducePacketName [23:34:31]name=ofd_packets/00140427 [23:34:31]NVStorageDeleteData [23:34:31]Write to MH i2c: 01 00 00 A5 2D D2 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 D4 0C B9 [23:34:31]RasterBufferAndPrint [23:34:31]line [23:34:31]line [23:34:31]line [23:34:31]line [23:34:31]line [23:34:31]written 0, free lines is 3292 [23:34:31]MH_Cut [23:34:31]Write to MH i2c: D1 01 00 AC 2D 01 AB [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: D1 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: D1 01 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: D1 01 00 AC 2D 00 AA [23:34:31]Write to MH i2c: 01 00 00 AD 2D DA [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:32]OFD Sender: No OFD packet to send [23:34:32]*** Cut start [23:34:32]*** Partial cut [23:34:32]*** CUTSNS_PIN = 1 [23:34:32]*** CUTSNS_PIN = 0 [23:34:32]*** Brake cut motor [23:34:33]Read from MH i2c: 01 [23:34:33]MH_I2C_Read... [23:34:33]*** Stop cut motor [23:34:33]*** Cut end [23:34:33]Read from MH i2c: 01 07 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [23:34:33]process_action close_receipt done [23:34:33]requested_data is exist [23:34:33]produce_requested_data [23:34:33]requested_item fm.sn is exist - process it [23:34:33]wFMCommunicate request_size=4 [23:34:33]MH_SAM_APDU [23:34:33]CAPDU: 80 11 00 00 [23:34:33]Write to MH i2c: E2 08 00 AE 2D 80 11 00 00 00 00 00 00 55 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:33]Read from MH i2c: E2 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 17 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 17 00 AE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AC [23:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:34:33]wFMCommunicate OK [23:34:33]requested_item fd.num is exist - process it [23:34:33]SAM_PROTO_GetFieldsCounters [23:34:33]wFMCommunicate request_size=4 [23:34:33]MH_SAM_APDU [23:34:33]CAPDU: 80 13 00 00 [23:34:33]Write to MH i2c: E2 08 00 AF 2D 80 13 00 00 00 00 00 00 58 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:33]Read from MH i2c: E2 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 62 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 62 00 AF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 24 02 00 0E 04 04 00 C6 01 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 32 [23:34: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8B 24 02 00 0E 04 04 00 C6 01 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 [23:34:33]wFMCommunicate OK [23:34:33]SAM_PROTO_GetFieldsCounters done [23:34:33]requested_item shift.num is exist - process it [23:34:33]requested_item shift.opened is exist - process it [23:34:33]req_shift_opened [23:34:33]FM_GetShiftState [23:34:33]SAM_PROTO_GetShiftState [23:34:33]wFMCommunicate request_size=4 [23:34:33]MH_SAM_APDU [23:34:33]CAPDU: 80 13 01 00 [23:34:33]Write to MH i2c: E2 08 00 B0 2D 80 13 01 00 00 00 00 00 5A [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:33]Read from MH i2c: E2 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 0E 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: E2 0E 00 B0 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DA [23:34:33]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:34:33]wFMCommunicate OK [23:34:33]SAM_PROTO_GetShiftState done [23:34:33]FM_GetShiftState done [23:34:33]req_shift_opened done [23:34:33]requested_item shift.open_date is exist - process it [23:34:33]req_shift_open_date [23:34:33]req_shift_open_date done [23:34:33]produce_requested_data done [23:34:33]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140427,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:34:33]process_action_free close_receipt [23:34:33]json_value_free [23:34:33]json_value_free done [23:34:33]process_json_proto returns [23:34:33]Send response to host [23:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140427,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:34:33]free response buf [23:34:33]execute_script done [23:34:33]execute_script returns [23:34:33]free content buf [23:34:33]Sock 9.Close socket [23:34:33]Sock 9.Thread stoped [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:14]accept exits with 7 [23:37:14]New connection [23:37:14]New thread 3067469156 created [23:37:14]Thread 3067612516 joined [23:37:14]Waiting for new connection... [23:37:14] Sock 7.Parse request [23:37:14]Sock 7.Check first char [23:37:14]Sock 7.First char is OK [23:37:14]request: POST /json_proto HTTP/1.0 [23:37:14]Method: POST [23:37:14]URL: /json_proto [23:37:14]Method is POST - this is cgi request [23:37:14]url: /json_proto [23:37:14]query_string will be loaded in cgi processing [23:37:14]execute_cgi json_proto POST (null) [23:37:14]execute_cgi path=json_proto method=POST [23:37:14]POST find Content-Length [23:37:14]Host: 172.17.45.67:8080 [23:37:14]Content-Length: 677 [23:37:14]Content-Type: application/json [23:37:14] [23:37:14]POST finish read [23:37:14]Found Content-Length = 677 [23:37:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:14]execute_script... [23:37: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)594286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:14]POST & json_proto [23:37:14]process_json_proto [23:37:14]json parsed OK: [23:37:14]protocol is kg_v1.0 [23:37:14]action value=close_receipt [23:37:14]process_action close_receipt [23:37:14]cmd_close_receipt [23:37:14]MH_GetDate [23:37:14]Write to MH i2c: F0 00 00 B1 2D CD [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: F0 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: F0 09 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: F0 09 00 B1 2D 00 2C 7A C6 66 5F 7F 2B 66 17 [23:37:14]GetLastDocTimeStamp 1724283270 [23:37:14]current date 1724283436 [23:37:14]FM_GetShiftState [23:37:14]SAM_PROTO_GetShiftState [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 13 01 00 [23:37:14]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0E 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DC [23:37:14]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:37:14]wFMCommunicate OK [23:37:14]SAM_PROTO_GetShiftState done [23:37:14]FM_GetShiftState done [23:37:14]opened in 1724200467 [23:37:14]opened+sec_in_day 1724286867 [23:37:14]quantity*price = 20001 [23:37:14]sum+1 = 20002 [23:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 445 21.08.2024 23:37 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140428 ФПД: 79112484960719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140428&fm=79112484960719&tin=02508201610067®Number=0000000000092569&sum=20000 [23:37:16]StoreToDocumentArchive [23:37:16]shift 454 fd 140428 [23:37:16]save to /storage/0454/doc_00140428 [23:37:16]save last doc name /storage/0454/doc_00140428 to /storage/kkm_last_doc_name [23:37:16]save OK [23:37:16]Clear old archive folders... [23:37:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:16]tlvbuf is 00C27820 [23:37:16]SAM_PROTO_ClearQueue [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 09 00 00 [23:37:16]Write to MH i2c: E2 08 00 BF 2D 80 09 00 00 00 00 00 00 5E [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]SAM_PROTO_ClearQueue done [23:37:16]KKMCreateOFDPacket [23:37:16]OFDProtocolAddRootSTLVToBuf [23:37:16]FM_MakeSignedData [23:37:16]FM_MakeSignedData [23:37:16]SAM_PROTO_SignData [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 0D 01 02 [23:37:16]Write to MH i2c: E2 08 00 C0 2D 80 0D 01 02 00 00 00 00 66 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=255 [23:37:16]MH_SAM_APDU [23:37: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 01 00 00 F4 03 04 00 2C 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 24 02 00 35 04 06 00 47 [23:37:16]Write to MH i2c: E2 02 01 C1 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 01 00 00 F4 03 04 00 2C 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 24 02 00 35 04 06 00 47 00 00 41 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=10 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 0D 02 02 05 F3 CF 90 39 CF [23:37:16]Write to MH i2c: E2 0D 00 C2 2D 80 0D 02 02 05 00 F3 CF 90 39 CF 00 00 CD [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [23:37:16]RAPDU: 90 00 [23:37:16]wFMCommunicate OK [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 0D 03 02 [23:37:16]Write to MH i2c: E2 08 00 C3 2D 80 0D 03 02 00 00 00 00 6B [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 0B 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 0B 00 C3 2D 00 D9 54 D3 86 24 87 88 EB 90 00 10 [23:37:16]RAPDU: D9 54 D3 86 24 87 88 EB 90 00 [23:37:16]wFMCommunicate OK [23:37:16]SAM_PROTO_SignData done [23:37:16]FM_MakeSignedData done [23:37:16]CreateOFDProtocolMessage [23:37:16]wFMCommunicate request_size=4 [23:37:16]MH_SAM_APDU [23:37:16]CAPDU: 80 11 00 00 [23:37:16]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:16]Read from MH i2c: E2 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 C2 [23:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:37:16]wFMCommunicate OK [23:37:16]CreateOFDProtocolMessage done [23:37:16]OFDSenderStorePacket 140428 [23:37:16]StoreOFDPacket docnum=140428 [23:37:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 1D DF 07 01 E0 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 01 00 00 F4 03 04 00 2C 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 24 02 00 35 04 06 00 47 F3 CF 90 39 CF D9 54 D3 86 24 87 88 EB [23:37:16]CheckFolder [23:37:16]dirname=/storage/ofd_packets [23:37:16]CheckFolder done [23:37:16]ProducePacketName [23:37:16]name=ofd_packets/00140428 [23:37:16]NVStorageSaveData ofd_packets/00140428 [23:37:16]File name is /storage/ofd_packets/00140428 [23:37:16]Write 301 bytes [23:37:16]NVStorageSaveData done [23:37:16]OFDSenderStorePacket done [23:37:16]KKMCreateOFDPacket done [23:37:16]NVStorageSaveData kkm_last_timestamp [23:37:16]File name is /storage/kkm_last_timestamp [23:37:16]Write 4 bytes [23:37:16]NVStorageSaveData done [23:37:16]ExternCall_PrintAddStr [23:37:16]wPrintStart [23:37:16]Write to MH i2c: 01 00 00 C5 2D F2 [23:37:16]Write i2c OK [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 07 00 [23:37:16]MH_I2C_Read... [23:37:16]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [23:37:16]RasterBufferAndPrint [23:37:16]line Счет N : (1)594286 [23:37:16]line ИНН: 02508201610067 [23:37:16]line Контрольно-Кассовый Чек [23:37:16]line ПРОДАЖА [23:37:16]line ТРК (МРК, ГНК) : 42 [23:37:16]line Товар: 2710124130 [23:37:16]line Аи-92-К-5 [23:37:16]line 2.950 * 67.80 [23:37:16]line = 200.01 [23:37:16]line НДС 12% НСП 1% [23:37:16]line > о реализуемом товаре [23:37:16]line ОКРУГЛЕНИЕ: -0.01 [23:37:16]line ИТОГО: 200.00 [23:37:16]line Внесено: 200.00 [23:37:16]line СДАЧА: 0.00 [23:37:16]line НСП 1% : 1.77 [23:37:16]line НДС 12% : 21.24 [23:37:16]line Наличными: 200.00 [23:37:16]line Безнал.: 0.00 [23:37:16]line Место: АЗС № 136 "Партнер Нефть" [23:37:16]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:37:16]line СНО: Общий режим [23:37:16]line Чек 445 21.08.2024 23:37 [23:37:16]line Смена: 454 ФФД: 1.0 [23:37:16]line ЗНМ: 0300000067 [23:37:16]line РНМ: 0000000000092569 [23:37:16]line Версия ККМ: 001 [23:37:16]line ФМ: 0000000000871776 [23:37:16]line ФД: 140428 [23:37:16]line ФПД: 79112484960719 [23:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233716&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140428&fm=79112484960719&tin=02508201610067®Number=0000000000092569&sum=20000 [23:37:16]written 0, free lines is 4095 [23:37:16]OFD Sender: Processing packet 140428 [packets to send 137, broken 136] [23:37:16]ProducePacketName [23:37:16]name=ofd_packets/00140428 [23:37:16]OFD Sender: To server: pG, [23:37:16]CommunicateWithHost lk.salyk.kg:30040 [23:37:16]ConnectInit lk.salyk.kg [23:37:17]Connected sock=10 [23:37: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 37 36 0F 01 00 00 1D DF 07 01 E0 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BD 01 00 00 F4 03 04 00 2C 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8C 24 02 00 35 04 06 00 47 F3 CF 90 39 CF D9 54 D3 86 24 87 88 EB [23:37: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 37 36 4F 00 00 00 93 C2 47 00 C9 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 37 36 10 04 04 00 8C 24 02 00 F4 03 04 00 BC 20 C6 66 B6 04 01 00 00 39 78 C0 CD A4 C6 C3 4E [23:37:17]CommunicateWithHost err = 0 [23:37:17]CheckOFDResponse [23:37:17]1017 (14) - 77093643461234 [23:37:17]1041 (16) - 0000000000871776 [23:37:17]1040 (4) - 140428 [23:37:17]1012 (4) - 21.08.2024 17:15 [23:37:17]1206 (1) - 0 [23:37:17]OFD Sender: Remove packet 140428 [23:37:17]ProducePacketName [23:37:17]name=ofd_packets/00140428 [23:37:17]NVStorageDeleteData [23:37:17]Write to MH i2c: 01 00 00 F0 2D 1D [23:37:17]Write i2c OK [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: 01 [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: 01 07 00 [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 C6 0C F6 [23:37:17]RasterBufferAndPrint [23:37:17]line [23:37:17]line [23:37:17]line [23:37:17]line [23:37:17]line [23:37:17]written 0, free lines is 3276 [23:37:17]MH_Cut [23:37:17]Write to MH i2c: D1 01 00 F7 2D 01 F6 [23:37:17]Write i2c OK [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: D1 [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: D1 01 00 [23:37:17]MH_I2C_Read... [23:37:17]Read from MH i2c: D1 01 00 F7 2D 00 F5 [23:37:17]Write to MH i2c: 01 00 00 F8 2D 25 [23:37:17]Write i2c OK [23:37:17]MH_I2C_Read... [23:37:17]OFD Sender: No OFD packet to send [23:37:18]*** Cut start [23:37:18]*** Partial cut [23:37:18]*** CUTSNS_PIN = 1 [23:37:18]*** CUTSNS_PIN = 0 [23:37:18]*** Brake cut motor [23:37:18]Read from MH i2c: 01 [23:37:18]MH_I2C_Read... [23:37:18]*** Stop cut motor [23:37:18]*** Cut end [23:37:18]Read from MH i2c: 01 07 00 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 FF 0F 3A [23:37:18]process_action close_receipt done [23:37:18]requested_data is exist [23:37:18]produce_requested_data [23:37:18]requested_item fm.sn is exist - process it [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 11 00 00 [23:37:18]Write to MH i2c: E2 08 00 F9 2D 80 11 00 00 00 00 00 00 A0 [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 17 00 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 17 00 F9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F7 [23:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:37:18]wFMCommunicate OK [23:37:18]requested_item fd.num is exist - process it [23:37:18]SAM_PROTO_GetFieldsCounters [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 13 00 00 [23:37:18]Write to MH i2c: E2 08 00 FA 2D 80 13 00 00 00 00 00 00 A3 [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 62 00 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 62 00 FA 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 24 02 00 0E 04 04 00 C6 01 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 81 [23:37: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8C 24 02 00 0E 04 04 00 C6 01 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 [23:37:18]wFMCommunicate OK [23:37:18]SAM_PROTO_GetFieldsCounters done [23:37:18]requested_item shift.num is exist - process it [23:37:18]requested_item shift.opened is exist - process it [23:37:18]req_shift_opened [23:37:18]FM_GetShiftState [23:37:18]SAM_PROTO_GetShiftState [23:37:18]wFMCommunicate request_size=4 [23:37:18]MH_SAM_APDU [23:37:18]CAPDU: 80 13 01 00 [23:37:18]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [23:37:18]Write i2c OK [23:37:18]MH_I2C_Read... [23:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:18]Read from MH i2c: E2 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 0E 00 [23:37:18]MH_I2C_Read... [23:37:18]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 25 [23:37:18]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:37:18]wFMCommunicate OK [23:37:18]SAM_PROTO_GetShiftState done [23:37:18]FM_GetShiftState done [23:37:18]req_shift_opened done [23:37:18]requested_item shift.open_date is exist - process it [23:37:18]req_shift_open_date [23:37:18]req_shift_open_date done [23:37:18]produce_requested_data done [23:37:18]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140428,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:37:18]process_action_free close_receipt [23:37:18]json_value_free [23:37:18]json_value_free done [23:37:18]process_json_proto returns [23:37:18]Send response to host [23:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140428,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:37:18]free response buf [23:37:18]execute_script done [23:37:18]execute_script returns [23:37:18]free content buf [23:37:18]Sock 7.Close socket [23:37:18]Sock 7.Thread stoped [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]accept exits with 9 [23:39:37]New connection [23:39:37]New thread 3067612516 created [23:39:37]Thread 3067469156 joined [23:39:37]Waiting for new connection... [23:39:37] Sock 9.Parse request [23:39:37]Sock 9.Check first char [23:39:37]Sock 9.First char is OK [23:39:37]request: POST /json_proto HTTP/1.0 [23:39:37]Method: POST [23:39:37]URL: /json_proto [23:39:37]Method is POST - this is cgi request [23:39:37]url: /json_proto [23:39:37]query_string will be loaded in cgi processing [23:39:37]execute_cgi json_proto POST (null) [23:39:37]execute_cgi path=json_proto method=POST [23:39:37]POST find Content-Length [23:39:37]Host: 172.17.45.67:8080 [23:39:37]Content-Length: 677 [23:39:37]Content-Type: application/json [23:39:37] [23:39:37]POST finish read [23:39:37]Found Content-Length = 677 [23:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:37]execute_script... [23: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)594287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:37]POST & json_proto [23:39:37]process_json_proto [23:39:37]json parsed OK: [23:39:37]protocol is kg_v1.0 [23:39:37]action value=close_receipt [23:39:37]process_action close_receipt [23:39:37]cmd_close_receipt [23:39:37]MH_GetDate [23:39:37]Write to MH i2c: F0 00 00 FC 2D 18 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 09 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: F0 09 00 FC 2D 00 BB 7A C6 66 5F 7F 2B 66 F1 [23:39:37]GetLastDocTimeStamp 1724283436 [23:39:37]current date 1724283579 [23:39:37]FM_GetShiftState [23:39:37]SAM_PROTO_GetShiftState [23:39:37]wFMCommunicate request_size=4 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 13 01 00 [23:39:37]Write to MH i2c: E2 08 00 FD 2D 80 13 01 00 00 00 00 00 A7 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:37]Read from MH i2c: E2 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0E 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 0E 00 FD 2D 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 27 [23:39:37]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:39:37]wFMCommunicate OK [23:39:37]SAM_PROTO_GetShiftState done [23:39:37]FM_GetShiftState done [23:39:37]opened in 1724200467 [23:39:37]opened+sec_in_day 1724286867 [23:39:37]quantity*price = 50036 [23:39:37]sum+1 = 50037 [23:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 446 21.08.2024 23:39 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140429 ФПД: 155854846495024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140429&fm=155854846495024&tin=02508201610067®Number=0000000000092569&sum=50000 [23:39:38]StoreToDocumentArchive [23:39:38]shift 454 fd 140429 [23:39:38]save to /storage/0454/doc_00140429 [23:39:38]save last doc name /storage/0454/doc_00140429 to /storage/kkm_last_doc_name [23:39:38]save OK [23:39:38]Clear old archive folders... [23:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:39:38]tlvbuf is 00D38D00 [23:39:38]SAM_PROTO_ClearQueue [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 09 00 00 [23:39:38]Write to MH i2c: E2 08 00 0A 2E 80 09 00 00 00 00 00 00 AA [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_ClearQueue done [23:39:38]KKMCreateOFDPacket [23:39:38]OFDProtocolAddRootSTLVToBuf [23:39:38]FM_MakeSignedData [23:39:38]FM_MakeSignedData [23:39:38]SAM_PROTO_SignData [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 01 02 [23:39:38]Write to MH i2c: E2 08 00 0B 2E 80 0D 01 02 00 00 00 00 B2 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]wFMCommunicate request_size=255 [23:39:38]MH_SAM_APDU [23: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BB 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 24 02 00 35 04 06 00 8D [23:39:38]Write to MH i2c: E2 02 01 0C 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BB 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 24 02 00 35 04 06 00 8D 00 00 62 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [23:39:38]RAPDU: 90 00 [23:39:38]wFMCommunicate OK [23:39:38]wFMCommunicate request_size=10 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 0D 02 02 05 BF C8 C3 09 30 [23:39:38]Write to MH i2c: E2 0D 00 0D 2E 80 0D 02 02 05 00 BF C8 C3 09 30 00 00 42 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 03 00 [23:39:38]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [23:39:39]RAPDU: 90 00 [23:39:39]wFMCommunicate OK [23:39:39]wFMCommunicate request_size=4 [23:39:39]MH_SAM_APDU [23:39:39]CAPDU: 80 0D 03 02 [23:39:39]Write to MH i2c: E2 08 00 0E 2E 80 0D 03 02 00 00 00 00 B7 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:39]Read from MH i2c: E2 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 0B 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 0B 00 0E 2E 00 CC 20 0D 06 1E 32 52 D0 90 00 29 [23:39:39]RAPDU: CC 20 0D 06 1E 32 52 D0 90 00 [23:39:39]wFMCommunicate OK [23:39:39]SAM_PROTO_SignData done [23:39:39]FM_MakeSignedData done [23:39:39]CreateOFDProtocolMessage [23:39:39]wFMCommunicate request_size=4 [23:39:39]MH_SAM_APDU [23:39:39]CAPDU: 80 11 00 00 [23:39:39]Write to MH i2c: E2 08 00 0F 2E 80 11 00 00 00 00 00 00 B7 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:39]Read from MH i2c: E2 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 17 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: E2 17 00 0F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 0E [23:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:39:39]wFMCommunicate OK [23:39:39]CreateOFDProtocolMessage done [23:39:39]OFDSenderStorePacket 140429 [23:39:39]StoreOFDPacket docnum=140429 [23:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 A1 B8 07 01 23 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BB 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 24 02 00 35 04 06 00 8D BF C8 C3 09 30 CC 20 0D 06 1E 32 52 D0 [23:39:39]CheckFolder [23:39:39]dirname=/storage/ofd_packets [23:39:39]CheckFolder done [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00140429 [23:39:39]NVStorageSaveData ofd_packets/00140429 [23:39:39]File name is /storage/ofd_packets/00140429 [23:39:39]Write 301 bytes [23:39:39]NVStorageSaveData done [23:39:39]OFDSenderStorePacket done [23:39:39]KKMCreateOFDPacket done [23:39:39]NVStorageSaveData kkm_last_timestamp [23:39:39]File name is /storage/kkm_last_timestamp [23:39:39]Write 4 bytes [23:39:39]NVStorageSaveData done [23:39:39]OFD Sender: Processing packet 140429 [packets to send 137, broken 136] [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00140429 [23:39:39]OFD Sender: To server: pG, [23:39:39]CommunicateWithHost lk.salyk.kg:30040 [23:39:39]ConnectInit lk.salyk.kg [23:39:39]ExternCall_PrintAddStr [23:39:39]wPrintStart [23:39:39]Write to MH i2c: 01 00 00 10 2E 3E [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 10 2E 00 00 00 00 00 FF 0F 53 [23:39:39]RasterBufferAndPrint [23:39:39]line Счет N : (1)594287 [23:39:39]line ИНН: 02508201610067 [23:39:39]line Контрольно-Кассовый Чек [23:39:39]line ПРОДАЖА [23:39:39]line ТРК (МРК, ГНК) : 52 [23:39:39]line Товар: 2710124130 [23:39:39]line Аи-92-К-5 [23:39:39]line 7.380 * 67.80 [23:39:39]line = 500.36 [23:39:39]line НДС 12% НСП 1% [23:39:39]line > о реализуемом товаре [23:39:39]line ОКРУГЛЕНИЕ: -0.36 [23:39:39]line ИТОГО: 500.00 [23:39:39]line Внесено: 500.00 [23:39:39]line СДАЧА: 0.00 [23:39:39]line НСП 1% : 4.43 [23:39:39]line НДС 12% : 53.14 [23:39:39]line Наличными: 500.00 [23:39:39]line Безнал.: 0.00 [23:39:39]line Место: АЗС № 136 "Партнер Нефть" [23:39:39]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [23:39:39]line СНО: Общий режим [23:39:39]line Чек 446 21.08.2024 23:39 [23:39:39]line Смена: 454 ФФД: 1.0 [23:39:39]line ЗНМ: 0300000067 [23:39:39]line РНМ: 0000000000092569 [23:39:39]line Версия ККМ: 001 [23:39:39]line ФМ: 0000000000871776 [23:39:39]line ФД: 140429 [23:39:39]line ФПД: 155854846495024 [23:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240821T233939&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140429&fm=155854846495024&tin=02508201610067®Number=0000000000092569&sum=50000 [23:39:39]Connected sock=11 [23: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 37 36 0F 01 00 00 A1 B8 07 01 23 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 BB 7A C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 24 02 00 35 04 06 00 8D BF C8 C3 09 30 CC 20 0D 06 1E 32 52 D0 [23:39:39]written 0, free lines is 4095 [23:39: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 37 36 4F 00 00 00 25 87 47 00 7A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8D 24 02 00 F4 03 04 00 4A 21 C6 66 B6 04 01 00 00 29 5C F3 A0 7A 3D 64 DA [23:39:39]CommunicateWithHost err = 0 [23:39:39]CheckOFDResponse [23:39:39]1017 (14) - 77093643461234 [23:39:39]1041 (16) - 0000000000871776 [23:39:39]1040 (4) - 140429 [23:39:39]1012 (4) - 21.08.2024 17:18 [23:39:39]1206 (1) - 0 [23:39:39]OFD Sender: Remove packet 140429 [23:39:39]ProducePacketName [23:39:39]name=ofd_packets/00140429 [23:39:39]NVStorageDeleteData [23:39:39]Write to MH i2c: 01 00 00 3B 2E 69 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 D9 0C 55 [23:39:39]RasterBufferAndPrint [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]line [23:39:39]written 0, free lines is 3296 [23:39:39]MH_Cut [23:39:39]Write to MH i2c: D1 01 00 42 2E 01 42 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 01 00 [23:39:39]MH_I2C_Read... [23:39:39]Read from MH i2c: D1 01 00 42 2E 00 41 [23:39:39]Write to MH i2c: 01 00 00 43 2E 71 [23:39:39]Write i2c OK [23:39:39]MH_I2C_Read... [23:39:40]OFD Sender: No OFD packet to send [23:39:40]*** Cut start [23:39:40]*** Partial cut [23:39:40]*** CUTSNS_PIN = 1 [23:39:40]*** CUTSNS_PIN = 0 [23:39:40]*** Brake cut motor [23:39:41]Read from MH i2c: 01 [23:39:41]MH_I2C_Read... [23:39:41]*** Stop cut motor [23:39:41]*** Cut end [23:39:41]Read from MH i2c: 01 07 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: 01 07 00 43 2E 00 00 00 00 00 FF 0F 86 [23:39:41]process_action close_receipt done [23:39:41]requested_data is exist [23:39:41]produce_requested_data [23:39:41]requested_item fm.sn is exist - process it [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 11 00 00 [23:39:41]Write to MH i2c: E2 08 00 44 2E 80 11 00 00 00 00 00 00 EC [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 17 00 44 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 43 [23:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [23:39:41]wFMCommunicate OK [23:39:41]requested_item fd.num is exist - process it [23:39:41]SAM_PROTO_GetFieldsCounters [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 00 00 [23:39:41]Write to MH i2c: E2 08 00 45 2E 80 13 00 00 00 00 00 00 EF [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 62 00 45 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 24 02 00 0E 04 04 00 C6 01 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 D1 [23: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8D 24 02 00 0E 04 04 00 C6 01 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 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetFieldsCounters done [23:39:41]requested_item shift.num is exist - process it [23:39:41]requested_item shift.opened is exist - process it [23:39:41]req_shift_opened [23:39:41]FM_GetShiftState [23:39:41]SAM_PROTO_GetShiftState [23:39:41]wFMCommunicate request_size=4 [23:39:41]MH_SAM_APDU [23:39:41]CAPDU: 80 13 01 00 [23:39:41]Write to MH i2c: E2 08 00 46 2E 80 13 01 00 00 00 00 00 F1 [23:39:41]Write i2c OK [23:39:41]MH_I2C_Read... [23:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:41]Read from MH i2c: E2 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 [23:39:41]MH_I2C_Read... [23:39:41]Read from MH i2c: E2 0E 00 46 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 71 [23:39:41]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [23:39:41]wFMCommunicate OK [23:39:41]SAM_PROTO_GetShiftState done [23:39:41]FM_GetShiftState done [23:39:41]req_shift_opened done [23:39:41]requested_item shift.open_date is exist - process it [23:39:41]req_shift_open_date [23:39:41]req_shift_open_date done [23:39:41]produce_requested_data done [23:39:41]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140429,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [23:39:41]process_action_free close_receipt [23:39:41]json_value_free [23:39:41]json_value_free done [23:39:41]process_json_proto returns [23:39:41]Send response to host [23:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140429,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [23:39:41]free response buf [23:39:41]execute_script done [23:39:41]execute_script returns [23:39:41]free content buf [23:39:41]Sock 9.Close socket [23:39:41]Sock 9.Thread stoped [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:07]int [23:40:07]Write to MH i2c: 01 00 00 47 2E 75 [23:40:07]*** FLAG_PRN_KEY set [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 47 2E 00 08 00 00 00 FF 0F 92 [23:40:07]state=0 [23:40:07]Key pressed [23:40:07]Feed [23:40:07]Write to MH i2c: D8 00 00 48 2E 4D [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 01 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 01 00 48 2E 00 4E [23:40:07]int [23:40:07]Write to MH i2c: 01 00 00 49 2E 77 [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 49 2E 00 48 00 00 00 3C 00 02 [23:40:07]state=2 [23:40:07]Key pressed [23:40:07]int [23:40:07]Write to MH i2c: 01 00 00 4A 2E 78 [23:40:07]*** FLAG_PRN_KEY reset [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 4A 2E 00 00 00 00 00 F5 0F 83 [23:40:07]state=2 [23:40:07]Stop feed [23:40:07]int [23:40:07]Write to MH i2c: 01 00 00 4B 2E 79 [23:40:07]*** FLAG_PRN_KEY set [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 4B 2E 00 08 00 00 00 FF 0F 96 [23:40:07]state=0 [23:40:07]Key pressed [23:40:07]Feed [23:40:07]Write to MH i2c: D8 00 00 4C 2E 51 [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 01 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: D8 01 00 4C 2E 00 52 [23:40:07]int [23:40:07]Write to MH i2c: 01 00 00 4D 2E 7B [23:40:07]Write i2c OK [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 [23:40:07]MH_I2C_Read... [23:40:07]Read from MH i2c: 01 07 00 4D 2E 00 48 00 00 00 3C 00 06 [23:40:07]state=2 [23:40:07]Key pressed [23:40:08]int [23:40:08]Write to MH i2c: 01 00 00 4E 2E 7C [23:40:08]*** FLAG_PRN_KEY reset [23:40:08]Write i2c OK [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: 01 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: 01 07 00 [23:40:08]MH_I2C_Read... [23:40:08]Read from MH i2c: 01 07 00 4E 2E 00 00 00 00 00 F5 0F 87 [23:40:08]state=2 [23:40:08]Stop feed [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]accept exits with 7 [00:02:36]New connection [00:02:36]New thread 3067469156 created [00:02:36]Thread 3067612516 joined [00:02:36]Waiting for new connection... [00:02:36] Sock 7.Parse request [00:02:36]Sock 7.Check first char [00:02:36]Sock 7.First char is OK [00:02:36]request: POST /json_proto HTTP/1.0 [00:02:36]Method: POST [00:02:36]URL: /json_proto [00:02:36]Method is POST - this is cgi request [00:02:36]url: /json_proto [00:02:36]query_string will be loaded in cgi processing [00:02:36]execute_cgi json_proto POST (null) [00:02:36]execute_cgi path=json_proto method=POST [00:02:36]POST find Content-Length [00:02:36]Host: 172.17.45.67:8080 [00:02:36]Content-Length: 658 [00:02:36]Content-Type: application/json [00:02:36] [00:02:36]POST finish read [00:02:36]Found Content-Length = 658 [00:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:36]execute_script... [00:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SU-92", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:36]POST & json_proto [00:02:36]process_json_proto [00:02:36]json parsed OK: [00:02:36]protocol is kg_v1.0 [00:02:36]action value=close_receipt [00:02:36]process_action close_receipt [00:02:36]cmd_close_receipt [00:02:36]MH_GetDate [00:02:36]Write to MH i2c: F0 00 00 4F 2E 6C [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: F0 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: F0 09 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: F0 09 00 4F 2E 00 1D 80 C6 66 5F 7F 2B 66 AD [00:02:36]GetLastDocTimeStamp 1724283579 [00:02:36]current date 1724284957 [00:02:36]FM_GetShiftState [00:02:36]SAM_PROTO_GetShiftState [00:02:36]wFMCommunicate request_size=4 [00:02:36]MH_SAM_APDU [00:02:36]CAPDU: 80 13 01 00 [00:02:36]Write to MH i2c: E2 08 00 50 2E 80 13 01 00 00 00 00 00 FB [00:02:36]Write i2c OK [00:02:36]MH_I2C_Read... [00:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:36]Read from MH i2c: E2 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 0E 00 [00:02:36]MH_I2C_Read... [00:02:36]Read from MH i2c: E2 0E 00 50 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 7B [00:02:36]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:02:36]wFMCommunicate OK [00:02:36]SAM_PROTO_GetShiftState done [00:02:36]FM_GetShiftState done [00:02:36]opened in 1724200467 [00:02:36]opened+sec_in_day 1724286867 [00:02:36]quantity*price = 50017 [00:02:36]sum+1 = 50019 [00:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 447 22.08.2024 00:02 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140430 ФПД: 206600902186460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140430&fm=206600902186460&tin=02508201610067®Number=0000000000092569&sum=50000 [00:02:37]StoreToDocumentArchive [00:02:37]shift 454 fd 140430 [00:02:37]save to /storage/0454/doc_00140430 [00:02:37]save last doc name /storage/0454/doc_00140430 to /storage/kkm_last_doc_name [00:02:37]save OK [00:02:37]Clear old archive folders... [00:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:02:37]tlvbuf is 00CC8930 [00:02:37]SAM_PROTO_ClearQueue [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 09 00 00 [00:02:37]Write to MH i2c: E2 08 00 5D 2E 80 09 00 00 00 00 00 00 FD [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 5D 2E 00 90 00 FF [00:02:37]RAPDU: 90 00 [00:02:37]wFMCommunicate OK [00:02:37]SAM_PROTO_ClearQueue done [00:02:37]KKMCreateOFDPacket [00:02:37]OFDProtocolAddRootSTLVToBuf [00:02:37]FM_MakeSignedData [00:02:37]FM_MakeSignedData [00:02:37]SAM_PROTO_SignData [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 0D 01 02 [00:02:37]Write to MH i2c: E2 08 00 5E 2E 80 0D 01 02 00 00 00 00 05 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 5E 2E 00 90 00 00 [00:02:37]RAPDU: 90 00 [00:02:37]wFMCommunicate OK [00:02:37]wFMCommunicate request_size=253 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1D 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 24 02 00 35 04 06 00 BB E7 05 62 95 DC [00:02:37]Write to MH i2c: E2 00 01 5F 2E 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1D 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 24 02 00 35 04 06 00 BB E7 05 62 95 DC 00 00 9C [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 03 00 5F 2E 00 90 00 01 [00:02:37]RAPDU: 90 00 [00:02:37]wFMCommunicate OK [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 0D 03 02 [00:02:37]Write to MH i2c: E2 08 00 60 2E 80 0D 03 02 00 00 00 00 09 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 0B 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 0B 00 60 2E 00 EC 56 6C 8C 0B 18 2C D6 90 00 69 [00:02:37]RAPDU: EC 56 6C 8C 0B 18 2C D6 90 00 [00:02:37]wFMCommunicate OK [00:02:37]SAM_PROTO_SignData done [00:02:37]FM_MakeSignedData done [00:02:37]CreateOFDProtocolMessage [00:02:37]wFMCommunicate request_size=4 [00:02:37]MH_SAM_APDU [00:02:37]CAPDU: 80 11 00 00 [00:02:37]Write to MH i2c: E2 08 00 61 2E 80 11 00 00 00 00 00 00 09 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:37]Read from MH i2c: E2 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 17 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: E2 17 00 61 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 60 [00:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:02:37]wFMCommunicate OK [00:02:37]CreateOFDProtocolMessage done [00:02:37]OFDSenderStorePacket 140430 [00:02:37]StoreOFDPacket docnum=140430 [00:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 08 01 00 00 97 FD 00 01 FD 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1D 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 24 02 00 35 04 06 00 BB E7 05 62 95 DC EC 56 6C 8C 0B 18 2C D6 [00:02:37]CheckFolder [00:02:37]dirname=/storage/ofd_packets [00:02:37]CheckFolder done [00:02:37]ProducePacketName [00:02:37]name=ofd_packets/00140430 [00:02:37]NVStorageSaveData ofd_packets/00140430 [00:02:37]File name is /storage/ofd_packets/00140430 [00:02:37]Write 294 bytes [00:02:37]NVStorageSaveData done [00:02:37]OFDSenderStorePacket done [00:02:37]KKMCreateOFDPacket done [00:02:37]NVStorageSaveData kkm_last_timestamp [00:02:37]File name is /storage/kkm_last_timestamp [00:02:37]Write 4 bytes [00:02:37]NVStorageSaveData done [00:02:37]ExternCall_PrintAddStr [00:02:37]wPrintStart [00:02:37]Write to MH i2c: 01 00 00 62 2E 90 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 62 2E 00 00 00 00 00 FF 0F A5 [00:02:37]RasterBufferAndPrint [00:02:37]line Счет N : (1)594288 [00:02:37]line ИНН: 02508201610067 [00:02:37]line Контрольно-Кассовый Чек [00:02:37]line ПРОДАЖА [00:02:37]line ТРК (МРК, ГНК) : 53 [00:02:37]line Товар: 2710124130 [00:02:37]line SU-92 [00:02:37]line 7.270 * 68.80 [00:02:37]line = 500.18 [00:02:37]line НДС 12% НСП 1% [00:02:37]line > о реализуемом товаре [00:02:37]line ОКРУГЛЕНИЕ: -0.18 [00:02:37]line ИТОГО: 500.00 [00:02:37]line Внесено: 500.00 [00:02:37]line СДАЧА: 0.00 [00:02:37]line НСП 1% : 4.43 [00:02:37]line НДС 12% : 53.12 [00:02:37]line Наличными: 500.00 [00:02:37]line Безнал.: 0.00 [00:02:37]line Место: АЗС № 136 "Партнер Нефть" [00:02:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:02:37]line СНО: Общий режим [00:02:37]line Чек 447 22.08.2024 00:02 [00:02:37]line Смена: 454 ФФД: 1.0 [00:02:37]line ЗНМ: 0300000067 [00:02:37]line РНМ: 0000000000092569 [00:02:37]line Версия ККМ: 001 [00:02:37]line ФМ: 0000000000871776 [00:02:37]line ФД: 140430 [00:02:37]line ФПД: 206600902186460 [00:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000237&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140430&fm=206600902186460&tin=02508201610067®Number=0000000000092569&sum=50000 [00:02:38]OFD Sender: Processing packet 140430 [packets to send 137, broken 136] [00:02:38]ProducePacketName [00:02:38]name=ofd_packets/00140430 [00:02:38]OFD Sender: To server: pG, [00:02:38]CommunicateWithHost lk.salyk.kg:30040 [00:02:38]ConnectInit lk.salyk.kg [00:02:38]written 0, free lines is 4095 [00:02:38]Connected sock=10 [00:02: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 37 36 08 01 00 00 97 FD 00 01 FD 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 01 00 00 F4 03 04 00 1D 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8E 24 02 00 35 04 06 00 BB E7 05 62 95 DC EC 56 6C 8C 0B 18 2C D6 [00:02: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 37 36 4F 00 00 00 A6 A2 47 00 E5 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 37 36 10 04 04 00 8E 24 02 00 F4 03 04 00 AD 26 C6 66 B6 04 01 00 00 55 0F 3E 2E 31 BA E5 C2 [00:02:38]CommunicateWithHost err = 0 [00:02:38]CheckOFDResponse [00:02:38]1017 (14) - 77093643461234 [00:02:38]1041 (16) - 0000000000871776 [00:02:38]1040 (4) - 140430 [00:02:38]1012 (4) - 21.08.2024 17:41 [00:02:38]1206 (1) - 0 [00:02:38]OFD Sender: Remove packet 140430 [00:02:38]ProducePacketName [00:02:38]name=ofd_packets/00140430 [00:02:38]NVStorageDeleteData [00:02:38]Write to MH i2c: 01 00 00 8D 2E BB [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: 01 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: 01 07 00 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: 01 07 00 8D 2E 00 00 00 00 00 DD 0C AB [00:02:38]RasterBufferAndPrint [00:02:38]line [00:02:38]line [00:02:38]line [00:02:38]line [00:02:38]line [00:02:38]written 0, free lines is 3302 [00:02:38]MH_Cut [00:02:38]Write to MH i2c: D1 01 00 94 2E 01 94 [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: D1 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: D1 01 00 [00:02:38]MH_I2C_Read... [00:02:38]Read from MH i2c: D1 01 00 94 2E 00 93 [00:02:38]Write to MH i2c: 01 00 00 95 2E C3 [00:02:38]Write i2c OK [00:02:38]MH_I2C_Read... [00:02:39]OFD Sender: No OFD packet to send [00:02:39]*** Cut start [00:02:39]*** Partial cut [00:02:39]*** CUTSNS_PIN = 1 [00:02:39]*** CUTSNS_PIN = 0 [00:02:39]*** Brake cut motor [00:02:39]Read from MH i2c: 01 [00:02:39]MH_I2C_Read... [00:02:39]*** Stop cut motor [00:02:39]*** Cut end [00:02:39]Read from MH i2c: 01 07 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: 01 07 00 95 2E 00 00 00 00 00 FF 0F D8 [00:02:39]process_action close_receipt done [00:02:39]requested_data is exist [00:02:39]produce_requested_data [00:02:39]requested_item fm.sn is exist - process it [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 11 00 00 [00:02:39]Write to MH i2c: E2 08 00 96 2E 80 11 00 00 00 00 00 00 3E [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:39]Read from MH i2c: E2 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 17 00 [00:02:39]MH_I2C_Read... [00:02:39]Read from MH i2c: E2 17 00 96 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 95 [00:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:02:39]wFMCommunicate OK [00:02:39]requested_item fd.num is exist - process it [00:02:39]SAM_PROTO_GetFieldsCounters [00:02:39]wFMCommunicate request_size=4 [00:02:39]MH_SAM_APDU [00:02:39]CAPDU: 80 13 00 00 [00:02:39]Write to MH i2c: E2 08 00 97 2E 80 13 00 00 00 00 00 00 41 [00:02:39]Write i2c OK [00:02:39]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 62 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 62 00 97 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 24 02 00 0E 04 04 00 C6 01 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 27 [00:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8E 24 02 00 0E 04 04 00 C6 01 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 [00:02:40]wFMCommunicate OK [00:02:40]SAM_PROTO_GetFieldsCounters done [00:02:40]requested_item shift.num is exist - process it [00:02:40]requested_item shift.opened is exist - process it [00:02:40]req_shift_opened [00:02:40]FM_GetShiftState [00:02:40]SAM_PROTO_GetShiftState [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 13 01 00 [00:02:40]Write to MH i2c: E2 08 00 98 2E 80 13 01 00 00 00 00 00 43 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 0E 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 0E 00 98 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C3 [00:02:40]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:02:40]wFMCommunicate OK [00:02:40]SAM_PROTO_GetShiftState done [00:02:40]FM_GetShiftState done [00:02:40]req_shift_opened done [00:02:40]requested_item shift.open_date is exist - process it [00:02:40]req_shift_open_date [00:02:40]req_shift_open_date done [00:02:40]produce_requested_data done [00:02:40]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140430,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:02:40]process_action_free close_receipt [00:02:40]json_value_free [00:02:40]json_value_free done [00:02:40]process_json_proto returns [00:02:40]Send response to host [00:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140430,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:02:40]free response buf [00:02:40]execute_script done [00:02:40]execute_script returns [00:02:40]free content buf [00:02:40]Sock 7.Close socket [00:02:40]Sock 7.Thread stoped [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:13]accept exits with 9 [00:03:13]New connection [00:03:13]New thread 3067612516 created [00:03:13]Thread 3067469156 joined [00:03:13]Waiting for new connection... [00:03:13] Sock 9.Parse request [00:03:13]Sock 9.Check first char [00:03:13]Sock 9.First char is OK [00:03:13]request: POST /json_proto HTTP/1.0 [00:03:13]Method: POST [00:03:13]URL: /json_proto [00:03:13]Method is POST - this is cgi request [00:03:13]url: /json_proto [00:03:13]query_string will be loaded in cgi processing [00:03:13]execute_cgi json_proto POST (null) [00:03:13]execute_cgi path=json_proto method=POST [00:03:13]POST find Content-Length [00:03:13]Host: 172.17.45.67:8080 [00:03:13]Content-Length: 682 [00:03:13]Content-Type: application/json [00:03:13] [00:03:13]POST finish read [00:03:13]Found Content-Length = 682 [00:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]execute_script... [00:03: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)594289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]POST & json_proto [00:03:13]process_json_proto [00:03:13]json parsed OK: [00:03:13]protocol is kg_v1.0 [00:03:13]action value=close_receipt [00:03:13]process_action close_receipt [00:03:13]cmd_close_receipt [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 99 2E B6 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 99 2E 00 42 80 C6 66 5F 7F 2B 66 1C [00:03:13]GetLastDocTimeStamp 1724284957 [00:03:13]current date 1724284994 [00:03:13]FM_GetShiftState [00:03:13]SAM_PROTO_GetShiftState [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 01 00 [00:03:13]Write to MH i2c: E2 08 00 9A 2E 80 13 01 00 00 00 00 00 45 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 9A 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 C5 [00:03:13]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftState done [00:03:13]FM_GetShiftState done [00:03:13]opened in 1724200467 [00:03:13]opened+sec_in_day 1724286867 [00:03:13]quantity*price = 100005 [00:03:13]sum+1 = 100006 [00:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 448 22.08.2024 00:03 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140431 ФПД: 78074218341651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000315&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140431&fm=78074218341651&tin=02508201610067®Number=0000000000092569&sum=100000 [00:03:14]StoreToDocumentArchive [00:03:14]shift 454 fd 140431 [00:03:14]save to /storage/0454/doc_00140431 [00:03:14]save last doc name /storage/0454/doc_00140431 to /storage/kkm_last_doc_name [00:03:14]save OK [00:03:14]Clear old archive folders... [00:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:14]tlvbuf is B6F7B9A0 [00:03:14]SAM_PROTO_ClearQueue [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 09 00 00 [00:03:14]Write to MH i2c: E2 08 00 A7 2E 80 09 00 00 00 00 00 00 47 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 A7 2E 00 90 00 49 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_ClearQueue done [00:03:14]KKMCreateOFDPacket [00:03:14]OFDProtocolAddRootSTLVToBuf [00:03:14]FM_MakeSignedData [00:03:14]FM_MakeSignedData [00:03:14]SAM_PROTO_SignData [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 0D 01 02 [00:03:14]Write to MH i2c: E2 08 00 A8 2E 80 0D 01 02 00 00 00 00 4F [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 A8 2E 00 90 00 4A [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=255 [00:03:14]MH_SAM_APDU [00:03: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 43 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 24 02 00 35 04 06 00 47 [00:03:14]Write to MH i2c: E2 02 01 A9 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 43 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 24 02 00 35 04 06 00 47 00 00 DA [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 A9 2E 00 90 00 4B [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=10 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 0D 02 02 05 02 12 0C E5 13 [00:03:14]Write to MH i2c: E2 0D 00 AA 2E 80 0D 02 02 05 00 02 12 0C E5 13 00 00 74 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 AA 2E 00 90 00 4C [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 0D 03 02 [00:03:14]Write to MH i2c: E2 08 00 AB 2E 80 0D 03 02 00 00 00 00 54 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0B 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 0B 00 AB 2E 00 BA C4 08 51 68 15 AA 00 90 00 53 [00:03:14]RAPDU: BA C4 08 51 68 15 AA 00 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_SignData done [00:03:14]FM_MakeSignedData done [00:03:14]CreateOFDProtocolMessage [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 11 00 00 [00:03:14]Write to MH i2c: E2 08 00 AC 2E 80 11 00 00 00 00 00 00 54 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 17 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 17 00 AC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 AB [00:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:03:14]wFMCommunicate OK [00:03:14]CreateOFDProtocolMessage done [00:03:14]OFDSenderStorePacket 140431 [00:03:14]StoreOFDPacket docnum=140431 [00:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 5C DC 07 01 1E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 43 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 24 02 00 35 04 06 00 47 02 12 0C E5 13 BA C4 08 51 68 15 AA 00 [00:03:14]CheckFolder [00:03:14]dirname=/storage/ofd_packets [00:03:14]CheckFolder done [00:03:14]ProducePacketName [00:03:14]name=ofd_packets/00140431 [00:03:14]NVStorageSaveData ofd_packets/00140431 [00:03:14]File name is /storage/ofd_packets/00140431 [00:03:14]Write 301 bytes [00:03:14]NVStorageSaveData done [00:03:14]OFDSenderStorePacket done [00:03:14]KKMCreateOFDPacket done [00:03:14]NVStorageSaveData kkm_last_timestamp [00:03:14]File name is /storage/kkm_last_timestamp [00:03:14]Write 4 bytes [00:03:14]NVStorageSaveData done [00:03:14]ExternCall_PrintAddStr [00:03:14]wPrintStart [00:03:14]Write to MH i2c: 01 00 00 AD 2E DB [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: 01 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: 01 07 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: 01 07 00 AD 2E 00 00 00 00 00 FF 0F F0 [00:03:14]RasterBufferAndPrint [00:03:14]line Счет N : (1)594289 [00:03:14]line ИНН: 02508201610067 [00:03:14]line Контрольно-Кассовый Чек [00:03:14]line ПРОДАЖА [00:03:14]line ТРК (МРК, ГНК) : 32 [00:03:14]line Товар: 2710124130 [00:03:14]line Аи-92-К-5 [00:03:14]line 14.750 * 67.80 [00:03:14]line = 1000.05 [00:03:14]line НДС 12% НСП 1% [00:03:14]line > о реализуемом товаре [00:03:14]line ОКРУГЛЕНИЕ: -0.05 [00:03:14]line ИТОГО: 1000.00 [00:03:14]line Внесено: 1000.00 [00:03:14]line СДАЧА: 0.00 [00:03:14]line НСП 1% : 8.85 [00:03:14]line НДС 12% : 106.20 [00:03:14]line Наличными: 1000.00 [00:03:14]line Безнал.: 0.00 [00:03:14]line Место: АЗС № 136 "Партнер Нефть" [00:03:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:03:14]line СНО: Общий режим [00:03:14]line Чек 448 22.08.2024 00:03 [00:03:14]line Смена: 454 ФФД: 1.0 [00:03:14]line ЗНМ: 0300000067 [00:03:14]line РНМ: 0000000000092569 [00:03:14]line Версия ККМ: 001 [00:03:15]line ФМ: 0000000000871776 [00:03:15]line ФД: 140431 [00:03:15]line ФПД: 78074218341651 [00:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000315&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140431&fm=78074218341651&tin=02508201610067®Number=0000000000092569&sum=100000 [00:03:15]OFD Sender: Processing packet 140431 [packets to send 137, broken 136] [00:03:15]ProducePacketName [00:03:15]name=ofd_packets/00140431 [00:03:15]OFD Sender: To server: pG, [00:03:15]CommunicateWithHost lk.salyk.kg:30040 [00:03:15]ConnectInit lk.salyk.kg [00:03:15]written 0, free lines is 4095 [00:03:15]Connected sock=10 [00:03: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 37 36 0F 01 00 00 5C DC 07 01 1E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 43 80 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 8F 24 02 00 35 04 06 00 47 02 12 0C E5 13 BA C4 08 51 68 15 AA 00 [00:03:15]Write to MH i2c: 01 00 00 D8 2E 06 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 D8 2E 00 00 00 00 00 CE 0C E7 [00:03:15]RasterBufferAndPrint [00:03:15]line [00:03:15]line [00:03:15]line [00:03:15]line [00:03:15]line [00:03:15]written 0, free lines is 3284 [00:03: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 37 36 4F 00 00 00 1C 48 47 00 06 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 37 36 10 04 04 00 8F 24 02 00 F4 03 04 00 D2 26 C6 66 B6 04 01 00 00 70 C2 1F 78 59 06 A9 19 [00:03:15]CommunicateWithHost err = 0 [00:03:15]CheckOFDResponse [00:03:15]1017 (14) - 77093643461234 [00:03:15]1041 (16) - 0000000000871776 [00:03:15]1040 (4) - 140431 [00:03:15]1012 (4) - 21.08.2024 17:41 [00:03:15]1206 (1) - 0 [00:03:15]OFD Sender: Remove packet 140431 [00:03:15]ProducePacketName [00:03:15]name=ofd_packets/00140431 [00:03:15]NVStorageDeleteData [00:03:15]MH_Cut [00:03:15]Write to MH i2c: D1 01 00 DF 2E 01 DF [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: D1 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: D1 01 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: D1 01 00 DF 2E 00 DE [00:03:15]Write to MH i2c: 01 00 00 E0 2E 0E [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:16]OFD Sender: No OFD packet to send [00:03:16]*** Cut start [00:03:16]*** Partial cut [00:03:16]*** CUTSNS_PIN = 1 [00:03:16]*** CUTSNS_PIN = 0 [00:03:16]*** Brake cut motor [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]*** Stop cut motor [00:03:17]*** Cut end [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 E0 2E 00 00 00 00 00 FF 0F 23 [00:03:17]process_action close_receipt done [00:03:17]requested_data is exist [00:03:17]produce_requested_data [00:03:17]requested_item fm.sn is exist - process it [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 11 00 00 [00:03:17]Write to MH i2c: E2 08 00 E1 2E 80 11 00 00 00 00 00 00 89 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 17 00 E1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E0 [00:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:03:17]wFMCommunicate OK [00:03:17]requested_item fd.num is exist - process it [00:03:17]SAM_PROTO_GetFieldsCounters [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 00 00 [00:03:17]Write to MH i2c: E2 08 00 E2 2E 80 13 00 00 00 00 00 00 8C [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 E2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 24 02 00 0E 04 04 00 C6 01 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 76 [00:03: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 8F 24 02 00 0E 04 04 00 C6 01 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 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetFieldsCounters done [00:03:17]requested_item shift.num is exist - process it [00:03:17]requested_item shift.opened is exist - process it [00:03:17]req_shift_opened [00:03:17]FM_GetShiftState [00:03:17]SAM_PROTO_GetShiftState [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 01 00 [00:03:17]Write to MH i2c: E2 08 00 E3 2E 80 13 01 00 00 00 00 00 8E [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 E3 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 0E [00:03:17]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetShiftState done [00:03:17]FM_GetShiftState done [00:03:17]req_shift_opened done [00:03:17]requested_item shift.open_date is exist - process it [00:03:17]req_shift_open_date [00:03:17]req_shift_open_date done [00:03:17]produce_requested_data done [00:03:17]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140431,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:03:17]process_action_free close_receipt [00:03:17]json_value_free [00:03:17]json_value_free done [00:03:17]process_json_proto returns [00:03:17]Send response to host [00:03:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140431,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:03:17]free response buf [00:03:17]execute_script done [00:03:17]execute_script returns [00:03:17]free content buf [00:03:17]Sock 9.Close socket [00:03:17]Sock 9.Thread stoped [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]accept exits with 7 [00:09:46]New connection [00:09:46]New thread 3067469156 created [00:09:46]Thread 3067612516 joined [00:09:46]Waiting for new connection... [00:09:46] Sock 7.Parse request [00:09:46]Sock 7.Check first char [00:09:46]Sock 7.First char is OK [00:09:46]request: POST /json_proto HTTP/1.0 [00:09:46]Method: POST [00:09:46]URL: /json_proto [00:09:46]Method is POST - this is cgi request [00:09:46]url: /json_proto [00:09:46]query_string will be loaded in cgi processing [00:09:46]execute_cgi json_proto POST (null) [00:09:46]execute_cgi path=json_proto method=POST [00:09:46]POST find Content-Length [00:09:46]Host: 172.17.45.67:8080 [00:09:46]Content-Length: 677 [00:09:46]Content-Type: application/json [00:09:46] [00:09:46]POST finish read [00:09:46]Found Content-Length = 677 [00:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.040, "sum" : 596.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 596.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:46]execute_script... [00:09: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)594290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 8.040, "sum" : 596.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 596.00, "total" : 596.00, "payments": [ { "type": 0, "sum" : 596.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:46]POST & json_proto [00:09:46]process_json_proto [00:09:46]json parsed OK: [00:09:46]protocol is kg_v1.0 [00:09:46]action value=close_receipt [00:09:46]process_action close_receipt [00:09:46]cmd_close_receipt [00:09:46]MH_GetDate [00:09:46]Write to MH i2c: F0 00 00 E4 2E 01 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: F0 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: F0 09 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: F0 09 00 E4 2E 00 CB 81 C6 66 5F 7F 2B 66 F1 [00:09:46]GetLastDocTimeStamp 1724284995 [00:09:46]current date 1724285387 [00:09:46]FM_GetShiftState [00:09:46]SAM_PROTO_GetShiftState [00:09:46]wFMCommunicate request_size=4 [00:09:46]MH_SAM_APDU [00:09:46]CAPDU: 80 13 01 00 [00:09:46]Write to MH i2c: E2 08 00 E5 2E 80 13 01 00 00 00 00 00 90 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:46]Read from MH i2c: E2 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: E2 0E 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: E2 0E 00 E5 2E 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 10 [00:09:46]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:09:46]wFMCommunicate OK [00:09:46]SAM_PROTO_GetShiftState done [00:09:46]FM_GetShiftState done [00:09:46]opened in 1724200467 [00:09:46]opened+sec_in_day 1724286867 [00:09:46]quantity*price = 59656 [00:09:46]sum+1 = 59658 [00:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 596.00 Внесено: 596.00 СДАЧА: 0.00 НСП 1% : 5.28 НДС 12% : 63.35 Наличными: 596.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 449 22.08.2024 00:09 Смена: 454 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140432 ФПД: 1661093535796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140432&fm=1661093535796&tin=02508201610067®Number=0000000000092569&sum=59600 [00:09:47]StoreToDocumentArchive [00:09:47]shift 454 fd 140432 [00:09:47]save to /storage/0454/doc_00140432 [00:09:47]save last doc name /storage/0454/doc_00140432 to /storage/kkm_last_doc_name [00:09:47]save OK [00:09:47]Clear old archive folders... [00:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:47]tlvbuf is 00CA82D0 [00:09:47]SAM_PROTO_ClearQueue [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 09 00 00 [00:09:47]Write to MH i2c: E2 08 00 F2 2E 80 09 00 00 00 00 00 00 92 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 F2 2E 00 90 00 94 [00:09:47]RAPDU: 90 00 [00:09:47]wFMCommunicate OK [00:09:47]SAM_PROTO_ClearQueue done [00:09:47]KKMCreateOFDPacket [00:09:47]OFDProtocolAddRootSTLVToBuf [00:09:47]FM_MakeSignedData [00:09:47]FM_MakeSignedData [00:09:47]SAM_PROTO_SignData [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 0D 01 02 [00:09:47]Write to MH i2c: E2 08 00 F3 2E 80 0D 01 02 00 00 00 00 9A [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 F3 2E 00 90 00 95 [00:09:47]RAPDU: 90 00 [00:09:47]wFMCommunicate OK [00:09:47]wFMCommunicate request_size=255 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 09 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 18 00 00 00 00 07 04 06 00 D0 E8 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 01 00 00 F4 03 04 00 CB 81 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 24 02 00 35 04 06 00 01 [00:09:47]Write to MH i2c: E2 02 01 F4 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 09 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 18 00 00 00 00 07 04 06 00 D0 E8 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 01 00 00 F4 03 04 00 CB 81 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 24 02 00 35 04 06 00 01 00 00 54 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 F4 2E 00 90 00 96 [00:09:47]RAPDU: 90 00 [00:09:47]wFMCommunicate OK [00:09:47]wFMCommunicate request_size=10 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 0D 02 02 05 82 C0 E3 E0 34 [00:09:47]Write to MH i2c: E2 0D 00 F5 2E 80 0D 02 02 05 00 82 C0 E3 E0 34 00 00 E0 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 03 00 F5 2E 00 90 00 97 [00:09:47]RAPDU: 90 00 [00:09:47]wFMCommunicate OK [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 0D 03 02 [00:09:47]Write to MH i2c: E2 08 00 F6 2E 80 0D 03 02 00 00 00 00 9F [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 0B 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 0B 00 F6 2E 00 A9 1B 2B 4F 8E 72 04 C1 90 00 A3 [00:09:47]RAPDU: A9 1B 2B 4F 8E 72 04 C1 90 00 [00:09:47]wFMCommunicate OK [00:09:47]SAM_PROTO_SignData done [00:09:47]FM_MakeSignedData done [00:09:47]CreateOFDProtocolMessage [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 11 00 00 [00:09:47]Write to MH i2c: E2 08 00 F7 2E 80 11 00 00 00 00 00 00 9F [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:47]Read from MH i2c: E2 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: E2 17 00 F7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 F6 [00:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:09:47]wFMCommunicate OK [00:09:47]CreateOFDProtocolMessage done [00:09:47]OFDSenderStorePacket 140432 [00:09:47]StoreOFDPacket docnum=140432 [00:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 3A 32 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 09 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 18 00 00 00 00 07 04 06 00 D0 E8 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 01 00 00 F4 03 04 00 CB 81 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 24 02 00 35 04 06 00 01 82 C0 E3 E0 34 A9 1B 2B 4F 8E 72 04 C1 [00:09:47]CheckFolder [00:09:47]dirname=/storage/ofd_packets [00:09:47]CheckFolder done [00:09:47]ProducePacketName [00:09:47]name=ofd_packets/00140432 [00:09:47]NVStorageSaveData ofd_packets/00140432 [00:09:47]File name is /storage/ofd_packets/00140432 [00:09:47]Write 301 bytes [00:09:47]NVStorageSaveData done [00:09:47]OFDSenderStorePacket done [00:09:47]KKMCreateOFDPacket done [00:09:47]NVStorageSaveData kkm_last_timestamp [00:09:47]File name is /storage/kkm_last_timestamp [00:09:47]Write 4 bytes [00:09:47]NVStorageSaveData done [00:09:47]ExternCall_PrintAddStr [00:09:47]wPrintStart [00:09:47]Write to MH i2c: 01 00 00 F8 2E 26 [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 07 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 07 00 F8 2E 00 00 00 00 00 FF 0F 3B [00:09:47]RasterBufferAndPrint [00:09:47]line Счет N : (1)594290 [00:09:47]line ИНН: 02508201610067 [00:09:47]line Контрольно-Кассовый Чек [00:09:47]line ПРОДАЖА [00:09:47]line ТРК (МРК, ГНК) : 41 [00:09:47]line Товар: 2710124500 [00:09:47]line Аи-95-К-5 [00:09:47]line 8.040 * 74.20 [00:09:47]line = 596.57 [00:09:47]line НДС 12% НСП 1% [00:09:47]line > о реализуемом товаре [00:09:47]line ОКРУГЛЕНИЕ: -0.57 [00:09:47]line ИТОГО: 596.00 [00:09:47]line Внесено: 596.00 [00:09:47]line СДАЧА: 0.00 [00:09:47]line НСП 1% : 5.28 [00:09:47]line НДС 12% : 63.35 [00:09:47]line Наличными: 596.00 [00:09:47]line Безнал.: 0.00 [00:09:47]line Место: АЗС № 136 "Партнер Нефть" [00:09:47]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:09:47]line СНО: Общий режим [00:09:47]line Чек 449 22.08.2024 00:09 [00:09:47]line Смена: 454 ФФД: 1.0 [00:09:47]line ЗНМ: 0300000067 [00:09:47]line РНМ: 0000000000092569 [00:09:47]line Версия ККМ: 001 [00:09:47]line ФМ: 0000000000871776 [00:09:47]line ФД: 140432 [00:09:47]line ФПД: 1661093535796 [00:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T000947&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140432&fm=1661093535796&tin=02508201610067®Number=0000000000092569&sum=59600 [00:09:48]written 0, free lines is 4095 [00:09:48]OFD Sender: Processing packet 140432 [packets to send 137, broken 136] [00:09:48]ProducePacketName [00:09:48]name=ofd_packets/00140432 [00:09:48]OFD Sender: To server: pG, [00:09:48]CommunicateWithHost lk.salyk.kg:30040 [00:09:48]ConnectInit lk.salyk.kg [00:09:48]Connected sock=11 [00:09: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 37 36 0F 01 00 00 3A 32 07 01 9B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 68 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 09 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 18 00 00 00 00 07 04 06 00 D0 E8 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 01 00 00 F4 03 04 00 CB 81 C6 66 0E 04 04 00 C6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 90 24 02 00 35 04 06 00 01 82 C0 E3 E0 34 A9 1B 2B 4F 8E 72 04 C1 [00:09:48]Write to MH i2c: 01 00 00 23 2F 52 [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: 01 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: 01 07 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: 01 07 00 23 2F 00 00 00 00 00 D7 0C 3C [00:09:48]RasterBufferAndPrint [00:09:48]line [00:09:48]line [00:09:48]line [00:09:48]line [00:09:48]line [00:09:48]written 0, free lines is 3294 [00:09:48]MH_Cut [00:09:48]Write to MH i2c: D1 01 00 2A 2F 01 2B [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: D1 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: D1 01 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: D1 01 00 2A 2F 00 2A [00:09:48]Write to MH i2c: 01 00 00 2B 2F 5A [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09: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 37 36 4F 00 00 00 DE 4A 47 00 5B 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 37 36 10 04 04 00 90 24 02 00 F4 03 04 00 5B 28 C6 66 B6 04 01 00 00 7D 84 23 80 10 8C FB 5B [00:09:48]CommunicateWithHost err = 0 [00:09:48]CheckOFDResponse [00:09:48]1017 (14) - 77093643461234 [00:09:48]1041 (16) - 0000000000871776 [00:09:48]1040 (4) - 140432 [00:09:48]1012 (4) - 21.08.2024 17:48 [00:09:48]1206 (1) - 0 [00:09:48]OFD Sender: Remove packet 140432 [00:09:48]ProducePacketName [00:09:48]name=ofd_packets/00140432 [00:09:48]NVStorageDeleteData [00:09:49]OFD Sender: No OFD packet to send [00:09:49]*** Cut start [00:09:49]*** Partial cut [00:09:49]*** CUTSNS_PIN = 1 [00:09:49]*** CUTSNS_PIN = 0 [00:09:49]*** Brake cut motor [00:09:49]Read from MH i2c: 01 [00:09:49]MH_I2C_Read... [00:09:49]*** Stop cut motor [00:09:49]*** Cut end [00:09:49]Read from MH i2c: 01 07 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: 01 07 00 2B 2F 00 00 00 00 00 FF 0F 6F [00:09:49]process_action close_receipt done [00:09:49]requested_data is exist [00:09:49]produce_requested_data [00:09:49]requested_item fm.sn is exist - process it [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 11 00 00 [00:09:49]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 17 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 2C [00:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:09:50]wFMCommunicate OK [00:09:50]requested_item fd.num is exist - process it [00:09:50]SAM_PROTO_GetFieldsCounters [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 13 00 00 [00:09:50]Write to MH i2c: E2 08 00 2D 2F 80 13 00 00 00 00 00 00 D8 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 62 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 62 00 2D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 C6 [00:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 [00:09:50]wFMCommunicate OK [00:09:50]SAM_PROTO_GetFieldsCounters done [00:09:50]requested_item shift.num is exist - process it [00:09:50]requested_item shift.opened is exist - process it [00:09:50]req_shift_opened [00:09:50]FM_GetShiftState [00:09:50]SAM_PROTO_GetShiftState [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 13 01 00 [00:09:50]Write to MH i2c: E2 08 00 2E 2F 80 13 01 00 00 00 00 00 DA [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 0E 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 0E 00 2E 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 5A [00:09:50]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:09:50]wFMCommunicate OK [00:09:50]SAM_PROTO_GetShiftState done [00:09:50]FM_GetShiftState done [00:09:50]req_shift_opened done [00:09:50]requested_item shift.open_date is exist - process it [00:09:50]req_shift_open_date [00:09:50]req_shift_open_date done [00:09:50]produce_requested_data done [00:09:50]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:09:50]process_action_free close_receipt [00:09:50]json_value_free [00:09:50]json_value_free done [00:09:50]process_json_proto returns [00:09:50]Send response to host [00:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:09:50]free response buf [00:09:50]execute_script done [00:09:50]execute_script returns [00:09:50]free content buf [00:09:50]Sock 7.Close socket [00:09:50]Sock 7.Thread stoped [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:05]int [00:17:05]Write to MH i2c: 01 00 00 2F 2F 5E [00:17:05]*** FLAG_PRN_KEY set [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 2F 2F 00 08 00 00 00 FF 0F 7B [00:17:05]state=0 [00:17:05]Key pressed [00:17:05]Feed [00:17:05]Write to MH i2c: D8 00 00 30 2F 36 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: D8 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: D8 01 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: D8 01 00 30 2F 00 37 [00:17:05]int [00:17:05]Write to MH i2c: 01 00 00 31 2F 60 [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 31 2F 00 48 00 00 00 3C 00 EB [00:17:05]state=2 [00:17:05]Key pressed [00:17:05]int [00:17:05]Write to MH i2c: 01 00 00 32 2F 61 [00:17:05]*** FLAG_PRN_KEY reset [00:17:05]Write i2c OK [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 [00:17:05]MH_I2C_Read... [00:17:05]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 F5 0F 6C [00:17:05]state=2 [00:17:05]Stop feed [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:16]accept exits with 9 [00:18:16]New connection [00:18:16]New thread 3067612516 created [00:18:16]Thread 3067469156 joined [00:18:16]Waiting for new connection... [00:18:16] Sock 9.Parse request [00:18:16]Sock 9.Check first char [00:18:16]Sock 9.First char is OK [00:18:16]request: POST /json_proto HTTP/1.0 [00:18:16]Method: POST [00:18:16]URL: /json_proto [00:18:16]Method is POST - this is cgi request [00:18:16]url: /json_proto [00:18:16]query_string will be loaded in cgi processing [00:18:16]execute_cgi json_proto POST (null) [00:18:16]execute_cgi path=json_proto method=POST [00:18:16]POST find Content-Length [00:18:16]Host: 172.17.45.67:8080 [00:18:16]Content-Length: 215 [00:18:16]Content-Type: application/json [00:18:16] [00:18:16]POST finish read [00:18:16]Found Content-Length = 215 [00:18:16]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:18:16]execute_script... [00:18:16]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:18:16]POST & json_proto [00:18:16]process_json_proto [00:18:16]json parsed OK: [00:18:16]protocol is kg_v1.0 [00:18:16]action value=get_value [00:18:16]process_action get_value [00:18:16]cmd_get_value [00:18:16]process_action get_value done [00:18:16]requested_data is exist [00:18:16]produce_requested_data [00:18:16]requested_item kkm.sn is exist - process it [00:18:16]requested_item kkm.ver is exist - process it [00:18:16]requested_item fm.sn is exist - process it [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 11 00 00 [00:18:16]Write to MH i2c: E2 08 00 33 2F 80 11 00 00 00 00 00 00 DC [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 17 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 17 00 33 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 33 [00:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:18:16]wFMCommunicate OK [00:18:16]requested_item fd.num is exist - process it [00:18:16]SAM_PROTO_GetFieldsCounters [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 13 00 00 [00:18:16]Write to MH i2c: E2 08 00 34 2F 80 13 00 00 00 00 00 00 DF [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 62 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 62 00 34 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 CD [00:18: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 [00:18:16]wFMCommunicate OK [00:18:16]SAM_PROTO_GetFieldsCounters done [00:18:16]requested_item shift.num is exist - process it [00:18:16]requested_item shift.opened is exist - process it [00:18:16]req_shift_opened [00:18:16]FM_GetShiftState [00:18:16]SAM_PROTO_GetShiftState [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 13 01 00 [00:18:16]Write to MH i2c: E2 08 00 35 2F 80 13 01 00 00 00 00 00 E1 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:16]Read from MH i2c: E2 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 0E 00 [00:18:16]MH_I2C_Read... [00:18:16]Read from MH i2c: E2 0E 00 35 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 61 [00:18:16]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:18:16]wFMCommunicate OK [00:18:16]SAM_PROTO_GetShiftState done [00:18:16]FM_GetShiftState done [00:18:16]req_shift_opened done [00:18:16]requested_item shift.open_date is exist - process it [00:18:16]req_shift_open_date [00:18:16]req_shift_open_date done [00:18:16]produce_requested_data done [00:18:16]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:18:16]process_action_free get_value [00:18:16]json_value_free [00:18:16]json_value_free done [00:18:16]process_json_proto returns [00:18:16]Send response to host [00:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:18:16]free response buf [00:18:16]execute_script done [00:18:16]execute_script returns [00:18:16]free content buf [00:18:16]Sock 9.Close socket [00:18:16]Sock 9.Thread stoped [00:18:16]accept exits with 7 [00:18:16]New connection [00:18:16]New thread 3067469156 created [00:18:16]Thread 3067612516 joined [00:18:16]Waiting for new connection... [00:18:16] Sock 7.Parse request [00:18:16]Sock 7.Check first char [00:18:16]Sock 7.First char is OK [00:18:16]request: POST /json_proto HTTP/1.0 [00:18:16]Method: POST [00:18:16]URL: /json_proto [00:18:16]Method is POST - this is cgi request [00:18:16]url: /json_proto [00:18:16]query_string will be loaded in cgi processing [00:18:16]execute_cgi json_proto POST (null) [00:18:16]execute_cgi path=json_proto method=POST [00:18:16]POST find Content-Length [00:18:16]Host: 172.17.45.67:8080 [00:18:16]Content-Length: 331 [00:18:16]Content-Type: application/json [00:18:16] [00:18:16]POST finish read [00:18:16]Found Content-Length = 331 [00:18:16]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:18:16]execute_script... [00:18:16]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:18:16]POST & json_proto [00:18:16]process_json_proto [00:18:16]json parsed OK: [00:18:16]protocol is kg_v1.0 [00:18:16]action value=get_value [00:18:16]process_action get_value [00:18:16]cmd_get_value [00:18:16]process_action get_value done [00:18:16]requested_data is exist [00:18:16]produce_requested_data [00:18:16]requested_item fm.sale.total is exist - process it [00:18:16]SAM_PROTO_GetFMData [00:18:16]wFMCommunicate request_size=4 [00:18:16]MH_SAM_APDU [00:18:16]CAPDU: 80 13 03 00 [00:18:16]Write to MH i2c: E2 08 00 36 2F 80 13 03 00 00 00 00 00 E4 [00:18:16]Write i2c OK [00:18:16]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 36 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 2B [00:18:17]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 37 2F 80 17 00 00 00 00 00 00 E6 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 37 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 EB [00:18:17]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 38 2F 80 17 00 00 00 00 00 00 E7 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 38 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FC [00:18:17]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 39 2F 80 17 00 00 00 00 00 00 E8 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:17]Read from MH i2c: E2 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 [00:18:17]MH_I2C_Read... [00:18:17]Read from MH i2c: E2 FD 00 39 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 60 [00:18:17]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:17]wFMCommunicate OK [00:18:17]wFMCommunicate request_size=4 [00:18:17]MH_SAM_APDU [00:18:17]CAPDU: 80 17 00 00 [00:18:17]Write to MH i2c: E2 08 00 3A 2F 80 17 00 00 00 00 00 00 E9 [00:18:17]Write i2c OK [00:18:17]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 E1 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 E1 00 3A 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D7 [00:18:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:18]wFMCommunicate OK [00:18:18]SAM_PROTO_GetFMData done [00:18:18]requested_item fm.sale_refund.total is exist - process it [00:18:18]requested_item fm.buy.total is exist - process it [00:18:18]requested_item shift.sale.total is exist - process it [00:18:18]SAM_PROTO_GetShiftData [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 13 02 00 [00:18:18]Write to MH i2c: E2 08 00 3B 2F 80 13 02 00 00 00 00 00 E8 [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 FD 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 FD 00 3B 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B8 [00:18:18]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 17 00 00 [00:18:18]Write to MH i2c: E2 08 00 3C 2F 80 17 00 00 00 00 00 00 EB [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:18]Read from MH i2c: E2 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 FD 00 [00:18:18]MH_I2C_Read... [00:18:18]Read from MH i2c: E2 FD 00 3C 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 04 [00:18:18]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:18:18]wFMCommunicate OK [00:18:18]wFMCommunicate request_size=4 [00:18:18]MH_SAM_APDU [00:18:18]CAPDU: 80 17 00 00 [00:18:18]Write to MH i2c: E2 08 00 3D 2F 80 17 00 00 00 00 00 00 EC [00:18:18]Write i2c OK [00:18:18]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 3D 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A5 [00:18:19]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:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 17 00 00 [00:18:19]Write to MH i2c: E2 08 00 3E 2F 80 17 00 00 00 00 00 00 ED [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 FD 00 3E 2F 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 65 [00:18:19]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:18:19]wFMCommunicate OK [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 17 00 00 [00:18:19]Write to MH i2c: E2 08 00 3F 2F 80 17 00 00 00 00 00 00 EE [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:19]Read from MH i2c: E2 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 CE 00 [00:18:19]MH_I2C_Read... [00:18:19]Read from MH i2c: E2 CE 00 3F 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:18:19]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:18:19]wFMCommunicate OK [00:18:19]SAM_PROTO_GetShiftData done [00:18:19]requested_item shift.sale.total_cash is exist - process it [00:18:19]requested_item shift.sale_refund.total is exist - process it [00:18:19]requested_item shift.sale_refund.total_cash is exist - process it [00:18:19]requested_item shift.buy.total is exist - process it [00:18:19]requested_item shift.buy.total_cash is exist - process it [00:18:19]produce_requested_data done [00:18:19]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:18:19]process_action_free get_value [00:18:19]json_value_free [00:18:19]json_value_free done [00:18:19]process_json_proto returns [00:18:19]Send response to host [00:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:18:19]free response buf [00:18:19]execute_script done [00:18:19]execute_script returns [00:18:19]free content buf [00:18:19]Sock 7.Close socket [00:18:19]Sock 7.Thread stoped [00:18:19]accept exits with 9 [00:18:19]New connection [00:18:19]New thread 3067612516 created [00:18:19]Thread 3067469156 joined [00:18:19]Waiting for new connection... [00:18:19] Sock 9.Parse request [00:18:19]Sock 9.Check first char [00:18:19]Sock 9.First char is OK [00:18:19]request: POST /json_proto HTTP/1.0 [00:18:19]Method: POST [00:18:19]URL: /json_proto [00:18:19]Method is POST - this is cgi request [00:18:19]url: /json_proto [00:18:19]query_string will be loaded in cgi processing [00:18:19]execute_cgi json_proto POST (null) [00:18:19]execute_cgi path=json_proto method=POST [00:18:19]POST find Content-Length [00:18:19]Host: 172.17.45.67:8080 [00:18:19]Content-Length: 331 [00:18:19]Content-Type: application/json [00:18:19] [00:18:19]POST finish read [00:18:19]Found Content-Length = 331 [00:18:19]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:18:19]execute_script... [00:18:19]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:18:19]POST & json_proto [00:18:19]process_json_proto [00:18:19]json parsed OK: [00:18:19]protocol is kg_v1.0 [00:18:19]action value=get_value [00:18:19]process_action get_value [00:18:19]cmd_get_value [00:18:19]process_action get_value done [00:18:19]requested_data is exist [00:18:19]produce_requested_data [00:18:19]requested_item fm.sale.total is exist - process it [00:18:19]SAM_PROTO_GetFMData [00:18:19]wFMCommunicate request_size=4 [00:18:19]MH_SAM_APDU [00:18:19]CAPDU: 80 13 03 00 [00:18:19]Write to MH i2c: E2 08 00 40 2F 80 13 03 00 00 00 00 00 EE [00:18:19]Write i2c OK [00:18:19]MH_I2C_Read... [00:18:19]OFD Sender: No OFD packet to send [00:18:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 40 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 35 [00:18:20]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:18:20]wFMCommunicate OK [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 17 00 00 [00:18:20]Write to MH i2c: E2 08 00 41 2F 80 17 00 00 00 00 00 00 F0 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 41 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 F5 [00:18:20]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:18:20]wFMCommunicate OK [00:18:20]wFMCommunicate request_size=4 [00:18:20]MH_SAM_APDU [00:18:20]CAPDU: 80 17 00 00 [00:18:20]Write to MH i2c: E2 08 00 42 2F 80 17 00 00 00 00 00 00 F1 [00:18:20]Write i2c OK [00:18:20]MH_I2C_Read... [00:18:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:20]Read from MH i2c: E2 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 [00:18:20]MH_I2C_Read... [00:18:20]Read from MH i2c: E2 FD 00 42 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:18:20]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 17 00 00 [00:18:21]Write to MH i2c: E2 08 00 43 2F 80 17 00 00 00 00 00 00 F2 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 FD 00 43 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:18:21]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:21]wFMCommunicate OK [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 17 00 00 [00:18:21]Write to MH i2c: E2 08 00 44 2F 80 17 00 00 00 00 00 00 F3 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:21]Read from MH i2c: E2 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 E1 00 [00:18:21]MH_I2C_Read... [00:18:21]Read from MH i2c: E2 E1 00 44 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E1 [00:18:21]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:21]wFMCommunicate OK [00:18:21]SAM_PROTO_GetFMData done [00:18:21]requested_item fm.sale_refund.total is exist - process it [00:18:21]requested_item fm.buy.total is exist - process it [00:18:21]requested_item shift.sale.total is exist - process it [00:18:21]SAM_PROTO_GetShiftData [00:18:21]wFMCommunicate request_size=4 [00:18:21]MH_SAM_APDU [00:18:21]CAPDU: 80 13 02 00 [00:18:21]Write to MH i2c: E2 08 00 45 2F 80 13 02 00 00 00 00 00 F2 [00:18:21]Write i2c OK [00:18:21]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 45 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C2 [00:18:22]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 17 00 00 [00:18:22]Write to MH i2c: E2 08 00 46 2F 80 17 00 00 00 00 00 00 F5 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:22]Read from MH i2c: E2 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 [00:18:22]MH_I2C_Read... [00:18:22]Read from MH i2c: E2 FD 00 46 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 0E [00:18:22]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:18:22]wFMCommunicate OK [00:18:22]wFMCommunicate request_size=4 [00:18:22]MH_SAM_APDU [00:18:22]CAPDU: 80 17 00 00 [00:18:22]Write to MH i2c: E2 08 00 47 2F 80 17 00 00 00 00 00 00 F6 [00:18:22]Write i2c OK [00:18:22]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 47 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AF [00:18:23]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:18:23]wFMCommunicate OK [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 17 00 00 [00:18:23]Write to MH i2c: E2 08 00 48 2F 80 17 00 00 00 00 00 00 F7 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 FD 00 48 2F 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6F [00:18:23]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:18:23]wFMCommunicate OK [00:18:23]wFMCommunicate request_size=4 [00:18:23]MH_SAM_APDU [00:18:23]CAPDU: 80 17 00 00 [00:18:23]Write to MH i2c: E2 08 00 49 2F 80 17 00 00 00 00 00 00 F8 [00:18:23]Write i2c OK [00:18:23]MH_I2C_Read... [00:18:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:23]Read from MH i2c: E2 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 CE 00 [00:18:23]MH_I2C_Read... [00:18:23]Read from MH i2c: E2 CE 00 49 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DD [00:18:23]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:18:23]wFMCommunicate OK [00:18:23]SAM_PROTO_GetShiftData done [00:18:23]requested_item shift.sale.total_cash is exist - process it [00:18:23]requested_item shift.sale_refund.total is exist - process it [00:18:23]requested_item shift.sale_refund.total_cash is exist - process it [00:18:23]requested_item shift.buy.total is exist - process it [00:18:23]requested_item shift.buy.total_cash is exist - process it [00:18:23]produce_requested_data done [00:18:23]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:18:24]process_action_free get_value [00:18:24]json_value_free [00:18:24]json_value_free done [00:18:24]process_json_proto returns [00:18:24]Send response to host [00:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:18:24]free response buf [00:18:24]execute_script done [00:18:24]execute_script returns [00:18:24]free content buf [00:18:24]Sock 9.Close socket [00:18:24]Sock 9.Thread stoped [00:18:24]accept exits with 7 [00:18:24]New connection [00:18:24]New thread 3067469156 created [00:18:24]Thread 3067612516 joined [00:18:24]Waiting for new connection... [00:18:24] Sock 7.Parse request [00:18:24]Sock 7.Check first char [00:18:24]Sock 7.First char is OK [00:18:24]request: POST /json_proto HTTP/1.0 [00:18:24]Method: POST [00:18:24]URL: /json_proto [00:18:24]Method is POST - this is cgi request [00:18:24]url: /json_proto [00:18:24]query_string will be loaded in cgi processing [00:18:24]execute_cgi json_proto POST (null) [00:18:24]execute_cgi path=json_proto method=POST [00:18:24]POST find Content-Length [00:18:24]Host: 172.17.45.67:8080 [00:18:24]Content-Length: 261 [00:18:24]Content-Type: application/json [00:18:24] [00:18:24]POST finish read [00:18:24]Found Content-Length = 261 [00:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:24]execute_script... [00:18:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:24]POST & json_proto [00:18:24]process_json_proto [00:18:24]json parsed OK: [00:18:24]protocol is kg_v1.0 [00:18:24]action value=x_report [00:18:24]process_action x_report [00:18:24]cmd_x_report [00:18:24]MH_GetDate [00:18:24]Write to MH i2c: F0 00 00 4A 2F 68 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 09 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 09 00 4A 2F 00 D1 83 C6 66 5F 7F 2B 66 60 [00:18:24]GetLastDocTimeStamp 1724285387 [00:18:24]current date 1724285905 [00:18:24]FM_GetShiftState [00:18:24]SAM_PROTO_GetShiftState [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 01 00 [00:18:24]Write to MH i2c: E2 08 00 4B 2F 80 13 01 00 00 00 00 00 F7 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 0E 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 0E 00 4B 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 77 [00:18:24]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetShiftState done [00:18:24]FM_GetShiftState done [00:18:24]KKMCreateXReportDocument [00:18:24]Load OK [00:18:24]Malloc new data [00:18:24]MH_GetDate [00:18:24]Write to MH i2c: F0 00 00 4C 2F 6A [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 09 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: F0 09 00 4C 2F 00 D1 83 C6 66 5F 7F 2B 66 62 [00:18:24]Malloc new data [00:18:24]Malloc new data [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 11 00 00 [00:18:24]Write to MH i2c: E2 08 00 4D 2F 80 11 00 00 00 00 00 00 F6 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 17 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 17 00 4D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4D [00:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetFieldsCounters [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 00 00 [00:18:24]Write to MH i2c: E2 08 00 4E 2F 80 13 00 00 00 00 00 00 F9 [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 62 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 62 00 4E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 E7 [00:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 [00:18:24]wFMCommunicate OK [00:18:24]SAM_PROTO_GetFieldsCounters done [00:18:24]Malloc new data [00:18:24]Malloc new data [00:18:24]Malloc new data [00:18:24]KKMCreateXReportDocument OK [00:18:24]KKMSetXReportData OK [00:18:24]KKMPrepareXReportFMData [00:18:24]SAM_PROTO_GetShiftData [00:18:24]wFMCommunicate request_size=4 [00:18:24]MH_SAM_APDU [00:18:24]CAPDU: 80 13 02 00 [00:18:24]Write to MH i2c: E2 08 00 4F 2F 80 13 02 00 00 00 00 00 FC [00:18:24]Write i2c OK [00:18:24]MH_I2C_Read... [00:18:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:24]Read from MH i2c: E2 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 [00:18:24]MH_I2C_Read... [00:18:24]Read from MH i2c: E2 FD 00 4F 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CC [00:18:24]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 OFD Sender: No OFD packet to send [00:18:25]09 00 F6 03 01 90 00 [00:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 50 2F 80 17 00 00 00 00 00 00 FF [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 50 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 18 [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 51 2F 80 17 00 00 00 00 00 00 00 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:25]Read from MH i2c: E2 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 [00:18:25]MH_I2C_Read... [00:18:25]Read from MH i2c: E2 FD 00 51 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B9 [00:18:25]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:18:25]wFMCommunicate OK [00:18:25]wFMCommunicate request_size=4 [00:18:25]MH_SAM_APDU [00:18:25]CAPDU: 80 17 00 00 [00:18:25]Write to MH i2c: E2 08 00 52 2F 80 17 00 00 00 00 00 00 01 [00:18:25]Write i2c OK [00:18:25]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 FD 00 52 2F 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 79 [00:18:26]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:18:26]wFMCommunicate OK [00:18:26]wFMCommunicate request_size=4 [00:18:26]MH_SAM_APDU [00:18:26]CAPDU: 80 17 00 00 [00:18:26]Write to MH i2c: E2 08 00 53 2F 80 17 00 00 00 00 00 00 02 [00:18:26]Write i2c OK [00:18:26]MH_I2C_Read... [00:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:18:26]Read from MH i2c: E2 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 CE 00 [00:18:26]MH_I2C_Read... [00:18:26]Read from MH i2c: E2 CE 00 53 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [00:18:26]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:26]wFMCommunicate OK [00:18:26]SAM_PROTO_GetShiftData done [00:18:26]1194 (1197) - счетчики итогов смены [00:18:26] 1134 (4) - 449 - количество чеков со всеми признаками расчетов [00:18:26] 1129 (158) - счетчики операций «приход» [00:18:26] 1135 (4) - 449 - количество чеков по признаку расчетов [00:18:26] 1201 (4) - 281969.00 - общая итоговая сумма в чеках [00:18:26] 1136 (4) - 263319.00 - итоговая сумма в чеках наличными [00:18:26] 1138 (3) - 18650.00 - итоговая сумма в чеках безналичными [00:18:26] 1024 (123) - суммы налогов [00:18:26] 1006 (9) - суммы НДС [00:18:26] 1010 (1) - 0% - код ставки НДС [00:18:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:26] 1006 (12) - суммы НДС [00:18:26] 1010 (1) - 12% - код ставки НДС [00:18:26] 1011 (3) - 29955.72 - сумма НДС по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 0% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (12) - суммы НСП [00:18:26] 1014 (1) - 1% - код ставки НСП [00:18:26] 1015 (3) - 2496.41 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 2% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 3% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 5% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 0,50% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 1,50% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1130 (141) - счетчики операций «возврат прихода» [00:18:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:26] 1024 (117) - суммы налогов [00:18:26] 1006 (9) - суммы НДС [00:18:26] 1010 (1) - 0% - код ставки НДС [00:18:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:26] 1006 (9) - суммы НДС [00:18:26] 1010 (1) - 12% - код ставки НДС [00:18:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 0% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 1% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 2% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 3% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 5% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 0,50% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 1,50% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1131 (141) - счетчики операций «расход» [00:18:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:26] 1024 (117) - суммы налогов [00:18:26] 1006 (9) - суммы НДС [00:18:26] 1010 (1) - 0% - код ставки НДС [00:18:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:26] 1006 (9) - суммы НДС [00:18:26] 1010 (1) - 12% - код ставки НДС [00:18:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 0% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 1% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 2% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:26] 1007 (9) - суммы НСП [00:18:26] 1014 (1) - 3% - код ставки НСП [00:18:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 5% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 0,50% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 1,50% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1132 (141) - счетчики операций «возврат расхода» [00:18:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:27] 1024 (117) - суммы налогов [00:18:27] 1006 (9) - суммы НДС [00:18:27] 1010 (1) - 0% - код ставки НДС [00:18:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:27] 1006 (9) - суммы НДС [00:18:27] 1010 (1) - 12% - код ставки НДС [00:18:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 0% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 1% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 2% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 3% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 5% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 0,50% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1007 (9) - суммы НСП [00:18:27] 1014 (1) - 1,50% - код ставки НСП [00:18:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:27] 1133 (588) - - счетчики коррекции - не используются [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1194 (04AA) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1134 (046E) [00:18:27]Malloc new data [00:18:27]Processing tag 1129 (0469) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1135 (046F) [00:18:27]Malloc new data [00:18:27]Processing tag 1201 (04B1) [00:18:27]Malloc new data [00:18:27]Processing tag 1136 (0470) [00:18:27]Malloc new data [00:18:27]Processing tag 1138 (0472) [00:18:27]Malloc new data [00:18:27]Processing tag 1024 (0400) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1130 (046A) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1135 (046F) [00:18:27]Malloc new data [00:18:27]Processing tag 1201 (04B1) [00:18:27]Malloc new data [00:18:27]Processing tag 1136 (0470) [00:18:27]Malloc new data [00:18:27]Processing tag 1138 (0472) [00:18:27]Malloc new data [00:18:27]Processing tag 1024 (0400) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1131 (046B) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1135 (046F) [00:18:27]Malloc new data [00:18:27]Processing tag 1201 (04B1) [00:18:27]Malloc new data [00:18:27]Processing tag 1136 (0470) [00:18:27]Malloc new data [00:18:27]Processing tag 1138 (0472) [00:18:27]Malloc new data [00:18:27]Processing tag 1024 (0400) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1132 (046C) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1135 (046F) [00:18:27]Malloc new data [00:18:27]Processing tag 1201 (04B1) [00:18:27]Malloc new data [00:18:27]Processing tag 1136 (0470) [00:18:27]Malloc new data [00:18:27]Processing tag 1138 (0472) [00:18:27]Malloc new data [00:18:27]Processing tag 1024 (0400) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1006 (03EE) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1010 (03F2) [00:18:27]Malloc new data [00:18:27]Processing tag 1011 (03F3) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1007 (03EF) [00:18:27]Load OK [00:18:27]SetTLVBufToDocument [00:18:27]Processing tag 1014 (03F6) [00:18:27]Malloc new data [00:18:27]Processing tag 1015 (03F7) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Processing tag 1133 (046D) [00:18:27]Malloc new data [00:18:27]SetTLVBufToDocument err=0 [00:18:27]SetTLVBufToDocument err=0 [00:18:27]Malloc new data [00:18:27]SAM_PROTO_GetFMData [00:18:27]wFMCommunicate request_size=4 [00:18:27]MH_SAM_APDU [00:18:27]CAPDU: 80 13 03 00 [00:18:27]Write to MH i2c: E2 08 00 54 2F 80 13 03 00 00 00 00 00 02 [00:18:27]Write i2c OK [00:18:27]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 54 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 49 [00:18:28]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:18:28]wFMCommunicate OK [00:18:28]wFMCommunicate request_size=4 [00:18:28]MH_SAM_APDU [00:18:28]CAPDU: 80 17 00 00 [00:18:28]Write to MH i2c: E2 08 00 55 2F 80 17 00 00 00 00 00 00 04 [00:18:28]Write i2c OK [00:18:28]MH_I2C_Read... [00:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:28]Read from MH i2c: E2 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 [00:18:28]MH_I2C_Read... [00:18:28]Read from MH i2c: E2 FD 00 55 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 09 [00:18:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 56 2F 80 17 00 00 00 00 00 00 05 [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 56 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:18:29]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:29]wFMCommunicate OK [00:18:29]wFMCommunicate request_size=4 [00:18:29]MH_SAM_APDU [00:18:29]CAPDU: 80 17 00 00 [00:18:29]Write to MH i2c: E2 08 00 57 2F 80 17 00 00 00 00 00 00 06 [00:18:29]Write i2c OK [00:18:29]MH_I2C_Read... [00:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:29]Read from MH i2c: E2 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 [00:18:29]MH_I2C_Read... [00:18:29]Read from MH i2c: E2 FD 00 57 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [00:18:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:30]wFMCommunicate OK [00:18:30]wFMCommunicate request_size=4 [00:18:30]MH_SAM_APDU [00:18:30]CAPDU: 80 17 00 00 [00:18:30]Write to MH i2c: E2 08 00 58 2F 80 17 00 00 00 00 00 00 07 [00:18:30]OFD Sender: No OFD packet to send [00:18:30]Write i2c OK [00:18:30]MH_I2C_Read... [00:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:18:30]Read from MH i2c: E2 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 E1 00 [00:18:30]MH_I2C_Read... [00:18:30]Read from MH i2c: E2 E1 00 58 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [00:18:30]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:30]wFMCommunicate OK [00:18:30]SAM_PROTO_GetFMData done [00:18:30]FM_GetFMData:85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 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 CA 81 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 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:18:31]oper:6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:31]total:43 7D E2 3D 02 [00:18:31]Malloc new data [00:18:31]oper:6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 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 CA 81 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 [00:18:31]total:94 3F FD 01 [00:18:31]Malloc new data [00:18:31]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:18:31]total: [00:18:31]Malloc new data [00:18:31]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:18:31]total: [00:18:31]Malloc new data [00:18:31]KKMPrepareXReportFMData err=0 [00:18:31]Х отчет ИНН: 02508201610067 Кассир: Ст.Оператор 22.08.2024 00:18 Смена: 266 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Всего чеков: 449 ИТОГИ ПРИХОД Чеков: 449 Общий итог: 281969.00 Итого наличными: 263319.00 Итого безнал.: 18650.00 НДС 0% : 0.00 НДС 12% : 29955.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2496.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 263319.00 НС Приход: 96281879.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871776 [00:18:31]StoreToDocumentArchive [00:18:31]MH_GetDate [00:18:31]Write to MH i2c: F0 00 00 59 2F 77 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: F0 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: F0 09 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: F0 09 00 59 2F 00 D9 83 C6 66 5F 7F 2B 66 77 [00:18:31]shift 266 fd 1724285913 [00:18:31]Create dir for shift 0266 [00:18:31]save to /storage/0266/doc_1724285913 [00:18:31]save last doc name /storage/0266/doc_1724285913 to /storage/kkm_last_doc_name [00:18:31]save OK [00:18:31]Clear old archive folders... [00:18:31]NVStorageSaveData kkm_last_timestamp [00:18:31]File name is /storage/kkm_last_timestamp [00:18:31]Write 4 bytes [00:18:31]NVStorageSaveData done [00:18:31]ExternCall_PrintAddStr [00:18:31]wPrintStart [00:18:31]Write to MH i2c: 01 00 00 5A 2F 89 [00:18:31]Write i2c OK [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 [00:18:31]MH_I2C_Read... [00:18:31]Read from MH i2c: 01 07 00 5A 2F 00 00 00 00 00 FF 0F 9E [00:18:31]RasterBufferAndPrint [00:18:31]line Х отчет [00:18:31]line ИНН: 02508201610067 [00:18:31]line Кассир: Ст.Оператор [00:18:31]line 22.08.2024 00:18 [00:18:31]line Смена: 266 [00:18:31]line РНМ: 0000000000092569 [00:18:31]line ЗНМ: 0300000067 [00:18:31]line СНО: Общий режим [00:18:31]line Всего чеков: 449 [00:18:31]line ИТОГИ ПРИХОД [00:18:31]line Чеков: 449 [00:18:31]line Общий итог: 281969.00 [00:18:31]line Итого наличными: 263319.00 [00:18:31]line Итого безнал.: 18650.00 [00:18:31]line НДС 0% : 0.00 [00:18:31]line НДС 12% : 29955.72 [00:18:31]line НСП 0% : 0.00 [00:18:31]line НСП 1,50% : 0.00 [00:18:31]line НСП 0,50% : 0.00 [00:18:31]line НСП 5% : 0.00 [00:18:31]line НСП 3% : 0.00 [00:18:31]line НСП 2% : 0.00 [00:18:31]line НСП 1% : 2496.41 [00:18:31]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:31]line Чеков: 0 [00:18:31]line Общий итог: 0.00 [00:18:31]line Итого наличными: 0.00 [00:18:31]line Итого безнал.: 0.00 [00:18:31]line НДС 0% : 0.00 [00:18:31]line НДС 12% : 0.00 [00:18:31]line НСП 0% : 0.00 [00:18:31]line НСП 1,50% : 0.00 [00:18:31]line НСП 0,50% : 0.00 [00:18:31]line НСП 5% : 0.00 [00:18:31]line НСП 3% : 0.00 [00:18:31]line НСП 2% : 0.00 [00:18:31]line НСП 1% : 0.00 [00:18:31]line ИТОГИ РАСХОД [00:18:31]line Чеков: 0 [00:18:31]line Общий итог: 0.00 [00:18:31]line Итого наличными: 0.00 [00:18:31]line Итого безнал.: 0.00 [00:18:31]line НДС 0% : 0.00 [00:18:31]line НДС 12% : 0.00 [00:18:31]line НСП 0% : 0.00 [00:18:31]line НСП 1,50% : 0.00 [00:18:31]line НСП 0,50% : 0.00 [00:18:31]line НСП 5% : 0.00 [00:18:31]line НСП 3% : 0.00 [00:18:31]line НСП 2% : 0.00 [00:18:31]line НСП 1% : 0.00 [00:18:31]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:31]line Чеков: 0 [00:18:31]line Общий итог: 0.00 [00:18:31]line Итого наличными: 0.00 [00:18:31]line Итого безнал.: 0.00 [00:18:31]line НДС 0% : 0.00 [00:18:31]line НДС 12% : 0.00 [00:18:31]line НСП 0% : 0.00 [00:18:31]line НСП 1,50% : 0.00 [00:18:31]line НСП 0,50% : 0.00 [00:18:31]line НСП 5% : 0.00 [00:18:31]line НСП 3% : 0.00 [00:18:31]line НСП 2% : 0.00 [00:18:31]line НСП 1% : 0.00 [00:18:31]line Сумма внесений: 0.00 [00:18:31]line Сумма выплат: 0.00 [00:18:31]line Нал. в кассе: 263319.00 [00:18:31]line НС Приход: 96281879.71 [00:18:31]line НС Возвр.Прихода: 333741.00 [00:18:31]line НС Расход: 0.00 [00:18:31]line НС Возвр.Расхода: 0.00 [00:18:31]line ФМ: 0000000000871776 [00:18:31]written 0, free lines is 4095 [00:18:32]Write to MH i2c: 01 00 00 A5 2F D4 [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 07 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: 01 07 00 A5 2F 00 00 00 00 00 E1 0A C6 [00:18:32]RasterBufferAndPrint [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]line [00:18:32]written 0, free lines is 2825 [00:18:32]MH_Cut [00:18:32]Write to MH i2c: D1 01 00 AC 2F 01 AD [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 01 00 [00:18:32]MH_I2C_Read... [00:18:32]Read from MH i2c: D1 01 00 AC 2F 00 AC [00:18:32]Write to MH i2c: 01 00 00 AD 2F DC [00:18:32]Write i2c OK [00:18:32]MH_I2C_Read... [00:18:33]*** Cut start [00:18:33]*** Partial cut [00:18:33]*** CUTSNS_PIN = 1 [00:18:33]*** CUTSNS_PIN = 0 [00:18:33]*** Brake cut motor [00:18:34]Read from MH i2c: 01 [00:18:34]MH_I2C_Read... [00:18:34]*** Stop cut motor [00:18:34]*** Cut end [00:18:34]Read from MH i2c: 01 07 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 AD 2F 00 00 00 00 00 FF 0F F1 [00:18:34]process_action x_report done [00:18:34]requested_data is exist [00:18:34]produce_requested_data [00:18:34]requested_item fd.num is exist - process it [00:18:34]SAM_PROTO_GetFieldsCounters [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 13 00 00 [00:18:34]Write to MH i2c: E2 08 00 AE 2F 80 13 00 00 00 00 00 00 59 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 62 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 62 00 AE 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 47 [00:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 [00:18:34]wFMCommunicate OK [00:18:34]SAM_PROTO_GetFieldsCounters done [00:18:34]requested_item shift.num is exist - process it [00:18:34]requested_item shift.opened is exist - process it [00:18:34]req_shift_opened [00:18:34]FM_GetShiftState [00:18:34]SAM_PROTO_GetShiftState [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 13 01 00 [00:18:34]Write to MH i2c: E2 08 00 AF 2F 80 13 01 00 00 00 00 00 5B [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 0E 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 0E 00 AF 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 DB [00:18:34]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:18:34]wFMCommunicate OK [00:18:34]SAM_PROTO_GetShiftState done [00:18:34]FM_GetShiftState done [00:18:34]req_shift_opened done [00:18:34]requested_item shift.open_date is exist - process it [00:18:34]req_shift_open_date [00:18:34]req_shift_open_date done [00:18:34]produce_requested_data done [00:18:34]produce_requested_data return {"fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:18:34]process_action_free x_report [00:18:34]json_value_free [00:18:34]json_value_free done [00:18:34]process_json_proto returns [00:18:34]Send response to host [00:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:18:34]free response buf [00:18:34]execute_script done [00:18:34]execute_script returns [00:18:34]free content buf [00:18:34]Sock 7.Close socket [00:18:34]Sock 7.Thread stoped [00:18:34]int [00:18:34]Write to MH i2c: 01 00 00 B0 2F DF [00:18:34]*** FLAG_PRN_KEY set [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 B0 2F 00 08 00 00 00 FF 0F FC [00:18:34]state=0 [00:18:34]Key pressed [00:18:34]Feed [00:18:34]Write to MH i2c: D8 00 00 B1 2F B7 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: D8 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: D8 01 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: D8 01 00 B1 2F 00 B8 [00:18:34]int line is 0 - check status [00:18:34]Write to MH i2c: 01 00 00 B2 2F E1 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 B2 2F 00 48 00 00 00 3C 00 6C [00:18:34]state=2 [00:18:34]Key pressed [00:18:34]int [00:18:34]Write to MH i2c: 01 00 00 B3 2F E2 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: 01 07 00 B3 2F 00 48 00 00 00 3C 00 6D [00:18:34]state=2 [00:18:34]Key pressed [00:18:35]int [00:18:35]Write to MH i2c: 01 00 00 B4 2F E3 [00:18:35]*** FLAG_PRN_KEY reset [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 B4 2F 00 00 00 00 00 FF 0F F8 [00:18:35]state=2 [00:18:35]Stop feed [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]accept exits with 9 [00:19:15]New connection [00:19:15]New thread 3067612516 created [00:19:15]Thread 3067469156 joined [00:19:15]Waiting for new connection... [00:19:15] Sock 9.Parse request [00:19:15]Sock 9.Check first char [00:19:15]Sock 9.First char is OK [00:19:15]request: POST /json_proto HTTP/1.0 [00:19:15]Method: POST [00:19:15]URL: /json_proto [00:19:15]Method is POST - this is cgi request [00:19:15]url: /json_proto [00:19:15]query_string will be loaded in cgi processing [00:19:15]execute_cgi json_proto POST (null) [00:19:15]execute_cgi path=json_proto method=POST [00:19:15]POST find Content-Length [00:19:15]Host: 172.17.45.67:8080 [00:19:15]Content-Length: 215 [00:19:15]Content-Type: application/json [00:19:15] [00:19:15]POST finish read [00:19:15]Found Content-Length = 215 [00:19:15]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:19:15]execute_script... [00:19:15]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:19:15]POST & json_proto [00:19:15]process_json_proto [00:19:15]json parsed OK: [00:19:15]protocol is kg_v1.0 [00:19:15]action value=get_value [00:19:15]process_action get_value [00:19:15]cmd_get_value [00:19:15]process_action get_value done [00:19:15]requested_data is exist [00:19:15]produce_requested_data [00:19:15]requested_item kkm.sn is exist - process it [00:19:15]requested_item kkm.ver is exist - process it [00:19:15]requested_item fm.sn is exist - process it [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 11 00 00 [00:19:15]Write to MH i2c: E2 08 00 B5 2F 80 11 00 00 00 00 00 00 5E [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 17 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 17 00 B5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 B5 [00:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:15]wFMCommunicate OK [00:19:15]requested_item fd.num is exist - process it [00:19:15]SAM_PROTO_GetFieldsCounters [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 00 00 [00:19:15]Write to MH i2c: E2 08 00 B6 2F 80 13 00 00 00 00 00 00 61 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 62 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 62 00 B6 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 4F [00:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 90 24 02 00 0E 04 04 00 C6 01 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 [00:19:15]wFMCommunicate OK [00:19:15]SAM_PROTO_GetFieldsCounters done [00:19:15]requested_item shift.num is exist - process it [00:19:15]requested_item shift.opened is exist - process it [00:19:15]req_shift_opened [00:19:15]FM_GetShiftState [00:19:15]SAM_PROTO_GetShiftState [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 01 00 [00:19:15]Write to MH i2c: E2 08 00 B7 2F 80 13 01 00 00 00 00 00 63 [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:15]Read from MH i2c: E2 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0E 00 [00:19:15]MH_I2C_Read... [00:19:15]Read from MH i2c: E2 0E 00 B7 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 E3 [00:19:15]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:19:15]wFMCommunicate OK [00:19:15]SAM_PROTO_GetShiftState done [00:19:15]FM_GetShiftState done [00:19:15]req_shift_opened done [00:19:15]requested_item shift.open_date is exist - process it [00:19:15]req_shift_open_date [00:19:15]req_shift_open_date done [00:19:15]produce_requested_data done [00:19:15]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467} [00:19:15]process_action_free get_value [00:19:15]json_value_free [00:19:15]json_value_free done [00:19:15]process_json_proto returns [00:19:15]Send response to host [00:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140432,"shift.num":454,"shift.opened":1,"shift.open_date":1724200467}}} [00:19:15]free response buf [00:19:15]execute_script done [00:19:15]execute_script returns [00:19:15]free content buf [00:19:15]Sock 9.Close socket [00:19:15]Sock 9.Thread stoped [00:19:15]accept exits with 7 [00:19:15]New connection [00:19:15]New thread 3067469156 created [00:19:15]Thread 3067612516 joined [00:19:15]Waiting for new connection... [00:19:15] Sock 7.Parse request [00:19:15]Sock 7.Check first char [00:19:15]Sock 7.First char is OK [00:19:15]request: POST /json_proto HTTP/1.0 [00:19:15]Method: POST [00:19:15]URL: /json_proto [00:19:15]Method is POST - this is cgi request [00:19:15]url: /json_proto [00:19:15]query_string will be loaded in cgi processing [00:19:15]execute_cgi json_proto POST (null) [00:19:15]execute_cgi path=json_proto method=POST [00:19:15]POST find Content-Length [00:19:15]Host: 172.17.45.67:8080 [00:19:15]Content-Length: 331 [00:19:15]Content-Type: application/json [00:19:15] [00:19:15]POST finish read [00:19:15]Found Content-Length = 331 [00:19:15]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:19:15]execute_script... [00:19:15]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:19:15]POST & json_proto [00:19:15]process_json_proto [00:19:15]json parsed OK: [00:19:15]protocol is kg_v1.0 [00:19:15]action value=get_value [00:19:15]process_action get_value [00:19:15]cmd_get_value [00:19:15]process_action get_value done [00:19:15]requested_data is exist [00:19:15]produce_requested_data [00:19:15]requested_item fm.sale.total is exist - process it [00:19:15]SAM_PROTO_GetFMData [00:19:15]wFMCommunicate request_size=4 [00:19:15]MH_SAM_APDU [00:19:15]CAPDU: 80 13 03 00 [00:19:15]Write to MH i2c: E2 08 00 B8 2F 80 13 03 00 00 00 00 00 66 [00:19:15]OFD Sender: No OFD packet to send [00:19:15]Write i2c OK [00:19:15]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 B8 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 AD [00:19:16]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 B9 2F 80 17 00 00 00 00 00 00 68 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 B9 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 6D [00:19:16]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 BA 2F 80 17 00 00 00 00 00 00 69 [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 BA 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7E [00:19:16]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 BB 2F 80 17 00 00 00 00 00 00 6A [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:16]Read from MH i2c: E2 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 [00:19:16]MH_I2C_Read... [00:19:16]Read from MH i2c: E2 FD 00 BB 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E2 [00:19:16]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:16]wFMCommunicate OK [00:19:16]wFMCommunicate request_size=4 [00:19:16]MH_SAM_APDU [00:19:16]CAPDU: 80 17 00 00 [00:19:16]Write to MH i2c: E2 08 00 BC 2F 80 17 00 00 00 00 00 00 6B [00:19:16]Write i2c OK [00:19:16]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 E1 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 E1 00 BC 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [00:19:17]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:17]wFMCommunicate OK [00:19:17]SAM_PROTO_GetFMData done [00:19:17]requested_item fm.sale_refund.total is exist - process it [00:19:17]requested_item fm.buy.total is exist - process it [00:19:17]requested_item shift.sale.total is exist - process it [00:19:17]SAM_PROTO_GetShiftData [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 13 02 00 [00:19:17]Write to MH i2c: E2 08 00 BD 2F 80 13 02 00 00 00 00 00 6A [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 BD 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3A [00:19:17]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 BE 2F 80 17 00 00 00 00 00 00 6D [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:17]Read from MH i2c: E2 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 [00:19:17]MH_I2C_Read... [00:19:17]Read from MH i2c: E2 FD 00 BE 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 86 [00:19:17]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:19:17]wFMCommunicate OK [00:19:17]wFMCommunicate request_size=4 [00:19:17]MH_SAM_APDU [00:19:17]CAPDU: 80 17 00 00 [00:19:17]Write to MH i2c: E2 08 00 BF 2F 80 17 00 00 00 00 00 00 6E [00:19:17]Write i2c OK [00:19:17]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 BF 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 27 [00:19:18]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:19:18]wFMCommunicate OK [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 17 00 00 [00:19:18]Write to MH i2c: E2 08 00 C0 2F 80 17 00 00 00 00 00 00 6F [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 FD 00 C0 2F 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E7 [00:19:18]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:18]wFMCommunicate OK [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 17 00 00 [00:19:18]Write to MH i2c: E2 08 00 C1 2F 80 17 00 00 00 00 00 00 70 [00:19:18]Write i2c OK [00:19:18]MH_I2C_Read... [00:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:18]Read from MH i2c: E2 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 CE 00 [00:19:18]MH_I2C_Read... [00:19:18]Read from MH i2c: E2 CE 00 C1 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [00:19:18]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:18]wFMCommunicate OK [00:19:18]SAM_PROTO_GetShiftData done [00:19:18]requested_item shift.sale.total_cash is exist - process it [00:19:18]requested_item shift.sale_refund.total is exist - process it [00:19:18]requested_item shift.sale_refund.total_cash is exist - process it [00:19:18]requested_item shift.buy.total is exist - process it [00:19:18]requested_item shift.buy.total_cash is exist - process it [00:19:18]produce_requested_data done [00:19:18]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:19:18]process_action_free get_value [00:19:18]json_value_free [00:19:18]json_value_free done [00:19:18]process_json_proto returns [00:19:18]Send response to host [00:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:19:18]free response buf [00:19:18]execute_script done [00:19:18]execute_script returns [00:19:18]free content buf [00:19:18]Sock 7.Close socket [00:19:18]Sock 7.Thread stoped [00:19:18]accept exits with 9 [00:19:18]New connection [00:19:18]New thread 3067612516 created [00:19:18]Thread 3067469156 joined [00:19:18]Waiting for new connection... [00:19:18] Sock 9.Parse request [00:19:18]Sock 9.Check first char [00:19:18]Sock 9.First char is OK [00:19:18]request: POST /json_proto HTTP/1.0 [00:19:18]Method: POST [00:19:18]URL: /json_proto [00:19:18]Method is POST - this is cgi request [00:19:18]url: /json_proto [00:19:18]query_string will be loaded in cgi processing [00:19:18]execute_cgi json_proto POST (null) [00:19:18]execute_cgi path=json_proto method=POST [00:19:18]POST find Content-Length [00:19:18]Host: 172.17.45.67:8080 [00:19:18]Content-Length: 331 [00:19:18]Content-Type: application/json [00:19:18] [00:19:18]POST finish read [00:19:18]Found Content-Length = 331 [00:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:18]execute_script... [00:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:18]POST & json_proto [00:19:18]process_json_proto [00:19:18]json parsed OK: [00:19:18]protocol is kg_v1.0 [00:19:18]action value=get_value [00:19:18]process_action get_value [00:19:18]cmd_get_value [00:19:18]process_action get_value done [00:19:18]requested_data is exist [00:19:18]produce_requested_data [00:19:18]requested_item fm.sale.total is exist - process it [00:19:18]SAM_PROTO_GetFMData [00:19:18]wFMCommunicate request_size=4 [00:19:18]MH_SAM_APDU [00:19:18]CAPDU: 80 13 03 00 [00:19:19]Write to MH i2c: E2 08 00 C2 2F 80 13 03 00 00 00 00 00 70 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 C2 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 B7 [00:19:19]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 17 00 00 [00:19:19]Write to MH i2c: E2 08 00 C3 2F 80 17 00 00 00 00 00 00 72 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:19]Read from MH i2c: E2 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 [00:19:19]MH_I2C_Read... [00:19:19]Read from MH i2c: E2 FD 00 C3 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 77 [00:19:19]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:19:19]wFMCommunicate OK [00:19:19]wFMCommunicate request_size=4 [00:19:19]MH_SAM_APDU [00:19:19]CAPDU: 80 17 00 00 [00:19:19]Write to MH i2c: E2 08 00 C4 2F 80 17 00 00 00 00 00 00 73 [00:19:19]Write i2c OK [00:19:19]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 C4 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [00:19:20]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 17 00 00 [00:19:20]Write to MH i2c: E2 08 00 C5 2F 80 17 00 00 00 00 00 00 74 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 FD 00 C5 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EC [00:19:20]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:20]wFMCommunicate OK [00:19:20]wFMCommunicate request_size=4 [00:19:20]MH_SAM_APDU [00:19:20]CAPDU: 80 17 00 00 [00:19:20]Write to MH i2c: E2 08 00 C6 2F 80 17 00 00 00 00 00 00 75 [00:19:20]Write i2c OK [00:19:20]MH_I2C_Read... [00:19:20]OFD Sender: No OFD packet to send [00:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:20]Read from MH i2c: E2 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 E1 00 [00:19:20]MH_I2C_Read... [00:19:20]Read from MH i2c: E2 E1 00 C6 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [00:19:21]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:21]wFMCommunicate OK [00:19:21]SAM_PROTO_GetFMData done [00:19:21]requested_item fm.sale_refund.total is exist - process it [00:19:21]requested_item fm.buy.total is exist - process it [00:19:21]requested_item shift.sale.total is exist - process it [00:19:21]SAM_PROTO_GetShiftData [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 13 02 00 [00:19:21]Write to MH i2c: E2 08 00 C7 2F 80 13 02 00 00 00 00 00 74 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 C7 2F 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 44 [00:19:21]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:21]wFMCommunicate OK [00:19:21]wFMCommunicate request_size=4 [00:19:21]MH_SAM_APDU [00:19:21]CAPDU: 80 17 00 00 [00:19:21]Write to MH i2c: E2 08 00 C8 2F 80 17 00 00 00 00 00 00 77 [00:19:21]Write i2c OK [00:19:21]MH_I2C_Read... [00:19:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:21]Read from MH i2c: E2 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 [00:19:21]MH_I2C_Read... [00:19:21]Read from MH i2c: E2 FD 00 C8 2F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 90 [00:19:22]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:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:22]Write to MH i2c: E2 08 00 C9 2F 80 17 00 00 00 00 00 00 78 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 C9 2F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 31 [00:19:22]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:19:22]wFMCommunicate OK [00:19:22]wFMCommunicate request_size=4 [00:19:22]MH_SAM_APDU [00:19:22]CAPDU: 80 17 00 00 [00:19:22]Write to MH i2c: E2 08 00 CA 2F 80 17 00 00 00 00 00 00 79 [00:19:22]Write i2c OK [00:19:22]MH_I2C_Read... [00:19:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:22]Read from MH i2c: E2 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 [00:19:22]MH_I2C_Read... [00:19:22]Read from MH i2c: E2 FD 00 CA 2F 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F1 [00:19:22]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:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 17 00 00 [00:19:23]Write to MH i2c: E2 08 00 CB 2F 80 17 00 00 00 00 00 00 7A [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 CE 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 CE 00 CB 2F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [00:19:23]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:19:23]wFMCommunicate OK [00:19:23]SAM_PROTO_GetShiftData done [00:19:23]requested_item shift.sale.total_cash is exist - process it [00:19:23]requested_item shift.sale_refund.total is exist - process it [00:19:23]requested_item shift.sale_refund.total_cash is exist - process it [00:19:23]requested_item shift.buy.total is exist - process it [00:19:23]requested_item shift.buy.total_cash is exist - process it [00:19:23]produce_requested_data done [00:19:23]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:19:23]process_action_free get_value [00:19:23]json_value_free [00:19:23]json_value_free done [00:19:23]process_json_proto returns [00:19:23]Send response to host [00:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:19:23]free response buf [00:19:23]execute_script done [00:19:23]execute_script returns [00:19:23]free content buf [00:19:23]Sock 9.Close socket [00:19:23]Sock 9.Thread stoped [00:19:23]accept exits with 7 [00:19:23]New connection [00:19:23]New thread 3067469156 created [00:19:23]Thread 3067612516 joined [00:19:23]Waiting for new connection... [00:19:23] Sock 7.Parse request [00:19:23]Sock 7.Check first char [00:19:23]Sock 7.First char is OK [00:19:23]request: POST /json_proto HTTP/1.0 [00:19:23]Method: POST [00:19:23]URL: /json_proto [00:19:23]Method is POST - this is cgi request [00:19:23]url: /json_proto [00:19:23]query_string will be loaded in cgi processing [00:19:23]execute_cgi json_proto POST (null) [00:19:23]execute_cgi path=json_proto method=POST [00:19:23]POST find Content-Length [00:19:23]Host: 172.17.45.67:8080 [00:19:23]Content-Length: 264 [00:19:23]Content-Type: application/json [00:19:23] [00:19:23]POST finish read [00:19:23]Found Content-Length = 264 [00:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:23]execute_script... [00:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0442.\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440" } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:23]POST & json_proto [00:19:23]process_json_proto [00:19:23]json parsed OK: [00:19:23]protocol is kg_v1.0 [00:19:23]action value=close_shift [00:19:23]process_action close_shift [00:19:23]cmd_close_shift [00:19:23]MH_GetDate [00:19:23]Write to MH i2c: F0 00 00 CC 2F EA [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 09 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 09 00 CC 2F 00 0D 84 C6 66 5F 7F 2B 66 1F [00:19:23]GetLastDocTimeStamp 1724285905 [00:19:23]current date 1724285965 [00:19:23]FM_GetShiftState [00:19:23]SAM_PROTO_GetShiftState [00:19:23]wFMCommunicate request_size=4 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 13 01 00 [00:19:23]Write to MH i2c: E2 08 00 CD 2F 80 13 01 00 00 00 00 00 79 [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 0E 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 0E 00 CD 2F 00 09 00 01 13 36 C5 66 00 00 00 00 90 00 F9 [00:19:23]RAPDU: 09 00 01 13 36 C5 66 00 00 00 00 90 00 [00:19:23]wFMCommunicate OK [00:19:23]SAM_PROTO_GetShiftState done [00:19:23]FM_GetShiftState done [00:19:23]KKMCreateCloseShiftDocument [00:19:23]Load OK [00:19:23]Malloc new data [00:19:23]MH_GetDate [00:19:23]Write to MH i2c: F0 00 00 CE 2F EC [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 09 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: F0 09 00 CE 2F 00 0D 84 C6 66 5F 7F 2B 66 21 [00:19:23]Malloc new data [00:19:23]Malloc new data [00:19:23]Malloc new data [00:19:23]Malloc new data [00:19:23]KKMCreateCloseShiftDocument OK [00:19:23]KKMSetCloseShiftData OK [00:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:19:23]tlvbuf is 00CC8A50 [00:19:23]KKMLoadAndSignCloseShiftData [00:19:23]SAM_PROTO_ProcessDocument [00:19:23]wFMCommunicate request_size=9 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 15 01 00 04 05 00 47 00 [00:19:23]Write to MH i2c: E2 0C 00 CF 2F 80 15 01 00 04 00 05 00 47 00 00 00 D1 [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 CF 2F 00 90 00 72 [00:19:23]RAPDU: 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=23 [00:19:23]MH_SAM_APDU [00:19:23]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:19:23]Write to MH i2c: E2 1A 00 D0 2F 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 74 [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 D0 2F 00 90 00 73 [00:19:23]RAPDU: 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=30 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 [00:19:23]Write to MH i2c: E2 21 00 D1 2F 80 15 02 00 19 00 FD 03 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 00 00 3E [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 D1 2F 00 90 00 74 [00:19:23]RAPDU: 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=13 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 15 02 00 08 F4 03 04 00 0D 84 C6 66 [00:19:23]Write to MH i2c: E2 10 00 D2 2F 80 15 02 00 08 00 F4 03 04 00 0D 84 C6 66 00 00 49 [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:23]Read from MH i2c: E2 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 [00:19:23]MH_I2C_Read... [00:19:23]Read from MH i2c: E2 03 00 D2 2F 00 90 00 75 [00:19:23]RAPDU: 90 00 [00:19:23]wFMCommunicate OK [00:19:23]wFMCommunicate request_size=25 [00:19:23]MH_SAM_APDU [00:19:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:19:23]Write to MH i2c: E2 1C 00 D3 2F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 EA [00:19:23]Write i2c OK [00:19:23]MH_I2C_Read... [00:19:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 03 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 03 00 D3 2F 00 90 00 76 [00:19:24]RAPDU: 90 00 [00:19:24]wFMCommunicate OK [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 15 03 00 [00:19:24]Write to MH i2c: E2 08 00 D4 2F 80 15 03 00 00 00 00 00 84 [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 D4 2F 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 37 36 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 EF [00:19:24]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 37 36 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:19:24]wFMCommunicate OK [00:19:24]SAM_PROTO_ProcessDocument answer len = 1268 [00:19:24]SAM_PROTO_ProcessDocument remain to read = 1020 [00:19:24]wFMCommunicate request_size=4 [00:19:24]MH_SAM_APDU [00:19:24]CAPDU: 80 17 00 00 [00:19:24]Write to MH i2c: E2 08 00 D5 2F 80 17 00 00 00 00 00 00 84 [00:19:24]Write i2c OK [00:19:24]MH_I2C_Read... [00:19:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:24]Read from MH i2c: E2 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 [00:19:24]MH_I2C_Read... [00:19:24]Read from MH i2c: E2 FD 00 D5 2F 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 D8 [00:19:25]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:19:25]wFMCommunicate OK [00:19:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:25]SAM_PROTO_ProcessDocument remain to read = 770 [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 D6 2F 80 17 00 00 00 00 00 00 85 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 D6 2F 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 E7 [00:19:25]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:19:25]wFMCommunicate OK [00:19:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:25]SAM_PROTO_ProcessDocument remain to read = 520 [00:19:25]wFMCommunicate request_size=4 [00:19:25]MH_SAM_APDU [00:19:25]CAPDU: 80 17 00 00 [00:19:25]Write to MH i2c: E2 08 00 D7 2F 80 17 00 00 00 00 00 00 86 [00:19:25]Write i2c OK [00:19:25]MH_I2C_Read... [00:19:25]OFD Sender: No OFD packet to send [00:19:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:25]Read from MH i2c: E2 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 [00:19:25]MH_I2C_Read... [00:19:25]Read from MH i2c: E2 FD 00 D7 2F 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 0E [00:19:26]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:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:26]SAM_PROTO_ProcessDocument remain to read = 270 [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 17 00 00 [00:19:26]Write to MH i2c: E2 08 00 D8 2F 80 17 00 00 00 00 00 00 87 [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 FD 00 D8 2F 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 51 [00:19:26]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:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:26]SAM_PROTO_ProcessDocument remain to read = 20 [00:19:26]wFMCommunicate request_size=4 [00:19:26]MH_SAM_APDU [00:19:26]CAPDU: 80 17 00 00 [00:19:26]Write to MH i2c: E2 08 00 D9 2F 80 17 00 00 00 00 00 00 88 [00:19:26]Write i2c OK [00:19:26]MH_I2C_Read... [00:19:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:19:26]Read from MH i2c: E2 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 17 00 [00:19:26]MH_I2C_Read... [00:19:26]Read from MH i2c: E2 17 00 D9 2F 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 74 55 04 88 60 59 90 00 D7 [00:19:26]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 74 55 04 88 60 59 90 00 [00:19:26]wFMCommunicate OK [00:19:26]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:19:26]SAM_PROTO_ProcessDocument done [00:19:26]1209 (1) - 1.0 - номер версии ФФД [00:19:26]1041 (16) - 0000000000871776 - номер ФМ [00:19:26]1040 (4) - 140433 - номер ФД [00:19:26]1038 (4) - 454 - номер смены [00:19:26]1118 (4) - 449 - количество кассовых чеков за смену [00:19:26]1111 (4) - 451 - общее количество ФД за смену [00:19:26]1194 (1197) - счетчики итогов смены [00:19:26] 1134 (4) - 449 - количество чеков со всеми признаками расчетов [00:19:26] 1129 (158) - счетчики операций «приход» [00:19:26] 1135 (4) - 449 - количество чеков по признаку расчетов [00:19:26] 1201 (4) - 281969.00 - общая итоговая сумма в чеках [00:19:26] 1136 (4) - 263319.00 - итоговая сумма в чеках наличными [00:19:26] 1138 (3) - 18650.00 - итоговая сумма в чеках безналичными [00:19:26] 1024 (123) - суммы налогов [00:19:26] 1006 (9) - суммы НДС [00:19:26] 1010 (1) - 0% - код ставки НДС [00:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:26] 1006 (12) - суммы НДС [00:19:26] 1010 (1) - 12% - код ставки НДС [00:19:26] 1011 (3) - 29955.72 - сумма НДС по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (12) - суммы НСП [00:19:26] 1014 (1) - 1% - код ставки НСП [00:19:26] 1015 (3) - 2496.41 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 2% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 3% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 5% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0,50% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 1,50% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1130 (141) - счетчики операций «возврат прихода» [00:19:26] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:26] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:26] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:26] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:26] 1024 (117) - суммы налогов [00:19:26] 1006 (9) - суммы НДС [00:19:26] 1010 (1) - 0% - код ставки НДС [00:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:26] 1006 (9) - суммы НДС [00:19:26] 1010 (1) - 12% - код ставки НДС [00:19:26] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 1% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 2% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 3% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 5% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:26] 1014 (1) - 0,50% - код ставки НСП [00:19:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:26] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 1,50% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1131 (141) - счетчики операций «расход» [00:19:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:27] 1024 (117) - суммы налогов [00:19:27] 1006 (9) - суммы НДС [00:19:27] 1010 (1) - 0% - код ставки НДС [00:19:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:27] 1006 (9) - суммы НДС [00:19:27] 1010 (1) - 12% - код ставки НДС [00:19:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 0% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 1% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 2% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 3% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 5% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 0,50% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 1,50% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1132 (141) - счетчики операций «возврат расхода» [00:19:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:27] 1024 (117) - суммы налогов [00:19:27] 1006 (9) - суммы НДС [00:19:27] 1010 (1) - 0% - код ставки НДС [00:19:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:27] 1006 (9) - суммы НДС [00:19:27] 1010 (1) - 12% - код ставки НДС [00:19:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 0% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 1% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 2% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 3% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 5% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 0,50% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1007 (9) - суммы НСП [00:19:27] 1014 (1) - 1,50% - код ставки НСП [00:19:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:27] 1133 (588) - - счетчики коррекции - не используются [00:19:27]1077 (6) - 127908497088601 - ФПД [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1209 (04B9) [00:19:27]Malloc new data [00:19:27]Processing tag 1041 (0411) [00:19:27]Processing tag 1040 (0410) [00:19:27]Malloc new data [00:19:27]Processing tag 1038 (040E) [00:19:27]Malloc new data [00:19:27]Processing tag 1118 (045E) [00:19:27]Malloc new data [00:19:27]Processing tag 1111 (0457) [00:19:27]Malloc new data [00:19:27]Processing tag 1194 (04AA) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1134 (046E) [00:19:27]Malloc new data [00:19:27]Processing tag 1129 (0469) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1135 (046F) [00:19:27]Malloc new data [00:19:27]Processing tag 1201 (04B1) [00:19:27]Malloc new data [00:19:27]Processing tag 1136 (0470) [00:19:27]Malloc new data [00:19:27]Processing tag 1138 (0472) [00:19:27]Malloc new data [00:19:27]Processing tag 1024 (0400) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1130 (046A) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1135 (046F) [00:19:27]Malloc new data [00:19:27]Processing tag 1201 (04B1) [00:19:27]Malloc new data [00:19:27]Processing tag 1136 (0470) [00:19:27]Malloc new data [00:19:27]Processing tag 1138 (0472) [00:19:27]Malloc new data [00:19:27]Processing tag 1024 (0400) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1131 (046B) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1135 (046F) [00:19:27]Malloc new data [00:19:27]Processing tag 1201 (04B1) [00:19:27]Malloc new data [00:19:27]Processing tag 1136 (0470) [00:19:27]Malloc new data [00:19:27]Processing tag 1138 (0472) [00:19:27]Malloc new data [00:19:27]Processing tag 1024 (0400) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1132 (046C) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1135 (046F) [00:19:27]Malloc new data [00:19:27]Processing tag 1201 (04B1) [00:19:27]Malloc new data [00:19:27]Processing tag 1136 (0470) [00:19:27]Malloc new data [00:19:27]Processing tag 1138 (0472) [00:19:27]Malloc new data [00:19:27]Processing tag 1024 (0400) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1006 (03EE) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1010 (03F2) [00:19:27]Malloc new data [00:19:27]Processing tag 1011 (03F3) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:27]Processing tag 1007 (03EF) [00:19:27]Load OK [00:19:27]SetTLVBufToDocument [00:19:27]Processing tag 1014 (03F6) [00:19:27]Malloc new data [00:19:27]Processing tag 1015 (03F7) [00:19:27]Malloc new data [00:19:27]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1007 (03EF) [00:19:28]Load OK [00:19:28]SetTLVBufToDocument [00:19:28]Processing tag 1014 (03F6) [00:19:28]Malloc new data [00:19:28]Processing tag 1015 (03F7) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]SetTLVBufToDocument err=0 [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1133 (046D) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Processing tag 1077 (0435) [00:19:28]Malloc new data [00:19:28]SetTLVBufToDocument err=0 [00:19:28]Malloc new data [00:19:28]SAM_PROTO_GetFMData [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 13 03 00 [00:19:28]Write to MH i2c: E2 08 00 DA 2F 80 13 03 00 00 00 00 00 88 [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:28]Read from MH i2c: E2 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 [00:19:28]MH_I2C_Read... [00:19:28]Read from MH i2c: E2 FD 00 DA 2F 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 CF [00:19:28]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:19:28]wFMCommunicate OK [00:19:28]wFMCommunicate request_size=4 [00:19:28]MH_SAM_APDU [00:19:28]CAPDU: 80 17 00 00 [00:19:28]Write to MH i2c: E2 08 00 DB 2F 80 17 00 00 00 00 00 00 8A [00:19:28]Write i2c OK [00:19:28]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 DB 2F 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 8F [00:19:29]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=4 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 17 00 00 [00:19:29]Write to MH i2c: E2 08 00 DC 2F 80 17 00 00 00 00 00 00 8B [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:29]Read from MH i2c: E2 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 [00:19:29]MH_I2C_Read... [00:19:29]Read from MH i2c: E2 FD 00 DC 2F 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [00:19:29]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:29]wFMCommunicate OK [00:19:29]wFMCommunicate request_size=4 [00:19:29]MH_SAM_APDU [00:19:29]CAPDU: 80 17 00 00 [00:19:29]Write to MH i2c: E2 08 00 DD 2F 80 17 00 00 00 00 00 00 8C [00:19:29]Write i2c OK [00:19:29]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 FD 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 FD 00 DD 2F 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [00:19:30]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:19:30]wFMCommunicate OK [00:19:30]wFMCommunicate request_size=4 [00:19:30]MH_SAM_APDU [00:19:30]CAPDU: 80 17 00 00 [00:19:30]Write to MH i2c: E2 08 00 DE 2F 80 17 00 00 00 00 00 00 8D [00:19:30]Write i2c OK [00:19:30]MH_I2C_Read... [00:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:19:30]Read from MH i2c: E2 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 E1 00 [00:19:30]MH_I2C_Read... [00:19:30]Read from MH i2c: E2 E1 00 DE 2F 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7B [00:19:30]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:30]wFMCommunicate OK [00:19:30]SAM_PROTO_GetFMData done [00:19:30]Malloc new data [00:19:30]Malloc new data [00:19:30]Malloc new data [00:19:30]Malloc new data [00:19:30]KKMLoadAndSignCloseShiftData err=0 [00:19:30]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Ст.Оператор 22.08.2024 00:19 Смена: 454 РНМ: 0000000000092569 ЗНМ: 0300000067 СНО: Общий режим Чеков за смену: 449 ФД за смену: 451 Всего чеков: 449 ИТОГИ ПРИХОД Чеков: 449 Общий итог: 281969.00 Итого наличными: 263319.00 Итого безнал.: 18650.00 НДС 0% : 0.00 НДС 12% : 29955.72 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2496.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 263319.00 НС Приход: 96281879.71 НС Возвр.Прихода: 333741.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 140433 ФМ: 0000000000871776 ФПД: 127908497088601 [00:19:30]StoreToDocumentArchive [00:19:30]shift 454 fd 140433 [00:19:30]save to /storage/0454/doc_00140433 [00:19:30]save last doc name /storage/0454/doc_00140433 to /storage/kkm_last_doc_name [00:19:30]OFD Sender: No OFD packet to send [00:19:30]save OK [00:19:30]Clear old archive folders... [00:19:30]Remove dir /storage/0266 [00:19:30]opendir ok [00:19:30]file . [00:19:30]file .. [00:19:30]file doc_1724285913 [00:19:30]remove file /storage/0266/doc_1724285913 [00:19:30]remove dir /storage/0266 [00:19:31]NVStorageSaveData kkm_registers [00:19:31]File name is /storage/kkm_registers [00:19:31]Write 24 bytes [00:19:31]NVStorageSaveData done [00:19:31]NVStorageSaveData kkm_registers [00:19:31]File name is /storage/kkm_registers [00:19:31]Write 24 bytes [00:19:31]NVStorageSaveData done [00:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:19:31]tlvbuf is 00D932C0 [00:19:31]SAM_PROTO_ClearQueue [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 09 00 00 [00:19:31]Write to MH i2c: E2 08 00 DF 2F 80 09 00 00 00 00 00 00 80 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 DF 2F 00 90 00 82 [00:19:31]RAPDU: 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_ClearQueue done [00:19:31]KKMCreateOFDPacket [00:19:31]OFDProtocolAddRootSTLVToBuf [00:19:31]FM_MakeSignedData [00:19:31]FM_MakeSignedData [00:19:31]SAM_PROTO_SignData [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 0D 01 02 [00:19:31]Write to MH i2c: E2 08 00 E0 2F 80 0D 01 02 00 00 00 00 88 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 E0 2F 00 90 00 83 [00:19:31]RAPDU: 90 00 [00:19:31]wFMCommunicate OK [00:19:31]wFMCommunicate request_size=255 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 0D 02 02 FA 05 00 66 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 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F4 03 04 00 0D 84 C6 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 D8 04 6E 04 04 00 C1 01 00 00 69 04 A5 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 [00:19:31]Write to MH i2c: E2 02 01 E1 2F 80 0D 02 02 FA 00 05 00 66 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 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F4 03 04 00 0D 84 C6 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 D8 04 6E 04 04 00 C1 01 00 00 69 04 A5 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 00 00 83 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 03 00 E1 2F 00 90 00 84 [00:19:31]RAPDU: 90 00 [00:19:31]wFMCommunicate OK [00:19:31]wFMCommunicate request_size=255 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 0D 02 02 FA 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 29 CF 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:19:31]Write to MH i2c: E2 02 01 E2 2F 80 0D 02 02 FA 00 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 29 CF 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 F2 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 03 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [00:19:32]RAPDU: 90 00 [00:19:32]wFMCommunicate OK [00:19:32]wFMCommunicate request_size=255 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 0D 02 02 FA 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 [00:19:32]Write to MH i2c: E2 02 01 E3 2F 80 0D 02 02 FA 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 00 00 52 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 03 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [00:19:32]RAPDU: 90 00 [00:19:32]wFMCommunicate OK [00:19:32]wFMCommunicate request_size=255 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 0D 02 02 FA 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:19:33]Write to MH i2c: E2 02 01 E4 2F 80 0D 02 02 FA 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 00 52 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 03 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [00:19:33]RAPDU: 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=255 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:33]Write to MH i2c: E2 02 01 E5 2F 80 0D 02 02 FA 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 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 00 00 18 [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 03 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [00:19:34]RAPDU: 90 00 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=141 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 74 55 04 88 60 59 [00:19:34]Write to MH i2c: E2 90 00 E6 2F 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 74 55 04 88 60 59 00 00 9A [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 03 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [00:19:34]RAPDU: 90 00 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 0D 03 02 [00:19:34]Write to MH i2c: E2 08 00 E7 2F 80 0D 03 02 00 00 00 00 91 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0B 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 0B 00 E7 2F 00 89 75 81 8D 56 A1 95 CF 90 00 F9 [00:19:34]RAPDU: 89 75 81 8D 56 A1 95 CF 90 00 [00:19:34]wFMCommunicate OK [00:19:34]SAM_PROTO_SignData done [00:19:34]FM_MakeSignedData done [00:19:34]CreateOFDProtocolMessage [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 11 00 00 [00:19:34]Write to MH i2c: E2 08 00 E8 2F 80 11 00 00 00 00 00 00 91 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 17 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 17 00 E8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 E8 [00:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:19:34]wFMCommunicate OK [00:19:34]CreateOFDProtocolMessage done [00:19:34]OFDSenderStorePacket 140433 [00:19:34]StoreOFDPacket docnum=140433 [00:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 7A 05 00 00 1C 96 72 05 16 F0 5A 05 01 00 05 00 66 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 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F4 03 04 00 0D 84 C6 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 D8 04 6E 04 04 00 C1 01 00 00 69 04 A5 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 91 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 74 55 04 88 60 59 89 75 81 8D 56 A1 95 CF [00:19:35]CheckFolder [00:19:35]dirname=/storage/ofd_packets [00:19:35]CheckFolder done [00:19:35]ProducePacketName [00:19:35]name=ofd_packets/00140433 [00:19:35]NVStorageSaveData ofd_packets/00140433 [00:19:35]File name is /storage/ofd_packets/00140433 [00:19:35]Write 1432 bytes [00:19:35]NVStorageSaveData done [00:19:35]OFDSenderStorePacket done [00:19:35]KKMCreateOFDPacket done [00:19:35]NVStorageSaveData kkm_last_timestamp [00:19:35]File name is /storage/kkm_last_timestamp [00:19:35]Write 4 bytes [00:19:35]NVStorageSaveData done [00:19:35]ExternCall_PrintAddStr [00:19:35]wPrintStart [00:19:35]Write to MH i2c: 01 00 00 E9 2F 18 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: 01 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: 01 07 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: 01 07 00 E9 2F 00 00 00 00 00 FF 0F 2D [00:19:35]RasterBufferAndPrint [00:19:35]line Отчет о закрытии смены [00:19:35]line ФФД: 1.0 [00:19:35]line ИНН: 02508201610067 [00:19:35]line Кассир: Ст.Оператор [00:19:35]line 22.08.2024 00:19 [00:19:35]line Смена: 454 [00:19:35]line РНМ: 0000000000092569 [00:19:35]line ЗНМ: 0300000067 [00:19:35]line СНО: Общий режим [00:19:35]line Чеков за смену: 449 [00:19:35]line ФД за смену: 451 [00:19:35]line Всего чеков: 449 [00:19:35]line ИТОГИ ПРИХОД [00:19:35]line Чеков: 449 [00:19:35]line Общий итог: 281969.00 [00:19:35]line Итого наличными: 263319.00 [00:19:35]OFD Sender: Processing packet 140433 [packets to send 137, broken 136] [00:19:35]ProducePacketName [00:19:35]name=ofd_packets/00140433 [00:19:35]OFD Sender: To server: pG, [00:19:35]CommunicateWithHost lk.salyk.kg:30040 [00:19:35]ConnectInit lk.salyk.kg [00:19:35]line Итого безнал.: 18650.00 [00:19:35]line НДС 0% : 0.00 [00:19:35]line НДС 12% : 29955.72 [00:19:35]line НСП 0% : 0.00 [00:19:35]line НСП 1,50% : 0.00 [00:19:35]line НСП 0,50% : 0.00 [00:19:35]line НСП 5% : 0.00 [00:19:35]line НСП 3% : 0.00 [00:19:35]line НСП 2% : 0.00 [00:19:35]line НСП 1% : 2496.41 [00:19:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:35]line Чеков: 0 [00:19:35]line Общий итог: 0.00 [00:19:35]line Итого наличными: 0.00 [00:19:35]line Итого безнал.: 0.00 [00:19:35]line НДС 0% : 0.00 [00:19:35]line НДС 12% : 0.00 [00:19:35]line НСП 0% : 0.00 [00:19:35]line НСП 1,50% : 0.00 [00:19:35]line НСП 0,50% : 0.00 [00:19:35]line НСП 5% : 0.00 [00:19:35]line НСП 3% : 0.00 [00:19:35]line НСП 2% : 0.00 [00:19:35]line НСП 1% : 0.00 [00:19:35]line ИТОГИ РАСХОД [00:19:35]line Чеков: 0 [00:19:35]line Общий итог: 0.00 [00:19:35]line Итого наличными: 0.00 [00:19:35]line Итого безнал.: 0.00 [00:19:35]line НДС 0% : 0.00 [00:19:35]line НДС 12% : 0.00 [00:19:35]line НСП 0% : 0.00 [00:19:35]line НСП 1,50% : 0.00 [00:19:35]line НСП 0,50% : 0.00 [00:19:35]line НСП 5% : 0.00 [00:19:35]line НСП 3% : 0.00 [00:19:35]line НСП 2% : 0.00 [00:19:35]line НСП 1% : 0.00 [00:19:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:35]line Чеков: 0 [00:19:35]line Общий итог: 0.00 [00:19:35]line Итого наличными: 0.00 [00:19:35]line Итого безнал.: 0.00 [00:19:35]line НДС 0% : 0.00 [00:19:35]line НДС 12% : 0.00 [00:19:35]line НСП 0% : 0.00 [00:19:35]line НСП 1,50% : 0.00 [00:19:35]line НСП 0,50% : 0.00 [00:19:35]line НСП 5% : 0.00 [00:19:35]line НСП 3% : 0.00 [00:19:35]line НСП 2% : 0.00 [00:19:35]line НСП 1% : 0.00 [00:19:35]line Сумма внесений: 0.00 [00:19:35]line Сумма выплат: 0.00 [00:19:35]line Нал. в кассе: 263319.00 [00:19:35]line НС Приход: 96281879.71 [00:19:35]line НС Возвр.Прихода: 333741.00 [00:19:35]line НС Расход: 0.00 [00:19:35]line НС Возвр.Расхода: 0.00 [00:19:35]line ФД: 140433 [00:19:35]line ФМ: 0000000000871776 [00:19:35]line ФПД: 127908497088601 [00:19:35]written 0, free lines is 4095 [00:19:35]Connected sock=10 [00:19: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 37 36 7A 05 00 00 1C 96 72 05 16 F0 5A 05 01 00 05 00 66 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 15 00 D0 A1 D1 82 2E D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 F4 03 04 00 0D 84 C6 66 0E 04 04 00 C6 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 AA 04 D8 04 6E 04 04 00 C1 01 00 00 69 04 A5 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 Write to MH i2c: 09 01 00 00 F6 00 03 39 01 30 00 69 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 [00:19:36]00 00 Write i2c OK [00:19:36]EF MH_I2C_Read... [00:19:36]03 Read from MH i2c: 09 01 00 [00:19:36]F6 MH_I2C_Read... [00:19:36]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 04 00 F7 [00:19:36]03 MH_I2C_Read... [00:19:36]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 39 00 30 06 00 F7 00 03 00 00 00 00 00 7A 67 04 0C 8D E3 00 [00:19:36]6F RasterBufferAndPrint [00:19:36]04 line [00:19:36]04 line [00:19:36]00 line [00:19:36]00 line [00:19:36]00 line [00:19:36]00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 written 0, free lines is 3303 [00:19:36]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 MH_Cut [00:19:36]EE Write to MH i2c: 03 D1 09 01 00 00 F2 40 03 30 01 01 00 42 01 [00:19:36]F3 03 Write i2c OK [00:19:36]00 MH_I2C_Read... [00:19:36]00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 00 D1 F6 [00:19:36]03 MH_I2C_Read... [00:19:36]01 Read from MH i2c: 00 D1 04 01 F7 00 03 [00:19:36]00 MH_I2C_Read... [00:19:36]00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 05 D1 F7 01 03 00 00 40 00 30 EF 00 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 41 00 [00:19:36]91 Write to MH i2c: 24 01 02 00 00 00 11 41 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 30 37 71 37 [00:19:36]36 35 04 06 00 74 55 04 88 60 59 89 75 81 8D 56 A1 95 CF [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19: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 37 36 4F 00 00 00 08 4E 47 00 96 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 37 36 10 04 04 00 91 24 02 00 F4 03 04 00 A7 2A C6 66 B6 04 01 00 00 FE CF 1D 6A A1 E9 EF A0 [00:19:37]CommunicateWithHost err = 0 [00:19:37]CheckOFDResponse [00:19:37]*** Cut start [00:19:37]1017 (14) - 77093643461234 [00:19:37]1041 (16) - 0000000000871776 [00:19:37]*** Partial cut [00:19:37]1040 (4) - 140433 [00:19:37]*** CUTSNS_PIN = 1 [00:19:37]1012 (4) - 21.08.2024 17:57 [00:19:37]*** CUTSNS_PIN = 0 [00:19:37]1206 (1) - 0 [00:19:37]OFD Sender: Remove packet 140433 [00:19:37]ProducePacketName [00:19:37]name=ofd_packets/00140433 [00:19:37]NVStorageDeleteData [00:19:37]*** Brake cut motor [00:19:37]Read from MH i2c: 01 [00:19:37]MH_I2C_Read... [00:19:37]*** Stop cut motor [00:19:37]*** Cut end [00:19:37]Read from MH i2c: 01 07 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [00:19:37]process_action close_shift done [00:19:37]requested_data is exist [00:19:37]produce_requested_data [00:19:37]requested_item fd.num is exist - process it [00:19:37]SAM_PROTO_GetFieldsCounters [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 13 00 00 [00:19:37]Write to MH i2c: E2 08 00 42 30 80 13 00 00 00 00 00 00 EE [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 62 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 62 00 42 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [00:19: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 OFD Sender: No OFD packet to send [00:19:38]01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:38]wFMCommunicate OK [00:19:38]SAM_PROTO_GetFieldsCounters done [00:19:38]requested_item shift.num is exist - process it [00:19:38]requested_item shift.opened is exist - process it [00:19:38]req_shift_opened [00:19:38]FM_GetShiftState [00:19:38]SAM_PROTO_GetShiftState [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 13 01 00 [00:19:38]Write to MH i2c: E2 08 00 43 30 80 13 01 00 00 00 00 00 F0 [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:38]E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 43 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [00:19:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:38]wFMCommunicate OK [00:19:38]SAM_PROTO_GetShiftState done [00:19:38]FM_GetShiftState done [00:19:38]req_shift_opened done [00:19:38]requested_item shift.open_date is exist - process it [00:19:38]req_shift_open_date [00:19:38]FM_GetShiftState [00:19:38]SAM_PROTO_GetShiftState [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 13 01 00 [00:19:38]Write to MH i2c: E2 08 00 44 30 80 13 01 00 00 00 00 00 F1 [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 0E 00 44 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FC [00:19:38]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:38]wFMCommunicate OK [00:19:38]SAM_PROTO_GetShiftState done [00:19:38]FM_GetShiftState done [00:19:38]req_shift_open_date done [00:19:38]produce_requested_data done [00:19:38]produce_requested_data return {"fd.num":140433,"shift.num":454,"shift.opened":0,"shift.open_date":0} [00:19:38]process_action_free close_shift [00:19:38]json_value_free [00:19:38]json_value_free done [00:19:38]process_json_proto returns [00:19:38]Send response to host [00:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":140433,"shift.num":454,"shift.opened":0,"shift.open_date":0}}} [00:19:38]free response buf [00:19:38]execute_script done [00:19:38]execute_script returns [00:19:38]free content buf [00:19:38]Sock 7.Close socket [00:19:38]Sock 7.Thread stoped [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:03]int [00:20:03]Write to MH i2c: 01 00 00 45 30 75 [00:20:03]*** FLAG_PRN_KEY set [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 45 30 00 08 00 00 00 FF 0F 92 [00:20:03]state=0 [00:20:03]Key pressed [00:20:03]Feed [00:20:03]Write to MH i2c: D8 00 00 46 30 4D [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D8 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D8 01 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: D8 01 00 46 30 00 4E [00:20:03]int line is 0 - check status [00:20:03]Write to MH i2c: 01 00 00 47 30 77 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 47 30 00 48 00 00 00 3C 00 02 [00:20:03]state=2 [00:20:03]Key pressed [00:20:03]int [00:20:03]Write to MH i2c: 01 00 00 48 30 78 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: 01 07 00 48 30 00 48 00 00 00 3C 00 03 [00:20:03]state=2 [00:20:03]Key pressed [00:20:04]int [00:20:04]Write to MH i2c: 01 00 00 49 30 79 [00:20:04]*** FLAG_PRN_KEY reset [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: 01 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: 01 07 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: 01 07 00 49 30 00 00 00 00 00 FF 0F 8E [00:20:04]state=2 [00:20:04]Stop feed [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:06]accept exits with 9 [00:32:06]New connection [00:32:06]New thread 3067612516 created [00:32:06]Thread 3067469156 joined [00:32:06]Waiting for new connection... [00:32:06] Sock 9.Parse request [00:32:06]Sock 9.Check first char [00:32:06]Sock 9.First char is OK [00:32:06]request: POST /json_proto HTTP/1.0 [00:32:06]Method: POST [00:32:06]URL: /json_proto [00:32:06]Method is POST - this is cgi request [00:32:06]url: /json_proto [00:32:06]query_string will be loaded in cgi processing [00:32:06]execute_cgi json_proto POST (null) [00:32:06]execute_cgi path=json_proto method=POST [00:32:06]POST find Content-Length [00:32:06]Host: 172.17.45.67:8080 [00:32:06]Content-Length: 215 [00:32:06]Content-Type: application/json [00:32:06] [00:32:06]POST finish read [00:32:06]Found Content-Length = 215 [00:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:06]execute_script... [00:32:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:06]POST & json_proto [00:32:06]process_json_proto [00:32:06]json parsed OK: [00:32:06]protocol is kg_v1.0 [00:32:06]action value=get_value [00:32:06]process_action get_value [00:32:06]cmd_get_value [00:32:06]process_action get_value done [00:32:06]requested_data is exist [00:32:06]produce_requested_data [00:32:06]requested_item kkm.sn is exist - process it [00:32:06]requested_item kkm.ver is exist - process it [00:32:06]requested_item fm.sn is exist - process it [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 11 00 00 [00:32:06]Write to MH i2c: E2 08 00 4A 30 80 11 00 00 00 00 00 00 F4 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 17 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 17 00 4A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 4B [00:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:32:06]wFMCommunicate OK [00:32:06]requested_item fd.num is exist - process it [00:32:06]SAM_PROTO_GetFieldsCounters [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 00 00 [00:32:06]Write to MH i2c: E2 08 00 4B 30 80 13 00 00 00 00 00 00 F7 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 62 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 62 00 4B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 91 24 02 00 0E 04 04 00 C6 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_GetFieldsCounters done [00:32:06]requested_item shift.num is exist - process it [00:32:06]requested_item shift.opened is exist - process it [00:32:06]req_shift_opened [00:32:06]FM_GetShiftState [00:32:06]SAM_PROTO_GetShiftState [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 01 00 [00:32:06]Write to MH i2c: E2 08 00 4C 30 80 13 01 00 00 00 00 00 F9 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 4C 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:32:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_GetShiftState done [00:32:06]FM_GetShiftState done [00:32:06]req_shift_opened done [00:32:06]requested_item shift.open_date is exist - process it [00:32:06]req_shift_open_date [00:32:06]FM_GetShiftState [00:32:06]SAM_PROTO_GetShiftState [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 01 00 [00:32:06]Write to MH i2c: E2 08 00 4D 30 80 13 01 00 00 00 00 00 FA [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 4D 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 05 [00:32:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_GetShiftState done [00:32:06]FM_GetShiftState done [00:32:06]req_shift_open_date done [00:32:06]produce_requested_data done [00:32:06]produce_requested_data return {"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140433,"shift.num":454,"shift.opened":0,"shift.open_date":0} [00:32:06]process_action_free get_value [00:32:06]json_value_free [00:32:06]json_value_free done [00:32:06]process_json_proto returns [00:32:06]Send response to host [00:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000067","kkm.ver":"001","fm.sn":"0000000000871776","fd.num":140433,"shift.num":454,"shift.opened":0,"shift.open_date":0}}} [00:32:06]free response buf [00:32:06]execute_script done [00:32:06]execute_script returns [00:32:06]free content buf [00:32:06]Sock 9.Close socket [00:32:06]Sock 9.Thread stoped [00:32:06]accept exits with 7 [00:32:06]New connection [00:32:06]New thread 3067469156 created [00:32:06]Thread 3067612516 joined [00:32:06]Waiting for new connection... [00:32:06] Sock 7.Parse request [00:32:06]Sock 7.Check first char [00:32:06]Sock 7.First char is OK [00:32:06]request: POST /json_proto HTTP/1.0 [00:32:06]Method: POST [00:32:06]URL: /json_proto [00:32:06]Method is POST - this is cgi request [00:32:06]url: /json_proto [00:32:06]query_string will be loaded in cgi processing [00:32:06]execute_cgi json_proto POST (null) [00:32:06]execute_cgi path=json_proto method=POST [00:32:06]POST find Content-Length [00:32:06]Host: 172.17.45.67:8080 [00:32:06]Content-Length: 331 [00:32:06]Content-Type: application/json [00:32:06] [00:32:06]POST finish read [00:32:06]Found Content-Length = 331 [00:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:06]execute_script... [00:32: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:32:07]POST & json_proto [00:32:07]process_json_proto [00:32:07]json parsed OK: [00:32:07]protocol is kg_v1.0 [00:32:07]action value=get_value [00:32:07]process_action get_value [00:32:07]cmd_get_value [00:32:07]process_action get_value done [00:32:07]requested_data is exist [00:32:07]produce_requested_data [00:32:07]requested_item fm.sale.total is exist - process it [00:32:07]SAM_PROTO_GetFMData [00:32:07]wFMCommunicate request_size=4 [00:32:07]MH_SAM_APDU [00:32:07]CAPDU: 80 13 03 00 [00:32:07]Write to MH i2c: E2 08 00 4E 30 80 13 03 00 00 00 00 00 FD [00:32:07]Write i2c OK [00:32:07]MH_I2C_Read... [00:32:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:07]Read from MH i2c: E2 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 FD 00 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 FD 00 4E 30 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 44 [00:32:07]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:32:07]wFMCommunicate OK [00:32:07]wFMCommunicate request_size=4 [00:32:07]MH_SAM_APDU [00:32:07]CAPDU: 80 17 00 00 [00:32:07]Write to MH i2c: E2 08 00 4F 30 80 17 00 00 00 00 00 00 FF [00:32:07]Write i2c OK [00:32:07]MH_I2C_Read... [00:32:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:07]Read from MH i2c: E2 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 FD 00 [00:32:07]MH_I2C_Read... [00:32:07]Read from MH i2c: E2 FD 00 4F 30 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 04 [00:32:07]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:32:07]wFMCommunicate OK [00:32:07]wFMCommunicate request_size=4 [00:32:07]MH_SAM_APDU [00:32:07]CAPDU: 80 17 00 00 [00:32:07]Write to MH i2c: E2 08 00 50 30 80 17 00 00 00 00 00 00 00 [00:32:07]Write i2c OK [00:32:07]MH_I2C_Read... [00:32:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:08]Read from MH i2c: E2 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 FD 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 FD 00 50 30 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:32:08]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:08]wFMCommunicate OK [00:32:08]wFMCommunicate request_size=4 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 17 00 00 [00:32:08]Write to MH i2c: E2 08 00 51 30 80 17 00 00 00 00 00 00 01 [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:08]Read from MH i2c: E2 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 FD 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 FD 00 51 30 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:32:08]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:08]wFMCommunicate OK [00:32:08]wFMCommunicate request_size=4 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 17 00 00 [00:32:08]Write to MH i2c: E2 08 00 52 30 80 17 00 00 00 00 00 00 02 [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:32:08]Read from MH i2c: E2 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 E1 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 E1 00 52 30 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F0 [00:32:08]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:08]wFMCommunicate OK [00:32:08]SAM_PROTO_GetFMData done [00:32:08]requested_item fm.sale_refund.total is exist - process it [00:32:08]requested_item fm.buy.total is exist - process it [00:32:08]requested_item shift.sale.total is exist - process it [00:32:08]SAM_PROTO_GetShiftData [00:32:08]wFMCommunicate request_size=4 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 13 02 00 [00:32:08]Write to MH i2c: E2 08 00 53 30 80 13 02 00 00 00 00 00 01 [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 53 30 00 B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D1 [00:32:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 C1 01 00 00 69 04 9E 00 6F 04 04 00 C1 01 00 00 B1 04 04 00 24 40 AE 01 70 04 04 00 FC CA 91 01 72 04 03 00 28 75 1C 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 74 B5 2D 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 29 CF 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 17 00 00 [00:32:09]Write to MH i2c: E2 08 00 54 30 80 17 00 00 00 00 00 00 04 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]OFD Sender: No OFD packet to send [00:32:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 54 30 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 1D [00:32: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 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 17 00 00 [00:32:09]Write to MH i2c: E2 08 00 55 30 80 17 00 00 00 00 00 00 05 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 55 30 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BE [00:32: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 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 17 00 00 [00:32:09]Write to MH i2c: E2 08 00 56 30 80 17 00 00 00 00 00 00 06 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 FD 00 56 30 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7E [00:32: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 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 17 00 00 [00:32:09]Write to MH i2c: E2 08 00 57 30 80 17 00 00 00 00 00 00 07 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 CE 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 CE 00 57 30 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:32: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 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetShiftData done [00:32:10]requested_item shift.sale.total_cash is exist - process it [00:32:10]requested_item shift.sale_refund.total is exist - process it [00:32:10]requested_item shift.sale_refund.total_cash is exist - process it [00:32:10]requested_item shift.buy.total is exist - process it [00:32:10]requested_item shift.buy.total_cash is exist - process it [00:32:10]produce_requested_data done [00:32:10]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:32:10]process_action_free get_value [00:32:10]json_value_free [00:32:10]json_value_free done [00:32:10]process_json_proto returns [00:32:10]Send response to host [00:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.00,"fm.buy.total":0.00,"shift.sale.total":281969.00,"shift.sale.total_cash":263319.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:32:10]free response buf [00:32:10]execute_script done [00:32:10]execute_script returns [00:32:10]free content buf [00:32:10]Sock 7.Close socket [00:32:10]Sock 7.Thread stoped [00:32:10]accept exits with 9 [00:32:10]New connection [00:32:10]New thread 3067612516 created [00:32:10]Thread 3067469156 joined [00:32:10]Waiting for new connection... [00:32:10] Sock 9.Parse request [00:32:10]Sock 9.Check first char [00:32:10]Sock 9.First char is OK [00:32:10]request: POST /json_proto HTTP/1.0 [00:32:10]Method: POST [00:32:10]URL: /json_proto [00:32:10]Method is POST - this is cgi request [00:32:10]url: /json_proto [00:32:10]query_string will be loaded in cgi processing [00:32:10]execute_cgi json_proto POST (null) [00:32:10]execute_cgi path=json_proto method=POST [00:32:10]POST find Content-Length [00:32:10]Host: 172.17.45.67:8080 [00:32:10]Content-Length: 253 [00:32:10]Content-Type: application/json [00:32:10] [00:32:10]POST finish read [00:32:10]Found Content-Length = 253 [00:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:10]execute_script... [00:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041E\u043F\u0435\u0440\u0430\u0442\u043E\u0440 2 " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:10]POST & json_proto [00:32:10]process_json_proto [00:32:10]json parsed OK: [00:32:10]protocol is kg_v1.0 [00:32:10]action value=open_shift [00:32:10]process_action open_shift [00:32:10]cmd_open_shift [00:32:10]MH_GetDate [00:32:10]Write to MH i2c: F0 00 00 58 30 77 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 09 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 09 00 58 30 00 0C 87 C6 66 5F 7F 2B 66 AE [00:32:10]GetLastDocTimeStamp 1724285965 [00:32:10]current date 1724286732 [00:32:10]FM_GetShiftState [00:32:10]SAM_PROTO_GetShiftState [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 13 01 00 [00:32:10]Write to MH i2c: E2 08 00 59 30 80 13 01 00 00 00 00 00 06 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 59 30 00 09 00 00 00 00 00 00 00 00 00 00 90 00 11 [00:32:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetShiftState done [00:32:10]FM_GetShiftState done [00:32:10]KKMCreateOpenShiftDocument [00:32:10]Load OK [00:32:10]Malloc new data [00:32:10]MH_GetDate [00:32:10]Write to MH i2c: F0 00 00 5A 30 79 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 09 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: F0 09 00 5A 30 00 0C 87 C6 66 5F 7F 2B 66 B0 [00:32:10]Malloc new data [00:32:10]KKMCreateOpenShiftDocument OK [00:32:10]KKMSetOpenShiftData OK [00:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=188 [00:32:10]tlvbuf is 00DA8C90 [00:32:10]KKMLoadAndSignOpenShiftData [00:32:10]SAM_PROTO_ProcessDocument [00:32:10]wFMCommunicate request_size=9 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 01 00 04 02 00 BC 00 [00:32:10]Write to MH i2c: E2 0C 00 5B 30 80 15 01 00 04 00 02 00 BC 00 00 00 D0 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 5B 30 00 90 00 FF [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=23 [00:32:10]MH_SAM_APDU [00:32:10]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:32:10]Write to MH i2c: E2 1A 00 5C 30 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 01 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 5C 30 00 90 00 00 [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=28 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 [00:32:10]Write to MH i2c: E2 1F 00 5D 30 80 15 02 00 17 00 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 00 00 45 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 5D 30 00 90 00 01 [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=78 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 [00:32:10]Write to MH i2c: E2 51 00 5E 30 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 00 00 70 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 5E 30 00 90 00 02 [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=51 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:32:10]Write to MH i2c: E2 36 00 5F 30 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 BB [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 5F 30 00 90 00 03 [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=13 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 02 00 08 F4 03 04 00 0C 87 C6 66 [00:32:10]Write to MH i2c: E2 10 00 60 30 80 15 02 00 08 00 F4 03 04 00 0C 87 C6 66 00 00 DA [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 03 00 60 30 00 90 00 04 [00:32:10]RAPDU: 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=25 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 [00:32:11]Write to MH i2c: E2 1C 00 61 30 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 00 00 79 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [00:32:11]RAPDU: 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 15 03 00 [00:32:11]Write to MH i2c: E2 08 00 62 30 80 15 03 00 00 00 00 00 13 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 38 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 38 00 62 30 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 92 24 02 00 0E 04 04 00 C7 01 00 00 35 04 06 00 11 5A 3F B6 D7 83 90 00 1D [00:32:11]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 37 36 10 04 04 00 92 24 02 00 0E 04 04 00 C7 01 00 00 35 04 06 00 11 5A 3F B6 D7 83 90 00 [00:32:11]wFMCommunicate OK [00:32:11]SAM_PROTO_ProcessDocument answer len = 51 [00:32:11]SAM_PROTO_ProcessDocument done [00:32:11]SetTLVBufToDocument [00:32:11]Processing tag 1209 (04B9) [00:32:11]Malloc new data [00:32:11]Processing tag 1041 (0411) [00:32:11]Processing tag 1040 (0410) [00:32:11]Malloc new data [00:32:11]Processing tag 1038 (040E) [00:32:11]Malloc new data [00:32:11]Processing tag 1077 (0435) [00:32:11]Malloc new data [00:32:11]SetTLVBufToDocument err=0 [00:32:11]KKMLoadAndSignOpenShiftData store KKM data [00:32:11]KKMLoadAndSignOpenShiftData err=0 [00:32:11]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Оператор 2 Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 Место: АЗС № 136 "Партнер Нефть" 22.08.2024 00:32 Смена: 455 РНМ: 0000000000092569 ЗНМ: 0300000067 ФД: 140434 ФМ: 0000000000871776 ФПД: 19079313676163 [00:32:11]StoreToDocumentArchive [00:32:11]shift 455 fd 140434 [00:32:11]Create dir for shift 0455 [00:32:11]save to /storage/0455/doc_00140434 [00:32:11]save last doc name /storage/0455/doc_00140434 to /storage/kkm_last_doc_name [00:32:11]save OK [00:32:11]Clear old archive folders... [00:32:11]Remove dir /storage/0454 [00:32:11]opendir ok [00:32:11]file . [00:32:11]file .. [00:32:11]file doc_00139983 [00:32:11]remove file /storage/0454/doc_00139983 [00:32:11]file doc_00139984 [00:32:11]remove file /storage/0454/doc_00139984 [00:32:11]file doc_00139985 [00:32:11]remove file /storage/0454/doc_00139985 [00:32:11]file doc_00139986 [00:32:11]remove file /storage/0454/doc_00139986 [00:32:11]file doc_00139987 [00:32:11]remove file /storage/0454/doc_00139987 [00:32:11]file doc_00139988 [00:32:11]remove file /storage/0454/doc_00139988 [00:32:11]file doc_00139989 [00:32:11]remove file /storage/0454/doc_00139989 [00:32:11]file doc_00139990 [00:32:11]remove file /storage/0454/doc_00139990 [00:32:11]file doc_00139991 [00:32:11]remove file /storage/0454/doc_00139991 [00:32:11]file doc_00139992 [00:32:11]remove file /storage/0454/doc_00139992 [00:32:11]file doc_00139993 [00:32:11]remove file /storage/0454/doc_00139993 [00:32:11]file doc_00139994 [00:32:11]remove file /storage/0454/doc_00139994 [00:32:11]file doc_00139995 [00:32:11]remove file /storage/0454/doc_00139995 [00:32:11]file doc_00139996 [00:32:11]remove file /storage/0454/doc_00139996 [00:32:11]file doc_00139997 [00:32:11]remove file /storage/0454/doc_00139997 [00:32:11]file doc_00139998 [00:32:11]remove file /storage/0454/doc_00139998 [00:32:11]file doc_00139999 [00:32:11]remove file /storage/0454/doc_00139999 [00:32:11]file doc_00140000 [00:32:11]remove file /storage/0454/doc_00140000 [00:32:11]file doc_00140001 [00:32:11]remove file /storage/0454/doc_00140001 [00:32:11]file doc_00140002 [00:32:11]remove file /storage/0454/doc_00140002 [00:32:11]file doc_00140003 [00:32:11]remove file /storage/0454/doc_00140003 [00:32:11]file doc_00140004 [00:32:11]remove file /storage/0454/doc_00140004 [00:32:11]file doc_00140005 [00:32:11]remove file /storage/0454/doc_00140005 [00:32:11]file doc_00140006 [00:32:11]remove file /storage/0454/doc_00140006 [00:32:11]file doc_00140007 [00:32:11]remove file /storage/0454/doc_00140007 [00:32:11]file doc_00140008 [00:32:11]remove file /storage/0454/doc_00140008 [00:32:11]file doc_00140009 [00:32:11]remove file /storage/0454/doc_00140009 [00:32:11]file doc_00140010 [00:32:11]remove file /storage/0454/doc_00140010 [00:32:11]file doc_00140011 [00:32:11]remove file /storage/0454/doc_00140011 [00:32:11]file doc_00140012 [00:32:11]remove file /storage/0454/doc_00140012 [00:32:11]file doc_00140013 [00:32:11]remove file /storage/0454/doc_00140013 [00:32:11]file doc_00140014 [00:32:11]remove file /storage/0454/doc_00140014 [00:32:11]file doc_00140015 [00:32:11]remove file /storage/0454/doc_00140015 [00:32:11]file doc_00140016 [00:32:11]remove file /storage/0454/doc_00140016 [00:32:11]file doc_00140017 [00:32:11]remove file /storage/0454/doc_00140017 [00:32:11]file doc_00140018 [00:32:11]remove file /storage/0454/doc_00140018 [00:32:11]file doc_00140019 [00:32:11]remove file /storage/0454/doc_00140019 [00:32:11]file doc_00140020 [00:32:11]remove file /storage/0454/doc_00140020 [00:32:11]file doc_00140021 [00:32:11]remove file /storage/0454/doc_00140021 [00:32:11]file doc_00140022 [00:32:11]remove file /storage/0454/doc_00140022 [00:32:11]file doc_00140023 [00:32:11]remove file /storage/0454/doc_00140023 [00:32:11]file doc_00140024 [00:32:11]remove file /storage/0454/doc_00140024 [00:32:11]file doc_00140025 [00:32:11]remove file /storage/0454/doc_00140025 [00:32:11]file doc_00140026 [00:32:11]remove file /storage/0454/doc_00140026 [00:32:11]file doc_00140027 [00:32:11]remove file /storage/0454/doc_00140027 [00:32:11]file doc_00140028 [00:32:11]remove file /storage/0454/doc_00140028 [00:32:11]file doc_00140029 [00:32:11]remove file /storage/0454/doc_00140029 [00:32:11]file doc_00140030 [00:32:11]remove file /storage/0454/doc_00140030 [00:32:11]file doc_00140031 [00:32:11]remove file /storage/0454/doc_00140031 [00:32:11]file doc_00140032 [00:32:11]remove file /storage/0454/doc_00140032 [00:32:11]file doc_00140033 [00:32:11]remove file /storage/0454/doc_00140033 [00:32:11]file doc_00140034 [00:32:11]remove file /storage/0454/doc_00140034 [00:32:11]file doc_00140035 [00:32:11]remove file /storage/0454/doc_00140035 [00:32:11]file doc_00140036 [00:32:11]remove file /storage/0454/doc_00140036 [00:32:11]file doc_00140037 [00:32:11]remove file /storage/0454/doc_00140037 [00:32:11]file doc_00140038 [00:32:11]remove file /storage/0454/doc_00140038 [00:32:11]file doc_00140039 [00:32:11]remove file /storage/0454/doc_00140039 [00:32:11]file doc_00140040 [00:32:11]remove file /storage/0454/doc_00140040 [00:32:11]file doc_00140041 [00:32:11]remove file /storage/0454/doc_00140041 [00:32:11]file doc_00140042 [00:32:11]remove file /storage/0454/doc_00140042 [00:32:11]file doc_00140043 [00:32:11]remove file /storage/0454/doc_00140043 [00:32:11]file doc_00140044 [00:32:11]remove file /storage/0454/doc_00140044 [00:32:11]file doc_00140045 [00:32:11]remove file /storage/0454/doc_00140045 [00:32:11]file doc_00140046 [00:32:11]remove file /storage/0454/doc_00140046 [00:32:11]file doc_00140047 [00:32:11]remove file /storage/0454/doc_00140047 [00:32:11]file doc_00140048 [00:32:11]remove file /storage/0454/doc_00140048 [00:32:11]file doc_00140049 [00:32:11]remove file /storage/0454/doc_00140049 [00:32:11]file doc_00140050 [00:32:11]remove file /storage/0454/doc_00140050 [00:32:11]file doc_00140051 [00:32:11]remove file /storage/0454/doc_00140051 [00:32:11]file doc_00140052 [00:32:11]remove file /storage/0454/doc_00140052 [00:32:11]file doc_00140053 [00:32:11]remove file /storage/0454/doc_00140053 [00:32:11]file doc_00140054 [00:32:11]remove file /storage/0454/doc_00140054 [00:32:11]file doc_00140055 [00:32:11]remove file /storage/0454/doc_00140055 [00:32:11]file doc_00140056 [00:32:11]remove file /storage/0454/doc_00140056 [00:32:11]file doc_00140057 [00:32:11]remove file /storage/0454/doc_00140057 [00:32:11]file doc_00140058 [00:32:11]remove file /storage/0454/doc_00140058 [00:32:11]file doc_00140059 [00:32:11]remove file /storage/0454/doc_00140059 [00:32:11]file doc_00140060 [00:32:11]remove file /storage/0454/doc_00140060 [00:32:11]file doc_00140061 [00:32:11]remove file /storage/0454/doc_00140061 [00:32:11]file doc_00140062 [00:32:11]remove file /storage/0454/doc_00140062 [00:32:11]file doc_00140063 [00:32:11]remove file /storage/0454/doc_00140063 [00:32:11]file doc_00140064 [00:32:11]remove file /storage/0454/doc_00140064 [00:32:11]file doc_00140065 [00:32:11]remove file /storage/0454/doc_00140065 [00:32:11]file doc_00140066 [00:32:11]remove file /storage/0454/doc_00140066 [00:32:11]file doc_00140067 [00:32:11]remove file /storage/0454/doc_00140067 [00:32:11]file doc_00140068 [00:32:11]remove file /storage/0454/doc_00140068 [00:32:11]file doc_00140069 [00:32:11]remove file /storage/0454/doc_00140069 [00:32:11]file doc_00140070 [00:32:11]remove file /storage/0454/doc_00140070 [00:32:11]file doc_00140071 [00:32:11]remove file /storage/0454/doc_00140071 [00:32:11]file doc_00140072 [00:32:11]remove file /storage/0454/doc_00140072 [00:32:11]file doc_00140073 [00:32:11]remove file /storage/0454/doc_00140073 [00:32:11]file doc_00140074 [00:32:11]remove file /storage/0454/doc_00140074 [00:32:11]file doc_00140075 [00:32:11]remove file /storage/0454/doc_00140075 [00:32:11]file doc_00140076 [00:32:11]remove file /storage/0454/doc_00140076 [00:32:11]file doc_00140077 [00:32:11]remove file /storage/0454/doc_00140077 [00:32:11]file doc_00140078 [00:32:11]remove file /storage/0454/doc_00140078 [00:32:11]file doc_00140079 [00:32:11]remove file /storage/0454/doc_00140079 [00:32:11]file doc_00140080 [00:32:11]remove file /storage/0454/doc_00140080 [00:32:11]file doc_00140081 [00:32:11]remove file /storage/0454/doc_00140081 [00:32:11]file doc_00140082 [00:32:11]remove file /storage/0454/doc_00140082 [00:32:11]file doc_00140083 [00:32:11]remove file /storage/0454/doc_00140083 [00:32:11]file doc_00140084 [00:32:11]remove file /storage/0454/doc_00140084 [00:32:11]file doc_00140085 [00:32:11]remove file /storage/0454/doc_00140085 [00:32:11]file doc_00140086 [00:32:11]remove file /storage/0454/doc_00140086 [00:32:11]file doc_00140087 [00:32:11]remove file /storage/0454/doc_00140087 [00:32:11]file doc_00140088 [00:32:11]remove file /storage/0454/doc_00140088 [00:32:11]file doc_00140089 [00:32:11]remove file /storage/0454/doc_00140089 [00:32:11]file doc_00140090 [00:32:11]remove file /storage/0454/doc_00140090 [00:32:11]file doc_00140091 [00:32:11]remove file /storage/0454/doc_00140091 [00:32:11]file doc_00140092 [00:32:11]remove file /storage/0454/doc_00140092 [00:32:11]file doc_00140093 [00:32:11]remove file /storage/0454/doc_00140093 [00:32:11]file doc_00140094 [00:32:11]remove file /storage/0454/doc_00140094 [00:32:11]file doc_00140095 [00:32:11]remove file /storage/0454/doc_00140095 [00:32:11]file doc_00140096 [00:32:11]remove file /storage/0454/doc_00140096 [00:32:11]file doc_00140097 [00:32:11]remove file /storage/0454/doc_00140097 [00:32:11]file doc_00140098 [00:32:11]remove file /storage/0454/doc_00140098 [00:32:11]file doc_00140099 [00:32:11]remove file /storage/0454/doc_00140099 [00:32:11]file doc_00140100 [00:32:11]remove file /storage/0454/doc_00140100 [00:32:11]file doc_00140101 [00:32:11]remove file /storage/0454/doc_00140101 [00:32:11]file doc_00140102 [00:32:11]remove file /storage/0454/doc_00140102 [00:32:11]file doc_00140103 [00:32:11]remove file /storage/0454/doc_00140103 [00:32:11]file doc_00140104 [00:32:11]remove file /storage/0454/doc_00140104 [00:32:11]file doc_00140105 [00:32:11]remove file /storage/0454/doc_00140105 [00:32:11]file doc_00140106 [00:32:11]remove file /storage/0454/doc_00140106 [00:32:11]file doc_00140107 [00:32:11]remove file /storage/0454/doc_00140107 [00:32:12]file doc_00140108 [00:32:12]remove file /storage/0454/doc_00140108 [00:32:12]file doc_00140109 [00:32:12]remove file /storage/0454/doc_00140109 [00:32:12]file doc_00140110 [00:32:12]remove file /storage/0454/doc_00140110 [00:32:12]file doc_00140111 [00:32:12]remove file /storage/0454/doc_00140111 [00:32:12]file doc_00140112 [00:32:12]remove file /storage/0454/doc_00140112 [00:32:12]file doc_00140113 [00:32:12]remove file /storage/0454/doc_00140113 [00:32:12]file doc_00140114 [00:32:12]remove file /storage/0454/doc_00140114 [00:32:12]file doc_00140115 [00:32:12]remove file /storage/0454/doc_00140115 [00:32:12]file doc_00140116 [00:32:12]remove file /storage/0454/doc_00140116 [00:32:12]file doc_00140117 [00:32:12]remove file /storage/0454/doc_00140117 [00:32:12]file doc_00140118 [00:32:12]remove file /storage/0454/doc_00140118 [00:32:12]file doc_00140119 [00:32:12]remove file /storage/0454/doc_00140119 [00:32:12]file doc_00140120 [00:32:12]remove file /storage/0454/doc_00140120 [00:32:12]file doc_00140121 [00:32:12]remove file /storage/0454/doc_00140121 [00:32:12]file doc_00140122 [00:32:12]remove file /storage/0454/doc_00140122 [00:32:12]file doc_00140123 [00:32:12]remove file /storage/0454/doc_00140123 [00:32:12]file doc_00140124 [00:32:12]remove file /storage/0454/doc_00140124 [00:32:12]file doc_00140125 [00:32:12]remove file /storage/0454/doc_00140125 [00:32:12]file doc_00140126 [00:32:12]remove file /storage/0454/doc_00140126 [00:32:12]file doc_00140127 [00:32:12]remove file /storage/0454/doc_00140127 [00:32:12]file doc_00140128 [00:32:12]remove file /storage/0454/doc_00140128 [00:32:12]file doc_00140129 [00:32:12]remove file /storage/0454/doc_00140129 [00:32:12]file doc_00140130 [00:32:12]remove file /storage/0454/doc_00140130 [00:32:12]file doc_00140131 [00:32:12]remove file /storage/0454/doc_00140131 [00:32:12]file doc_00140132 [00:32:12]remove file /storage/0454/doc_00140132 [00:32:12]file doc_00140133 [00:32:12]remove file /storage/0454/doc_00140133 [00:32:12]file doc_00140134 [00:32:12]remove file /storage/0454/doc_00140134 [00:32:12]file doc_00140135 [00:32:12]remove file /storage/0454/doc_00140135 [00:32:12]file doc_00140136 [00:32:12]remove file /storage/0454/doc_00140136 [00:32:12]file doc_00140137 [00:32:12]remove file /storage/0454/doc_00140137 [00:32:12]file doc_00140138 [00:32:12]remove file /storage/0454/doc_00140138 [00:32:12]file doc_00140139 [00:32:12]remove file /storage/0454/doc_00140139 [00:32:12]file doc_00140140 [00:32:12]remove file /storage/0454/doc_00140140 [00:32:12]file doc_00140141 [00:32:12]remove file /storage/0454/doc_00140141 [00:32:12]file doc_00140142 [00:32:12]remove file /storage/0454/doc_00140142 [00:32:12]file doc_00140143 [00:32:12]remove file /storage/0454/doc_00140143 [00:32:12]file doc_00140144 [00:32:12]remove file /storage/0454/doc_00140144 [00:32:12]file doc_00140145 [00:32:12]remove file /storage/0454/doc_00140145 [00:32:12]file doc_00140146 [00:32:12]remove file /storage/0454/doc_00140146 [00:32:12]file doc_00140147 [00:32:12]remove file /storage/0454/doc_00140147 [00:32:12]file doc_00140148 [00:32:12]remove file /storage/0454/doc_00140148 [00:32:12]file doc_00140149 [00:32:12]remove file /storage/0454/doc_00140149 [00:32:12]file doc_00140150 [00:32:12]remove file /storage/0454/doc_00140150 [00:32:12]file doc_00140151 [00:32:12]remove file /storage/0454/doc_00140151 [00:32:12]file doc_00140152 [00:32:12]remove file /storage/0454/doc_00140152 [00:32:12]file doc_00140153 [00:32:12]remove file /storage/0454/doc_00140153 [00:32:12]file doc_00140154 [00:32:12]remove file /storage/0454/doc_00140154 [00:32:12]file doc_00140155 [00:32:12]remove file /storage/0454/doc_00140155 [00:32:12]file doc_00140156 [00:32:12]remove file /storage/0454/doc_00140156 [00:32:12]file doc_00140157 [00:32:12]remove file /storage/0454/doc_00140157 [00:32:12]file doc_00140158 [00:32:12]remove file /storage/0454/doc_00140158 [00:32:12]file doc_00140159 [00:32:12]remove file /storage/0454/doc_00140159 [00:32:12]file doc_00140160 [00:32:12]remove file /storage/0454/doc_00140160 [00:32:12]file doc_00140161 [00:32:12]remove file /storage/0454/doc_00140161 [00:32:12]file doc_00140162 [00:32:12]remove file /storage/0454/doc_00140162 [00:32:12]file doc_00140163 [00:32:12]remove file /storage/0454/doc_00140163 [00:32:12]file doc_00140164 [00:32:12]remove file /storage/0454/doc_00140164 [00:32:12]file doc_00140165 [00:32:12]remove file /storage/0454/doc_00140165 [00:32:12]file doc_00140166 [00:32:12]remove file /storage/0454/doc_00140166 [00:32:12]file doc_00140167 [00:32:12]remove file /storage/0454/doc_00140167 [00:32:12]file doc_00140168 [00:32:12]remove file /storage/0454/doc_00140168 [00:32:12]file doc_00140169 [00:32:12]remove file /storage/0454/doc_00140169 [00:32:12]file doc_00140170 [00:32:12]remove file /storage/0454/doc_00140170 [00:32:12]file doc_00140171 [00:32:12]remove file /storage/0454/doc_00140171 [00:32:12]file doc_00140172 [00:32:12]remove file /storage/0454/doc_00140172 [00:32:12]file doc_00140173 [00:32:12]remove file /storage/0454/doc_00140173 [00:32:12]file doc_00140174 [00:32:12]remove file /storage/0454/doc_00140174 [00:32:12]file doc_00140175 [00:32:12]remove file /storage/0454/doc_00140175 [00:32:12]file doc_00140176 [00:32:12]remove file /storage/0454/doc_00140176 [00:32:12]file doc_00140177 [00:32:12]remove file /storage/0454/doc_00140177 [00:32:12]file doc_00140178 [00:32:12]remove file /storage/0454/doc_00140178 [00:32:12]file doc_00140179 [00:32:12]remove file /storage/0454/doc_00140179 [00:32:12]file doc_00140180 [00:32:12]remove file /storage/0454/doc_00140180 [00:32:12]file doc_00140181 [00:32:12]remove file /storage/0454/doc_00140181 [00:32:12]file doc_00140182 [00:32:12]remove file /storage/0454/doc_00140182 [00:32:12]file doc_00140183 [00:32:12]remove file /storage/0454/doc_00140183 [00:32:12]file doc_00140184 [00:32:12]remove file /storage/0454/doc_00140184 [00:32:12]file doc_00140185 [00:32:12]remove file /storage/0454/doc_00140185 [00:32:12]file doc_00140186 [00:32:12]remove file /storage/0454/doc_00140186 [00:32:12]file doc_00140187 [00:32:12]remove file /storage/0454/doc_00140187 [00:32:12]file doc_00140188 [00:32:12]remove file /storage/0454/doc_00140188 [00:32:12]file doc_00140189 [00:32:12]remove file /storage/0454/doc_00140189 [00:32:12]file doc_00140190 [00:32:12]remove file /storage/0454/doc_00140190 [00:32:12]file doc_00140191 [00:32:12]remove file /storage/0454/doc_00140191 [00:32:12]file doc_00140192 [00:32:12]remove file /storage/0454/doc_00140192 [00:32:12]file doc_00140193 [00:32:12]remove file /storage/0454/doc_00140193 [00:32:12]file doc_00140194 [00:32:12]remove file /storage/0454/doc_00140194 [00:32:12]file doc_00140195 [00:32:12]remove file /storage/0454/doc_00140195 [00:32:12]file doc_00140196 [00:32:12]remove file /storage/0454/doc_00140196 [00:32:12]file doc_00140197 [00:32:12]remove file /storage/0454/doc_00140197 [00:32:12]file doc_00140198 [00:32:12]remove file /storage/0454/doc_00140198 [00:32:12]file doc_00140199 [00:32:12]remove file /storage/0454/doc_00140199 [00:32:12]file doc_00140200 [00:32:12]remove file /storage/0454/doc_00140200 [00:32:12]file doc_00140201 [00:32:12]remove file /storage/0454/doc_00140201 [00:32:12]file doc_00140202 [00:32:12]remove file /storage/0454/doc_00140202 [00:32:12]file doc_00140203 [00:32:12]remove file /storage/0454/doc_00140203 [00:32:12]file doc_00140204 [00:32:12]remove file /storage/0454/doc_00140204 [00:32:12]file doc_00140205 [00:32:12]remove file /storage/0454/doc_00140205 [00:32:12]file doc_00140206 [00:32:12]remove file /storage/0454/doc_00140206 [00:32:12]file doc_00140207 [00:32:12]remove file /storage/0454/doc_00140207 [00:32:12]file doc_00140208 [00:32:12]remove file /storage/0454/doc_00140208 [00:32:12]file doc_00140209 [00:32:12]remove file /storage/0454/doc_00140209 [00:32:12]file doc_00140210 [00:32:12]remove file /storage/0454/doc_00140210 [00:32:12]file doc_00140211 [00:32:12]remove file /storage/0454/doc_00140211 [00:32:12]file doc_00140212 [00:32:12]remove file /storage/0454/doc_00140212 [00:32:12]file doc_00140213 [00:32:12]remove file /storage/0454/doc_00140213 [00:32:12]file doc_00140214 [00:32:12]remove file /storage/0454/doc_00140214 [00:32:12]file doc_00140215 [00:32:12]remove file /storage/0454/doc_00140215 [00:32:12]file doc_00140216 [00:32:12]remove file /storage/0454/doc_00140216 [00:32:12]file doc_00140217 [00:32:12]remove file /storage/0454/doc_00140217 [00:32:12]file doc_00140218 [00:32:12]remove file /storage/0454/doc_00140218 [00:32:12]file doc_00140219 [00:32:12]remove file /storage/0454/doc_00140219 [00:32:12]file doc_00140220 [00:32:12]remove file /storage/0454/doc_00140220 [00:32:12]file doc_00140221 [00:32:12]remove file /storage/0454/doc_00140221 [00:32:12]file doc_00140222 [00:32:12]remove file /storage/0454/doc_00140222 [00:32:12]file doc_00140223 [00:32:12]remove file /storage/0454/doc_00140223 [00:32:12]file doc_00140224 [00:32:12]remove file /storage/0454/doc_00140224 [00:32:12]file doc_00140225 [00:32:12]remove file /storage/0454/doc_00140225 [00:32:12]file doc_00140226 [00:32:12]remove file /storage/0454/doc_00140226 [00:32:12]file doc_00140227 [00:32:12]remove file /storage/0454/doc_00140227 [00:32:12]file doc_00140228 [00:32:12]remove file /storage/0454/doc_00140228 [00:32:12]file doc_00140229 [00:32:12]remove file /storage/0454/doc_00140229 [00:32:12]file doc_00140230 [00:32:12]remove file /storage/0454/doc_00140230 [00:32:12]file doc_00140231 [00:32:12]remove file /storage/0454/doc_00140231 [00:32:12]file doc_00140232 [00:32:12]remove file /storage/0454/doc_00140232 [00:32:12]file doc_00140233 [00:32:12]remove file /storage/0454/doc_00140233 [00:32:12]file doc_00140234 [00:32:12]remove file /storage/0454/doc_00140234 [00:32:12]file doc_00140235 [00:32:12]remove file /storage/0454/doc_00140235 [00:32:12]file doc_00140236 [00:32:12]remove file /storage/0454/doc_00140236 [00:32:12]file doc_00140237 [00:32:12]remove file /storage/0454/doc_00140237 [00:32:12]file doc_00140238 [00:32:12]remove file /storage/0454/doc_00140238 [00:32:12]file doc_00140239 [00:32:12]remove file /storage/0454/doc_00140239 [00:32:12]file doc_00140240 [00:32:12]remove file /storage/0454/doc_00140240 [00:32:12]file doc_00140241 [00:32:12]remove file /storage/0454/doc_00140241 [00:32:12]file doc_00140242 [00:32:12]remove file /storage/0454/doc_00140242 [00:32:12]file doc_00140243 [00:32:12]remove file /storage/0454/doc_00140243 [00:32:12]file doc_00140244 [00:32:12]remove file /storage/0454/doc_00140244 [00:32:12]file doc_00140245 [00:32:12]remove file /storage/0454/doc_00140245 [00:32:12]file doc_00140246 [00:32:12]remove file /storage/0454/doc_00140246 [00:32:12]file doc_00140247 [00:32:12]remove file /storage/0454/doc_00140247 [00:32:12]file doc_00140248 [00:32:12]remove file /storage/0454/doc_00140248 [00:32:12]file doc_00140249 [00:32:12]remove file /storage/0454/doc_00140249 [00:32:12]file doc_00140250 [00:32:12]remove file /storage/0454/doc_00140250 [00:32:12]file doc_00140251 [00:32:12]remove file /storage/0454/doc_00140251 [00:32:12]file doc_00140252 [00:32:12]remove file /storage/0454/doc_00140252 [00:32:12]file doc_00140253 [00:32:12]remove file /storage/0454/doc_00140253 [00:32:12]file doc_00140254 [00:32:12]remove file /storage/0454/doc_00140254 [00:32:12]file doc_00140255 [00:32:12]remove file /storage/0454/doc_00140255 [00:32:12]file doc_00140256 [00:32:12]remove file /storage/0454/doc_00140256 [00:32:12]file doc_00140257 [00:32:12]remove file /storage/0454/doc_00140257 [00:32:12]file doc_00140258 [00:32:12]remove file /storage/0454/doc_00140258 [00:32:12]file doc_00140259 [00:32:12]remove file /storage/0454/doc_00140259 [00:32:12]file doc_00140260 [00:32:12]remove file /storage/0454/doc_00140260 [00:32:12]file doc_00140261 [00:32:12]remove file /storage/0454/doc_00140261 [00:32:12]file doc_00140262 [00:32:12]remove file /storage/0454/doc_00140262 [00:32:12]file doc_00140263 [00:32:12]remove file /storage/0454/doc_00140263 [00:32:12]file doc_00140264 [00:32:12]remove file /storage/0454/doc_00140264 [00:32:12]file doc_00140265 [00:32:13]remove file /storage/0454/doc_00140265 [00:32:13]file doc_00140266 [00:32:13]remove file /storage/0454/doc_00140266 [00:32:13]file doc_00140267 [00:32:13]remove file /storage/0454/doc_00140267 [00:32:13]file doc_00140268 [00:32:13]remove file /storage/0454/doc_00140268 [00:32:13]file doc_00140269 [00:32:13]remove file /storage/0454/doc_00140269 [00:32:13]file doc_00140270 [00:32:13]remove file /storage/0454/doc_00140270 [00:32:13]file doc_00140271 [00:32:13]remove file /storage/0454/doc_00140271 [00:32:13]file doc_00140272 [00:32:13]remove file /storage/0454/doc_00140272 [00:32:13]file doc_00140273 [00:32:13]remove file /storage/0454/doc_00140273 [00:32:13]file doc_00140274 [00:32:13]remove file /storage/0454/doc_00140274 [00:32:13]file doc_00140275 [00:32:13]remove file /storage/0454/doc_00140275 [00:32:13]file doc_00140276 [00:32:13]remove file /storage/0454/doc_00140276 [00:32:13]file doc_00140277 [00:32:13]remove file /storage/0454/doc_00140277 [00:32:13]file doc_00140278 [00:32:13]remove file /storage/0454/doc_00140278 [00:32:13]file doc_00140279 [00:32:13]remove file /storage/0454/doc_00140279 [00:32:13]file doc_00140280 [00:32:13]remove file /storage/0454/doc_00140280 [00:32:13]file doc_00140281 [00:32:13]remove file /storage/0454/doc_00140281 [00:32:13]file doc_00140282 [00:32:13]remove file /storage/0454/doc_00140282 [00:32:13]file doc_00140283 [00:32:13]remove file /storage/0454/doc_00140283 [00:32:13]file doc_00140284 [00:32:13]remove file /storage/0454/doc_00140284 [00:32:13]file doc_00140285 [00:32:13]remove file /storage/0454/doc_00140285 [00:32:13]file doc_00140286 [00:32:13]remove file /storage/0454/doc_00140286 [00:32:13]file doc_00140287 [00:32:13]remove file /storage/0454/doc_00140287 [00:32:13]file doc_00140288 [00:32:13]remove file /storage/0454/doc_00140288 [00:32:13]file doc_00140289 [00:32:13]remove file /storage/0454/doc_00140289 [00:32:13]file doc_00140290 [00:32:13]remove file /storage/0454/doc_00140290 [00:32:13]file doc_00140291 [00:32:13]remove file /storage/0454/doc_00140291 [00:32:13]file doc_00140292 [00:32:13]remove file /storage/0454/doc_00140292 [00:32:13]file doc_00140293 [00:32:13]remove file /storage/0454/doc_00140293 [00:32:13]file doc_00140294 [00:32:13]remove file /storage/0454/doc_00140294 [00:32:13]file doc_00140295 [00:32:13]remove file /storage/0454/doc_00140295 [00:32:13]file doc_00140296 [00:32:13]remove file /storage/0454/doc_00140296 [00:32:13]file doc_00140297 [00:32:13]remove file /storage/0454/doc_00140297 [00:32:13]file doc_00140298 [00:32:13]remove file /storage/0454/doc_00140298 [00:32:13]file doc_00140299 [00:32:13]remove file /storage/0454/doc_00140299 [00:32:13]file doc_00140300 [00:32:13]remove file /storage/0454/doc_00140300 [00:32:13]file doc_00140301 [00:32:13]remove file /storage/0454/doc_00140301 [00:32:13]file doc_00140302 [00:32:13]remove file /storage/0454/doc_00140302 [00:32:13]file doc_00140303 [00:32:13]remove file /storage/0454/doc_00140303 [00:32:13]file doc_00140304 [00:32:13]remove file /storage/0454/doc_00140304 [00:32:13]file doc_00140305 [00:32:13]remove file /storage/0454/doc_00140305 [00:32:13]file doc_00140306 [00:32:13]remove file /storage/0454/doc_00140306 [00:32:13]file doc_00140307 [00:32:13]remove file /storage/0454/doc_00140307 [00:32:13]file doc_00140308 [00:32:13]remove file /storage/0454/doc_00140308 [00:32:13]file doc_00140309 [00:32:13]remove file /storage/0454/doc_00140309 [00:32:13]file doc_00140310 [00:32:13]remove file /storage/0454/doc_00140310 [00:32:13]file doc_00140311 [00:32:13]remove file /storage/0454/doc_00140311 [00:32:13]file doc_00140312 [00:32:13]remove file /storage/0454/doc_00140312 [00:32:13]file doc_00140313 [00:32:13]remove file /storage/0454/doc_00140313 [00:32:13]file doc_00140314 [00:32:13]remove file /storage/0454/doc_00140314 [00:32:13]file doc_00140315 [00:32:13]remove file /storage/0454/doc_00140315 [00:32:13]file doc_00140316 [00:32:13]remove file /storage/0454/doc_00140316 [00:32:13]file doc_00140317 [00:32:13]remove file /storage/0454/doc_00140317 [00:32:13]file doc_00140318 [00:32:13]remove file /storage/0454/doc_00140318 [00:32:13]file doc_00140319 [00:32:13]remove file /storage/0454/doc_00140319 [00:32:13]file doc_00140320 [00:32:13]remove file /storage/0454/doc_00140320 [00:32:13]file doc_00140321 [00:32:13]remove file /storage/0454/doc_00140321 [00:32:13]file doc_00140322 [00:32:13]remove file /storage/0454/doc_00140322 [00:32:13]file doc_00140323 [00:32:13]remove file /storage/0454/doc_00140323 [00:32:13]file doc_00140324 [00:32:13]remove file /storage/0454/doc_00140324 [00:32:13]file doc_00140325 [00:32:13]remove file /storage/0454/doc_00140325 [00:32:13]file doc_00140326 [00:32:13]remove file /storage/0454/doc_00140326 [00:32:13]file doc_00140327 [00:32:13]remove file /storage/0454/doc_00140327 [00:32:13]file doc_00140328 [00:32:13]remove file /storage/0454/doc_00140328 [00:32:13]file doc_00140329 [00:32:13]remove file /storage/0454/doc_00140329 [00:32:13]file doc_00140330 [00:32:13]remove file /storage/0454/doc_00140330 [00:32:13]file doc_00140331 [00:32:13]remove file /storage/0454/doc_00140331 [00:32:13]file doc_00140332 [00:32:13]remove file /storage/0454/doc_00140332 [00:32:13]file doc_00140333 [00:32:13]remove file /storage/0454/doc_00140333 [00:32:13]file doc_00140334 [00:32:13]remove file /storage/0454/doc_00140334 [00:32:13]file doc_00140335 [00:32:13]remove file /storage/0454/doc_00140335 [00:32:13]file doc_00140336 [00:32:13]remove file /storage/0454/doc_00140336 [00:32:13]file doc_00140337 [00:32:13]remove file /storage/0454/doc_00140337 [00:32:13]file doc_00140338 [00:32:13]remove file /storage/0454/doc_00140338 [00:32:13]file doc_00140339 [00:32:13]remove file /storage/0454/doc_00140339 [00:32:13]file doc_00140340 [00:32:13]remove file /storage/0454/doc_00140340 [00:32:13]file doc_00140341 [00:32:13]remove file /storage/0454/doc_00140341 [00:32:13]file doc_00140342 [00:32:13]remove file /storage/0454/doc_00140342 [00:32:13]file doc_00140343 [00:32:13]remove file /storage/0454/doc_00140343 [00:32:13]file doc_00140344 [00:32:13]remove file /storage/0454/doc_00140344 [00:32:13]file doc_00140345 [00:32:13]remove file /storage/0454/doc_00140345 [00:32:13]file doc_00140346 [00:32:13]remove file /storage/0454/doc_00140346 [00:32:13]file doc_00140347 [00:32:13]remove file /storage/0454/doc_00140347 [00:32:13]file doc_00140348 [00:32:13]remove file /storage/0454/doc_00140348 [00:32:13]file doc_00140349 [00:32:13]remove file /storage/0454/doc_00140349 [00:32:13]file doc_00140350 [00:32:13]remove file /storage/0454/doc_00140350 [00:32:13]file doc_00140351 [00:32:13]remove file /storage/0454/doc_00140351 [00:32:13]file doc_00140352 [00:32:13]remove file /storage/0454/doc_00140352 [00:32:13]file doc_00140353 [00:32:13]remove file /storage/0454/doc_00140353 [00:32:13]file doc_00140354 [00:32:13]remove file /storage/0454/doc_00140354 [00:32:13]file doc_00140355 [00:32:13]remove file /storage/0454/doc_00140355 [00:32:13]file doc_00140356 [00:32:13]remove file /storage/0454/doc_00140356 [00:32:13]file doc_00140357 [00:32:13]remove file /storage/0454/doc_00140357 [00:32:13]file doc_00140358 [00:32:13]remove file /storage/0454/doc_00140358 [00:32:13]file doc_00140359 [00:32:13]remove file /storage/0454/doc_00140359 [00:32:13]file doc_00140360 [00:32:13]remove file /storage/0454/doc_00140360 [00:32:13]file doc_00140361 [00:32:13]remove file /storage/0454/doc_00140361 [00:32:13]file doc_00140362 [00:32:13]remove file /storage/0454/doc_00140362 [00:32:13]file doc_00140363 [00:32:13]remove file /storage/0454/doc_00140363 [00:32:13]file doc_00140364 [00:32:13]remove file /storage/0454/doc_00140364 [00:32:13]file doc_00140365 [00:32:13]remove file /storage/0454/doc_00140365 [00:32:13]file doc_00140366 [00:32:13]remove file /storage/0454/doc_00140366 [00:32:13]file doc_00140367 [00:32:13]remove file /storage/0454/doc_00140367 [00:32:13]file doc_00140368 [00:32:13]remove file /storage/0454/doc_00140368 [00:32:13]file doc_00140369 [00:32:13]remove file /storage/0454/doc_00140369 [00:32:13]file doc_00140370 [00:32:13]remove file /storage/0454/doc_00140370 [00:32:13]file doc_00140371 [00:32:13]remove file /storage/0454/doc_00140371 [00:32:13]file doc_00140372 [00:32:13]remove file /storage/0454/doc_00140372 [00:32:13]file doc_00140373 [00:32:13]remove file /storage/0454/doc_00140373 [00:32:13]file doc_00140374 [00:32:13]remove file /storage/0454/doc_00140374 [00:32:13]file doc_00140375 [00:32:13]remove file /storage/0454/doc_00140375 [00:32:13]file doc_00140376 [00:32:13]remove file /storage/0454/doc_00140376 [00:32:13]file doc_00140377 [00:32:13]remove file /storage/0454/doc_00140377 [00:32:13]file doc_00140378 [00:32:13]remove file /storage/0454/doc_00140378 [00:32:13]file doc_00140379 [00:32:13]remove file /storage/0454/doc_00140379 [00:32:13]file doc_00140380 [00:32:13]remove file /storage/0454/doc_00140380 [00:32:13]file doc_00140381 [00:32:13]remove file /storage/0454/doc_00140381 [00:32:13]file doc_00140382 [00:32:13]remove file /storage/0454/doc_00140382 [00:32:13]file doc_00140383 [00:32:13]remove file /storage/0454/doc_00140383 [00:32:13]file doc_00140384 [00:32:13]remove file /storage/0454/doc_00140384 [00:32:13]file doc_00140385 [00:32:13]remove file /storage/0454/doc_00140385 [00:32:13]file doc_00140386 [00:32:13]remove file /storage/0454/doc_00140386 [00:32:13]file doc_00140387 [00:32:13]remove file /storage/0454/doc_00140387 [00:32:13]file doc_00140388 [00:32:13]remove file /storage/0454/doc_00140388 [00:32:13]file doc_00140389 [00:32:13]remove file /storage/0454/doc_00140389 [00:32:13]file doc_00140390 [00:32:13]remove file /storage/0454/doc_00140390 [00:32:13]file doc_00140391 [00:32:13]remove file /storage/0454/doc_00140391 [00:32:13]file doc_00140392 [00:32:13]remove file /storage/0454/doc_00140392 [00:32:13]file doc_00140393 [00:32:13]remove file /storage/0454/doc_00140393 [00:32:13]file doc_00140394 [00:32:13]remove file /storage/0454/doc_00140394 [00:32:13]file doc_00140395 [00:32:13]remove file /storage/0454/doc_00140395 [00:32:13]file doc_00140396 [00:32:13]remove file /storage/0454/doc_00140396 [00:32:13]file doc_00140397 [00:32:13]remove file /storage/0454/doc_00140397 [00:32:13]file doc_00140398 [00:32:13]remove file /storage/0454/doc_00140398 [00:32:13]file doc_00140399 [00:32:13]remove file /storage/0454/doc_00140399 [00:32:13]file doc_00140400 [00:32:13]remove file /storage/0454/doc_00140400 [00:32:13]file doc_00140401 [00:32:13]remove file /storage/0454/doc_00140401 [00:32:13]file doc_00140402 [00:32:13]remove file /storage/0454/doc_00140402 [00:32:13]file doc_00140403 [00:32:13]remove file /storage/0454/doc_00140403 [00:32:13]file doc_00140404 [00:32:13]remove file /storage/0454/doc_00140404 [00:32:13]file doc_00140405 [00:32:13]remove file /storage/0454/doc_00140405 [00:32:13]file doc_00140406 [00:32:13]remove file /storage/0454/doc_00140406 [00:32:13]file doc_00140407 [00:32:13]remove file /storage/0454/doc_00140407 [00:32:13]file doc_00140408 [00:32:13]remove file /storage/0454/doc_00140408 [00:32:13]file doc_00140409 [00:32:13]remove file /storage/0454/doc_00140409 [00:32:13]file doc_00140410 [00:32:13]remove file /storage/0454/doc_00140410 [00:32:13]file doc_00140411 [00:32:13]remove file /storage/0454/doc_00140411 [00:32:13]file doc_00140412 [00:32:13]remove file /storage/0454/doc_00140412 [00:32:13]file doc_00140413 [00:32:13]remove file /storage/0454/doc_00140413 [00:32:13]file doc_00140414 [00:32:13]remove file /storage/0454/doc_00140414 [00:32:13]file doc_00140415 [00:32:13]remove file /storage/0454/doc_00140415 [00:32:13]file doc_00140416 [00:32:13]remove file /storage/0454/doc_00140416 [00:32:13]file doc_00140417 [00:32:13]remove file /storage/0454/doc_00140417 [00:32:13]file doc_00140418 [00:32:13]remove file /storage/0454/doc_00140418 [00:32:13]file doc_00140419 [00:32:13]remove file /storage/0454/doc_00140419 [00:32:13]file doc_00140420 [00:32:13]remove file /storage/0454/doc_00140420 [00:32:13]file doc_00140421 [00:32:13]remove file /storage/0454/doc_00140421 [00:32:13]file doc_00140422 [00:32:13]remove file /storage/0454/doc_00140422 [00:32:13]file doc_00140423 [00:32:13]remove file /storage/0454/doc_00140423 [00:32:13]file doc_00140424 [00:32:13]remove file /storage/0454/doc_00140424 [00:32:13]file doc_00140425 [00:32:13]remove file /storage/0454/doc_00140425 [00:32:13]file doc_00140426 [00:32:13]remove file /storage/0454/doc_00140426 [00:32:13]file doc_00140427 [00:32:13]remove file /storage/0454/doc_00140427 [00:32:13]file doc_00140428 [00:32:13]remove file /storage/0454/doc_00140428 [00:32:13]file doc_00140429 [00:32:13]remove file /storage/0454/doc_00140429 [00:32:13]file doc_00140430 [00:32:13]remove file /storage/0454/doc_00140430 [00:32:13]file doc_00140431 [00:32:13]remove file /storage/0454/doc_00140431 [00:32:13]file doc_00140432 [00:32:13]remove file /storage/0454/doc_00140432 [00:32:13]file doc_00140433 [00:32:13]remove file /storage/0454/doc_00140433 [00:32:13]remove dir /storage/0454 [00:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=239 [00:32:13]tlvbuf is 00C6B150 [00:32:13]SAM_PROTO_ClearQueue [00:32:13]wFMCommunicate request_size=4 [00:32:13]MH_SAM_APDU [00:32:13]CAPDU: 80 09 00 00 [00:32:13]Write to MH i2c: E2 08 00 63 30 80 09 00 00 00 00 00 00 05 [00:32:13]Write i2c OK [00:32:13]MH_I2C_Read... [00:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:13]Read from MH i2c: E2 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 03 00 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 03 00 63 30 00 90 00 07 [00:32:13]RAPDU: 90 00 [00:32:13]wFMCommunicate OK [00:32:13]SAM_PROTO_ClearQueue done [00:32:13]KKMCreateOFDPacket [00:32:13]OFDProtocolAddRootSTLVToBuf [00:32:13]FM_MakeSignedData [00:32:13]FM_MakeSignedData [00:32:13]SAM_PROTO_SignData [00:32:13]wFMCommunicate request_size=4 [00:32:13]MH_SAM_APDU [00:32:13]CAPDU: 80 0D 01 02 [00:32:13]Write to MH i2c: E2 08 00 64 30 80 0D 01 02 00 00 00 00 0D [00:32:13]Write i2c OK [00:32:13]MH_I2C_Read... [00:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:13]Read from MH i2c: E2 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 03 00 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 03 00 64 30 00 90 00 08 [00:32:13]RAPDU: 90 00 [00:32:13]wFMCommunicate OK [00:32:13]wFMCommunicate request_size=248 [00:32:13]MH_SAM_APDU [00:32:13]CAPDU: 80 0D 02 02 F3 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0C 87 C6 66 0E 04 04 00 C7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 11 5A 3F B6 D7 83 [00:32:13]Write to MH i2c: E2 FB 00 65 30 80 0D 02 02 F3 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0C 87 C6 66 0E 04 04 00 C7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 11 5A 3F B6 D7 83 00 00 8A [00:32:13]Write i2c OK [00:32:13]MH_I2C_Read... [00:32:14]OFD Sender: No OFD packet to send [00:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 03 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 03 00 65 30 00 90 00 09 [00:32:14]RAPDU: 90 00 [00:32:14]wFMCommunicate OK [00:32:14]wFMCommunicate request_size=4 [00:32:14]MH_SAM_APDU [00:32:14]CAPDU: 80 0D 03 02 [00:32:14]Write to MH i2c: E2 08 00 66 30 80 0D 03 02 00 00 00 00 11 [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 0B 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 0B 00 66 30 00 B2 4A AA 0D 10 88 8B 0C 90 00 F4 [00:32:14]RAPDU: B2 4A AA 0D 10 88 8B 0C 90 00 [00:32:14]wFMCommunicate OK [00:32:14]SAM_PROTO_SignData done [00:32:14]FM_MakeSignedData done [00:32:14]CreateOFDProtocolMessage [00:32:14]wFMCommunicate request_size=4 [00:32:14]MH_SAM_APDU [00:32:14]CAPDU: 80 11 00 00 [00:32:14]Write to MH i2c: E2 08 00 67 30 80 11 00 00 00 00 00 00 11 [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 17 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 17 00 67 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 68 [00:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:32:14]wFMCommunicate OK [00:32:14]CreateOFDProtocolMessage done [00:32:14]OFDSenderStorePacket 140434 [00:32:14]StoreOFDPacket docnum=140434 [00:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 03 01 00 00 DD 34 FB 00 52 F5 5A 02 01 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0C 87 C6 66 0E 04 04 00 C7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 11 5A 3F B6 D7 83 B2 4A AA 0D 10 88 8B 0C [00:32:14]CheckFolder [00:32:14]dirname=/storage/ofd_packets [00:32:14]CheckFolder done [00:32:14]ProducePacketName [00:32:14]name=ofd_packets/00140434 [00:32:14]NVStorageSaveData ofd_packets/00140434 [00:32:14]File name is /storage/ofd_packets/00140434 [00:32:14]Write 289 bytes [00:32:14]NVStorageSaveData done [00:32:14]OFDSenderStorePacket done [00:32:14]KKMCreateOFDPacket done [00:32:14]NVStorageSaveData kkm_last_timestamp [00:32:14]File name is /storage/kkm_last_timestamp [00:32:14]Write 4 bytes [00:32:14]NVStorageSaveData done [00:32:14]ExternCall_PrintAddStr [00:32:14]wPrintStart [00:32:14]Write to MH i2c: 01 00 00 68 30 98 [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 07 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 FF 0F AD [00:32:14]RasterBufferAndPrint [00:32:14]line Отчет об открытии смены [00:32:14]line ФФД: 1.0 [00:32:14]line ИНН: 02508201610067 [00:32:14]line Кассир: Оператор 2 [00:32:14]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:32:14]line Место: АЗС № 136 "Партнер Нефть" [00:32:14]line 22.08.2024 00:32 [00:32:14]line Смена: 455 [00:32:14]line РНМ: 0000000000092569 [00:32:14]line ЗНМ: 0300000067 [00:32:14]line ФД: 140434 [00:32:14]line ФМ: 0000000000871776 [00:32:14]line ФПД: 19079313676163 [00:32:14]OFD Sender: Processing packet 140434 [packets to send 137, broken 136] [00:32:14]ProducePacketName [00:32:14]name=ofd_packets/00140434 [00:32:14]OFD Sender: To server: pG, [00:32:14]CommunicateWithHost lk.salyk.kg:30040 [00:32:14]ConnectInit lk.salyk.kg [00:32:14]written 0, free lines is 4095 [00:32:14]Connected sock=10 [00:32: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 37 36 03 01 00 00 DD 34 FB 00 52 F5 5A 02 01 00 02 00 EF 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9E D0 BF D0 B5 D1 80 D0 B0 D1 82 D0 BE D1 80 20 32 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 20 D0 A1 D1 83 D1 83 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 AD D0 97 20 D0 B1 2F D0 BD 2C 20 34 30 2E 37 31 30 35 32 30 2C 20 37 32 2E 38 38 36 35 36 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0C 87 C6 66 0E 04 04 00 C7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 35 04 06 00 11 5A 3F B6 D7 83 B2 4A AA 0D 10 88 8B 0C [00:32:14]Write to MH i2c: 01 00 00 7A 30 AA [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 07 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: 01 07 00 7A 30 00 00 00 00 00 B6 0E 75 [00:32:14]RasterBufferAndPrint [00:32:14]line [00:32:14]line [00:32:14]line [00:32:14]line [00:32:14]line [00:32:14]written 0, free lines is 3781 [00:32:14]MH_Cut [00:32:14]Write to MH i2c: D1 01 00 81 30 01 83 [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: D1 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: D1 01 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: D1 01 00 81 30 00 82 [00:32:14]Write to MH i2c: 01 00 00 82 30 B2 [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32: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 37 36 4F 00 00 00 6D 69 47 00 72 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 37 36 10 04 04 00 92 24 02 00 F4 03 04 00 9D 2D C6 66 B6 04 01 00 00 12 EF D0 C0 C7 B8 0C E1 [00:32:14]CommunicateWithHost err = 0 [00:32:14]CheckOFDResponse [00:32:14]1017 (14) - 77093643461234 [00:32:14]1041 (16) - 0000000000871776 [00:32:14]1040 (4) - 140434 [00:32:14]1012 (4) - 21.08.2024 18:10 [00:32:14]1206 (1) - 0 [00:32:14]OFD Sender: Remove packet 140434 [00:32:14]ProducePacketName [00:32:14]name=ofd_packets/00140434 [00:32:14]NVStorageDeleteData [00:32:14]*** Cut start [00:32:14]*** Partial cut [00:32:14]*** CUTSNS_PIN = 1 [00:32:15]*** CUTSNS_PIN = 0 [00:32:15]*** Brake cut motor [00:32:15]OFD Sender: No OFD packet to send [00:32:15]Read from MH i2c: 01 [00:32:15]MH_I2C_Read... [00:32:15]*** Stop cut motor [00:32:15]*** Cut end [00:32:15]Read from MH i2c: 01 07 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: 01 07 00 82 30 00 00 00 00 00 FF 0F C7 [00:32:15]process_action open_shift done [00:32:15]requested_data is exist [00:32:15]produce_requested_data [00:32:15]requested_item fd.num is exist - process it [00:32:15]SAM_PROTO_GetFieldsCounters [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 13 00 00 [00:32:15]Write to MH i2c: E2 08 00 83 30 80 13 00 00 00 00 00 00 2F [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:15]Read from MH i2c: E2 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 62 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 62 00 83 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:32: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 92 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:15]wFMCommunicate OK [00:32:15]SAM_PROTO_GetFieldsCounters done [00:32:15]requested_item shift.num is exist - process it [00:32:15]requested_item shift.opened is exist - process it [00:32:15]req_shift_opened [00:32:15]FM_GetShiftState [00:32:15]SAM_PROTO_GetShiftState [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 13 01 00 [00:32:15]Write to MH i2c: E2 08 00 84 30 80 13 01 00 00 00 00 00 31 [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:15]Read from MH i2c: E2 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 0E 00 [00:32:15]MH_I2C_Read... [00:32:15]Read from MH i2c: E2 0E 00 84 30 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 FC [00:32:15]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:32:15]wFMCommunicate OK [00:32:15]SAM_PROTO_GetShiftState done [00:32:15]FM_GetShiftState done [00:32:15]req_shift_opened done [00:32:15]requested_item shift.open_date is exist - process it [00:32:15]req_shift_open_date [00:32:15]req_shift_open_date done [00:32:15]produce_requested_data done [00:32:15]produce_requested_data return {"fd.num":140434,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [00:32:15]process_action_free open_shift [00:32:15]json_value_free [00:32:15]json_value_free done [00:32:15]process_json_proto returns [00:32:15]Send response to host [00:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":140434,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [00:32:15]free response buf [00:32:15]execute_script done [00:32:15]execute_script returns [00:32:15]free content buf [00:32:15]Sock 9.Close socket [00:32:15]Sock 9.Thread stoped [00:32:15]accept exits with 7 [00:32:15]New connection [00:32:15]New thread 3067469156 created [00:32:15]Thread 3067612516 joined [00:32:15]Waiting for new connection... [00:32:15] Sock 7.Parse request [00:32:15]Sock 7.Check first char [00:32:15]Sock 7.First char is OK [00:32:15]request: POST /json_proto HTTP/1.0 [00:32:15]Method: POST [00:32:15]URL: /json_proto [00:32:15]Method is POST - this is cgi request [00:32:15]url: /json_proto [00:32:15]query_string will be loaded in cgi processing [00:32:15]execute_cgi json_proto POST (null) [00:32:15]execute_cgi path=json_proto method=POST [00:32:15]POST find Content-Length [00:32:15]Host: 172.17.45.67:8080 [00:32:15]Content-Length: 331 [00:32:15]Content-Type: application/json [00:32:15] [00:32:15]POST finish read [00:32:15]Found Content-Length = 331 [00:32:15]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:32:15]execute_script... [00:32:15]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:32:15]POST & json_proto [00:32:15]process_json_proto [00:32:15]json parsed OK: [00:32:15]protocol is kg_v1.0 [00:32:15]action value=get_value [00:32:15]process_action get_value [00:32:15]cmd_get_value [00:32:15]process_action get_value done [00:32:15]requested_data is exist [00:32:15]produce_requested_data [00:32:15]requested_item fm.sale.total is exist - process it [00:32:15]SAM_PROTO_GetFMData [00:32:15]wFMCommunicate request_size=4 [00:32:15]MH_SAM_APDU [00:32:15]CAPDU: 80 13 03 00 [00:32:15]Write to MH i2c: E2 08 00 85 30 80 13 03 00 00 00 00 00 34 [00:32:15]Write i2c OK [00:32:15]MH_I2C_Read... [00:32:16]Read from MH i2c: E2 [00:32:16]MH_I2C_Read... [00:32:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:16]Read from MH i2c: E2 FD 00 [00:32:16]MH_I2C_Read... [00:32:16]Read from MH i2c: E2 FD 00 85 30 00 C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 7B [00:32:16]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 03 21 02 00 69 04 A3 00 6F 04 04 00 82 20 02 00 B1 04 05 00 43 7D E2 3D 02 70 04 05 00 34 30 8D F3 01 72 04 04 00 0F 4D 55 4A 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 78 D3 F8 3C 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 13 9D 14 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 9B 00 6F 04 04 00 81 00 00 00 B1 04 04 00 94 3F FD 01 70 04 04 00 94 3F FD 01 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E8 15 36 EF 03 09 00 90 00 [00:32:16]wFMCommunicate OK [00:32:16]wFMCommunicate request_size=4 [00:32:16]MH_SAM_APDU [00:32:16]CAPDU: 80 17 00 00 [00:32:16]Write to MH i2c: E2 08 00 86 30 80 17 00 00 00 00 00 00 36 [00:32:16]Write i2c OK [00:32:16]MH_I2C_Read... [00:32:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:16]Read from MH i2c: E2 [00:32:16]MH_I2C_Read... [00:32:16]Read from MH i2c: E2 FD 00 [00:32:16]MH_I2C_Read... [00:32:16]Read from MH i2c: E2 FD 00 86 30 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 3B [00:32:16]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CA 81 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 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 90 00 [00:32:17]wFMCommunicate OK [00:32:17]wFMCommunicate request_size=4 [00:32:17]MH_SAM_APDU [00:32:17]CAPDU: 80 17 00 00 [00:32:17]Write to MH i2c: E2 08 00 87 30 80 17 00 00 00 00 00 00 37 [00:32:17]Write i2c OK [00:32:17]MH_I2C_Read... [00:32:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:17]Read from MH i2c: E2 [00:32:17]MH_I2C_Read... [00:32:17]Read from MH i2c: E2 FD 00 [00:32:17]MH_I2C_Read... [00:32:17]Read from MH i2c: E2 FD 00 87 30 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [00:32:17]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:17]wFMCommunicate OK [00:32:17]wFMCommunicate request_size=4 [00:32:17]MH_SAM_APDU [00:32:17]CAPDU: 80 17 00 00 [00:32:17]Write to MH i2c: E2 08 00 88 30 80 17 00 00 00 00 00 00 38 [00:32:17]Write i2c OK [00:32:17]MH_I2C_Read... [00:32:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:17]Read from MH i2c: E2 [00:32:17]MH_I2C_Read... [00:32:17]Read from MH i2c: E2 FD 00 [00:32:17]MH_I2C_Read... [00:32:17]Read from MH i2c: E2 FD 00 88 30 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [00:32:18]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:18]wFMCommunicate OK [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 17 00 00 [00:32:18]Write to MH i2c: E2 08 00 89 30 80 17 00 00 00 00 00 00 39 [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 E1 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 E1 00 89 30 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 27 [00:32:18]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:18]wFMCommunicate OK [00:32:18]SAM_PROTO_GetFMData done [00:32:18]requested_item fm.sale_refund.total is exist - process it [00:32:18]requested_item fm.buy.total is exist - process it [00:32:18]requested_item shift.sale.total is exist - process it [00:32:18]SAM_PROTO_GetShiftData [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 13 02 00 [00:32:18]Write to MH i2c: E2 08 00 8A 30 80 13 02 00 00 00 00 00 38 [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 FD 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 FD 00 8A 30 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 AB [00:32:19]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:32:19]wFMCommunicate OK [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 17 00 00 [00:32:19]Write to MH i2c: E2 08 00 8B 30 80 17 00 00 00 00 00 00 3B [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 8B 30 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 43 [00:32:19]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:32:19]wFMCommunicate OK [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 17 00 00 [00:32:19]Write to MH i2c: E2 08 00 8C 30 80 17 00 00 00 00 00 00 3C [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 8C 30 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 0E [00:32:20]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:32:20]wFMCommunicate OK [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 17 00 00 [00:32:20]Write to MH i2c: E2 08 00 8D 30 80 17 00 00 00 00 00 00 3D [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 8D 30 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 AF [00:32:20]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 OFD Sender: No OFD packet to send [00:32:20]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:20]wFMCommunicate OK [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 17 00 00 [00:32:20]Write to MH i2c: E2 08 00 8E 30 80 17 00 00 00 00 00 00 3E [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 BD 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 BD 00 8E 30 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 24 [00:32:20]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:32:21]wFMCommunicate OK [00:32:21]SAM_PROTO_GetShiftData done [00:32:21]requested_item shift.sale.total_cash is exist - process it [00:32:21]requested_item shift.sale_refund.total is exist - process it [00:32:21]requested_item shift.sale_refund.total_cash is exist - process it [00:32:21]requested_item shift.buy.total is exist - process it [00:32:21]requested_item shift.buy.total_cash is exist - process it [00:32:21]produce_requested_data done [00:32:21]produce_requested_data return {"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.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:32:21]process_action_free get_value [00:32:21]json_value_free [00:32:21]json_value_free done [00:32:21]process_json_proto returns [00:32:21]Send response to host [00:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":96281879.71,"fm.sale_refund.total":333741.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:32:21]free response buf [00:32:21]execute_script done [00:32:21]execute_script returns [00:32:21]free content buf [00:32:21]Sock 7.Close socket [00:32:21]Sock 7.Thread stoped [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:27]accept exits with 9 [00:36:27]New connection [00:36:27]New thread 3067612516 created [00:36:27]Thread 3067469156 joined [00:36:27]Waiting for new connection... [00:36:27] Sock 9.Parse request [00:36:27]Sock 9.Check first char [00:36:27]Sock 9.First char is OK [00:36:27]request: POST /json_proto HTTP/1.0 [00:36:27]Method: POST [00:36:27]URL: /json_proto [00:36:27]Method is POST - this is cgi request [00:36:27]url: /json_proto [00:36:27]query_string will be loaded in cgi processing [00:36:27]execute_cgi json_proto POST (null) [00:36:27]execute_cgi path=json_proto method=POST [00:36:27]POST find Content-Length [00:36:27]Host: 172.17.45.67:8080 [00:36:27]Content-Length: 677 [00:36:27]Content-Type: application/json [00:36:27] [00:36:27]POST finish read [00:36:27]Found Content-Length = 677 [00:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:27]execute_script... [00:36: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)594292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:27]POST & json_proto [00:36:27]process_json_proto [00:36:27]json parsed OK: [00:36:27]protocol is kg_v1.0 [00:36:27]action value=close_receipt [00:36:27]process_action close_receipt [00:36:27]cmd_close_receipt [00:36:27]MH_GetDate [00:36:27]Write to MH i2c: F0 00 00 8F 30 AE [00:36:27]Write i2c OK [00:36:27]MH_I2C_Read... [00:36:27]Read from MH i2c: F0 [00:36:27]MH_I2C_Read... [00:36:27]Read from MH i2c: F0 09 00 [00:36:27]MH_I2C_Read... [00:36:27]Read from MH i2c: F0 09 00 8F 30 00 0D 88 C6 66 5F 7F 2B 66 E7 [00:36:27]GetLastDocTimeStamp 1724286732 [00:36:27]current date 1724286989 [00:36:27]FM_GetShiftState [00:36:27]SAM_PROTO_GetShiftState [00:36:27]wFMCommunicate request_size=4 [00:36:27]MH_SAM_APDU [00:36:27]CAPDU: 80 13 01 00 [00:36:27]Write to MH i2c: E2 08 00 90 30 80 13 01 00 00 00 00 00 3D [00:36:27]Write i2c OK [00:36:27]MH_I2C_Read... [00:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:27]Read from MH i2c: E2 [00:36:27]MH_I2C_Read... [00:36:27]Read from MH i2c: E2 0E 00 [00:36:27]MH_I2C_Read... [00:36:27]Read from MH i2c: E2 0E 00 90 30 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 08 [00:36:27]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:36:27]wFMCommunicate OK [00:36:27]SAM_PROTO_GetShiftState done [00:36:27]FM_GetShiftState done [00:36:27]opened in 1724286732 [00:36:27]opened+sec_in_day 1724373132 [00:36:27]quantity*price = 50010 [00:36:27]sum+1 = 50012 [00:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 1 22.08.2024 00:36 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140435 ФПД: 280692150703902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T003629&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140435&fm=280692150703902&tin=02508201610067®Number=0000000000092569&sum=50000 [00:36:28]StoreToDocumentArchive [00:36:28]shift 455 fd 140435 [00:36:28]save to /storage/0455/doc_00140435 [00:36:28]save last doc name /storage/0455/doc_00140435 to /storage/kkm_last_doc_name [00:36:28]save OK [00:36:28]Clear old archive folders... [00:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:28]tlvbuf is 00C95760 [00:36:28]SAM_PROTO_ClearQueue [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 09 00 00 [00:36:28]Write to MH i2c: E2 08 00 9D 30 80 09 00 00 00 00 00 00 3F [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [00:36:28]RAPDU: 90 00 [00:36:28]wFMCommunicate OK [00:36:28]SAM_PROTO_ClearQueue done [00:36:28]KKMCreateOFDPacket [00:36:28]OFDProtocolAddRootSTLVToBuf [00:36:28]FM_MakeSignedData [00:36:28]FM_MakeSignedData [00:36:28]SAM_PROTO_SignData [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 0D 01 02 [00:36:28]Write to MH i2c: E2 08 00 9E 30 80 0D 01 02 00 00 00 00 47 [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [00:36:28]RAPDU: 90 00 [00:36:28]wFMCommunicate OK [00:36:28]wFMCommunicate request_size=255 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0D 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 24 02 00 35 04 06 00 FF [00:36:28]Write to MH i2c: E2 02 01 9F 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0D 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 24 02 00 35 04 06 00 FF 00 00 FA [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 9F 30 00 90 00 43 [00:36:28]RAPDU: 90 00 [00:36:28]wFMCommunicate OK [00:36:28]wFMCommunicate request_size=10 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 0D 02 02 05 49 BB EF 17 1E [00:36:28]Write to MH i2c: E2 0D 00 A0 30 80 0D 02 02 05 00 49 BB EF 17 1E 00 00 7C [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 03 00 A0 30 00 90 00 44 [00:36:28]RAPDU: 90 00 [00:36:28]wFMCommunicate OK [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 0D 03 02 [00:36:28]Write to MH i2c: E2 08 00 A1 30 80 0D 03 02 00 00 00 00 4C [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:28]Read from MH i2c: E2 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0B 00 [00:36:28]MH_I2C_Read... [00:36:28]Read from MH i2c: E2 0B 00 A1 30 00 53 18 5D A2 4B A9 EC 2F 90 00 C6 [00:36:28]RAPDU: 53 18 5D A2 4B A9 EC 2F 90 00 [00:36:28]wFMCommunicate OK [00:36:28]SAM_PROTO_SignData done [00:36:28]FM_MakeSignedData done [00:36:28]CreateOFDProtocolMessage [00:36:28]wFMCommunicate request_size=4 [00:36:28]MH_SAM_APDU [00:36:28]CAPDU: 80 11 00 00 [00:36:28]Write to MH i2c: E2 08 00 A2 30 80 11 00 00 00 00 00 00 4C [00:36:28]Write i2c OK [00:36:28]MH_I2C_Read... [00:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:29]Read from MH i2c: E2 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 17 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: E2 17 00 A2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 A3 [00:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:36:29]wFMCommunicate OK [00:36:29]CreateOFDProtocolMessage done [00:36:29]OFDSenderStorePacket 140435 [00:36:29]StoreOFDPacket docnum=140435 [00:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 91 78 07 01 57 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0D 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 24 02 00 35 04 06 00 FF 49 BB EF 17 1E 53 18 5D A2 4B A9 EC 2F [00:36:29]CheckFolder [00:36:29]dirname=/storage/ofd_packets [00:36:29]CheckFolder done [00:36:29]ProducePacketName [00:36:29]name=ofd_packets/00140435 [00:36:29]NVStorageSaveData ofd_packets/00140435 [00:36:29]File name is /storage/ofd_packets/00140435 [00:36:29]Write 301 bytes [00:36:29]NVStorageSaveData done [00:36:29]OFDSenderStorePacket done [00:36:29]KKMCreateOFDPacket done [00:36:29]NVStorageSaveData kkm_last_timestamp [00:36:29]File name is /storage/kkm_last_timestamp [00:36:29]Write 4 bytes [00:36:29]NVStorageSaveData done [00:36:29]OFD Sender: Processing packet 140435 [packets to send 137, broken 136] [00:36:29]ProducePacketName [00:36:29]name=ofd_packets/00140435 [00:36:29]OFD Sender: To server: pG, [00:36:29]CommunicateWithHost lk.salyk.kg:30040 [00:36:29]ConnectInit lk.salyk.kg [00:36:29]ExternCall_PrintAddStr [00:36:29]wPrintStart [00:36:29]Write to MH i2c: 01 00 00 A3 30 D3 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 07 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 07 00 A3 30 00 00 00 00 00 FF 0F E8 [00:36:29]RasterBufferAndPrint [00:36:29]line Счет N : (1)594292 [00:36:29]line ИНН: 02508201610067 [00:36:29]line Контрольно-Кассовый Чек [00:36:29]line ПРОДАЖА [00:36:29]line ТРК (МРК, ГНК) : 41 [00:36:29]line Товар: 2710124500 [00:36:29]line Аи-95-К-5 [00:36:29]line 6.740 * 74.20 [00:36:29]line = 500.11 [00:36:29]line НДС 12% НСП 1% [00:36:29]line > о реализуемом товаре [00:36:29]line ОКРУГЛЕНИЕ: -0.11 [00:36:29]line ИТОГО: 500.00 [00:36:29]line Внесено: 500.00 [00:36:29]line СДАЧА: 0.00 [00:36:29]line НСП 1% : 4.43 [00:36:29]line НДС 12% : 53.11 [00:36:29]line Наличными: 500.00 [00:36:29]line Безнал.: 0.00 [00:36:29]line Место: АЗС № 136 "Партнер Нефть" [00:36:29]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:36:29]line СНО: Общий режим [00:36:29]line Чек 1 22.08.2024 00:36 [00:36:29]line Смена: 455 ФФД: 1.0 [00:36:29]line ЗНМ: 0300000067 [00:36:29]line РНМ: 0000000000092569 [00:36:29]line Версия ККМ: 001 [00:36:29]line ФМ: 0000000000871776 [00:36:29]line ФД: 140435 [00:36:29]line ФПД: 280692150703902 [00:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T003629&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140435&fm=280692150703902&tin=02508201610067®Number=0000000000092569&sum=50000 [00:36:29]Connected sock=11 [00:36: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 37 36 0F 01 00 00 91 78 07 01 57 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0D 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 93 24 02 00 35 04 06 00 FF 49 BB EF 17 1E 53 18 5D A2 4B A9 EC 2F [00:36:29]written 0, free lines is 4095 [00:36: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 37 36 4F 00 00 00 52 A3 47 00 5A 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 37 36 10 04 04 00 93 24 02 00 F4 03 04 00 9C 2E C6 66 B6 04 01 00 00 E5 48 29 CC 40 EB AF 10 [00:36:29]CommunicateWithHost err = 0 [00:36:29]CheckOFDResponse [00:36:29]1017 (14) - 77093643461234 [00:36:29]1041 (16) - 0000000000871776 [00:36:29]1040 (4) - 140435 [00:36:29]1012 (4) - 21.08.2024 18:14 [00:36:29]1206 (1) - 0 [00:36:29]OFD Sender: Remove packet 140435 [00:36:29]ProducePacketName [00:36:29]name=ofd_packets/00140435 [00:36:29]NVStorageDeleteData [00:36:29]Write to MH i2c: 01 00 00 CE 30 FE [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 07 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: 01 07 00 CE 30 00 00 00 00 00 C2 0C D3 [00:36:29]RasterBufferAndPrint [00:36:29]line [00:36:29]line [00:36:29]line [00:36:29]line [00:36:29]line [00:36:29]written 0, free lines is 3275 [00:36:29]MH_Cut [00:36:29]Write to MH i2c: D1 01 00 D5 30 01 D7 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: D1 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: D1 01 00 [00:36:29]MH_I2C_Read... [00:36:29]Read from MH i2c: D1 01 00 D5 30 00 D6 [00:36:29]Write to MH i2c: 01 00 00 D6 30 06 [00:36:29]Write i2c OK [00:36:29]MH_I2C_Read... [00:36:30]OFD Sender: No OFD packet to send [00:36:30]*** Cut start [00:36:30]*** Partial cut [00:36:30]*** CUTSNS_PIN = 1 [00:36:30]*** CUTSNS_PIN = 0 [00:36:30]*** Brake cut motor [00:36:31]Read from MH i2c: 01 [00:36:31]MH_I2C_Read... [00:36:31]*** Stop cut motor [00:36:31]*** Cut end [00:36:31]Read from MH i2c: 01 07 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: 01 07 00 D6 30 00 00 00 00 00 FF 0F 1B [00:36:31]process_action close_receipt done [00:36:31]requested_data is exist [00:36:31]produce_requested_data [00:36:31]requested_item fm.sn is exist - process it [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 11 00 00 [00:36:31]Write to MH i2c: E2 08 00 D7 30 80 11 00 00 00 00 00 00 81 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 17 00 D7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D8 [00:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:36:31]wFMCommunicate OK [00:36:31]requested_item fd.num is exist - process it [00:36:31]SAM_PROTO_GetFieldsCounters [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 13 00 00 [00:36:31]Write to MH i2c: E2 08 00 D8 30 80 13 00 00 00 00 00 00 84 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 62 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 62 00 D8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [00:36: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 93 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:31]wFMCommunicate OK [00:36:31]SAM_PROTO_GetFieldsCounters done [00:36:31]requested_item shift.num is exist - process it [00:36:31]requested_item shift.opened is exist - process it [00:36:31]req_shift_opened [00:36:31]FM_GetShiftState [00:36:31]SAM_PROTO_GetShiftState [00:36:31]wFMCommunicate request_size=4 [00:36:31]MH_SAM_APDU [00:36:31]CAPDU: 80 13 01 00 [00:36:31]Write to MH i2c: E2 08 00 D9 30 80 13 01 00 00 00 00 00 86 [00:36:31]Write i2c OK [00:36:31]MH_I2C_Read... [00:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:31]Read from MH i2c: E2 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0E 00 [00:36:31]MH_I2C_Read... [00:36:31]Read from MH i2c: E2 0E 00 D9 30 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 51 [00:36:31]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:36:31]wFMCommunicate OK [00:36:31]SAM_PROTO_GetShiftState done [00:36:31]FM_GetShiftState done [00:36:31]req_shift_opened done [00:36:31]requested_item shift.open_date is exist - process it [00:36:31]req_shift_open_date [00:36:31]req_shift_open_date done [00:36:31]produce_requested_data done [00:36:31]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140435,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [00:36:31]process_action_free close_receipt [00:36:31]json_value_free [00:36:31]json_value_free done [00:36:31]process_json_proto returns [00:36:31]Send response to host [00:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140435,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [00:36:31]free response buf [00:36:31]execute_script done [00:36:31]execute_script returns [00:36:31]free content buf [00:36:31]Sock 9.Close socket [00:36:31]Sock 9.Thread stoped [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:42]accept exits with 7 [00:36:42]New connection [00:36:42]New thread 3067469156 created [00:36:42]Thread 3067612516 joined [00:36:42]Waiting for new connection... [00:36:42] Sock 7.Parse request [00:36:42]Sock 7.Check first char [00:36:42]Sock 7.First char is OK [00:36:42]request: POST /json_proto HTTP/1.0 [00:36:42]Method: POST [00:36:42]URL: /json_proto [00:36:42]Method is POST - this is cgi request [00:36:42]url: /json_proto [00:36:42]query_string will be loaded in cgi processing [00:36:42]execute_cgi json_proto POST (null) [00:36:42]execute_cgi path=json_proto method=POST [00:36:42]POST find Content-Length [00:36:42]Host: 172.17.45.67:8080 [00:36:42]Content-Length: 682 [00:36:42]Content-Type: application/json [00:36:42] [00:36:42]POST finish read [00:36:42]Found Content-Length = 682 [00:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.820, "sum" : 1470.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:42]execute_script... [00: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)594291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.820, "sum" : 1470.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1470.00, "total" : 1470.00, "payments": [ { "type": 0, "sum" : 1470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:42]POST & json_proto [00:36:42]process_json_proto [00:36:42]json parsed OK: [00:36:42]protocol is kg_v1.0 [00:36:42]action value=close_receipt [00:36:42]process_action close_receipt [00:36:42]cmd_close_receipt [00:36:42]MH_GetDate [00:36:42]Write to MH i2c: F0 00 00 DA 30 F9 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: F0 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: F0 09 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: F0 09 00 DA 30 00 1C 88 C6 66 5F 7F 2B 66 41 [00:36:42]GetLastDocTimeStamp 1724286989 [00:36:42]current date 1724287004 [00:36:42]FM_GetShiftState [00:36:42]SAM_PROTO_GetShiftState [00:36:42]wFMCommunicate request_size=4 [00:36:42]MH_SAM_APDU [00:36:42]CAPDU: 80 13 01 00 [00:36:42]Write to MH i2c: E2 08 00 DB 30 80 13 01 00 00 00 00 00 88 [00:36:42]Write i2c OK [00:36:42]MH_I2C_Read... [00:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:42]Read from MH i2c: E2 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 0E 00 [00:36:42]MH_I2C_Read... [00:36:42]Read from MH i2c: E2 0E 00 DB 30 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 53 [00:36:42]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:36:42]wFMCommunicate OK [00:36:42]SAM_PROTO_GetShiftState done [00:36:42]FM_GetShiftState done [00:36:42]opened in 1724286732 [00:36:42]opened+sec_in_day 1724373132 [00:36:42]quantity*price = 147064 [00:36:42]sum+1 = 147065 [00:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1470.00 Внесено: 1470.00 СДАЧА: 0.00 НСП 1% : 13.01 НДС 12% : 156.17 Наличными: 1470.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 2 22.08.2024 00:36 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140436 ФПД: 18574258415150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T003644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140436&fm=18574258415150&tin=02508201610067®Number=0000000000092569&sum=147000 [00:36:43]StoreToDocumentArchive [00:36:43]shift 455 fd 140436 [00:36:43]save to /storage/0455/doc_00140436 [00:36:43]save last doc name /storage/0455/doc_00140436 to /storage/kkm_last_doc_name [00:36:43]save OK [00:36:43]Clear old archive folders... [00:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:43]tlvbuf is B6FF97D0 [00:36:43]SAM_PROTO_ClearQueue [00:36:43]wFMCommunicate request_size=4 [00:36:43]MH_SAM_APDU [00:36:43]CAPDU: 80 09 00 00 [00:36:43]Write to MH i2c: E2 08 00 E8 30 80 09 00 00 00 00 00 00 8A [00:36:43]Write i2c OK [00:36:43]MH_I2C_Read... [00:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:43]Read from MH i2c: E2 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 03 00 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [00:36:43]RAPDU: 90 00 [00:36:43]wFMCommunicate OK [00:36:43]SAM_PROTO_ClearQueue done [00:36:43]KKMCreateOFDPacket [00:36:43]OFDProtocolAddRootSTLVToBuf [00:36:43]FM_MakeSignedData [00:36:43]FM_MakeSignedData [00:36:43]SAM_PROTO_SignData [00:36:43]wFMCommunicate request_size=4 [00:36:43]MH_SAM_APDU [00:36:43]CAPDU: 80 0D 01 02 [00:36:43]Write to MH i2c: E2 08 00 E9 30 80 0D 01 02 00 00 00 00 92 [00:36:43]Write i2c OK [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 [00:36:43]MH_I2C_Read... [00:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:43]Read from MH i2c: E2 03 00 [00:36:43]MH_I2C_Read... [00:36:43]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [00:36:43]RAPDU: 90 00 [00:36:43]wFMCommunicate OK [00:36:43]wFMCommunicate request_size=255 [00:36:43]MH_SAM_APDU [00:36:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 78 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 1C 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 24 02 00 35 04 06 00 10 [00:36:43]Write to MH i2c: E2 02 01 EA 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 78 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 1C 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 24 02 00 35 04 06 00 10 00 00 DF [00:36:43]Write i2c OK [00:36:43]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 03 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [00:36:44]RAPDU: 90 00 [00:36:44]wFMCommunicate OK [00:36:44]wFMCommunicate request_size=10 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 0D 02 02 05 E4 A8 13 26 2E [00:36:44]Write to MH i2c: E2 0D 00 EB 30 80 0D 02 02 05 00 E4 A8 13 26 2E 00 00 92 [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:44]Read from MH i2c: E2 03 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [00:36:44]RAPDU: 90 00 [00:36:44]wFMCommunicate OK [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 0D 03 02 [00:36:44]Write to MH i2c: E2 08 00 EC 30 80 0D 03 02 00 00 00 00 97 [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 0B 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 0B 00 EC 30 00 B2 6A D6 32 BF D7 CB 0C 90 00 29 [00:36:44]RAPDU: B2 6A D6 32 BF D7 CB 0C 90 00 [00:36:44]wFMCommunicate OK [00:36:44]SAM_PROTO_SignData done [00:36:44]FM_MakeSignedData done [00:36:44]CreateOFDProtocolMessage [00:36:44]wFMCommunicate request_size=4 [00:36:44]MH_SAM_APDU [00:36:44]CAPDU: 80 11 00 00 [00:36:44]Write to MH i2c: E2 08 00 ED 30 80 11 00 00 00 00 00 00 97 [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:44]Read from MH i2c: E2 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 17 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: E2 17 00 ED 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 EE [00:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:36:44]wFMCommunicate OK [00:36:44]CreateOFDProtocolMessage done [00:36:44]OFDSenderStorePacket 140436 [00:36:44]StoreOFDPacket docnum=140436 [00:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 7F 00 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 78 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 1C 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 24 02 00 35 04 06 00 10 E4 A8 13 26 2E B2 6A D6 32 BF D7 CB 0C [00:36:44]CheckFolder [00:36:44]dirname=/storage/ofd_packets [00:36:44]CheckFolder done [00:36:44]ProducePacketName [00:36:44]name=ofd_packets/00140436 [00:36:44]NVStorageSaveData ofd_packets/00140436 [00:36:44]File name is /storage/ofd_packets/00140436 [00:36:44]Write 301 bytes [00:36:44]NVStorageSaveData done [00:36:44]OFDSenderStorePacket done [00:36:44]KKMCreateOFDPacket done [00:36:44]NVStorageSaveData kkm_last_timestamp [00:36:44]File name is /storage/kkm_last_timestamp [00:36:44]Write 4 bytes [00:36:44]NVStorageSaveData done [00:36:44]ExternCall_PrintAddStr [00:36:44]wPrintStart [00:36:44]Write to MH i2c: 01 00 00 EE 30 1E [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 07 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 FF 0F 33 [00:36:44]RasterBufferAndPrint [00:36:44]line Счет N : (1)594291 [00:36:44]line ИНН: 02508201610067 [00:36:44]line Контрольно-Кассовый Чек [00:36:44]line ПРОДАЖА [00:36:44]line ТРК (МРК, ГНК) : 31 [00:36:44]line Товар: 2710124500 [00:36:44]line Аи-95-К-5 [00:36:44]line 19.820 * 74.20 [00:36:44]line = 1470.64 [00:36:44]line НДС 12% НСП 1% [00:36:44]line > о реализуемом товаре [00:36:44]line ОКРУГЛЕНИЕ: -0.64 [00:36:44]line ИТОГО: 1470.00 [00:36:44]line Внесено: 1470.00 [00:36:44]line СДАЧА: 0.00 [00:36:44]line НСП 1% : 13.01 [00:36:44]line НДС 12% : 156.17 [00:36:44]line Наличными: 1470.00 [00:36:44]line Безнал.: 0.00 [00:36:44]line Место: АЗС № 136 "Партнер Нефть" [00:36:44]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:36:44]line СНО: Общий режим [00:36:44]line Чек 2 22.08.2024 00:36 [00:36:44]line Смена: 455 ФФД: 1.0 [00:36:44]line ЗНМ: 0300000067 [00:36:44]line РНМ: 0000000000092569 [00:36:44]line Версия ККМ: 001 [00:36:44]line ФМ: 0000000000871776 [00:36:44]line ФД: 140436 [00:36:44]line ФПД: 18574258415150 [00:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T003644&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140436&fm=18574258415150&tin=02508201610067®Number=0000000000092569&sum=147000 [00:36:44]OFD Sender: Processing packet 140436 [packets to send 137, broken 136] [00:36:44]ProducePacketName [00:36:44]name=ofd_packets/00140436 [00:36:44]OFD Sender: To server: pG, [00:36:44]CommunicateWithHost lk.salyk.kg:30040 [00:36:44]ConnectInit lk.salyk.kg [00:36:44]written 0, free lines is 4095 [00:36:44]Connected sock=10 [00: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 37 36 0F 01 00 00 7F 00 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 78 3E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 3E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 15 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 3D 00 00 00 00 07 04 06 00 38 3E 02 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 1C 88 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 94 24 02 00 35 04 06 00 10 E4 A8 13 26 2E B2 6A D6 32 BF D7 CB 0C [00: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 37 36 4F 00 00 00 AB DD 47 00 27 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 37 36 10 04 04 00 94 24 02 00 F4 03 04 00 AB 2E C6 66 B6 04 01 00 00 C0 BD B5 E8 EF 27 48 92 [00:36:44]CommunicateWithHost err = 0 [00:36:44]CheckOFDResponse [00:36:44]1017 (14) - 77093643461234 [00:36:44]1041 (16) - 0000000000871776 [00:36:44]1040 (4) - 140436 [00:36:44]1012 (4) - 21.08.2024 18:15 [00:36:44]1206 (1) - 0 [00:36:44]OFD Sender: Remove packet 140436 [00:36:44]ProducePacketName [00:36:44]name=ofd_packets/00140436 [00:36:44]NVStorageDeleteData [00:36:44]Write to MH i2c: 01 00 00 19 31 4A [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 07 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: 01 07 00 19 31 00 00 00 00 00 E4 0C 41 [00:36:44]RasterBufferAndPrint [00:36:44]line [00:36:44]line [00:36:44]line [00:36:44]line [00:36:44]line [00:36:44]written 0, free lines is 3306 [00:36:44]MH_Cut [00:36:44]Write to MH i2c: D1 01 00 20 31 01 23 [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: D1 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: D1 01 00 [00:36:44]MH_I2C_Read... [00:36:44]Read from MH i2c: D1 01 00 20 31 00 22 [00:36:44]Write to MH i2c: 01 00 00 21 31 52 [00:36:44]Write i2c OK [00:36:44]MH_I2C_Read... [00:36:45]OFD Sender: No OFD packet to send [00:36:45]*** Cut start [00:36:45]*** Partial cut [00:36:45]*** CUTSNS_PIN = 1 [00:36:45]*** CUTSNS_PIN = 0 [00:36:45]*** Brake cut motor [00:36:46]Read from MH i2c: 01 [00:36:46]MH_I2C_Read... [00:36:46]*** Stop cut motor [00:36:46]*** Cut end [00:36:46]Read from MH i2c: 01 07 00 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: 01 07 00 21 31 00 00 00 00 00 FF 0F 67 [00:36:46]process_action close_receipt done [00:36:46]requested_data is exist [00:36:46]produce_requested_data [00:36:46]requested_item fm.sn is exist - process it [00:36:46]wFMCommunicate request_size=4 [00:36:46]MH_SAM_APDU [00:36:46]CAPDU: 80 11 00 00 [00:36:46]Write to MH i2c: E2 08 00 22 31 80 11 00 00 00 00 00 00 CD [00:36:46]Write i2c OK [00:36:46]MH_I2C_Read... [00:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:46]Read from MH i2c: E2 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 17 00 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 17 00 22 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 24 [00:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:36:46]wFMCommunicate OK [00:36:46]requested_item fd.num is exist - process it [00:36:46]SAM_PROTO_GetFieldsCounters [00:36:46]wFMCommunicate request_size=4 [00:36:46]MH_SAM_APDU [00:36:46]CAPDU: 80 13 00 00 [00:36:46]Write to MH i2c: E2 08 00 23 31 80 13 00 00 00 00 00 00 D0 [00:36:46]Write i2c OK [00:36:46]MH_I2C_Read... [00:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:46]Read from MH i2c: E2 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 62 00 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 62 00 23 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [00: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 94 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:46]wFMCommunicate OK [00:36:46]SAM_PROTO_GetFieldsCounters done [00:36:46]requested_item shift.num is exist - process it [00:36:46]requested_item shift.opened is exist - process it [00:36:46]req_shift_opened [00:36:46]FM_GetShiftState [00:36:46]SAM_PROTO_GetShiftState [00:36:46]wFMCommunicate request_size=4 [00:36:46]MH_SAM_APDU [00:36:46]CAPDU: 80 13 01 00 [00:36:46]Write to MH i2c: E2 08 00 24 31 80 13 01 00 00 00 00 00 D2 [00:36:46]Write i2c OK [00:36:46]MH_I2C_Read... [00:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:46]Read from MH i2c: E2 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 0E 00 [00:36:46]MH_I2C_Read... [00:36:46]Read from MH i2c: E2 0E 00 24 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 9D [00:36:46]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:36:46]wFMCommunicate OK [00:36:46]SAM_PROTO_GetShiftState done [00:36:46]FM_GetShiftState done [00:36:46]req_shift_opened done [00:36:46]requested_item shift.open_date is exist - process it [00:36:46]req_shift_open_date [00:36:46]req_shift_open_date done [00:36:46]produce_requested_data done [00:36:46]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140436,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [00:36:46]process_action_free close_receipt [00:36:46]json_value_free [00:36:46]json_value_free done [00:36:46]process_json_proto returns [00:36:46]Send response to host [00:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140436,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [00:36:46]free response buf [00:36:46]execute_script done [00:36:46]execute_script returns [00:36:46]free content buf [00:36:46]Sock 7.Close socket [00:36:46]Sock 7.Thread stoped [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:25]accept exits with 9 [00:48:25]New connection [00:48:25]New thread 3067612516 created [00:48:25]Thread 3067469156 joined [00:48:25]Waiting for new connection... [00:48:25] Sock 9.Parse request [00:48:25]Sock 9.Check first char [00:48:25]Sock 9.First char is OK [00:48:25]request: POST /json_proto HTTP/1.0 [00:48:25]Method: POST [00:48:25]URL: /json_proto [00:48:25]Method is POST - this is cgi request [00:48:25]url: /json_proto [00:48:25]query_string will be loaded in cgi processing [00:48:25]execute_cgi json_proto POST (null) [00:48:25]execute_cgi path=json_proto method=POST [00:48:25]POST find Content-Length [00:48:25]Host: 172.17.45.67:8080 [00:48:25]Content-Length: 818 [00:48:25]Content-Type: application/json [00:48:25] [00:48:25]POST finish read [00:48:25]Found Content-Length = 818 [00:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:25]execute_script... [00:48: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)594294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:25]POST & json_proto [00:48:25]process_json_proto [00:48:25]json parsed OK: [00:48:25]protocol is kg_v1.0 [00:48:25]action value=close_receipt [00:48:25]process_action close_receipt [00:48:25]cmd_close_receipt [00:48:25]MH_GetDate [00:48:25]Write to MH i2c: F0 00 00 25 31 45 [00:48:25]Write i2c OK [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: F0 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: F0 09 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: F0 09 00 25 31 00 DB 8A C6 66 5F 7F 2B 66 4E [00:48:25]GetLastDocTimeStamp 1724287004 [00:48:25]current date 1724287707 [00:48:25]FM_GetShiftState [00:48:25]SAM_PROTO_GetShiftState [00:48:25]wFMCommunicate request_size=4 [00:48:25]MH_SAM_APDU [00:48:25]CAPDU: 80 13 01 00 [00:48:25]Write to MH i2c: E2 08 00 26 31 80 13 01 00 00 00 00 00 D4 [00:48:25]Write i2c OK [00:48:25]MH_I2C_Read... [00:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:25]Read from MH i2c: E2 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 0E 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 0E 00 26 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 9F [00:48:25]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:48:25]wFMCommunicate OK [00:48:25]SAM_PROTO_GetShiftState done [00:48:25]FM_GetShiftState done [00:48:25]opened in 1724286732 [00:48:25]opened+sec_in_day 1724373132 [00:48:25]quantity*price = 20001 [00:48:25]sum+1 = 20002 [00:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 3 22.08.2024 00:48 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871776 ФД: 140437 ФПД: 38857901874552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T004827&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140437&fm=38857901874552&tin=02508201610067®Number=0000000000092569&sum=20000 [00:48:26]StoreToDocumentArchive [00:48:26]shift 455 fd 140437 [00:48:26]save to /storage/0455/doc_00140437 [00:48:26]save last doc name /storage/0455/doc_00140437 to /storage/kkm_last_doc_name [00:48:26]save OK [00:48:26]Clear old archive folders... [00:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:26]tlvbuf is B6FF6010 [00:48:26]SAM_PROTO_ClearQueue [00:48:26]wFMCommunicate request_size=4 [00:48:26]MH_SAM_APDU [00:48:26]CAPDU: 80 09 00 00 [00:48:26]Write to MH i2c: E2 08 00 33 31 80 09 00 00 00 00 00 00 D6 [00:48:26]Write i2c OK [00:48:26]MH_I2C_Read... [00:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:26]Read from MH i2c: E2 [00:48:26]MH_I2C_Read... [00:48:26]Read from MH i2c: E2 03 00 [00:48:26]MH_I2C_Read... [00:48:26]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [00:48:26]RAPDU: 90 00 [00:48:26]wFMCommunicate OK [00:48:26]SAM_PROTO_ClearQueue done [00:48:26]KKMCreateOFDPacket [00:48:26]OFDProtocolAddRootSTLVToBuf [00:48:26]FM_MakeSignedData [00:48:26]FM_MakeSignedData [00:48:26]SAM_PROTO_SignData [00:48:26]wFMCommunicate request_size=4 [00:48:26]MH_SAM_APDU [00:48:26]CAPDU: 80 0D 01 02 [00:48:26]Write to MH i2c: E2 08 00 34 31 80 0D 01 02 00 00 00 00 DE [00:48:26]Write i2c OK [00:48:26]MH_I2C_Read... [00:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:26]Read from MH i2c: E2 [00:48:26]MH_I2C_Read... [00:48:26]Read from MH i2c: E2 03 00 [00:48:26]MH_I2C_Read... [00:48:26]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [00:48:26]RAPDU: 90 00 [00:48:26]wFMCommunicate OK [00:48:26]wFMCommunicate request_size=255 [00:48:26]MH_SAM_APDU [00:48: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DB 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 24 02 00 35 04 06 00 23 [00:48:26]Write to MH i2c: E2 02 01 35 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DB 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 24 02 00 35 04 06 00 23 00 00 A3 [00:48:26]Write i2c OK [00:48:26]MH_I2C_Read... [00:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:27]Read from MH i2c: E2 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 03 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 03 00 35 31 00 90 00 DA [00:48:27]RAPDU: 90 00 [00:48:27]wFMCommunicate OK [00:48:27]wFMCommunicate request_size=10 [00:48:27]MH_SAM_APDU [00:48:27]CAPDU: 80 0D 02 02 05 57 4F 70 1D 78 [00:48:27]Write to MH i2c: E2 0D 00 36 31 80 0D 02 02 05 00 57 4F 70 1D 78 00 00 96 [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:27]Read from MH i2c: E2 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 03 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 03 00 36 31 00 90 00 DB [00:48:27]RAPDU: 90 00 [00:48:27]wFMCommunicate OK [00:48:27]wFMCommunicate request_size=4 [00:48:27]MH_SAM_APDU [00:48:27]CAPDU: 80 0D 03 02 [00:48:27]Write to MH i2c: E2 08 00 37 31 80 0D 03 02 00 00 00 00 E3 [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:27]Read from MH i2c: E2 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 0B 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 0B 00 37 31 00 90 7F B8 06 A5 A0 7A C1 90 00 31 [00:48:27]RAPDU: 90 7F B8 06 A5 A0 7A C1 90 00 [00:48:27]wFMCommunicate OK [00:48:27]SAM_PROTO_SignData done [00:48:27]FM_MakeSignedData done [00:48:27]CreateOFDProtocolMessage [00:48:27]wFMCommunicate request_size=4 [00:48:27]MH_SAM_APDU [00:48:27]CAPDU: 80 11 00 00 [00:48:27]Write to MH i2c: E2 08 00 38 31 80 11 00 00 00 00 00 00 E3 [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:27]Read from MH i2c: E2 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 17 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: E2 17 00 38 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 3A [00:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:48:27]wFMCommunicate OK [00:48:27]CreateOFDProtocolMessage done [00:48:27]OFDSenderStorePacket 140437 [00:48:27]StoreOFDPacket docnum=140437 [00:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8B 46 07 01 DB 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DB 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 24 02 00 35 04 06 00 23 57 4F 70 1D 78 90 7F B8 06 A5 A0 7A C1 [00:48:27]CheckFolder [00:48:27]dirname=/storage/ofd_packets [00:48:27]CheckFolder done [00:48:27]ProducePacketName [00:48:27]name=ofd_packets/00140437 [00:48:27]NVStorageSaveData ofd_packets/00140437 [00:48:27]File name is /storage/ofd_packets/00140437 [00:48:27]Write 301 bytes [00:48:27]NVStorageSaveData done [00:48:27]OFDSenderStorePacket done [00:48:27]KKMCreateOFDPacket done [00:48:27]NVStorageSaveData kkm_last_timestamp [00:48:27]File name is /storage/kkm_last_timestamp [00:48:27]Write 4 bytes [00:48:27]NVStorageSaveData done [00:48:27]ExternCall_PrintAddStr [00:48:27]wPrintStart [00:48:27]Write to MH i2c: 01 00 00 39 31 6A [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 07 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 07 00 39 31 00 00 00 00 00 FF 0F 7F [00:48:27]RasterBufferAndPrint [00:48:27]line Счет N : (1)594294 [00:48:27]line ИНН: 02508201610067 [00:48:27]line Контрольно-Кассовый Чек [00:48:27]line ПРОДАЖА [00:48:27]line ТРК (МРК, ГНК) : 52 [00:48:27]line Товар: 2710124130 [00:48:27]line Аи-92-К-5 [00:48:27]line 2.950 * 67.80 [00:48:27]line = 200.01 [00:48:27]line НДС 12% НСП 1% [00:48:27]line > о реализуемом товаре [00:48:27]line ОКРУГЛЕНИЕ: -0.01 [00:48:27]line ИТОГО: 200.00 [00:48:27]line НСП 1% : 1.77 [00:48:27]line НДС 12% : 21.24 [00:48:27]line Наличными: 0.00 [00:48:27]line Безнал.: 200.00 [00:48:27]line Место: АЗС № 136 "Партнер Нефть" [00:48:27]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:48:27]line СНО: Общий режим [00:48:27]line Чек 3 22.08.2024 00:48 [00:48:27]line Смена: 455 ФФД: 1.0 [00:48:27]line ЗНМ: 0300000067 [00:48:27]line РНМ: 0000000000092569 [00:48:27]line Версия ККМ: 001 [00:48:27]line Платежная система: O! деньги [00:48:27]line ФМ: 0000000000871776 [00:48:27]line ФД: 140437 [00:48:27]line ФПД: 38857901874552 [00:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T004827&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140437&fm=38857901874552&tin=02508201610067®Number=0000000000092569&sum=20000 [00:48:27]OFD Sender: Processing packet 140437 [packets to send 137, broken 136] [00:48:27]ProducePacketName [00:48:27]name=ofd_packets/00140437 [00:48:27]OFD Sender: To server: pG, [00:48:27]CommunicateWithHost lk.salyk.kg:30040 [00:48:27]ConnectInit lk.salyk.kg [00:48:27]written 0, free lines is 4095 [00:48:27]Connected sock=10 [00:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 8B 46 07 01 DB 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DB 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 24 02 00 35 04 06 00 23 57 4F 70 1D 78 90 7F B8 06 A5 A0 7A C1 [00:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 C6 C7 47 00 DA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 95 24 02 00 F4 03 04 00 6A 31 C6 66 B6 04 01 00 00 D7 A6 95 77 1E AB 1B CD [00:48:27]CommunicateWithHost err = 0 [00:48:27]CheckOFDResponse [00:48:27]1017 (14) - 77093643461234 [00:48:27]1041 (16) - 0000000000871776 [00:48:27]1040 (4) - 140437 [00:48:27]1012 (4) - 21.08.2024 18:26 [00:48:27]1206 (1) - 0 [00:48:27]OFD Sender: Remove packet 140437 [00:48:27]ProducePacketName [00:48:27]name=ofd_packets/00140437 [00:48:27]NVStorageDeleteData [00:48:27]Write to MH i2c: 01 00 00 64 31 95 [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 07 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: 01 07 00 64 31 00 00 00 00 00 D8 0C 80 [00:48:27]RasterBufferAndPrint [00:48:27]line [00:48:27]line [00:48:27]line [00:48:27]line [00:48:27]line [00:48:27]written 0, free lines is 3295 [00:48:27]MH_Cut [00:48:27]Write to MH i2c: D1 01 00 6B 31 01 6E [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: D1 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: D1 01 00 [00:48:27]MH_I2C_Read... [00:48:27]Read from MH i2c: D1 01 00 6B 31 00 6D [00:48:27]Write to MH i2c: 01 00 00 6C 31 9D [00:48:27]Write i2c OK [00:48:27]MH_I2C_Read... [00:48:28]OFD Sender: No OFD packet to send [00:48:28]*** Cut start [00:48:28]*** Partial cut [00:48:28]*** CUTSNS_PIN = 1 [00:48:28]*** CUTSNS_PIN = 0 [00:48:28]*** Brake cut motor [00:48:29]Read from MH i2c: 01 [00:48:29]MH_I2C_Read... [00:48:29]*** Stop cut motor [00:48:29]*** Cut end [00:48:29]Read from MH i2c: 01 07 00 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: 01 07 00 6C 31 00 00 00 00 00 FF 0F B2 [00:48:29]process_action close_receipt done [00:48:29]requested_data is exist [00:48:29]produce_requested_data [00:48:29]requested_item fm.sn is exist - process it [00:48:29]wFMCommunicate request_size=4 [00:48:29]MH_SAM_APDU [00:48:29]CAPDU: 80 11 00 00 [00:48:29]Write to MH i2c: E2 08 00 6D 31 80 11 00 00 00 00 00 00 18 [00:48:29]Write i2c OK [00:48:29]MH_I2C_Read... [00:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:29]Read from MH i2c: E2 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 17 00 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 17 00 6D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 6F [00:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:48:29]wFMCommunicate OK [00:48:29]requested_item fd.num is exist - process it [00:48:29]SAM_PROTO_GetFieldsCounters [00:48:29]wFMCommunicate request_size=4 [00:48:29]MH_SAM_APDU [00:48:29]CAPDU: 80 13 00 00 [00:48:29]Write to MH i2c: E2 08 00 6E 31 80 13 00 00 00 00 00 00 1B [00:48:29]Write i2c OK [00:48:29]MH_I2C_Read... [00:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:29]Read from MH i2c: E2 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 62 00 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 62 00 6E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [00:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 95 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:29]wFMCommunicate OK [00:48:29]SAM_PROTO_GetFieldsCounters done [00:48:29]requested_item shift.num is exist - process it [00:48:29]requested_item shift.opened is exist - process it [00:48:29]req_shift_opened [00:48:29]FM_GetShiftState [00:48:29]SAM_PROTO_GetShiftState [00:48:29]wFMCommunicate request_size=4 [00:48:29]MH_SAM_APDU [00:48:29]CAPDU: 80 13 01 00 [00:48:29]Write to MH i2c: E2 08 00 6F 31 80 13 01 00 00 00 00 00 1D [00:48:29]Write i2c OK [00:48:29]MH_I2C_Read... [00:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:29]Read from MH i2c: E2 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 0E 00 [00:48:29]MH_I2C_Read... [00:48:29]Read from MH i2c: E2 0E 00 6F 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 E8 [00:48:29]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:48:29]wFMCommunicate OK [00:48:29]SAM_PROTO_GetShiftState done [00:48:29]FM_GetShiftState done [00:48:29]req_shift_opened done [00:48:29]requested_item shift.open_date is exist - process it [00:48:29]req_shift_open_date [00:48:29]req_shift_open_date done [00:48:29]produce_requested_data done [00:48:29]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140437,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [00:48:29]process_action_free close_receipt [00:48:29]json_value_free [00:48:29]json_value_free done [00:48:29]process_json_proto returns [00:48:29]Send response to host [00:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140437,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [00:48:29]free response buf [00:48:29]execute_script done [00:48:29]execute_script returns [00:48:29]free content buf [00:48:29]Sock 9.Close socket [00:48:29]Sock 9.Thread stoped [00:48:33]OFD Sender: No OFD packet to send [00:48:35]accept exits with 7 [00:48:35]New connection [00:48:35]New thread 3067469156 created [00:48:35]Thread 3067612516 joined [00:48:35]Waiting for new connection... [00:48:35] Sock 7.Parse request [00:48:35]Sock 7.Check first char [00:48:35]Sock 7.First char is OK [00:48:35]request: POST /json_proto HTTP/1.0 [00:48:35]Method: POST [00:48:35]URL: /json_proto [00:48:35]Method is POST - this is cgi request [00:48:35]url: /json_proto [00:48:35]query_string will be loaded in cgi processing [00:48:35]execute_cgi json_proto POST (null) [00:48:35]execute_cgi path=json_proto method=POST [00:48:35]POST find Content-Length [00:48:35]Host: 172.17.45.67:8080 [00:48:35]Content-Length: 677 [00:48:35]Content-Type: application/json [00:48:35] [00:48:35]POST finish read [00:48:35]Found Content-Length = 677 [00:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.150, "sum" : 620.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:35]execute_script... [00:48:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 9.150, "sum" : 620.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:35]POST & json_proto [00:48:35]process_json_proto [00:48:35]json parsed OK: [00:48:35]protocol is kg_v1.0 [00:48:35]action value=close_receipt [00:48:35]process_action close_receipt [00:48:35]cmd_close_receipt [00:48:35]MH_GetDate [00:48:35]Write to MH i2c: F0 00 00 70 31 90 [00:48:35]Write i2c OK [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: F0 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: F0 09 00 [00:48:35]MH_I2C_Read... [00:48:35]Read from MH i2c: F0 09 00 70 31 00 E5 8A C6 66 5F 7F 2B 66 A3 [00:48:35]GetLastDocTimeStamp 1724287707 [00:48:35]current date 1724287717 [00:48:35]FM_GetShiftState [00:48:35]SAM_PROTO_GetShiftState [00:48:35]wFMCommunicate request_size=4 [00:48:35]MH_SAM_APDU [00:48:35]CAPDU: 80 13 01 00 [00:48:35]Write to MH i2c: E2 08 00 71 31 80 13 01 00 00 00 00 00 1F [00:48:35]Write i2c OK [00:48:35]MH_I2C_Read... [00:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:36]Read from MH i2c: E2 [00:48:36]MH_I2C_Read... [00:48:36]Read from MH i2c: E2 0E 00 [00:48:36]MH_I2C_Read... [00:48:36]Read from MH i2c: E2 0E 00 71 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 EA [00:48:36]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:48:36]wFMCommunicate OK [00:48:36]SAM_PROTO_GetShiftState done [00:48:36]FM_GetShiftState done [00:48:36]opened in 1724286732 [00:48:36]opened+sec_in_day 1724373132 [00:48:36]quantity*price = 62037 [00:48:36]sum+1 = 62038 [00:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.88 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 4 22.08.2024 00:48 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140438 ФПД: 264326456561984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T004837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140438&fm=264326456561984&tin=02508201610067®Number=0000000000092569&sum=62000 [00:48:37]StoreToDocumentArchive [00:48:37]shift 455 fd 140438 [00:48:37]save to /storage/0455/doc_00140438 [00:48:37]save last doc name /storage/0455/doc_00140438 to /storage/kkm_last_doc_name [00:48:37]save OK [00:48:37]Clear old archive folders... [00:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:37]tlvbuf is 00C8A430 [00:48:37]SAM_PROTO_ClearQueue [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 09 00 00 [00:48:37]Write to MH i2c: E2 08 00 7E 31 80 09 00 00 00 00 00 00 21 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 7E 31 00 90 00 23 [00:48:37]RAPDU: 90 00 [00:48:37]wFMCommunicate OK [00:48:37]SAM_PROTO_ClearQueue done [00:48:37]KKMCreateOFDPacket [00:48:37]OFDProtocolAddRootSTLVToBuf [00:48:37]FM_MakeSignedData [00:48:37]FM_MakeSignedData [00:48:37]SAM_PROTO_SignData [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 0D 01 02 [00:48:37]Write to MH i2c: E2 08 00 7F 31 80 0D 01 02 00 00 00 00 29 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 7F 31 00 90 00 24 [00:48:37]RAPDU: 90 00 [00:48:37]wFMCommunicate OK [00:48:37]wFMCommunicate request_size=255 [00:48:37]MH_SAM_APDU [00:48: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 BE 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 55 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 24 02 00 35 04 06 00 F0 [00:48:37]Write to MH i2c: E2 02 01 80 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 55 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 24 02 00 35 04 06 00 F0 00 00 4E [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 80 31 00 90 00 25 [00:48:37]RAPDU: 90 00 [00:48:37]wFMCommunicate OK [00:48:37]wFMCommunicate request_size=10 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 0D 02 02 05 67 4C 8C 51 40 [00:48:37]Write to MH i2c: E2 0D 00 81 31 80 0D 02 02 05 00 67 4C 8C 51 40 00 00 06 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 03 00 81 31 00 90 00 26 [00:48:37]RAPDU: 90 00 [00:48:37]wFMCommunicate OK [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 0D 03 02 [00:48:37]Write to MH i2c: E2 08 00 82 31 80 0D 03 02 00 00 00 00 2E [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0B 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 0B 00 82 31 00 DF 13 89 5F 8C 46 BC A6 90 00 3D [00:48:37]RAPDU: DF 13 89 5F 8C 46 BC A6 90 00 [00:48:37]wFMCommunicate OK [00:48:37]SAM_PROTO_SignData done [00:48:37]FM_MakeSignedData done [00:48:37]CreateOFDProtocolMessage [00:48:37]wFMCommunicate request_size=4 [00:48:37]MH_SAM_APDU [00:48:37]CAPDU: 80 11 00 00 [00:48:37]Write to MH i2c: E2 08 00 83 31 80 11 00 00 00 00 00 00 2E [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:37]Read from MH i2c: E2 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 17 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: E2 17 00 83 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 85 [00:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:48:37]wFMCommunicate OK [00:48:37]CreateOFDProtocolMessage done [00:48:37]OFDSenderStorePacket 140438 [00:48:37]StoreOFDPacket docnum=140438 [00:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 E3 07 01 71 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 BE 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 55 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 24 02 00 35 04 06 00 F0 67 4C 8C 51 40 DF 13 89 5F 8C 46 BC A6 [00:48:37]CheckFolder [00:48:37]dirname=/storage/ofd_packets [00:48:37]CheckFolder done [00:48:37]ProducePacketName [00:48:37]name=ofd_packets/00140438 [00:48:37]NVStorageSaveData ofd_packets/00140438 [00:48:37]File name is /storage/ofd_packets/00140438 [00:48:37]Write 301 bytes [00:48:37]NVStorageSaveData done [00:48:37]OFDSenderStorePacket done [00:48:37]KKMCreateOFDPacket done [00:48:37]NVStorageSaveData kkm_last_timestamp [00:48:37]File name is /storage/kkm_last_timestamp [00:48:37]Write 4 bytes [00:48:37]NVStorageSaveData done [00:48:37]ExternCall_PrintAddStr [00:48:37]wPrintStart [00:48:37]Write to MH i2c: 01 00 00 84 31 B5 [00:48:37]Write i2c OK [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: 01 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: 01 07 00 [00:48:37]MH_I2C_Read... [00:48:37]Read from MH i2c: 01 07 00 84 31 00 00 00 00 00 FF 0F CA [00:48:37]RasterBufferAndPrint [00:48:37]line Счет N : (1)594293 [00:48:37]line ИНН: 02508201610067 [00:48:37]line Контрольно-Кассовый Чек [00:48:37]line ПРОДАЖА [00:48:37]line ТРК (МРК, ГНК) : 42 [00:48:37]line Товар: 2710124130 [00:48:37]line Аи-92-К-5 [00:48:37]line 9.150 * 67.80 [00:48:37]line = 620.37 [00:48:37]line НДС 12% НСП 1% [00:48:37]line > о реализуемом товаре [00:48:37]line ОКРУГЛЕНИЕ: -0.37 [00:48:37]line ИТОГО: 620.00 [00:48:37]line Внесено: 620.00 [00:48:37]line СДАЧА: 0.00 [00:48:37]line НСП 1% : 5.49 [00:48:37]line НДС 12% : 65.88 [00:48:37]line Наличными: 620.00 [00:48:37]line Безнал.: 0.00 [00:48:37]line Место: АЗС № 136 "Партнер Нефть" [00:48:37]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [00:48:37]line СНО: Общий режим [00:48:37]line Чек 4 22.08.2024 00:48 [00:48:37]line Смена: 455 ФФД: 1.0 [00:48:37]line ЗНМ: 0300000067 [00:48:37]line РНМ: 0000000000092569 [00:48:37]line Версия ККМ: 001 [00:48:37]line ФМ: 0000000000871776 [00:48:37]line ФД: 140438 [00:48:37]line ФПД: 264326456561984 [00:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T004837&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140438&fm=264326456561984&tin=02508201610067®Number=0000000000092569&sum=62000 [00:48:37]OFD Sender: Processing packet 140438 [packets to send 137, broken 136] [00:48:37]ProducePacketName [00:48:37]name=ofd_packets/00140438 [00:48:37]OFD Sender: To server: pG, [00:48:37]CommunicateWithHost lk.salyk.kg:30040 [00:48:37]ConnectInit lk.salyk.kg [00:48:37]written 0, free lines is 4095 [00:48:37]Connected sock=10 [00:48:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 93 E3 07 01 71 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 BE 23 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 55 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 8A C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 96 24 02 00 35 04 06 00 F0 67 4C 8C 51 40 DF 13 89 5F 8C 46 BC A6 [00:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 4F 00 00 00 77 2F 47 00 07 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 37 36 10 04 04 00 96 24 02 00 F4 03 04 00 75 31 C6 66 B6 04 01 00 00 D5 AB A0 87 E2 F8 21 70 [00:48:38]CommunicateWithHost err = 0 [00:48:38]CheckOFDResponse [00:48:38]1017 (14) - 77093643461234 [00:48:38]1041 (16) - 0000000000871776 [00:48:38]1040 (4) - 140438 [00:48:38]1012 (4) - 21.08.2024 18:27 [00:48:38]1206 (1) - 0 [00:48:38]OFD Sender: Remove packet 140438 [00:48:38]ProducePacketName [00:48:38]name=ofd_packets/00140438 [00:48:38]NVStorageDeleteData [00:48:38]Write to MH i2c: 01 00 00 AF 31 E0 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: 01 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: 01 07 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: 01 07 00 AF 31 00 00 00 00 00 D5 0C C8 [00:48:38]RasterBufferAndPrint [00:48:38]line [00:48:38]line [00:48:38]line [00:48:38]line [00:48:38]line [00:48:38]written 0, free lines is 3298 [00:48:38]MH_Cut [00:48:38]Write to MH i2c: D1 01 00 B6 31 01 B9 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: D1 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: D1 01 00 [00:48:38]MH_I2C_Read... [00:48:38]Read from MH i2c: D1 01 00 B6 31 00 B8 [00:48:38]Write to MH i2c: 01 00 00 B7 31 E8 [00:48:38]Write i2c OK [00:48:38]MH_I2C_Read... [00:48:38]OFD Sender: No OFD packet to send [00:48:38]*** Cut start [00:48:38]*** Partial cut [00:48:38]*** CUTSNS_PIN = 1 [00:48:38]*** CUTSNS_PIN = 0 [00:48:39]*** Brake cut motor [00:48:39]Read from MH i2c: 01 [00:48:39]MH_I2C_Read... [00:48:39]*** Stop cut motor [00:48:39]*** Cut end [00:48:39]Read from MH i2c: 01 07 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: 01 07 00 B7 31 00 00 00 00 00 FF 0F FD [00:48:39]process_action close_receipt done [00:48:39]requested_data is exist [00:48:39]produce_requested_data [00:48:39]requested_item fm.sn is exist - process it [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 11 00 00 [00:48:39]Write to MH i2c: E2 08 00 B8 31 80 11 00 00 00 00 00 00 63 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 17 00 B8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 BA [00:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [00:48:39]wFMCommunicate OK [00:48:39]requested_item fd.num is exist - process it [00:48:39]SAM_PROTO_GetFieldsCounters [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 13 00 00 [00:48:39]Write to MH i2c: E2 08 00 B9 31 80 13 00 00 00 00 00 00 66 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 62 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 62 00 B9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [00:48:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 96 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:39]wFMCommunicate OK [00:48:39]SAM_PROTO_GetFieldsCounters done [00:48:39]requested_item shift.num is exist - process it [00:48:39]requested_item shift.opened is exist - process it [00:48:39]req_shift_opened [00:48:39]FM_GetShiftState [00:48:39]SAM_PROTO_GetShiftState [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 13 01 00 [00:48:39]Write to MH i2c: E2 08 00 BA 31 80 13 01 00 00 00 00 00 68 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0E 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0E 00 BA 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 33 [00:48:39]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [00:48:39]wFMCommunicate OK [00:48:39]SAM_PROTO_GetShiftState done [00:48:39]FM_GetShiftState done [00:48:39]req_shift_opened done [00:48:39]requested_item shift.open_date is exist - process it [00:48:39]req_shift_open_date [00:48:39]req_shift_open_date done [00:48:39]produce_requested_data done [00:48:39]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140438,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [00:48:39]process_action_free close_receipt [00:48:39]json_value_free [00:48:39]json_value_free done [00:48:39]process_json_proto returns [00:48:39]Send response to host [00:48:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140438,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [00:48:39]free response buf [00:48:39]execute_script done [00:48:39]execute_script returns [00:48:39]free content buf [00:48:39]Sock 7.Close socket [00:48:39]Sock 7.Thread stoped [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53: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:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:02]accept exits with 9 [01:17:02]New connection [01:17:02]New thread 3067612516 created [01:17:02]Thread 3067469156 joined [01:17:02]Waiting for new connection... [01:17:02] Sock 9.Parse request [01:17:02]Sock 9.Check first char [01:17:02]Sock 9.First char is OK [01:17:02]request: POST /json_proto HTTP/1.0 [01:17:02]Method: POST [01:17:02]URL: /json_proto [01:17:02]Method is POST - this is cgi request [01:17:02]url: /json_proto [01:17:02]query_string will be loaded in cgi processing [01:17:02]execute_cgi json_proto POST (null) [01:17:02]execute_cgi path=json_proto method=POST [01:17:02]POST find Content-Length [01:17:02]Host: 172.17.45.67:8080 [01:17:02]Content-Length: 677 [01:17:02]Content-Type: application/json [01:17:02] [01:17:02]POST finish read [01:17:02]Found Content-Length = 677 [01:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:02]execute_script... [01:17: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)594295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:17:02]POST & json_proto [01:17:02]process_json_proto [01:17:02]json parsed OK: [01:17:02]protocol is kg_v1.0 [01:17:02]action value=close_receipt [01:17:02]process_action close_receipt [01:17:02]cmd_close_receipt [01:17:02]MH_GetDate [01:17:02]Write to MH i2c: F0 00 00 BB 31 DB [01:17:02]Write i2c OK [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: F0 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: F0 09 00 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: F0 09 00 BB 31 00 8F 91 C6 66 5F 7F 2B 66 9F [01:17:02]GetLastDocTimeStamp 1724287717 [01:17:02]current date 1724289423 [01:17:02]FM_GetShiftState [01:17:02]SAM_PROTO_GetShiftState [01:17:02]wFMCommunicate request_size=4 [01:17:02]MH_SAM_APDU [01:17:02]CAPDU: 80 13 01 00 [01:17:02]Write to MH i2c: E2 08 00 BC 31 80 13 01 00 00 00 00 00 6A [01:17:02]Write i2c OK [01:17:02]MH_I2C_Read... [01:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:02]Read from MH i2c: E2 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 0E 00 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 0E 00 BC 31 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 35 [01:17:02]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [01:17:02]wFMCommunicate OK [01:17:02]SAM_PROTO_GetShiftState done [01:17:02]FM_GetShiftState done [01:17:02]opened in 1724286732 [01:17:02]opened+sec_in_day 1724373132 [01:17:02]quantity*price = 70044 [01:17:02]sum+1 = 70046 [01:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 5 22.08.2024 01:17 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140439 ФПД: 165298383456039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T011704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140439&fm=165298383456039&tin=02508201610067®Number=0000000000092569&sum=70000 [01:17:03]StoreToDocumentArchive [01:17:03]shift 455 fd 140439 [01:17:03]save to /storage/0455/doc_00140439 [01:17:03]save last doc name /storage/0455/doc_00140439 to /storage/kkm_last_doc_name [01:17:03]save OK [01:17:03]Clear old archive folders... [01:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:17:03]tlvbuf is 00C34130 [01:17:03]SAM_PROTO_ClearQueue [01:17:03]wFMCommunicate request_size=4 [01:17:03]MH_SAM_APDU [01:17:03]CAPDU: 80 09 00 00 [01:17:03]Write to MH i2c: E2 08 00 C9 31 80 09 00 00 00 00 00 00 6C [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 C9 31 00 90 00 6E [01:17:03]RAPDU: 90 00 [01:17:03]wFMCommunicate OK [01:17:03]SAM_PROTO_ClearQueue done [01:17:03]KKMCreateOFDPacket [01:17:03]OFDProtocolAddRootSTLVToBuf [01:17:03]FM_MakeSignedData [01:17:03]FM_MakeSignedData [01:17:03]SAM_PROTO_SignData [01:17:03]wFMCommunicate request_size=4 [01:17:03]MH_SAM_APDU [01:17:03]CAPDU: 80 0D 01 02 [01:17:03]Write to MH i2c: E2 08 00 CA 31 80 0D 01 02 00 00 00 00 74 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 CA 31 00 90 00 6F [01:17:03]RAPDU: 90 00 [01:17:03]wFMCommunicate OK [01:17:03]wFMCommunicate request_size=255 [01:17:03]MH_SAM_APDU [01:17: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 91 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 24 02 00 35 04 06 00 96 [01:17:03]Write to MH i2c: E2 02 01 CB 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 91 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 24 02 00 35 04 06 00 96 00 00 61 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 CB 31 00 90 00 70 [01:17:03]RAPDU: 90 00 [01:17:03]wFMCommunicate OK [01:17:03]wFMCommunicate request_size=10 [01:17:03]MH_SAM_APDU [01:17:03]CAPDU: 80 0D 02 02 05 56 87 6D 87 27 [01:17:03]Write to MH i2c: E2 0D 00 CC 31 80 0D 02 02 05 00 56 87 6D 87 27 00 00 79 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 03 00 CC 31 00 90 00 71 [01:17:03]RAPDU: 90 00 [01:17:03]wFMCommunicate OK [01:17:03]wFMCommunicate request_size=4 [01:17:03]MH_SAM_APDU [01:17:03]CAPDU: 80 0D 03 02 [01:17:03]Write to MH i2c: E2 08 00 CD 31 80 0D 03 02 00 00 00 00 79 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 0B 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 0B 00 CD 31 00 48 54 BC 56 09 BC 3A 6A 90 00 91 [01:17:03]RAPDU: 48 54 BC 56 09 BC 3A 6A 90 00 [01:17:03]wFMCommunicate OK [01:17:03]SAM_PROTO_SignData done [01:17:03]FM_MakeSignedData done [01:17:03]CreateOFDProtocolMessage [01:17:03]wFMCommunicate request_size=4 [01:17:03]MH_SAM_APDU [01:17:03]CAPDU: 80 11 00 00 [01:17:03]Write to MH i2c: E2 08 00 CE 31 80 11 00 00 00 00 00 00 79 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:03]Read from MH i2c: E2 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 17 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: E2 17 00 CE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 D0 [01:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:17:03]wFMCommunicate OK [01:17:03]CreateOFDProtocolMessage done [01:17:03]OFDSenderStorePacket 140439 [01:17:03]StoreOFDPacket docnum=140439 [01:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 FF CD 07 01 40 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 91 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 24 02 00 35 04 06 00 96 56 87 6D 87 27 48 54 BC 56 09 BC 3A 6A [01:17:03]CheckFolder [01:17:03]dirname=/storage/ofd_packets [01:17:03]CheckFolder done [01:17:03]ProducePacketName [01:17:03]name=ofd_packets/00140439 [01:17:03]NVStorageSaveData ofd_packets/00140439 [01:17:03]File name is /storage/ofd_packets/00140439 [01:17:03]Write 301 bytes [01:17:03]NVStorageSaveData done [01:17:03]OFDSenderStorePacket done [01:17:03]KKMCreateOFDPacket done [01:17:03]NVStorageSaveData kkm_last_timestamp [01:17:03]File name is /storage/kkm_last_timestamp [01:17:03]Write 4 bytes [01:17:03]NVStorageSaveData done [01:17:03]ExternCall_PrintAddStr [01:17:03]wPrintStart [01:17:03]Write to MH i2c: 01 00 00 CF 31 00 [01:17:03]Write i2c OK [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: 01 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: 01 07 00 [01:17:03]MH_I2C_Read... [01:17:03]Read from MH i2c: 01 07 00 CF 31 00 00 00 00 00 FF 0F 15 [01:17:03]RasterBufferAndPrint [01:17:03]line Счет N : (1)594295 [01:17:03]line ИНН: 02508201610067 [01:17:03]line Контрольно-Кассовый Чек [01:17:03]line ПРОДАЖА [01:17:03]line ТРК (МРК, ГНК) : 41 [01:17:03]line Товар: 2710124500 [01:17:03]line Аи-95-К-5 [01:17:03]line 9.440 * 74.20 [01:17:03]line = 700.45 [01:17:03]line НДС 12% НСП 1% [01:17:03]line > о реализуемом товаре [01:17:03]line ОКРУГЛЕНИЕ: -0.45 [01:17:03]line ИТОГО: 700.00 [01:17:03]line Внесено: 700.00 [01:17:03]line СДАЧА: 0.00 [01:17:03]line НСП 1% : 6.20 [01:17:03]line НДС 12% : 74.38 [01:17:03]line Наличными: 700.00 [01:17:03]line Безнал.: 0.00 [01:17:03]line Место: АЗС № 136 "Партнер Нефть" [01:17:03]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [01:17:03]line СНО: Общий режим [01:17:03]line Чек 5 22.08.2024 01:17 [01:17:03]line Смена: 455 ФФД: 1.0 [01:17:03]line ЗНМ: 0300000067 [01:17:03]line РНМ: 0000000000092569 [01:17:03]line Версия ККМ: 001 [01:17:03]line ФМ: 0000000000871776 [01:17:03]line ФД: 140439 [01:17:03]line ФПД: 165298383456039 [01:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T011704&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140439&fm=165298383456039&tin=02508201610067®Number=0000000000092569&sum=70000 [01:17:04]OFD Sender: Processing packet 140439 [packets to send 137, broken 136] [01:17:04]ProducePacketName [01:17:04]name=ofd_packets/00140439 [01:17:04]OFD Sender: To server: pG, [01:17:04]CommunicateWithHost lk.salyk.kg:30040 [01:17:04]ConnectInit lk.salyk.kg [01:17:04]written 0, free lines is 4095 [01:17:04]Connected sock=10 [01:17: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 37 36 0F 01 00 00 FF CD 07 01 40 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 90 91 C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 97 24 02 00 35 04 06 00 96 56 87 6D 87 27 48 54 BC 56 09 BC 3A 6A [01:17: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 37 36 4F 00 00 00 A7 E8 47 00 A3 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 37 36 10 04 04 00 97 24 02 00 F4 03 04 00 1F 38 C6 66 B6 04 01 00 00 5B 76 90 BD 58 ED 9B 8B [01:17:04]CommunicateWithHost err = 0 [01:17:04]CheckOFDResponse [01:17:04]1017 (14) - 77093643461234 [01:17:04]1041 (16) - 0000000000871776 [01:17:04]1040 (4) - 140439 [01:17:04]1012 (4) - 21.08.2024 18:55 [01:17:04]1206 (1) - 0 [01:17:04]OFD Sender: Remove packet 140439 [01:17:04]ProducePacketName [01:17:04]name=ofd_packets/00140439 [01:17:04]NVStorageDeleteData [01:17:04]Write to MH i2c: 01 00 00 FA 31 2B [01:17:04]Write i2c OK [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: 01 [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: 01 07 00 [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: 01 07 00 FA 31 00 00 00 00 00 BF 0C FD [01:17:04]RasterBufferAndPrint [01:17:04]line [01:17:04]line [01:17:04]line [01:17:04]line [01:17:04]line [01:17:04]written 0, free lines is 3272 [01:17:04]MH_Cut [01:17:04]Write to MH i2c: D1 01 00 01 32 01 05 [01:17:04]Write i2c OK [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: D1 [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: D1 01 00 [01:17:04]MH_I2C_Read... [01:17:04]Read from MH i2c: D1 01 00 01 32 00 04 [01:17:04]Write to MH i2c: 01 00 00 02 32 34 [01:17:04]Write i2c OK [01:17:04]MH_I2C_Read... [01:17:04]OFD Sender: No OFD packet to send [01:17:05]*** Cut start [01:17:05]*** Partial cut [01:17:05]*** CUTSNS_PIN = 1 [01:17:05]*** CUTSNS_PIN = 0 [01:17:05]*** Brake cut motor [01:17:05]Read from MH i2c: 01 [01:17:05]MH_I2C_Read... [01:17:05]*** Stop cut motor [01:17:05]*** Cut end [01:17:05]Read from MH i2c: 01 07 00 [01:17:05]MH_I2C_Read... [01:17:05]Read from MH i2c: 01 07 00 02 32 00 00 00 00 00 FF 0F 49 [01:17:05]process_action close_receipt done [01:17:05]requested_data is exist [01:17:05]produce_requested_data [01:17:05]requested_item fm.sn is exist - process it [01:17:05]wFMCommunicate request_size=4 [01:17:05]MH_SAM_APDU [01:17:05]CAPDU: 80 11 00 00 [01:17:05]Write to MH i2c: E2 08 00 03 32 80 11 00 00 00 00 00 00 AF [01:17:05]Write i2c OK [01:17:05]MH_I2C_Read... [01:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:05]Read from MH i2c: E2 [01:17:05]MH_I2C_Read... [01:17:05]Read from MH i2c: E2 17 00 [01:17:05]MH_I2C_Read... [01:17:05]Read from MH i2c: E2 17 00 03 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 06 [01:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [01:17:05]wFMCommunicate OK [01:17:05]requested_item fd.num is exist - process it [01:17:05]SAM_PROTO_GetFieldsCounters [01:17:05]wFMCommunicate request_size=4 [01:17:05]MH_SAM_APDU [01:17:05]CAPDU: 80 13 00 00 [01:17:05]Write to MH i2c: E2 08 00 04 32 80 13 00 00 00 00 00 00 B2 [01:17:05]Write i2c OK [01:17:05]MH_I2C_Read... [01:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:06]Read from MH i2c: E2 [01:17:06]MH_I2C_Read... [01:17:06]Read from MH i2c: E2 62 00 [01:17:06]MH_I2C_Read... [01:17:06]Read from MH i2c: E2 62 00 04 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [01:17:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 97 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:06]wFMCommunicate OK [01:17:06]SAM_PROTO_GetFieldsCounters done [01:17:06]requested_item shift.num is exist - process it [01:17:06]requested_item shift.opened is exist - process it [01:17:06]req_shift_opened [01:17:06]FM_GetShiftState [01:17:06]SAM_PROTO_GetShiftState [01:17:06]wFMCommunicate request_size=4 [01:17:06]MH_SAM_APDU [01:17:06]CAPDU: 80 13 01 00 [01:17:06]Write to MH i2c: E2 08 00 05 32 80 13 01 00 00 00 00 00 B4 [01:17:06]Write i2c OK [01:17:06]MH_I2C_Read... [01:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:06]Read from MH i2c: E2 [01:17:06]MH_I2C_Read... [01:17:06]Read from MH i2c: E2 0E 00 [01:17:06]MH_I2C_Read... [01:17:06]Read from MH i2c: E2 0E 00 05 32 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 7F [01:17:06]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [01:17:06]wFMCommunicate OK [01:17:06]SAM_PROTO_GetShiftState done [01:17:06]FM_GetShiftState done [01:17:06]req_shift_opened done [01:17:06]requested_item shift.open_date is exist - process it [01:17:06]req_shift_open_date [01:17:06]req_shift_open_date done [01:17:06]produce_requested_data done [01:17:06]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140439,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [01:17:06]process_action_free close_receipt [01:17:06]json_value_free [01:17:06]json_value_free done [01:17:06]process_json_proto returns [01:17:06]Send response to host [01:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140439,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [01:17:06]free response buf [01:17:06]execute_script done [01:17:06]execute_script returns [01:17:06]free content buf [01:17:06]Sock 9.Close socket [01:17:06]Sock 9.Thread stoped [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12: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:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [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:42]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: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:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]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:18]accept exits with 7 [03:11:18]New connection [03:11:18]New thread 3067469156 created [03:11:18]Thread 3067612516 joined [03:11:18]Waiting for new connection... [03:11:18] Sock 7.Parse request [03:11:18]Sock 7.Check first char [03:11:18]Sock 7.First char is OK [03:11:18]request: POST /json_proto HTTP/1.0 [03:11:18]Method: POST [03:11:18]URL: /json_proto [03:11:18]Method is POST - this is cgi request [03:11:18]url: /json_proto [03:11:18]query_string will be loaded in cgi processing [03:11:18]execute_cgi json_proto POST (null) [03:11:18]execute_cgi path=json_proto method=POST [03:11:18]POST find Content-Length [03:11:18]Host: 172.17.45.67:8080 [03:11:18]Content-Length: 677 [03:11:18]Content-Type: application/json [03:11:18] [03:11:18]POST finish read [03:11:18]Found Content-Length = 677 [03:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)594296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:18]execute_script... [03:11: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)594296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:18]POST & json_proto [03:11:18]process_json_proto [03:11:18]json parsed OK: [03:11:18]protocol is kg_v1.0 [03:11:18]action value=close_receipt [03:11:18]process_action close_receipt [03:11:18]cmd_close_receipt [03:11:18]MH_GetDate [03:11:18]Write to MH i2c: F0 00 00 06 32 27 [03:11:18]Write i2c OK [03:11:18]MH_I2C_Read... [03:11:18]Read from MH i2c: F0 [03:11:18]MH_I2C_Read... [03:11:18]Read from MH i2c: F0 09 00 [03:11:18]MH_I2C_Read... [03:11:18]Read from MH i2c: F0 09 00 06 32 00 58 AC C6 66 5F 7F 2B 66 CF [03:11:18]GetLastDocTimeStamp 1724289424 [03:11:18]current date 1724296280 [03:11:18]FM_GetShiftState [03:11:18]SAM_PROTO_GetShiftState [03:11:18]wFMCommunicate request_size=4 [03:11:18]MH_SAM_APDU [03:11:18]CAPDU: 80 13 01 00 [03:11:18]Write to MH i2c: E2 08 00 07 32 80 13 01 00 00 00 00 00 B6 [03:11:18]Write i2c OK [03:11:18]MH_I2C_Read... [03:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:18]Read from MH i2c: E2 [03:11:18]MH_I2C_Read... [03:11:18]Read from MH i2c: E2 0E 00 [03:11:18]MH_I2C_Read... [03:11:18]Read from MH i2c: E2 0E 00 07 32 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 81 [03:11:18]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [03:11:18]wFMCommunicate OK [03:11:18]SAM_PROTO_GetShiftState done [03:11:18]FM_GetShiftState done [03:11:18]opened in 1724286732 [03:11:18]opened+sec_in_day 1724373132 [03:11:18]quantity*price = 50036 [03:11:18]sum+1 = 50037 [03:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 136 "Партнер Нефть" Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 СНО: Общий режим Чек 6 22.08.2024 03:11 Смена: 455 ФФД: 1.0 ЗНМ: 0300000067 РНМ: 0000000000092569 Версия ККМ: 001 ФМ: 0000000000871776 ФД: 140440 ФПД: 150557191637584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T031120&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140440&fm=150557191637584&tin=02508201610067®Number=0000000000092569&sum=50000 [03:11:19]StoreToDocumentArchive [03:11:19]shift 455 fd 140440 [03:11:19]save to /storage/0455/doc_00140440 [03:11:19]save last doc name /storage/0455/doc_00140440 to /storage/kkm_last_doc_name [03:11:19]save OK [03:11:19]Clear old archive folders... [03:11:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:11:19]tlvbuf is 00CC81F0 [03:11:19]SAM_PROTO_ClearQueue [03:11:19]wFMCommunicate request_size=4 [03:11:19]MH_SAM_APDU [03:11:19]CAPDU: 80 09 00 00 [03:11:19]Write to MH i2c: E2 08 00 14 32 80 09 00 00 00 00 00 00 B8 [03:11:19]Write i2c OK [03:11:19]MH_I2C_Read... [03:11:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:19]Read from MH i2c: E2 [03:11:19]MH_I2C_Read... [03:11:19]Read from MH i2c: E2 03 00 [03:11:19]MH_I2C_Read... [03:11:19]Read from MH i2c: E2 03 00 14 32 00 90 00 BA [03:11:19]RAPDU: 90 00 [03:11:19]wFMCommunicate OK [03:11:19]SAM_PROTO_ClearQueue done [03:11:19]KKMCreateOFDPacket [03:11:19]OFDProtocolAddRootSTLVToBuf [03:11:19]FM_MakeSignedData [03:11:19]FM_MakeSignedData [03:11:19]SAM_PROTO_SignData [03:11:19]wFMCommunicate request_size=4 [03:11:19]MH_SAM_APDU [03:11:19]CAPDU: 80 0D 01 02 [03:11:19]Write to MH i2c: E2 08 00 15 32 80 0D 01 02 00 00 00 00 C0 [03:11:19]Write i2c OK [03:11:19]MH_I2C_Read... [03:11:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:19]Read from MH i2c: E2 [03:11:19]MH_I2C_Read... [03:11:19]Read from MH i2c: E2 03 00 [03:11:19]MH_I2C_Read... [03:11:19]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [03:11:19]RAPDU: 90 00 [03:11:19]wFMCommunicate OK [03:11:19]wFMCommunicate request_size=255 [03:11:19]MH_SAM_APDU [03:11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 AC C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 24 02 00 35 04 06 00 88 [03:11:19]Write to MH i2c: E2 02 01 16 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 AC C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 24 02 00 35 04 06 00 88 00 00 8D [03:11:19]Write i2c OK [03:11:19]MH_I2C_Read... [03:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:20]Read from MH i2c: E2 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 03 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 03 00 16 32 00 90 00 BC [03:11:20]RAPDU: 90 00 [03:11:20]wFMCommunicate OK [03:11:20]wFMCommunicate request_size=10 [03:11:20]MH_SAM_APDU [03:11:20]CAPDU: 80 0D 02 02 05 EE 53 ED 0A 50 [03:11:20]Write to MH i2c: E2 0D 00 17 32 80 0D 02 02 05 00 EE 53 ED 0A 50 00 00 55 [03:11:20]Write i2c OK [03:11:20]MH_I2C_Read... [03:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:20]Read from MH i2c: E2 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 03 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 03 00 17 32 00 90 00 BD [03:11:20]RAPDU: 90 00 [03:11:20]wFMCommunicate OK [03:11:20]wFMCommunicate request_size=4 [03:11:20]MH_SAM_APDU [03:11:20]CAPDU: 80 0D 03 02 [03:11:20]Write to MH i2c: E2 08 00 18 32 80 0D 03 02 00 00 00 00 C5 [03:11:20]Write i2c OK [03:11:20]MH_I2C_Read... [03:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:20]Read from MH i2c: E2 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 0B 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 0B 00 18 32 00 89 37 4D B5 25 83 96 94 90 00 5A [03:11:20]RAPDU: 89 37 4D B5 25 83 96 94 90 00 [03:11:20]wFMCommunicate OK [03:11:20]SAM_PROTO_SignData done [03:11:20]FM_MakeSignedData done [03:11:20]CreateOFDProtocolMessage [03:11:20]wFMCommunicate request_size=4 [03:11:20]MH_SAM_APDU [03:11:20]CAPDU: 80 11 00 00 [03:11:20]Write to MH i2c: E2 08 00 19 32 80 11 00 00 00 00 00 00 C5 [03:11:20]Write i2c OK [03:11:20]MH_I2C_Read... [03:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:20]Read from MH i2c: E2 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 17 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: E2 17 00 19 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 1C [03:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:11:20]wFMCommunicate OK [03:11:20]CreateOFDProtocolMessage done [03:11:20]OFDSenderStorePacket 140440 [03:11:20]StoreOFDPacket docnum=140440 [03:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0F 01 00 00 6F E6 07 01 BE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 AC C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 24 02 00 35 04 06 00 88 EE 53 ED 0A 50 89 37 4D B5 25 83 96 94 [03:11:20]CheckFolder [03:11:20]dirname=/storage/ofd_packets [03:11:20]CheckFolder done [03:11:20]ProducePacketName [03:11:20]name=ofd_packets/00140440 [03:11:20]NVStorageSaveData ofd_packets/00140440 [03:11:20]File name is /storage/ofd_packets/00140440 [03:11:20]Write 301 bytes [03:11:20]NVStorageSaveData done [03:11:20]OFDSenderStorePacket done [03:11:20]KKMCreateOFDPacket done [03:11:20]NVStorageSaveData kkm_last_timestamp [03:11:20]File name is /storage/kkm_last_timestamp [03:11:20]Write 4 bytes [03:11:20]NVStorageSaveData done [03:11:20]ExternCall_PrintAddStr [03:11:20]wPrintStart [03:11:20]Write to MH i2c: 01 00 00 1A 32 4C [03:11:20]Write i2c OK [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 07 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 07 00 1A 32 00 00 00 00 00 FF 0F 61 [03:11:20]RasterBufferAndPrint [03:11:20]line Счет N : (1)594296 [03:11:20]line ИНН: 02508201610067 [03:11:20]line Контрольно-Кассовый Чек [03:11:20]line ПРОДАЖА [03:11:20]line ТРК (МРК, ГНК) : 62 [03:11:20]line Товар: 2710124130 [03:11:20]line Аи-92-К-5 [03:11:20]line 7.380 * 67.80 [03:11:20]line = 500.36 [03:11:20]line НДС 12% НСП 1% [03:11:20]line > о реализуемом товаре [03:11:20]line ОКРУГЛЕНИЕ: -0.36 [03:11:20]line ИТОГО: 500.00 [03:11:20]line Внесено: 500.00 [03:11:20]line СДАЧА: 0.00 [03:11:20]line НСП 1% : 4.43 [03:11:20]line НДС 12% : 53.14 [03:11:20]line Наличными: 500.00 [03:11:20]line Безнал.: 0.00 [03:11:20]line Место: АЗС № 136 "Партнер Нефть" [03:11:20]line Адрес: 720001, г. Кара Суу, ул. МЭЗ б/н, 40.710520, 72.886565 [03:11:20]line СНО: Общий режим [03:11:20]line Чек 6 22.08.2024 03:11 [03:11:20]line Смена: 455 ФФД: 1.0 [03:11:20]line ЗНМ: 0300000067 [03:11:20]line РНМ: 0000000000092569 [03:11:20]line Версия ККМ: 001 [03:11:20]line ФМ: 0000000000871776 [03:11:20]line ФД: 140440 [03:11:20]line ФПД: 150557191637584 [03:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240822T031120&type=1&operation_type=1&fn_number=0000000000871776&fd_number=140440&fm=150557191637584&tin=02508201610067®Number=0000000000092569&sum=50000 [03:11:20]written 0, free lines is 4095 [03:11:20]OFD Sender: Processing packet 140440 [packets to send 137, broken 136] [03:11:20]ProducePacketName [03:11:20]name=ofd_packets/00140440 [03:11:20]OFD Sender: To server: pG, [03:11:20]CommunicateWithHost lk.salyk.kg:30040 [03:11:20]ConnectInit lk.salyk.kg [03:11:20]Connected sock=10 [03:11: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 37 36 0F 01 00 00 6F E6 07 01 BE 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 58 AC C6 66 0E 04 04 00 C7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 10 04 04 00 98 24 02 00 35 04 06 00 88 EE 53 ED 0A 50 89 37 4D B5 25 83 96 94 [03:11: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 37 36 4F 00 00 00 70 14 47 00 85 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 37 36 10 04 04 00 98 24 02 00 F4 03 04 00 E8 52 C6 66 B6 04 01 00 00 0B 0B 1E 00 FA 25 EA FC [03:11:20]CommunicateWithHost err = 0 [03:11:20]CheckOFDResponse [03:11:20]1017 (14) - 77093643461234 [03:11:20]1041 (16) - 0000000000871776 [03:11:20]1040 (4) - 140440 [03:11:20]1012 (4) - 21.08.2024 20:49 [03:11:20]1206 (1) - 0 [03:11:20]OFD Sender: Remove packet 140440 [03:11:20]ProducePacketName [03:11:20]name=ofd_packets/00140440 [03:11:20]NVStorageDeleteData [03:11:20]Write to MH i2c: 01 00 00 45 32 77 [03:11:20]Write i2c OK [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 07 00 [03:11:20]MH_I2C_Read... [03:11:20]Read from MH i2c: 01 07 00 45 32 00 00 00 00 00 CD 0C 57 [03:11:20]RasterBufferAndPrint [03:11:20]line [03:11:20]line [03:11:20]line [03:11:20]line [03:11:20]line [03:11:20]written 0, free lines is 3285 [03:11:21]MH_Cut [03:11:21]Write to MH i2c: D1 01 00 4C 32 01 50 [03:11:21]Write i2c OK [03:11:21]MH_I2C_Read... [03:11:21]Read from MH i2c: D1 [03:11:21]MH_I2C_Read... [03:11:21]Read from MH i2c: D1 01 00 [03:11:21]MH_I2C_Read... [03:11:21]Read from MH i2c: D1 01 00 4C 32 00 4F [03:11:21]Write to MH i2c: 01 00 00 4D 32 7F [03:11:21]Write i2c OK [03:11:21]MH_I2C_Read... [03:11:21]OFD Sender: No OFD packet to send [03:11:21]*** Cut start [03:11:21]*** Partial cut [03:11:21]*** CUTSNS_PIN = 1 [03:11:21]*** CUTSNS_PIN = 0 [03:11:21]*** Brake cut motor [03:11:22]Read from MH i2c: 01 [03:11:22]MH_I2C_Read... [03:11:22]*** Stop cut motor [03:11:22]*** Cut end [03:11:22]Read from MH i2c: 01 07 00 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: 01 07 00 4D 32 00 00 00 00 00 FF 0F 94 [03:11:22]process_action close_receipt done [03:11:22]requested_data is exist [03:11:22]produce_requested_data [03:11:22]requested_item fm.sn is exist - process it [03:11:22]wFMCommunicate request_size=4 [03:11:22]MH_SAM_APDU [03:11:22]CAPDU: 80 11 00 00 [03:11:22]Write to MH i2c: E2 08 00 4E 32 80 11 00 00 00 00 00 00 FA [03:11:22]Write i2c OK [03:11:22]MH_I2C_Read... [03:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:22]Read from MH i2c: E2 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 17 00 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 17 00 4E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 51 [03:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 90 00 [03:11:22]wFMCommunicate OK [03:11:22]requested_item fd.num is exist - process it [03:11:22]SAM_PROTO_GetFieldsCounters [03:11:22]wFMCommunicate request_size=4 [03:11:22]MH_SAM_APDU [03:11:22]CAPDU: 80 13 00 00 [03:11:22]Write to MH i2c: E2 08 00 4F 32 80 13 00 00 00 00 00 00 FD [03:11:22]Write i2c OK [03:11:22]MH_I2C_Read... [03:11:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:22]Read from MH i2c: E2 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 62 00 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 62 00 4F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [03:11: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 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 39 10 04 04 00 98 24 02 00 0E 04 04 00 C7 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:22]wFMCommunicate OK [03:11:22]SAM_PROTO_GetFieldsCounters done [03:11:22]requested_item shift.num is exist - process it [03:11:22]requested_item shift.opened is exist - process it [03:11:22]req_shift_opened [03:11:22]FM_GetShiftState [03:11:22]SAM_PROTO_GetShiftState [03:11:22]wFMCommunicate request_size=4 [03:11:22]MH_SAM_APDU [03:11:22]CAPDU: 80 13 01 00 [03:11:22]Write to MH i2c: E2 08 00 50 32 80 13 01 00 00 00 00 00 FF [03:11:22]Write i2c OK [03:11:22]MH_I2C_Read... [03:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:22]Read from MH i2c: E2 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 0E 00 [03:11:22]MH_I2C_Read... [03:11:22]Read from MH i2c: E2 0E 00 50 32 00 09 00 01 0C 87 C6 66 00 00 00 00 90 00 CA [03:11:22]RAPDU: 09 00 01 0C 87 C6 66 00 00 00 00 90 00 [03:11:22]wFMCommunicate OK [03:11:22]SAM_PROTO_GetShiftState done [03:11:22]FM_GetShiftState done [03:11:22]req_shift_opened done [03:11:22]requested_item shift.open_date is exist - process it [03:11:22]req_shift_open_date [03:11:22]req_shift_open_date done [03:11:22]produce_requested_data done [03:11:22]produce_requested_data return {"fm.sn":"0000000000871776","fd.num":140440,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732} [03:11:22]process_action_free close_receipt [03:11:22]json_value_free [03:11:22]json_value_free done [03:11:22]process_json_proto returns [03:11:22]Send response to host [03:11:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871776","fd.num":140440,"shift.num":455,"shift.opened":1,"shift.open_date":1724286732}}} [03:11:22]free response buf [03:11:22]execute_script done [03:11:22]execute_script returns [03:11:22]free content buf [03:11:22]Sock 7.Close socket [03:11:22]Sock 7.Thread stoped [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send